cleanup specfile for packaging
[profile/ivi/cogl.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for cogl 1.10.2.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 if test "x$CONFIG_SHELL" = x; then
138   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139   emulate sh
140   NULLCMD=:
141   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142   # is contrary to our usage.  Disable this feature.
143   alias -g '\${1+\"\$@\"}'='\"\$@\"'
144   setopt NO_GLOB_SUBST
145 else
146   case \`(set -o) 2>/dev/null\` in #(
147   *posix*) :
148     set -o posix ;; #(
149   *) :
150      ;;
151 esac
152 fi
153 "
154   as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
159
160 exitcode=0
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166
167 else
168   exitcode=1; echo positional parameters were not saved.
169 fi
170 test x\$exitcode = x0 || exit 1"
171   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || 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   if (eval "$as_required") 2>/dev/null; then :
185   as_have_required=yes
186 else
187   as_have_required=no
188 fi
189   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
190
191 else
192   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
193 as_found=false
194 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
195 do
196   IFS=$as_save_IFS
197   test -z "$as_dir" && as_dir=.
198   as_found=:
199   case $as_dir in #(
200          /*)
201            for as_base in sh bash ksh sh5; do
202              # Try only shells that exist, to save several forks.
203              as_shell=$as_dir/$as_base
204              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
205                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
206   CONFIG_SHELL=$as_shell as_have_required=yes
207                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208   break 2
209 fi
210 fi
211            done;;
212        esac
213   as_found=false
214 done
215 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
216               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
217   CONFIG_SHELL=$SHELL as_have_required=yes
218 fi; }
219 IFS=$as_save_IFS
220
221
222       if test "x$CONFIG_SHELL" != x; then :
223   # We cannot yet assume a decent shell, so we have to provide a
224         # neutralization value for shells without unset; and this also
225         # works around shells that cannot unset nonexistent variables.
226         # Preserve -v and -x to the replacement shell.
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         case $- in # ((((
232           *v*x* | *x*v* ) as_opts=-vx ;;
233           *v* ) as_opts=-v ;;
234           *x* ) as_opts=-x ;;
235           * ) as_opts= ;;
236         esac
237         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
238 fi
239
240     if test x$as_have_required = xno; then :
241   $as_echo "$0: This script requires a shell more modern than all"
242   $as_echo "$0: the shells that I found on your system."
243   if test x${ZSH_VERSION+set} = xset ; then
244     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
245     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
246   else
247     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
248 $0: including any error possibly output before this
249 $0: message. Then install a modern shell, or manually run
250 $0: the script under such a shell if you do have one."
251   fi
252   exit 1
253 fi
254 fi
255 fi
256 SHELL=${CONFIG_SHELL-/bin/sh}
257 export SHELL
258 # Unset more variables known to interfere with behavior of common tools.
259 CLICOLOR_FORCE= GREP_OPTIONS=
260 unset CLICOLOR_FORCE GREP_OPTIONS
261
262 ## --------------------- ##
263 ## M4sh Shell Functions. ##
264 ## --------------------- ##
265 # as_fn_unset VAR
266 # ---------------
267 # Portably unset VAR.
268 as_fn_unset ()
269 {
270   { eval $1=; unset $1;}
271 }
272 as_unset=as_fn_unset
273
274 # as_fn_set_status STATUS
275 # -----------------------
276 # Set $? to STATUS, without forking.
277 as_fn_set_status ()
278 {
279   return $1
280 } # as_fn_set_status
281
282 # as_fn_exit STATUS
283 # -----------------
284 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
285 as_fn_exit ()
286 {
287   set +e
288   as_fn_set_status $1
289   exit $1
290 } # as_fn_exit
291
292 # as_fn_mkdir_p
293 # -------------
294 # Create "$as_dir" as a directory, including parents if necessary.
295 as_fn_mkdir_p ()
296 {
297
298   case $as_dir in #(
299   -*) as_dir=./$as_dir;;
300   esac
301   test -d "$as_dir" || eval $as_mkdir_p || {
302     as_dirs=
303     while :; do
304       case $as_dir in #(
305       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
306       *) as_qdir=$as_dir;;
307       esac
308       as_dirs="'$as_qdir' $as_dirs"
309       as_dir=`$as_dirname -- "$as_dir" ||
310 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
311          X"$as_dir" : 'X\(//\)[^/]' \| \
312          X"$as_dir" : 'X\(//\)$' \| \
313          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
314 $as_echo X"$as_dir" |
315     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316             s//\1/
317             q
318           }
319           /^X\(\/\/\)[^/].*/{
320             s//\1/
321             q
322           }
323           /^X\(\/\/\)$/{
324             s//\1/
325             q
326           }
327           /^X\(\/\).*/{
328             s//\1/
329             q
330           }
331           s/.*/./; q'`
332       test -d "$as_dir" && break
333     done
334     test -z "$as_dirs" || eval "mkdir $as_dirs"
335   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
336
337
338 } # as_fn_mkdir_p
339 # as_fn_append VAR VALUE
340 # ----------------------
341 # Append the text in VALUE to the end of the definition contained in VAR. Take
342 # advantage of any shell optimizations that allow amortized linear growth over
343 # repeated appends, instead of the typical quadratic growth present in naive
344 # implementations.
345 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
346   eval 'as_fn_append ()
347   {
348     eval $1+=\$2
349   }'
350 else
351   as_fn_append ()
352   {
353     eval $1=\$$1\$2
354   }
355 fi # as_fn_append
356
357 # as_fn_arith ARG...
358 # ------------------
359 # Perform arithmetic evaluation on the ARGs, and store the result in the
360 # global $as_val. Take advantage of shells that can avoid forks. The arguments
361 # must be portable across $(()) and expr.
362 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
363   eval 'as_fn_arith ()
364   {
365     as_val=$(( $* ))
366   }'
367 else
368   as_fn_arith ()
369   {
370     as_val=`expr "$@" || test $? -eq 1`
371   }
372 fi # as_fn_arith
373
374
375 # as_fn_error STATUS ERROR [LINENO LOG_FD]
376 # ----------------------------------------
377 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
378 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
379 # script with STATUS, using 1 if that was 0.
380 as_fn_error ()
381 {
382   as_status=$1; test $as_status -eq 0 && as_status=1
383   if test "$4"; then
384     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
385     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
386   fi
387   $as_echo "$as_me: error: $2" >&2
388   as_fn_exit $as_status
389 } # as_fn_error
390
391 if expr a : '\(a\)' >/dev/null 2>&1 &&
392    test "X`expr 00001 : '.*\(...\)'`" = X001; then
393   as_expr=expr
394 else
395   as_expr=false
396 fi
397
398 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399   as_basename=basename
400 else
401   as_basename=false
402 fi
403
404 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
405   as_dirname=dirname
406 else
407   as_dirname=false
408 fi
409
410 as_me=`$as_basename -- "$0" ||
411 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
412          X"$0" : 'X\(//\)$' \| \
413          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
414 $as_echo X/"$0" |
415     sed '/^.*\/\([^/][^/]*\)\/*$/{
416             s//\1/
417             q
418           }
419           /^X\/\(\/\/\)$/{
420             s//\1/
421             q
422           }
423           /^X\/\(\/\).*/{
424             s//\1/
425             q
426           }
427           s/.*/./; q'`
428
429 # Avoid depending upon Character Ranges.
430 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
431 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
433 as_cr_digits='0123456789'
434 as_cr_alnum=$as_cr_Letters$as_cr_digits
435
436
437   as_lineno_1=$LINENO as_lineno_1a=$LINENO
438   as_lineno_2=$LINENO as_lineno_2a=$LINENO
439   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
441   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
442   sed -n '
443     p
444     /[$]LINENO/=
445   ' <$as_myself |
446     sed '
447       s/[$]LINENO.*/&-/
448       t lineno
449       b
450       :lineno
451       N
452       :loop
453       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454       t loop
455       s/-\n.*//
456     ' >$as_me.lineno &&
457   chmod +x "$as_me.lineno" ||
458     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
459
460   # Don't try to exec as it changes $[0], causing all sort of problems
461   # (the dirname of $[0] is not the place where we might find the
462   # original and so on.  Autoconf is especially sensitive to this).
463   . "./$as_me.lineno"
464   # Exit status is that of the last command.
465   exit
466 }
467
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in #(((((
470 -n*)
471   case `echo 'xy\c'` in
472   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
473   xy)  ECHO_C='\c';;
474   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
475        ECHO_T=' ';;
476   esac;;
477 *)
478   ECHO_N='-n';;
479 esac
480
481 rm -f conf$$ conf$$.exe conf$$.file
482 if test -d conf$$.dir; then
483   rm -f conf$$.dir/conf$$.file
484 else
485   rm -f conf$$.dir
486   mkdir conf$$.dir 2>/dev/null
487 fi
488 if (echo >conf$$.file) 2>/dev/null; then
489   if ln -s conf$$.file conf$$ 2>/dev/null; then
490     as_ln_s='ln -s'
491     # ... but there are two gotchas:
492     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
493     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
494     # In both cases, we have to default to `cp -p'.
495     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
496       as_ln_s='cp -p'
497   elif ln conf$$.file conf$$ 2>/dev/null; then
498     as_ln_s=ln
499   else
500     as_ln_s='cp -p'
501   fi
502 else
503   as_ln_s='cp -p'
504 fi
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
507
508 if mkdir -p . 2>/dev/null; then
509   as_mkdir_p='mkdir -p "$as_dir"'
510 else
511   test -d ./-p && rmdir ./-p
512   as_mkdir_p=false
513 fi
514
515 if test -x / >/dev/null 2>&1; then
516   as_test_x='test -x'
517 else
518   if ls -dL / >/dev/null 2>&1; then
519     as_ls_L_option=L
520   else
521     as_ls_L_option=
522   fi
523   as_test_x='
524     eval sh -c '\''
525       if test -d "$1"; then
526         test -d "$1/.";
527       else
528         case $1 in #(
529         -*)set "./$1";;
530         esac;
531         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
532         ???[sx]*):;;*)false;;esac;fi
533     '\'' sh
534   '
535 fi
536 as_executable_p=$as_test_x
537
538 # Sed expression to map a string onto a valid CPP name.
539 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
540
541 # Sed expression to map a string onto a valid variable name.
542 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
543
544 SHELL=${CONFIG_SHELL-/bin/sh}
545
546
547 test -n "$DJDIR" || exec 7<&0 </dev/null
548 exec 6>&1
549
550 # Name of the host.
551 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
552 # so uname gets run too.
553 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
554
555 #
556 # Initializations.
557 #
558 ac_default_prefix=/usr/local
559 ac_clean_files=
560 ac_config_libobj_dir=.
561 LIBOBJS=
562 cross_compiling=no
563 subdirs=
564 MFLAGS=
565 MAKEFLAGS=
566
567 # Identity of this package.
568 PACKAGE_NAME='cogl'
569 PACKAGE_TARNAME='cogl'
570 PACKAGE_VERSION='1.10.2'
571 PACKAGE_STRING='cogl 1.10.2'
572 PACKAGE_BUGREPORT=''
573 PACKAGE_URL=''
574
575 ac_unique_file="cogl/cogl.h"
576 # Factoring default headers for most tests.
577 ac_includes_default="\
578 #include <stdio.h>
579 #ifdef HAVE_SYS_TYPES_H
580 # include <sys/types.h>
581 #endif
582 #ifdef HAVE_SYS_STAT_H
583 # include <sys/stat.h>
584 #endif
585 #ifdef STDC_HEADERS
586 # include <stdlib.h>
587 # include <stddef.h>
588 #else
589 # ifdef HAVE_STDLIB_H
590 #  include <stdlib.h>
591 # endif
592 #endif
593 #ifdef HAVE_STRING_H
594 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
595 #  include <memory.h>
596 # endif
597 # include <string.h>
598 #endif
599 #ifdef HAVE_STRINGS_H
600 # include <strings.h>
601 #endif
602 #ifdef HAVE_INTTYPES_H
603 # include <inttypes.h>
604 #endif
605 #ifdef HAVE_STDINT_H
606 # include <stdint.h>
607 #endif
608 #ifdef HAVE_UNISTD_H
609 # include <unistd.h>
610 #endif"
611
612 gt_needs=
613 ac_subst_vars='am__EXEEXT_FALSE
614 am__EXEEXT_TRUE
615 LTLIBOBJS
616 LIBOBJS
617 MAINTAINER_CFLAGS
618 COGL_EXTRA_LDFLAGS
619 COGL_EXTRA_CFLAGS
620 COGL_GL_HEADER_INCLUDES
621 COGL_DEFINES
622 XMKMF
623 HAVE_INTROSPECTION_FALSE
624 HAVE_INTROSPECTION_TRUE
625 INTROSPECTION_MAKEFILE
626 INTROSPECTION_LIBS
627 INTROSPECTION_CFLAGS
628 INTROSPECTION_TYPELIBDIR
629 INTROSPECTION_GIRDIR
630 INTROSPECTION_GENERATE
631 INTROSPECTION_COMPILER
632 INTROSPECTION_SCANNER
633 COGL_PANGO_DEP_LIBS
634 COGL_PANGO_DEP_CFLAGS
635 COGL_PANGO_PKG_REQUIRES
636 COGL_DEP_GL_LIBS
637 COGL_DEP_GL_CFLAGS
638 COGL_DEP_LIBS
639 COGL_DEP_CFLAGS
640 COGL_PKG_REQUIRES
641 GLIB_COMPILE_RESOURCES
642 GLIB_MKENUMS
643 GOBJECT_QUERY
644 GLIB_GENMARSHAL
645 GLIB_LIBS
646 GLIB_CFLAGS
647 BUILD_GTK_DOC_FALSE
648 BUILD_GTK_DOC_TRUE
649 GTK_DOC_USE_REBASE_FALSE
650 GTK_DOC_USE_REBASE_TRUE
651 GTK_DOC_USE_LIBTOOL_FALSE
652 GTK_DOC_USE_LIBTOOL_TRUE
653 GTK_DOC_BUILD_PDF_FALSE
654 GTK_DOC_BUILD_PDF_TRUE
655 GTK_DOC_BUILD_HTML_FALSE
656 GTK_DOC_BUILD_HTML_TRUE
657 ENABLE_GTK_DOC_FALSE
658 ENABLE_GTK_DOC_TRUE
659 GTKDOC_DEPS_LIBS
660 GTKDOC_DEPS_CFLAGS
661 HTML_DIR
662 GTKDOC_MKPDF
663 GTKDOC_REBASE
664 GTKDOC_CHECK
665 ALL_LINGUAS
666 GETTEXT_PACKAGE
667 POSUB
668 LTLIBINTL
669 LIBINTL
670 INTLLIBS
671 LTLIBICONV
672 LIBICONV
673 INTL_MACOSX_LIBS
674 XGETTEXT_EXTRA_OPTIONS
675 MSGMERGE
676 XGETTEXT_015
677 XGETTEXT
678 GMSGFMT_015
679 MSGFMT_015
680 GMSGFMT
681 MSGFMT
682 GETTEXT_MACRO_VERSION
683 USE_NLS
684 OTOOL64
685 OTOOL
686 LIPO
687 NMEDIT
688 DSYMUTIL
689 MANIFEST_TOOL
690 RANLIB
691 ac_ct_AR
692 AR
693 DLLTOOL
694 OBJDUMP
695 LN_S
696 NM
697 ac_ct_DUMPBIN
698 DUMPBIN
699 LD
700 FGREP
701 SED
702 LIBTOOL
703 SUPPORT_XLIB_FALSE
704 SUPPORT_XLIB_TRUE
705 SUPPORT_X11_FALSE
706 SUPPORT_X11_TRUE
707 X11_TESTS_FALSE
708 X11_TESTS_TRUE
709 DUMMY_LIBS
710 DUMMY_CFLAGS
711 SUPPORT_SDL_FALSE
712 SUPPORT_SDL_TRUE
713 SUPPORT_EGL_FALSE
714 SUPPORT_EGL_TRUE
715 SUPPORT_EGL_PLATFORM_XLIB_FALSE
716 SUPPORT_EGL_PLATFORM_XLIB_TRUE
717 SUPPORT_EGL_PLATFORM_ANDROID_FALSE
718 SUPPORT_EGL_PLATFORM_ANDROID_TRUE
719 SUPPORT_WAYLAND_EGL_SERVER_FALSE
720 SUPPORT_WAYLAND_EGL_SERVER_TRUE
721 SUPPORT_EGL_PLATFORM_KMS_FALSE
722 SUPPORT_EGL_PLATFORM_KMS_TRUE
723 SUPPORT_EGL_PLATFORM_WAYLAND_FALSE
724 SUPPORT_EGL_PLATFORM_WAYLAND_TRUE
725 SUPPORT_EGL_PLATFORM_GDL_FALSE
726 SUPPORT_EGL_PLATFORM_GDL_TRUE
727 SUPPORT_EGL_PLATFORM_POWERVR_NULL_FALSE
728 SUPPORT_EGL_PLATFORM_POWERVR_NULL_TRUE
729 SUPPORT_WGL_FALSE
730 SUPPORT_WGL_TRUE
731 SUPPORT_GLX_FALSE
732 SUPPORT_GLX_TRUE
733 HAVE_GLES2
734 COGL_GLES2_LIBNAME
735 HAVE_GLES1
736 COGL_GLES1_LIBNAME
737 HAVE_GL
738 COGL_GL_LIBNAME
739 COGL_DRIVER_GLES_SUPPORTED_FALSE
740 COGL_DRIVER_GLES_SUPPORTED_TRUE
741 COGL_DRIVER_GL_SUPPORTED_FALSE
742 COGL_DRIVER_GL_SUPPORTED_TRUE
743 COGL_EGL_INCLUDES
744 USE_GLIB_FALSE
745 USE_GLIB_TRUE
746 INSTALL_EXAMPLES_FALSE
747 INSTALL_EXAMPLES_TRUE
748 BUILD_COGL_PANGO_FALSE
749 BUILD_COGL_PANGO_TRUE
750 PROFILE_FALSE
751 PROFILE_TRUE
752 PKG_CONFIG_LIBDIR
753 PKG_CONFIG_PATH
754 PKG_CONFIG
755 COGL_DEBUG_CFLAGS
756 OS_QUARTZ_FALSE
757 OS_QUARTZ_TRUE
758 EGREP
759 GREP
760 CPP
761 am__fastdepCC_FALSE
762 am__fastdepCC_TRUE
763 CCDEPMODE
764 AMDEPBACKSLASH
765 AMDEP_FALSE
766 AMDEP_TRUE
767 am__quote
768 am__include
769 DEPDIR
770 OBJEXT
771 EXEEXT
772 ac_ct_CC
773 CPPFLAGS
774 LDFLAGS
775 CFLAGS
776 CC
777 OS_WIN32_FALSE
778 OS_WIN32_TRUE
779 host_os
780 host_vendor
781 host_cpu
782 host
783 build_os
784 build_vendor
785 build_cpu
786 build
787 COGL_RELEASE_STATUS
788 COGL_LT_RELEASE
789 COGL_LT_AGE
790 COGL_LT_REVISION
791 COGL_LT_CURRENT
792 COGL_1_VERSION
793 COGL_1_MICRO_VERSION
794 COGL_1_MINOR_VERSION
795 COGL_API_VERSION_AM
796 COGL_API_VERSION
797 COGL_VERSION
798 COGL_MICRO_VERSION
799 COGL_MINOR_VERSION
800 COGL_MAJOR_VERSION
801 AM_BACKSLASH
802 AM_DEFAULT_VERBOSITY
803 am__untar
804 am__tar
805 AMTAR
806 am__leading_dot
807 SET_MAKE
808 AWK
809 mkdir_p
810 MKDIR_P
811 INSTALL_STRIP_PROGRAM
812 STRIP
813 install_sh
814 MAKEINFO
815 AUTOHEADER
816 AUTOMAKE
817 AUTOCONF
818 ACLOCAL
819 VERSION
820 PACKAGE
821 CYGPATH_W
822 am__isrc
823 INSTALL_DATA
824 INSTALL_SCRIPT
825 INSTALL_PROGRAM
826 UPROF_REQ_VERSION
827 GI_REQ_VERSION
828 GTK_DOC_REQ_VERSION
829 XFIXES_REQ_VERSION
830 XCOMPOSITE_REQ_VERSION
831 PANGOCAIRO_REQ_VERSION
832 CAIRO_REQ_VERSION
833 GDK_PIXBUF_REQ_VERSION
834 GLIB_REQ_VERSION
835 target_alias
836 host_alias
837 build_alias
838 LIBS
839 ECHO_T
840 ECHO_N
841 ECHO_C
842 DEFS
843 mandir
844 localedir
845 libdir
846 psdir
847 pdfdir
848 dvidir
849 htmldir
850 infodir
851 docdir
852 oldincludedir
853 includedir
854 localstatedir
855 sharedstatedir
856 sysconfdir
857 datadir
858 datarootdir
859 libexecdir
860 sbindir
861 bindir
862 program_transform_name
863 prefix
864 exec_prefix
865 PACKAGE_URL
866 PACKAGE_BUGREPORT
867 PACKAGE_STRING
868 PACKAGE_VERSION
869 PACKAGE_TARNAME
870 PACKAGE_NAME
871 PATH_SEPARATOR
872 SHELL'
873 ac_subst_files=''
874 ac_user_opts='
875 enable_option_checking
876 enable_silent_rules
877 enable_dependency_tracking
878 enable_debug
879 enable_cairo
880 enable_profile
881 enable_maintainer_flags
882 enable_deprecated
883 enable_gdk_pixbuf
884 enable_quartz_image
885 enable_cogl_pango
886 enable_examples_install
887 enable_glib
888 enable_gles1
889 enable_gles2
890 enable_gl
891 with_gl_libname
892 with_gles1_libname
893 with_gles2_libname
894 enable_glx
895 enable_wgl
896 enable_null_egl_platform
897 enable_gdl_egl_platform
898 enable_wayland_egl_platform
899 enable_kms_egl_platform
900 enable_wayland_egl_server
901 enable_android_egl_platform
902 enable_xlib_egl_platform
903 enable_sdl
904 enable_static
905 enable_shared
906 with_pic
907 enable_fast_install
908 with_gnu_ld
909 with_sysroot
910 enable_libtool_lock
911 enable_nls
912 enable_rpath
913 with_libiconv_prefix
914 with_libintl_prefix
915 with_html_dir
916 enable_gtk_doc
917 enable_gtk_doc_html
918 enable_gtk_doc_pdf
919 enable_glibtest
920 enable_introspection
921 with_x
922 '
923       ac_precious_vars='build_alias
924 host_alias
925 target_alias
926 CC
927 CFLAGS
928 LDFLAGS
929 LIBS
930 CPPFLAGS
931 CPP
932 PKG_CONFIG
933 PKG_CONFIG_PATH
934 PKG_CONFIG_LIBDIR
935 DUMMY_CFLAGS
936 DUMMY_LIBS
937 GTKDOC_DEPS_CFLAGS
938 GTKDOC_DEPS_LIBS
939 COGL_DEP_CFLAGS
940 COGL_DEP_LIBS
941 COGL_DEP_GL_CFLAGS
942 COGL_DEP_GL_LIBS
943 COGL_PANGO_DEP_CFLAGS
944 COGL_PANGO_DEP_LIBS
945 XMKMF'
946
947
948 # Initialize some variables set by options.
949 ac_init_help=
950 ac_init_version=false
951 ac_unrecognized_opts=
952 ac_unrecognized_sep=
953 # The variables have the same names as the options, with
954 # dashes changed to underlines.
955 cache_file=/dev/null
956 exec_prefix=NONE
957 no_create=
958 no_recursion=
959 prefix=NONE
960 program_prefix=NONE
961 program_suffix=NONE
962 program_transform_name=s,x,x,
963 silent=
964 site=
965 srcdir=
966 verbose=
967 x_includes=NONE
968 x_libraries=NONE
969
970 # Installation directory options.
971 # These are left unexpanded so users can "make install exec_prefix=/foo"
972 # and all the variables that are supposed to be based on exec_prefix
973 # by default will actually change.
974 # Use braces instead of parens because sh, perl, etc. also accept them.
975 # (The list follows the same order as the GNU Coding Standards.)
976 bindir='${exec_prefix}/bin'
977 sbindir='${exec_prefix}/sbin'
978 libexecdir='${exec_prefix}/libexec'
979 datarootdir='${prefix}/share'
980 datadir='${datarootdir}'
981 sysconfdir='${prefix}/etc'
982 sharedstatedir='${prefix}/com'
983 localstatedir='${prefix}/var'
984 includedir='${prefix}/include'
985 oldincludedir='/usr/include'
986 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
987 infodir='${datarootdir}/info'
988 htmldir='${docdir}'
989 dvidir='${docdir}'
990 pdfdir='${docdir}'
991 psdir='${docdir}'
992 libdir='${exec_prefix}/lib'
993 localedir='${datarootdir}/locale'
994 mandir='${datarootdir}/man'
995
996 ac_prev=
997 ac_dashdash=
998 for ac_option
999 do
1000   # If the previous option needs an argument, assign it.
1001   if test -n "$ac_prev"; then
1002     eval $ac_prev=\$ac_option
1003     ac_prev=
1004     continue
1005   fi
1006
1007   case $ac_option in
1008   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1009   *=)   ac_optarg= ;;
1010   *)    ac_optarg=yes ;;
1011   esac
1012
1013   # Accept the important Cygnus configure options, so we can diagnose typos.
1014
1015   case $ac_dashdash$ac_option in
1016   --)
1017     ac_dashdash=yes ;;
1018
1019   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1020     ac_prev=bindir ;;
1021   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1022     bindir=$ac_optarg ;;
1023
1024   -build | --build | --buil | --bui | --bu)
1025     ac_prev=build_alias ;;
1026   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1027     build_alias=$ac_optarg ;;
1028
1029   -cache-file | --cache-file | --cache-fil | --cache-fi \
1030   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1031     ac_prev=cache_file ;;
1032   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1033   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1034     cache_file=$ac_optarg ;;
1035
1036   --config-cache | -C)
1037     cache_file=config.cache ;;
1038
1039   -datadir | --datadir | --datadi | --datad)
1040     ac_prev=datadir ;;
1041   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1042     datadir=$ac_optarg ;;
1043
1044   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1045   | --dataroo | --dataro | --datar)
1046     ac_prev=datarootdir ;;
1047   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1048   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1049     datarootdir=$ac_optarg ;;
1050
1051   -disable-* | --disable-*)
1052     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1053     # Reject names that are not valid shell variable names.
1054     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1055       as_fn_error $? "invalid feature name: $ac_useropt"
1056     ac_useropt_orig=$ac_useropt
1057     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1058     case $ac_user_opts in
1059       *"
1060 "enable_$ac_useropt"
1061 "*) ;;
1062       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1063          ac_unrecognized_sep=', ';;
1064     esac
1065     eval enable_$ac_useropt=no ;;
1066
1067   -docdir | --docdir | --docdi | --doc | --do)
1068     ac_prev=docdir ;;
1069   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1070     docdir=$ac_optarg ;;
1071
1072   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1073     ac_prev=dvidir ;;
1074   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1075     dvidir=$ac_optarg ;;
1076
1077   -enable-* | --enable-*)
1078     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1079     # Reject names that are not valid shell variable names.
1080     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1081       as_fn_error $? "invalid feature name: $ac_useropt"
1082     ac_useropt_orig=$ac_useropt
1083     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1084     case $ac_user_opts in
1085       *"
1086 "enable_$ac_useropt"
1087 "*) ;;
1088       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1089          ac_unrecognized_sep=', ';;
1090     esac
1091     eval enable_$ac_useropt=\$ac_optarg ;;
1092
1093   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1094   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1095   | --exec | --exe | --ex)
1096     ac_prev=exec_prefix ;;
1097   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1098   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1099   | --exec=* | --exe=* | --ex=*)
1100     exec_prefix=$ac_optarg ;;
1101
1102   -gas | --gas | --ga | --g)
1103     # Obsolete; use --with-gas.
1104     with_gas=yes ;;
1105
1106   -help | --help | --hel | --he | -h)
1107     ac_init_help=long ;;
1108   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1109     ac_init_help=recursive ;;
1110   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1111     ac_init_help=short ;;
1112
1113   -host | --host | --hos | --ho)
1114     ac_prev=host_alias ;;
1115   -host=* | --host=* | --hos=* | --ho=*)
1116     host_alias=$ac_optarg ;;
1117
1118   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1119     ac_prev=htmldir ;;
1120   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1121   | --ht=*)
1122     htmldir=$ac_optarg ;;
1123
1124   -includedir | --includedir | --includedi | --included | --include \
1125   | --includ | --inclu | --incl | --inc)
1126     ac_prev=includedir ;;
1127   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1128   | --includ=* | --inclu=* | --incl=* | --inc=*)
1129     includedir=$ac_optarg ;;
1130
1131   -infodir | --infodir | --infodi | --infod | --info | --inf)
1132     ac_prev=infodir ;;
1133   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1134     infodir=$ac_optarg ;;
1135
1136   -libdir | --libdir | --libdi | --libd)
1137     ac_prev=libdir ;;
1138   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1139     libdir=$ac_optarg ;;
1140
1141   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1142   | --libexe | --libex | --libe)
1143     ac_prev=libexecdir ;;
1144   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1145   | --libexe=* | --libex=* | --libe=*)
1146     libexecdir=$ac_optarg ;;
1147
1148   -localedir | --localedir | --localedi | --localed | --locale)
1149     ac_prev=localedir ;;
1150   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1151     localedir=$ac_optarg ;;
1152
1153   -localstatedir | --localstatedir | --localstatedi | --localstated \
1154   | --localstate | --localstat | --localsta | --localst | --locals)
1155     ac_prev=localstatedir ;;
1156   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1157   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1158     localstatedir=$ac_optarg ;;
1159
1160   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1161     ac_prev=mandir ;;
1162   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1163     mandir=$ac_optarg ;;
1164
1165   -nfp | --nfp | --nf)
1166     # Obsolete; use --without-fp.
1167     with_fp=no ;;
1168
1169   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1170   | --no-cr | --no-c | -n)
1171     no_create=yes ;;
1172
1173   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1174   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1175     no_recursion=yes ;;
1176
1177   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1178   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1179   | --oldin | --oldi | --old | --ol | --o)
1180     ac_prev=oldincludedir ;;
1181   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1182   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1183   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1184     oldincludedir=$ac_optarg ;;
1185
1186   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1187     ac_prev=prefix ;;
1188   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1189     prefix=$ac_optarg ;;
1190
1191   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1192   | --program-pre | --program-pr | --program-p)
1193     ac_prev=program_prefix ;;
1194   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1195   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1196     program_prefix=$ac_optarg ;;
1197
1198   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1199   | --program-suf | --program-su | --program-s)
1200     ac_prev=program_suffix ;;
1201   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1202   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1203     program_suffix=$ac_optarg ;;
1204
1205   -program-transform-name | --program-transform-name \
1206   | --program-transform-nam | --program-transform-na \
1207   | --program-transform-n | --program-transform- \
1208   | --program-transform | --program-transfor \
1209   | --program-transfo | --program-transf \
1210   | --program-trans | --program-tran \
1211   | --progr-tra | --program-tr | --program-t)
1212     ac_prev=program_transform_name ;;
1213   -program-transform-name=* | --program-transform-name=* \
1214   | --program-transform-nam=* | --program-transform-na=* \
1215   | --program-transform-n=* | --program-transform-=* \
1216   | --program-transform=* | --program-transfor=* \
1217   | --program-transfo=* | --program-transf=* \
1218   | --program-trans=* | --program-tran=* \
1219   | --progr-tra=* | --program-tr=* | --program-t=*)
1220     program_transform_name=$ac_optarg ;;
1221
1222   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1223     ac_prev=pdfdir ;;
1224   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1225     pdfdir=$ac_optarg ;;
1226
1227   -psdir | --psdir | --psdi | --psd | --ps)
1228     ac_prev=psdir ;;
1229   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1230     psdir=$ac_optarg ;;
1231
1232   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1233   | -silent | --silent | --silen | --sile | --sil)
1234     silent=yes ;;
1235
1236   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1237     ac_prev=sbindir ;;
1238   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1239   | --sbi=* | --sb=*)
1240     sbindir=$ac_optarg ;;
1241
1242   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1243   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1244   | --sharedst | --shareds | --shared | --share | --shar \
1245   | --sha | --sh)
1246     ac_prev=sharedstatedir ;;
1247   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1248   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1249   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1250   | --sha=* | --sh=*)
1251     sharedstatedir=$ac_optarg ;;
1252
1253   -site | --site | --sit)
1254     ac_prev=site ;;
1255   -site=* | --site=* | --sit=*)
1256     site=$ac_optarg ;;
1257
1258   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1259     ac_prev=srcdir ;;
1260   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1261     srcdir=$ac_optarg ;;
1262
1263   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1264   | --syscon | --sysco | --sysc | --sys | --sy)
1265     ac_prev=sysconfdir ;;
1266   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1267   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1268     sysconfdir=$ac_optarg ;;
1269
1270   -target | --target | --targe | --targ | --tar | --ta | --t)
1271     ac_prev=target_alias ;;
1272   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1273     target_alias=$ac_optarg ;;
1274
1275   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1276     verbose=yes ;;
1277
1278   -version | --version | --versio | --versi | --vers | -V)
1279     ac_init_version=: ;;
1280
1281   -with-* | --with-*)
1282     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1283     # Reject names that are not valid shell variable names.
1284     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1285       as_fn_error $? "invalid package name: $ac_useropt"
1286     ac_useropt_orig=$ac_useropt
1287     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1288     case $ac_user_opts in
1289       *"
1290 "with_$ac_useropt"
1291 "*) ;;
1292       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1293          ac_unrecognized_sep=', ';;
1294     esac
1295     eval with_$ac_useropt=\$ac_optarg ;;
1296
1297   -without-* | --without-*)
1298     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1299     # Reject names that are not valid shell variable names.
1300     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1301       as_fn_error $? "invalid package name: $ac_useropt"
1302     ac_useropt_orig=$ac_useropt
1303     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1304     case $ac_user_opts in
1305       *"
1306 "with_$ac_useropt"
1307 "*) ;;
1308       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1309          ac_unrecognized_sep=', ';;
1310     esac
1311     eval with_$ac_useropt=no ;;
1312
1313   --x)
1314     # Obsolete; use --with-x.
1315     with_x=yes ;;
1316
1317   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1318   | --x-incl | --x-inc | --x-in | --x-i)
1319     ac_prev=x_includes ;;
1320   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1321   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1322     x_includes=$ac_optarg ;;
1323
1324   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1325   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1326     ac_prev=x_libraries ;;
1327   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1328   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1329     x_libraries=$ac_optarg ;;
1330
1331   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1332 Try \`$0 --help' for more information"
1333     ;;
1334
1335   *=*)
1336     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1337     # Reject names that are not valid shell variable names.
1338     case $ac_envvar in #(
1339       '' | [0-9]* | *[!_$as_cr_alnum]* )
1340       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1341     esac
1342     eval $ac_envvar=\$ac_optarg
1343     export $ac_envvar ;;
1344
1345   *)
1346     # FIXME: should be removed in autoconf 3.0.
1347     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1348     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1349       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1350     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1351     ;;
1352
1353   esac
1354 done
1355
1356 if test -n "$ac_prev"; then
1357   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1358   as_fn_error $? "missing argument to $ac_option"
1359 fi
1360
1361 if test -n "$ac_unrecognized_opts"; then
1362   case $enable_option_checking in
1363     no) ;;
1364     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1365     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1366   esac
1367 fi
1368
1369 # Check all directory arguments for consistency.
1370 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1371                 datadir sysconfdir sharedstatedir localstatedir includedir \
1372                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1373                 libdir localedir mandir
1374 do
1375   eval ac_val=\$$ac_var
1376   # Remove trailing slashes.
1377   case $ac_val in
1378     */ )
1379       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1380       eval $ac_var=\$ac_val;;
1381   esac
1382   # Be sure to have absolute directory names.
1383   case $ac_val in
1384     [\\/$]* | ?:[\\/]* )  continue;;
1385     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1386   esac
1387   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1388 done
1389
1390 # There might be people who depend on the old broken behavior: `$host'
1391 # used to hold the argument of --host etc.
1392 # FIXME: To remove some day.
1393 build=$build_alias
1394 host=$host_alias
1395 target=$target_alias
1396
1397 # FIXME: To remove some day.
1398 if test "x$host_alias" != x; then
1399   if test "x$build_alias" = x; then
1400     cross_compiling=maybe
1401     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1402     If a cross compiler is detected then cross compile mode will be used" >&2
1403   elif test "x$build_alias" != "x$host_alias"; then
1404     cross_compiling=yes
1405   fi
1406 fi
1407
1408 ac_tool_prefix=
1409 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1410
1411 test "$silent" = yes && exec 6>/dev/null
1412
1413
1414 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1415 ac_ls_di=`ls -di .` &&
1416 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1417   as_fn_error $? "working directory cannot be determined"
1418 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1419   as_fn_error $? "pwd does not report name of working directory"
1420
1421
1422 # Find the source files, if location was not specified.
1423 if test -z "$srcdir"; then
1424   ac_srcdir_defaulted=yes
1425   # Try the directory containing this script, then the parent directory.
1426   ac_confdir=`$as_dirname -- "$as_myself" ||
1427 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1428          X"$as_myself" : 'X\(//\)[^/]' \| \
1429          X"$as_myself" : 'X\(//\)$' \| \
1430          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1431 $as_echo X"$as_myself" |
1432     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1433             s//\1/
1434             q
1435           }
1436           /^X\(\/\/\)[^/].*/{
1437             s//\1/
1438             q
1439           }
1440           /^X\(\/\/\)$/{
1441             s//\1/
1442             q
1443           }
1444           /^X\(\/\).*/{
1445             s//\1/
1446             q
1447           }
1448           s/.*/./; q'`
1449   srcdir=$ac_confdir
1450   if test ! -r "$srcdir/$ac_unique_file"; then
1451     srcdir=..
1452   fi
1453 else
1454   ac_srcdir_defaulted=no
1455 fi
1456 if test ! -r "$srcdir/$ac_unique_file"; then
1457   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1458   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1459 fi
1460 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1461 ac_abs_confdir=`(
1462         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1463         pwd)`
1464 # When building in place, set srcdir=.
1465 if test "$ac_abs_confdir" = "$ac_pwd"; then
1466   srcdir=.
1467 fi
1468 # Remove unnecessary trailing slashes from srcdir.
1469 # Double slashes in file names in object file debugging info
1470 # mess up M-x gdb in Emacs.
1471 case $srcdir in
1472 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1473 esac
1474 for ac_var in $ac_precious_vars; do
1475   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1476   eval ac_env_${ac_var}_value=\$${ac_var}
1477   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1478   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1479 done
1480
1481 #
1482 # Report the --help message.
1483 #
1484 if test "$ac_init_help" = "long"; then
1485   # Omit some internal or obsolete options to make the list less imposing.
1486   # This message is too long to be a string in the A/UX 3.1 sh.
1487   cat <<_ACEOF
1488 \`configure' configures cogl 1.10.2 to adapt to many kinds of systems.
1489
1490 Usage: $0 [OPTION]... [VAR=VALUE]...
1491
1492 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1493 VAR=VALUE.  See below for descriptions of some of the useful variables.
1494
1495 Defaults for the options are specified in brackets.
1496
1497 Configuration:
1498   -h, --help              display this help and exit
1499       --help=short        display options specific to this package
1500       --help=recursive    display the short help of all the included packages
1501   -V, --version           display version information and exit
1502   -q, --quiet, --silent   do not print \`checking ...' messages
1503       --cache-file=FILE   cache test results in FILE [disabled]
1504   -C, --config-cache      alias for \`--cache-file=config.cache'
1505   -n, --no-create         do not create output files
1506       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1507
1508 Installation directories:
1509   --prefix=PREFIX         install architecture-independent files in PREFIX
1510                           [$ac_default_prefix]
1511   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1512                           [PREFIX]
1513
1514 By default, \`make install' will install all the files in
1515 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1516 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1517 for instance \`--prefix=\$HOME'.
1518
1519 For better control, use the options below.
1520
1521 Fine tuning of the installation directories:
1522   --bindir=DIR            user executables [EPREFIX/bin]
1523   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1524   --libexecdir=DIR        program executables [EPREFIX/libexec]
1525   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1526   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1527   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1528   --libdir=DIR            object code libraries [EPREFIX/lib]
1529   --includedir=DIR        C header files [PREFIX/include]
1530   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1531   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1532   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1533   --infodir=DIR           info documentation [DATAROOTDIR/info]
1534   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1535   --mandir=DIR            man documentation [DATAROOTDIR/man]
1536   --docdir=DIR            documentation root [DATAROOTDIR/doc/cogl]
1537   --htmldir=DIR           html documentation [DOCDIR]
1538   --dvidir=DIR            dvi documentation [DOCDIR]
1539   --pdfdir=DIR            pdf documentation [DOCDIR]
1540   --psdir=DIR             ps documentation [DOCDIR]
1541 _ACEOF
1542
1543   cat <<\_ACEOF
1544
1545 Program names:
1546   --program-prefix=PREFIX            prepend PREFIX to installed program names
1547   --program-suffix=SUFFIX            append SUFFIX to installed program names
1548   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1549
1550 X features:
1551   --x-includes=DIR    X include files are in DIR
1552   --x-libraries=DIR   X library files are in DIR
1553
1554 System types:
1555   --build=BUILD     configure for building on BUILD [guessed]
1556   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1557 _ACEOF
1558 fi
1559
1560 if test -n "$ac_init_help"; then
1561   case $ac_init_help in
1562      short | recursive ) echo "Configuration of cogl 1.10.2:";;
1563    esac
1564   cat <<\_ACEOF
1565
1566 Optional Features:
1567   --disable-option-checking  ignore unrecognized --enable/--with options
1568   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1569   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1570   --enable-silent-rules          less verbose build output (undo: `make V=1')
1571   --disable-silent-rules         verbose build output (undo: `make V=0')
1572   --disable-dependency-tracking  speeds up one-time build
1573   --enable-dependency-tracking   do not reject slow dependency extractors
1574   --enable-debug=[no/yes] Control Cogl debugging level [default=no]
1575   --enable-cairo=[no/yes] Control Cairo usage in Cogl debugging code
1576                           [default=auto]
1577   --enable-profile=[no/yes]
1578                           Turn on uprof profiling support. yes; All UProf
1579                           profiling probe points are compiled in and may be
1580                           runtime enabled. no; No profiling support will built
1581                           into cogl. [default=no]
1582   --enable-maintainer-flags=[no/yes/error]
1583                           Use strict compiler flags [default=no]
1584   --enable-deprecated=[no/yes]
1585                           Whether deprecated symbols should be disabled when
1586                           compiling Cogl [default=yes]
1587   --enable-gdk-pixbuf=[no/yes]
1588                           Enable image loading via gdk-pixbuf [default=yes]
1589   --enable-quartz-image=[no/yes]
1590                           Enable image loading via quartz [default=no]
1591   --enable-cogl-pango=[no/yes]
1592                           Enable pango support [default=yes]
1593   --enable-examples-install=[no/yes]
1594                           Enable installation of examples [default=no]
1595   --enable-glib=[no/yes]  Enable glib support [default=yes]
1596   --enable-gles1=[no/yes] Enable support for OpenGL-ES 1.1 [default=no]
1597   --enable-gles2=[no/yes] Enable support for OpenGL-ES 2.0 [default=no]
1598   --enable-gl=[no/yes]    Enable support for OpenGL [default=yes]
1599   --enable-glx=[no/yes]   Enable support GLX [default=auto]
1600   --enable-wgl=[no/yes]   Enable support for WGL [default=auto]
1601   --enable-null-egl-platform=[no/yes]
1602                           Enable support for the NULL egl platform
1603                           [default=no]
1604   --enable-gdl-egl-platform=[no/yes]
1605                           Enable support for the GDL egl platform [default=no]
1606   --enable-wayland-egl-platform=[no/yes]
1607                           Enable support for the Wayland egl platform
1608                           [default=no]
1609   --enable-kms-egl-platform=[no/yes]
1610                           Enable support for the KMS egl platform [default=no]
1611   --enable-wayland-egl-server=[no/yes]
1612                           Enable server side wayland support [default=no]
1613   --enable-android-egl-platform=[no/yes]
1614                           Enable support for the Android egl platform
1615                           [default=no]
1616   --enable-xlib-egl-platform=[no/yes]
1617                           Enable support for the Xlib egl platform
1618                           [default=auto]
1619   --enable-sdl=[no/yes]   Enable support SDL [default=no]
1620   --enable-static[=PKGS]  build static libraries [default=no]
1621   --enable-shared[=PKGS]  build shared libraries [default=yes]
1622   --enable-fast-install[=PKGS]
1623                           optimize for fast installation [default=yes]
1624   --disable-libtool-lock  avoid locking (might break parallel builds)
1625   --disable-nls           do not use Native Language Support
1626   --disable-rpath         do not hardcode runtime library paths
1627   --enable-gtk-doc        use gtk-doc to build documentation [[default=no]]
1628   --enable-gtk-doc-html   build documentation in html format [[default=yes]]
1629   --enable-gtk-doc-pdf    build documentation in pdf format [[default=no]]
1630   --disable-glibtest      do not try to compile and run a test GLIB program
1631   --enable-introspection=[no/auto/yes]
1632                           Enable introspection for this build
1633
1634 Optional Packages:
1635   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1636   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1637   --with-gl-libname       override the name of the GL library to dlopen
1638   --with-gles1-libname    override the name of the GLESv1 library to dlopen
1639   --with-gles2-libname    override the name of the GLESv2 library to dlopen
1640   --with-pic              try to use only PIC/non-PIC objects [default=use
1641                           both]
1642   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1643   --with-sysroot=DIR Search for dependent libraries within DIR
1644                         (or the compiler's sysroot if not specified).
1645   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1646   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1647   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1648   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1649   --without-libintl-prefix     don't search for libintl in includedir and libdir
1650   --with-html-dir=PATH    path to installed docs
1651   --with-x                use the X Window System
1652
1653 Some influential environment variables:
1654   CC          C compiler command
1655   CFLAGS      C compiler flags
1656   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1657               nonstandard directory <lib dir>
1658   LIBS        libraries to pass to the linker, e.g. -l<library>
1659   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1660               you have headers in a nonstandard directory <include dir>
1661   CPP         C preprocessor
1662   PKG_CONFIG  path to pkg-config utility
1663   PKG_CONFIG_PATH
1664               directories to add to pkg-config's search path
1665   PKG_CONFIG_LIBDIR
1666               path overriding pkg-config's built-in search path
1667   DUMMY_CFLAGS
1668               C compiler flags for DUMMY, overriding pkg-config
1669   DUMMY_LIBS  linker flags for DUMMY, overriding pkg-config
1670   GTKDOC_DEPS_CFLAGS
1671               C compiler flags for GTKDOC_DEPS, overriding pkg-config
1672   GTKDOC_DEPS_LIBS
1673               linker flags for GTKDOC_DEPS, overriding pkg-config
1674   COGL_DEP_CFLAGS
1675               C compiler flags for COGL_DEP, overriding pkg-config
1676   COGL_DEP_LIBS
1677               linker flags for COGL_DEP, overriding pkg-config
1678   COGL_DEP_GL_CFLAGS
1679               C compiler flags for COGL_DEP_GL, overriding pkg-config
1680   COGL_DEP_GL_LIBS
1681               linker flags for COGL_DEP_GL, overriding pkg-config
1682   COGL_PANGO_DEP_CFLAGS
1683               C compiler flags for COGL_PANGO_DEP, overriding pkg-config
1684   COGL_PANGO_DEP_LIBS
1685               linker flags for COGL_PANGO_DEP, overriding pkg-config
1686   XMKMF       Path to xmkmf, Makefile generator for X Window System
1687
1688 Use these variables to override the choices made by `configure' or to help
1689 it to find libraries and programs with nonstandard names/locations.
1690
1691 Report bugs to the package provider.
1692 _ACEOF
1693 ac_status=$?
1694 fi
1695
1696 if test "$ac_init_help" = "recursive"; then
1697   # If there are subdirs, report their specific --help.
1698   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1699     test -d "$ac_dir" ||
1700       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1701       continue
1702     ac_builddir=.
1703
1704 case "$ac_dir" in
1705 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1706 *)
1707   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1708   # A ".." for each directory in $ac_dir_suffix.
1709   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1710   case $ac_top_builddir_sub in
1711   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1712   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1713   esac ;;
1714 esac
1715 ac_abs_top_builddir=$ac_pwd
1716 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1717 # for backward compatibility:
1718 ac_top_builddir=$ac_top_build_prefix
1719
1720 case $srcdir in
1721   .)  # We are building in place.
1722     ac_srcdir=.
1723     ac_top_srcdir=$ac_top_builddir_sub
1724     ac_abs_top_srcdir=$ac_pwd ;;
1725   [\\/]* | ?:[\\/]* )  # Absolute name.
1726     ac_srcdir=$srcdir$ac_dir_suffix;
1727     ac_top_srcdir=$srcdir
1728     ac_abs_top_srcdir=$srcdir ;;
1729   *) # Relative name.
1730     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1731     ac_top_srcdir=$ac_top_build_prefix$srcdir
1732     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1733 esac
1734 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1735
1736     cd "$ac_dir" || { ac_status=$?; continue; }
1737     # Check for guested configure.
1738     if test -f "$ac_srcdir/configure.gnu"; then
1739       echo &&
1740       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1741     elif test -f "$ac_srcdir/configure"; then
1742       echo &&
1743       $SHELL "$ac_srcdir/configure" --help=recursive
1744     else
1745       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1746     fi || ac_status=$?
1747     cd "$ac_pwd" || { ac_status=$?; break; }
1748   done
1749 fi
1750
1751 test -n "$ac_init_help" && exit $ac_status
1752 if $ac_init_version; then
1753   cat <<\_ACEOF
1754 cogl configure 1.10.2
1755 generated by GNU Autoconf 2.68
1756
1757 Copyright (C) 2010 Free Software Foundation, Inc.
1758 This configure script is free software; the Free Software Foundation
1759 gives unlimited permission to copy, distribute and modify it.
1760 _ACEOF
1761   exit
1762 fi
1763
1764 ## ------------------------ ##
1765 ## Autoconf initialization. ##
1766 ## ------------------------ ##
1767
1768 # ac_fn_c_try_compile LINENO
1769 # --------------------------
1770 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1771 ac_fn_c_try_compile ()
1772 {
1773   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774   rm -f conftest.$ac_objext
1775   if { { ac_try="$ac_compile"
1776 case "(($ac_try" in
1777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1778   *) ac_try_echo=$ac_try;;
1779 esac
1780 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1781 $as_echo "$ac_try_echo"; } >&5
1782   (eval "$ac_compile") 2>conftest.err
1783   ac_status=$?
1784   if test -s conftest.err; then
1785     grep -v '^ *+' conftest.err >conftest.er1
1786     cat conftest.er1 >&5
1787     mv -f conftest.er1 conftest.err
1788   fi
1789   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1790   test $ac_status = 0; } && {
1791          test -z "$ac_c_werror_flag" ||
1792          test ! -s conftest.err
1793        } && test -s conftest.$ac_objext; then :
1794   ac_retval=0
1795 else
1796   $as_echo "$as_me: failed program was:" >&5
1797 sed 's/^/| /' conftest.$ac_ext >&5
1798
1799         ac_retval=1
1800 fi
1801   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1802   as_fn_set_status $ac_retval
1803
1804 } # ac_fn_c_try_compile
1805
1806 # ac_fn_c_try_cpp LINENO
1807 # ----------------------
1808 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1809 ac_fn_c_try_cpp ()
1810 {
1811   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812   if { { ac_try="$ac_cpp conftest.$ac_ext"
1813 case "(($ac_try" in
1814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1815   *) ac_try_echo=$ac_try;;
1816 esac
1817 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1818 $as_echo "$ac_try_echo"; } >&5
1819   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1820   ac_status=$?
1821   if test -s conftest.err; then
1822     grep -v '^ *+' conftest.err >conftest.er1
1823     cat conftest.er1 >&5
1824     mv -f conftest.er1 conftest.err
1825   fi
1826   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1827   test $ac_status = 0; } > conftest.i && {
1828          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1829          test ! -s conftest.err
1830        }; then :
1831   ac_retval=0
1832 else
1833   $as_echo "$as_me: failed program was:" >&5
1834 sed 's/^/| /' conftest.$ac_ext >&5
1835
1836     ac_retval=1
1837 fi
1838   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1839   as_fn_set_status $ac_retval
1840
1841 } # ac_fn_c_try_cpp
1842
1843 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1844 # -------------------------------------------------------
1845 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1846 # the include files in INCLUDES and setting the cache variable VAR
1847 # accordingly.
1848 ac_fn_c_check_header_mongrel ()
1849 {
1850   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851   if eval \${$3+:} false; then :
1852   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1853 $as_echo_n "checking for $2... " >&6; }
1854 if eval \${$3+:} false; then :
1855   $as_echo_n "(cached) " >&6
1856 fi
1857 eval ac_res=\$$3
1858                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1859 $as_echo "$ac_res" >&6; }
1860 else
1861   # Is the header compilable?
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1863 $as_echo_n "checking $2 usability... " >&6; }
1864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1865 /* end confdefs.h.  */
1866 $4
1867 #include <$2>
1868 _ACEOF
1869 if ac_fn_c_try_compile "$LINENO"; then :
1870   ac_header_compiler=yes
1871 else
1872   ac_header_compiler=no
1873 fi
1874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1876 $as_echo "$ac_header_compiler" >&6; }
1877
1878 # Is the header present?
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1880 $as_echo_n "checking $2 presence... " >&6; }
1881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1882 /* end confdefs.h.  */
1883 #include <$2>
1884 _ACEOF
1885 if ac_fn_c_try_cpp "$LINENO"; then :
1886   ac_header_preproc=yes
1887 else
1888   ac_header_preproc=no
1889 fi
1890 rm -f conftest.err conftest.i conftest.$ac_ext
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1892 $as_echo "$ac_header_preproc" >&6; }
1893
1894 # So?  What about this header?
1895 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1896   yes:no: )
1897     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1898 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1899     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1900 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1901     ;;
1902   no:yes:* )
1903     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1904 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1905     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1906 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1907     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1908 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1909     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1910 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1911     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1912 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1913     ;;
1914 esac
1915   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1916 $as_echo_n "checking for $2... " >&6; }
1917 if eval \${$3+:} false; then :
1918   $as_echo_n "(cached) " >&6
1919 else
1920   eval "$3=\$ac_header_compiler"
1921 fi
1922 eval ac_res=\$$3
1923                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1924 $as_echo "$ac_res" >&6; }
1925 fi
1926   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927
1928 } # ac_fn_c_check_header_mongrel
1929
1930 # ac_fn_c_try_run LINENO
1931 # ----------------------
1932 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1933 # that executables *can* be run.
1934 ac_fn_c_try_run ()
1935 {
1936   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937   if { { ac_try="$ac_link"
1938 case "(($ac_try" in
1939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1940   *) ac_try_echo=$ac_try;;
1941 esac
1942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1943 $as_echo "$ac_try_echo"; } >&5
1944   (eval "$ac_link") 2>&5
1945   ac_status=$?
1946   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1947   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1948   { { case "(($ac_try" in
1949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1950   *) ac_try_echo=$ac_try;;
1951 esac
1952 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1953 $as_echo "$ac_try_echo"; } >&5
1954   (eval "$ac_try") 2>&5
1955   ac_status=$?
1956   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1957   test $ac_status = 0; }; }; then :
1958   ac_retval=0
1959 else
1960   $as_echo "$as_me: program exited with status $ac_status" >&5
1961        $as_echo "$as_me: failed program was:" >&5
1962 sed 's/^/| /' conftest.$ac_ext >&5
1963
1964        ac_retval=$ac_status
1965 fi
1966   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1967   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1968   as_fn_set_status $ac_retval
1969
1970 } # ac_fn_c_try_run
1971
1972 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1973 # -------------------------------------------------------
1974 # Tests whether HEADER exists and can be compiled using the include files in
1975 # INCLUDES, setting the cache variable VAR accordingly.
1976 ac_fn_c_check_header_compile ()
1977 {
1978   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1979   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1980 $as_echo_n "checking for $2... " >&6; }
1981 if eval \${$3+:} false; then :
1982   $as_echo_n "(cached) " >&6
1983 else
1984   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1985 /* end confdefs.h.  */
1986 $4
1987 #include <$2>
1988 _ACEOF
1989 if ac_fn_c_try_compile "$LINENO"; then :
1990   eval "$3=yes"
1991 else
1992   eval "$3=no"
1993 fi
1994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995 fi
1996 eval ac_res=\$$3
1997                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1998 $as_echo "$ac_res" >&6; }
1999   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2000
2001 } # ac_fn_c_check_header_compile
2002
2003 # ac_fn_c_try_link LINENO
2004 # -----------------------
2005 # Try to link conftest.$ac_ext, and return whether this succeeded.
2006 ac_fn_c_try_link ()
2007 {
2008   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2009   rm -f conftest.$ac_objext conftest$ac_exeext
2010   if { { ac_try="$ac_link"
2011 case "(($ac_try" in
2012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2013   *) ac_try_echo=$ac_try;;
2014 esac
2015 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2016 $as_echo "$ac_try_echo"; } >&5
2017   (eval "$ac_link") 2>conftest.err
2018   ac_status=$?
2019   if test -s conftest.err; then
2020     grep -v '^ *+' conftest.err >conftest.er1
2021     cat conftest.er1 >&5
2022     mv -f conftest.er1 conftest.err
2023   fi
2024   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2025   test $ac_status = 0; } && {
2026          test -z "$ac_c_werror_flag" ||
2027          test ! -s conftest.err
2028        } && test -s conftest$ac_exeext && {
2029          test "$cross_compiling" = yes ||
2030          $as_test_x conftest$ac_exeext
2031        }; then :
2032   ac_retval=0
2033 else
2034   $as_echo "$as_me: failed program was:" >&5
2035 sed 's/^/| /' conftest.$ac_ext >&5
2036
2037         ac_retval=1
2038 fi
2039   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2040   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2041   # interfere with the next link command; also delete a directory that is
2042   # left behind by Apple's compiler.  We do this before executing the actions.
2043   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2044   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2045   as_fn_set_status $ac_retval
2046
2047 } # ac_fn_c_try_link
2048
2049 # ac_fn_c_check_func LINENO FUNC VAR
2050 # ----------------------------------
2051 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2052 ac_fn_c_check_func ()
2053 {
2054   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2055   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2056 $as_echo_n "checking for $2... " >&6; }
2057 if eval \${$3+:} false; then :
2058   $as_echo_n "(cached) " >&6
2059 else
2060   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2061 /* end confdefs.h.  */
2062 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2063    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2064 #define $2 innocuous_$2
2065
2066 /* System header to define __stub macros and hopefully few prototypes,
2067     which can conflict with char $2 (); below.
2068     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2069     <limits.h> exists even on freestanding compilers.  */
2070
2071 #ifdef __STDC__
2072 # include <limits.h>
2073 #else
2074 # include <assert.h>
2075 #endif
2076
2077 #undef $2
2078
2079 /* Override any GCC internal prototype to avoid an error.
2080    Use char because int might match the return type of a GCC
2081    builtin and then its argument prototype would still apply.  */
2082 #ifdef __cplusplus
2083 extern "C"
2084 #endif
2085 char $2 ();
2086 /* The GNU C library defines this for functions which it implements
2087     to always fail with ENOSYS.  Some functions are actually named
2088     something starting with __ and the normal name is an alias.  */
2089 #if defined __stub_$2 || defined __stub___$2
2090 choke me
2091 #endif
2092
2093 int
2094 main ()
2095 {
2096 return $2 ();
2097   ;
2098   return 0;
2099 }
2100 _ACEOF
2101 if ac_fn_c_try_link "$LINENO"; then :
2102   eval "$3=yes"
2103 else
2104   eval "$3=no"
2105 fi
2106 rm -f core conftest.err conftest.$ac_objext \
2107     conftest$ac_exeext conftest.$ac_ext
2108 fi
2109 eval ac_res=\$$3
2110                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2111 $as_echo "$ac_res" >&6; }
2112   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2113
2114 } # ac_fn_c_check_func
2115
2116 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2117 # --------------------------------------------
2118 # Tries to find the compile-time value of EXPR in a program that includes
2119 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2120 # computed
2121 ac_fn_c_compute_int ()
2122 {
2123   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2124   if test "$cross_compiling" = yes; then
2125     # Depending upon the size, compute the lo and hi bounds.
2126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2127 /* end confdefs.h.  */
2128 $4
2129 int
2130 main ()
2131 {
2132 static int test_array [1 - 2 * !(($2) >= 0)];
2133 test_array [0] = 0
2134
2135   ;
2136   return 0;
2137 }
2138 _ACEOF
2139 if ac_fn_c_try_compile "$LINENO"; then :
2140   ac_lo=0 ac_mid=0
2141   while :; do
2142     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2143 /* end confdefs.h.  */
2144 $4
2145 int
2146 main ()
2147 {
2148 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2149 test_array [0] = 0
2150
2151   ;
2152   return 0;
2153 }
2154 _ACEOF
2155 if ac_fn_c_try_compile "$LINENO"; then :
2156   ac_hi=$ac_mid; break
2157 else
2158   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2159                         if test $ac_lo -le $ac_mid; then
2160                           ac_lo= ac_hi=
2161                           break
2162                         fi
2163                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2164 fi
2165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2166   done
2167 else
2168   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2169 /* end confdefs.h.  */
2170 $4
2171 int
2172 main ()
2173 {
2174 static int test_array [1 - 2 * !(($2) < 0)];
2175 test_array [0] = 0
2176
2177   ;
2178   return 0;
2179 }
2180 _ACEOF
2181 if ac_fn_c_try_compile "$LINENO"; then :
2182   ac_hi=-1 ac_mid=-1
2183   while :; do
2184     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2185 /* end confdefs.h.  */
2186 $4
2187 int
2188 main ()
2189 {
2190 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2191 test_array [0] = 0
2192
2193   ;
2194   return 0;
2195 }
2196 _ACEOF
2197 if ac_fn_c_try_compile "$LINENO"; then :
2198   ac_lo=$ac_mid; break
2199 else
2200   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2201                         if test $ac_mid -le $ac_hi; then
2202                           ac_lo= ac_hi=
2203                           break
2204                         fi
2205                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2206 fi
2207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2208   done
2209 else
2210   ac_lo= ac_hi=
2211 fi
2212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2213 fi
2214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2215 # Binary search between lo and hi bounds.
2216 while test "x$ac_lo" != "x$ac_hi"; do
2217   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2218   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2219 /* end confdefs.h.  */
2220 $4
2221 int
2222 main ()
2223 {
2224 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2225 test_array [0] = 0
2226
2227   ;
2228   return 0;
2229 }
2230 _ACEOF
2231 if ac_fn_c_try_compile "$LINENO"; then :
2232   ac_hi=$ac_mid
2233 else
2234   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2235 fi
2236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2237 done
2238 case $ac_lo in #((
2239 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2240 '') ac_retval=1 ;;
2241 esac
2242   else
2243     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2244 /* end confdefs.h.  */
2245 $4
2246 static long int longval () { return $2; }
2247 static unsigned long int ulongval () { return $2; }
2248 #include <stdio.h>
2249 #include <stdlib.h>
2250 int
2251 main ()
2252 {
2253
2254   FILE *f = fopen ("conftest.val", "w");
2255   if (! f)
2256     return 1;
2257   if (($2) < 0)
2258     {
2259       long int i = longval ();
2260       if (i != ($2))
2261         return 1;
2262       fprintf (f, "%ld", i);
2263     }
2264   else
2265     {
2266       unsigned long int i = ulongval ();
2267       if (i != ($2))
2268         return 1;
2269       fprintf (f, "%lu", i);
2270     }
2271   /* Do not output a trailing newline, as this causes \r\n confusion
2272      on some platforms.  */
2273   return ferror (f) || fclose (f) != 0;
2274
2275   ;
2276   return 0;
2277 }
2278 _ACEOF
2279 if ac_fn_c_try_run "$LINENO"; then :
2280   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2281 else
2282   ac_retval=1
2283 fi
2284 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2285   conftest.$ac_objext conftest.beam conftest.$ac_ext
2286 rm -f conftest.val
2287
2288   fi
2289   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2290   as_fn_set_status $ac_retval
2291
2292 } # ac_fn_c_compute_int
2293 cat >config.log <<_ACEOF
2294 This file contains any messages produced by compilers while
2295 running configure, to aid debugging if configure makes a mistake.
2296
2297 It was created by cogl $as_me 1.10.2, which was
2298 generated by GNU Autoconf 2.68.  Invocation command line was
2299
2300   $ $0 $@
2301
2302 _ACEOF
2303 exec 5>>config.log
2304 {
2305 cat <<_ASUNAME
2306 ## --------- ##
2307 ## Platform. ##
2308 ## --------- ##
2309
2310 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2311 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2312 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2313 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2314 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2315
2316 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2317 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2318
2319 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2320 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2321 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2322 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2323 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2324 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2325 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2326
2327 _ASUNAME
2328
2329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2330 for as_dir in $PATH
2331 do
2332   IFS=$as_save_IFS
2333   test -z "$as_dir" && as_dir=.
2334     $as_echo "PATH: $as_dir"
2335   done
2336 IFS=$as_save_IFS
2337
2338 } >&5
2339
2340 cat >&5 <<_ACEOF
2341
2342
2343 ## ----------- ##
2344 ## Core tests. ##
2345 ## ----------- ##
2346
2347 _ACEOF
2348
2349
2350 # Keep a trace of the command line.
2351 # Strip out --no-create and --no-recursion so they do not pile up.
2352 # Strip out --silent because we don't want to record it for future runs.
2353 # Also quote any args containing shell meta-characters.
2354 # Make two passes to allow for proper duplicate-argument suppression.
2355 ac_configure_args=
2356 ac_configure_args0=
2357 ac_configure_args1=
2358 ac_must_keep_next=false
2359 for ac_pass in 1 2
2360 do
2361   for ac_arg
2362   do
2363     case $ac_arg in
2364     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2365     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2366     | -silent | --silent | --silen | --sile | --sil)
2367       continue ;;
2368     *\'*)
2369       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2370     esac
2371     case $ac_pass in
2372     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2373     2)
2374       as_fn_append ac_configure_args1 " '$ac_arg'"
2375       if test $ac_must_keep_next = true; then
2376         ac_must_keep_next=false # Got value, back to normal.
2377       else
2378         case $ac_arg in
2379           *=* | --config-cache | -C | -disable-* | --disable-* \
2380           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2381           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2382           | -with-* | --with-* | -without-* | --without-* | --x)
2383             case "$ac_configure_args0 " in
2384               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2385             esac
2386             ;;
2387           -* ) ac_must_keep_next=true ;;
2388         esac
2389       fi
2390       as_fn_append ac_configure_args " '$ac_arg'"
2391       ;;
2392     esac
2393   done
2394 done
2395 { ac_configure_args0=; unset ac_configure_args0;}
2396 { ac_configure_args1=; unset ac_configure_args1;}
2397
2398 # When interrupted or exit'd, cleanup temporary files, and complete
2399 # config.log.  We remove comments because anyway the quotes in there
2400 # would cause problems or look ugly.
2401 # WARNING: Use '\'' to represent an apostrophe within the trap.
2402 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2403 trap 'exit_status=$?
2404   # Save into config.log some information that might help in debugging.
2405   {
2406     echo
2407
2408     $as_echo "## ---------------- ##
2409 ## Cache variables. ##
2410 ## ---------------- ##"
2411     echo
2412     # The following way of writing the cache mishandles newlines in values,
2413 (
2414   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2415     eval ac_val=\$$ac_var
2416     case $ac_val in #(
2417     *${as_nl}*)
2418       case $ac_var in #(
2419       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2420 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2421       esac
2422       case $ac_var in #(
2423       _ | IFS | as_nl) ;; #(
2424       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2425       *) { eval $ac_var=; unset $ac_var;} ;;
2426       esac ;;
2427     esac
2428   done
2429   (set) 2>&1 |
2430     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2431     *${as_nl}ac_space=\ *)
2432       sed -n \
2433         "s/'\''/'\''\\\\'\'''\''/g;
2434           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2435       ;; #(
2436     *)
2437       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2438       ;;
2439     esac |
2440     sort
2441 )
2442     echo
2443
2444     $as_echo "## ----------------- ##
2445 ## Output variables. ##
2446 ## ----------------- ##"
2447     echo
2448     for ac_var in $ac_subst_vars
2449     do
2450       eval ac_val=\$$ac_var
2451       case $ac_val in
2452       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2453       esac
2454       $as_echo "$ac_var='\''$ac_val'\''"
2455     done | sort
2456     echo
2457
2458     if test -n "$ac_subst_files"; then
2459       $as_echo "## ------------------- ##
2460 ## File substitutions. ##
2461 ## ------------------- ##"
2462       echo
2463       for ac_var in $ac_subst_files
2464       do
2465         eval ac_val=\$$ac_var
2466         case $ac_val in
2467         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2468         esac
2469         $as_echo "$ac_var='\''$ac_val'\''"
2470       done | sort
2471       echo
2472     fi
2473
2474     if test -s confdefs.h; then
2475       $as_echo "## ----------- ##
2476 ## confdefs.h. ##
2477 ## ----------- ##"
2478       echo
2479       cat confdefs.h
2480       echo
2481     fi
2482     test "$ac_signal" != 0 &&
2483       $as_echo "$as_me: caught signal $ac_signal"
2484     $as_echo "$as_me: exit $exit_status"
2485   } >&5
2486   rm -f core *.core core.conftest.* &&
2487     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2488     exit $exit_status
2489 ' 0
2490 for ac_signal in 1 2 13 15; do
2491   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2492 done
2493 ac_signal=0
2494
2495 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2496 rm -f -r conftest* confdefs.h
2497
2498 $as_echo "/* confdefs.h */" > confdefs.h
2499
2500 # Predefined preprocessor variables.
2501
2502 cat >>confdefs.h <<_ACEOF
2503 #define PACKAGE_NAME "$PACKAGE_NAME"
2504 _ACEOF
2505
2506 cat >>confdefs.h <<_ACEOF
2507 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2508 _ACEOF
2509
2510 cat >>confdefs.h <<_ACEOF
2511 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2512 _ACEOF
2513
2514 cat >>confdefs.h <<_ACEOF
2515 #define PACKAGE_STRING "$PACKAGE_STRING"
2516 _ACEOF
2517
2518 cat >>confdefs.h <<_ACEOF
2519 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2520 _ACEOF
2521
2522 cat >>confdefs.h <<_ACEOF
2523 #define PACKAGE_URL "$PACKAGE_URL"
2524 _ACEOF
2525
2526
2527 # Let the site file select an alternate cache file if it wants to.
2528 # Prefer an explicitly selected file to automatically selected ones.
2529 ac_site_file1=NONE
2530 ac_site_file2=NONE
2531 if test -n "$CONFIG_SITE"; then
2532   # We do not want a PATH search for config.site.
2533   case $CONFIG_SITE in #((
2534     -*)  ac_site_file1=./$CONFIG_SITE;;
2535     */*) ac_site_file1=$CONFIG_SITE;;
2536     *)   ac_site_file1=./$CONFIG_SITE;;
2537   esac
2538 elif test "x$prefix" != xNONE; then
2539   ac_site_file1=$prefix/share/config.site
2540   ac_site_file2=$prefix/etc/config.site
2541 else
2542   ac_site_file1=$ac_default_prefix/share/config.site
2543   ac_site_file2=$ac_default_prefix/etc/config.site
2544 fi
2545 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2546 do
2547   test "x$ac_site_file" = xNONE && continue
2548   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2549     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2550 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2551     sed 's/^/| /' "$ac_site_file" >&5
2552     . "$ac_site_file" \
2553       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2554 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2555 as_fn_error $? "failed to load site script $ac_site_file
2556 See \`config.log' for more details" "$LINENO" 5; }
2557   fi
2558 done
2559
2560 if test -r "$cache_file"; then
2561   # Some versions of bash will fail to source /dev/null (special files
2562   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2563   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2564     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2565 $as_echo "$as_me: loading cache $cache_file" >&6;}
2566     case $cache_file in
2567       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2568       *)                      . "./$cache_file";;
2569     esac
2570   fi
2571 else
2572   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2573 $as_echo "$as_me: creating cache $cache_file" >&6;}
2574   >$cache_file
2575 fi
2576
2577 gt_needs="$gt_needs "
2578 # Check that the precious variables saved in the cache have kept the same
2579 # value.
2580 ac_cache_corrupted=false
2581 for ac_var in $ac_precious_vars; do
2582   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2583   eval ac_new_set=\$ac_env_${ac_var}_set
2584   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2585   eval ac_new_val=\$ac_env_${ac_var}_value
2586   case $ac_old_set,$ac_new_set in
2587     set,)
2588       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2589 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2590       ac_cache_corrupted=: ;;
2591     ,set)
2592       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2593 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2594       ac_cache_corrupted=: ;;
2595     ,);;
2596     *)
2597       if test "x$ac_old_val" != "x$ac_new_val"; then
2598         # differences in whitespace do not lead to failure.
2599         ac_old_val_w=`echo x $ac_old_val`
2600         ac_new_val_w=`echo x $ac_new_val`
2601         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2602           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2603 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2604           ac_cache_corrupted=:
2605         else
2606           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2607 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2608           eval $ac_var=\$ac_old_val
2609         fi
2610         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2611 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2612         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2613 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2614       fi;;
2615   esac
2616   # Pass precious variables to config.status.
2617   if test "$ac_new_set" = set; then
2618     case $ac_new_val in
2619     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2620     *) ac_arg=$ac_var=$ac_new_val ;;
2621     esac
2622     case " $ac_configure_args " in
2623       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2624       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2625     esac
2626   fi
2627 done
2628 if $ac_cache_corrupted; then
2629   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2630 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2631   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2632 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2633   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2634 fi
2635 ## -------------------- ##
2636 ## Main body of script. ##
2637 ## -------------------- ##
2638
2639 ac_ext=c
2640 ac_cpp='$CPP $CPPFLAGS'
2641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2644
2645
2646
2647 ac_aux_dir=
2648 for ac_dir in build "$srcdir"/build; do
2649   if test -f "$ac_dir/install-sh"; then
2650     ac_aux_dir=$ac_dir
2651     ac_install_sh="$ac_aux_dir/install-sh -c"
2652     break
2653   elif test -f "$ac_dir/install.sh"; then
2654     ac_aux_dir=$ac_dir
2655     ac_install_sh="$ac_aux_dir/install.sh -c"
2656     break
2657   elif test -f "$ac_dir/shtool"; then
2658     ac_aux_dir=$ac_dir
2659     ac_install_sh="$ac_aux_dir/shtool install -c"
2660     break
2661   fi
2662 done
2663 if test -z "$ac_aux_dir"; then
2664   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build \"$srcdir\"/build" "$LINENO" 5
2665 fi
2666
2667 # These three variables are undocumented and unsupported,
2668 # and are intended to be withdrawn in a future Autoconf release.
2669 # They can cause serious problems if a builder's source tree is in a directory
2670 # whose full name contains unusual characters.
2671 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2672 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2673 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2674
2675
2676
2677 ac_config_headers="$ac_config_headers config.h"
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690 GLIB_REQ_VERSION=2.28.0
2691
2692 GDK_PIXBUF_REQ_VERSION=2.0
2693
2694 CAIRO_REQ_VERSION=1.10
2695
2696 PANGOCAIRO_REQ_VERSION=1.20
2697
2698 XCOMPOSITE_REQ_VERSION=0.4
2699
2700 XFIXES_REQ_VERSION=3
2701
2702 GTK_DOC_REQ_VERSION=1.13
2703
2704 GI_REQ_VERSION=0.9.5
2705
2706 UPROF_REQ_VERSION=0.3
2707
2708
2709 # Save this value here, since automake will set cflags later and we
2710 # want to know if the user specified custom cflags or not.
2711 cflags_set=${CFLAGS+set}
2712
2713 am__api_version='1.11'
2714
2715 # Find a good install program.  We prefer a C program (faster),
2716 # so one script is as good as another.  But avoid the broken or
2717 # incompatible versions:
2718 # SysV /etc/install, /usr/sbin/install
2719 # SunOS /usr/etc/install
2720 # IRIX /sbin/install
2721 # AIX /bin/install
2722 # AmigaOS /C/install, which installs bootblocks on floppy discs
2723 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2724 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2725 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2726 # OS/2's system install, which has a completely different semantic
2727 # ./install, which can be erroneously created by make from ./install.sh.
2728 # Reject install programs that cannot install multiple files.
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2730 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2731 if test -z "$INSTALL"; then
2732 if ${ac_cv_path_install+:} false; then :
2733   $as_echo_n "(cached) " >&6
2734 else
2735   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2736 for as_dir in $PATH
2737 do
2738   IFS=$as_save_IFS
2739   test -z "$as_dir" && as_dir=.
2740     # Account for people who put trailing slashes in PATH elements.
2741 case $as_dir/ in #((
2742   ./ | .// | /[cC]/* | \
2743   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2744   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2745   /usr/ucb/* ) ;;
2746   *)
2747     # OSF1 and SCO ODT 3.0 have their own names for install.
2748     # Don't use installbsd from OSF since it installs stuff as root
2749     # by default.
2750     for ac_prog in ginstall scoinst install; do
2751       for ac_exec_ext in '' $ac_executable_extensions; do
2752         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2753           if test $ac_prog = install &&
2754             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2755             # AIX install.  It has an incompatible calling convention.
2756             :
2757           elif test $ac_prog = install &&
2758             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2759             # program-specific install script used by HP pwplus--don't use.
2760             :
2761           else
2762             rm -rf conftest.one conftest.two conftest.dir
2763             echo one > conftest.one
2764             echo two > conftest.two
2765             mkdir conftest.dir
2766             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2767               test -s conftest.one && test -s conftest.two &&
2768               test -s conftest.dir/conftest.one &&
2769               test -s conftest.dir/conftest.two
2770             then
2771               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2772               break 3
2773             fi
2774           fi
2775         fi
2776       done
2777     done
2778     ;;
2779 esac
2780
2781   done
2782 IFS=$as_save_IFS
2783
2784 rm -rf conftest.one conftest.two conftest.dir
2785
2786 fi
2787   if test "${ac_cv_path_install+set}" = set; then
2788     INSTALL=$ac_cv_path_install
2789   else
2790     # As a last resort, use the slow shell script.  Don't cache a
2791     # value for INSTALL within a source directory, because that will
2792     # break other packages using the cache if that directory is
2793     # removed, or if the value is a relative name.
2794     INSTALL=$ac_install_sh
2795   fi
2796 fi
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2798 $as_echo "$INSTALL" >&6; }
2799
2800 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2801 # It thinks the first close brace ends the variable substitution.
2802 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2803
2804 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2805
2806 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2807
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2809 $as_echo_n "checking whether build environment is sane... " >&6; }
2810 # Just in case
2811 sleep 1
2812 echo timestamp > conftest.file
2813 # Reject unsafe characters in $srcdir or the absolute working directory
2814 # name.  Accept space and tab only in the latter.
2815 am_lf='
2816 '
2817 case `pwd` in
2818   *[\\\"\#\$\&\'\`$am_lf]*)
2819     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2820 esac
2821 case $srcdir in
2822   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2823     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2824 esac
2825
2826 # Do `set' in a subshell so we don't clobber the current shell's
2827 # arguments.  Must try -L first in case configure is actually a
2828 # symlink; some systems play weird games with the mod time of symlinks
2829 # (eg FreeBSD returns the mod time of the symlink's containing
2830 # directory).
2831 if (
2832    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2833    if test "$*" = "X"; then
2834       # -L didn't work.
2835       set X `ls -t "$srcdir/configure" conftest.file`
2836    fi
2837    rm -f conftest.file
2838    if test "$*" != "X $srcdir/configure conftest.file" \
2839       && test "$*" != "X conftest.file $srcdir/configure"; then
2840
2841       # If neither matched, then we have a broken ls.  This can happen
2842       # if, for instance, CONFIG_SHELL is bash and it inherits a
2843       # broken ls alias from the environment.  This has actually
2844       # happened.  Such a system could not be considered "sane".
2845       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2846 alias in your environment" "$LINENO" 5
2847    fi
2848
2849    test "$2" = conftest.file
2850    )
2851 then
2852    # Ok.
2853    :
2854 else
2855    as_fn_error $? "newly created file is older than distributed files!
2856 Check your system clock" "$LINENO" 5
2857 fi
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2859 $as_echo "yes" >&6; }
2860 test "$program_prefix" != NONE &&
2861   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2862 # Use a double $ so make ignores it.
2863 test "$program_suffix" != NONE &&
2864   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2865 # Double any \ or $.
2866 # By default was `s,x,x', remove it if useless.
2867 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2868 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2869
2870 # expand $ac_aux_dir to an absolute path
2871 am_aux_dir=`cd $ac_aux_dir && pwd`
2872
2873 if test x"${MISSING+set}" != xset; then
2874   case $am_aux_dir in
2875   *\ * | *\     *)
2876     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2877   *)
2878     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2879   esac
2880 fi
2881 # Use eval to expand $SHELL
2882 if eval "$MISSING --run true"; then
2883   am_missing_run="$MISSING --run "
2884 else
2885   am_missing_run=
2886   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2887 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2888 fi
2889
2890 if test x"${install_sh}" != xset; then
2891   case $am_aux_dir in
2892   *\ * | *\     *)
2893     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2894   *)
2895     install_sh="\${SHELL} $am_aux_dir/install-sh"
2896   esac
2897 fi
2898
2899 # Installed binaries are usually stripped using `strip' when the user
2900 # run `make install-strip'.  However `strip' might not be the right
2901 # tool to use in cross-compilation environments, therefore Automake
2902 # will honor the `STRIP' environment variable to overrule this program.
2903 if test "$cross_compiling" != no; then
2904   if test -n "$ac_tool_prefix"; then
2905   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2906 set dummy ${ac_tool_prefix}strip; ac_word=$2
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2908 $as_echo_n "checking for $ac_word... " >&6; }
2909 if ${ac_cv_prog_STRIP+:} false; then :
2910   $as_echo_n "(cached) " >&6
2911 else
2912   if test -n "$STRIP"; then
2913   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2914 else
2915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2916 for as_dir in $PATH
2917 do
2918   IFS=$as_save_IFS
2919   test -z "$as_dir" && as_dir=.
2920     for ac_exec_ext in '' $ac_executable_extensions; do
2921   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2922     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2923     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2924     break 2
2925   fi
2926 done
2927   done
2928 IFS=$as_save_IFS
2929
2930 fi
2931 fi
2932 STRIP=$ac_cv_prog_STRIP
2933 if test -n "$STRIP"; then
2934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2935 $as_echo "$STRIP" >&6; }
2936 else
2937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2938 $as_echo "no" >&6; }
2939 fi
2940
2941
2942 fi
2943 if test -z "$ac_cv_prog_STRIP"; then
2944   ac_ct_STRIP=$STRIP
2945   # Extract the first word of "strip", so it can be a program name with args.
2946 set dummy strip; ac_word=$2
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2948 $as_echo_n "checking for $ac_word... " >&6; }
2949 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2950   $as_echo_n "(cached) " >&6
2951 else
2952   if test -n "$ac_ct_STRIP"; then
2953   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2954 else
2955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2956 for as_dir in $PATH
2957 do
2958   IFS=$as_save_IFS
2959   test -z "$as_dir" && as_dir=.
2960     for ac_exec_ext in '' $ac_executable_extensions; do
2961   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2962     ac_cv_prog_ac_ct_STRIP="strip"
2963     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2964     break 2
2965   fi
2966 done
2967   done
2968 IFS=$as_save_IFS
2969
2970 fi
2971 fi
2972 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2973 if test -n "$ac_ct_STRIP"; then
2974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2975 $as_echo "$ac_ct_STRIP" >&6; }
2976 else
2977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2978 $as_echo "no" >&6; }
2979 fi
2980
2981   if test "x$ac_ct_STRIP" = x; then
2982     STRIP=":"
2983   else
2984     case $cross_compiling:$ac_tool_warned in
2985 yes:)
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2987 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2988 ac_tool_warned=yes ;;
2989 esac
2990     STRIP=$ac_ct_STRIP
2991   fi
2992 else
2993   STRIP="$ac_cv_prog_STRIP"
2994 fi
2995
2996 fi
2997 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2998
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3000 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3001 if test -z "$MKDIR_P"; then
3002   if ${ac_cv_path_mkdir+:} false; then :
3003   $as_echo_n "(cached) " >&6
3004 else
3005   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3006 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3007 do
3008   IFS=$as_save_IFS
3009   test -z "$as_dir" && as_dir=.
3010     for ac_prog in mkdir gmkdir; do
3011          for ac_exec_ext in '' $ac_executable_extensions; do
3012            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3013            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3014              'mkdir (GNU coreutils) '* | \
3015              'mkdir (coreutils) '* | \
3016              'mkdir (fileutils) '4.1*)
3017                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3018                break 3;;
3019            esac
3020          done
3021        done
3022   done
3023 IFS=$as_save_IFS
3024
3025 fi
3026
3027   test -d ./--version && rmdir ./--version
3028   if test "${ac_cv_path_mkdir+set}" = set; then
3029     MKDIR_P="$ac_cv_path_mkdir -p"
3030   else
3031     # As a last resort, use the slow shell script.  Don't cache a
3032     # value for MKDIR_P within a source directory, because that will
3033     # break other packages using the cache if that directory is
3034     # removed, or if the value is a relative name.
3035     MKDIR_P="$ac_install_sh -d"
3036   fi
3037 fi
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3039 $as_echo "$MKDIR_P" >&6; }
3040
3041 mkdir_p="$MKDIR_P"
3042 case $mkdir_p in
3043   [\\/$]* | ?:[\\/]*) ;;
3044   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3045 esac
3046
3047 for ac_prog in gawk mawk nawk awk
3048 do
3049   # Extract the first word of "$ac_prog", so it can be a program name with args.
3050 set dummy $ac_prog; ac_word=$2
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3052 $as_echo_n "checking for $ac_word... " >&6; }
3053 if ${ac_cv_prog_AWK+:} false; then :
3054   $as_echo_n "(cached) " >&6
3055 else
3056   if test -n "$AWK"; then
3057   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3058 else
3059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3060 for as_dir in $PATH
3061 do
3062   IFS=$as_save_IFS
3063   test -z "$as_dir" && as_dir=.
3064     for ac_exec_ext in '' $ac_executable_extensions; do
3065   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3066     ac_cv_prog_AWK="$ac_prog"
3067     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3068     break 2
3069   fi
3070 done
3071   done
3072 IFS=$as_save_IFS
3073
3074 fi
3075 fi
3076 AWK=$ac_cv_prog_AWK
3077 if test -n "$AWK"; then
3078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3079 $as_echo "$AWK" >&6; }
3080 else
3081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3082 $as_echo "no" >&6; }
3083 fi
3084
3085
3086   test -n "$AWK" && break
3087 done
3088
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3090 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3091 set x ${MAKE-make}
3092 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3093 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3094   $as_echo_n "(cached) " >&6
3095 else
3096   cat >conftest.make <<\_ACEOF
3097 SHELL = /bin/sh
3098 all:
3099         @echo '@@@%%%=$(MAKE)=@@@%%%'
3100 _ACEOF
3101 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3102 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3103   *@@@%%%=?*=@@@%%%*)
3104     eval ac_cv_prog_make_${ac_make}_set=yes;;
3105   *)
3106     eval ac_cv_prog_make_${ac_make}_set=no;;
3107 esac
3108 rm -f conftest.make
3109 fi
3110 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3112 $as_echo "yes" >&6; }
3113   SET_MAKE=
3114 else
3115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3116 $as_echo "no" >&6; }
3117   SET_MAKE="MAKE=${MAKE-make}"
3118 fi
3119
3120 rm -rf .tst 2>/dev/null
3121 mkdir .tst 2>/dev/null
3122 if test -d .tst; then
3123   am__leading_dot=.
3124 else
3125   am__leading_dot=_
3126 fi
3127 rmdir .tst 2>/dev/null
3128
3129 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3130   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3131   # is not polluted with repeated "-I."
3132   am__isrc=' -I$(srcdir)'
3133   # test to see if srcdir already configured
3134   if test -f $srcdir/config.status; then
3135     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3136   fi
3137 fi
3138
3139 # test whether we have cygpath
3140 if test -z "$CYGPATH_W"; then
3141   if (cygpath --version) >/dev/null 2>/dev/null; then
3142     CYGPATH_W='cygpath -w'
3143   else
3144     CYGPATH_W=echo
3145   fi
3146 fi
3147
3148
3149 # Define the identity of the package.
3150  PACKAGE='cogl'
3151  VERSION='1.10.2'
3152
3153
3154 # Some tools Automake needs.
3155
3156 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3157
3158
3159 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3160
3161
3162 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3163
3164
3165 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3166
3167
3168 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3169
3170 # We need awk for the "check" target.  The system "awk" is bad on
3171 # some platforms.
3172 # Always define AMTAR for backward compatibility.
3173
3174 AMTAR=${AMTAR-"${am_missing_run}tar"}
3175
3176
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3178 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
3179 # Loop over all known methods to create a tar archive until one works.
3180 _am_tools='gnutar plaintar pax cpio none'
3181 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3182 # Do not fold the above two line into one, because Tru64 sh and
3183 # Solaris sh will not grok spaces in the rhs of `-'.
3184 for _am_tool in $_am_tools
3185 do
3186   case $_am_tool in
3187   gnutar)
3188     for _am_tar in tar gnutar gtar;
3189     do
3190       { echo "$as_me:$LINENO: $_am_tar --version" >&5
3191    ($_am_tar --version) >&5 2>&5
3192    ac_status=$?
3193    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194    (exit $ac_status); } && break
3195     done
3196     am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3197     am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3198     am__untar="$_am_tar -xf -"
3199     ;;
3200   plaintar)
3201     # Must skip GNU tar: if it does not support --format= it doesn't create
3202     # ustar tarball either.
3203     (tar --version) >/dev/null 2>&1 && continue
3204     am__tar='tar chf - "$$tardir"'
3205     am__tar_='tar chf - "$tardir"'
3206     am__untar='tar xf -'
3207     ;;
3208   pax)
3209     am__tar='pax -L -x ustar -w "$$tardir"'
3210     am__tar_='pax -L -x ustar -w "$tardir"'
3211     am__untar='pax -r'
3212     ;;
3213   cpio)
3214     am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3215     am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3216     am__untar='cpio -i -H ustar -d'
3217     ;;
3218   none)
3219     am__tar=false
3220     am__tar_=false
3221     am__untar=false
3222     ;;
3223   esac
3224
3225   # If the value was cached, stop now.  We just wanted to have am__tar
3226   # and am__untar set.
3227   test -n "${am_cv_prog_tar_ustar}" && break
3228
3229   # tar/untar a dummy directory, and stop if the command works
3230   rm -rf conftest.dir
3231   mkdir conftest.dir
3232   echo GrepMe > conftest.dir/file
3233   { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3234    (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3235    ac_status=$?
3236    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237    (exit $ac_status); }
3238   rm -rf conftest.dir
3239   if test -s conftest.tar; then
3240     { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3241    ($am__untar <conftest.tar) >&5 2>&5
3242    ac_status=$?
3243    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244    (exit $ac_status); }
3245     grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3246   fi
3247 done
3248 rm -rf conftest.dir
3249
3250 if ${am_cv_prog_tar_ustar+:} false; then :
3251   $as_echo_n "(cached) " >&6
3252 else
3253   am_cv_prog_tar_ustar=$_am_tool
3254 fi
3255
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3257 $as_echo "$am_cv_prog_tar_ustar" >&6; }
3258
3259
3260
3261
3262
3263 # Check whether --enable-silent-rules was given.
3264 if test "${enable_silent_rules+set}" = set; then :
3265   enableval=$enable_silent_rules;
3266 fi
3267
3268 case $enable_silent_rules in
3269 yes) AM_DEFAULT_VERBOSITY=0;;
3270 no)  AM_DEFAULT_VERBOSITY=1;;
3271 *)   AM_DEFAULT_VERBOSITY=0;;
3272 esac
3273 AM_BACKSLASH='\'
3274
3275
3276
3277
3278 COGL_MAJOR_VERSION=2
3279
3280 COGL_MINOR_VERSION=0
3281
3282 COGL_MICRO_VERSION=0
3283
3284 COGL_VERSION=2.0.0
3285
3286 COGL_API_VERSION=2.0
3287
3288 COGL_API_VERSION_AM=$COGL_MAJOR_VERSION\_0
3289
3290
3291 COGL_1_MINOR_VERSION=10
3292
3293 COGL_1_MICRO_VERSION=2
3294
3295 COGL_1_VERSION=1.10.2
3296
3297
3298
3299 COGL_LT_CURRENT=10
3300
3301 COGL_LT_REVISION=1
3302
3303 COGL_LT_AGE=1
3304
3305 COGL_LT_RELEASE=2.0.0
3306
3307
3308
3309 COGL_RELEASE_STATUS=release
3310
3311
3312
3313 # Make sure we can run config.sub.
3314 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3315   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3316
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3318 $as_echo_n "checking build system type... " >&6; }
3319 if ${ac_cv_build+:} false; then :
3320   $as_echo_n "(cached) " >&6
3321 else
3322   ac_build_alias=$build_alias
3323 test "x$ac_build_alias" = x &&
3324   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3325 test "x$ac_build_alias" = x &&
3326   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3327 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3328   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3329
3330 fi
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3332 $as_echo "$ac_cv_build" >&6; }
3333 case $ac_cv_build in
3334 *-*-*) ;;
3335 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3336 esac
3337 build=$ac_cv_build
3338 ac_save_IFS=$IFS; IFS='-'
3339 set x $ac_cv_build
3340 shift
3341 build_cpu=$1
3342 build_vendor=$2
3343 shift; shift
3344 # Remember, the first character of IFS is used to create $*,
3345 # except with old shells:
3346 build_os=$*
3347 IFS=$ac_save_IFS
3348 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3349
3350
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3352 $as_echo_n "checking host system type... " >&6; }
3353 if ${ac_cv_host+:} false; then :
3354   $as_echo_n "(cached) " >&6
3355 else
3356   if test "x$host_alias" = x; then
3357   ac_cv_host=$ac_cv_build
3358 else
3359   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3360     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3361 fi
3362
3363 fi
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3365 $as_echo "$ac_cv_host" >&6; }
3366 case $ac_cv_host in
3367 *-*-*) ;;
3368 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3369 esac
3370 host=$ac_cv_host
3371 ac_save_IFS=$IFS; IFS='-'
3372 set x $ac_cv_host
3373 shift
3374 host_cpu=$1
3375 host_vendor=$2
3376 shift; shift
3377 # Remember, the first character of IFS is used to create $*,
3378 # except with old shells:
3379 host_os=$*
3380 IFS=$ac_save_IFS
3381 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3382
3383
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building for some Win32 platform" >&5
3385 $as_echo_n "checking if building for some Win32 platform... " >&6; }
3386 case $host in #(
3387   *-*-mingw*|*-*-cygwin*) :
3388
3389           COGL_EXTRA_LDFLAGS="$COGL_EXTRA_LDFLAGS -no-undefined"
3390           platform_win32=yes
3391          ;; #(
3392   *) :
3393     platform_win32=no
3394  ;;
3395 esac
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $platform_win32" >&5
3397 $as_echo "$platform_win32" >&6; }
3398  if test "$platform_win32" = "yes"; then
3399   OS_WIN32_TRUE=
3400   OS_WIN32_FALSE='#'
3401 else
3402   OS_WIN32_TRUE='#'
3403   OS_WIN32_FALSE=
3404 fi
3405
3406
3407 DEPDIR="${am__leading_dot}deps"
3408
3409 ac_config_commands="$ac_config_commands depfiles"
3410
3411
3412 am_make=${MAKE-make}
3413 cat > confinc << 'END'
3414 am__doit:
3415         @echo this is the am__doit target
3416 .PHONY: am__doit
3417 END
3418 # If we don't find an include directive, just comment out the code.
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3420 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3421 am__include="#"
3422 am__quote=
3423 _am_result=none
3424 # First try GNU make style include.
3425 echo "include confinc" > confmf
3426 # Ignore all kinds of additional output from `make'.
3427 case `$am_make -s -f confmf 2> /dev/null` in #(
3428 *the\ am__doit\ target*)
3429   am__include=include
3430   am__quote=
3431   _am_result=GNU
3432   ;;
3433 esac
3434 # Now try BSD make style include.
3435 if test "$am__include" = "#"; then
3436    echo '.include "confinc"' > confmf
3437    case `$am_make -s -f confmf 2> /dev/null` in #(
3438    *the\ am__doit\ target*)
3439      am__include=.include
3440      am__quote="\""
3441      _am_result=BSD
3442      ;;
3443    esac
3444 fi
3445
3446
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3448 $as_echo "$_am_result" >&6; }
3449 rm -f confinc confmf
3450
3451 # Check whether --enable-dependency-tracking was given.
3452 if test "${enable_dependency_tracking+set}" = set; then :
3453   enableval=$enable_dependency_tracking;
3454 fi
3455
3456 if test "x$enable_dependency_tracking" != xno; then
3457   am_depcomp="$ac_aux_dir/depcomp"
3458   AMDEPBACKSLASH='\'
3459 fi
3460  if test "x$enable_dependency_tracking" != xno; then
3461   AMDEP_TRUE=
3462   AMDEP_FALSE='#'
3463 else
3464   AMDEP_TRUE='#'
3465   AMDEP_FALSE=
3466 fi
3467
3468
3469 ac_ext=c
3470 ac_cpp='$CPP $CPPFLAGS'
3471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3474 if test -n "$ac_tool_prefix"; then
3475   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3476 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3478 $as_echo_n "checking for $ac_word... " >&6; }
3479 if ${ac_cv_prog_CC+:} false; then :
3480   $as_echo_n "(cached) " >&6
3481 else
3482   if test -n "$CC"; then
3483   ac_cv_prog_CC="$CC" # Let the user override the test.
3484 else
3485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3486 for as_dir in $PATH
3487 do
3488   IFS=$as_save_IFS
3489   test -z "$as_dir" && as_dir=.
3490     for ac_exec_ext in '' $ac_executable_extensions; do
3491   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3492     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3493     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3494     break 2
3495   fi
3496 done
3497   done
3498 IFS=$as_save_IFS
3499
3500 fi
3501 fi
3502 CC=$ac_cv_prog_CC
3503 if test -n "$CC"; then
3504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3505 $as_echo "$CC" >&6; }
3506 else
3507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3508 $as_echo "no" >&6; }
3509 fi
3510
3511
3512 fi
3513 if test -z "$ac_cv_prog_CC"; then
3514   ac_ct_CC=$CC
3515   # Extract the first word of "gcc", so it can be a program name with args.
3516 set dummy gcc; ac_word=$2
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3518 $as_echo_n "checking for $ac_word... " >&6; }
3519 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3520   $as_echo_n "(cached) " >&6
3521 else
3522   if test -n "$ac_ct_CC"; then
3523   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3524 else
3525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3526 for as_dir in $PATH
3527 do
3528   IFS=$as_save_IFS
3529   test -z "$as_dir" && as_dir=.
3530     for ac_exec_ext in '' $ac_executable_extensions; do
3531   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3532     ac_cv_prog_ac_ct_CC="gcc"
3533     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3534     break 2
3535   fi
3536 done
3537   done
3538 IFS=$as_save_IFS
3539
3540 fi
3541 fi
3542 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3543 if test -n "$ac_ct_CC"; then
3544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3545 $as_echo "$ac_ct_CC" >&6; }
3546 else
3547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3548 $as_echo "no" >&6; }
3549 fi
3550
3551   if test "x$ac_ct_CC" = x; then
3552     CC=""
3553   else
3554     case $cross_compiling:$ac_tool_warned in
3555 yes:)
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3557 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3558 ac_tool_warned=yes ;;
3559 esac
3560     CC=$ac_ct_CC
3561   fi
3562 else
3563   CC="$ac_cv_prog_CC"
3564 fi
3565
3566 if test -z "$CC"; then
3567           if test -n "$ac_tool_prefix"; then
3568     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3569 set dummy ${ac_tool_prefix}cc; ac_word=$2
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3571 $as_echo_n "checking for $ac_word... " >&6; }
3572 if ${ac_cv_prog_CC+:} false; then :
3573   $as_echo_n "(cached) " >&6
3574 else
3575   if test -n "$CC"; then
3576   ac_cv_prog_CC="$CC" # Let the user override the test.
3577 else
3578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3579 for as_dir in $PATH
3580 do
3581   IFS=$as_save_IFS
3582   test -z "$as_dir" && as_dir=.
3583     for ac_exec_ext in '' $ac_executable_extensions; do
3584   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3585     ac_cv_prog_CC="${ac_tool_prefix}cc"
3586     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3587     break 2
3588   fi
3589 done
3590   done
3591 IFS=$as_save_IFS
3592
3593 fi
3594 fi
3595 CC=$ac_cv_prog_CC
3596 if test -n "$CC"; then
3597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3598 $as_echo "$CC" >&6; }
3599 else
3600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3601 $as_echo "no" >&6; }
3602 fi
3603
3604
3605   fi
3606 fi
3607 if test -z "$CC"; then
3608   # Extract the first word of "cc", so it can be a program name with args.
3609 set dummy cc; ac_word=$2
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3611 $as_echo_n "checking for $ac_word... " >&6; }
3612 if ${ac_cv_prog_CC+:} false; then :
3613   $as_echo_n "(cached) " >&6
3614 else
3615   if test -n "$CC"; then
3616   ac_cv_prog_CC="$CC" # Let the user override the test.
3617 else
3618   ac_prog_rejected=no
3619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3620 for as_dir in $PATH
3621 do
3622   IFS=$as_save_IFS
3623   test -z "$as_dir" && as_dir=.
3624     for ac_exec_ext in '' $ac_executable_extensions; do
3625   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3626     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3627        ac_prog_rejected=yes
3628        continue
3629      fi
3630     ac_cv_prog_CC="cc"
3631     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3632     break 2
3633   fi
3634 done
3635   done
3636 IFS=$as_save_IFS
3637
3638 if test $ac_prog_rejected = yes; then
3639   # We found a bogon in the path, so make sure we never use it.
3640   set dummy $ac_cv_prog_CC
3641   shift
3642   if test $# != 0; then
3643     # We chose a different compiler from the bogus one.
3644     # However, it has the same basename, so the bogon will be chosen
3645     # first if we set CC to just the basename; use the full file name.
3646     shift
3647     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3648   fi
3649 fi
3650 fi
3651 fi
3652 CC=$ac_cv_prog_CC
3653 if test -n "$CC"; then
3654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3655 $as_echo "$CC" >&6; }
3656 else
3657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3658 $as_echo "no" >&6; }
3659 fi
3660
3661
3662 fi
3663 if test -z "$CC"; then
3664   if test -n "$ac_tool_prefix"; then
3665   for ac_prog in cl.exe
3666   do
3667     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3668 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3670 $as_echo_n "checking for $ac_word... " >&6; }
3671 if ${ac_cv_prog_CC+:} false; then :
3672   $as_echo_n "(cached) " >&6
3673 else
3674   if test -n "$CC"; then
3675   ac_cv_prog_CC="$CC" # Let the user override the test.
3676 else
3677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3678 for as_dir in $PATH
3679 do
3680   IFS=$as_save_IFS
3681   test -z "$as_dir" && as_dir=.
3682     for ac_exec_ext in '' $ac_executable_extensions; do
3683   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3684     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3685     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3686     break 2
3687   fi
3688 done
3689   done
3690 IFS=$as_save_IFS
3691
3692 fi
3693 fi
3694 CC=$ac_cv_prog_CC
3695 if test -n "$CC"; then
3696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3697 $as_echo "$CC" >&6; }
3698 else
3699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3700 $as_echo "no" >&6; }
3701 fi
3702
3703
3704     test -n "$CC" && break
3705   done
3706 fi
3707 if test -z "$CC"; then
3708   ac_ct_CC=$CC
3709   for ac_prog in cl.exe
3710 do
3711   # Extract the first word of "$ac_prog", so it can be a program name with args.
3712 set dummy $ac_prog; ac_word=$2
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3714 $as_echo_n "checking for $ac_word... " >&6; }
3715 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3716   $as_echo_n "(cached) " >&6
3717 else
3718   if test -n "$ac_ct_CC"; then
3719   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3720 else
3721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3722 for as_dir in $PATH
3723 do
3724   IFS=$as_save_IFS
3725   test -z "$as_dir" && as_dir=.
3726     for ac_exec_ext in '' $ac_executable_extensions; do
3727   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3728     ac_cv_prog_ac_ct_CC="$ac_prog"
3729     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3730     break 2
3731   fi
3732 done
3733   done
3734 IFS=$as_save_IFS
3735
3736 fi
3737 fi
3738 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3739 if test -n "$ac_ct_CC"; then
3740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3741 $as_echo "$ac_ct_CC" >&6; }
3742 else
3743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3744 $as_echo "no" >&6; }
3745 fi
3746
3747
3748   test -n "$ac_ct_CC" && break
3749 done
3750
3751   if test "x$ac_ct_CC" = x; then
3752     CC=""
3753   else
3754     case $cross_compiling:$ac_tool_warned in
3755 yes:)
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3757 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3758 ac_tool_warned=yes ;;
3759 esac
3760     CC=$ac_ct_CC
3761   fi
3762 fi
3763
3764 fi
3765
3766
3767 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3768 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3769 as_fn_error $? "no acceptable C compiler found in \$PATH
3770 See \`config.log' for more details" "$LINENO" 5; }
3771
3772 # Provide some information about the compiler.
3773 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3774 set X $ac_compile
3775 ac_compiler=$2
3776 for ac_option in --version -v -V -qversion; do
3777   { { ac_try="$ac_compiler $ac_option >&5"
3778 case "(($ac_try" in
3779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3780   *) ac_try_echo=$ac_try;;
3781 esac
3782 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3783 $as_echo "$ac_try_echo"; } >&5
3784   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3785   ac_status=$?
3786   if test -s conftest.err; then
3787     sed '10a\
3788 ... rest of stderr output deleted ...
3789          10q' conftest.err >conftest.er1
3790     cat conftest.er1 >&5
3791   fi
3792   rm -f conftest.er1 conftest.err
3793   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3794   test $ac_status = 0; }
3795 done
3796
3797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3798 /* end confdefs.h.  */
3799
3800 int
3801 main ()
3802 {
3803
3804   ;
3805   return 0;
3806 }
3807 _ACEOF
3808 ac_clean_files_save=$ac_clean_files
3809 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3810 # Try to create an executable without -o first, disregard a.out.
3811 # It will help us diagnose broken compilers, and finding out an intuition
3812 # of exeext.
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3814 $as_echo_n "checking whether the C compiler works... " >&6; }
3815 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3816
3817 # The possible output files:
3818 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3819
3820 ac_rmfiles=
3821 for ac_file in $ac_files
3822 do
3823   case $ac_file in
3824     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3825     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3826   esac
3827 done
3828 rm -f $ac_rmfiles
3829
3830 if { { ac_try="$ac_link_default"
3831 case "(($ac_try" in
3832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3833   *) ac_try_echo=$ac_try;;
3834 esac
3835 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3836 $as_echo "$ac_try_echo"; } >&5
3837   (eval "$ac_link_default") 2>&5
3838   ac_status=$?
3839   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3840   test $ac_status = 0; }; then :
3841   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3842 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3843 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3844 # so that the user can short-circuit this test for compilers unknown to
3845 # Autoconf.
3846 for ac_file in $ac_files ''
3847 do
3848   test -f "$ac_file" || continue
3849   case $ac_file in
3850     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3851         ;;
3852     [ab].out )
3853         # We found the default executable, but exeext='' is most
3854         # certainly right.
3855         break;;
3856     *.* )
3857         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3858         then :; else
3859            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3860         fi
3861         # We set ac_cv_exeext here because the later test for it is not
3862         # safe: cross compilers may not add the suffix if given an `-o'
3863         # argument, so we may need to know it at that point already.
3864         # Even if this section looks crufty: it has the advantage of
3865         # actually working.
3866         break;;
3867     * )
3868         break;;
3869   esac
3870 done
3871 test "$ac_cv_exeext" = no && ac_cv_exeext=
3872
3873 else
3874   ac_file=''
3875 fi
3876 if test -z "$ac_file"; then :
3877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3878 $as_echo "no" >&6; }
3879 $as_echo "$as_me: failed program was:" >&5
3880 sed 's/^/| /' conftest.$ac_ext >&5
3881
3882 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3883 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3884 as_fn_error 77 "C compiler cannot create executables
3885 See \`config.log' for more details" "$LINENO" 5; }
3886 else
3887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3888 $as_echo "yes" >&6; }
3889 fi
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3891 $as_echo_n "checking for C compiler default output file name... " >&6; }
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3893 $as_echo "$ac_file" >&6; }
3894 ac_exeext=$ac_cv_exeext
3895
3896 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3897 ac_clean_files=$ac_clean_files_save
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3899 $as_echo_n "checking for suffix of executables... " >&6; }
3900 if { { ac_try="$ac_link"
3901 case "(($ac_try" in
3902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3903   *) ac_try_echo=$ac_try;;
3904 esac
3905 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3906 $as_echo "$ac_try_echo"; } >&5
3907   (eval "$ac_link") 2>&5
3908   ac_status=$?
3909   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3910   test $ac_status = 0; }; then :
3911   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3912 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3913 # work properly (i.e., refer to `conftest.exe'), while it won't with
3914 # `rm'.
3915 for ac_file in conftest.exe conftest conftest.*; do
3916   test -f "$ac_file" || continue
3917   case $ac_file in
3918     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3919     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3920           break;;
3921     * ) break;;
3922   esac
3923 done
3924 else
3925   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3926 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3927 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3928 See \`config.log' for more details" "$LINENO" 5; }
3929 fi
3930 rm -f conftest conftest$ac_cv_exeext
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3932 $as_echo "$ac_cv_exeext" >&6; }
3933
3934 rm -f conftest.$ac_ext
3935 EXEEXT=$ac_cv_exeext
3936 ac_exeext=$EXEEXT
3937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3938 /* end confdefs.h.  */
3939 #include <stdio.h>
3940 int
3941 main ()
3942 {
3943 FILE *f = fopen ("conftest.out", "w");
3944  return ferror (f) || fclose (f) != 0;
3945
3946   ;
3947   return 0;
3948 }
3949 _ACEOF
3950 ac_clean_files="$ac_clean_files conftest.out"
3951 # Check that the compiler produces executables we can run.  If not, either
3952 # the compiler is broken, or we cross compile.
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3954 $as_echo_n "checking whether we are cross compiling... " >&6; }
3955 if test "$cross_compiling" != yes; then
3956   { { ac_try="$ac_link"
3957 case "(($ac_try" in
3958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3959   *) ac_try_echo=$ac_try;;
3960 esac
3961 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3962 $as_echo "$ac_try_echo"; } >&5
3963   (eval "$ac_link") 2>&5
3964   ac_status=$?
3965   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3966   test $ac_status = 0; }
3967   if { ac_try='./conftest$ac_cv_exeext'
3968   { { case "(($ac_try" in
3969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3970   *) ac_try_echo=$ac_try;;
3971 esac
3972 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3973 $as_echo "$ac_try_echo"; } >&5
3974   (eval "$ac_try") 2>&5
3975   ac_status=$?
3976   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3977   test $ac_status = 0; }; }; then
3978     cross_compiling=no
3979   else
3980     if test "$cross_compiling" = maybe; then
3981         cross_compiling=yes
3982     else
3983         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3984 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3985 as_fn_error $? "cannot run C compiled programs.
3986 If you meant to cross compile, use \`--host'.
3987 See \`config.log' for more details" "$LINENO" 5; }
3988     fi
3989   fi
3990 fi
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3992 $as_echo "$cross_compiling" >&6; }
3993
3994 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3995 ac_clean_files=$ac_clean_files_save
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3997 $as_echo_n "checking for suffix of object files... " >&6; }
3998 if ${ac_cv_objext+:} false; then :
3999   $as_echo_n "(cached) " >&6
4000 else
4001   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4002 /* end confdefs.h.  */
4003
4004 int
4005 main ()
4006 {
4007
4008   ;
4009   return 0;
4010 }
4011 _ACEOF
4012 rm -f conftest.o conftest.obj
4013 if { { ac_try="$ac_compile"
4014 case "(($ac_try" in
4015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4016   *) ac_try_echo=$ac_try;;
4017 esac
4018 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4019 $as_echo "$ac_try_echo"; } >&5
4020   (eval "$ac_compile") 2>&5
4021   ac_status=$?
4022   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4023   test $ac_status = 0; }; then :
4024   for ac_file in conftest.o conftest.obj conftest.*; do
4025   test -f "$ac_file" || continue;
4026   case $ac_file in
4027     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4028     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4029        break;;
4030   esac
4031 done
4032 else
4033   $as_echo "$as_me: failed program was:" >&5
4034 sed 's/^/| /' conftest.$ac_ext >&5
4035
4036 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4037 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4038 as_fn_error $? "cannot compute suffix of object files: cannot compile
4039 See \`config.log' for more details" "$LINENO" 5; }
4040 fi
4041 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4042 fi
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4044 $as_echo "$ac_cv_objext" >&6; }
4045 OBJEXT=$ac_cv_objext
4046 ac_objext=$OBJEXT
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4048 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4049 if ${ac_cv_c_compiler_gnu+:} false; then :
4050   $as_echo_n "(cached) " >&6
4051 else
4052   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4053 /* end confdefs.h.  */
4054
4055 int
4056 main ()
4057 {
4058 #ifndef __GNUC__
4059        choke me
4060 #endif
4061
4062   ;
4063   return 0;
4064 }
4065 _ACEOF
4066 if ac_fn_c_try_compile "$LINENO"; then :
4067   ac_compiler_gnu=yes
4068 else
4069   ac_compiler_gnu=no
4070 fi
4071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4072 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4073
4074 fi
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4076 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4077 if test $ac_compiler_gnu = yes; then
4078   GCC=yes
4079 else
4080   GCC=
4081 fi
4082 ac_test_CFLAGS=${CFLAGS+set}
4083 ac_save_CFLAGS=$CFLAGS
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4085 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4086 if ${ac_cv_prog_cc_g+:} false; then :
4087   $as_echo_n "(cached) " >&6
4088 else
4089   ac_save_c_werror_flag=$ac_c_werror_flag
4090    ac_c_werror_flag=yes
4091    ac_cv_prog_cc_g=no
4092    CFLAGS="-g"
4093    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4094 /* end confdefs.h.  */
4095
4096 int
4097 main ()
4098 {
4099
4100   ;
4101   return 0;
4102 }
4103 _ACEOF
4104 if ac_fn_c_try_compile "$LINENO"; then :
4105   ac_cv_prog_cc_g=yes
4106 else
4107   CFLAGS=""
4108       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4109 /* end confdefs.h.  */
4110
4111 int
4112 main ()
4113 {
4114
4115   ;
4116   return 0;
4117 }
4118 _ACEOF
4119 if ac_fn_c_try_compile "$LINENO"; then :
4120
4121 else
4122   ac_c_werror_flag=$ac_save_c_werror_flag
4123          CFLAGS="-g"
4124          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4125 /* end confdefs.h.  */
4126
4127 int
4128 main ()
4129 {
4130
4131   ;
4132   return 0;
4133 }
4134 _ACEOF
4135 if ac_fn_c_try_compile "$LINENO"; then :
4136   ac_cv_prog_cc_g=yes
4137 fi
4138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4139 fi
4140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4141 fi
4142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4143    ac_c_werror_flag=$ac_save_c_werror_flag
4144 fi
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4146 $as_echo "$ac_cv_prog_cc_g" >&6; }
4147 if test "$ac_test_CFLAGS" = set; then
4148   CFLAGS=$ac_save_CFLAGS
4149 elif test $ac_cv_prog_cc_g = yes; then
4150   if test "$GCC" = yes; then
4151     CFLAGS="-g -O2"
4152   else
4153     CFLAGS="-g"
4154   fi
4155 else
4156   if test "$GCC" = yes; then
4157     CFLAGS="-O2"
4158   else
4159     CFLAGS=
4160   fi
4161 fi
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4163 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4164 if ${ac_cv_prog_cc_c89+:} false; then :
4165   $as_echo_n "(cached) " >&6
4166 else
4167   ac_cv_prog_cc_c89=no
4168 ac_save_CC=$CC
4169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4170 /* end confdefs.h.  */
4171 #include <stdarg.h>
4172 #include <stdio.h>
4173 #include <sys/types.h>
4174 #include <sys/stat.h>
4175 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4176 struct buf { int x; };
4177 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4178 static char *e (p, i)
4179      char **p;
4180      int i;
4181 {
4182   return p[i];
4183 }
4184 static char *f (char * (*g) (char **, int), char **p, ...)
4185 {
4186   char *s;
4187   va_list v;
4188   va_start (v,p);
4189   s = g (p, va_arg (v,int));
4190   va_end (v);
4191   return s;
4192 }
4193
4194 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4195    function prototypes and stuff, but not '\xHH' hex character constants.
4196    These don't provoke an error unfortunately, instead are silently treated
4197    as 'x'.  The following induces an error, until -std is added to get
4198    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4199    array size at least.  It's necessary to write '\x00'==0 to get something
4200    that's true only with -std.  */
4201 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4202
4203 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4204    inside strings and character constants.  */
4205 #define FOO(x) 'x'
4206 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4207
4208 int test (int i, double x);
4209 struct s1 {int (*f) (int a);};
4210 struct s2 {int (*f) (double a);};
4211 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4212 int argc;
4213 char **argv;
4214 int
4215 main ()
4216 {
4217 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4218   ;
4219   return 0;
4220 }
4221 _ACEOF
4222 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4223         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4224 do
4225   CC="$ac_save_CC $ac_arg"
4226   if ac_fn_c_try_compile "$LINENO"; then :
4227   ac_cv_prog_cc_c89=$ac_arg
4228 fi
4229 rm -f core conftest.err conftest.$ac_objext
4230   test "x$ac_cv_prog_cc_c89" != "xno" && break
4231 done
4232 rm -f conftest.$ac_ext
4233 CC=$ac_save_CC
4234
4235 fi
4236 # AC_CACHE_VAL
4237 case "x$ac_cv_prog_cc_c89" in
4238   x)
4239     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4240 $as_echo "none needed" >&6; } ;;
4241   xno)
4242     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4243 $as_echo "unsupported" >&6; } ;;
4244   *)
4245     CC="$CC $ac_cv_prog_cc_c89"
4246     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4247 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4248 esac
4249 if test "x$ac_cv_prog_cc_c89" != xno; then :
4250
4251 fi
4252
4253 ac_ext=c
4254 ac_cpp='$CPP $CPPFLAGS'
4255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4258
4259 depcc="$CC"   am_compiler_list=
4260
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4262 $as_echo_n "checking dependency style of $depcc... " >&6; }
4263 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4264   $as_echo_n "(cached) " >&6
4265 else
4266   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4267   # We make a subdir and do the tests there.  Otherwise we can end up
4268   # making bogus files that we don't know about and never remove.  For
4269   # instance it was reported that on HP-UX the gcc test will end up
4270   # making a dummy file named `D' -- because `-MD' means `put the output
4271   # in D'.
4272   mkdir conftest.dir
4273   # Copy depcomp to subdir because otherwise we won't find it if we're
4274   # using a relative directory.
4275   cp "$am_depcomp" conftest.dir
4276   cd conftest.dir
4277   # We will build objects and dependencies in a subdirectory because
4278   # it helps to detect inapplicable dependency modes.  For instance
4279   # both Tru64's cc and ICC support -MD to output dependencies as a
4280   # side effect of compilation, but ICC will put the dependencies in
4281   # the current directory while Tru64 will put them in the object
4282   # directory.
4283   mkdir sub
4284
4285   am_cv_CC_dependencies_compiler_type=none
4286   if test "$am_compiler_list" = ""; then
4287      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4288   fi
4289   am__universal=false
4290   case " $depcc " in #(
4291      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4292      esac
4293
4294   for depmode in $am_compiler_list; do
4295     # Setup a source with many dependencies, because some compilers
4296     # like to wrap large dependency lists on column 80 (with \), and
4297     # we should not choose a depcomp mode which is confused by this.
4298     #
4299     # We need to recreate these files for each test, as the compiler may
4300     # overwrite some of them when testing with obscure command lines.
4301     # This happens at least with the AIX C compiler.
4302     : > sub/conftest.c
4303     for i in 1 2 3 4 5 6; do
4304       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4305       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4306       # Solaris 8's {/usr,}/bin/sh.
4307       touch sub/conftst$i.h
4308     done
4309     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4310
4311     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4312     # mode.  It turns out that the SunPro C++ compiler does not properly
4313     # handle `-M -o', and we need to detect this.  Also, some Intel
4314     # versions had trouble with output in subdirs
4315     am__obj=sub/conftest.${OBJEXT-o}
4316     am__minus_obj="-o $am__obj"
4317     case $depmode in
4318     gcc)
4319       # This depmode causes a compiler race in universal mode.
4320       test "$am__universal" = false || continue
4321       ;;
4322     nosideeffect)
4323       # after this tag, mechanisms are not by side-effect, so they'll
4324       # only be used when explicitly requested
4325       if test "x$enable_dependency_tracking" = xyes; then
4326         continue
4327       else
4328         break
4329       fi
4330       ;;
4331     msvisualcpp | msvcmsys)
4332       # This compiler won't grok `-c -o', but also, the minuso test has
4333       # not run yet.  These depmodes are late enough in the game, and
4334       # so weak that their functioning should not be impacted.
4335       am__obj=conftest.${OBJEXT-o}
4336       am__minus_obj=
4337       ;;
4338     none) break ;;
4339     esac
4340     if depmode=$depmode \
4341        source=sub/conftest.c object=$am__obj \
4342        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4343        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4344          >/dev/null 2>conftest.err &&
4345        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4346        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4347        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4348        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4349       # icc doesn't choke on unknown options, it will just issue warnings
4350       # or remarks (even with -Werror).  So we grep stderr for any message
4351       # that says an option was ignored or not supported.
4352       # When given -MP, icc 7.0 and 7.1 complain thusly:
4353       #   icc: Command line warning: ignoring option '-M'; no argument required
4354       # The diagnosis changed in icc 8.0:
4355       #   icc: Command line remark: option '-MP' not supported
4356       if (grep 'ignoring option' conftest.err ||
4357           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4358         am_cv_CC_dependencies_compiler_type=$depmode
4359         break
4360       fi
4361     fi
4362   done
4363
4364   cd ..
4365   rm -rf conftest.dir
4366 else
4367   am_cv_CC_dependencies_compiler_type=none
4368 fi
4369
4370 fi
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4372 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4373 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4374
4375  if
4376   test "x$enable_dependency_tracking" != xno \
4377   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4378   am__fastdepCC_TRUE=
4379   am__fastdepCC_FALSE='#'
4380 else
4381   am__fastdepCC_TRUE='#'
4382   am__fastdepCC_FALSE=
4383 fi
4384
4385
4386
4387 ac_ext=c
4388 ac_cpp='$CPP $CPPFLAGS'
4389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4393 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4394 # On Suns, sometimes $CPP names a directory.
4395 if test -n "$CPP" && test -d "$CPP"; then
4396   CPP=
4397 fi
4398 if test -z "$CPP"; then
4399   if ${ac_cv_prog_CPP+:} false; then :
4400   $as_echo_n "(cached) " >&6
4401 else
4402       # Double quotes because CPP needs to be expanded
4403     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4404     do
4405       ac_preproc_ok=false
4406 for ac_c_preproc_warn_flag in '' yes
4407 do
4408   # Use a header file that comes with gcc, so configuring glibc
4409   # with a fresh cross-compiler works.
4410   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4411   # <limits.h> exists even on freestanding compilers.
4412   # On the NeXT, cc -E runs the code through the compiler's parser,
4413   # not just through cpp. "Syntax error" is here to catch this case.
4414   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4415 /* end confdefs.h.  */
4416 #ifdef __STDC__
4417 # include <limits.h>
4418 #else
4419 # include <assert.h>
4420 #endif
4421                      Syntax error
4422 _ACEOF
4423 if ac_fn_c_try_cpp "$LINENO"; then :
4424
4425 else
4426   # Broken: fails on valid input.
4427 continue
4428 fi
4429 rm -f conftest.err conftest.i conftest.$ac_ext
4430
4431   # OK, works on sane cases.  Now check whether nonexistent headers
4432   # can be detected and how.
4433   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4434 /* end confdefs.h.  */
4435 #include <ac_nonexistent.h>
4436 _ACEOF
4437 if ac_fn_c_try_cpp "$LINENO"; then :
4438   # Broken: success on invalid input.
4439 continue
4440 else
4441   # Passes both tests.
4442 ac_preproc_ok=:
4443 break
4444 fi
4445 rm -f conftest.err conftest.i conftest.$ac_ext
4446
4447 done
4448 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4449 rm -f conftest.i conftest.err conftest.$ac_ext
4450 if $ac_preproc_ok; then :
4451   break
4452 fi
4453
4454     done
4455     ac_cv_prog_CPP=$CPP
4456
4457 fi
4458   CPP=$ac_cv_prog_CPP
4459 else
4460   ac_cv_prog_CPP=$CPP
4461 fi
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4463 $as_echo "$CPP" >&6; }
4464 ac_preproc_ok=false
4465 for ac_c_preproc_warn_flag in '' yes
4466 do
4467   # Use a header file that comes with gcc, so configuring glibc
4468   # with a fresh cross-compiler works.
4469   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4470   # <limits.h> exists even on freestanding compilers.
4471   # On the NeXT, cc -E runs the code through the compiler's parser,
4472   # not just through cpp. "Syntax error" is here to catch this case.
4473   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4474 /* end confdefs.h.  */
4475 #ifdef __STDC__
4476 # include <limits.h>
4477 #else
4478 # include <assert.h>
4479 #endif
4480                      Syntax error
4481 _ACEOF
4482 if ac_fn_c_try_cpp "$LINENO"; then :
4483
4484 else
4485   # Broken: fails on valid input.
4486 continue
4487 fi
4488 rm -f conftest.err conftest.i conftest.$ac_ext
4489
4490   # OK, works on sane cases.  Now check whether nonexistent headers
4491   # can be detected and how.
4492   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4493 /* end confdefs.h.  */
4494 #include <ac_nonexistent.h>
4495 _ACEOF
4496 if ac_fn_c_try_cpp "$LINENO"; then :
4497   # Broken: success on invalid input.
4498 continue
4499 else
4500   # Passes both tests.
4501 ac_preproc_ok=:
4502 break
4503 fi
4504 rm -f conftest.err conftest.i conftest.$ac_ext
4505
4506 done
4507 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4508 rm -f conftest.i conftest.err conftest.$ac_ext
4509 if $ac_preproc_ok; then :
4510
4511 else
4512   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4513 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4514 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4515 See \`config.log' for more details" "$LINENO" 5; }
4516 fi
4517
4518 ac_ext=c
4519 ac_cpp='$CPP $CPPFLAGS'
4520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4523
4524
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4526 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4527 if ${ac_cv_path_GREP+:} false; then :
4528   $as_echo_n "(cached) " >&6
4529 else
4530   if test -z "$GREP"; then
4531   ac_path_GREP_found=false
4532   # Loop through the user's path and test for each of PROGNAME-LIST
4533   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4534 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4535 do
4536   IFS=$as_save_IFS
4537   test -z "$as_dir" && as_dir=.
4538     for ac_prog in grep ggrep; do
4539     for ac_exec_ext in '' $ac_executable_extensions; do
4540       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4541       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4542 # Check for GNU ac_path_GREP and select it if it is found.
4543   # Check for GNU $ac_path_GREP
4544 case `"$ac_path_GREP" --version 2>&1` in
4545 *GNU*)
4546   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4547 *)
4548   ac_count=0
4549   $as_echo_n 0123456789 >"conftest.in"
4550   while :
4551   do
4552     cat "conftest.in" "conftest.in" >"conftest.tmp"
4553     mv "conftest.tmp" "conftest.in"
4554     cp "conftest.in" "conftest.nl"
4555     $as_echo 'GREP' >> "conftest.nl"
4556     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4557     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4558     as_fn_arith $ac_count + 1 && ac_count=$as_val
4559     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4560       # Best one so far, save it but keep looking for a better one
4561       ac_cv_path_GREP="$ac_path_GREP"
4562       ac_path_GREP_max=$ac_count
4563     fi
4564     # 10*(2^10) chars as input seems more than enough
4565     test $ac_count -gt 10 && break
4566   done
4567   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4568 esac
4569
4570       $ac_path_GREP_found && break 3
4571     done
4572   done
4573   done
4574 IFS=$as_save_IFS
4575   if test -z "$ac_cv_path_GREP"; then
4576     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4577   fi
4578 else
4579   ac_cv_path_GREP=$GREP
4580 fi
4581
4582 fi
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4584 $as_echo "$ac_cv_path_GREP" >&6; }
4585  GREP="$ac_cv_path_GREP"
4586
4587
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4589 $as_echo_n "checking for egrep... " >&6; }
4590 if ${ac_cv_path_EGREP+:} false; then :
4591   $as_echo_n "(cached) " >&6
4592 else
4593   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4594    then ac_cv_path_EGREP="$GREP -E"
4595    else
4596      if test -z "$EGREP"; then
4597   ac_path_EGREP_found=false
4598   # Loop through the user's path and test for each of PROGNAME-LIST
4599   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4600 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4601 do
4602   IFS=$as_save_IFS
4603   test -z "$as_dir" && as_dir=.
4604     for ac_prog in egrep; do
4605     for ac_exec_ext in '' $ac_executable_extensions; do
4606       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4607       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4608 # Check for GNU ac_path_EGREP and select it if it is found.
4609   # Check for GNU $ac_path_EGREP
4610 case `"$ac_path_EGREP" --version 2>&1` in
4611 *GNU*)
4612   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4613 *)
4614   ac_count=0
4615   $as_echo_n 0123456789 >"conftest.in"
4616   while :
4617   do
4618     cat "conftest.in" "conftest.in" >"conftest.tmp"
4619     mv "conftest.tmp" "conftest.in"
4620     cp "conftest.in" "conftest.nl"
4621     $as_echo 'EGREP' >> "conftest.nl"
4622     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4623     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4624     as_fn_arith $ac_count + 1 && ac_count=$as_val
4625     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4626       # Best one so far, save it but keep looking for a better one
4627       ac_cv_path_EGREP="$ac_path_EGREP"
4628       ac_path_EGREP_max=$ac_count
4629     fi
4630     # 10*(2^10) chars as input seems more than enough
4631     test $ac_count -gt 10 && break
4632   done
4633   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4634 esac
4635
4636       $ac_path_EGREP_found && break 3
4637     done
4638   done
4639   done
4640 IFS=$as_save_IFS
4641   if test -z "$ac_cv_path_EGREP"; then
4642     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4643   fi
4644 else
4645   ac_cv_path_EGREP=$EGREP
4646 fi
4647
4648    fi
4649 fi
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4651 $as_echo "$ac_cv_path_EGREP" >&6; }
4652  EGREP="$ac_cv_path_EGREP"
4653
4654
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4656 $as_echo_n "checking for ANSI C header files... " >&6; }
4657 if ${ac_cv_header_stdc+:} false; then :
4658   $as_echo_n "(cached) " >&6
4659 else
4660   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4661 /* end confdefs.h.  */
4662 #include <stdlib.h>
4663 #include <stdarg.h>
4664 #include <string.h>
4665 #include <float.h>
4666
4667 int
4668 main ()
4669 {
4670
4671   ;
4672   return 0;
4673 }
4674 _ACEOF
4675 if ac_fn_c_try_compile "$LINENO"; then :
4676   ac_cv_header_stdc=yes
4677 else
4678   ac_cv_header_stdc=no
4679 fi
4680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4681
4682 if test $ac_cv_header_stdc = yes; then
4683   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4684   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4685 /* end confdefs.h.  */
4686 #include <string.h>
4687
4688 _ACEOF
4689 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4690   $EGREP "memchr" >/dev/null 2>&1; then :
4691
4692 else
4693   ac_cv_header_stdc=no
4694 fi
4695 rm -f conftest*
4696
4697 fi
4698
4699 if test $ac_cv_header_stdc = yes; then
4700   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4701   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4702 /* end confdefs.h.  */
4703 #include <stdlib.h>
4704
4705 _ACEOF
4706 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4707   $EGREP "free" >/dev/null 2>&1; then :
4708
4709 else
4710   ac_cv_header_stdc=no
4711 fi
4712 rm -f conftest*
4713
4714 fi
4715
4716 if test $ac_cv_header_stdc = yes; then
4717   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4718   if test "$cross_compiling" = yes; then :
4719   :
4720 else
4721   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4722 /* end confdefs.h.  */
4723 #include <ctype.h>
4724 #include <stdlib.h>
4725 #if ((' ' & 0x0FF) == 0x020)
4726 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4727 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4728 #else
4729 # define ISLOWER(c) \
4730                    (('a' <= (c) && (c) <= 'i') \
4731                      || ('j' <= (c) && (c) <= 'r') \
4732                      || ('s' <= (c) && (c) <= 'z'))
4733 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4734 #endif
4735
4736 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4737 int
4738 main ()
4739 {
4740   int i;
4741   for (i = 0; i < 256; i++)
4742     if (XOR (islower (i), ISLOWER (i))
4743         || toupper (i) != TOUPPER (i))
4744       return 2;
4745   return 0;
4746 }
4747 _ACEOF
4748 if ac_fn_c_try_run "$LINENO"; then :
4749
4750 else
4751   ac_cv_header_stdc=no
4752 fi
4753 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4754   conftest.$ac_objext conftest.beam conftest.$ac_ext
4755 fi
4756
4757 fi
4758 fi
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4760 $as_echo "$ac_cv_header_stdc" >&6; }
4761 if test $ac_cv_header_stdc = yes; then
4762
4763 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4764
4765 fi
4766
4767 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4768 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4769                   inttypes.h stdint.h unistd.h
4770 do :
4771   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4772 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4773 "
4774 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4775   cat >>confdefs.h <<_ACEOF
4776 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4777 _ACEOF
4778
4779 fi
4780
4781 done
4782
4783
4784 ac_fn_c_check_header_mongrel "$LINENO" "OpenGL/gl.h" "ac_cv_header_OpenGL_gl_h" "$ac_includes_default"
4785 if test "x$ac_cv_header_OpenGL_gl_h" = xyes; then :
4786   platform_quartz=yes
4787 else
4788   platform_quartz=no
4789 fi
4790
4791
4792  if test "$platform_quartz" = "yes"; then
4793   OS_QUARTZ_TRUE=
4794   OS_QUARTZ_FALSE='#'
4795 else
4796   OS_QUARTZ_TRUE='#'
4797   OS_QUARTZ_FALSE=
4798 fi
4799
4800
4801
4802
4803 # Check whether --enable-debug was given.
4804 if test "${enable_debug+set}" = set; then :
4805   enableval=$enable_debug;
4806 else
4807   enable_debug=no
4808
4809 fi
4810
4811 case $enable_debug in #(
4812   yes) :
4813
4814     test "$cflags_set" = set || CFLAGS="$CFLAGS -g -O0"
4815     COGL_EXTRA_CFLAGS="$COGL_EXTRA_CFLAGS -DCOGL_GL_DEBUG -DCOGL_OBJECT_DEBUG -DCOGL_HANDLE_DEBUG -DCOGL_ENABLE_DEBUG"
4816    ;; #(
4817   no) :
4818
4819     COGL_EXTRA_CFLAGS="$COGL_EXTRA_CFLAGS -DCOGL_ENABLE_DEBUG -DG_DISABLE_CHECKS -DG_DISABLE_CAST_CHECKS"
4820    ;; #(
4821   *) :
4822     as_fn_error $? "Unknown argument for --enable-debug" "$LINENO" 5
4823  ;;
4824 esac
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4837         if test -n "$ac_tool_prefix"; then
4838   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4839 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4841 $as_echo_n "checking for $ac_word... " >&6; }
4842 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4843   $as_echo_n "(cached) " >&6
4844 else
4845   case $PKG_CONFIG in
4846   [\\/]* | ?:[\\/]*)
4847   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4848   ;;
4849   *)
4850   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4851 for as_dir in $PATH
4852 do
4853   IFS=$as_save_IFS
4854   test -z "$as_dir" && as_dir=.
4855     for ac_exec_ext in '' $ac_executable_extensions; do
4856   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4857     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4858     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4859     break 2
4860   fi
4861 done
4862   done
4863 IFS=$as_save_IFS
4864
4865   ;;
4866 esac
4867 fi
4868 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4869 if test -n "$PKG_CONFIG"; then
4870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4871 $as_echo "$PKG_CONFIG" >&6; }
4872 else
4873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4874 $as_echo "no" >&6; }
4875 fi
4876
4877
4878 fi
4879 if test -z "$ac_cv_path_PKG_CONFIG"; then
4880   ac_pt_PKG_CONFIG=$PKG_CONFIG
4881   # Extract the first word of "pkg-config", so it can be a program name with args.
4882 set dummy pkg-config; ac_word=$2
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4884 $as_echo_n "checking for $ac_word... " >&6; }
4885 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4886   $as_echo_n "(cached) " >&6
4887 else
4888   case $ac_pt_PKG_CONFIG in
4889   [\\/]* | ?:[\\/]*)
4890   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4891   ;;
4892   *)
4893   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4894 for as_dir in $PATH
4895 do
4896   IFS=$as_save_IFS
4897   test -z "$as_dir" && as_dir=.
4898     for ac_exec_ext in '' $ac_executable_extensions; do
4899   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4900     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4901     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4902     break 2
4903   fi
4904 done
4905   done
4906 IFS=$as_save_IFS
4907
4908   ;;
4909 esac
4910 fi
4911 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4912 if test -n "$ac_pt_PKG_CONFIG"; then
4913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4914 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4915 else
4916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4917 $as_echo "no" >&6; }
4918 fi
4919
4920   if test "x$ac_pt_PKG_CONFIG" = x; then
4921     PKG_CONFIG=""
4922   else
4923     case $cross_compiling:$ac_tool_warned in
4924 yes:)
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4926 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4927 ac_tool_warned=yes ;;
4928 esac
4929     PKG_CONFIG=$ac_pt_PKG_CONFIG
4930   fi
4931 else
4932   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4933 fi
4934
4935 fi
4936 if test -n "$PKG_CONFIG"; then
4937         _pkg_min_version=0.9.0
4938         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4939 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4940         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4941                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4942 $as_echo "yes" >&6; }
4943         else
4944                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4945 $as_echo "no" >&6; }
4946                 PKG_CONFIG=""
4947         fi
4948 fi
4949 if test -n "$PKG_CONFIG" && \
4950     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"CAIRO\""; } >&5
4951   ($PKG_CONFIG --exists --print-errors "CAIRO") 2>&5
4952   ac_status=$?
4953   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4954   test $ac_status = 0; }; then
4955   cairo >= 1.10
4956 else
4957   have_cairo=yes
4958 fi
4959 # Check whether --enable-cairo was given.
4960 if test "${enable_cairo+set}" = set; then :
4961   enableval=$enable_cairo;
4962 else
4963
4964     if test "x$enable_debug" = "xyes"; then :
4965   enable_cairo=$have_cairo
4966 else
4967   enable_cairo=no
4968 fi
4969
4970
4971 fi
4972
4973 if test "x$enable_cairo" = "xyes" && test "x$enable_debug" = "xyes"; then :
4974
4975         if test "x$have_cairo" != "xyes"; then :
4976   as_fn_error $? "Could not find Cairo" "$LINENO" 5
4977 fi
4978
4979         COGL_PKG_REQUIRES="$COGL_PKG_REQUIRES cairo >= 1.10"
4980
4981 $as_echo "#define HAVE_CAIRO 1" >>confdefs.h
4982
4983
4984 fi
4985
4986
4987 # Check whether --enable-profile was given.
4988 if test "${enable_profile+set}" = set; then :
4989   enableval=$enable_profile;
4990 else
4991   enable_profile=no
4992 fi
4993
4994 if test "x$enable_profile" = "xyes"; then :
4995
4996         if test "x$GCC" = "xyes"; then :
4997
4998                 COGL_PKG_REQUIRES="$COGL_PKG_REQUIRES uprof-0.3"
4999                 COGL_EXTRA_CFLAGS="$COGL_EXTRA_CFLAGS -DCOGL_ENABLE_PROFILE"
5000                 if test "x$enable_debug" = "xyes"; then :
5001   COGL_EXTRA_CFLAGS="$COGL_EXTRA_CFLAGS -DUPROF_DEBUG"
5002 fi
5003
5004 else
5005
5006                 as_fn_error $? "--enable-profile is currently only supported if using GCC" "$LINENO" 5
5007
5008 fi
5009
5010 fi
5011  if test "x$enable_profile" != "xno"; then
5012   PROFILE_TRUE=
5013   PROFILE_FALSE='#'
5014 else
5015   PROFILE_TRUE='#'
5016   PROFILE_FALSE=
5017 fi
5018
5019
5020
5021
5022 # use strict compiler flags only when building from git; the rules for
5023 # distcheck will take care of turning this on when making a release
5024
5025 # Check whether --enable-maintainer-flags was given.
5026 if test "${enable_maintainer_flags+set}" = set; then :
5027   enableval=$enable_maintainer_flags;
5028 else
5029   enable_maintainer_flags=no
5030
5031 fi
5032
5033
5034 MAINTAINER_COMPILER_FLAGS="-Wall -Wcast-align -Wuninitialized
5035                            -Wno-strict-aliasing -Wempty-body -Wformat
5036                            -Wformat-security -Winit-self
5037                            -Wdeclaration-after-statement -Wvla
5038                            -Wpointer-arith -Wmissing-declarations"
5039
5040 case $enable_maintainer_flags in #(
5041   yes) :
5042
5043
5044   list=$MAINTAINER_COMPILER_FLAGS
5045   flags_supported=""
5046   flags_unsupported=""
5047   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supported compiler flags" >&5
5048 $as_echo_n "checking for supported compiler flags... " >&6; }
5049   for each in $list
5050   do
5051     save_CFLAGS="$CFLAGS"
5052     CFLAGS="$CFLAGS $each"
5053     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5054 /* end confdefs.h.  */
5055
5056 int
5057 main ()
5058 {
5059
5060   ;
5061   return 0;
5062 }
5063 _ACEOF
5064 if ac_fn_c_try_compile "$LINENO"; then :
5065   flag_ok=yes
5066 else
5067   flag_ok=no
5068 fi
5069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5070     CFLAGS="$save_CFLAGS"
5071
5072     if test "X$flag_ok" = Xyes ; then
5073       flags_supported="$flags_supported $each"
5074     else
5075       flags_unsupported="$flags_unsupported $each"
5076     fi
5077   done
5078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flags_supported" >&5
5079 $as_echo "$flags_supported" >&6; }
5080   if test "X$flags_unsupported" != X ; then
5081     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unsupported compiler flags: $flags_unsupported" >&5
5082 $as_echo "$as_me: WARNING: unsupported compiler flags: $flags_unsupported" >&2;}
5083   fi
5084   MAINTAINER_CFLAGS="$MAINTAINER_CFLAGS $flags_supported"
5085
5086    ;; #(
5087   no) :
5088
5089    ;; #(
5090   error) :
5091
5092     MAINTAINER_COMPILER_FLAGS="$MAINTAINER_COMPILER_FLAGS -Werror"
5093
5094   list=$MAINTAINER_COMPILER_FLAGS
5095   flags_supported=""
5096   flags_unsupported=""
5097   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supported compiler flags" >&5
5098 $as_echo_n "checking for supported compiler flags... " >&6; }
5099   for each in $list
5100   do
5101     save_CFLAGS="$CFLAGS"
5102     CFLAGS="$CFLAGS $each"
5103     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5104 /* end confdefs.h.  */
5105
5106 int
5107 main ()
5108 {
5109
5110   ;
5111   return 0;
5112 }
5113 _ACEOF
5114 if ac_fn_c_try_compile "$LINENO"; then :
5115   flag_ok=yes
5116 else
5117   flag_ok=no
5118 fi
5119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5120     CFLAGS="$save_CFLAGS"
5121
5122     if test "X$flag_ok" = Xyes ; then
5123       flags_supported="$flags_supported $each"
5124     else
5125       flags_unsupported="$flags_unsupported $each"
5126     fi
5127   done
5128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flags_supported" >&5
5129 $as_echo "$flags_supported" >&6; }
5130   if test "X$flags_unsupported" != X ; then
5131     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unsupported compiler flags: $flags_unsupported" >&5
5132 $as_echo "$as_me: WARNING: unsupported compiler flags: $flags_unsupported" >&2;}
5133   fi
5134   MAINTAINER_CFLAGS="$MAINTAINER_CFLAGS $flags_supported"
5135
5136    ;; #(
5137   *) :
5138     as_fn_error $? "Invalid option for --enable-maintainer-flags" "$LINENO" 5
5139  ;; #(
5140   *) :
5141      ;;
5142 esac
5143
5144 # strip leading spaces
5145 COGL_EXTRA_CFLAGS="$COGL_EXTRA_CFLAGS ${MAINTAINER_CFLAGS#*  }"
5146
5147
5148
5149 # disable deprecated options from Glib only when building from git;
5150 # the rules for distcheck will take care of turning this on when
5151 # making a release
5152
5153
5154 # Check whether --enable-deprecated was given.
5155 if test "${enable_deprecated+set}" = set; then :
5156   enableval=$enable_deprecated;
5157 else
5158   enable_deprecated=yes
5159 fi
5160
5161
5162 case $enable_deprecated in #(
5163   no) :
5164
5165           DEPRECATED_CFLAGS="-DG_DISABLE_DEPRECATED -DG_DISABLE_SINGLE_INCLUDES"
5166          ;; #(
5167   yes) :
5168
5169           DEPRECATED_CFLAGS=""
5170          ;; #(
5171   *) :
5172     as_fn_error $? "Unknown argument for --enable-deprecated" "$LINENO" 5
5173  ;;
5174 esac
5175
5176 # strip leading spaces
5177 COGL_EXTRA_CFLAGS="$COGL_EXTRA_CFLAGS ${DEPRECATED_CFLAGS#*  }"
5178
5179 # Check whether --enable-gdk-pixbuf was given.
5180 if test "${enable_gdk_pixbuf+set}" = set; then :
5181   enableval=$enable_gdk_pixbuf;
5182 else
5183   enable_gdk_pixbuf=yes
5184
5185 fi
5186
5187 if test "x$enable_gdk_pixbuf" = "xyes"; then
5188   if test -n "$PKG_CONFIG" && \
5189     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gdk-pixbuf-2.0\""; } >&5
5190   ($PKG_CONFIG --exists --print-errors "gdk-pixbuf-2.0") 2>&5
5191   ac_status=$?
5192   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5193   test $ac_status = 0; }; then
5194   have_gdk_pixbuf=yes
5195 else
5196   have_gdk_pixbuf=no
5197 fi
5198 else
5199   have_gdk_pixbuf=no
5200 fi
5201
5202 # Check whether --enable-quartz-image was given.
5203 if test "${enable_quartz_image+set}" = set; then :
5204   enableval=$enable_quartz_image;
5205 else
5206   enable_quartz_image=no
5207
5208 fi
5209
5210
5211 if test "x$have_gdk_pixbuf" = "xyes"; then :
5212
5213
5214 $as_echo "#define USE_GDKPIXBUF 1" >>confdefs.h
5215
5216     COGL_PKG_REQUIRES="$COGL_PKG_REQUIRES gdk-pixbuf-2.0 >= 2.0"
5217     COGL_IMAGE_BACKEND="gdk-pixbuf"
5218
5219 elif test "x$enable_quartz_image" = "xyes"; then :
5220
5221     EXPERIMENTAL_CONFIG=yes
5222     EXPERIMENTAL_OPTIONS="$EXPERIMENTAL_OPTIONS Quartz Core Graphics,"
5223
5224 $as_echo "#define USE_QUARTZ 1" >>confdefs.h
5225
5226     COGL_IMAGE_BACKEND="quartz"
5227
5228 else
5229
5230     EXPERIMENTAL_CONFIG=yes
5231     EXPERIMENTAL_OPTIONS="$EXPERIMENTAL_OPTIONS fallback image decoding (stb_image),"
5232
5233 $as_echo "#define USE_INTERNAL 1" >>confdefs.h
5234
5235     COGL_IMAGE_BACKEND="stb_image"
5236
5237
5238 fi
5239
5240
5241
5242 # Check whether --enable-cogl-pango was given.
5243 if test "${enable_cogl_pango+set}" = set; then :
5244   enableval=$enable_cogl_pango;
5245 else
5246   enable_cogl_pango=yes
5247
5248 fi
5249
5250  if test "x$enable_cogl_pango" = "xyes"; then
5251   BUILD_COGL_PANGO_TRUE=
5252   BUILD_COGL_PANGO_FALSE='#'
5253 else
5254   BUILD_COGL_PANGO_TRUE='#'
5255   BUILD_COGL_PANGO_FALSE=
5256 fi
5257
5258
5259 if test "x$enable_cogl_pango" = "xyes"; then :
5260
5261         COGL_PANGO_PKG_REQUIRES="$COGL_PANGO_PKG_REQUIRES pangocairo >= 1.20"
5262
5263
5264 fi
5265
5266 # Check whether --enable-examples-install was given.
5267 if test "${enable_examples_install+set}" = set; then :
5268   enableval=$enable_examples_install;
5269 else
5270   enable_examples_install=no
5271
5272 fi
5273
5274  if test "x$enable_examples_install" = "xyes"; then
5275   INSTALL_EXAMPLES_TRUE=
5276   INSTALL_EXAMPLES_FALSE='#'
5277 else
5278   INSTALL_EXAMPLES_TRUE='#'
5279   INSTALL_EXAMPLES_FALSE=
5280 fi
5281
5282
5283 # Check whether --enable-glib was given.
5284 if test "${enable_glib+set}" = set; then :
5285   enableval=$enable_glib;
5286 else
5287   enable_glib=yes
5288
5289 fi
5290
5291  if test "x$enable_glib" = "xyes"; then
5292   USE_GLIB_TRUE=
5293   USE_GLIB_FALSE='#'
5294 else
5295   USE_GLIB_TRUE='#'
5296   USE_GLIB_FALSE=
5297 fi
5298
5299
5300 if test "x$enable_glib" = "xyes"; then :
5301
5302         COGL_DEFINES_SYMBOLS="$COGL_DEFINES_SYMBOLS COGL_HAS_GLIB_SUPPORT"
5303
5304 else
5305
5306         EXPERIMENTAL_CONFIG=yes
5307         EXPERIMENTAL_OPTIONS="$EXPERIMENTAL_OPTIONS --disable-glib,"
5308
5309
5310 fi
5311
5312
5313 EGL_CHECKED=no
5314
5315 GL_LIBRARY_DIRECTLY_LINKED=no
5316
5317 enabled_drivers=""
5318
5319 HAVE_GLES1=0
5320 # Check whether --enable-gles1 was given.
5321 if test "${enable_gles1+set}" = set; then :
5322   enableval=$enable_gles1;
5323 else
5324   enable_gles1=no
5325
5326 fi
5327
5328 if test "x$enable_gles1" = "xyes"; then :
5329
5330         if test "x$platform_win32" = "xyes"; then :
5331   as_fn_error $? "GLES 1 not available for win32" "$LINENO" 5
5332 fi
5333
5334         enabled_drivers="$enabled_drivers gles1"
5335
5336         cogl_gl_headers="GLES/gl.h GLES/glext.h"
5337
5338
5339 $as_echo "#define HAVE_COGL_GLES 1" >>confdefs.h
5340
5341         COGL_DEFINES_SYMBOLS="$COGL_DEFINES_SYMBOLS COGL_HAS_GLES CLUTTER_COGL_HAS_GLES"
5342         COGL_DEFINES_SYMBOLS="$COGL_DEFINES_SYMBOLS COGL_HAS_GLES1"
5343         HAVE_GLES1=1
5344
5345         if test -n "$PKG_CONFIG" && \
5346     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glesv1_cm\""; } >&5
5347   ($PKG_CONFIG --exists --print-errors "glesv1_cm") 2>&5
5348   ac_status=$?
5349   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5350   test $ac_status = 0; }; then
5351   COGL_PKG_REQUIRES_GL="$COGL_PKG_REQUIRES_GL glesv1_cm"
5352            COGL_GLES1_LIBNAME="libGLESv1_CM.so"
5353            NEED_EGL=yes
5354
5355 else
5356
5357             # We have to check the two headers independently as GLES/glext.h
5358             # needs to include GLES/gl.h to have the GL types defined (eg.
5359             # GLenum).
5360             ac_fn_c_check_header_mongrel "$LINENO" "GLES/gl.h" "ac_cv_header_GLES_gl_h" "$ac_includes_default"
5361 if test "x$ac_cv_header_GLES_gl_h" = xyes; then :
5362
5363 else
5364   as_fn_error $? "Unable to locate GLES/gl.h" "$LINENO" 5
5365 fi
5366
5367
5368             ac_fn_c_check_header_compile "$LINENO" "GLES/glext.h" "ac_cv_header_GLES_glext_h" "#include <GLES/gl.h>
5369 "
5370 if test "x$ac_cv_header_GLES_glext_h" = xyes; then :
5371
5372 else
5373   as_fn_error $? "Unable to locate GLES/glext.h" "$LINENO" 5
5374 fi
5375
5376
5377
5378             # Early implementations provided only a GLES/egl.h while Khronos's
5379             # implementer guide now states EGL/egl.h is the One. Some
5380             # implementations keep a GLES/egl.h wrapper around EGL/egl.h for
5381             # backward compatibility while others provide EGL/egl.h only.
5382             for ac_header in GLES/egl.h EGL/egl.h
5383 do :
5384   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5385 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5386 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5387   cat >>confdefs.h <<_ACEOF
5388 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5389 _ACEOF
5390
5391 fi
5392
5393 done
5394
5395
5396             if test "x$ac_cv_header_GLES_egl_h" = "xyes"; then :
5397   COGL_EGL_INCLUDES="#include <GLES/egl.h>"
5398 elif test "x$ac_cv_header_EGL_egl_h" = "xyes"; then :
5399
5400                     COGL_EGL_INCLUDES="#include <EGL/egl.h>"
5401
5402 else
5403   as_fn_error $? "Unable to locate EGL header" "$LINENO" 5
5404 fi
5405
5406
5407             for ac_header in EGL/eglext.h
5408 do :
5409   ac_fn_c_check_header_compile "$LINENO" "EGL/eglext.h" "ac_cv_header_EGL_eglext_h" "$COGL_EGL_INCLUDES
5410 "
5411 if test "x$ac_cv_header_EGL_eglext_h" = xyes; then :
5412   cat >>confdefs.h <<_ACEOF
5413 #define HAVE_EGL_EGLEXT_H 1
5414 _ACEOF
5415  COGL_EGL_INCLUDES="$COGL_EGL_INCLUDE
5416 #include <EGL/eglext.h>"
5417 fi
5418
5419 done
5420
5421
5422             # Check for a GLES 1.x Common Profile library with/without EGL.
5423             #
5424             # Note: historically GLES 1 libraries shipped with the
5425             # EGL and GLES symbols all bundled in one library. Now
5426             # the Khronos Implementers Guide defines two naming
5427             # schemes: -lGLES_CM should be used for a library that
5428             # bundles the GLES and EGL API together and -lGLESv1_CM
5429             # would be used for a standalone GLES API.
5430             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for eglInitialize in -lGLES_CM" >&5
5431 $as_echo_n "checking for eglInitialize in -lGLES_CM... " >&6; }
5432 if ${ac_cv_lib_GLES_CM_eglInitialize+:} false; then :
5433   $as_echo_n "(cached) " >&6
5434 else
5435   ac_check_lib_save_LIBS=$LIBS
5436 LIBS="-lGLES_CM  $LIBS"
5437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5438 /* end confdefs.h.  */
5439
5440 /* Override any GCC internal prototype to avoid an error.
5441    Use char because int might match the return type of a GCC
5442    builtin and then its argument prototype would still apply.  */
5443 #ifdef __cplusplus
5444 extern "C"
5445 #endif
5446 char eglInitialize ();
5447 int
5448 main ()
5449 {
5450 return eglInitialize ();
5451   ;
5452   return 0;
5453 }
5454 _ACEOF
5455 if ac_fn_c_try_link "$LINENO"; then :
5456   ac_cv_lib_GLES_CM_eglInitialize=yes
5457 else
5458   ac_cv_lib_GLES_CM_eglInitialize=no
5459 fi
5460 rm -f core conftest.err conftest.$ac_objext \
5461     conftest$ac_exeext conftest.$ac_ext
5462 LIBS=$ac_check_lib_save_LIBS
5463 fi
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLES_CM_eglInitialize" >&5
5465 $as_echo "$ac_cv_lib_GLES_CM_eglInitialize" >&6; }
5466 if test "x$ac_cv_lib_GLES_CM_eglInitialize" = xyes; then :
5467   COGL_GLES1_LIBNAME="libGLES_CM.so"
5468 else
5469
5470                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glFlush in -lGLESv1_CM" >&5
5471 $as_echo_n "checking for glFlush in -lGLESv1_CM... " >&6; }
5472 if ${ac_cv_lib_GLESv1_CM_glFlush+:} false; then :
5473   $as_echo_n "(cached) " >&6
5474 else
5475   ac_check_lib_save_LIBS=$LIBS
5476 LIBS="-lGLESv1_CM  $LIBS"
5477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5478 /* end confdefs.h.  */
5479
5480 /* Override any GCC internal prototype to avoid an error.
5481    Use char because int might match the return type of a GCC
5482    builtin and then its argument prototype would still apply.  */
5483 #ifdef __cplusplus
5484 extern "C"
5485 #endif
5486 char glFlush ();
5487 int
5488 main ()
5489 {
5490 return glFlush ();
5491   ;
5492   return 0;
5493 }
5494 _ACEOF
5495 if ac_fn_c_try_link "$LINENO"; then :
5496   ac_cv_lib_GLESv1_CM_glFlush=yes
5497 else
5498   ac_cv_lib_GLESv1_CM_glFlush=no
5499 fi
5500 rm -f core conftest.err conftest.$ac_objext \
5501     conftest$ac_exeext conftest.$ac_ext
5502 LIBS=$ac_check_lib_save_LIBS
5503 fi
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLESv1_CM_glFlush" >&5
5505 $as_echo "$ac_cv_lib_GLESv1_CM_glFlush" >&6; }
5506 if test "x$ac_cv_lib_GLESv1_CM_glFlush" = xyes; then :
5507   COGL_GLES1_LIBNAME="libGLESv1_CM.so"
5508                    NEED_SEPARATE_EGL=yes
5509
5510 else
5511   as_fn_error $? "Unable to locate required GLES 1.x Common Profile library" "$LINENO" 5
5512 fi
5513
5514
5515 fi
5516
5517
5518             EGL_CHECKED=yes
5519
5520 fi
5521
5522 fi
5523
5524 HAVE_GLES2=0
5525 # Check whether --enable-gles2 was given.
5526 if test "${enable_gles2+set}" = set; then :
5527   enableval=$enable_gles2;
5528 else
5529   enable_gles2=no
5530
5531 fi
5532
5533 if test "x$enable_gles2" = "xyes"; then :
5534
5535         if test "x$platform_win32" = "xyes"; then :
5536   as_fn_error $? "GLES 2 not available for win32" "$LINENO" 5
5537 fi
5538
5539         enabled_drivers="$enabled_drivers gles2"
5540
5541         cogl_gl_headers="GLES2/gl2.h GLES2/gl2ext.h"
5542
5543 $as_echo "#define HAVE_COGL_GLES2 1" >>confdefs.h
5544
5545         COGL_DEFINES_SYMBOLS="$COGL_DEFINES_SYMBOLS COGL_HAS_GLES CLUTTER_COGL_HAS_GLES"
5546         COGL_DEFINES_SYMBOLS="$COGL_DEFINES_SYMBOLS COGL_HAS_GLES2"
5547         HAVE_GLES2=1
5548
5549         if test -n "$PKG_CONFIG" && \
5550     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glesv2\""; } >&5
5551   ($PKG_CONFIG --exists --print-errors "glesv2") 2>&5
5552   ac_status=$?
5553   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5554   test $ac_status = 0; }; then
5555   COGL_PKG_REQUIRES_GL="$COGL_PKG_REQUIRES_GL glesv2"
5556            COGL_GLES2_LIBNAME="libGLESv2.so"
5557
5558 else
5559
5560             # We have to check the two headers independently as GLES2/gl2ext.h
5561             # needs to include GLES2/gl2.h to have the GL types defined (eg.
5562             # GLenum).
5563             ac_fn_c_check_header_mongrel "$LINENO" "GLES2/gl2.h" "ac_cv_header_GLES2_gl2_h" "$ac_includes_default"
5564 if test "x$ac_cv_header_GLES2_gl2_h" = xyes; then :
5565
5566 else
5567   as_fn_error $? "Unable to locate GLES2/gl2.h" "$LINENO" 5
5568 fi
5569
5570
5571             ac_fn_c_check_header_compile "$LINENO" "GLES2/gl2ext.h" "ac_cv_header_GLES2_gl2ext_h" "#include <GLES2/gl2.h>
5572 "
5573 if test "x$ac_cv_header_GLES2_gl2ext_h" = xyes; then :
5574
5575 else
5576   as_fn_error $? "Unable to locate GLES2/gl2ext.h" "$LINENO" 5
5577 fi
5578
5579
5580
5581             COGL_GLES2_LIBNAME="libGLESv2.so"
5582
5583 fi
5584
5585         NEED_EGL=yes
5586
5587 fi
5588
5589 HAVE_GL=0
5590 # Check whether --enable-gl was given.
5591 if test "${enable_gl+set}" = set; then :
5592   enableval=$enable_gl;
5593 else
5594   enable_gl=yes
5595
5596 fi
5597
5598 if test "x$enable_gl" = "xyes"; then :
5599
5600         enabled_drivers="$enabled_drivers gl"
5601
5602         if test -n "$PKG_CONFIG" && \
5603     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
5604   ($PKG_CONFIG --exists --print-errors "x11") 2>&5
5605   ac_status=$?
5606   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5607   test $ac_status = 0; }; then
5608   ALLOW_GLX=yes
5609 fi
5610
5611         cogl_gl_headers="GL/gl.h"
5612
5613         if test "x$platform_quartz" = "xyes"; then :
5614
5615                 cogl_gl_headers="OpenGL/gl.h"
5616                 COGL_EXTRA_LDFLAGS="$COGL_EXTRA_LDFLAGS -framework OpenGL"
5617                                                 GL_LIBRARY_DIRECTLY_LINKED=yes
5618                 COGL_GL_LIBNAME=""
5619
5620 elif test "x$platform_win32" = "xyes"; then :
5621
5622                 COGL_EXTRA_LDFLAGS="$COGL_EXTRA_LDFLAGS -lopengl32 -lgdi32 -lwinmm"
5623                 COGL_EXTRA_CFLAGS="$COGL_EXTRA_CFLAGS -D_WIN32_WINNT=0x0500"
5624                 ALLOW_WGL=yes
5625                                                 GL_LIBRARY_DIRECTLY_LINKED=yes
5626                 COGL_GL_LIBNAME=""
5627
5628 else
5629
5630                 if test -n "$PKG_CONFIG" && \
5631     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gl\""; } >&5
5632   ($PKG_CONFIG --exists --print-errors "gl") 2>&5
5633   ac_status=$?
5634   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5635   test $ac_status = 0; }; then
5636                                       COGL_PKG_REQUIRES_GL="$COGL_PKG_REQUIRES_GL gl"
5637 else
5638   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glGetString in -lGL" >&5
5639 $as_echo_n "checking for glGetString in -lGL... " >&6; }
5640 if ${ac_cv_lib_GL_glGetString+:} false; then :
5641   $as_echo_n "(cached) " >&6
5642 else
5643   ac_check_lib_save_LIBS=$LIBS
5644 LIBS="-lGL  $LIBS"
5645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5646 /* end confdefs.h.  */
5647
5648 /* Override any GCC internal prototype to avoid an error.
5649    Use char because int might match the return type of a GCC
5650    builtin and then its argument prototype would still apply.  */
5651 #ifdef __cplusplus
5652 extern "C"
5653 #endif
5654 char glGetString ();
5655 int
5656 main ()
5657 {
5658 return glGetString ();
5659   ;
5660   return 0;
5661 }
5662 _ACEOF
5663 if ac_fn_c_try_link "$LINENO"; then :
5664   ac_cv_lib_GL_glGetString=yes
5665 else
5666   ac_cv_lib_GL_glGetString=no
5667 fi
5668 rm -f core conftest.err conftest.$ac_objext \
5669     conftest$ac_exeext conftest.$ac_ext
5670 LIBS=$ac_check_lib_save_LIBS
5671 fi
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GL_glGetString" >&5
5673 $as_echo "$ac_cv_lib_GL_glGetString" >&6; }
5674 if test "x$ac_cv_lib_GL_glGetString" = xyes; then :
5675   cat >>confdefs.h <<_ACEOF
5676 #define HAVE_LIBGL 1
5677 _ACEOF
5678
5679   LIBS="-lGL $LIBS"
5680
5681 else
5682   as_fn_error $? "Unable to locate required GL library" "$LINENO" 5
5683 fi
5684
5685
5686 fi
5687                 COGL_GL_LIBNAME="libGL.so.1"
5688
5689 fi
5690
5691
5692 $as_echo "#define HAVE_COGL_GL 1" >>confdefs.h
5693
5694
5695         COGL_DEFINES_SYMBOLS="$COGL_DEFINES_SYMBOLS COGL_HAS_GL"
5696         COGL_DEFINES_SYMBOLS="$COGL_DEFINES_SYMBOLS CLUTTER_COGL_HAS_GL"
5697         HAVE_GL=1
5698
5699 fi
5700
5701  if test "x$enable_gl" = "xyes"; then
5702   COGL_DRIVER_GL_SUPPORTED_TRUE=
5703   COGL_DRIVER_GL_SUPPORTED_FALSE='#'
5704 else
5705   COGL_DRIVER_GL_SUPPORTED_TRUE='#'
5706   COGL_DRIVER_GL_SUPPORTED_FALSE=
5707 fi
5708
5709  if test "x$enable_gles1" = "xyes" || test "x$enable_gles2" = "xyes"; then
5710   COGL_DRIVER_GLES_SUPPORTED_TRUE=
5711   COGL_DRIVER_GLES_SUPPORTED_FALSE='#'
5712 else
5713   COGL_DRIVER_GLES_SUPPORTED_TRUE='#'
5714   COGL_DRIVER_GLES_SUPPORTED_FALSE=
5715 fi
5716
5717
5718
5719 # Check whether --with-gl-libname was given.
5720 if test "${with_gl_libname+set}" = set; then :
5721   withval=$with_gl_libname; COGL_GL_LIBNAME="$withval"
5722 fi
5723
5724
5725 # Check whether --with-gles1-libname was given.
5726 if test "${with_gles1_libname+set}" = set; then :
5727   withval=$with_gles1_libname; COGL_GLES1_LIBNAME="$withval"
5728 fi
5729
5730
5731 # Check whether --with-gles2-libname was given.
5732 if test "${with_gles2_libname+set}" = set; then :
5733   withval=$with_gles2_libname; COGL_GLES2_LIBNAME="$withval"
5734 fi
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744 if test "x$GL_LIBRARY_DIRECTLY_LINKED" = "xyes"; then
5745
5746 $as_echo "#define HAVE_DIRECTLY_LINKED_GL_LIBRARY 1" >>confdefs.h
5747
5748 fi
5749
5750
5751 # Check whether --enable-glx was given.
5752 if test "${enable_glx+set}" = set; then :
5753   enableval=$enable_glx;
5754 else
5755   if test "x$ALLOW_GLX" = "xyes"; then :
5756   enable_glx=yes
5757 else
5758   enable_glx=no
5759 fi
5760
5761 fi
5762
5763 if test "x$enable_glx" = "xyes"; then :
5764
5765         if test "x$ALLOW_GLX" != "xyes"; then :
5766   as_fn_error $? "GLX not supported with this configuration" "$LINENO" 5
5767 fi
5768
5769         NEED_XLIB=yes
5770         SUPPORT_GLX=yes
5771         GL_WINSYS_APIS="$GL_WINSYS_APIS glx"
5772
5773         COGL_DEFINES_SYMBOLS="$COGL_DEFINES_SYMBOLS COGL_HAS_GLX_SUPPORT"
5774
5775         # We might fall back to DRM for sync-to-vblank on GLX
5776         if test -n "$PKG_CONFIG" && \
5777     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm\""; } >&5
5778   ($PKG_CONFIG --exists --print-errors "libdrm") 2>&5
5779   ac_status=$?
5780   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5781   test $ac_status = 0; }; then
5782
5783
5784 $as_echo "#define HAVE_DRM 1" >>confdefs.h
5785
5786                            COGL_PKG_REQUIRES="$COGL_PKG_REQUIRES libdrm"
5787
5788 fi
5789
5790 fi
5791  if test "x$SUPPORT_GLX" = "xyes"; then
5792   SUPPORT_GLX_TRUE=
5793   SUPPORT_GLX_FALSE='#'
5794 else
5795   SUPPORT_GLX_TRUE='#'
5796   SUPPORT_GLX_FALSE=
5797 fi
5798
5799
5800 # Check whether --enable-wgl was given.
5801 if test "${enable_wgl+set}" = set; then :
5802   enableval=$enable_wgl;
5803 else
5804   if test "x$ALLOW_WGL" = "xyes"; then :
5805   enable_wgl=yes
5806 else
5807   enable_wgl=no
5808 fi
5809
5810 fi
5811
5812 if test "x$enable_wgl" = "xyes"; then :
5813
5814         if test "x$ALLOW_WGL" != "xyes"; then :
5815   as_fn_error $? "WGL not supported with this configuration" "$LINENO" 5
5816 fi
5817
5818         SUPPORT_WGL=yes
5819         GL_WINSYS_APIS="$GL_WINSYS_APIS wgl"
5820
5821
5822 $as_echo "#define COGL_HAS_WGL_SUPPORT 1" >>confdefs.h
5823
5824         COGL_DEFINES_SYMBOLS="$COGL_DEFINES_SYMBOLS COGL_HAS_WIN32_SUPPORT"
5825
5826 fi
5827  if test "x$SUPPORT_WGL" = "xyes"; then
5828   SUPPORT_WGL_TRUE=
5829   SUPPORT_WGL_FALSE='#'
5830 else
5831   SUPPORT_WGL_TRUE='#'
5832   SUPPORT_WGL_FALSE=
5833 fi
5834
5835
5836 EGL_PLATFORM_COUNT=0
5837
5838 # Check whether --enable-null-egl-platform was given.
5839 if test "${enable_null_egl_platform+set}" = set; then :
5840   enableval=$enable_null_egl_platform;
5841 else
5842   enable_null_egl_platform=no
5843
5844 fi
5845
5846 if test "x$enable_null_egl_platform" = "xyes"; then :
5847
5848         EGL_PLATFORM_COUNT=$((EGL_PLATFORM_COUNT+1))
5849         NEED_EGL=yes
5850         EGL_PLATFORMS="$EGL_PLATFORMS null"
5851
5852         COGL_DEFINES_SYMBOLS="$COGL_DEFINES_SYMBOLS COGL_HAS_EGL_PLATFORM_POWERVR_NULL_SUPPORT"
5853
5854 fi
5855  if test "x$enable_null_egl_platform" = "xyes"; then
5856   SUPPORT_EGL_PLATFORM_POWERVR_NULL_TRUE=
5857   SUPPORT_EGL_PLATFORM_POWERVR_NULL_FALSE='#'
5858 else
5859   SUPPORT_EGL_PLATFORM_POWERVR_NULL_TRUE='#'
5860   SUPPORT_EGL_PLATFORM_POWERVR_NULL_FALSE=
5861 fi
5862
5863
5864 # Check whether --enable-gdl-egl-platform was given.
5865 if test "${enable_gdl_egl_platform+set}" = set; then :
5866   enableval=$enable_gdl_egl_platform;
5867 else
5868   enable_gdl_egl_platform=no
5869
5870 fi
5871
5872 if test "x$enable_gdl_egl_platform" == "xyes"; then :
5873
5874         EGL_PLATFORM_COUNT=$((EGL_PLATFORM_COUNT+1))
5875         NEED_EGL=yes
5876         EGL_PLATFORMS="$EGL_PLATFORMS gdl"
5877
5878         for ac_header in libgdl.h
5879 do :
5880   ac_fn_c_check_header_mongrel "$LINENO" "libgdl.h" "ac_cv_header_libgdl_h" "$ac_includes_default"
5881 if test "x$ac_cv_header_libgdl_h" = xyes; then :
5882   cat >>confdefs.h <<_ACEOF
5883 #define HAVE_LIBGDL_H 1
5884 _ACEOF
5885
5886 else
5887
5888             for ac_header in CE4100/libgdl.h
5889 do :
5890   ac_fn_c_check_header_mongrel "$LINENO" "CE4100/libgdl.h" "ac_cv_header_CE4100_libgdl_h" "$ac_includes_default"
5891 if test "x$ac_cv_header_CE4100_libgdl_h" = xyes; then :
5892   cat >>confdefs.h <<_ACEOF
5893 #define HAVE_CE4100_LIBGDL_H 1
5894 _ACEOF
5895
5896                COGL_EXTRA_CFLAGS="$COGL_EXTRA_CFLAGS -I/usr/include/CE4100"
5897
5898 else
5899   as_fn_error $? "libgdl.h not found" "$LINENO" 5
5900 fi
5901
5902 done
5903
5904
5905 fi
5906
5907 done
5908
5909
5910         COGL_EXTRA_LDFLAGS="$COGL_EXTRA_LDFLAGS -lgdl"
5911
5912         COGL_DEFINES_SYMBOLS="$COGL_DEFINES_SYMBOLS COGL_HAS_EGL_PLATFORM_GDL_SUPPORT"
5913
5914 fi
5915  if test "x$enable_gdl_egl_platform" = "xyes"; then
5916   SUPPORT_EGL_PLATFORM_GDL_TRUE=
5917   SUPPORT_EGL_PLATFORM_GDL_FALSE='#'
5918 else
5919   SUPPORT_EGL_PLATFORM_GDL_TRUE='#'
5920   SUPPORT_EGL_PLATFORM_GDL_FALSE=
5921 fi
5922
5923
5924 # Check whether --enable-wayland-egl-platform was given.
5925 if test "${enable_wayland_egl_platform+set}" = set; then :
5926   enableval=$enable_wayland_egl_platform;
5927 else
5928   enable_wayland_egl_platform=no
5929
5930 fi
5931
5932 if test "x$enable_wayland_egl_platform" == "xyes"; then :
5933
5934         EGL_PLATFORM_COUNT=$((EGL_PLATFORM_COUNT+1))
5935         NEED_EGL=yes
5936         EGL_PLATFORMS="$EGL_PLATFORMS wayland"
5937
5938         if test -n "$PKG_CONFIG" && \
5939     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wayland-egl\""; } >&5
5940   ($PKG_CONFIG --exists --print-errors "wayland-egl") 2>&5
5941   ac_status=$?
5942   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5943   test $ac_status = 0; }; then
5944
5945                            COGL_PKG_REQUIRES="$COGL_PKG_REQUIRES wayland-egl"
5946                            COGL_PKG_REQUIRES="$COGL_PKG_REQUIRES wayland-client"
5947
5948 else
5949   as_fn_error $? "Unable to locate required wayland libraries" "$LINENO" 5
5950 fi
5951
5952         COGL_DEFINES_SYMBOLS="$COGL_DEFINES_SYMBOLS COGL_HAS_EGL_PLATFORM_WAYLAND_SUPPORT"
5953
5954 fi
5955  if test "x$enable_wayland_egl_platform" = "xyes"; then
5956   SUPPORT_EGL_PLATFORM_WAYLAND_TRUE=
5957   SUPPORT_EGL_PLATFORM_WAYLAND_FALSE='#'
5958 else
5959   SUPPORT_EGL_PLATFORM_WAYLAND_TRUE='#'
5960   SUPPORT_EGL_PLATFORM_WAYLAND_FALSE=
5961 fi
5962
5963
5964
5965 # Check whether --enable-kms-egl-platform was given.
5966 if test "${enable_kms_egl_platform+set}" = set; then :
5967   enableval=$enable_kms_egl_platform;
5968 else
5969   enable_kms_egl_platform=no
5970
5971 fi
5972
5973 if test "x$enable_kms_egl_platform" == "xyes"; then :
5974
5975         EGL_PLATFORM_COUNT=$((EGL_PLATFORM_COUNT+1))
5976         NEED_EGL=yes
5977         EGL_PLATFORMS="$EGL_PLATFORMS kms"
5978
5979         if test -n "$PKG_CONFIG" && \
5980     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm\""; } >&5
5981   ($PKG_CONFIG --exists --print-errors "gbm") 2>&5
5982   ac_status=$?
5983   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5984   test $ac_status = 0; }; then
5985
5986                            COGL_PKG_REQUIRES="$COGL_PKG_REQUIRES gbm"
5987                            COGL_PKG_REQUIRES="$COGL_PKG_REQUIRES libdrm"
5988
5989 else
5990   as_fn_error $? "Unable to locate required kms libraries" "$LINENO" 5
5991 fi
5992
5993         COGL_DEFINES_SYMBOLS="$COGL_DEFINES_SYMBOLS COGL_HAS_EGL_PLATFORM_KMS_SUPPORT"
5994
5995 fi
5996  if test "x$enable_kms_egl_platform" = "xyes"; then
5997   SUPPORT_EGL_PLATFORM_KMS_TRUE=
5998   SUPPORT_EGL_PLATFORM_KMS_FALSE='#'
5999 else
6000   SUPPORT_EGL_PLATFORM_KMS_TRUE='#'
6001   SUPPORT_EGL_PLATFORM_KMS_FALSE=
6002 fi
6003
6004
6005 # Check whether --enable-wayland-egl-server was given.
6006 if test "${enable_wayland_egl_server+set}" = set; then :
6007   enableval=$enable_wayland_egl_server;
6008 else
6009   enable_wayland_egl_server=no
6010
6011 fi
6012
6013 if test "x$enable_wayland_egl_server" == "xyes"; then :
6014
6015         NEED_EGL=yes
6016         COGL_PKG_REQUIRES="$COGL_PKG_REQUIRES wayland-server"
6017         COGL_DEFINES_SYMBOLS="$COGL_DEFINES_SYMBOLS COGL_HAS_WAYLAND_EGL_SERVER_SUPPORT"
6018
6019 fi
6020  if test "x$enable_wayland_egl_server" = "xyes"; then
6021   SUPPORT_WAYLAND_EGL_SERVER_TRUE=
6022   SUPPORT_WAYLAND_EGL_SERVER_FALSE='#'
6023 else
6024   SUPPORT_WAYLAND_EGL_SERVER_TRUE='#'
6025   SUPPORT_WAYLAND_EGL_SERVER_FALSE=
6026 fi
6027
6028
6029 # Check whether --enable-android-egl-platform was given.
6030 if test "${enable_android_egl_platform+set}" = set; then :
6031   enableval=$enable_android_egl_platform;
6032 else
6033   enable_android_egl_platform=no
6034
6035 fi
6036
6037 if test "x$enable_android_egl_platform" == "xyes"; then :
6038
6039         EGL_PLATFORM_COUNT=$((EGL_PLATFORM_COUNT+1))
6040         NEED_EGL=yes
6041         EGL_PLATFORMS="$EGL_PLATFORMS android"
6042
6043         ac_fn_c_check_header_mongrel "$LINENO" "android/native_window.h" "ac_cv_header_android_native_window_h" "$ac_includes_default"
6044 if test "x$ac_cv_header_android_native_window_h" = xyes; then :
6045
6046 else
6047   as_fn_error $? "Unable to locate android/native_window.h" "$LINENO" 5
6048 fi
6049
6050
6051
6052         COGL_DEFINES_SYMBOLS="$COGL_DEFINES_SYMBOLS COGL_HAS_EGL_PLATFORM_ANDROID_SUPPORT"
6053
6054 fi
6055  if test "x$enable_android_egl_platform" = "xyes"; then
6056   SUPPORT_EGL_PLATFORM_ANDROID_TRUE=
6057   SUPPORT_EGL_PLATFORM_ANDROID_FALSE='#'
6058 else
6059   SUPPORT_EGL_PLATFORM_ANDROID_TRUE='#'
6060   SUPPORT_EGL_PLATFORM_ANDROID_FALSE=
6061 fi
6062
6063
6064 # Check whether --enable-xlib-egl-platform was given.
6065 if test "${enable_xlib_egl_platform+set}" = set; then :
6066   enableval=$enable_xlib_egl_platform;
6067 else
6068   if test "x$enable_gles1" = "xyes" -o "x$enable_gles2" = "xyes" && test $EGL_PLATFORM_COUNT -eq 0; then :
6069   enable_xlib_egl_platform=yes
6070 else
6071   enable_xlib_egl_platform=no
6072 fi
6073
6074 fi
6075
6076 if test "x$enable_xlib_egl_platform" = "xyes"; then :
6077
6078         EGL_PLATFORM_COUNT=$((EGL_PLATFORM_COUNT+1))
6079         NEED_EGL=yes
6080         NEED_XLIB=yes
6081         EGL_PLATFORMS="$EGL_PLATFORMS xlib"
6082
6083         COGL_DEFINES_SYMBOLS="$COGL_DEFINES_SYMBOLS COGL_HAS_EGL_PLATFORM_XLIB_SUPPORT"
6084
6085 fi
6086  if test "x$enable_xlib_egl_platform" = "xyes"; then
6087   SUPPORT_EGL_PLATFORM_XLIB_TRUE=
6088   SUPPORT_EGL_PLATFORM_XLIB_FALSE='#'
6089 else
6090   SUPPORT_EGL_PLATFORM_XLIB_TRUE='#'
6091   SUPPORT_EGL_PLATFORM_XLIB_FALSE=
6092 fi
6093
6094
6095 if test "x$NEED_EGL" = "xyes" && test "x$EGL_CHECKED" != "xyes"; then :
6096
6097         if test -n "$PKG_CONFIG" && \
6098     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"egl\""; } >&5
6099   ($PKG_CONFIG --exists --print-errors "egl") 2>&5
6100   ac_status=$?
6101   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6102   test $ac_status = 0; }; then
6103   COGL_PKG_REQUIRES="$COGL_PKG_REQUIRES egl"
6104 else
6105
6106             for ac_header in EGL/egl.h
6107 do :
6108   ac_fn_c_check_header_mongrel "$LINENO" "EGL/egl.h" "ac_cv_header_EGL_egl_h" "$ac_includes_default"
6109 if test "x$ac_cv_header_EGL_egl_h" = xyes; then :
6110   cat >>confdefs.h <<_ACEOF
6111 #define HAVE_EGL_EGL_H 1
6112 _ACEOF
6113
6114 else
6115   as_fn_error $? "Unable to locate required EGL headers" "$LINENO" 5
6116 fi
6117
6118 done
6119
6120             for ac_header in EGL/eglext.h
6121 do :
6122   ac_fn_c_check_header_compile "$LINENO" "EGL/eglext.h" "ac_cv_header_EGL_eglext_h" "#include <EGL/egl.h>
6123 "
6124 if test "x$ac_cv_header_EGL_eglext_h" = xyes; then :
6125   cat >>confdefs.h <<_ACEOF
6126 #define HAVE_EGL_EGLEXT_H 1
6127 _ACEOF
6128
6129 else
6130   as_fn_error $? "Unable to locate required EGL headers" "$LINENO" 5
6131 fi
6132
6133 done
6134
6135
6136             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for eglInitialize in -lEGL" >&5
6137 $as_echo_n "checking for eglInitialize in -lEGL... " >&6; }
6138 if ${ac_cv_lib_EGL_eglInitialize+:} false; then :
6139   $as_echo_n "(cached) " >&6
6140 else
6141   ac_check_lib_save_LIBS=$LIBS
6142 LIBS="-lEGL  $LIBS"
6143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6144 /* end confdefs.h.  */
6145
6146 /* Override any GCC internal prototype to avoid an error.
6147    Use char because int might match the return type of a GCC
6148    builtin and then its argument prototype would still apply.  */
6149 #ifdef __cplusplus
6150 extern "C"
6151 #endif
6152 char eglInitialize ();
6153 int
6154 main ()
6155 {
6156 return eglInitialize ();
6157   ;
6158   return 0;
6159 }
6160 _ACEOF
6161 if ac_fn_c_try_link "$LINENO"; then :
6162   ac_cv_lib_EGL_eglInitialize=yes
6163 else
6164   ac_cv_lib_EGL_eglInitialize=no
6165 fi
6166 rm -f core conftest.err conftest.$ac_objext \
6167     conftest$ac_exeext conftest.$ac_ext
6168 LIBS=$ac_check_lib_save_LIBS
6169 fi
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_EGL_eglInitialize" >&5
6171 $as_echo "$ac_cv_lib_EGL_eglInitialize" >&6; }
6172 if test "x$ac_cv_lib_EGL_eglInitialize" = xyes; then :
6173   COGL_EXTRA_LDFLAGS="$COGL_EXTRA_LDFLAGS -lEGL"
6174 else
6175   as_fn_error $? "Unable to locate required EGL library" "$LINENO" 5
6176 fi
6177
6178
6179             COGL_EXTRA_LDFLAGS="$COGL_EXTRA_LDFLAGS -lEGL"
6180
6181
6182 fi
6183
6184         COGL_EGL_INCLUDES="#include <EGL/egl.h>
6185 #include <EGL/eglext.h>"
6186
6187
6188 fi
6189
6190 if test "x$NEED_EGL" = "xyes"; then :
6191
6192         SUPPORT_EGL=yes
6193         GL_WINSYS_APIS="$GL_WINSYS_APIS egl"
6194         COGL_DEFINES_SYMBOLS="$COGL_DEFINES_SYMBOLS COGL_HAS_EGL_SUPPORT"
6195
6196 fi
6197
6198  if test "x$SUPPORT_EGL" = "xyes"; then
6199   SUPPORT_EGL_TRUE=
6200   SUPPORT_EGL_FALSE='#'
6201 else
6202   SUPPORT_EGL_TRUE='#'
6203   SUPPORT_EGL_FALSE=
6204 fi
6205
6206
6207 # Check whether --enable-sdl was given.
6208 if test "${enable_sdl+set}" = set; then :
6209   enableval=$enable_sdl;
6210 else
6211   enable_sdl=no
6212 fi
6213
6214 if test "x$enable_sdl" = "xyes"; then :
6215
6216         if test -n "$PKG_CONFIG" && \
6217     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
6218   ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
6219   ac_status=$?
6220   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6221   test $ac_status = 0; }; then
6222   :
6223 else
6224   as_fn_error $? "SDL support requested but SDL not found" "$LINENO" 5
6225 fi
6226
6227         SUPPORT_SDL=yes
6228         GL_WINSYS_APIS="$GL_WINSYS_APIS sdl"
6229         COGL_PKG_REQUIRES="$COGL_PKG_REQUIRES sdl"
6230
6231         COGL_DEFINES_SYMBOLS="$COGL_DEFINES_SYMBOLS COGL_HAS_SDL_SUPPORT"
6232
6233 else
6234   SUPPORT_SDL=no
6235 fi
6236  if test "x$SUPPORT_SDL" = "xyes"; then
6237   SUPPORT_SDL_TRUE=
6238   SUPPORT_SDL_FALSE='#'
6239 else
6240   SUPPORT_SDL_TRUE='#'
6241   SUPPORT_SDL_FALSE=
6242 fi
6243
6244
6245 if test "x$NEED_XLIB" = "xyes"; then :
6246
6247         X11_MODULES="x11 xext xfixes >= 3 xdamage xcomposite >= 0.4"
6248
6249 pkg_failed=no
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DUMMY" >&5
6251 $as_echo_n "checking for DUMMY... " >&6; }
6252
6253 if test -n "$DUMMY_CFLAGS"; then
6254     pkg_cv_DUMMY_CFLAGS="$DUMMY_CFLAGS"
6255  elif test -n "$PKG_CONFIG"; then
6256     if test -n "$PKG_CONFIG" && \
6257     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$X11_MODULES\""; } >&5
6258   ($PKG_CONFIG --exists --print-errors "$X11_MODULES") 2>&5
6259   ac_status=$?
6260   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6261   test $ac_status = 0; }; then
6262   pkg_cv_DUMMY_CFLAGS=`$PKG_CONFIG --cflags "$X11_MODULES" 2>/dev/null`
6263 else
6264   pkg_failed=yes
6265 fi
6266  else
6267     pkg_failed=untried
6268 fi
6269 if test -n "$DUMMY_LIBS"; then
6270     pkg_cv_DUMMY_LIBS="$DUMMY_LIBS"
6271  elif test -n "$PKG_CONFIG"; then
6272     if test -n "$PKG_CONFIG" && \
6273     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$X11_MODULES\""; } >&5
6274   ($PKG_CONFIG --exists --print-errors "$X11_MODULES") 2>&5
6275   ac_status=$?
6276   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6277   test $ac_status = 0; }; then
6278   pkg_cv_DUMMY_LIBS=`$PKG_CONFIG --libs "$X11_MODULES" 2>/dev/null`
6279 else
6280   pkg_failed=yes
6281 fi
6282  else
6283     pkg_failed=untried
6284 fi
6285
6286
6287
6288 if test $pkg_failed = yes; then
6289         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6290 $as_echo "no" >&6; }
6291
6292 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6293         _pkg_short_errors_supported=yes
6294 else
6295         _pkg_short_errors_supported=no
6296 fi
6297         if test $_pkg_short_errors_supported = yes; then
6298                 DUMMY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$X11_MODULES" 2>&1`
6299         else
6300                 DUMMY_PKG_ERRORS=`$PKG_CONFIG --print-errors "$X11_MODULES" 2>&1`
6301         fi
6302         # Put the nasty error message in config.log where it belongs
6303         echo "$DUMMY_PKG_ERRORS" >&5
6304
6305         as_fn_error $? "Package requirements ($X11_MODULES) were not met:
6306
6307 $DUMMY_PKG_ERRORS
6308
6309 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6310 installed software in a non-standard prefix.
6311
6312 Alternatively, you may set the environment variables DUMMY_CFLAGS
6313 and DUMMY_LIBS to avoid the need to call pkg-config.
6314 See the pkg-config man page for more details." "$LINENO" 5
6315
6316 elif test $pkg_failed = untried; then
6317         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6318 $as_echo "no" >&6; }
6319         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6320 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6321 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
6322 is in your PATH or set the PKG_CONFIG environment variable to the full
6323 path to pkg-config.
6324
6325 Alternatively, you may set the environment variables DUMMY_CFLAGS
6326 and DUMMY_LIBS to avoid the need to call pkg-config.
6327 See the pkg-config man page for more details.
6328
6329 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6330 See \`config.log' for more details" "$LINENO" 5; }
6331
6332 else
6333         DUMMY_CFLAGS=$pkg_cv_DUMMY_CFLAGS
6334         DUMMY_LIBS=$pkg_cv_DUMMY_LIBS
6335         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6336 $as_echo "yes" >&6; }
6337         COGL_PKG_REQUIRES="$COGL_PKG_REQUIRES $X11_MODULES"
6338 fi
6339         SUPPORT_X11=yes
6340         SUPPORT_XLIB=yes
6341
6342         COGL_DEFINES_SYMBOLS="$COGL_DEFINES_SYMBOLS COGL_HAS_X11"
6343         COGL_DEFINES_SYMBOLS="$COGL_DEFINES_SYMBOLS COGL_HAS_X11_SUPPORT"
6344         COGL_DEFINES_SYMBOLS="$COGL_DEFINES_SYMBOLS COGL_HAS_XLIB"
6345         COGL_DEFINES_SYMBOLS="$COGL_DEFINES_SYMBOLS COGL_HAS_XLIB_SUPPORT"
6346
6347 fi
6348
6349  if test "x$SUPPORT_X11" = "xyes"; then
6350   X11_TESTS_TRUE=
6351   X11_TESTS_FALSE='#'
6352 else
6353   X11_TESTS_TRUE='#'
6354   X11_TESTS_FALSE=
6355 fi
6356
6357  if test "x$SUPPORT_X11" = "xyes"; then
6358   SUPPORT_X11_TRUE=
6359   SUPPORT_X11_FALSE='#'
6360 else
6361   SUPPORT_X11_TRUE='#'
6362   SUPPORT_X11_FALSE=
6363 fi
6364
6365  if test "x$SUPPORT_XLIB" = "xyes"; then
6366   SUPPORT_XLIB_TRUE=
6367   SUPPORT_XLIB_FALSE='#'
6368 else
6369   SUPPORT_XLIB_TRUE='#'
6370   SUPPORT_XLIB_FALSE=
6371 fi
6372
6373
6374
6375 ac_ext=c
6376 ac_cpp='$CPP $CPPFLAGS'
6377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6380 if test -n "$ac_tool_prefix"; then
6381   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6382 set dummy ${ac_tool_prefix}gcc; ac_word=$2
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6384 $as_echo_n "checking for $ac_word... " >&6; }
6385 if ${ac_cv_prog_CC+:} false; then :
6386   $as_echo_n "(cached) " >&6
6387 else
6388   if test -n "$CC"; then
6389   ac_cv_prog_CC="$CC" # Let the user override the test.
6390 else
6391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6392 for as_dir in $PATH
6393 do
6394   IFS=$as_save_IFS
6395   test -z "$as_dir" && as_dir=.
6396     for ac_exec_ext in '' $ac_executable_extensions; do
6397   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6398     ac_cv_prog_CC="${ac_tool_prefix}gcc"
6399     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6400     break 2
6401   fi
6402 done
6403   done
6404 IFS=$as_save_IFS
6405
6406 fi
6407 fi
6408 CC=$ac_cv_prog_CC
6409 if test -n "$CC"; then
6410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6411 $as_echo "$CC" >&6; }
6412 else
6413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6414 $as_echo "no" >&6; }
6415 fi
6416
6417
6418 fi
6419 if test -z "$ac_cv_prog_CC"; then
6420   ac_ct_CC=$CC
6421   # Extract the first word of "gcc", so it can be a program name with args.
6422 set dummy gcc; ac_word=$2
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6424 $as_echo_n "checking for $ac_word... " >&6; }
6425 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6426   $as_echo_n "(cached) " >&6
6427 else
6428   if test -n "$ac_ct_CC"; then
6429   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6430 else
6431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6432 for as_dir in $PATH
6433 do
6434   IFS=$as_save_IFS
6435   test -z "$as_dir" && as_dir=.
6436     for ac_exec_ext in '' $ac_executable_extensions; do
6437   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6438     ac_cv_prog_ac_ct_CC="gcc"
6439     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6440     break 2
6441   fi
6442 done
6443   done
6444 IFS=$as_save_IFS
6445
6446 fi
6447 fi
6448 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6449 if test -n "$ac_ct_CC"; then
6450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6451 $as_echo "$ac_ct_CC" >&6; }
6452 else
6453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6454 $as_echo "no" >&6; }
6455 fi
6456
6457   if test "x$ac_ct_CC" = x; then
6458     CC=""
6459   else
6460     case $cross_compiling:$ac_tool_warned in
6461 yes:)
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6463 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6464 ac_tool_warned=yes ;;
6465 esac
6466     CC=$ac_ct_CC
6467   fi
6468 else
6469   CC="$ac_cv_prog_CC"
6470 fi
6471
6472 if test -z "$CC"; then
6473           if test -n "$ac_tool_prefix"; then
6474     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6475 set dummy ${ac_tool_prefix}cc; ac_word=$2
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6477 $as_echo_n "checking for $ac_word... " >&6; }
6478 if ${ac_cv_prog_CC+:} false; then :
6479   $as_echo_n "(cached) " >&6
6480 else
6481   if test -n "$CC"; then
6482   ac_cv_prog_CC="$CC" # Let the user override the test.
6483 else
6484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6485 for as_dir in $PATH
6486 do
6487   IFS=$as_save_IFS
6488   test -z "$as_dir" && as_dir=.
6489     for ac_exec_ext in '' $ac_executable_extensions; do
6490   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6491     ac_cv_prog_CC="${ac_tool_prefix}cc"
6492     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6493     break 2
6494   fi
6495 done
6496   done
6497 IFS=$as_save_IFS
6498
6499 fi
6500 fi
6501 CC=$ac_cv_prog_CC
6502 if test -n "$CC"; then
6503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6504 $as_echo "$CC" >&6; }
6505 else
6506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6507 $as_echo "no" >&6; }
6508 fi
6509
6510
6511   fi
6512 fi
6513 if test -z "$CC"; then
6514   # Extract the first word of "cc", so it can be a program name with args.
6515 set dummy cc; ac_word=$2
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6517 $as_echo_n "checking for $ac_word... " >&6; }
6518 if ${ac_cv_prog_CC+:} false; then :
6519   $as_echo_n "(cached) " >&6
6520 else
6521   if test -n "$CC"; then
6522   ac_cv_prog_CC="$CC" # Let the user override the test.
6523 else
6524   ac_prog_rejected=no
6525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6526 for as_dir in $PATH
6527 do
6528   IFS=$as_save_IFS
6529   test -z "$as_dir" && as_dir=.
6530     for ac_exec_ext in '' $ac_executable_extensions; do
6531   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6532     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6533        ac_prog_rejected=yes
6534        continue
6535      fi
6536     ac_cv_prog_CC="cc"
6537     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6538     break 2
6539   fi
6540 done
6541   done
6542 IFS=$as_save_IFS
6543
6544 if test $ac_prog_rejected = yes; then
6545   # We found a bogon in the path, so make sure we never use it.
6546   set dummy $ac_cv_prog_CC
6547   shift
6548   if test $# != 0; then
6549     # We chose a different compiler from the bogus one.
6550     # However, it has the same basename, so the bogon will be chosen
6551     # first if we set CC to just the basename; use the full file name.
6552     shift
6553     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6554   fi
6555 fi
6556 fi
6557 fi
6558 CC=$ac_cv_prog_CC
6559 if test -n "$CC"; then
6560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6561 $as_echo "$CC" >&6; }
6562 else
6563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6564 $as_echo "no" >&6; }
6565 fi
6566
6567
6568 fi
6569 if test -z "$CC"; then
6570   if test -n "$ac_tool_prefix"; then
6571   for ac_prog in cl.exe
6572   do
6573     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6574 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6576 $as_echo_n "checking for $ac_word... " >&6; }
6577 if ${ac_cv_prog_CC+:} false; then :
6578   $as_echo_n "(cached) " >&6
6579 else
6580   if test -n "$CC"; then
6581   ac_cv_prog_CC="$CC" # Let the user override the test.
6582 else
6583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6584 for as_dir in $PATH
6585 do
6586   IFS=$as_save_IFS
6587   test -z "$as_dir" && as_dir=.
6588     for ac_exec_ext in '' $ac_executable_extensions; do
6589   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6590     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6591     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6592     break 2
6593   fi
6594 done
6595   done
6596 IFS=$as_save_IFS
6597
6598 fi
6599 fi
6600 CC=$ac_cv_prog_CC
6601 if test -n "$CC"; then
6602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6603 $as_echo "$CC" >&6; }
6604 else
6605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6606 $as_echo "no" >&6; }
6607 fi
6608
6609
6610     test -n "$CC" && break
6611   done
6612 fi
6613 if test -z "$CC"; then
6614   ac_ct_CC=$CC
6615   for ac_prog in cl.exe
6616 do
6617   # Extract the first word of "$ac_prog", so it can be a program name with args.
6618 set dummy $ac_prog; ac_word=$2
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6620 $as_echo_n "checking for $ac_word... " >&6; }
6621 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6622   $as_echo_n "(cached) " >&6
6623 else
6624   if test -n "$ac_ct_CC"; then
6625   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6626 else
6627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6628 for as_dir in $PATH
6629 do
6630   IFS=$as_save_IFS
6631   test -z "$as_dir" && as_dir=.
6632     for ac_exec_ext in '' $ac_executable_extensions; do
6633   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6634     ac_cv_prog_ac_ct_CC="$ac_prog"
6635     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6636     break 2
6637   fi
6638 done
6639   done
6640 IFS=$as_save_IFS
6641
6642 fi
6643 fi
6644 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6645 if test -n "$ac_ct_CC"; then
6646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6647 $as_echo "$ac_ct_CC" >&6; }
6648 else
6649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6650 $as_echo "no" >&6; }
6651 fi
6652
6653
6654   test -n "$ac_ct_CC" && break
6655 done
6656
6657   if test "x$ac_ct_CC" = x; then
6658     CC=""
6659   else
6660     case $cross_compiling:$ac_tool_warned in
6661 yes:)
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6663 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6664 ac_tool_warned=yes ;;
6665 esac
6666     CC=$ac_ct_CC
6667   fi
6668 fi
6669
6670 fi
6671
6672
6673 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6674 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6675 as_fn_error $? "no acceptable C compiler found in \$PATH
6676 See \`config.log' for more details" "$LINENO" 5; }
6677
6678 # Provide some information about the compiler.
6679 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6680 set X $ac_compile
6681 ac_compiler=$2
6682 for ac_option in --version -v -V -qversion; do
6683   { { ac_try="$ac_compiler $ac_option >&5"
6684 case "(($ac_try" in
6685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6686   *) ac_try_echo=$ac_try;;
6687 esac
6688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6689 $as_echo "$ac_try_echo"; } >&5
6690   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6691   ac_status=$?
6692   if test -s conftest.err; then
6693     sed '10a\
6694 ... rest of stderr output deleted ...
6695          10q' conftest.err >conftest.er1
6696     cat conftest.er1 >&5
6697   fi
6698   rm -f conftest.er1 conftest.err
6699   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6700   test $ac_status = 0; }
6701 done
6702
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6704 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6705 if ${ac_cv_c_compiler_gnu+:} false; then :
6706   $as_echo_n "(cached) " >&6
6707 else
6708   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6709 /* end confdefs.h.  */
6710
6711 int
6712 main ()
6713 {
6714 #ifndef __GNUC__
6715        choke me
6716 #endif
6717
6718   ;
6719   return 0;
6720 }
6721 _ACEOF
6722 if ac_fn_c_try_compile "$LINENO"; then :
6723   ac_compiler_gnu=yes
6724 else
6725   ac_compiler_gnu=no
6726 fi
6727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6728 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6729
6730 fi
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6732 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6733 if test $ac_compiler_gnu = yes; then
6734   GCC=yes
6735 else
6736   GCC=
6737 fi
6738 ac_test_CFLAGS=${CFLAGS+set}
6739 ac_save_CFLAGS=$CFLAGS
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6741 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6742 if ${ac_cv_prog_cc_g+:} false; then :
6743   $as_echo_n "(cached) " >&6
6744 else
6745   ac_save_c_werror_flag=$ac_c_werror_flag
6746    ac_c_werror_flag=yes
6747    ac_cv_prog_cc_g=no
6748    CFLAGS="-g"
6749    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6750 /* end confdefs.h.  */
6751
6752 int
6753 main ()
6754 {
6755
6756   ;
6757   return 0;
6758 }
6759 _ACEOF
6760 if ac_fn_c_try_compile "$LINENO"; then :
6761   ac_cv_prog_cc_g=yes
6762 else
6763   CFLAGS=""
6764       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6765 /* end confdefs.h.  */
6766
6767 int
6768 main ()
6769 {
6770
6771   ;
6772   return 0;
6773 }
6774 _ACEOF
6775 if ac_fn_c_try_compile "$LINENO"; then :
6776
6777 else
6778   ac_c_werror_flag=$ac_save_c_werror_flag
6779          CFLAGS="-g"
6780          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6781 /* end confdefs.h.  */
6782
6783 int
6784 main ()
6785 {
6786
6787   ;
6788   return 0;
6789 }
6790 _ACEOF
6791 if ac_fn_c_try_compile "$LINENO"; then :
6792   ac_cv_prog_cc_g=yes
6793 fi
6794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6795 fi
6796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6797 fi
6798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6799    ac_c_werror_flag=$ac_save_c_werror_flag
6800 fi
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6802 $as_echo "$ac_cv_prog_cc_g" >&6; }
6803 if test "$ac_test_CFLAGS" = set; then
6804   CFLAGS=$ac_save_CFLAGS
6805 elif test $ac_cv_prog_cc_g = yes; then
6806   if test "$GCC" = yes; then
6807     CFLAGS="-g -O2"
6808   else
6809     CFLAGS="-g"
6810   fi
6811 else
6812   if test "$GCC" = yes; then
6813     CFLAGS="-O2"
6814   else
6815     CFLAGS=
6816   fi
6817 fi
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6819 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6820 if ${ac_cv_prog_cc_c89+:} false; then :
6821   $as_echo_n "(cached) " >&6
6822 else
6823   ac_cv_prog_cc_c89=no
6824 ac_save_CC=$CC
6825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6826 /* end confdefs.h.  */
6827 #include <stdarg.h>
6828 #include <stdio.h>
6829 #include <sys/types.h>
6830 #include <sys/stat.h>
6831 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6832 struct buf { int x; };
6833 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6834 static char *e (p, i)
6835      char **p;
6836      int i;
6837 {
6838   return p[i];
6839 }
6840 static char *f (char * (*g) (char **, int), char **p, ...)
6841 {
6842   char *s;
6843   va_list v;
6844   va_start (v,p);
6845   s = g (p, va_arg (v,int));
6846   va_end (v);
6847   return s;
6848 }
6849
6850 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6851    function prototypes and stuff, but not '\xHH' hex character constants.
6852    These don't provoke an error unfortunately, instead are silently treated
6853    as 'x'.  The following induces an error, until -std is added to get
6854    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6855    array size at least.  It's necessary to write '\x00'==0 to get something
6856    that's true only with -std.  */
6857 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6858
6859 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6860    inside strings and character constants.  */
6861 #define FOO(x) 'x'
6862 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6863
6864 int test (int i, double x);
6865 struct s1 {int (*f) (int a);};
6866 struct s2 {int (*f) (double a);};
6867 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6868 int argc;
6869 char **argv;
6870 int
6871 main ()
6872 {
6873 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6874   ;
6875   return 0;
6876 }
6877 _ACEOF
6878 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6879         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6880 do
6881   CC="$ac_save_CC $ac_arg"
6882   if ac_fn_c_try_compile "$LINENO"; then :
6883   ac_cv_prog_cc_c89=$ac_arg
6884 fi
6885 rm -f core conftest.err conftest.$ac_objext
6886   test "x$ac_cv_prog_cc_c89" != "xno" && break
6887 done
6888 rm -f conftest.$ac_ext
6889 CC=$ac_save_CC
6890
6891 fi
6892 # AC_CACHE_VAL
6893 case "x$ac_cv_prog_cc_c89" in
6894   x)
6895     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6896 $as_echo "none needed" >&6; } ;;
6897   xno)
6898     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6899 $as_echo "unsupported" >&6; } ;;
6900   *)
6901     CC="$CC $ac_cv_prog_cc_c89"
6902     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6903 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6904 esac
6905 if test "x$ac_cv_prog_cc_c89" != xno; then :
6906
6907 fi
6908
6909 ac_ext=c
6910 ac_cpp='$CPP $CPPFLAGS'
6911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6914
6915 depcc="$CC"   am_compiler_list=
6916
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6918 $as_echo_n "checking dependency style of $depcc... " >&6; }
6919 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6920   $as_echo_n "(cached) " >&6
6921 else
6922   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6923   # We make a subdir and do the tests there.  Otherwise we can end up
6924   # making bogus files that we don't know about and never remove.  For
6925   # instance it was reported that on HP-UX the gcc test will end up
6926   # making a dummy file named `D' -- because `-MD' means `put the output
6927   # in D'.
6928   mkdir conftest.dir
6929   # Copy depcomp to subdir because otherwise we won't find it if we're
6930   # using a relative directory.
6931   cp "$am_depcomp" conftest.dir
6932   cd conftest.dir
6933   # We will build objects and dependencies in a subdirectory because
6934   # it helps to detect inapplicable dependency modes.  For instance
6935   # both Tru64's cc and ICC support -MD to output dependencies as a
6936   # side effect of compilation, but ICC will put the dependencies in
6937   # the current directory while Tru64 will put them in the object
6938   # directory.
6939   mkdir sub
6940
6941   am_cv_CC_dependencies_compiler_type=none
6942   if test "$am_compiler_list" = ""; then
6943      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6944   fi
6945   am__universal=false
6946   case " $depcc " in #(
6947      *\ -arch\ *\ -arch\ *) am__universal=true ;;
6948      esac
6949
6950   for depmode in $am_compiler_list; do
6951     # Setup a source with many dependencies, because some compilers
6952     # like to wrap large dependency lists on column 80 (with \), and
6953     # we should not choose a depcomp mode which is confused by this.
6954     #
6955     # We need to recreate these files for each test, as the compiler may
6956     # overwrite some of them when testing with obscure command lines.
6957     # This happens at least with the AIX C compiler.
6958     : > sub/conftest.c
6959     for i in 1 2 3 4 5 6; do
6960       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6961       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6962       # Solaris 8's {/usr,}/bin/sh.
6963       touch sub/conftst$i.h
6964     done
6965     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6966
6967     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6968     # mode.  It turns out that the SunPro C++ compiler does not properly
6969     # handle `-M -o', and we need to detect this.  Also, some Intel
6970     # versions had trouble with output in subdirs
6971     am__obj=sub/conftest.${OBJEXT-o}
6972     am__minus_obj="-o $am__obj"
6973     case $depmode in
6974     gcc)
6975       # This depmode causes a compiler race in universal mode.
6976       test "$am__universal" = false || continue
6977       ;;
6978     nosideeffect)
6979       # after this tag, mechanisms are not by side-effect, so they'll
6980       # only be used when explicitly requested
6981       if test "x$enable_dependency_tracking" = xyes; then
6982         continue
6983       else
6984         break
6985       fi
6986       ;;
6987     msvisualcpp | msvcmsys)
6988       # This compiler won't grok `-c -o', but also, the minuso test has
6989       # not run yet.  These depmodes are late enough in the game, and
6990       # so weak that their functioning should not be impacted.
6991       am__obj=conftest.${OBJEXT-o}
6992       am__minus_obj=
6993       ;;
6994     none) break ;;
6995     esac
6996     if depmode=$depmode \
6997        source=sub/conftest.c object=$am__obj \
6998        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6999        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7000          >/dev/null 2>conftest.err &&
7001        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7002        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7003        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7004        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7005       # icc doesn't choke on unknown options, it will just issue warnings
7006       # or remarks (even with -Werror).  So we grep stderr for any message
7007       # that says an option was ignored or not supported.
7008       # When given -MP, icc 7.0 and 7.1 complain thusly:
7009       #   icc: Command line warning: ignoring option '-M'; no argument required
7010       # The diagnosis changed in icc 8.0:
7011       #   icc: Command line remark: option '-MP' not supported
7012       if (grep 'ignoring option' conftest.err ||
7013           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7014         am_cv_CC_dependencies_compiler_type=$depmode
7015         break
7016       fi
7017     fi
7018   done
7019
7020   cd ..
7021   rm -rf conftest.dir
7022 else
7023   am_cv_CC_dependencies_compiler_type=none
7024 fi
7025
7026 fi
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
7028 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
7029 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7030
7031  if
7032   test "x$enable_dependency_tracking" != xno \
7033   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7034   am__fastdepCC_TRUE=
7035   am__fastdepCC_FALSE='#'
7036 else
7037   am__fastdepCC_TRUE='#'
7038   am__fastdepCC_FALSE=
7039 fi
7040
7041
7042 ac_ext=c
7043 ac_cpp='$CPP $CPPFLAGS'
7044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7048 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7049 # On Suns, sometimes $CPP names a directory.
7050 if test -n "$CPP" && test -d "$CPP"; then
7051   CPP=
7052 fi
7053 if test -z "$CPP"; then
7054   if ${ac_cv_prog_CPP+:} false; then :
7055   $as_echo_n "(cached) " >&6
7056 else
7057       # Double quotes because CPP needs to be expanded
7058     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7059     do
7060       ac_preproc_ok=false
7061 for ac_c_preproc_warn_flag in '' yes
7062 do
7063   # Use a header file that comes with gcc, so configuring glibc
7064   # with a fresh cross-compiler works.
7065   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7066   # <limits.h> exists even on freestanding compilers.
7067   # On the NeXT, cc -E runs the code through the compiler's parser,
7068   # not just through cpp. "Syntax error" is here to catch this case.
7069   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7070 /* end confdefs.h.  */
7071 #ifdef __STDC__
7072 # include <limits.h>
7073 #else
7074 # include <assert.h>
7075 #endif
7076                      Syntax error
7077 _ACEOF
7078 if ac_fn_c_try_cpp "$LINENO"; then :
7079
7080 else
7081   # Broken: fails on valid input.
7082 continue
7083 fi
7084 rm -f conftest.err conftest.i conftest.$ac_ext
7085
7086   # OK, works on sane cases.  Now check whether nonexistent headers
7087   # can be detected and how.
7088   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7089 /* end confdefs.h.  */
7090 #include <ac_nonexistent.h>
7091 _ACEOF
7092 if ac_fn_c_try_cpp "$LINENO"; then :
7093   # Broken: success on invalid input.
7094 continue
7095 else
7096   # Passes both tests.
7097 ac_preproc_ok=:
7098 break
7099 fi
7100 rm -f conftest.err conftest.i conftest.$ac_ext
7101
7102 done
7103 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7104 rm -f conftest.i conftest.err conftest.$ac_ext
7105 if $ac_preproc_ok; then :
7106   break
7107 fi
7108
7109     done
7110     ac_cv_prog_CPP=$CPP
7111
7112 fi
7113   CPP=$ac_cv_prog_CPP
7114 else
7115   ac_cv_prog_CPP=$CPP
7116 fi
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7118 $as_echo "$CPP" >&6; }
7119 ac_preproc_ok=false
7120 for ac_c_preproc_warn_flag in '' yes
7121 do
7122   # Use a header file that comes with gcc, so configuring glibc
7123   # with a fresh cross-compiler works.
7124   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7125   # <limits.h> exists even on freestanding compilers.
7126   # On the NeXT, cc -E runs the code through the compiler's parser,
7127   # not just through cpp. "Syntax error" is here to catch this case.
7128   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7129 /* end confdefs.h.  */
7130 #ifdef __STDC__
7131 # include <limits.h>
7132 #else
7133 # include <assert.h>
7134 #endif
7135                      Syntax error
7136 _ACEOF
7137 if ac_fn_c_try_cpp "$LINENO"; then :
7138
7139 else
7140   # Broken: fails on valid input.
7141 continue
7142 fi
7143 rm -f conftest.err conftest.i conftest.$ac_ext
7144
7145   # OK, works on sane cases.  Now check whether nonexistent headers
7146   # can be detected and how.
7147   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7148 /* end confdefs.h.  */
7149 #include <ac_nonexistent.h>
7150 _ACEOF
7151 if ac_fn_c_try_cpp "$LINENO"; then :
7152   # Broken: success on invalid input.
7153 continue
7154 else
7155   # Passes both tests.
7156 ac_preproc_ok=:
7157 break
7158 fi
7159 rm -f conftest.err conftest.i conftest.$ac_ext
7160
7161 done
7162 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7163 rm -f conftest.i conftest.err conftest.$ac_ext
7164 if $ac_preproc_ok; then :
7165
7166 else
7167   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7168 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7169 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7170 See \`config.log' for more details" "$LINENO" 5; }
7171 fi
7172
7173 ac_ext=c
7174 ac_cpp='$CPP $CPPFLAGS'
7175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7178
7179 if test "x$CC" != xcc; then
7180   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7181 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7182 else
7183   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7184 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7185 fi
7186 set dummy $CC; ac_cc=`$as_echo "$2" |
7187                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7188 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
7189   $as_echo_n "(cached) " >&6
7190 else
7191   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7192 /* end confdefs.h.  */
7193
7194 int
7195 main ()
7196 {
7197
7198   ;
7199   return 0;
7200 }
7201 _ACEOF
7202 # Make sure it works both with $CC and with simple cc.
7203 # We do the test twice because some compilers refuse to overwrite an
7204 # existing .o file with -o, though they will create one.
7205 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7206 rm -f conftest2.*
7207 if { { case "(($ac_try" in
7208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7209   *) ac_try_echo=$ac_try;;
7210 esac
7211 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7212 $as_echo "$ac_try_echo"; } >&5
7213   (eval "$ac_try") 2>&5
7214   ac_status=$?
7215   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7216   test $ac_status = 0; } &&
7217    test -f conftest2.$ac_objext && { { case "(($ac_try" in
7218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7219   *) ac_try_echo=$ac_try;;
7220 esac
7221 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7222 $as_echo "$ac_try_echo"; } >&5
7223   (eval "$ac_try") 2>&5
7224   ac_status=$?
7225   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7226   test $ac_status = 0; };
7227 then
7228   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7229   if test "x$CC" != xcc; then
7230     # Test first that cc exists at all.
7231     if { ac_try='cc -c conftest.$ac_ext >&5'
7232   { { case "(($ac_try" in
7233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7234   *) ac_try_echo=$ac_try;;
7235 esac
7236 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7237 $as_echo "$ac_try_echo"; } >&5
7238   (eval "$ac_try") 2>&5
7239   ac_status=$?
7240   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7241   test $ac_status = 0; }; }; then
7242       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7243       rm -f conftest2.*
7244       if { { case "(($ac_try" in
7245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7246   *) ac_try_echo=$ac_try;;
7247 esac
7248 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7249 $as_echo "$ac_try_echo"; } >&5
7250   (eval "$ac_try") 2>&5
7251   ac_status=$?
7252   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7253   test $ac_status = 0; } &&
7254          test -f conftest2.$ac_objext && { { case "(($ac_try" in
7255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7256   *) ac_try_echo=$ac_try;;
7257 esac
7258 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7259 $as_echo "$ac_try_echo"; } >&5
7260   (eval "$ac_try") 2>&5
7261   ac_status=$?
7262   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7263   test $ac_status = 0; };
7264       then
7265         # cc works too.
7266         :
7267       else
7268         # cc exists but doesn't like -o.
7269         eval ac_cv_prog_cc_${ac_cc}_c_o=no
7270       fi
7271     fi
7272   fi
7273 else
7274   eval ac_cv_prog_cc_${ac_cc}_c_o=no
7275 fi
7276 rm -f core conftest*
7277
7278 fi
7279 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7281 $as_echo "yes" >&6; }
7282 else
7283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7284 $as_echo "no" >&6; }
7285
7286 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7287
7288 fi
7289
7290 # FIXME: we rely on the cache variable name because
7291 # there is no other way.
7292 set dummy $CC
7293 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7294 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7295 if test "$am_t" != yes; then
7296    # Losing compiler, so override with the script.
7297    # FIXME: It is wrong to rewrite CC.
7298    # But if we don't then we get into trouble of one sort or another.
7299    # A longer-term fix would be to have automake use am__CC in this case,
7300    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7301    CC="$am_aux_dir/compile $CC"
7302 fi
7303
7304
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
7306 $as_echo_n "checking for library containing strerror... " >&6; }
7307 if ${ac_cv_search_strerror+:} false; then :
7308   $as_echo_n "(cached) " >&6
7309 else
7310   ac_func_search_save_LIBS=$LIBS
7311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7312 /* end confdefs.h.  */
7313
7314 /* Override any GCC internal prototype to avoid an error.
7315    Use char because int might match the return type of a GCC
7316    builtin and then its argument prototype would still apply.  */
7317 #ifdef __cplusplus
7318 extern "C"
7319 #endif
7320 char strerror ();
7321 int
7322 main ()
7323 {
7324 return strerror ();
7325   ;
7326   return 0;
7327 }
7328 _ACEOF
7329 for ac_lib in '' cposix; do
7330   if test -z "$ac_lib"; then
7331     ac_res="none required"
7332   else
7333     ac_res=-l$ac_lib
7334     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7335   fi
7336   if ac_fn_c_try_link "$LINENO"; then :
7337   ac_cv_search_strerror=$ac_res
7338 fi
7339 rm -f core conftest.err conftest.$ac_objext \
7340     conftest$ac_exeext
7341   if ${ac_cv_search_strerror+:} false; then :
7342   break
7343 fi
7344 done
7345 if ${ac_cv_search_strerror+:} false; then :
7346
7347 else
7348   ac_cv_search_strerror=no
7349 fi
7350 rm conftest.$ac_ext
7351 LIBS=$ac_func_search_save_LIBS
7352 fi
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
7354 $as_echo "$ac_cv_search_strerror" >&6; }
7355 ac_res=$ac_cv_search_strerror
7356 if test "$ac_res" != no; then :
7357   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7358
7359 fi
7360
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
7362 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7363 if ${ac_cv_c_const+:} false; then :
7364   $as_echo_n "(cached) " >&6
7365 else
7366   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7367 /* end confdefs.h.  */
7368
7369 int
7370 main ()
7371 {
7372 /* FIXME: Include the comments suggested by Paul. */
7373 #ifndef __cplusplus
7374   /* Ultrix mips cc rejects this.  */
7375   typedef int charset[2];
7376   const charset cs;
7377   /* SunOS 4.1.1 cc rejects this.  */
7378   char const *const *pcpcc;
7379   char **ppc;
7380   /* NEC SVR4.0.2 mips cc rejects this.  */
7381   struct point {int x, y;};
7382   static struct point const zero = {0,0};
7383   /* AIX XL C 1.02.0.0 rejects this.
7384      It does not let you subtract one const X* pointer from another in
7385      an arm of an if-expression whose if-part is not a constant
7386      expression */
7387   const char *g = "string";
7388   pcpcc = &g + (g ? g-g : 0);
7389   /* HPUX 7.0 cc rejects these. */
7390   ++pcpcc;
7391   ppc = (char**) pcpcc;
7392   pcpcc = (char const *const *) ppc;
7393   { /* SCO 3.2v4 cc rejects this.  */
7394     char *t;
7395     char const *s = 0 ? (char *) 0 : (char const *) 0;
7396
7397     *t++ = 0;
7398     if (s) return 0;
7399   }
7400   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7401     int x[] = {25, 17};
7402     const int *foo = &x[0];
7403     ++foo;
7404   }
7405   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7406     typedef const int *iptr;
7407     iptr p = 0;
7408     ++p;
7409   }
7410   { /* AIX XL C 1.02.0.0 rejects this saying
7411        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7412     struct s { int j; const int *ap[3]; };
7413     struct s *b; b->j = 5;
7414   }
7415   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7416     const int foo = 10;
7417     if (!foo) return 0;
7418   }
7419   return !cs[0] && !zero.x;
7420 #endif
7421
7422   ;
7423   return 0;
7424 }
7425 _ACEOF
7426 if ac_fn_c_try_compile "$LINENO"; then :
7427   ac_cv_c_const=yes
7428 else
7429   ac_cv_c_const=no
7430 fi
7431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7432 fi
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7434 $as_echo "$ac_cv_c_const" >&6; }
7435 if test $ac_cv_c_const = no; then
7436
7437 $as_echo "#define const /**/" >>confdefs.h
7438
7439 fi
7440
7441
7442
7443
7444 case `pwd` in
7445   *\ * | *\     *)
7446     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7447 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7448 esac
7449
7450
7451
7452 macro_version='2.4'
7453 macro_revision='1.3293'
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467 ltmain="$ac_aux_dir/ltmain.sh"
7468
7469 # Backslashify metacharacters that are still active within
7470 # double-quoted strings.
7471 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7472
7473 # Same as above, but do not quote variable references.
7474 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7475
7476 # Sed substitution to delay expansion of an escaped shell variable in a
7477 # double_quote_subst'ed string.
7478 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7479
7480 # Sed substitution to delay expansion of an escaped single quote.
7481 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7482
7483 # Sed substitution to avoid accidental globbing in evaled expressions
7484 no_glob_subst='s/\*/\\\*/g'
7485
7486 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7487 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7488 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7489
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7491 $as_echo_n "checking how to print strings... " >&6; }
7492 # Test print first, because it will be a builtin if present.
7493 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7494    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7495   ECHO='print -r --'
7496 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7497   ECHO='printf %s\n'
7498 else
7499   # Use this function as a fallback that always works.
7500   func_fallback_echo ()
7501   {
7502     eval 'cat <<_LTECHO_EOF
7503 $1
7504 _LTECHO_EOF'
7505   }
7506   ECHO='func_fallback_echo'
7507 fi
7508
7509 # func_echo_all arg...
7510 # Invoke $ECHO with all args, space-separated.
7511 func_echo_all ()
7512 {
7513     $ECHO ""
7514 }
7515
7516 case "$ECHO" in
7517   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7518 $as_echo "printf" >&6; } ;;
7519   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7520 $as_echo "print -r" >&6; } ;;
7521   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7522 $as_echo "cat" >&6; } ;;
7523 esac
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7539 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7540 if ${ac_cv_path_SED+:} false; then :
7541   $as_echo_n "(cached) " >&6
7542 else
7543             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7544      for ac_i in 1 2 3 4 5 6 7; do
7545        ac_script="$ac_script$as_nl$ac_script"
7546      done
7547      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7548      { ac_script=; unset ac_script;}
7549      if test -z "$SED"; then
7550   ac_path_SED_found=false
7551   # Loop through the user's path and test for each of PROGNAME-LIST
7552   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7553 for as_dir in $PATH
7554 do
7555   IFS=$as_save_IFS
7556   test -z "$as_dir" && as_dir=.
7557     for ac_prog in sed gsed; do
7558     for ac_exec_ext in '' $ac_executable_extensions; do
7559       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7560       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7561 # Check for GNU ac_path_SED and select it if it is found.
7562   # Check for GNU $ac_path_SED
7563 case `"$ac_path_SED" --version 2>&1` in
7564 *GNU*)
7565   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7566 *)
7567   ac_count=0
7568   $as_echo_n 0123456789 >"conftest.in"
7569   while :
7570   do
7571     cat "conftest.in" "conftest.in" >"conftest.tmp"
7572     mv "conftest.tmp" "conftest.in"
7573     cp "conftest.in" "conftest.nl"
7574     $as_echo '' >> "conftest.nl"
7575     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7576     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7577     as_fn_arith $ac_count + 1 && ac_count=$as_val
7578     if test $ac_count -gt ${ac_path_SED_max-0}; then
7579       # Best one so far, save it but keep looking for a better one
7580       ac_cv_path_SED="$ac_path_SED"
7581       ac_path_SED_max=$ac_count
7582     fi
7583     # 10*(2^10) chars as input seems more than enough
7584     test $ac_count -gt 10 && break
7585   done
7586   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7587 esac
7588
7589       $ac_path_SED_found && break 3
7590     done
7591   done
7592   done
7593 IFS=$as_save_IFS
7594   if test -z "$ac_cv_path_SED"; then
7595     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7596   fi
7597 else
7598   ac_cv_path_SED=$SED
7599 fi
7600
7601 fi
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7603 $as_echo "$ac_cv_path_SED" >&6; }
7604  SED="$ac_cv_path_SED"
7605   rm -f conftest.sed
7606
7607 test -z "$SED" && SED=sed
7608 Xsed="$SED -e 1s/^X//"
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7621 $as_echo_n "checking for fgrep... " >&6; }
7622 if ${ac_cv_path_FGREP+:} false; then :
7623   $as_echo_n "(cached) " >&6
7624 else
7625   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7626    then ac_cv_path_FGREP="$GREP -F"
7627    else
7628      if test -z "$FGREP"; then
7629   ac_path_FGREP_found=false
7630   # Loop through the user's path and test for each of PROGNAME-LIST
7631   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7632 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7633 do
7634   IFS=$as_save_IFS
7635   test -z "$as_dir" && as_dir=.
7636     for ac_prog in fgrep; do
7637     for ac_exec_ext in '' $ac_executable_extensions; do
7638       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7639       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7640 # Check for GNU ac_path_FGREP and select it if it is found.
7641   # Check for GNU $ac_path_FGREP
7642 case `"$ac_path_FGREP" --version 2>&1` in
7643 *GNU*)
7644   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7645 *)
7646   ac_count=0
7647   $as_echo_n 0123456789 >"conftest.in"
7648   while :
7649   do
7650     cat "conftest.in" "conftest.in" >"conftest.tmp"
7651     mv "conftest.tmp" "conftest.in"
7652     cp "conftest.in" "conftest.nl"
7653     $as_echo 'FGREP' >> "conftest.nl"
7654     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7655     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7656     as_fn_arith $ac_count + 1 && ac_count=$as_val
7657     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7658       # Best one so far, save it but keep looking for a better one
7659       ac_cv_path_FGREP="$ac_path_FGREP"
7660       ac_path_FGREP_max=$ac_count
7661     fi
7662     # 10*(2^10) chars as input seems more than enough
7663     test $ac_count -gt 10 && break
7664   done
7665   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7666 esac
7667
7668       $ac_path_FGREP_found && break 3
7669     done
7670   done
7671   done
7672 IFS=$as_save_IFS
7673   if test -z "$ac_cv_path_FGREP"; then
7674     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7675   fi
7676 else
7677   ac_cv_path_FGREP=$FGREP
7678 fi
7679
7680    fi
7681 fi
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7683 $as_echo "$ac_cv_path_FGREP" >&6; }
7684  FGREP="$ac_cv_path_FGREP"
7685
7686
7687 test -z "$GREP" && GREP=grep
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707 # Check whether --with-gnu-ld was given.
7708 if test "${with_gnu_ld+set}" = set; then :
7709   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7710 else
7711   with_gnu_ld=no
7712 fi
7713
7714 ac_prog=ld
7715 if test "$GCC" = yes; then
7716   # Check if gcc -print-prog-name=ld gives a path.
7717   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7718 $as_echo_n "checking for ld used by $CC... " >&6; }
7719   case $host in
7720   *-*-mingw*)
7721     # gcc leaves a trailing carriage return which upsets mingw
7722     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7723   *)
7724     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7725   esac
7726   case $ac_prog in
7727     # Accept absolute paths.
7728     [\\/]* | ?:[\\/]*)
7729       re_direlt='/[^/][^/]*/\.\./'
7730       # Canonicalize the pathname of ld
7731       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7732       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7733         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7734       done
7735       test -z "$LD" && LD="$ac_prog"
7736       ;;
7737   "")
7738     # If it fails, then pretend we aren't using GCC.
7739     ac_prog=ld
7740     ;;
7741   *)
7742     # If it is relative, then search for the first ld in PATH.
7743     with_gnu_ld=unknown
7744     ;;
7745   esac
7746 elif test "$with_gnu_ld" = yes; then
7747   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7748 $as_echo_n "checking for GNU ld... " >&6; }
7749 else
7750   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7751 $as_echo_n "checking for non-GNU ld... " >&6; }
7752 fi
7753 if ${lt_cv_path_LD+:} false; then :
7754   $as_echo_n "(cached) " >&6
7755 else
7756   if test -z "$LD"; then
7757   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7758   for ac_dir in $PATH; do
7759     IFS="$lt_save_ifs"
7760     test -z "$ac_dir" && ac_dir=.
7761     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7762       lt_cv_path_LD="$ac_dir/$ac_prog"
7763       # Check to see if the program is GNU ld.  I'd rather use --version,
7764       # but apparently some variants of GNU ld only accept -v.
7765       # Break only if it was the GNU/non-GNU ld that we prefer.
7766       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7767       *GNU* | *'with BFD'*)
7768         test "$with_gnu_ld" != no && break
7769         ;;
7770       *)
7771         test "$with_gnu_ld" != yes && break
7772         ;;
7773       esac
7774     fi
7775   done
7776   IFS="$lt_save_ifs"
7777 else
7778   lt_cv_path_LD="$LD" # Let the user override the test with a path.
7779 fi
7780 fi
7781
7782 LD="$lt_cv_path_LD"
7783 if test -n "$LD"; then
7784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7785 $as_echo "$LD" >&6; }
7786 else
7787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7788 $as_echo "no" >&6; }
7789 fi
7790 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7792 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7793 if ${lt_cv_prog_gnu_ld+:} false; then :
7794   $as_echo_n "(cached) " >&6
7795 else
7796   # I'd rather use --version here, but apparently some GNU lds only accept -v.
7797 case `$LD -v 2>&1 </dev/null` in
7798 *GNU* | *'with BFD'*)
7799   lt_cv_prog_gnu_ld=yes
7800   ;;
7801 *)
7802   lt_cv_prog_gnu_ld=no
7803   ;;
7804 esac
7805 fi
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7807 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7808 with_gnu_ld=$lt_cv_prog_gnu_ld
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7819 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7820 if ${lt_cv_path_NM+:} false; then :
7821   $as_echo_n "(cached) " >&6
7822 else
7823   if test -n "$NM"; then
7824   # Let the user override the test.
7825   lt_cv_path_NM="$NM"
7826 else
7827   lt_nm_to_check="${ac_tool_prefix}nm"
7828   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7829     lt_nm_to_check="$lt_nm_to_check nm"
7830   fi
7831   for lt_tmp_nm in $lt_nm_to_check; do
7832     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7833     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7834       IFS="$lt_save_ifs"
7835       test -z "$ac_dir" && ac_dir=.
7836       tmp_nm="$ac_dir/$lt_tmp_nm"
7837       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7838         # Check to see if the nm accepts a BSD-compat flag.
7839         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7840         #   nm: unknown option "B" ignored
7841         # Tru64's nm complains that /dev/null is an invalid object file
7842         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7843         */dev/null* | *'Invalid file or object type'*)
7844           lt_cv_path_NM="$tmp_nm -B"
7845           break
7846           ;;
7847         *)
7848           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7849           */dev/null*)
7850             lt_cv_path_NM="$tmp_nm -p"
7851             break
7852             ;;
7853           *)
7854             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7855             continue # so that we can try to find one that supports BSD flags
7856             ;;
7857           esac
7858           ;;
7859         esac
7860       fi
7861     done
7862     IFS="$lt_save_ifs"
7863   done
7864   : ${lt_cv_path_NM=no}
7865 fi
7866 fi
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7868 $as_echo "$lt_cv_path_NM" >&6; }
7869 if test "$lt_cv_path_NM" != "no"; then
7870   NM="$lt_cv_path_NM"
7871 else
7872   # Didn't find any BSD compatible name lister, look for dumpbin.
7873   if test -n "$DUMPBIN"; then :
7874     # Let the user override the test.
7875   else
7876     if test -n "$ac_tool_prefix"; then
7877   for ac_prog in dumpbin "link -dump"
7878   do
7879     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7880 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7882 $as_echo_n "checking for $ac_word... " >&6; }
7883 if ${ac_cv_prog_DUMPBIN+:} false; then :
7884   $as_echo_n "(cached) " >&6
7885 else
7886   if test -n "$DUMPBIN"; then
7887   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7888 else
7889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7890 for as_dir in $PATH
7891 do
7892   IFS=$as_save_IFS
7893   test -z "$as_dir" && as_dir=.
7894     for ac_exec_ext in '' $ac_executable_extensions; do
7895   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7896     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7897     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7898     break 2
7899   fi
7900 done
7901   done
7902 IFS=$as_save_IFS
7903
7904 fi
7905 fi
7906 DUMPBIN=$ac_cv_prog_DUMPBIN
7907 if test -n "$DUMPBIN"; then
7908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7909 $as_echo "$DUMPBIN" >&6; }
7910 else
7911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7912 $as_echo "no" >&6; }
7913 fi
7914
7915
7916     test -n "$DUMPBIN" && break
7917   done
7918 fi
7919 if test -z "$DUMPBIN"; then
7920   ac_ct_DUMPBIN=$DUMPBIN
7921   for ac_prog in dumpbin "link -dump"
7922 do
7923   # Extract the first word of "$ac_prog", so it can be a program name with args.
7924 set dummy $ac_prog; ac_word=$2
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7926 $as_echo_n "checking for $ac_word... " >&6; }
7927 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7928   $as_echo_n "(cached) " >&6
7929 else
7930   if test -n "$ac_ct_DUMPBIN"; then
7931   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7932 else
7933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7934 for as_dir in $PATH
7935 do
7936   IFS=$as_save_IFS
7937   test -z "$as_dir" && as_dir=.
7938     for ac_exec_ext in '' $ac_executable_extensions; do
7939   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7940     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7941     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7942     break 2
7943   fi
7944 done
7945   done
7946 IFS=$as_save_IFS
7947
7948 fi
7949 fi
7950 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7951 if test -n "$ac_ct_DUMPBIN"; then
7952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7953 $as_echo "$ac_ct_DUMPBIN" >&6; }
7954 else
7955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7956 $as_echo "no" >&6; }
7957 fi
7958
7959
7960   test -n "$ac_ct_DUMPBIN" && break
7961 done
7962
7963   if test "x$ac_ct_DUMPBIN" = x; then
7964     DUMPBIN=":"
7965   else
7966     case $cross_compiling:$ac_tool_warned in
7967 yes:)
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7969 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7970 ac_tool_warned=yes ;;
7971 esac
7972     DUMPBIN=$ac_ct_DUMPBIN
7973   fi
7974 fi
7975
7976     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7977     *COFF*)
7978       DUMPBIN="$DUMPBIN -symbols"
7979       ;;
7980     *)
7981       DUMPBIN=:
7982       ;;
7983     esac
7984   fi
7985
7986   if test "$DUMPBIN" != ":"; then
7987     NM="$DUMPBIN"
7988   fi
7989 fi
7990 test -z "$NM" && NM=nm
7991
7992
7993
7994
7995
7996
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7998 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7999 if ${lt_cv_nm_interface+:} false; then :
8000   $as_echo_n "(cached) " >&6
8001 else
8002   lt_cv_nm_interface="BSD nm"
8003   echo "int some_variable = 0;" > conftest.$ac_ext
8004   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8005   (eval "$ac_compile" 2>conftest.err)
8006   cat conftest.err >&5
8007   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8008   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8009   cat conftest.err >&5
8010   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8011   cat conftest.out >&5
8012   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8013     lt_cv_nm_interface="MS dumpbin"
8014   fi
8015   rm -f conftest*
8016 fi
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8018 $as_echo "$lt_cv_nm_interface" >&6; }
8019
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8021 $as_echo_n "checking whether ln -s works... " >&6; }
8022 LN_S=$as_ln_s
8023 if test "$LN_S" = "ln -s"; then
8024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8025 $as_echo "yes" >&6; }
8026 else
8027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8028 $as_echo "no, using $LN_S" >&6; }
8029 fi
8030
8031 # find the maximum length of command line arguments
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8033 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
8034 if ${lt_cv_sys_max_cmd_len+:} false; then :
8035   $as_echo_n "(cached) " >&6
8036 else
8037     i=0
8038   teststring="ABCD"
8039
8040   case $build_os in
8041   msdosdjgpp*)
8042     # On DJGPP, this test can blow up pretty badly due to problems in libc
8043     # (any single argument exceeding 2000 bytes causes a buffer overrun
8044     # during glob expansion).  Even if it were fixed, the result of this
8045     # check would be larger than it should be.
8046     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8047     ;;
8048
8049   gnu*)
8050     # Under GNU Hurd, this test is not required because there is
8051     # no limit to the length of command line arguments.
8052     # Libtool will interpret -1 as no limit whatsoever
8053     lt_cv_sys_max_cmd_len=-1;
8054     ;;
8055
8056   cygwin* | mingw* | cegcc*)
8057     # On Win9x/ME, this test blows up -- it succeeds, but takes
8058     # about 5 minutes as the teststring grows exponentially.
8059     # Worse, since 9x/ME are not pre-emptively multitasking,
8060     # you end up with a "frozen" computer, even though with patience
8061     # the test eventually succeeds (with a max line length of 256k).
8062     # Instead, let's just punt: use the minimum linelength reported by
8063     # all of the supported platforms: 8192 (on NT/2K/XP).
8064     lt_cv_sys_max_cmd_len=8192;
8065     ;;
8066
8067   mint*)
8068     # On MiNT this can take a long time and run out of memory.
8069     lt_cv_sys_max_cmd_len=8192;
8070     ;;
8071
8072   amigaos*)
8073     # On AmigaOS with pdksh, this test takes hours, literally.
8074     # So we just punt and use a minimum line length of 8192.
8075     lt_cv_sys_max_cmd_len=8192;
8076     ;;
8077
8078   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8079     # This has been around since 386BSD, at least.  Likely further.
8080     if test -x /sbin/sysctl; then
8081       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8082     elif test -x /usr/sbin/sysctl; then
8083       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8084     else
8085       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
8086     fi
8087     # And add a safety zone
8088     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8089     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8090     ;;
8091
8092   interix*)
8093     # We know the value 262144 and hardcode it with a safety zone (like BSD)
8094     lt_cv_sys_max_cmd_len=196608
8095     ;;
8096
8097   osf*)
8098     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8099     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8100     # nice to cause kernel panics so lets avoid the loop below.
8101     # First set a reasonable default.
8102     lt_cv_sys_max_cmd_len=16384
8103     #
8104     if test -x /sbin/sysconfig; then
8105       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8106         *1*) lt_cv_sys_max_cmd_len=-1 ;;
8107       esac
8108     fi
8109     ;;
8110   sco3.2v5*)
8111     lt_cv_sys_max_cmd_len=102400
8112     ;;
8113   sysv5* | sco5v6* | sysv4.2uw2*)
8114     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8115     if test -n "$kargmax"; then
8116       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
8117     else
8118       lt_cv_sys_max_cmd_len=32768
8119     fi
8120     ;;
8121   *)
8122     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8123     if test -n "$lt_cv_sys_max_cmd_len"; then
8124       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8125       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8126     else
8127       # Make teststring a little bigger before we do anything with it.
8128       # a 1K string should be a reasonable start.
8129       for i in 1 2 3 4 5 6 7 8 ; do
8130         teststring=$teststring$teststring
8131       done
8132       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8133       # If test is not a shell built-in, we'll probably end up computing a
8134       # maximum length that is only half of the actual maximum length, but
8135       # we can't tell.
8136       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
8137                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8138               test $i != 17 # 1/2 MB should be enough
8139       do
8140         i=`expr $i + 1`
8141         teststring=$teststring$teststring
8142       done
8143       # Only check the string length outside the loop.
8144       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8145       teststring=
8146       # Add a significant safety factor because C++ compilers can tack on
8147       # massive amounts of additional arguments before passing them to the
8148       # linker.  It appears as though 1/2 is a usable value.
8149       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8150     fi
8151     ;;
8152   esac
8153
8154 fi
8155
8156 if test -n $lt_cv_sys_max_cmd_len ; then
8157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8158 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8159 else
8160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8161 $as_echo "none" >&6; }
8162 fi
8163 max_cmd_len=$lt_cv_sys_max_cmd_len
8164
8165
8166
8167
8168
8169
8170 : ${CP="cp -f"}
8171 : ${MV="mv -f"}
8172 : ${RM="rm -f"}
8173
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
8175 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
8176 # Try some XSI features
8177 xsi_shell=no
8178 ( _lt_dummy="a/b/c"
8179   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
8180       = c,a/b,b/c, \
8181     && eval 'test $(( 1 + 1 )) -eq 2 \
8182     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
8183   && xsi_shell=yes
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
8185 $as_echo "$xsi_shell" >&6; }
8186
8187
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
8189 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
8190 lt_shell_append=no
8191 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
8192     >/dev/null 2>&1 \
8193   && lt_shell_append=yes
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
8195 $as_echo "$lt_shell_append" >&6; }
8196
8197
8198 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8199   lt_unset=unset
8200 else
8201   lt_unset=false
8202 fi
8203
8204
8205
8206
8207
8208 # test EBCDIC or ASCII
8209 case `echo X|tr X '\101'` in
8210  A) # ASCII based system
8211     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8212   lt_SP2NL='tr \040 \012'
8213   lt_NL2SP='tr \015\012 \040\040'
8214   ;;
8215  *) # EBCDIC based system
8216   lt_SP2NL='tr \100 \n'
8217   lt_NL2SP='tr \r\n \100\100'
8218   ;;
8219 esac
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8230 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
8231 if ${lt_cv_to_host_file_cmd+:} false; then :
8232   $as_echo_n "(cached) " >&6
8233 else
8234   case $host in
8235   *-*-mingw* )
8236     case $build in
8237       *-*-mingw* ) # actually msys
8238         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8239         ;;
8240       *-*-cygwin* )
8241         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8242         ;;
8243       * ) # otherwise, assume *nix
8244         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8245         ;;
8246     esac
8247     ;;
8248   *-*-cygwin* )
8249     case $build in
8250       *-*-mingw* ) # actually msys
8251         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8252         ;;
8253       *-*-cygwin* )
8254         lt_cv_to_host_file_cmd=func_convert_file_noop
8255         ;;
8256       * ) # otherwise, assume *nix
8257         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8258         ;;
8259     esac
8260     ;;
8261   * ) # unhandled hosts (and "normal" native builds)
8262     lt_cv_to_host_file_cmd=func_convert_file_noop
8263     ;;
8264 esac
8265
8266 fi
8267
8268 to_host_file_cmd=$lt_cv_to_host_file_cmd
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8270 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
8271
8272
8273
8274
8275
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8277 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8278 if ${lt_cv_to_tool_file_cmd+:} false; then :
8279   $as_echo_n "(cached) " >&6
8280 else
8281   #assume ordinary cross tools, or native build.
8282 lt_cv_to_tool_file_cmd=func_convert_file_noop
8283 case $host in
8284   *-*-mingw* )
8285     case $build in
8286       *-*-mingw* ) # actually msys
8287         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8288         ;;
8289     esac
8290     ;;
8291 esac
8292
8293 fi
8294
8295 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8297 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8298
8299
8300
8301
8302
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8304 $as_echo_n "checking for $LD option to reload object files... " >&6; }
8305 if ${lt_cv_ld_reload_flag+:} false; then :
8306   $as_echo_n "(cached) " >&6
8307 else
8308   lt_cv_ld_reload_flag='-r'
8309 fi
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8311 $as_echo "$lt_cv_ld_reload_flag" >&6; }
8312 reload_flag=$lt_cv_ld_reload_flag
8313 case $reload_flag in
8314 "" | " "*) ;;
8315 *) reload_flag=" $reload_flag" ;;
8316 esac
8317 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8318 case $host_os in
8319   cygwin* | mingw* | pw32* | cegcc*)
8320     if test "$GCC" != yes; then
8321       reload_cmds=false
8322     fi
8323     ;;
8324   darwin*)
8325     if test "$GCC" = yes; then
8326       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
8327     else
8328       reload_cmds='$LD$reload_flag -o $output$reload_objs'
8329     fi
8330     ;;
8331 esac
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341 if test -n "$ac_tool_prefix"; then
8342   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8343 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8345 $as_echo_n "checking for $ac_word... " >&6; }
8346 if ${ac_cv_prog_OBJDUMP+:} false; then :
8347   $as_echo_n "(cached) " >&6
8348 else
8349   if test -n "$OBJDUMP"; then
8350   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8351 else
8352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8353 for as_dir in $PATH
8354 do
8355   IFS=$as_save_IFS
8356   test -z "$as_dir" && as_dir=.
8357     for ac_exec_ext in '' $ac_executable_extensions; do
8358   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8359     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8360     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8361     break 2
8362   fi
8363 done
8364   done
8365 IFS=$as_save_IFS
8366
8367 fi
8368 fi
8369 OBJDUMP=$ac_cv_prog_OBJDUMP
8370 if test -n "$OBJDUMP"; then
8371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8372 $as_echo "$OBJDUMP" >&6; }
8373 else
8374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8375 $as_echo "no" >&6; }
8376 fi
8377
8378
8379 fi
8380 if test -z "$ac_cv_prog_OBJDUMP"; then
8381   ac_ct_OBJDUMP=$OBJDUMP
8382   # Extract the first word of "objdump", so it can be a program name with args.
8383 set dummy objdump; ac_word=$2
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8385 $as_echo_n "checking for $ac_word... " >&6; }
8386 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8387   $as_echo_n "(cached) " >&6
8388 else
8389   if test -n "$ac_ct_OBJDUMP"; then
8390   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8391 else
8392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8393 for as_dir in $PATH
8394 do
8395   IFS=$as_save_IFS
8396   test -z "$as_dir" && as_dir=.
8397     for ac_exec_ext in '' $ac_executable_extensions; do
8398   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8399     ac_cv_prog_ac_ct_OBJDUMP="objdump"
8400     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8401     break 2
8402   fi
8403 done
8404   done
8405 IFS=$as_save_IFS
8406
8407 fi
8408 fi
8409 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8410 if test -n "$ac_ct_OBJDUMP"; then
8411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8412 $as_echo "$ac_ct_OBJDUMP" >&6; }
8413 else
8414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8415 $as_echo "no" >&6; }
8416 fi
8417
8418   if test "x$ac_ct_OBJDUMP" = x; then
8419     OBJDUMP="false"
8420   else
8421     case $cross_compiling:$ac_tool_warned in
8422 yes:)
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8424 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8425 ac_tool_warned=yes ;;
8426 esac
8427     OBJDUMP=$ac_ct_OBJDUMP
8428   fi
8429 else
8430   OBJDUMP="$ac_cv_prog_OBJDUMP"
8431 fi
8432
8433 test -z "$OBJDUMP" && OBJDUMP=objdump
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8444 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
8445 if ${lt_cv_deplibs_check_method+:} false; then :
8446   $as_echo_n "(cached) " >&6
8447 else
8448   lt_cv_file_magic_cmd='$MAGIC_CMD'
8449 lt_cv_file_magic_test_file=
8450 lt_cv_deplibs_check_method='unknown'
8451 # Need to set the preceding variable on all platforms that support
8452 # interlibrary dependencies.
8453 # 'none' -- dependencies not supported.
8454 # `unknown' -- same as none, but documents that we really don't know.
8455 # 'pass_all' -- all dependencies passed with no checks.
8456 # 'test_compile' -- check by making test program.
8457 # 'file_magic [[regex]]' -- check by looking for files in library path
8458 # which responds to the $file_magic_cmd with a given extended regex.
8459 # If you have `file' or equivalent on your system and you're not sure
8460 # whether `pass_all' will *always* work, you probably want this one.
8461
8462 case $host_os in
8463 aix[4-9]*)
8464   lt_cv_deplibs_check_method=pass_all
8465   ;;
8466
8467 beos*)
8468   lt_cv_deplibs_check_method=pass_all
8469   ;;
8470
8471 bsdi[45]*)
8472   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8473   lt_cv_file_magic_cmd='/usr/bin/file -L'
8474   lt_cv_file_magic_test_file=/shlib/libc.so
8475   ;;
8476
8477 cygwin*)
8478   # func_win32_libid is a shell function defined in ltmain.sh
8479   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8480   lt_cv_file_magic_cmd='func_win32_libid'
8481   ;;
8482
8483 mingw* | pw32*)
8484   # Base MSYS/MinGW do not provide the 'file' command needed by
8485   # func_win32_libid shell function, so use a weaker test based on 'objdump',
8486   # unless we find 'file', for example because we are cross-compiling.
8487   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
8488   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
8489     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8490     lt_cv_file_magic_cmd='func_win32_libid'
8491   else
8492     # Keep this pattern in sync with the one in func_win32_libid.
8493     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8494     lt_cv_file_magic_cmd='$OBJDUMP -f'
8495   fi
8496   ;;
8497
8498 cegcc*)
8499   # use the weaker test based on 'objdump'. See mingw*.
8500   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8501   lt_cv_file_magic_cmd='$OBJDUMP -f'
8502   ;;
8503
8504 darwin* | rhapsody*)
8505   lt_cv_deplibs_check_method=pass_all
8506   ;;
8507
8508 freebsd* | dragonfly*)
8509   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8510     case $host_cpu in
8511     i*86 )
8512       # Not sure whether the presence of OpenBSD here was a mistake.
8513       # Let's accept both of them until this is cleared up.
8514       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8515       lt_cv_file_magic_cmd=/usr/bin/file
8516       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8517       ;;
8518     esac
8519   else
8520     lt_cv_deplibs_check_method=pass_all
8521   fi
8522   ;;
8523
8524 gnu*)
8525   lt_cv_deplibs_check_method=pass_all
8526   ;;
8527
8528 haiku*)
8529   lt_cv_deplibs_check_method=pass_all
8530   ;;
8531
8532 hpux10.20* | hpux11*)
8533   lt_cv_file_magic_cmd=/usr/bin/file
8534   case $host_cpu in
8535   ia64*)
8536     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8537     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8538     ;;
8539   hppa*64*)
8540     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]'
8541     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8542     ;;
8543   *)
8544     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8545     lt_cv_file_magic_test_file=/usr/lib/libc.sl
8546     ;;
8547   esac
8548   ;;
8549
8550 interix[3-9]*)
8551   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8552   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8553   ;;
8554
8555 irix5* | irix6* | nonstopux*)
8556   case $LD in
8557   *-32|*"-32 ") libmagic=32-bit;;
8558   *-n32|*"-n32 ") libmagic=N32;;
8559   *-64|*"-64 ") libmagic=64-bit;;
8560   *) libmagic=never-match;;
8561   esac
8562   lt_cv_deplibs_check_method=pass_all
8563   ;;
8564
8565 # This must be Linux ELF.
8566 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8567   lt_cv_deplibs_check_method=pass_all
8568   ;;
8569
8570 netbsd*)
8571   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8572     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8573   else
8574     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8575   fi
8576   ;;
8577
8578 newos6*)
8579   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8580   lt_cv_file_magic_cmd=/usr/bin/file
8581   lt_cv_file_magic_test_file=/usr/lib/libnls.so
8582   ;;
8583
8584 *nto* | *qnx*)
8585   lt_cv_deplibs_check_method=pass_all
8586   ;;
8587
8588 openbsd*)
8589   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8590     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8591   else
8592     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8593   fi
8594   ;;
8595
8596 osf3* | osf4* | osf5*)
8597   lt_cv_deplibs_check_method=pass_all
8598   ;;
8599
8600 rdos*)
8601   lt_cv_deplibs_check_method=pass_all
8602   ;;
8603
8604 solaris*)
8605   lt_cv_deplibs_check_method=pass_all
8606   ;;
8607
8608 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8609   lt_cv_deplibs_check_method=pass_all
8610   ;;
8611
8612 sysv4 | sysv4.3*)
8613   case $host_vendor in
8614   motorola)
8615     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]'
8616     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8617     ;;
8618   ncr)
8619     lt_cv_deplibs_check_method=pass_all
8620     ;;
8621   sequent)
8622     lt_cv_file_magic_cmd='/bin/file'
8623     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8624     ;;
8625   sni)
8626     lt_cv_file_magic_cmd='/bin/file'
8627     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8628     lt_cv_file_magic_test_file=/lib/libc.so
8629     ;;
8630   siemens)
8631     lt_cv_deplibs_check_method=pass_all
8632     ;;
8633   pc)
8634     lt_cv_deplibs_check_method=pass_all
8635     ;;
8636   esac
8637   ;;
8638
8639 tpf*)
8640   lt_cv_deplibs_check_method=pass_all
8641   ;;
8642 esac
8643
8644 fi
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8646 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8647
8648 file_magic_glob=
8649 want_nocaseglob=no
8650 if test "$build" = "$host"; then
8651   case $host_os in
8652   mingw* | pw32*)
8653     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8654       want_nocaseglob=yes
8655     else
8656       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8657     fi
8658     ;;
8659   esac
8660 fi
8661
8662 file_magic_cmd=$lt_cv_file_magic_cmd
8663 deplibs_check_method=$lt_cv_deplibs_check_method
8664 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687 if test -n "$ac_tool_prefix"; then
8688   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8689 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8691 $as_echo_n "checking for $ac_word... " >&6; }
8692 if ${ac_cv_prog_DLLTOOL+:} false; then :
8693   $as_echo_n "(cached) " >&6
8694 else
8695   if test -n "$DLLTOOL"; then
8696   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8697 else
8698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8699 for as_dir in $PATH
8700 do
8701   IFS=$as_save_IFS
8702   test -z "$as_dir" && as_dir=.
8703     for ac_exec_ext in '' $ac_executable_extensions; do
8704   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8705     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8706     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8707     break 2
8708   fi
8709 done
8710   done
8711 IFS=$as_save_IFS
8712
8713 fi
8714 fi
8715 DLLTOOL=$ac_cv_prog_DLLTOOL
8716 if test -n "$DLLTOOL"; then
8717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8718 $as_echo "$DLLTOOL" >&6; }
8719 else
8720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8721 $as_echo "no" >&6; }
8722 fi
8723
8724
8725 fi
8726 if test -z "$ac_cv_prog_DLLTOOL"; then
8727   ac_ct_DLLTOOL=$DLLTOOL
8728   # Extract the first word of "dlltool", so it can be a program name with args.
8729 set dummy dlltool; ac_word=$2
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8731 $as_echo_n "checking for $ac_word... " >&6; }
8732 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8733   $as_echo_n "(cached) " >&6
8734 else
8735   if test -n "$ac_ct_DLLTOOL"; then
8736   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8737 else
8738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8739 for as_dir in $PATH
8740 do
8741   IFS=$as_save_IFS
8742   test -z "$as_dir" && as_dir=.
8743     for ac_exec_ext in '' $ac_executable_extensions; do
8744   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8745     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8746     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8747     break 2
8748   fi
8749 done
8750   done
8751 IFS=$as_save_IFS
8752
8753 fi
8754 fi
8755 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8756 if test -n "$ac_ct_DLLTOOL"; then
8757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8758 $as_echo "$ac_ct_DLLTOOL" >&6; }
8759 else
8760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8761 $as_echo "no" >&6; }
8762 fi
8763
8764   if test "x$ac_ct_DLLTOOL" = x; then
8765     DLLTOOL="false"
8766   else
8767     case $cross_compiling:$ac_tool_warned in
8768 yes:)
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8770 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8771 ac_tool_warned=yes ;;
8772 esac
8773     DLLTOOL=$ac_ct_DLLTOOL
8774   fi
8775 else
8776   DLLTOOL="$ac_cv_prog_DLLTOOL"
8777 fi
8778
8779 test -z "$DLLTOOL" && DLLTOOL=dlltool
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8791 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8792 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8793   $as_echo_n "(cached) " >&6
8794 else
8795   lt_cv_sharedlib_from_linklib_cmd='unknown'
8796
8797 case $host_os in
8798 cygwin* | mingw* | pw32* | cegcc*)
8799   # two different shell functions defined in ltmain.sh
8800   # decide which to use based on capabilities of $DLLTOOL
8801   case `$DLLTOOL --help 2>&1` in
8802   *--identify-strict*)
8803     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8804     ;;
8805   *)
8806     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8807     ;;
8808   esac
8809   ;;
8810 *)
8811   # fallback: assume linklib IS sharedlib
8812   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
8813   ;;
8814 esac
8815
8816 fi
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8818 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8819 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8820 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8821
8822
8823
8824
8825
8826
8827
8828 if test -n "$ac_tool_prefix"; then
8829   for ac_prog in ar
8830   do
8831     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8832 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8834 $as_echo_n "checking for $ac_word... " >&6; }
8835 if ${ac_cv_prog_AR+:} false; then :
8836   $as_echo_n "(cached) " >&6
8837 else
8838   if test -n "$AR"; then
8839   ac_cv_prog_AR="$AR" # Let the user override the test.
8840 else
8841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8842 for as_dir in $PATH
8843 do
8844   IFS=$as_save_IFS
8845   test -z "$as_dir" && as_dir=.
8846     for ac_exec_ext in '' $ac_executable_extensions; do
8847   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8848     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8849     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8850     break 2
8851   fi
8852 done
8853   done
8854 IFS=$as_save_IFS
8855
8856 fi
8857 fi
8858 AR=$ac_cv_prog_AR
8859 if test -n "$AR"; then
8860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8861 $as_echo "$AR" >&6; }
8862 else
8863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8864 $as_echo "no" >&6; }
8865 fi
8866
8867
8868     test -n "$AR" && break
8869   done
8870 fi
8871 if test -z "$AR"; then
8872   ac_ct_AR=$AR
8873   for ac_prog in ar
8874 do
8875   # Extract the first word of "$ac_prog", so it can be a program name with args.
8876 set dummy $ac_prog; ac_word=$2
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8878 $as_echo_n "checking for $ac_word... " >&6; }
8879 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8880   $as_echo_n "(cached) " >&6
8881 else
8882   if test -n "$ac_ct_AR"; then
8883   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8884 else
8885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8886 for as_dir in $PATH
8887 do
8888   IFS=$as_save_IFS
8889   test -z "$as_dir" && as_dir=.
8890     for ac_exec_ext in '' $ac_executable_extensions; do
8891   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8892     ac_cv_prog_ac_ct_AR="$ac_prog"
8893     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8894     break 2
8895   fi
8896 done
8897   done
8898 IFS=$as_save_IFS
8899
8900 fi
8901 fi
8902 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8903 if test -n "$ac_ct_AR"; then
8904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8905 $as_echo "$ac_ct_AR" >&6; }
8906 else
8907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8908 $as_echo "no" >&6; }
8909 fi
8910
8911
8912   test -n "$ac_ct_AR" && break
8913 done
8914
8915   if test "x$ac_ct_AR" = x; then
8916     AR="false"
8917   else
8918     case $cross_compiling:$ac_tool_warned in
8919 yes:)
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8921 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8922 ac_tool_warned=yes ;;
8923 esac
8924     AR=$ac_ct_AR
8925   fi
8926 fi
8927
8928 : ${AR=ar}
8929 : ${AR_FLAGS=cru}
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8942 $as_echo_n "checking for archiver @FILE support... " >&6; }
8943 if ${lt_cv_ar_at_file+:} false; then :
8944   $as_echo_n "(cached) " >&6
8945 else
8946   lt_cv_ar_at_file=no
8947    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8948 /* end confdefs.h.  */
8949
8950 int
8951 main ()
8952 {
8953
8954   ;
8955   return 0;
8956 }
8957 _ACEOF
8958 if ac_fn_c_try_compile "$LINENO"; then :
8959   echo conftest.$ac_objext > conftest.lst
8960       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8961       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8962   (eval $lt_ar_try) 2>&5
8963   ac_status=$?
8964   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8965   test $ac_status = 0; }
8966       if test "$ac_status" -eq 0; then
8967         # Ensure the archiver fails upon bogus file names.
8968         rm -f conftest.$ac_objext libconftest.a
8969         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8970   (eval $lt_ar_try) 2>&5
8971   ac_status=$?
8972   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8973   test $ac_status = 0; }
8974         if test "$ac_status" -ne 0; then
8975           lt_cv_ar_at_file=@
8976         fi
8977       fi
8978       rm -f conftest.* libconftest.a
8979
8980 fi
8981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8982
8983 fi
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8985 $as_echo "$lt_cv_ar_at_file" >&6; }
8986
8987 if test "x$lt_cv_ar_at_file" = xno; then
8988   archiver_list_spec=
8989 else
8990   archiver_list_spec=$lt_cv_ar_at_file
8991 fi
8992
8993
8994
8995
8996
8997
8998
8999 if test -n "$ac_tool_prefix"; then
9000   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9001 set dummy ${ac_tool_prefix}strip; ac_word=$2
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9003 $as_echo_n "checking for $ac_word... " >&6; }
9004 if ${ac_cv_prog_STRIP+:} false; then :
9005   $as_echo_n "(cached) " >&6
9006 else
9007   if test -n "$STRIP"; then
9008   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9009 else
9010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9011 for as_dir in $PATH
9012 do
9013   IFS=$as_save_IFS
9014   test -z "$as_dir" && as_dir=.
9015     for ac_exec_ext in '' $ac_executable_extensions; do
9016   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9017     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9018     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9019     break 2
9020   fi
9021 done
9022   done
9023 IFS=$as_save_IFS
9024
9025 fi
9026 fi
9027 STRIP=$ac_cv_prog_STRIP
9028 if test -n "$STRIP"; then
9029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9030 $as_echo "$STRIP" >&6; }
9031 else
9032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9033 $as_echo "no" >&6; }
9034 fi
9035
9036
9037 fi
9038 if test -z "$ac_cv_prog_STRIP"; then
9039   ac_ct_STRIP=$STRIP
9040   # Extract the first word of "strip", so it can be a program name with args.
9041 set dummy strip; ac_word=$2
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9043 $as_echo_n "checking for $ac_word... " >&6; }
9044 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9045   $as_echo_n "(cached) " >&6
9046 else
9047   if test -n "$ac_ct_STRIP"; then
9048   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9049 else
9050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9051 for as_dir in $PATH
9052 do
9053   IFS=$as_save_IFS
9054   test -z "$as_dir" && as_dir=.
9055     for ac_exec_ext in '' $ac_executable_extensions; do
9056   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9057     ac_cv_prog_ac_ct_STRIP="strip"
9058     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9059     break 2
9060   fi
9061 done
9062   done
9063 IFS=$as_save_IFS
9064
9065 fi
9066 fi
9067 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9068 if test -n "$ac_ct_STRIP"; then
9069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9070 $as_echo "$ac_ct_STRIP" >&6; }
9071 else
9072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9073 $as_echo "no" >&6; }
9074 fi
9075
9076   if test "x$ac_ct_STRIP" = x; then
9077     STRIP=":"
9078   else
9079     case $cross_compiling:$ac_tool_warned in
9080 yes:)
9081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9082 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9083 ac_tool_warned=yes ;;
9084 esac
9085     STRIP=$ac_ct_STRIP
9086   fi
9087 else
9088   STRIP="$ac_cv_prog_STRIP"
9089 fi
9090
9091 test -z "$STRIP" && STRIP=:
9092
9093
9094
9095
9096
9097
9098 if test -n "$ac_tool_prefix"; then
9099   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9100 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9102 $as_echo_n "checking for $ac_word... " >&6; }
9103 if ${ac_cv_prog_RANLIB+:} false; then :
9104   $as_echo_n "(cached) " >&6
9105 else
9106   if test -n "$RANLIB"; then
9107   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9108 else
9109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9110 for as_dir in $PATH
9111 do
9112   IFS=$as_save_IFS
9113   test -z "$as_dir" && as_dir=.
9114     for ac_exec_ext in '' $ac_executable_extensions; do
9115   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9116     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9117     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9118     break 2
9119   fi
9120 done
9121   done
9122 IFS=$as_save_IFS
9123
9124 fi
9125 fi
9126 RANLIB=$ac_cv_prog_RANLIB
9127 if test -n "$RANLIB"; then
9128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9129 $as_echo "$RANLIB" >&6; }
9130 else
9131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9132 $as_echo "no" >&6; }
9133 fi
9134
9135
9136 fi
9137 if test -z "$ac_cv_prog_RANLIB"; then
9138   ac_ct_RANLIB=$RANLIB
9139   # Extract the first word of "ranlib", so it can be a program name with args.
9140 set dummy ranlib; ac_word=$2
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9142 $as_echo_n "checking for $ac_word... " >&6; }
9143 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9144   $as_echo_n "(cached) " >&6
9145 else
9146   if test -n "$ac_ct_RANLIB"; then
9147   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9148 else
9149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9150 for as_dir in $PATH
9151 do
9152   IFS=$as_save_IFS
9153   test -z "$as_dir" && as_dir=.
9154     for ac_exec_ext in '' $ac_executable_extensions; do
9155   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9156     ac_cv_prog_ac_ct_RANLIB="ranlib"
9157     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9158     break 2
9159   fi
9160 done
9161   done
9162 IFS=$as_save_IFS
9163
9164 fi
9165 fi
9166 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9167 if test -n "$ac_ct_RANLIB"; then
9168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9169 $as_echo "$ac_ct_RANLIB" >&6; }
9170 else
9171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9172 $as_echo "no" >&6; }
9173 fi
9174
9175   if test "x$ac_ct_RANLIB" = x; then
9176     RANLIB=":"
9177   else
9178     case $cross_compiling:$ac_tool_warned in
9179 yes:)
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9181 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9182 ac_tool_warned=yes ;;
9183 esac
9184     RANLIB=$ac_ct_RANLIB
9185   fi
9186 else
9187   RANLIB="$ac_cv_prog_RANLIB"
9188 fi
9189
9190 test -z "$RANLIB" && RANLIB=:
9191
9192
9193
9194
9195
9196
9197 # Determine commands to create old-style static archives.
9198 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9199 old_postinstall_cmds='chmod 644 $oldlib'
9200 old_postuninstall_cmds=
9201
9202 if test -n "$RANLIB"; then
9203   case $host_os in
9204   openbsd*)
9205     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
9206     ;;
9207   *)
9208     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
9209     ;;
9210   esac
9211   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9212 fi
9213
9214 case $host_os in
9215   darwin*)
9216     lock_old_archive_extraction=yes ;;
9217   *)
9218     lock_old_archive_extraction=no ;;
9219 esac
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259 # If no C compiler was specified, use CC.
9260 LTCC=${LTCC-"$CC"}
9261
9262 # If no C compiler flags were specified, use CFLAGS.
9263 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9264
9265 # Allow CC to be a program name with arguments.
9266 compiler=$CC
9267
9268
9269 # Check for command to grab the raw symbol name followed by C symbol from nm.
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9271 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9272 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9273   $as_echo_n "(cached) " >&6
9274 else
9275
9276 # These are sane defaults that work on at least a few old systems.
9277 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9278
9279 # Character class describing NM global symbol codes.
9280 symcode='[BCDEGRST]'
9281
9282 # Regexp to match symbols that can be accessed directly from C.
9283 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9284
9285 # Define system-specific variables.
9286 case $host_os in
9287 aix*)
9288   symcode='[BCDT]'
9289   ;;
9290 cygwin* | mingw* | pw32* | cegcc*)
9291   symcode='[ABCDGISTW]'
9292   ;;
9293 hpux*)
9294   if test "$host_cpu" = ia64; then
9295     symcode='[ABCDEGRST]'
9296   fi
9297   ;;
9298 irix* | nonstopux*)
9299   symcode='[BCDEGRST]'
9300   ;;
9301 osf*)
9302   symcode='[BCDEGQRST]'
9303   ;;
9304 solaris*)
9305   symcode='[BDRT]'
9306   ;;
9307 sco3.2v5*)
9308   symcode='[DT]'
9309   ;;
9310 sysv4.2uw2*)
9311   symcode='[DT]'
9312   ;;
9313 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9314   symcode='[ABDT]'
9315   ;;
9316 sysv4)
9317   symcode='[DFNSTU]'
9318   ;;
9319 esac
9320
9321 # If we're using GNU nm, then use its standard symbol codes.
9322 case `$NM -V 2>&1` in
9323 *GNU* | *'with BFD'*)
9324   symcode='[ABCDGIRSTW]' ;;
9325 esac
9326
9327 # Transform an extracted symbol line into a proper C declaration.
9328 # Some systems (esp. on ia64) link data and code symbols differently,
9329 # so use this general approach.
9330 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9331
9332 # Transform an extracted symbol line into symbol name and symbol address
9333 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
9334 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'"
9335
9336 # Handle CRLF in mingw tool chain
9337 opt_cr=
9338 case $build_os in
9339 mingw*)
9340   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9341   ;;
9342 esac
9343
9344 # Try without a prefix underscore, then with it.
9345 for ac_symprfx in "" "_"; do
9346
9347   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9348   symxfrm="\\1 $ac_symprfx\\2 \\2"
9349
9350   # Write the raw and C identifiers.
9351   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9352     # Fake it for dumpbin and say T for any non-static function
9353     # and D for any global variable.
9354     # Also find C++ and __fastcall symbols from MSVC++,
9355     # which start with @ or ?.
9356     lt_cv_sys_global_symbol_pipe="$AWK '"\
9357 "     {last_section=section; section=\$ 3};"\
9358 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9359 "     \$ 0!~/External *\|/{next};"\
9360 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9361 "     {if(hide[section]) next};"\
9362 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
9363 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
9364 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
9365 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
9366 "     ' prfx=^$ac_symprfx"
9367   else
9368     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9369   fi
9370   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9371
9372   # Check to see that the pipe works correctly.
9373   pipe_works=no
9374
9375   rm -f conftest*
9376   cat > conftest.$ac_ext <<_LT_EOF
9377 #ifdef __cplusplus
9378 extern "C" {
9379 #endif
9380 char nm_test_var;
9381 void nm_test_func(void);
9382 void nm_test_func(void){}
9383 #ifdef __cplusplus
9384 }
9385 #endif
9386 int main(){nm_test_var='a';nm_test_func();return(0);}
9387 _LT_EOF
9388
9389   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9390   (eval $ac_compile) 2>&5
9391   ac_status=$?
9392   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9393   test $ac_status = 0; }; then
9394     # Now try to grab the symbols.
9395     nlist=conftest.nm
9396     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9397   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9398   ac_status=$?
9399   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9400   test $ac_status = 0; } && test -s "$nlist"; then
9401       # Try sorting and uniquifying the output.
9402       if sort "$nlist" | uniq > "$nlist"T; then
9403         mv -f "$nlist"T "$nlist"
9404       else
9405         rm -f "$nlist"T
9406       fi
9407
9408       # Make sure that we snagged all the symbols we need.
9409       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9410         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9411           cat <<_LT_EOF > conftest.$ac_ext
9412 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
9413 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
9414 /* DATA imports from DLLs on WIN32 con't be const, because runtime
9415    relocations are performed -- see ld's documentation on pseudo-relocs.  */
9416 # define LT_DLSYM_CONST
9417 #elif defined(__osf__)
9418 /* This system does not cope well with relocations in const data.  */
9419 # define LT_DLSYM_CONST
9420 #else
9421 # define LT_DLSYM_CONST const
9422 #endif
9423
9424 #ifdef __cplusplus
9425 extern "C" {
9426 #endif
9427
9428 _LT_EOF
9429           # Now generate the symbol file.
9430           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9431
9432           cat <<_LT_EOF >> conftest.$ac_ext
9433
9434 /* The mapping between symbol names and symbols.  */
9435 LT_DLSYM_CONST struct {
9436   const char *name;
9437   void       *address;
9438 }
9439 lt__PROGRAM__LTX_preloaded_symbols[] =
9440 {
9441   { "@PROGRAM@", (void *) 0 },
9442 _LT_EOF
9443           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9444           cat <<\_LT_EOF >> conftest.$ac_ext
9445   {0, (void *) 0}
9446 };
9447
9448 /* This works around a problem in FreeBSD linker */
9449 #ifdef FREEBSD_WORKAROUND
9450 static const void *lt_preloaded_setup() {
9451   return lt__PROGRAM__LTX_preloaded_symbols;
9452 }
9453 #endif
9454
9455 #ifdef __cplusplus
9456 }
9457 #endif
9458 _LT_EOF
9459           # Now try linking the two files.
9460           mv conftest.$ac_objext conftstm.$ac_objext
9461           lt_globsym_save_LIBS=$LIBS
9462           lt_globsym_save_CFLAGS=$CFLAGS
9463           LIBS="conftstm.$ac_objext"
9464           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9465           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9466   (eval $ac_link) 2>&5
9467   ac_status=$?
9468   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9469   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
9470             pipe_works=yes
9471           fi
9472           LIBS=$lt_globsym_save_LIBS
9473           CFLAGS=$lt_globsym_save_CFLAGS
9474         else
9475           echo "cannot find nm_test_func in $nlist" >&5
9476         fi
9477       else
9478         echo "cannot find nm_test_var in $nlist" >&5
9479       fi
9480     else
9481       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9482     fi
9483   else
9484     echo "$progname: failed program was:" >&5
9485     cat conftest.$ac_ext >&5
9486   fi
9487   rm -rf conftest* conftst*
9488
9489   # Do not use the global_symbol_pipe unless it works.
9490   if test "$pipe_works" = yes; then
9491     break
9492   else
9493     lt_cv_sys_global_symbol_pipe=
9494   fi
9495 done
9496
9497 fi
9498
9499 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9500   lt_cv_sys_global_symbol_to_cdecl=
9501 fi
9502 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9504 $as_echo "failed" >&6; }
9505 else
9506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9507 $as_echo "ok" >&6; }
9508 fi
9509
9510 # Response file support.
9511 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9512   nm_file_list_spec='@'
9513 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9514   nm_file_list_spec='@'
9515 fi
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9544 $as_echo_n "checking for sysroot... " >&6; }
9545
9546 # Check whether --with-sysroot was given.
9547 if test "${with_sysroot+set}" = set; then :
9548   withval=$with_sysroot;
9549 else
9550   with_sysroot=no
9551 fi
9552
9553
9554 lt_sysroot=
9555 case ${with_sysroot} in #(
9556  yes)
9557    if test "$GCC" = yes; then
9558      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9559    fi
9560    ;; #(
9561  /*)
9562    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9563    ;; #(
9564  no|'')
9565    ;; #(
9566  *)
9567    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
9568 $as_echo "${with_sysroot}" >&6; }
9569    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9570    ;;
9571 esac
9572
9573  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9574 $as_echo "${lt_sysroot:-no}" >&6; }
9575
9576
9577
9578
9579
9580 # Check whether --enable-libtool-lock was given.
9581 if test "${enable_libtool_lock+set}" = set; then :
9582   enableval=$enable_libtool_lock;
9583 fi
9584
9585 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9586
9587 # Some flags need to be propagated to the compiler or linker for good
9588 # libtool support.
9589 case $host in
9590 ia64-*-hpux*)
9591   # Find out which ABI we are using.
9592   echo 'int i;' > conftest.$ac_ext
9593   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9594   (eval $ac_compile) 2>&5
9595   ac_status=$?
9596   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9597   test $ac_status = 0; }; then
9598     case `/usr/bin/file conftest.$ac_objext` in
9599       *ELF-32*)
9600         HPUX_IA64_MODE="32"
9601         ;;
9602       *ELF-64*)
9603         HPUX_IA64_MODE="64"
9604         ;;
9605     esac
9606   fi
9607   rm -rf conftest*
9608   ;;
9609 *-*-irix6*)
9610   # Find out which ABI we are using.
9611   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9612   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9613   (eval $ac_compile) 2>&5
9614   ac_status=$?
9615   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9616   test $ac_status = 0; }; then
9617     if test "$lt_cv_prog_gnu_ld" = yes; then
9618       case `/usr/bin/file conftest.$ac_objext` in
9619         *32-bit*)
9620           LD="${LD-ld} -melf32bsmip"
9621           ;;
9622         *N32*)
9623           LD="${LD-ld} -melf32bmipn32"
9624           ;;
9625         *64-bit*)
9626           LD="${LD-ld} -melf64bmip"
9627         ;;
9628       esac
9629     else
9630       case `/usr/bin/file conftest.$ac_objext` in
9631         *32-bit*)
9632           LD="${LD-ld} -32"
9633           ;;
9634         *N32*)
9635           LD="${LD-ld} -n32"
9636           ;;
9637         *64-bit*)
9638           LD="${LD-ld} -64"
9639           ;;
9640       esac
9641     fi
9642   fi
9643   rm -rf conftest*
9644   ;;
9645
9646 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
9647 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9648   # Find out which ABI we are using.
9649   echo 'int i;' > conftest.$ac_ext
9650   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9651   (eval $ac_compile) 2>&5
9652   ac_status=$?
9653   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9654   test $ac_status = 0; }; then
9655     case `/usr/bin/file conftest.o` in
9656       *32-bit*)
9657         case $host in
9658           x86_64-*kfreebsd*-gnu)
9659             LD="${LD-ld} -m elf_i386_fbsd"
9660             ;;
9661           x86_64-*linux*)
9662             LD="${LD-ld} -m elf_i386"
9663             ;;
9664           ppc64-*linux*|powerpc64-*linux*)
9665             LD="${LD-ld} -m elf32ppclinux"
9666             ;;
9667           s390x-*linux*)
9668             LD="${LD-ld} -m elf_s390"
9669             ;;
9670           sparc64-*linux*)
9671             LD="${LD-ld} -m elf32_sparc"
9672             ;;
9673         esac
9674         ;;
9675       *64-bit*)
9676         case $host in
9677           x86_64-*kfreebsd*-gnu)
9678             LD="${LD-ld} -m elf_x86_64_fbsd"
9679             ;;
9680           x86_64-*linux*)
9681             LD="${LD-ld} -m elf_x86_64"
9682             ;;
9683           ppc*-*linux*|powerpc*-*linux*)
9684             LD="${LD-ld} -m elf64ppc"
9685             ;;
9686           s390*-*linux*|s390*-*tpf*)
9687             LD="${LD-ld} -m elf64_s390"
9688             ;;
9689           sparc*-*linux*)
9690             LD="${LD-ld} -m elf64_sparc"
9691             ;;
9692         esac
9693         ;;
9694     esac
9695   fi
9696   rm -rf conftest*
9697   ;;
9698
9699 *-*-sco3.2v5*)
9700   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9701   SAVE_CFLAGS="$CFLAGS"
9702   CFLAGS="$CFLAGS -belf"
9703   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9704 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9705 if ${lt_cv_cc_needs_belf+:} false; then :
9706   $as_echo_n "(cached) " >&6
9707 else
9708   ac_ext=c
9709 ac_cpp='$CPP $CPPFLAGS'
9710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9713
9714      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9715 /* end confdefs.h.  */
9716
9717 int
9718 main ()
9719 {
9720
9721   ;
9722   return 0;
9723 }
9724 _ACEOF
9725 if ac_fn_c_try_link "$LINENO"; then :
9726   lt_cv_cc_needs_belf=yes
9727 else
9728   lt_cv_cc_needs_belf=no
9729 fi
9730 rm -f core conftest.err conftest.$ac_objext \
9731     conftest$ac_exeext conftest.$ac_ext
9732      ac_ext=c
9733 ac_cpp='$CPP $CPPFLAGS'
9734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9737
9738 fi
9739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9740 $as_echo "$lt_cv_cc_needs_belf" >&6; }
9741   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
9742     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9743     CFLAGS="$SAVE_CFLAGS"
9744   fi
9745   ;;
9746 sparc*-*solaris*)
9747   # Find out which ABI we are using.
9748   echo 'int i;' > conftest.$ac_ext
9749   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9750   (eval $ac_compile) 2>&5
9751   ac_status=$?
9752   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9753   test $ac_status = 0; }; then
9754     case `/usr/bin/file conftest.o` in
9755     *64-bit*)
9756       case $lt_cv_prog_gnu_ld in
9757       yes*) LD="${LD-ld} -m elf64_sparc" ;;
9758       *)
9759         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9760           LD="${LD-ld} -64"
9761         fi
9762         ;;
9763       esac
9764       ;;
9765     esac
9766   fi
9767   rm -rf conftest*
9768   ;;
9769 esac
9770
9771 need_locks="$enable_libtool_lock"
9772
9773 if test -n "$ac_tool_prefix"; then
9774   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9775 set dummy ${ac_tool_prefix}mt; ac_word=$2
9776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9777 $as_echo_n "checking for $ac_word... " >&6; }
9778 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9779   $as_echo_n "(cached) " >&6
9780 else
9781   if test -n "$MANIFEST_TOOL"; then
9782   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9783 else
9784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9785 for as_dir in $PATH
9786 do
9787   IFS=$as_save_IFS
9788   test -z "$as_dir" && as_dir=.
9789     for ac_exec_ext in '' $ac_executable_extensions; do
9790   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9791     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9792     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9793     break 2
9794   fi
9795 done
9796   done
9797 IFS=$as_save_IFS
9798
9799 fi
9800 fi
9801 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9802 if test -n "$MANIFEST_TOOL"; then
9803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9804 $as_echo "$MANIFEST_TOOL" >&6; }
9805 else
9806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9807 $as_echo "no" >&6; }
9808 fi
9809
9810
9811 fi
9812 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9813   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9814   # Extract the first word of "mt", so it can be a program name with args.
9815 set dummy mt; ac_word=$2
9816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9817 $as_echo_n "checking for $ac_word... " >&6; }
9818 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9819   $as_echo_n "(cached) " >&6
9820 else
9821   if test -n "$ac_ct_MANIFEST_TOOL"; then
9822   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9823 else
9824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9825 for as_dir in $PATH
9826 do
9827   IFS=$as_save_IFS
9828   test -z "$as_dir" && as_dir=.
9829     for ac_exec_ext in '' $ac_executable_extensions; do
9830   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9831     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9832     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9833     break 2
9834   fi
9835 done
9836   done
9837 IFS=$as_save_IFS
9838
9839 fi
9840 fi
9841 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9842 if test -n "$ac_ct_MANIFEST_TOOL"; then
9843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9844 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9845 else
9846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9847 $as_echo "no" >&6; }
9848 fi
9849
9850   if test "x$ac_ct_MANIFEST_TOOL" = x; then
9851     MANIFEST_TOOL=":"
9852   else
9853     case $cross_compiling:$ac_tool_warned in
9854 yes:)
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9856 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9857 ac_tool_warned=yes ;;
9858 esac
9859     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9860   fi
9861 else
9862   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9863 fi
9864
9865 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9867 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9868 if ${lt_cv_path_mainfest_tool+:} false; then :
9869   $as_echo_n "(cached) " >&6
9870 else
9871   lt_cv_path_mainfest_tool=no
9872   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9873   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9874   cat conftest.err >&5
9875   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9876     lt_cv_path_mainfest_tool=yes
9877   fi
9878   rm -f conftest*
9879 fi
9880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9881 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
9882 if test "x$lt_cv_path_mainfest_tool" != xyes; then
9883   MANIFEST_TOOL=:
9884 fi
9885
9886
9887
9888
9889
9890
9891   case $host_os in
9892     rhapsody* | darwin*)
9893     if test -n "$ac_tool_prefix"; then
9894   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9895 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9897 $as_echo_n "checking for $ac_word... " >&6; }
9898 if ${ac_cv_prog_DSYMUTIL+:} false; then :
9899   $as_echo_n "(cached) " >&6
9900 else
9901   if test -n "$DSYMUTIL"; then
9902   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9903 else
9904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9905 for as_dir in $PATH
9906 do
9907   IFS=$as_save_IFS
9908   test -z "$as_dir" && as_dir=.
9909     for ac_exec_ext in '' $ac_executable_extensions; do
9910   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9911     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9912     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9913     break 2
9914   fi
9915 done
9916   done
9917 IFS=$as_save_IFS
9918
9919 fi
9920 fi
9921 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9922 if test -n "$DSYMUTIL"; then
9923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9924 $as_echo "$DSYMUTIL" >&6; }
9925 else
9926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9927 $as_echo "no" >&6; }
9928 fi
9929
9930
9931 fi
9932 if test -z "$ac_cv_prog_DSYMUTIL"; then
9933   ac_ct_DSYMUTIL=$DSYMUTIL
9934   # Extract the first word of "dsymutil", so it can be a program name with args.
9935 set dummy dsymutil; ac_word=$2
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9937 $as_echo_n "checking for $ac_word... " >&6; }
9938 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9939   $as_echo_n "(cached) " >&6
9940 else
9941   if test -n "$ac_ct_DSYMUTIL"; then
9942   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9943 else
9944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9945 for as_dir in $PATH
9946 do
9947   IFS=$as_save_IFS
9948   test -z "$as_dir" && as_dir=.
9949     for ac_exec_ext in '' $ac_executable_extensions; do
9950   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9951     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9952     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9953     break 2
9954   fi
9955 done
9956   done
9957 IFS=$as_save_IFS
9958
9959 fi
9960 fi
9961 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9962 if test -n "$ac_ct_DSYMUTIL"; then
9963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9964 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9965 else
9966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9967 $as_echo "no" >&6; }
9968 fi
9969
9970   if test "x$ac_ct_DSYMUTIL" = x; then
9971     DSYMUTIL=":"
9972   else
9973     case $cross_compiling:$ac_tool_warned in
9974 yes:)
9975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9976 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9977 ac_tool_warned=yes ;;
9978 esac
9979     DSYMUTIL=$ac_ct_DSYMUTIL
9980   fi
9981 else
9982   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9983 fi
9984
9985     if test -n "$ac_tool_prefix"; then
9986   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9987 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9989 $as_echo_n "checking for $ac_word... " >&6; }
9990 if ${ac_cv_prog_NMEDIT+:} false; then :
9991   $as_echo_n "(cached) " >&6
9992 else
9993   if test -n "$NMEDIT"; then
9994   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9995 else
9996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9997 for as_dir in $PATH
9998 do
9999   IFS=$as_save_IFS
10000   test -z "$as_dir" && as_dir=.
10001     for ac_exec_ext in '' $ac_executable_extensions; do
10002   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10003     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10004     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10005     break 2
10006   fi
10007 done
10008   done
10009 IFS=$as_save_IFS
10010
10011 fi
10012 fi
10013 NMEDIT=$ac_cv_prog_NMEDIT
10014 if test -n "$NMEDIT"; then
10015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10016 $as_echo "$NMEDIT" >&6; }
10017 else
10018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10019 $as_echo "no" >&6; }
10020 fi
10021
10022
10023 fi
10024 if test -z "$ac_cv_prog_NMEDIT"; then
10025   ac_ct_NMEDIT=$NMEDIT
10026   # Extract the first word of "nmedit", so it can be a program name with args.
10027 set dummy nmedit; ac_word=$2
10028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10029 $as_echo_n "checking for $ac_word... " >&6; }
10030 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
10031   $as_echo_n "(cached) " >&6
10032 else
10033   if test -n "$ac_ct_NMEDIT"; then
10034   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10035 else
10036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10037 for as_dir in $PATH
10038 do
10039   IFS=$as_save_IFS
10040   test -z "$as_dir" && as_dir=.
10041     for ac_exec_ext in '' $ac_executable_extensions; do
10042   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10043     ac_cv_prog_ac_ct_NMEDIT="nmedit"
10044     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10045     break 2
10046   fi
10047 done
10048   done
10049 IFS=$as_save_IFS
10050
10051 fi
10052 fi
10053 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10054 if test -n "$ac_ct_NMEDIT"; then
10055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10056 $as_echo "$ac_ct_NMEDIT" >&6; }
10057 else
10058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10059 $as_echo "no" >&6; }
10060 fi
10061
10062   if test "x$ac_ct_NMEDIT" = x; then
10063     NMEDIT=":"
10064   else
10065     case $cross_compiling:$ac_tool_warned in
10066 yes:)
10067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10068 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10069 ac_tool_warned=yes ;;
10070 esac
10071     NMEDIT=$ac_ct_NMEDIT
10072   fi
10073 else
10074   NMEDIT="$ac_cv_prog_NMEDIT"
10075 fi
10076
10077     if test -n "$ac_tool_prefix"; then
10078   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10079 set dummy ${ac_tool_prefix}lipo; ac_word=$2
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10081 $as_echo_n "checking for $ac_word... " >&6; }
10082 if ${ac_cv_prog_LIPO+:} false; then :
10083   $as_echo_n "(cached) " >&6
10084 else
10085   if test -n "$LIPO"; then
10086   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10087 else
10088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10089 for as_dir in $PATH
10090 do
10091   IFS=$as_save_IFS
10092   test -z "$as_dir" && as_dir=.
10093     for ac_exec_ext in '' $ac_executable_extensions; do
10094   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10095     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10096     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10097     break 2
10098   fi
10099 done
10100   done
10101 IFS=$as_save_IFS
10102
10103 fi
10104 fi
10105 LIPO=$ac_cv_prog_LIPO
10106 if test -n "$LIPO"; then
10107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10108 $as_echo "$LIPO" >&6; }
10109 else
10110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10111 $as_echo "no" >&6; }
10112 fi
10113
10114
10115 fi
10116 if test -z "$ac_cv_prog_LIPO"; then
10117   ac_ct_LIPO=$LIPO
10118   # Extract the first word of "lipo", so it can be a program name with args.
10119 set dummy lipo; ac_word=$2
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10121 $as_echo_n "checking for $ac_word... " >&6; }
10122 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10123   $as_echo_n "(cached) " >&6
10124 else
10125   if test -n "$ac_ct_LIPO"; then
10126   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10127 else
10128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10129 for as_dir in $PATH
10130 do
10131   IFS=$as_save_IFS
10132   test -z "$as_dir" && as_dir=.
10133     for ac_exec_ext in '' $ac_executable_extensions; do
10134   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10135     ac_cv_prog_ac_ct_LIPO="lipo"
10136     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10137     break 2
10138   fi
10139 done
10140   done
10141 IFS=$as_save_IFS
10142
10143 fi
10144 fi
10145 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10146 if test -n "$ac_ct_LIPO"; then
10147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10148 $as_echo "$ac_ct_LIPO" >&6; }
10149 else
10150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10151 $as_echo "no" >&6; }
10152 fi
10153
10154   if test "x$ac_ct_LIPO" = x; then
10155     LIPO=":"
10156   else
10157     case $cross_compiling:$ac_tool_warned in
10158 yes:)
10159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10160 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10161 ac_tool_warned=yes ;;
10162 esac
10163     LIPO=$ac_ct_LIPO
10164   fi
10165 else
10166   LIPO="$ac_cv_prog_LIPO"
10167 fi
10168
10169     if test -n "$ac_tool_prefix"; then
10170   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10171 set dummy ${ac_tool_prefix}otool; ac_word=$2
10172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10173 $as_echo_n "checking for $ac_word... " >&6; }
10174 if ${ac_cv_prog_OTOOL+:} false; then :
10175   $as_echo_n "(cached) " >&6
10176 else
10177   if test -n "$OTOOL"; then
10178   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10179 else
10180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10181 for as_dir in $PATH
10182 do
10183   IFS=$as_save_IFS
10184   test -z "$as_dir" && as_dir=.
10185     for ac_exec_ext in '' $ac_executable_extensions; do
10186   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10187     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10188     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10189     break 2
10190   fi
10191 done
10192   done
10193 IFS=$as_save_IFS
10194
10195 fi
10196 fi
10197 OTOOL=$ac_cv_prog_OTOOL
10198 if test -n "$OTOOL"; then
10199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10200 $as_echo "$OTOOL" >&6; }
10201 else
10202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10203 $as_echo "no" >&6; }
10204 fi
10205
10206
10207 fi
10208 if test -z "$ac_cv_prog_OTOOL"; then
10209   ac_ct_OTOOL=$OTOOL
10210   # Extract the first word of "otool", so it can be a program name with args.
10211 set dummy otool; ac_word=$2
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10213 $as_echo_n "checking for $ac_word... " >&6; }
10214 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10215   $as_echo_n "(cached) " >&6
10216 else
10217   if test -n "$ac_ct_OTOOL"; then
10218   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10219 else
10220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10221 for as_dir in $PATH
10222 do
10223   IFS=$as_save_IFS
10224   test -z "$as_dir" && as_dir=.
10225     for ac_exec_ext in '' $ac_executable_extensions; do
10226   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10227     ac_cv_prog_ac_ct_OTOOL="otool"
10228     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10229     break 2
10230   fi
10231 done
10232   done
10233 IFS=$as_save_IFS
10234
10235 fi
10236 fi
10237 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10238 if test -n "$ac_ct_OTOOL"; then
10239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10240 $as_echo "$ac_ct_OTOOL" >&6; }
10241 else
10242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10243 $as_echo "no" >&6; }
10244 fi
10245
10246   if test "x$ac_ct_OTOOL" = x; then
10247     OTOOL=":"
10248   else
10249     case $cross_compiling:$ac_tool_warned in
10250 yes:)
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10252 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10253 ac_tool_warned=yes ;;
10254 esac
10255     OTOOL=$ac_ct_OTOOL
10256   fi
10257 else
10258   OTOOL="$ac_cv_prog_OTOOL"
10259 fi
10260
10261     if test -n "$ac_tool_prefix"; then
10262   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10263 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10265 $as_echo_n "checking for $ac_word... " >&6; }
10266 if ${ac_cv_prog_OTOOL64+:} false; then :
10267   $as_echo_n "(cached) " >&6
10268 else
10269   if test -n "$OTOOL64"; then
10270   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10271 else
10272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10273 for as_dir in $PATH
10274 do
10275   IFS=$as_save_IFS
10276   test -z "$as_dir" && as_dir=.
10277     for ac_exec_ext in '' $ac_executable_extensions; do
10278   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10279     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10280     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10281     break 2
10282   fi
10283 done
10284   done
10285 IFS=$as_save_IFS
10286
10287 fi
10288 fi
10289 OTOOL64=$ac_cv_prog_OTOOL64
10290 if test -n "$OTOOL64"; then
10291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10292 $as_echo "$OTOOL64" >&6; }
10293 else
10294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10295 $as_echo "no" >&6; }
10296 fi
10297
10298
10299 fi
10300 if test -z "$ac_cv_prog_OTOOL64"; then
10301   ac_ct_OTOOL64=$OTOOL64
10302   # Extract the first word of "otool64", so it can be a program name with args.
10303 set dummy otool64; ac_word=$2
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10305 $as_echo_n "checking for $ac_word... " >&6; }
10306 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10307   $as_echo_n "(cached) " >&6
10308 else
10309   if test -n "$ac_ct_OTOOL64"; then
10310   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10311 else
10312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10313 for as_dir in $PATH
10314 do
10315   IFS=$as_save_IFS
10316   test -z "$as_dir" && as_dir=.
10317     for ac_exec_ext in '' $ac_executable_extensions; do
10318   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10319     ac_cv_prog_ac_ct_OTOOL64="otool64"
10320     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10321     break 2
10322   fi
10323 done
10324   done
10325 IFS=$as_save_IFS
10326
10327 fi
10328 fi
10329 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10330 if test -n "$ac_ct_OTOOL64"; then
10331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10332 $as_echo "$ac_ct_OTOOL64" >&6; }
10333 else
10334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10335 $as_echo "no" >&6; }
10336 fi
10337
10338   if test "x$ac_ct_OTOOL64" = x; then
10339     OTOOL64=":"
10340   else
10341     case $cross_compiling:$ac_tool_warned in
10342 yes:)
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10344 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10345 ac_tool_warned=yes ;;
10346 esac
10347     OTOOL64=$ac_ct_OTOOL64
10348   fi
10349 else
10350   OTOOL64="$ac_cv_prog_OTOOL64"
10351 fi
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10380 $as_echo_n "checking for -single_module linker flag... " >&6; }
10381 if ${lt_cv_apple_cc_single_mod+:} false; then :
10382   $as_echo_n "(cached) " >&6
10383 else
10384   lt_cv_apple_cc_single_mod=no
10385       if test -z "${LT_MULTI_MODULE}"; then
10386         # By default we will add the -single_module flag. You can override
10387         # by either setting the environment variable LT_MULTI_MODULE
10388         # non-empty at configure time, or by adding -multi_module to the
10389         # link flags.
10390         rm -rf libconftest.dylib*
10391         echo "int foo(void){return 1;}" > conftest.c
10392         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10393 -dynamiclib -Wl,-single_module conftest.c" >&5
10394         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10395           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10396         _lt_result=$?
10397         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
10398           lt_cv_apple_cc_single_mod=yes
10399         else
10400           cat conftest.err >&5
10401         fi
10402         rm -rf libconftest.dylib*
10403         rm -f conftest.*
10404       fi
10405 fi
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10407 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10408     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10409 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10410 if ${lt_cv_ld_exported_symbols_list+:} false; then :
10411   $as_echo_n "(cached) " >&6
10412 else
10413   lt_cv_ld_exported_symbols_list=no
10414       save_LDFLAGS=$LDFLAGS
10415       echo "_main" > conftest.sym
10416       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10417       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10418 /* end confdefs.h.  */
10419
10420 int
10421 main ()
10422 {
10423
10424   ;
10425   return 0;
10426 }
10427 _ACEOF
10428 if ac_fn_c_try_link "$LINENO"; then :
10429   lt_cv_ld_exported_symbols_list=yes
10430 else
10431   lt_cv_ld_exported_symbols_list=no
10432 fi
10433 rm -f core conftest.err conftest.$ac_objext \
10434     conftest$ac_exeext conftest.$ac_ext
10435         LDFLAGS="$save_LDFLAGS"
10436
10437 fi
10438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10439 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10440     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10441 $as_echo_n "checking for -force_load linker flag... " >&6; }
10442 if ${lt_cv_ld_force_load+:} false; then :
10443   $as_echo_n "(cached) " >&6
10444 else
10445   lt_cv_ld_force_load=no
10446       cat > conftest.c << _LT_EOF
10447 int forced_loaded() { return 2;}
10448 _LT_EOF
10449       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10450       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10451       echo "$AR cru libconftest.a conftest.o" >&5
10452       $AR cru libconftest.a conftest.o 2>&5
10453       echo "$RANLIB libconftest.a" >&5
10454       $RANLIB libconftest.a 2>&5
10455       cat > conftest.c << _LT_EOF
10456 int main() { return 0;}
10457 _LT_EOF
10458       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10459       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10460       _lt_result=$?
10461       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
10462         lt_cv_ld_force_load=yes
10463       else
10464         cat conftest.err >&5
10465       fi
10466         rm -f conftest.err libconftest.a conftest conftest.c
10467         rm -rf conftest.dSYM
10468
10469 fi
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10471 $as_echo "$lt_cv_ld_force_load" >&6; }
10472     case $host_os in
10473     rhapsody* | darwin1.[012])
10474       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
10475     darwin1.*)
10476       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10477     darwin*) # darwin 5.x on
10478       # if running on 10.5 or later, the deployment target defaults
10479       # to the OS version, if on x86, and 10.4, the deployment
10480       # target defaults to 10.4. Don't you love it?
10481       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10482         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10483           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10484         10.[012]*)
10485           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10486         10.*)
10487           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10488       esac
10489     ;;
10490   esac
10491     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
10492       _lt_dar_single_mod='$single_module'
10493     fi
10494     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
10495       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
10496     else
10497       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
10498     fi
10499     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
10500       _lt_dsymutil='~$DSYMUTIL $lib || :'
10501     else
10502       _lt_dsymutil=
10503     fi
10504     ;;
10505   esac
10506
10507 for ac_header in dlfcn.h
10508 do :
10509   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10510 "
10511 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10512   cat >>confdefs.h <<_ACEOF
10513 #define HAVE_DLFCN_H 1
10514 _ACEOF
10515
10516 fi
10517
10518 done
10519
10520
10521
10522
10523
10524 # Set options
10525 # Check whether --enable-static was given.
10526 if test "${enable_static+set}" = set; then :
10527   enableval=$enable_static; p=${PACKAGE-default}
10528     case $enableval in
10529     yes) enable_static=yes ;;
10530     no) enable_static=no ;;
10531     *)
10532      enable_static=no
10533       # Look at the argument we got.  We use all the common list separators.
10534       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10535       for pkg in $enableval; do
10536         IFS="$lt_save_ifs"
10537         if test "X$pkg" = "X$p"; then
10538           enable_static=yes
10539         fi
10540       done
10541       IFS="$lt_save_ifs"
10542       ;;
10543     esac
10544 else
10545   enable_static=no
10546 fi
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557         enable_dlopen=no
10558
10559
10560   enable_win32_dll=no
10561
10562
10563             # Check whether --enable-shared was given.
10564 if test "${enable_shared+set}" = set; then :
10565   enableval=$enable_shared; p=${PACKAGE-default}
10566     case $enableval in
10567     yes) enable_shared=yes ;;
10568     no) enable_shared=no ;;
10569     *)
10570       enable_shared=no
10571       # Look at the argument we got.  We use all the common list separators.
10572       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10573       for pkg in $enableval; do
10574         IFS="$lt_save_ifs"
10575         if test "X$pkg" = "X$p"; then
10576           enable_shared=yes
10577         fi
10578       done
10579       IFS="$lt_save_ifs"
10580       ;;
10581     esac
10582 else
10583   enable_shared=yes
10584 fi
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596 # Check whether --with-pic was given.
10597 if test "${with_pic+set}" = set; then :
10598   withval=$with_pic; pic_mode="$withval"
10599 else
10600   pic_mode=default
10601 fi
10602
10603
10604 test -z "$pic_mode" && pic_mode=default
10605
10606
10607
10608
10609
10610
10611
10612   # Check whether --enable-fast-install was given.
10613 if test "${enable_fast_install+set}" = set; then :
10614   enableval=$enable_fast_install; p=${PACKAGE-default}
10615     case $enableval in
10616     yes) enable_fast_install=yes ;;
10617     no) enable_fast_install=no ;;
10618     *)
10619       enable_fast_install=no
10620       # Look at the argument we got.  We use all the common list separators.
10621       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10622       for pkg in $enableval; do
10623         IFS="$lt_save_ifs"
10624         if test "X$pkg" = "X$p"; then
10625           enable_fast_install=yes
10626         fi
10627       done
10628       IFS="$lt_save_ifs"
10629       ;;
10630     esac
10631 else
10632   enable_fast_install=yes
10633 fi
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645 # This can be used to rebuild libtool when needed
10646 LIBTOOL_DEPS="$ltmain"
10647
10648 # Always use our own libtool.
10649 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676 test -z "$LN_S" && LN_S="ln -s"
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691 if test -n "${ZSH_VERSION+set}" ; then
10692    setopt NO_GLOB_SUBST
10693 fi
10694
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10696 $as_echo_n "checking for objdir... " >&6; }
10697 if ${lt_cv_objdir+:} false; then :
10698   $as_echo_n "(cached) " >&6
10699 else
10700   rm -f .libs 2>/dev/null
10701 mkdir .libs 2>/dev/null
10702 if test -d .libs; then
10703   lt_cv_objdir=.libs
10704 else
10705   # MS-DOS does not allow filenames that begin with a dot.
10706   lt_cv_objdir=_libs
10707 fi
10708 rmdir .libs 2>/dev/null
10709 fi
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10711 $as_echo "$lt_cv_objdir" >&6; }
10712 objdir=$lt_cv_objdir
10713
10714
10715
10716
10717
10718 cat >>confdefs.h <<_ACEOF
10719 #define LT_OBJDIR "$lt_cv_objdir/"
10720 _ACEOF
10721
10722
10723
10724
10725 case $host_os in
10726 aix3*)
10727   # AIX sometimes has problems with the GCC collect2 program.  For some
10728   # reason, if we set the COLLECT_NAMES environment variable, the problems
10729   # vanish in a puff of smoke.
10730   if test "X${COLLECT_NAMES+set}" != Xset; then
10731     COLLECT_NAMES=
10732     export COLLECT_NAMES
10733   fi
10734   ;;
10735 esac
10736
10737 # Global variables:
10738 ofile=libtool
10739 can_build_shared=yes
10740
10741 # All known linkers require a `.a' archive for static linking (except MSVC,
10742 # which needs '.lib').
10743 libext=a
10744
10745 with_gnu_ld="$lt_cv_prog_gnu_ld"
10746
10747 old_CC="$CC"
10748 old_CFLAGS="$CFLAGS"
10749
10750 # Set sane defaults for various variables
10751 test -z "$CC" && CC=cc
10752 test -z "$LTCC" && LTCC=$CC
10753 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10754 test -z "$LD" && LD=ld
10755 test -z "$ac_objext" && ac_objext=o
10756
10757 for cc_temp in $compiler""; do
10758   case $cc_temp in
10759     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10760     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10761     \-*) ;;
10762     *) break;;
10763   esac
10764 done
10765 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10766
10767
10768 # Only perform the check for file, if the check method requires it
10769 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10770 case $deplibs_check_method in
10771 file_magic*)
10772   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10773     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10774 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10775 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10776   $as_echo_n "(cached) " >&6
10777 else
10778   case $MAGIC_CMD in
10779 [\\/*] |  ?:[\\/]*)
10780   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10781   ;;
10782 *)
10783   lt_save_MAGIC_CMD="$MAGIC_CMD"
10784   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10785   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10786   for ac_dir in $ac_dummy; do
10787     IFS="$lt_save_ifs"
10788     test -z "$ac_dir" && ac_dir=.
10789     if test -f $ac_dir/${ac_tool_prefix}file; then
10790       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10791       if test -n "$file_magic_test_file"; then
10792         case $deplibs_check_method in
10793         "file_magic "*)
10794           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10795           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10796           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10797             $EGREP "$file_magic_regex" > /dev/null; then
10798             :
10799           else
10800             cat <<_LT_EOF 1>&2
10801
10802 *** Warning: the command libtool uses to detect shared libraries,
10803 *** $file_magic_cmd, produces output that libtool cannot recognize.
10804 *** The result is that libtool may fail to recognize shared libraries
10805 *** as such.  This will affect the creation of libtool libraries that
10806 *** depend on shared libraries, but programs linked with such libtool
10807 *** libraries will work regardless of this problem.  Nevertheless, you
10808 *** may want to report the problem to your system manager and/or to
10809 *** bug-libtool@gnu.org
10810
10811 _LT_EOF
10812           fi ;;
10813         esac
10814       fi
10815       break
10816     fi
10817   done
10818   IFS="$lt_save_ifs"
10819   MAGIC_CMD="$lt_save_MAGIC_CMD"
10820   ;;
10821 esac
10822 fi
10823
10824 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10825 if test -n "$MAGIC_CMD"; then
10826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10827 $as_echo "$MAGIC_CMD" >&6; }
10828 else
10829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10830 $as_echo "no" >&6; }
10831 fi
10832
10833
10834
10835
10836
10837 if test -z "$lt_cv_path_MAGIC_CMD"; then
10838   if test -n "$ac_tool_prefix"; then
10839     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10840 $as_echo_n "checking for file... " >&6; }
10841 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10842   $as_echo_n "(cached) " >&6
10843 else
10844   case $MAGIC_CMD in
10845 [\\/*] |  ?:[\\/]*)
10846   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10847   ;;
10848 *)
10849   lt_save_MAGIC_CMD="$MAGIC_CMD"
10850   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10851   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10852   for ac_dir in $ac_dummy; do
10853     IFS="$lt_save_ifs"
10854     test -z "$ac_dir" && ac_dir=.
10855     if test -f $ac_dir/file; then
10856       lt_cv_path_MAGIC_CMD="$ac_dir/file"
10857       if test -n "$file_magic_test_file"; then
10858         case $deplibs_check_method in
10859         "file_magic "*)
10860           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10861           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10862           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10863             $EGREP "$file_magic_regex" > /dev/null; then
10864             :
10865           else
10866             cat <<_LT_EOF 1>&2
10867
10868 *** Warning: the command libtool uses to detect shared libraries,
10869 *** $file_magic_cmd, produces output that libtool cannot recognize.
10870 *** The result is that libtool may fail to recognize shared libraries
10871 *** as such.  This will affect the creation of libtool libraries that
10872 *** depend on shared libraries, but programs linked with such libtool
10873 *** libraries will work regardless of this problem.  Nevertheless, you
10874 *** may want to report the problem to your system manager and/or to
10875 *** bug-libtool@gnu.org
10876
10877 _LT_EOF
10878           fi ;;
10879         esac
10880       fi
10881       break
10882     fi
10883   done
10884   IFS="$lt_save_ifs"
10885   MAGIC_CMD="$lt_save_MAGIC_CMD"
10886   ;;
10887 esac
10888 fi
10889
10890 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10891 if test -n "$MAGIC_CMD"; then
10892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10893 $as_echo "$MAGIC_CMD" >&6; }
10894 else
10895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10896 $as_echo "no" >&6; }
10897 fi
10898
10899
10900   else
10901     MAGIC_CMD=:
10902   fi
10903 fi
10904
10905   fi
10906   ;;
10907 esac
10908
10909 # Use C for the default configuration in the libtool script
10910
10911 lt_save_CC="$CC"
10912 ac_ext=c
10913 ac_cpp='$CPP $CPPFLAGS'
10914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10917
10918
10919 # Source file extension for C test sources.
10920 ac_ext=c
10921
10922 # Object file extension for compiled C test sources.
10923 objext=o
10924 objext=$objext
10925
10926 # Code to be used in simple compile tests
10927 lt_simple_compile_test_code="int some_variable = 0;"
10928
10929 # Code to be used in simple link tests
10930 lt_simple_link_test_code='int main(){return(0);}'
10931
10932
10933
10934
10935
10936
10937
10938 # If no C compiler was specified, use CC.
10939 LTCC=${LTCC-"$CC"}
10940
10941 # If no C compiler flags were specified, use CFLAGS.
10942 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10943
10944 # Allow CC to be a program name with arguments.
10945 compiler=$CC
10946
10947 # Save the default compiler, since it gets overwritten when the other
10948 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10949 compiler_DEFAULT=$CC
10950
10951 # save warnings/boilerplate of simple test code
10952 ac_outfile=conftest.$ac_objext
10953 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10954 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10955 _lt_compiler_boilerplate=`cat conftest.err`
10956 $RM conftest*
10957
10958 ac_outfile=conftest.$ac_objext
10959 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10960 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10961 _lt_linker_boilerplate=`cat conftest.err`
10962 $RM -r conftest*
10963
10964
10965 ## CAVEAT EMPTOR:
10966 ## There is no encapsulation within the following macros, do not change
10967 ## the running order or otherwise move them around unless you know exactly
10968 ## what you are doing...
10969 if test -n "$compiler"; then
10970
10971 lt_prog_compiler_no_builtin_flag=
10972
10973 if test "$GCC" = yes; then
10974   case $cc_basename in
10975   nvcc*)
10976     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10977   *)
10978     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10979   esac
10980
10981   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10982 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10983 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10984   $as_echo_n "(cached) " >&6
10985 else
10986   lt_cv_prog_compiler_rtti_exceptions=no
10987    ac_outfile=conftest.$ac_objext
10988    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10989    lt_compiler_flag="-fno-rtti -fno-exceptions"
10990    # Insert the option either (1) after the last *FLAGS variable, or
10991    # (2) before a word containing "conftest.", or (3) at the end.
10992    # Note that $ac_compile itself does not contain backslashes and begins
10993    # with a dollar sign (not a hyphen), so the echo should work correctly.
10994    # The option is referenced via a variable to avoid confusing sed.
10995    lt_compile=`echo "$ac_compile" | $SED \
10996    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10997    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10998    -e 's:$: $lt_compiler_flag:'`
10999    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11000    (eval "$lt_compile" 2>conftest.err)
11001    ac_status=$?
11002    cat conftest.err >&5
11003    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004    if (exit $ac_status) && test -s "$ac_outfile"; then
11005      # The compiler can only warn and ignore the option if not recognized
11006      # So say no if there are warnings other than the usual output.
11007      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11008      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11009      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11010        lt_cv_prog_compiler_rtti_exceptions=yes
11011      fi
11012    fi
11013    $RM conftest*
11014
11015 fi
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11017 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11018
11019 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11020     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11021 else
11022     :
11023 fi
11024
11025 fi
11026
11027
11028
11029
11030
11031
11032   lt_prog_compiler_wl=
11033 lt_prog_compiler_pic=
11034 lt_prog_compiler_static=
11035
11036
11037   if test "$GCC" = yes; then
11038     lt_prog_compiler_wl='-Wl,'
11039     lt_prog_compiler_static='-static'
11040
11041     case $host_os in
11042       aix*)
11043       # All AIX code is PIC.
11044       if test "$host_cpu" = ia64; then
11045         # AIX 5 now supports IA64 processor
11046         lt_prog_compiler_static='-Bstatic'
11047       fi
11048       ;;
11049
11050     amigaos*)
11051       case $host_cpu in
11052       powerpc)
11053             # see comment about AmigaOS4 .so support
11054             lt_prog_compiler_pic='-fPIC'
11055         ;;
11056       m68k)
11057             # FIXME: we need at least 68020 code to build shared libraries, but
11058             # adding the `-m68020' flag to GCC prevents building anything better,
11059             # like `-m68040'.
11060             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11061         ;;
11062       esac
11063       ;;
11064
11065     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11066       # PIC is the default for these OSes.
11067       ;;
11068
11069     mingw* | cygwin* | pw32* | os2* | cegcc*)
11070       # This hack is so that the source file can tell whether it is being
11071       # built for inclusion in a dll (and should export symbols for example).
11072       # Although the cygwin gcc ignores -fPIC, still need this for old-style
11073       # (--disable-auto-import) libraries
11074       lt_prog_compiler_pic='-DDLL_EXPORT'
11075       ;;
11076
11077     darwin* | rhapsody*)
11078       # PIC is the default on this platform
11079       # Common symbols not allowed in MH_DYLIB files
11080       lt_prog_compiler_pic='-fno-common'
11081       ;;
11082
11083     haiku*)
11084       # PIC is the default for Haiku.
11085       # The "-static" flag exists, but is broken.
11086       lt_prog_compiler_static=
11087       ;;
11088
11089     hpux*)
11090       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11091       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
11092       # sets the default TLS model and affects inlining.
11093       case $host_cpu in
11094       hppa*64*)
11095         # +Z the default
11096         ;;
11097       *)
11098         lt_prog_compiler_pic='-fPIC'
11099         ;;
11100       esac
11101       ;;
11102
11103     interix[3-9]*)
11104       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11105       # Instead, we relocate shared libraries at runtime.
11106       ;;
11107
11108     msdosdjgpp*)
11109       # Just because we use GCC doesn't mean we suddenly get shared libraries
11110       # on systems that don't support them.
11111       lt_prog_compiler_can_build_shared=no
11112       enable_shared=no
11113       ;;
11114
11115     *nto* | *qnx*)
11116       # QNX uses GNU C++, but need to define -shared option too, otherwise
11117       # it will coredump.
11118       lt_prog_compiler_pic='-fPIC -shared'
11119       ;;
11120
11121     sysv4*MP*)
11122       if test -d /usr/nec; then
11123         lt_prog_compiler_pic=-Kconform_pic
11124       fi
11125       ;;
11126
11127     *)
11128       lt_prog_compiler_pic='-fPIC'
11129       ;;
11130     esac
11131
11132     case $cc_basename in
11133     nvcc*) # Cuda Compiler Driver 2.2
11134       lt_prog_compiler_wl='-Xlinker '
11135       lt_prog_compiler_pic='-Xcompiler -fPIC'
11136       ;;
11137     esac
11138   else
11139     # PORTME Check for flag to pass linker flags through the system compiler.
11140     case $host_os in
11141     aix*)
11142       lt_prog_compiler_wl='-Wl,'
11143       if test "$host_cpu" = ia64; then
11144         # AIX 5 now supports IA64 processor
11145         lt_prog_compiler_static='-Bstatic'
11146       else
11147         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11148       fi
11149       ;;
11150
11151     mingw* | cygwin* | pw32* | os2* | cegcc*)
11152       # This hack is so that the source file can tell whether it is being
11153       # built for inclusion in a dll (and should export symbols for example).
11154       lt_prog_compiler_pic='-DDLL_EXPORT'
11155       ;;
11156
11157     hpux9* | hpux10* | hpux11*)
11158       lt_prog_compiler_wl='-Wl,'
11159       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11160       # not for PA HP-UX.
11161       case $host_cpu in
11162       hppa*64*|ia64*)
11163         # +Z the default
11164         ;;
11165       *)
11166         lt_prog_compiler_pic='+Z'
11167         ;;
11168       esac
11169       # Is there a better lt_prog_compiler_static that works with the bundled CC?
11170       lt_prog_compiler_static='${wl}-a ${wl}archive'
11171       ;;
11172
11173     irix5* | irix6* | nonstopux*)
11174       lt_prog_compiler_wl='-Wl,'
11175       # PIC (with -KPIC) is the default.
11176       lt_prog_compiler_static='-non_shared'
11177       ;;
11178
11179     linux* | k*bsd*-gnu | kopensolaris*-gnu)
11180       case $cc_basename in
11181       # old Intel for x86_64 which still supported -KPIC.
11182       ecc*)
11183         lt_prog_compiler_wl='-Wl,'
11184         lt_prog_compiler_pic='-KPIC'
11185         lt_prog_compiler_static='-static'
11186         ;;
11187       # icc used to be incompatible with GCC.
11188       # ICC 10 doesn't accept -KPIC any more.
11189       icc* | ifort*)
11190         lt_prog_compiler_wl='-Wl,'
11191         lt_prog_compiler_pic='-fPIC'
11192         lt_prog_compiler_static='-static'
11193         ;;
11194       # Lahey Fortran 8.1.
11195       lf95*)
11196         lt_prog_compiler_wl='-Wl,'
11197         lt_prog_compiler_pic='--shared'
11198         lt_prog_compiler_static='--static'
11199         ;;
11200       nagfor*)
11201         # NAG Fortran compiler
11202         lt_prog_compiler_wl='-Wl,-Wl,,'
11203         lt_prog_compiler_pic='-PIC'
11204         lt_prog_compiler_static='-Bstatic'
11205         ;;
11206       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11207         # Portland Group compilers (*not* the Pentium gcc compiler,
11208         # which looks to be a dead project)
11209         lt_prog_compiler_wl='-Wl,'
11210         lt_prog_compiler_pic='-fpic'
11211         lt_prog_compiler_static='-Bstatic'
11212         ;;
11213       ccc*)
11214         lt_prog_compiler_wl='-Wl,'
11215         # All Alpha code is PIC.
11216         lt_prog_compiler_static='-non_shared'
11217         ;;
11218       xl* | bgxl* | bgf* | mpixl*)
11219         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11220         lt_prog_compiler_wl='-Wl,'
11221         lt_prog_compiler_pic='-qpic'
11222         lt_prog_compiler_static='-qstaticlink'
11223         ;;
11224       *)
11225         case `$CC -V 2>&1 | sed 5q` in
11226         *Sun\ F* | *Sun*Fortran*)
11227           # Sun Fortran 8.3 passes all unrecognized flags to the linker
11228           lt_prog_compiler_pic='-KPIC'
11229           lt_prog_compiler_static='-Bstatic'
11230           lt_prog_compiler_wl=''
11231           ;;
11232         *Sun\ C*)
11233           # Sun C 5.9
11234           lt_prog_compiler_pic='-KPIC'
11235           lt_prog_compiler_static='-Bstatic'
11236           lt_prog_compiler_wl='-Wl,'
11237           ;;
11238         esac
11239         ;;
11240       esac
11241       ;;
11242
11243     newsos6)
11244       lt_prog_compiler_pic='-KPIC'
11245       lt_prog_compiler_static='-Bstatic'
11246       ;;
11247
11248     *nto* | *qnx*)
11249       # QNX uses GNU C++, but need to define -shared option too, otherwise
11250       # it will coredump.
11251       lt_prog_compiler_pic='-fPIC -shared'
11252       ;;
11253
11254     osf3* | osf4* | osf5*)
11255       lt_prog_compiler_wl='-Wl,'
11256       # All OSF/1 code is PIC.
11257       lt_prog_compiler_static='-non_shared'
11258       ;;
11259
11260     rdos*)
11261       lt_prog_compiler_static='-non_shared'
11262       ;;
11263
11264     solaris*)
11265       lt_prog_compiler_pic='-KPIC'
11266       lt_prog_compiler_static='-Bstatic'
11267       case $cc_basename in
11268       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11269         lt_prog_compiler_wl='-Qoption ld ';;
11270       *)
11271         lt_prog_compiler_wl='-Wl,';;
11272       esac
11273       ;;
11274
11275     sunos4*)
11276       lt_prog_compiler_wl='-Qoption ld '
11277       lt_prog_compiler_pic='-PIC'
11278       lt_prog_compiler_static='-Bstatic'
11279       ;;
11280
11281     sysv4 | sysv4.2uw2* | sysv4.3*)
11282       lt_prog_compiler_wl='-Wl,'
11283       lt_prog_compiler_pic='-KPIC'
11284       lt_prog_compiler_static='-Bstatic'
11285       ;;
11286
11287     sysv4*MP*)
11288       if test -d /usr/nec ;then
11289         lt_prog_compiler_pic='-Kconform_pic'
11290         lt_prog_compiler_static='-Bstatic'
11291       fi
11292       ;;
11293
11294     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11295       lt_prog_compiler_wl='-Wl,'
11296       lt_prog_compiler_pic='-KPIC'
11297       lt_prog_compiler_static='-Bstatic'
11298       ;;
11299
11300     unicos*)
11301       lt_prog_compiler_wl='-Wl,'
11302       lt_prog_compiler_can_build_shared=no
11303       ;;
11304
11305     uts4*)
11306       lt_prog_compiler_pic='-pic'
11307       lt_prog_compiler_static='-Bstatic'
11308       ;;
11309
11310     *)
11311       lt_prog_compiler_can_build_shared=no
11312       ;;
11313     esac
11314   fi
11315
11316 case $host_os in
11317   # For platforms which do not support PIC, -DPIC is meaningless:
11318   *djgpp*)
11319     lt_prog_compiler_pic=
11320     ;;
11321   *)
11322     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11323     ;;
11324 esac
11325
11326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11327 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11328 if ${lt_cv_prog_compiler_pic+:} false; then :
11329   $as_echo_n "(cached) " >&6
11330 else
11331   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11332 fi
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11334 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
11335 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11336
11337 #
11338 # Check to make sure the PIC flag actually works.
11339 #
11340 if test -n "$lt_prog_compiler_pic"; then
11341   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11342 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11343 if ${lt_cv_prog_compiler_pic_works+:} false; then :
11344   $as_echo_n "(cached) " >&6
11345 else
11346   lt_cv_prog_compiler_pic_works=no
11347    ac_outfile=conftest.$ac_objext
11348    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11349    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11350    # Insert the option either (1) after the last *FLAGS variable, or
11351    # (2) before a word containing "conftest.", or (3) at the end.
11352    # Note that $ac_compile itself does not contain backslashes and begins
11353    # with a dollar sign (not a hyphen), so the echo should work correctly.
11354    # The option is referenced via a variable to avoid confusing sed.
11355    lt_compile=`echo "$ac_compile" | $SED \
11356    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11357    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11358    -e 's:$: $lt_compiler_flag:'`
11359    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11360    (eval "$lt_compile" 2>conftest.err)
11361    ac_status=$?
11362    cat conftest.err >&5
11363    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11364    if (exit $ac_status) && test -s "$ac_outfile"; then
11365      # The compiler can only warn and ignore the option if not recognized
11366      # So say no if there are warnings other than the usual output.
11367      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11368      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11369      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11370        lt_cv_prog_compiler_pic_works=yes
11371      fi
11372    fi
11373    $RM conftest*
11374
11375 fi
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11377 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11378
11379 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
11380     case $lt_prog_compiler_pic in
11381      "" | " "*) ;;
11382      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11383      esac
11384 else
11385     lt_prog_compiler_pic=
11386      lt_prog_compiler_can_build_shared=no
11387 fi
11388
11389 fi
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401 #
11402 # Check to make sure the static flag actually works.
11403 #
11404 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11406 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11407 if ${lt_cv_prog_compiler_static_works+:} false; then :
11408   $as_echo_n "(cached) " >&6
11409 else
11410   lt_cv_prog_compiler_static_works=no
11411    save_LDFLAGS="$LDFLAGS"
11412    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11413    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11414    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11415      # The linker can only warn and ignore the option if not recognized
11416      # So say no if there are warnings
11417      if test -s conftest.err; then
11418        # Append any errors to the config.log.
11419        cat conftest.err 1>&5
11420        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11421        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11422        if diff conftest.exp conftest.er2 >/dev/null; then
11423          lt_cv_prog_compiler_static_works=yes
11424        fi
11425      else
11426        lt_cv_prog_compiler_static_works=yes
11427      fi
11428    fi
11429    $RM -r conftest*
11430    LDFLAGS="$save_LDFLAGS"
11431
11432 fi
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11434 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11435
11436 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
11437     :
11438 else
11439     lt_prog_compiler_static=
11440 fi
11441
11442
11443
11444
11445
11446
11447
11448   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11449 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11450 if ${lt_cv_prog_compiler_c_o+:} false; then :
11451   $as_echo_n "(cached) " >&6
11452 else
11453   lt_cv_prog_compiler_c_o=no
11454    $RM -r conftest 2>/dev/null
11455    mkdir conftest
11456    cd conftest
11457    mkdir out
11458    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11459
11460    lt_compiler_flag="-o out/conftest2.$ac_objext"
11461    # Insert the option either (1) after the last *FLAGS variable, or
11462    # (2) before a word containing "conftest.", or (3) at the end.
11463    # Note that $ac_compile itself does not contain backslashes and begins
11464    # with a dollar sign (not a hyphen), so the echo should work correctly.
11465    lt_compile=`echo "$ac_compile" | $SED \
11466    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11467    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11468    -e 's:$: $lt_compiler_flag:'`
11469    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11470    (eval "$lt_compile" 2>out/conftest.err)
11471    ac_status=$?
11472    cat out/conftest.err >&5
11473    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11474    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11475    then
11476      # The compiler can only warn and ignore the option if not recognized
11477      # So say no if there are warnings
11478      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11479      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11480      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11481        lt_cv_prog_compiler_c_o=yes
11482      fi
11483    fi
11484    chmod u+w . 2>&5
11485    $RM conftest*
11486    # SGI C++ compiler will create directory out/ii_files/ for
11487    # template instantiation
11488    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11489    $RM out/* && rmdir out
11490    cd ..
11491    $RM -r conftest
11492    $RM conftest*
11493
11494 fi
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11496 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11497
11498
11499
11500
11501
11502
11503   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11504 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11505 if ${lt_cv_prog_compiler_c_o+:} false; then :
11506   $as_echo_n "(cached) " >&6
11507 else
11508   lt_cv_prog_compiler_c_o=no
11509    $RM -r conftest 2>/dev/null
11510    mkdir conftest
11511    cd conftest
11512    mkdir out
11513    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11514
11515    lt_compiler_flag="-o out/conftest2.$ac_objext"
11516    # Insert the option either (1) after the last *FLAGS variable, or
11517    # (2) before a word containing "conftest.", or (3) at the end.
11518    # Note that $ac_compile itself does not contain backslashes and begins
11519    # with a dollar sign (not a hyphen), so the echo should work correctly.
11520    lt_compile=`echo "$ac_compile" | $SED \
11521    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11522    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11523    -e 's:$: $lt_compiler_flag:'`
11524    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11525    (eval "$lt_compile" 2>out/conftest.err)
11526    ac_status=$?
11527    cat out/conftest.err >&5
11528    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11530    then
11531      # The compiler can only warn and ignore the option if not recognized
11532      # So say no if there are warnings
11533      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11534      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11535      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11536        lt_cv_prog_compiler_c_o=yes
11537      fi
11538    fi
11539    chmod u+w . 2>&5
11540    $RM conftest*
11541    # SGI C++ compiler will create directory out/ii_files/ for
11542    # template instantiation
11543    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11544    $RM out/* && rmdir out
11545    cd ..
11546    $RM -r conftest
11547    $RM conftest*
11548
11549 fi
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11551 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11552
11553
11554
11555
11556 hard_links="nottested"
11557 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
11558   # do not overwrite the value of need_locks provided by the user
11559   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11560 $as_echo_n "checking if we can lock with hard links... " >&6; }
11561   hard_links=yes
11562   $RM conftest*
11563   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11564   touch conftest.a
11565   ln conftest.a conftest.b 2>&5 || hard_links=no
11566   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11568 $as_echo "$hard_links" >&6; }
11569   if test "$hard_links" = no; then
11570     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11571 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11572     need_locks=warn
11573   fi
11574 else
11575   need_locks=no
11576 fi
11577
11578
11579
11580
11581
11582
11583   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11584 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11585
11586   runpath_var=
11587   allow_undefined_flag=
11588   always_export_symbols=no
11589   archive_cmds=
11590   archive_expsym_cmds=
11591   compiler_needs_object=no
11592   enable_shared_with_static_runtimes=no
11593   export_dynamic_flag_spec=
11594   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11595   hardcode_automatic=no
11596   hardcode_direct=no
11597   hardcode_direct_absolute=no
11598   hardcode_libdir_flag_spec=
11599   hardcode_libdir_flag_spec_ld=
11600   hardcode_libdir_separator=
11601   hardcode_minus_L=no
11602   hardcode_shlibpath_var=unsupported
11603   inherit_rpath=no
11604   link_all_deplibs=unknown
11605   module_cmds=
11606   module_expsym_cmds=
11607   old_archive_from_new_cmds=
11608   old_archive_from_expsyms_cmds=
11609   thread_safe_flag_spec=
11610   whole_archive_flag_spec=
11611   # include_expsyms should be a list of space-separated symbols to be *always*
11612   # included in the symbol list
11613   include_expsyms=
11614   # exclude_expsyms can be an extended regexp of symbols to exclude
11615   # it will be wrapped by ` (' and `)$', so one must not match beginning or
11616   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11617   # as well as any symbol that contains `d'.
11618   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11619   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11620   # platforms (ab)use it in PIC code, but their linkers get confused if
11621   # the symbol is explicitly referenced.  Since portable code cannot
11622   # rely on this symbol name, it's probably fine to never include it in
11623   # preloaded symbol tables.
11624   # Exclude shared library initialization/finalization symbols.
11625   extract_expsyms_cmds=
11626
11627   case $host_os in
11628   cygwin* | mingw* | pw32* | cegcc*)
11629     # FIXME: the MSVC++ port hasn't been tested in a loooong time
11630     # When not using gcc, we currently assume that we are using
11631     # Microsoft Visual C++.
11632     if test "$GCC" != yes; then
11633       with_gnu_ld=no
11634     fi
11635     ;;
11636   interix*)
11637     # we just hope/assume this is gcc and not c89 (= MSVC++)
11638     with_gnu_ld=yes
11639     ;;
11640   openbsd*)
11641     with_gnu_ld=no
11642     ;;
11643   esac
11644
11645   ld_shlibs=yes
11646
11647   # On some targets, GNU ld is compatible enough with the native linker
11648   # that we're better off using the native interface for both.
11649   lt_use_gnu_ld_interface=no
11650   if test "$with_gnu_ld" = yes; then
11651     case $host_os in
11652       aix*)
11653         # The AIX port of GNU ld has always aspired to compatibility
11654         # with the native linker.  However, as the warning in the GNU ld
11655         # block says, versions before 2.19.5* couldn't really create working
11656         # shared libraries, regardless of the interface used.
11657         case `$LD -v 2>&1` in
11658           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11659           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11660           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11661           *)
11662             lt_use_gnu_ld_interface=yes
11663             ;;
11664         esac
11665         ;;
11666       *)
11667         lt_use_gnu_ld_interface=yes
11668         ;;
11669     esac
11670   fi
11671
11672   if test "$lt_use_gnu_ld_interface" = yes; then
11673     # If archive_cmds runs LD, not CC, wlarc should be empty
11674     wlarc='${wl}'
11675
11676     # Set some defaults for GNU ld with shared library support. These
11677     # are reset later if shared libraries are not supported. Putting them
11678     # here allows them to be overridden if necessary.
11679     runpath_var=LD_RUN_PATH
11680     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11681     export_dynamic_flag_spec='${wl}--export-dynamic'
11682     # ancient GNU ld didn't support --whole-archive et. al.
11683     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11684       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11685     else
11686       whole_archive_flag_spec=
11687     fi
11688     supports_anon_versioning=no
11689     case `$LD -v 2>&1` in
11690       *GNU\ gold*) supports_anon_versioning=yes ;;
11691       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11692       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11693       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11694       *\ 2.11.*) ;; # other 2.11 versions
11695       *) supports_anon_versioning=yes ;;
11696     esac
11697
11698     # See if GNU ld supports shared libraries.
11699     case $host_os in
11700     aix[3-9]*)
11701       # On AIX/PPC, the GNU linker is very broken
11702       if test "$host_cpu" != ia64; then
11703         ld_shlibs=no
11704         cat <<_LT_EOF 1>&2
11705
11706 *** Warning: the GNU linker, at least up to release 2.19, is reported
11707 *** to be unable to reliably create shared libraries on AIX.
11708 *** Therefore, libtool is disabling shared libraries support.  If you
11709 *** really care for shared libraries, you may want to install binutils
11710 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11711 *** You will then need to restart the configuration process.
11712
11713 _LT_EOF
11714       fi
11715       ;;
11716
11717     amigaos*)
11718       case $host_cpu in
11719       powerpc)
11720             # see comment about AmigaOS4 .so support
11721             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11722             archive_expsym_cmds=''
11723         ;;
11724       m68k)
11725             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)'
11726             hardcode_libdir_flag_spec='-L$libdir'
11727             hardcode_minus_L=yes
11728         ;;
11729       esac
11730       ;;
11731
11732     beos*)
11733       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11734         allow_undefined_flag=unsupported
11735         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11736         # support --undefined.  This deserves some investigation.  FIXME
11737         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11738       else
11739         ld_shlibs=no
11740       fi
11741       ;;
11742
11743     cygwin* | mingw* | pw32* | cegcc*)
11744       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11745       # as there is no search path for DLLs.
11746       hardcode_libdir_flag_spec='-L$libdir'
11747       export_dynamic_flag_spec='${wl}--export-all-symbols'
11748       allow_undefined_flag=unsupported
11749       always_export_symbols=no
11750       enable_shared_with_static_runtimes=yes
11751       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'
11752       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11753
11754       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11755         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11756         # If the export-symbols file already is a .def file (1st line
11757         # is EXPORTS), use it as is; otherwise, prepend...
11758         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11759           cp $export_symbols $output_objdir/$soname.def;
11760         else
11761           echo EXPORTS > $output_objdir/$soname.def;
11762           cat $export_symbols >> $output_objdir/$soname.def;
11763         fi~
11764         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11765       else
11766         ld_shlibs=no
11767       fi
11768       ;;
11769
11770     haiku*)
11771       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11772       link_all_deplibs=yes
11773       ;;
11774
11775     interix[3-9]*)
11776       hardcode_direct=no
11777       hardcode_shlibpath_var=no
11778       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11779       export_dynamic_flag_spec='${wl}-E'
11780       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11781       # Instead, shared libraries are loaded at an image base (0x10000000 by
11782       # default) and relocated if they conflict, which is a slow very memory
11783       # consuming and fragmenting process.  To avoid this, we pick a random,
11784       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11785       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11786       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11787       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'
11788       ;;
11789
11790     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11791       tmp_diet=no
11792       if test "$host_os" = linux-dietlibc; then
11793         case $cc_basename in
11794           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
11795         esac
11796       fi
11797       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11798          && test "$tmp_diet" = no
11799       then
11800         tmp_addflag=' $pic_flag'
11801         tmp_sharedflag='-shared'
11802         case $cc_basename,$host_cpu in
11803         pgcc*)                          # Portland Group C compiler
11804           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'
11805           tmp_addflag=' $pic_flag'
11806           ;;
11807         pgf77* | pgf90* | pgf95* | pgfortran*)
11808                                         # Portland Group f77 and f90 compilers
11809           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'
11810           tmp_addflag=' $pic_flag -Mnomain' ;;
11811         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
11812           tmp_addflag=' -i_dynamic' ;;
11813         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
11814           tmp_addflag=' -i_dynamic -nofor_main' ;;
11815         ifc* | ifort*)                  # Intel Fortran compiler
11816           tmp_addflag=' -nofor_main' ;;
11817         lf95*)                          # Lahey Fortran 8.1
11818           whole_archive_flag_spec=
11819           tmp_sharedflag='--shared' ;;
11820         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11821           tmp_sharedflag='-qmkshrobj'
11822           tmp_addflag= ;;
11823         nvcc*)  # Cuda Compiler Driver 2.2
11824           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'
11825           compiler_needs_object=yes
11826           ;;
11827         esac
11828         case `$CC -V 2>&1 | sed 5q` in
11829         *Sun\ C*)                       # Sun C 5.9
11830           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'
11831           compiler_needs_object=yes
11832           tmp_sharedflag='-G' ;;
11833         *Sun\ F*)                       # Sun Fortran 8.3
11834           tmp_sharedflag='-G' ;;
11835         esac
11836         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11837
11838         if test "x$supports_anon_versioning" = xyes; then
11839           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11840             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11841             echo "local: *; };" >> $output_objdir/$libname.ver~
11842             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11843         fi
11844
11845         case $cc_basename in
11846         xlf* | bgf* | bgxlf* | mpixlf*)
11847           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11848           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11849           hardcode_libdir_flag_spec=
11850           hardcode_libdir_flag_spec_ld='-rpath $libdir'
11851           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11852           if test "x$supports_anon_versioning" = xyes; then
11853             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11854               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11855               echo "local: *; };" >> $output_objdir/$libname.ver~
11856               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11857           fi
11858           ;;
11859         esac
11860       else
11861         ld_shlibs=no
11862       fi
11863       ;;
11864
11865     netbsd*)
11866       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11867         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11868         wlarc=
11869       else
11870         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11871         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11872       fi
11873       ;;
11874
11875     solaris*)
11876       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11877         ld_shlibs=no
11878         cat <<_LT_EOF 1>&2
11879
11880 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11881 *** create shared libraries on Solaris systems.  Therefore, libtool
11882 *** is disabling shared libraries support.  We urge you to upgrade GNU
11883 *** binutils to release 2.9.1 or newer.  Another option is to modify
11884 *** your PATH or compiler configuration so that the native linker is
11885 *** used, and then restart.
11886
11887 _LT_EOF
11888       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11889         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11890         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11891       else
11892         ld_shlibs=no
11893       fi
11894       ;;
11895
11896     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11897       case `$LD -v 2>&1` in
11898         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11899         ld_shlibs=no
11900         cat <<_LT_EOF 1>&2
11901
11902 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11903 *** reliably create shared libraries on SCO systems.  Therefore, libtool
11904 *** is disabling shared libraries support.  We urge you to upgrade GNU
11905 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11906 *** your PATH or compiler configuration so that the native linker is
11907 *** used, and then restart.
11908
11909 _LT_EOF
11910         ;;
11911         *)
11912           # For security reasons, it is highly recommended that you always
11913           # use absolute paths for naming shared libraries, and exclude the
11914           # DT_RUNPATH tag from executables and libraries.  But doing so
11915           # requires that you compile everything twice, which is a pain.
11916           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11917             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11918             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11919             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11920           else
11921             ld_shlibs=no
11922           fi
11923         ;;
11924       esac
11925       ;;
11926
11927     sunos4*)
11928       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11929       wlarc=
11930       hardcode_direct=yes
11931       hardcode_shlibpath_var=no
11932       ;;
11933
11934     *)
11935       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11936         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11937         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11938       else
11939         ld_shlibs=no
11940       fi
11941       ;;
11942     esac
11943
11944     if test "$ld_shlibs" = no; then
11945       runpath_var=
11946       hardcode_libdir_flag_spec=
11947       export_dynamic_flag_spec=
11948       whole_archive_flag_spec=
11949     fi
11950   else
11951     # PORTME fill in a description of your system's linker (not GNU ld)
11952     case $host_os in
11953     aix3*)
11954       allow_undefined_flag=unsupported
11955       always_export_symbols=yes
11956       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'
11957       # Note: this linker hardcodes the directories in LIBPATH if there
11958       # are no directories specified by -L.
11959       hardcode_minus_L=yes
11960       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11961         # Neither direct hardcoding nor static linking is supported with a
11962         # broken collect2.
11963         hardcode_direct=unsupported
11964       fi
11965       ;;
11966
11967     aix[4-9]*)
11968       if test "$host_cpu" = ia64; then
11969         # On IA64, the linker does run time linking by default, so we don't
11970         # have to do anything special.
11971         aix_use_runtimelinking=no
11972         exp_sym_flag='-Bexport'
11973         no_entry_flag=""
11974       else
11975         # If we're using GNU nm, then we don't want the "-C" option.
11976         # -C means demangle to AIX nm, but means don't demangle with GNU nm
11977         # Also, AIX nm treats weak defined symbols like other global
11978         # defined symbols, whereas GNU nm marks them as "W".
11979         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11980           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'
11981         else
11982           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'
11983         fi
11984         aix_use_runtimelinking=no
11985
11986         # Test if we are trying to use run time linking or normal
11987         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11988         # need to do runtime linking.
11989         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11990           for ld_flag in $LDFLAGS; do
11991           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11992             aix_use_runtimelinking=yes
11993             break
11994           fi
11995           done
11996           ;;
11997         esac
11998
11999         exp_sym_flag='-bexport'
12000         no_entry_flag='-bnoentry'
12001       fi
12002
12003       # When large executables or shared objects are built, AIX ld can
12004       # have problems creating the table of contents.  If linking a library
12005       # or program results in "error TOC overflow" add -mminimal-toc to
12006       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12007       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12008
12009       archive_cmds=''
12010       hardcode_direct=yes
12011       hardcode_direct_absolute=yes
12012       hardcode_libdir_separator=':'
12013       link_all_deplibs=yes
12014       file_list_spec='${wl}-f,'
12015
12016       if test "$GCC" = yes; then
12017         case $host_os in aix4.[012]|aix4.[012].*)
12018         # We only want to do this on AIX 4.2 and lower, the check
12019         # below for broken collect2 doesn't work under 4.3+
12020           collect2name=`${CC} -print-prog-name=collect2`
12021           if test -f "$collect2name" &&
12022            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12023           then
12024           # We have reworked collect2
12025           :
12026           else
12027           # We have old collect2
12028           hardcode_direct=unsupported
12029           # It fails to find uninstalled libraries when the uninstalled
12030           # path is not listed in the libpath.  Setting hardcode_minus_L
12031           # to unsupported forces relinking
12032           hardcode_minus_L=yes
12033           hardcode_libdir_flag_spec='-L$libdir'
12034           hardcode_libdir_separator=
12035           fi
12036           ;;
12037         esac
12038         shared_flag='-shared'
12039         if test "$aix_use_runtimelinking" = yes; then
12040           shared_flag="$shared_flag "'${wl}-G'
12041         fi
12042       else
12043         # not using gcc
12044         if test "$host_cpu" = ia64; then
12045         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12046         # chokes on -Wl,-G. The following line is correct:
12047           shared_flag='-G'
12048         else
12049           if test "$aix_use_runtimelinking" = yes; then
12050             shared_flag='${wl}-G'
12051           else
12052             shared_flag='${wl}-bM:SRE'
12053           fi
12054         fi
12055       fi
12056
12057       export_dynamic_flag_spec='${wl}-bexpall'
12058       # It seems that -bexpall does not export symbols beginning with
12059       # underscore (_), so it is better to generate a list of symbols to export.
12060       always_export_symbols=yes
12061       if test "$aix_use_runtimelinking" = yes; then
12062         # Warning - without using the other runtime loading flags (-brtl),
12063         # -berok will link without error, but may produce a broken library.
12064         allow_undefined_flag='-berok'
12065         # Determine the default libpath from the value encoded in an
12066         # empty executable.
12067         if test "${lt_cv_aix_libpath+set}" = set; then
12068   aix_libpath=$lt_cv_aix_libpath
12069 else
12070   if ${lt_cv_aix_libpath_+:} false; then :
12071   $as_echo_n "(cached) " >&6
12072 else
12073   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12074 /* end confdefs.h.  */
12075
12076 int
12077 main ()
12078 {
12079
12080   ;
12081   return 0;
12082 }
12083 _ACEOF
12084 if ac_fn_c_try_link "$LINENO"; then :
12085
12086   lt_aix_libpath_sed='
12087       /Import File Strings/,/^$/ {
12088           /^0/ {
12089               s/^0  *\([^ ]*\) *$/\1/
12090               p
12091           }
12092       }'
12093   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12094   # Check for a 64-bit object if we didn't find anything.
12095   if test -z "$lt_cv_aix_libpath_"; then
12096     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12097   fi
12098 fi
12099 rm -f core conftest.err conftest.$ac_objext \
12100     conftest$ac_exeext conftest.$ac_ext
12101   if test -z "$lt_cv_aix_libpath_"; then
12102     lt_cv_aix_libpath_="/usr/lib:/lib"
12103   fi
12104
12105 fi
12106
12107   aix_libpath=$lt_cv_aix_libpath_
12108 fi
12109
12110         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12111         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"
12112       else
12113         if test "$host_cpu" = ia64; then
12114           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12115           allow_undefined_flag="-z nodefs"
12116           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"
12117         else
12118          # Determine the default libpath from the value encoded in an
12119          # empty executable.
12120          if test "${lt_cv_aix_libpath+set}" = set; then
12121   aix_libpath=$lt_cv_aix_libpath
12122 else
12123   if ${lt_cv_aix_libpath_+:} false; then :
12124   $as_echo_n "(cached) " >&6
12125 else
12126   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12127 /* end confdefs.h.  */
12128
12129 int
12130 main ()
12131 {
12132
12133   ;
12134   return 0;
12135 }
12136 _ACEOF
12137 if ac_fn_c_try_link "$LINENO"; then :
12138
12139   lt_aix_libpath_sed='
12140       /Import File Strings/,/^$/ {
12141           /^0/ {
12142               s/^0  *\([^ ]*\) *$/\1/
12143               p
12144           }
12145       }'
12146   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12147   # Check for a 64-bit object if we didn't find anything.
12148   if test -z "$lt_cv_aix_libpath_"; then
12149     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12150   fi
12151 fi
12152 rm -f core conftest.err conftest.$ac_objext \
12153     conftest$ac_exeext conftest.$ac_ext
12154   if test -z "$lt_cv_aix_libpath_"; then
12155     lt_cv_aix_libpath_="/usr/lib:/lib"
12156   fi
12157
12158 fi
12159
12160   aix_libpath=$lt_cv_aix_libpath_
12161 fi
12162
12163          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12164           # Warning - without using the other run time loading flags,
12165           # -berok will link without error, but may produce a broken library.
12166           no_undefined_flag=' ${wl}-bernotok'
12167           allow_undefined_flag=' ${wl}-berok'
12168           if test "$with_gnu_ld" = yes; then
12169             # We only use this code for GNU lds that support --whole-archive.
12170             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12171           else
12172             # Exported symbols can be pulled into shared objects from archives
12173             whole_archive_flag_spec='$convenience'
12174           fi
12175           archive_cmds_need_lc=yes
12176           # This is similar to how AIX traditionally builds its shared libraries.
12177           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'
12178         fi
12179       fi
12180       ;;
12181
12182     amigaos*)
12183       case $host_cpu in
12184       powerpc)
12185             # see comment about AmigaOS4 .so support
12186             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12187             archive_expsym_cmds=''
12188         ;;
12189       m68k)
12190             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)'
12191             hardcode_libdir_flag_spec='-L$libdir'
12192             hardcode_minus_L=yes
12193         ;;
12194       esac
12195       ;;
12196
12197     bsdi[45]*)
12198       export_dynamic_flag_spec=-rdynamic
12199       ;;
12200
12201     cygwin* | mingw* | pw32* | cegcc*)
12202       # When not using gcc, we currently assume that we are using
12203       # Microsoft Visual C++.
12204       # hardcode_libdir_flag_spec is actually meaningless, as there is
12205       # no search path for DLLs.
12206       case $cc_basename in
12207       cl*)
12208         # Native MSVC
12209         hardcode_libdir_flag_spec=' '
12210         allow_undefined_flag=unsupported
12211         always_export_symbols=yes
12212         file_list_spec='@'
12213         # Tell ltmain to make .lib files, not .a files.
12214         libext=lib
12215         # Tell ltmain to make .dll files, not .so files.
12216         shrext_cmds=".dll"
12217         # FIXME: Setting linknames here is a bad hack.
12218         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12219         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12220             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12221           else
12222             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12223           fi~
12224           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12225           linknames='
12226         # The linker will not automatically build a static lib if we build a DLL.
12227         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12228         enable_shared_with_static_runtimes=yes
12229         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12230         # Don't use ranlib
12231         old_postinstall_cmds='chmod 644 $oldlib'
12232         postlink_cmds='lt_outputfile="@OUTPUT@"~
12233           lt_tool_outputfile="@TOOL_OUTPUT@"~
12234           case $lt_outputfile in
12235             *.exe|*.EXE) ;;
12236             *)
12237               lt_outputfile="$lt_outputfile.exe"
12238               lt_tool_outputfile="$lt_tool_outputfile.exe"
12239               ;;
12240           esac~
12241           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12242             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12243             $RM "$lt_outputfile.manifest";
12244           fi'
12245         ;;
12246       *)
12247         # Assume MSVC wrapper
12248         hardcode_libdir_flag_spec=' '
12249         allow_undefined_flag=unsupported
12250         # Tell ltmain to make .lib files, not .a files.
12251         libext=lib
12252         # Tell ltmain to make .dll files, not .so files.
12253         shrext_cmds=".dll"
12254         # FIXME: Setting linknames here is a bad hack.
12255         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12256         # The linker will automatically build a .lib file if we build a DLL.
12257         old_archive_from_new_cmds='true'
12258         # FIXME: Should let the user specify the lib program.
12259         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12260         enable_shared_with_static_runtimes=yes
12261         ;;
12262       esac
12263       ;;
12264
12265     darwin* | rhapsody*)
12266
12267
12268   archive_cmds_need_lc=no
12269   hardcode_direct=no
12270   hardcode_automatic=yes
12271   hardcode_shlibpath_var=unsupported
12272   if test "$lt_cv_ld_force_load" = "yes"; then
12273     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\"`'
12274   else
12275     whole_archive_flag_spec=''
12276   fi
12277   link_all_deplibs=yes
12278   allow_undefined_flag="$_lt_dar_allow_undefined"
12279   case $cc_basename in
12280      ifort*) _lt_dar_can_shared=yes ;;
12281      *) _lt_dar_can_shared=$GCC ;;
12282   esac
12283   if test "$_lt_dar_can_shared" = "yes"; then
12284     output_verbose_link_cmd=func_echo_all
12285     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12286     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12287     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}"
12288     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}"
12289
12290   else
12291   ld_shlibs=no
12292   fi
12293
12294       ;;
12295
12296     dgux*)
12297       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12298       hardcode_libdir_flag_spec='-L$libdir'
12299       hardcode_shlibpath_var=no
12300       ;;
12301
12302     freebsd1*)
12303       ld_shlibs=no
12304       ;;
12305
12306     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12307     # support.  Future versions do this automatically, but an explicit c++rt0.o
12308     # does not break anything, and helps significantly (at the cost of a little
12309     # extra space).
12310     freebsd2.2*)
12311       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12312       hardcode_libdir_flag_spec='-R$libdir'
12313       hardcode_direct=yes
12314       hardcode_shlibpath_var=no
12315       ;;
12316
12317     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12318     freebsd2*)
12319       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12320       hardcode_direct=yes
12321       hardcode_minus_L=yes
12322       hardcode_shlibpath_var=no
12323       ;;
12324
12325     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12326     freebsd* | dragonfly*)
12327       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12328       hardcode_libdir_flag_spec='-R$libdir'
12329       hardcode_direct=yes
12330       hardcode_shlibpath_var=no
12331       ;;
12332
12333     hpux9*)
12334       if test "$GCC" = yes; then
12335         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'
12336       else
12337         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'
12338       fi
12339       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12340       hardcode_libdir_separator=:
12341       hardcode_direct=yes
12342
12343       # hardcode_minus_L: Not really in the search PATH,
12344       # but as the default location of the library.
12345       hardcode_minus_L=yes
12346       export_dynamic_flag_spec='${wl}-E'
12347       ;;
12348
12349     hpux10*)
12350       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12351         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12352       else
12353         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12354       fi
12355       if test "$with_gnu_ld" = no; then
12356         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12357         hardcode_libdir_flag_spec_ld='+b $libdir'
12358         hardcode_libdir_separator=:
12359         hardcode_direct=yes
12360         hardcode_direct_absolute=yes
12361         export_dynamic_flag_spec='${wl}-E'
12362         # hardcode_minus_L: Not really in the search PATH,
12363         # but as the default location of the library.
12364         hardcode_minus_L=yes
12365       fi
12366       ;;
12367
12368     hpux11*)
12369       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12370         case $host_cpu in
12371         hppa*64*)
12372           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12373           ;;
12374         ia64*)
12375           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12376           ;;
12377         *)
12378           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12379           ;;
12380         esac
12381       else
12382         case $host_cpu in
12383         hppa*64*)
12384           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12385           ;;
12386         ia64*)
12387           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12388           ;;
12389         *)
12390
12391           # Older versions of the 11.00 compiler do not understand -b yet
12392           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12393           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12394 $as_echo_n "checking if $CC understands -b... " >&6; }
12395 if ${lt_cv_prog_compiler__b+:} false; then :
12396   $as_echo_n "(cached) " >&6
12397 else
12398   lt_cv_prog_compiler__b=no
12399    save_LDFLAGS="$LDFLAGS"
12400    LDFLAGS="$LDFLAGS -b"
12401    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12402    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12403      # The linker can only warn and ignore the option if not recognized
12404      # So say no if there are warnings
12405      if test -s conftest.err; then
12406        # Append any errors to the config.log.
12407        cat conftest.err 1>&5
12408        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12409        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12410        if diff conftest.exp conftest.er2 >/dev/null; then
12411          lt_cv_prog_compiler__b=yes
12412        fi
12413      else
12414        lt_cv_prog_compiler__b=yes
12415      fi
12416    fi
12417    $RM -r conftest*
12418    LDFLAGS="$save_LDFLAGS"
12419
12420 fi
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12422 $as_echo "$lt_cv_prog_compiler__b" >&6; }
12423
12424 if test x"$lt_cv_prog_compiler__b" = xyes; then
12425     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12426 else
12427     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12428 fi
12429
12430           ;;
12431         esac
12432       fi
12433       if test "$with_gnu_ld" = no; then
12434         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12435         hardcode_libdir_separator=:
12436
12437         case $host_cpu in
12438         hppa*64*|ia64*)
12439           hardcode_direct=no
12440           hardcode_shlibpath_var=no
12441           ;;
12442         *)
12443           hardcode_direct=yes
12444           hardcode_direct_absolute=yes
12445           export_dynamic_flag_spec='${wl}-E'
12446
12447           # hardcode_minus_L: Not really in the search PATH,
12448           # but as the default location of the library.
12449           hardcode_minus_L=yes
12450           ;;
12451         esac
12452       fi
12453       ;;
12454
12455     irix5* | irix6* | nonstopux*)
12456       if test "$GCC" = yes; then
12457         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'
12458         # Try to use the -exported_symbol ld option, if it does not
12459         # work, assume that -exports_file does not work either and
12460         # implicitly export all symbols.
12461         # This should be the same for all languages, so no per-tag cache variable.
12462         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12463 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12464 if ${lt_cv_irix_exported_symbol+:} false; then :
12465   $as_echo_n "(cached) " >&6
12466 else
12467   save_LDFLAGS="$LDFLAGS"
12468            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12469            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12470 /* end confdefs.h.  */
12471 int foo (void) { return 0; }
12472 _ACEOF
12473 if ac_fn_c_try_link "$LINENO"; then :
12474   lt_cv_irix_exported_symbol=yes
12475 else
12476   lt_cv_irix_exported_symbol=no
12477 fi
12478 rm -f core conftest.err conftest.$ac_objext \
12479     conftest$ac_exeext conftest.$ac_ext
12480            LDFLAGS="$save_LDFLAGS"
12481 fi
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12483 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
12484         if test "$lt_cv_irix_exported_symbol" = yes; then
12485           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'
12486         fi
12487       else
12488         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'
12489         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'
12490       fi
12491       archive_cmds_need_lc='no'
12492       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12493       hardcode_libdir_separator=:
12494       inherit_rpath=yes
12495       link_all_deplibs=yes
12496       ;;
12497
12498     netbsd*)
12499       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12500         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12501       else
12502         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12503       fi
12504       hardcode_libdir_flag_spec='-R$libdir'
12505       hardcode_direct=yes
12506       hardcode_shlibpath_var=no
12507       ;;
12508
12509     newsos6)
12510       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12511       hardcode_direct=yes
12512       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12513       hardcode_libdir_separator=:
12514       hardcode_shlibpath_var=no
12515       ;;
12516
12517     *nto* | *qnx*)
12518       ;;
12519
12520     openbsd*)
12521       if test -f /usr/libexec/ld.so; then
12522         hardcode_direct=yes
12523         hardcode_shlibpath_var=no
12524         hardcode_direct_absolute=yes
12525         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12526           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12527           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12528           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12529           export_dynamic_flag_spec='${wl}-E'
12530         else
12531           case $host_os in
12532            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12533              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12534              hardcode_libdir_flag_spec='-R$libdir'
12535              ;;
12536            *)
12537              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12538              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12539              ;;
12540           esac
12541         fi
12542       else
12543         ld_shlibs=no
12544       fi
12545       ;;
12546
12547     os2*)
12548       hardcode_libdir_flag_spec='-L$libdir'
12549       hardcode_minus_L=yes
12550       allow_undefined_flag=unsupported
12551       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'
12552       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12553       ;;
12554
12555     osf3*)
12556       if test "$GCC" = yes; then
12557         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12558         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'
12559       else
12560         allow_undefined_flag=' -expect_unresolved \*'
12561         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'
12562       fi
12563       archive_cmds_need_lc='no'
12564       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12565       hardcode_libdir_separator=:
12566       ;;
12567
12568     osf4* | osf5*)      # as osf3* with the addition of -msym flag
12569       if test "$GCC" = yes; then
12570         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12571         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'
12572         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12573       else
12574         allow_undefined_flag=' -expect_unresolved \*'
12575         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'
12576         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~
12577         $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'
12578
12579         # Both c and cxx compiler support -rpath directly
12580         hardcode_libdir_flag_spec='-rpath $libdir'
12581       fi
12582       archive_cmds_need_lc='no'
12583       hardcode_libdir_separator=:
12584       ;;
12585
12586     solaris*)
12587       no_undefined_flag=' -z defs'
12588       if test "$GCC" = yes; then
12589         wlarc='${wl}'
12590         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12591         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12592           $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'
12593       else
12594         case `$CC -V 2>&1` in
12595         *"Compilers 5.0"*)
12596           wlarc=''
12597           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12598           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12599           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12600           ;;
12601         *)
12602           wlarc='${wl}'
12603           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12604           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12605           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12606           ;;
12607         esac
12608       fi
12609       hardcode_libdir_flag_spec='-R$libdir'
12610       hardcode_shlibpath_var=no
12611       case $host_os in
12612       solaris2.[0-5] | solaris2.[0-5].*) ;;
12613       *)
12614         # The compiler driver will combine and reorder linker options,
12615         # but understands `-z linker_flag'.  GCC discards it without `$wl',
12616         # but is careful enough not to reorder.
12617         # Supported since Solaris 2.6 (maybe 2.5.1?)
12618         if test "$GCC" = yes; then
12619           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12620         else
12621           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12622         fi
12623         ;;
12624       esac
12625       link_all_deplibs=yes
12626       ;;
12627
12628     sunos4*)
12629       if test "x$host_vendor" = xsequent; then
12630         # Use $CC to link under sequent, because it throws in some extra .o
12631         # files that make .init and .fini sections work.
12632         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12633       else
12634         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12635       fi
12636       hardcode_libdir_flag_spec='-L$libdir'
12637       hardcode_direct=yes
12638       hardcode_minus_L=yes
12639       hardcode_shlibpath_var=no
12640       ;;
12641
12642     sysv4)
12643       case $host_vendor in
12644         sni)
12645           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12646           hardcode_direct=yes # is this really true???
12647         ;;
12648         siemens)
12649           ## LD is ld it makes a PLAMLIB
12650           ## CC just makes a GrossModule.
12651           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12652           reload_cmds='$CC -r -o $output$reload_objs'
12653           hardcode_direct=no
12654         ;;
12655         motorola)
12656           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12657           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12658         ;;
12659       esac
12660       runpath_var='LD_RUN_PATH'
12661       hardcode_shlibpath_var=no
12662       ;;
12663
12664     sysv4.3*)
12665       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12666       hardcode_shlibpath_var=no
12667       export_dynamic_flag_spec='-Bexport'
12668       ;;
12669
12670     sysv4*MP*)
12671       if test -d /usr/nec; then
12672         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12673         hardcode_shlibpath_var=no
12674         runpath_var=LD_RUN_PATH
12675         hardcode_runpath_var=yes
12676         ld_shlibs=yes
12677       fi
12678       ;;
12679
12680     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12681       no_undefined_flag='${wl}-z,text'
12682       archive_cmds_need_lc=no
12683       hardcode_shlibpath_var=no
12684       runpath_var='LD_RUN_PATH'
12685
12686       if test "$GCC" = yes; then
12687         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12688         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12689       else
12690         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12691         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12692       fi
12693       ;;
12694
12695     sysv5* | sco3.2v5* | sco5v6*)
12696       # Note: We can NOT use -z defs as we might desire, because we do not
12697       # link with -lc, and that would cause any symbols used from libc to
12698       # always be unresolved, which means just about no library would
12699       # ever link correctly.  If we're not using GNU ld we use -z text
12700       # though, which does catch some bad symbols but isn't as heavy-handed
12701       # as -z defs.
12702       no_undefined_flag='${wl}-z,text'
12703       allow_undefined_flag='${wl}-z,nodefs'
12704       archive_cmds_need_lc=no
12705       hardcode_shlibpath_var=no
12706       hardcode_libdir_flag_spec='${wl}-R,$libdir'
12707       hardcode_libdir_separator=':'
12708       link_all_deplibs=yes
12709       export_dynamic_flag_spec='${wl}-Bexport'
12710       runpath_var='LD_RUN_PATH'
12711
12712       if test "$GCC" = yes; then
12713         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12714         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12715       else
12716         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12717         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12718       fi
12719       ;;
12720
12721     uts4*)
12722       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12723       hardcode_libdir_flag_spec='-L$libdir'
12724       hardcode_shlibpath_var=no
12725       ;;
12726
12727     *)
12728       ld_shlibs=no
12729       ;;
12730     esac
12731
12732     if test x$host_vendor = xsni; then
12733       case $host in
12734       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12735         export_dynamic_flag_spec='${wl}-Blargedynsym'
12736         ;;
12737       esac
12738     fi
12739   fi
12740
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12742 $as_echo "$ld_shlibs" >&6; }
12743 test "$ld_shlibs" = no && can_build_shared=no
12744
12745 with_gnu_ld=$with_gnu_ld
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761 #
12762 # Do we need to explicitly link libc?
12763 #
12764 case "x$archive_cmds_need_lc" in
12765 x|xyes)
12766   # Assume -lc should be added
12767   archive_cmds_need_lc=yes
12768
12769   if test "$enable_shared" = yes && test "$GCC" = yes; then
12770     case $archive_cmds in
12771     *'~'*)
12772       # FIXME: we may have to deal with multi-command sequences.
12773       ;;
12774     '$CC '*)
12775       # Test whether the compiler implicitly links with -lc since on some
12776       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12777       # to ld, don't add -lc before -lgcc.
12778       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12779 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12780 if ${lt_cv_archive_cmds_need_lc+:} false; then :
12781   $as_echo_n "(cached) " >&6
12782 else
12783   $RM conftest*
12784         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12785
12786         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12787   (eval $ac_compile) 2>&5
12788   ac_status=$?
12789   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12790   test $ac_status = 0; } 2>conftest.err; then
12791           soname=conftest
12792           lib=conftest
12793           libobjs=conftest.$ac_objext
12794           deplibs=
12795           wl=$lt_prog_compiler_wl
12796           pic_flag=$lt_prog_compiler_pic
12797           compiler_flags=-v
12798           linker_flags=-v
12799           verstring=
12800           output_objdir=.
12801           libname=conftest
12802           lt_save_allow_undefined_flag=$allow_undefined_flag
12803           allow_undefined_flag=
12804           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12805   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12806   ac_status=$?
12807   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12808   test $ac_status = 0; }
12809           then
12810             lt_cv_archive_cmds_need_lc=no
12811           else
12812             lt_cv_archive_cmds_need_lc=yes
12813           fi
12814           allow_undefined_flag=$lt_save_allow_undefined_flag
12815         else
12816           cat conftest.err 1>&5
12817         fi
12818         $RM conftest*
12819
12820 fi
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12822 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12823       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12824       ;;
12825     esac
12826   fi
12827   ;;
12828 esac
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12987 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12988
12989 if test "$GCC" = yes; then
12990   case $host_os in
12991     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12992     *) lt_awk_arg="/^libraries:/" ;;
12993   esac
12994   case $host_os in
12995     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12996     *) lt_sed_strip_eq="s,=/,/,g" ;;
12997   esac
12998   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12999   case $lt_search_path_spec in
13000   *\;*)
13001     # if the path contains ";" then we assume it to be the separator
13002     # otherwise default to the standard path separator (i.e. ":") - it is
13003     # assumed that no part of a normal pathname contains ";" but that should
13004     # okay in the real world where ";" in dirpaths is itself problematic.
13005     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13006     ;;
13007   *)
13008     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13009     ;;
13010   esac
13011   # Ok, now we have the path, separated by spaces, we can step through it
13012   # and add multilib dir if necessary.
13013   lt_tmp_lt_search_path_spec=
13014   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13015   for lt_sys_path in $lt_search_path_spec; do
13016     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
13017       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
13018     else
13019       test -d "$lt_sys_path" && \
13020         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13021     fi
13022   done
13023   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13024 BEGIN {RS=" "; FS="/|\n";} {
13025   lt_foo="";
13026   lt_count=0;
13027   for (lt_i = NF; lt_i > 0; lt_i--) {
13028     if ($lt_i != "" && $lt_i != ".") {
13029       if ($lt_i == "..") {
13030         lt_count++;
13031       } else {
13032         if (lt_count == 0) {
13033           lt_foo="/" $lt_i lt_foo;
13034         } else {
13035           lt_count--;
13036         }
13037       }
13038     }
13039   }
13040   if (lt_foo != "") { lt_freq[lt_foo]++; }
13041   if (lt_freq[lt_foo] == 1) { print lt_foo; }
13042 }'`
13043   # AWK program above erroneously prepends '/' to C:/dos/paths
13044   # for these hosts.
13045   case $host_os in
13046     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13047       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
13048   esac
13049   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13050 else
13051   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13052 fi
13053 library_names_spec=
13054 libname_spec='lib$name'
13055 soname_spec=
13056 shrext_cmds=".so"
13057 postinstall_cmds=
13058 postuninstall_cmds=
13059 finish_cmds=
13060 finish_eval=
13061 shlibpath_var=
13062 shlibpath_overrides_runpath=unknown
13063 version_type=none
13064 dynamic_linker="$host_os ld.so"
13065 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13066 need_lib_prefix=unknown
13067 hardcode_into_libs=no
13068
13069 # when you set need_version to no, make sure it does not cause -set_version
13070 # flags to be left without arguments
13071 need_version=unknown
13072
13073 case $host_os in
13074 aix3*)
13075   version_type=linux
13076   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13077   shlibpath_var=LIBPATH
13078
13079   # AIX 3 has no versioning support, so we append a major version to the name.
13080   soname_spec='${libname}${release}${shared_ext}$major'
13081   ;;
13082
13083 aix[4-9]*)
13084   version_type=linux
13085   need_lib_prefix=no
13086   need_version=no
13087   hardcode_into_libs=yes
13088   if test "$host_cpu" = ia64; then
13089     # AIX 5 supports IA64
13090     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13091     shlibpath_var=LD_LIBRARY_PATH
13092   else
13093     # With GCC up to 2.95.x, collect2 would create an import file
13094     # for dependence libraries.  The import file would start with
13095     # the line `#! .'.  This would cause the generated library to
13096     # depend on `.', always an invalid library.  This was fixed in
13097     # development snapshots of GCC prior to 3.0.
13098     case $host_os in
13099       aix4 | aix4.[01] | aix4.[01].*)
13100       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13101            echo ' yes '
13102            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13103         :
13104       else
13105         can_build_shared=no
13106       fi
13107       ;;
13108     esac
13109     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13110     # soname into executable. Probably we can add versioning support to
13111     # collect2, so additional links can be useful in future.
13112     if test "$aix_use_runtimelinking" = yes; then
13113       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13114       # instead of lib<name>.a to let people know that these are not
13115       # typical AIX shared libraries.
13116       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13117     else
13118       # We preserve .a as extension for shared libraries through AIX4.2
13119       # and later when we are not doing run time linking.
13120       library_names_spec='${libname}${release}.a $libname.a'
13121       soname_spec='${libname}${release}${shared_ext}$major'
13122     fi
13123     shlibpath_var=LIBPATH
13124   fi
13125   ;;
13126
13127 amigaos*)
13128   case $host_cpu in
13129   powerpc)
13130     # Since July 2007 AmigaOS4 officially supports .so libraries.
13131     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13132     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13133     ;;
13134   m68k)
13135     library_names_spec='$libname.ixlibrary $libname.a'
13136     # Create ${libname}_ixlibrary.a entries in /sys/libs.
13137     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'
13138     ;;
13139   esac
13140   ;;
13141
13142 beos*)
13143   library_names_spec='${libname}${shared_ext}'
13144   dynamic_linker="$host_os ld.so"
13145   shlibpath_var=LIBRARY_PATH
13146   ;;
13147
13148 bsdi[45]*)
13149   version_type=linux
13150   need_version=no
13151   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13152   soname_spec='${libname}${release}${shared_ext}$major'
13153   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13154   shlibpath_var=LD_LIBRARY_PATH
13155   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13156   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13157   # the default ld.so.conf also contains /usr/contrib/lib and
13158   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13159   # libtool to hard-code these into programs
13160   ;;
13161
13162 cygwin* | mingw* | pw32* | cegcc*)
13163   version_type=windows
13164   shrext_cmds=".dll"
13165   need_version=no
13166   need_lib_prefix=no
13167
13168   case $GCC,$cc_basename in
13169   yes,*)
13170     # gcc
13171     library_names_spec='$libname.dll.a'
13172     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13173     postinstall_cmds='base_file=`basename \${file}`~
13174       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13175       dldir=$destdir/`dirname \$dlpath`~
13176       test -d \$dldir || mkdir -p \$dldir~
13177       $install_prog $dir/$dlname \$dldir/$dlname~
13178       chmod a+x \$dldir/$dlname~
13179       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13180         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13181       fi'
13182     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13183       dlpath=$dir/\$dldll~
13184        $RM \$dlpath'
13185     shlibpath_overrides_runpath=yes
13186
13187     case $host_os in
13188     cygwin*)
13189       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13190       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13191
13192       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13193       ;;
13194     mingw* | cegcc*)
13195       # MinGW DLLs use traditional 'lib' prefix
13196       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13197       ;;
13198     pw32*)
13199       # pw32 DLLs use 'pw' prefix rather than 'lib'
13200       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13201       ;;
13202     esac
13203     dynamic_linker='Win32 ld.exe'
13204     ;;
13205
13206   *,cl*)
13207     # Native MSVC
13208     libname_spec='$name'
13209     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13210     library_names_spec='${libname}.dll.lib'
13211
13212     case $build_os in
13213     mingw*)
13214       sys_lib_search_path_spec=
13215       lt_save_ifs=$IFS
13216       IFS=';'
13217       for lt_path in $LIB
13218       do
13219         IFS=$lt_save_ifs
13220         # Let DOS variable expansion print the short 8.3 style file name.
13221         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13222         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13223       done
13224       IFS=$lt_save_ifs
13225       # Convert to MSYS style.
13226       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13227       ;;
13228     cygwin*)
13229       # Convert to unix form, then to dos form, then back to unix form
13230       # but this time dos style (no spaces!) so that the unix form looks
13231       # like /cygdrive/c/PROGRA~1:/cygdr...
13232       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13233       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13234       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13235       ;;
13236     *)
13237       sys_lib_search_path_spec="$LIB"
13238       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13239         # It is most probably a Windows format PATH.
13240         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13241       else
13242         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13243       fi
13244       # FIXME: find the short name or the path components, as spaces are
13245       # common. (e.g. "Program Files" -> "PROGRA~1")
13246       ;;
13247     esac
13248
13249     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13250     postinstall_cmds='base_file=`basename \${file}`~
13251       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13252       dldir=$destdir/`dirname \$dlpath`~
13253       test -d \$dldir || mkdir -p \$dldir~
13254       $install_prog $dir/$dlname \$dldir/$dlname'
13255     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13256       dlpath=$dir/\$dldll~
13257        $RM \$dlpath'
13258     shlibpath_overrides_runpath=yes
13259     dynamic_linker='Win32 link.exe'
13260     ;;
13261
13262   *)
13263     # Assume MSVC wrapper
13264     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13265     dynamic_linker='Win32 ld.exe'
13266     ;;
13267   esac
13268   # FIXME: first we should search . and the directory the executable is in
13269   shlibpath_var=PATH
13270   ;;
13271
13272 darwin* | rhapsody*)
13273   dynamic_linker="$host_os dyld"
13274   version_type=darwin
13275   need_lib_prefix=no
13276   need_version=no
13277   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13278   soname_spec='${libname}${release}${major}$shared_ext'
13279   shlibpath_overrides_runpath=yes
13280   shlibpath_var=DYLD_LIBRARY_PATH
13281   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13282
13283   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13284   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13285   ;;
13286
13287 dgux*)
13288   version_type=linux
13289   need_lib_prefix=no
13290   need_version=no
13291   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13292   soname_spec='${libname}${release}${shared_ext}$major'
13293   shlibpath_var=LD_LIBRARY_PATH
13294   ;;
13295
13296 freebsd1*)
13297   dynamic_linker=no
13298   ;;
13299
13300 freebsd* | dragonfly*)
13301   # DragonFly does not have aout.  When/if they implement a new
13302   # versioning mechanism, adjust this.
13303   if test -x /usr/bin/objformat; then
13304     objformat=`/usr/bin/objformat`
13305   else
13306     case $host_os in
13307     freebsd[123]*) objformat=aout ;;
13308     *) objformat=elf ;;
13309     esac
13310   fi
13311   version_type=freebsd-$objformat
13312   case $version_type in
13313     freebsd-elf*)
13314       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13315       need_version=no
13316       need_lib_prefix=no
13317       ;;
13318     freebsd-*)
13319       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13320       need_version=yes
13321       ;;
13322   esac
13323   shlibpath_var=LD_LIBRARY_PATH
13324   case $host_os in
13325   freebsd2*)
13326     shlibpath_overrides_runpath=yes
13327     ;;
13328   freebsd3.[01]* | freebsdelf3.[01]*)
13329     shlibpath_overrides_runpath=yes
13330     hardcode_into_libs=yes
13331     ;;
13332   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13333   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13334     shlibpath_overrides_runpath=no
13335     hardcode_into_libs=yes
13336     ;;
13337   *) # from 4.6 on, and DragonFly
13338     shlibpath_overrides_runpath=yes
13339     hardcode_into_libs=yes
13340     ;;
13341   esac
13342   ;;
13343
13344 gnu*)
13345   version_type=linux
13346   need_lib_prefix=no
13347   need_version=no
13348   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13349   soname_spec='${libname}${release}${shared_ext}$major'
13350   shlibpath_var=LD_LIBRARY_PATH
13351   hardcode_into_libs=yes
13352   ;;
13353
13354 haiku*)
13355   version_type=linux
13356   need_lib_prefix=no
13357   need_version=no
13358   dynamic_linker="$host_os runtime_loader"
13359   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13360   soname_spec='${libname}${release}${shared_ext}$major'
13361   shlibpath_var=LIBRARY_PATH
13362   shlibpath_overrides_runpath=yes
13363   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13364   hardcode_into_libs=yes
13365   ;;
13366
13367 hpux9* | hpux10* | hpux11*)
13368   # Give a soname corresponding to the major version so that dld.sl refuses to
13369   # link against other versions.
13370   version_type=sunos
13371   need_lib_prefix=no
13372   need_version=no
13373   case $host_cpu in
13374   ia64*)
13375     shrext_cmds='.so'
13376     hardcode_into_libs=yes
13377     dynamic_linker="$host_os dld.so"
13378     shlibpath_var=LD_LIBRARY_PATH
13379     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13380     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13381     soname_spec='${libname}${release}${shared_ext}$major'
13382     if test "X$HPUX_IA64_MODE" = X32; then
13383       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13384     else
13385       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13386     fi
13387     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13388     ;;
13389   hppa*64*)
13390     shrext_cmds='.sl'
13391     hardcode_into_libs=yes
13392     dynamic_linker="$host_os dld.sl"
13393     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13394     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13395     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13396     soname_spec='${libname}${release}${shared_ext}$major'
13397     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13398     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13399     ;;
13400   *)
13401     shrext_cmds='.sl'
13402     dynamic_linker="$host_os dld.sl"
13403     shlibpath_var=SHLIB_PATH
13404     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13405     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13406     soname_spec='${libname}${release}${shared_ext}$major'
13407     ;;
13408   esac
13409   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13410   postinstall_cmds='chmod 555 $lib'
13411   # or fails outright, so override atomically:
13412   install_override_mode=555
13413   ;;
13414
13415 interix[3-9]*)
13416   version_type=linux
13417   need_lib_prefix=no
13418   need_version=no
13419   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13420   soname_spec='${libname}${release}${shared_ext}$major'
13421   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13422   shlibpath_var=LD_LIBRARY_PATH
13423   shlibpath_overrides_runpath=no
13424   hardcode_into_libs=yes
13425   ;;
13426
13427 irix5* | irix6* | nonstopux*)
13428   case $host_os in
13429     nonstopux*) version_type=nonstopux ;;
13430     *)
13431         if test "$lt_cv_prog_gnu_ld" = yes; then
13432                 version_type=linux
13433         else
13434                 version_type=irix
13435         fi ;;
13436   esac
13437   need_lib_prefix=no
13438   need_version=no
13439   soname_spec='${libname}${release}${shared_ext}$major'
13440   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13441   case $host_os in
13442   irix5* | nonstopux*)
13443     libsuff= shlibsuff=
13444     ;;
13445   *)
13446     case $LD in # libtool.m4 will add one of these switches to LD
13447     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13448       libsuff= shlibsuff= libmagic=32-bit;;
13449     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13450       libsuff=32 shlibsuff=N32 libmagic=N32;;
13451     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13452       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13453     *) libsuff= shlibsuff= libmagic=never-match;;
13454     esac
13455     ;;
13456   esac
13457   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13458   shlibpath_overrides_runpath=no
13459   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13460   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13461   hardcode_into_libs=yes
13462   ;;
13463
13464 # No shared lib support for Linux oldld, aout, or coff.
13465 linux*oldld* | linux*aout* | linux*coff*)
13466   dynamic_linker=no
13467   ;;
13468
13469 # This must be Linux ELF.
13470 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13471   version_type=linux
13472   need_lib_prefix=no
13473   need_version=no
13474   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13475   soname_spec='${libname}${release}${shared_ext}$major'
13476   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13477   shlibpath_var=LD_LIBRARY_PATH
13478   shlibpath_overrides_runpath=no
13479
13480   # Some binutils ld are patched to set DT_RUNPATH
13481   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
13482   $as_echo_n "(cached) " >&6
13483 else
13484   lt_cv_shlibpath_overrides_runpath=no
13485     save_LDFLAGS=$LDFLAGS
13486     save_libdir=$libdir
13487     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13488          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13489     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13490 /* end confdefs.h.  */
13491
13492 int
13493 main ()
13494 {
13495
13496   ;
13497   return 0;
13498 }
13499 _ACEOF
13500 if ac_fn_c_try_link "$LINENO"; then :
13501   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13502   lt_cv_shlibpath_overrides_runpath=yes
13503 fi
13504 fi
13505 rm -f core conftest.err conftest.$ac_objext \
13506     conftest$ac_exeext conftest.$ac_ext
13507     LDFLAGS=$save_LDFLAGS
13508     libdir=$save_libdir
13509
13510 fi
13511
13512   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13513
13514   # This implies no fast_install, which is unacceptable.
13515   # Some rework will be needed to allow for fast_install
13516   # before this can be enabled.
13517   hardcode_into_libs=yes
13518
13519   # Add ABI-specific directories to the system library path.
13520   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
13521
13522   # Append ld.so.conf contents to the search path
13523   if test -f /etc/ld.so.conf; then
13524     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' ' '`
13525     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13526
13527   fi
13528
13529   # We used to test for /lib/ld.so.1 and disable shared libraries on
13530   # powerpc, because MkLinux only supported shared libraries with the
13531   # GNU dynamic linker.  Since this was broken with cross compilers,
13532   # most powerpc-linux boxes support dynamic linking these days and
13533   # people can always --disable-shared, the test was removed, and we
13534   # assume the GNU/Linux dynamic linker is in use.
13535   dynamic_linker='GNU/Linux ld.so'
13536   ;;
13537
13538 netbsd*)
13539   version_type=sunos
13540   need_lib_prefix=no
13541   need_version=no
13542   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13543     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13544     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13545     dynamic_linker='NetBSD (a.out) ld.so'
13546   else
13547     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13548     soname_spec='${libname}${release}${shared_ext}$major'
13549     dynamic_linker='NetBSD ld.elf_so'
13550   fi
13551   shlibpath_var=LD_LIBRARY_PATH
13552   shlibpath_overrides_runpath=yes
13553   hardcode_into_libs=yes
13554   ;;
13555
13556 newsos6)
13557   version_type=linux
13558   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13559   shlibpath_var=LD_LIBRARY_PATH
13560   shlibpath_overrides_runpath=yes
13561   ;;
13562
13563 *nto* | *qnx*)
13564   version_type=qnx
13565   need_lib_prefix=no
13566   need_version=no
13567   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13568   soname_spec='${libname}${release}${shared_ext}$major'
13569   shlibpath_var=LD_LIBRARY_PATH
13570   shlibpath_overrides_runpath=no
13571   hardcode_into_libs=yes
13572   dynamic_linker='ldqnx.so'
13573   ;;
13574
13575 openbsd*)
13576   version_type=sunos
13577   sys_lib_dlsearch_path_spec="/usr/lib"
13578   need_lib_prefix=no
13579   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13580   case $host_os in
13581     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
13582     *)                          need_version=no  ;;
13583   esac
13584   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13585   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13586   shlibpath_var=LD_LIBRARY_PATH
13587   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13588     case $host_os in
13589       openbsd2.[89] | openbsd2.[89].*)
13590         shlibpath_overrides_runpath=no
13591         ;;
13592       *)
13593         shlibpath_overrides_runpath=yes
13594         ;;
13595       esac
13596   else
13597     shlibpath_overrides_runpath=yes
13598   fi
13599   ;;
13600
13601 os2*)
13602   libname_spec='$name'
13603   shrext_cmds=".dll"
13604   need_lib_prefix=no
13605   library_names_spec='$libname${shared_ext} $libname.a'
13606   dynamic_linker='OS/2 ld.exe'
13607   shlibpath_var=LIBPATH
13608   ;;
13609
13610 osf3* | osf4* | osf5*)
13611   version_type=osf
13612   need_lib_prefix=no
13613   need_version=no
13614   soname_spec='${libname}${release}${shared_ext}$major'
13615   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13616   shlibpath_var=LD_LIBRARY_PATH
13617   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13618   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13619   ;;
13620
13621 rdos*)
13622   dynamic_linker=no
13623   ;;
13624
13625 solaris*)
13626   version_type=linux
13627   need_lib_prefix=no
13628   need_version=no
13629   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13630   soname_spec='${libname}${release}${shared_ext}$major'
13631   shlibpath_var=LD_LIBRARY_PATH
13632   shlibpath_overrides_runpath=yes
13633   hardcode_into_libs=yes
13634   # ldd complains unless libraries are executable
13635   postinstall_cmds='chmod +x $lib'
13636   ;;
13637
13638 sunos4*)
13639   version_type=sunos
13640   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13641   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13642   shlibpath_var=LD_LIBRARY_PATH
13643   shlibpath_overrides_runpath=yes
13644   if test "$with_gnu_ld" = yes; then
13645     need_lib_prefix=no
13646   fi
13647   need_version=yes
13648   ;;
13649
13650 sysv4 | sysv4.3*)
13651   version_type=linux
13652   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13653   soname_spec='${libname}${release}${shared_ext}$major'
13654   shlibpath_var=LD_LIBRARY_PATH
13655   case $host_vendor in
13656     sni)
13657       shlibpath_overrides_runpath=no
13658       need_lib_prefix=no
13659       runpath_var=LD_RUN_PATH
13660       ;;
13661     siemens)
13662       need_lib_prefix=no
13663       ;;
13664     motorola)
13665       need_lib_prefix=no
13666       need_version=no
13667       shlibpath_overrides_runpath=no
13668       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13669       ;;
13670   esac
13671   ;;
13672
13673 sysv4*MP*)
13674   if test -d /usr/nec ;then
13675     version_type=linux
13676     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13677     soname_spec='$libname${shared_ext}.$major'
13678     shlibpath_var=LD_LIBRARY_PATH
13679   fi
13680   ;;
13681
13682 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13683   version_type=freebsd-elf
13684   need_lib_prefix=no
13685   need_version=no
13686   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13687   soname_spec='${libname}${release}${shared_ext}$major'
13688   shlibpath_var=LD_LIBRARY_PATH
13689   shlibpath_overrides_runpath=yes
13690   hardcode_into_libs=yes
13691   if test "$with_gnu_ld" = yes; then
13692     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13693   else
13694     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13695     case $host_os in
13696       sco3.2v5*)
13697         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13698         ;;
13699     esac
13700   fi
13701   sys_lib_dlsearch_path_spec='/usr/lib'
13702   ;;
13703
13704 tpf*)
13705   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
13706   version_type=linux
13707   need_lib_prefix=no
13708   need_version=no
13709   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13710   shlibpath_var=LD_LIBRARY_PATH
13711   shlibpath_overrides_runpath=no
13712   hardcode_into_libs=yes
13713   ;;
13714
13715 uts4*)
13716   version_type=linux
13717   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13718   soname_spec='${libname}${release}${shared_ext}$major'
13719   shlibpath_var=LD_LIBRARY_PATH
13720   ;;
13721
13722 *)
13723   dynamic_linker=no
13724   ;;
13725 esac
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13727 $as_echo "$dynamic_linker" >&6; }
13728 test "$dynamic_linker" = no && can_build_shared=no
13729
13730 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13731 if test "$GCC" = yes; then
13732   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13733 fi
13734
13735 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13736   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13737 fi
13738 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13739   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13740 fi
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13834 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13835 hardcode_action=
13836 if test -n "$hardcode_libdir_flag_spec" ||
13837    test -n "$runpath_var" ||
13838    test "X$hardcode_automatic" = "Xyes" ; then
13839
13840   # We can hardcode non-existent directories.
13841   if test "$hardcode_direct" != no &&
13842      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13843      # have to relink, otherwise we might link with an installed library
13844      # when we should be linking with a yet-to-be-installed one
13845      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13846      test "$hardcode_minus_L" != no; then
13847     # Linking always hardcodes the temporary library directory.
13848     hardcode_action=relink
13849   else
13850     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13851     hardcode_action=immediate
13852   fi
13853 else
13854   # We cannot hardcode anything, or else we can only hardcode existing
13855   # directories.
13856   hardcode_action=unsupported
13857 fi
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13859 $as_echo "$hardcode_action" >&6; }
13860
13861 if test "$hardcode_action" = relink ||
13862    test "$inherit_rpath" = yes; then
13863   # Fast installation is not supported
13864   enable_fast_install=no
13865 elif test "$shlibpath_overrides_runpath" = yes ||
13866      test "$enable_shared" = no; then
13867   # Fast installation is not necessary
13868   enable_fast_install=needless
13869 fi
13870
13871
13872
13873
13874
13875
13876   if test "x$enable_dlopen" != xyes; then
13877   enable_dlopen=unknown
13878   enable_dlopen_self=unknown
13879   enable_dlopen_self_static=unknown
13880 else
13881   lt_cv_dlopen=no
13882   lt_cv_dlopen_libs=
13883
13884   case $host_os in
13885   beos*)
13886     lt_cv_dlopen="load_add_on"
13887     lt_cv_dlopen_libs=
13888     lt_cv_dlopen_self=yes
13889     ;;
13890
13891   mingw* | pw32* | cegcc*)
13892     lt_cv_dlopen="LoadLibrary"
13893     lt_cv_dlopen_libs=
13894     ;;
13895
13896   cygwin*)
13897     lt_cv_dlopen="dlopen"
13898     lt_cv_dlopen_libs=
13899     ;;
13900
13901   darwin*)
13902   # if libdl is installed we need to link against it
13903     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13904 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13905 if ${ac_cv_lib_dl_dlopen+:} false; then :
13906   $as_echo_n "(cached) " >&6
13907 else
13908   ac_check_lib_save_LIBS=$LIBS
13909 LIBS="-ldl  $LIBS"
13910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13911 /* end confdefs.h.  */
13912
13913 /* Override any GCC internal prototype to avoid an error.
13914    Use char because int might match the return type of a GCC
13915    builtin and then its argument prototype would still apply.  */
13916 #ifdef __cplusplus
13917 extern "C"
13918 #endif
13919 char dlopen ();
13920 int
13921 main ()
13922 {
13923 return dlopen ();
13924   ;
13925   return 0;
13926 }
13927 _ACEOF
13928 if ac_fn_c_try_link "$LINENO"; then :
13929   ac_cv_lib_dl_dlopen=yes
13930 else
13931   ac_cv_lib_dl_dlopen=no
13932 fi
13933 rm -f core conftest.err conftest.$ac_objext \
13934     conftest$ac_exeext conftest.$ac_ext
13935 LIBS=$ac_check_lib_save_LIBS
13936 fi
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13938 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13939 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13940   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13941 else
13942
13943     lt_cv_dlopen="dyld"
13944     lt_cv_dlopen_libs=
13945     lt_cv_dlopen_self=yes
13946
13947 fi
13948
13949     ;;
13950
13951   *)
13952     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13953 if test "x$ac_cv_func_shl_load" = xyes; then :
13954   lt_cv_dlopen="shl_load"
13955 else
13956   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13957 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13958 if ${ac_cv_lib_dld_shl_load+:} false; then :
13959   $as_echo_n "(cached) " >&6
13960 else
13961   ac_check_lib_save_LIBS=$LIBS
13962 LIBS="-ldld  $LIBS"
13963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13964 /* end confdefs.h.  */
13965
13966 /* Override any GCC internal prototype to avoid an error.
13967    Use char because int might match the return type of a GCC
13968    builtin and then its argument prototype would still apply.  */
13969 #ifdef __cplusplus
13970 extern "C"
13971 #endif
13972 char shl_load ();
13973 int
13974 main ()
13975 {
13976 return shl_load ();
13977   ;
13978   return 0;
13979 }
13980 _ACEOF
13981 if ac_fn_c_try_link "$LINENO"; then :
13982   ac_cv_lib_dld_shl_load=yes
13983 else
13984   ac_cv_lib_dld_shl_load=no
13985 fi
13986 rm -f core conftest.err conftest.$ac_objext \
13987     conftest$ac_exeext conftest.$ac_ext
13988 LIBS=$ac_check_lib_save_LIBS
13989 fi
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13991 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13992 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13993   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13994 else
13995   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13996 if test "x$ac_cv_func_dlopen" = xyes; then :
13997   lt_cv_dlopen="dlopen"
13998 else
13999   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14000 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14001 if ${ac_cv_lib_dl_dlopen+:} false; then :
14002   $as_echo_n "(cached) " >&6
14003 else
14004   ac_check_lib_save_LIBS=$LIBS
14005 LIBS="-ldl  $LIBS"
14006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14007 /* end confdefs.h.  */
14008
14009 /* Override any GCC internal prototype to avoid an error.
14010    Use char because int might match the return type of a GCC
14011    builtin and then its argument prototype would still apply.  */
14012 #ifdef __cplusplus
14013 extern "C"
14014 #endif
14015 char dlopen ();
14016 int
14017 main ()
14018 {
14019 return dlopen ();
14020   ;
14021   return 0;
14022 }
14023 _ACEOF
14024 if ac_fn_c_try_link "$LINENO"; then :
14025   ac_cv_lib_dl_dlopen=yes
14026 else
14027   ac_cv_lib_dl_dlopen=no
14028 fi
14029 rm -f core conftest.err conftest.$ac_objext \
14030     conftest$ac_exeext conftest.$ac_ext
14031 LIBS=$ac_check_lib_save_LIBS
14032 fi
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14034 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14035 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14036   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14037 else
14038   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14039 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
14040 if ${ac_cv_lib_svld_dlopen+:} false; then :
14041   $as_echo_n "(cached) " >&6
14042 else
14043   ac_check_lib_save_LIBS=$LIBS
14044 LIBS="-lsvld  $LIBS"
14045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14046 /* end confdefs.h.  */
14047
14048 /* Override any GCC internal prototype to avoid an error.
14049    Use char because int might match the return type of a GCC
14050    builtin and then its argument prototype would still apply.  */
14051 #ifdef __cplusplus
14052 extern "C"
14053 #endif
14054 char dlopen ();
14055 int
14056 main ()
14057 {
14058 return dlopen ();
14059   ;
14060   return 0;
14061 }
14062 _ACEOF
14063 if ac_fn_c_try_link "$LINENO"; then :
14064   ac_cv_lib_svld_dlopen=yes
14065 else
14066   ac_cv_lib_svld_dlopen=no
14067 fi
14068 rm -f core conftest.err conftest.$ac_objext \
14069     conftest$ac_exeext conftest.$ac_ext
14070 LIBS=$ac_check_lib_save_LIBS
14071 fi
14072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14073 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14074 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14075   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14076 else
14077   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14078 $as_echo_n "checking for dld_link in -ldld... " >&6; }
14079 if ${ac_cv_lib_dld_dld_link+:} false; then :
14080   $as_echo_n "(cached) " >&6
14081 else
14082   ac_check_lib_save_LIBS=$LIBS
14083 LIBS="-ldld  $LIBS"
14084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14085 /* end confdefs.h.  */
14086
14087 /* Override any GCC internal prototype to avoid an error.
14088    Use char because int might match the return type of a GCC
14089    builtin and then its argument prototype would still apply.  */
14090 #ifdef __cplusplus
14091 extern "C"
14092 #endif
14093 char dld_link ();
14094 int
14095 main ()
14096 {
14097 return dld_link ();
14098   ;
14099   return 0;
14100 }
14101 _ACEOF
14102 if ac_fn_c_try_link "$LINENO"; then :
14103   ac_cv_lib_dld_dld_link=yes
14104 else
14105   ac_cv_lib_dld_dld_link=no
14106 fi
14107 rm -f core conftest.err conftest.$ac_objext \
14108     conftest$ac_exeext conftest.$ac_ext
14109 LIBS=$ac_check_lib_save_LIBS
14110 fi
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14112 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14113 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14114   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
14115 fi
14116
14117
14118 fi
14119
14120
14121 fi
14122
14123
14124 fi
14125
14126
14127 fi
14128
14129
14130 fi
14131
14132     ;;
14133   esac
14134
14135   if test "x$lt_cv_dlopen" != xno; then
14136     enable_dlopen=yes
14137   else
14138     enable_dlopen=no
14139   fi
14140
14141   case $lt_cv_dlopen in
14142   dlopen)
14143     save_CPPFLAGS="$CPPFLAGS"
14144     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14145
14146     save_LDFLAGS="$LDFLAGS"
14147     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14148
14149     save_LIBS="$LIBS"
14150     LIBS="$lt_cv_dlopen_libs $LIBS"
14151
14152     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14153 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
14154 if ${lt_cv_dlopen_self+:} false; then :
14155   $as_echo_n "(cached) " >&6
14156 else
14157           if test "$cross_compiling" = yes; then :
14158   lt_cv_dlopen_self=cross
14159 else
14160   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14161   lt_status=$lt_dlunknown
14162   cat > conftest.$ac_ext <<_LT_EOF
14163 #line $LINENO "configure"
14164 #include "confdefs.h"
14165
14166 #if HAVE_DLFCN_H
14167 #include <dlfcn.h>
14168 #endif
14169
14170 #include <stdio.h>
14171
14172 #ifdef RTLD_GLOBAL
14173 #  define LT_DLGLOBAL           RTLD_GLOBAL
14174 #else
14175 #  ifdef DL_GLOBAL
14176 #    define LT_DLGLOBAL         DL_GLOBAL
14177 #  else
14178 #    define LT_DLGLOBAL         0
14179 #  endif
14180 #endif
14181
14182 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14183    find out it does not work in some platform. */
14184 #ifndef LT_DLLAZY_OR_NOW
14185 #  ifdef RTLD_LAZY
14186 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14187 #  else
14188 #    ifdef DL_LAZY
14189 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14190 #    else
14191 #      ifdef RTLD_NOW
14192 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14193 #      else
14194 #        ifdef DL_NOW
14195 #          define LT_DLLAZY_OR_NOW      DL_NOW
14196 #        else
14197 #          define LT_DLLAZY_OR_NOW      0
14198 #        endif
14199 #      endif
14200 #    endif
14201 #  endif
14202 #endif
14203
14204 /* When -fvisbility=hidden is used, assume the code has been annotated
14205    correspondingly for the symbols needed.  */
14206 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14207 int fnord () __attribute__((visibility("default")));
14208 #endif
14209
14210 int fnord () { return 42; }
14211 int main ()
14212 {
14213   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14214   int status = $lt_dlunknown;
14215
14216   if (self)
14217     {
14218       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14219       else
14220         {
14221           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14222           else puts (dlerror ());
14223         }
14224       /* dlclose (self); */
14225     }
14226   else
14227     puts (dlerror ());
14228
14229   return status;
14230 }
14231 _LT_EOF
14232   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14233   (eval $ac_link) 2>&5
14234   ac_status=$?
14235   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14236   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14237     (./conftest; exit; ) >&5 2>/dev/null
14238     lt_status=$?
14239     case x$lt_status in
14240       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14241       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14242       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14243     esac
14244   else :
14245     # compilation failed
14246     lt_cv_dlopen_self=no
14247   fi
14248 fi
14249 rm -fr conftest*
14250
14251
14252 fi
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14254 $as_echo "$lt_cv_dlopen_self" >&6; }
14255
14256     if test "x$lt_cv_dlopen_self" = xyes; then
14257       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14258       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14259 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14260 if ${lt_cv_dlopen_self_static+:} false; then :
14261   $as_echo_n "(cached) " >&6
14262 else
14263           if test "$cross_compiling" = yes; then :
14264   lt_cv_dlopen_self_static=cross
14265 else
14266   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14267   lt_status=$lt_dlunknown
14268   cat > conftest.$ac_ext <<_LT_EOF
14269 #line $LINENO "configure"
14270 #include "confdefs.h"
14271
14272 #if HAVE_DLFCN_H
14273 #include <dlfcn.h>
14274 #endif
14275
14276 #include <stdio.h>
14277
14278 #ifdef RTLD_GLOBAL
14279 #  define LT_DLGLOBAL           RTLD_GLOBAL
14280 #else
14281 #  ifdef DL_GLOBAL
14282 #    define LT_DLGLOBAL         DL_GLOBAL
14283 #  else
14284 #    define LT_DLGLOBAL         0
14285 #  endif
14286 #endif
14287
14288 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14289    find out it does not work in some platform. */
14290 #ifndef LT_DLLAZY_OR_NOW
14291 #  ifdef RTLD_LAZY
14292 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14293 #  else
14294 #    ifdef DL_LAZY
14295 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14296 #    else
14297 #      ifdef RTLD_NOW
14298 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14299 #      else
14300 #        ifdef DL_NOW
14301 #          define LT_DLLAZY_OR_NOW      DL_NOW
14302 #        else
14303 #          define LT_DLLAZY_OR_NOW      0
14304 #        endif
14305 #      endif
14306 #    endif
14307 #  endif
14308 #endif
14309
14310 /* When -fvisbility=hidden is used, assume the code has been annotated
14311    correspondingly for the symbols needed.  */
14312 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14313 int fnord () __attribute__((visibility("default")));
14314 #endif
14315
14316 int fnord () { return 42; }
14317 int main ()
14318 {
14319   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14320   int status = $lt_dlunknown;
14321
14322   if (self)
14323     {
14324       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14325       else
14326         {
14327           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14328           else puts (dlerror ());
14329         }
14330       /* dlclose (self); */
14331     }
14332   else
14333     puts (dlerror ());
14334
14335   return status;
14336 }
14337 _LT_EOF
14338   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14339   (eval $ac_link) 2>&5
14340   ac_status=$?
14341   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14342   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14343     (./conftest; exit; ) >&5 2>/dev/null
14344     lt_status=$?
14345     case x$lt_status in
14346       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14347       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14348       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14349     esac
14350   else :
14351     # compilation failed
14352     lt_cv_dlopen_self_static=no
14353   fi
14354 fi
14355 rm -fr conftest*
14356
14357
14358 fi
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14360 $as_echo "$lt_cv_dlopen_self_static" >&6; }
14361     fi
14362
14363     CPPFLAGS="$save_CPPFLAGS"
14364     LDFLAGS="$save_LDFLAGS"
14365     LIBS="$save_LIBS"
14366     ;;
14367   esac
14368
14369   case $lt_cv_dlopen_self in
14370   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14371   *) enable_dlopen_self=unknown ;;
14372   esac
14373
14374   case $lt_cv_dlopen_self_static in
14375   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14376   *) enable_dlopen_self_static=unknown ;;
14377   esac
14378 fi
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396 striplib=
14397 old_striplib=
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14399 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
14400 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14401   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14402   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14404 $as_echo "yes" >&6; }
14405 else
14406 # FIXME - insert some real tests, host_os isn't really good enough
14407   case $host_os in
14408   darwin*)
14409     if test -n "$STRIP" ; then
14410       striplib="$STRIP -x"
14411       old_striplib="$STRIP -S"
14412       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14413 $as_echo "yes" >&6; }
14414     else
14415       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14416 $as_echo "no" >&6; }
14417     fi
14418     ;;
14419   *)
14420     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14421 $as_echo "no" >&6; }
14422     ;;
14423   esac
14424 fi
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437   # Report which library types will actually be built
14438   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14439 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14441 $as_echo "$can_build_shared" >&6; }
14442
14443   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14444 $as_echo_n "checking whether to build shared libraries... " >&6; }
14445   test "$can_build_shared" = "no" && enable_shared=no
14446
14447   # On AIX, shared libraries and static libraries use the same namespace, and
14448   # are all built from PIC.
14449   case $host_os in
14450   aix3*)
14451     test "$enable_shared" = yes && enable_static=no
14452     if test -n "$RANLIB"; then
14453       archive_cmds="$archive_cmds~\$RANLIB \$lib"
14454       postinstall_cmds='$RANLIB $lib'
14455     fi
14456     ;;
14457
14458   aix[4-9]*)
14459     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14460       test "$enable_shared" = yes && enable_static=no
14461     fi
14462     ;;
14463   esac
14464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14465 $as_echo "$enable_shared" >&6; }
14466
14467   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14468 $as_echo_n "checking whether to build static libraries... " >&6; }
14469   # Make sure either enable_shared or enable_static is yes.
14470   test "$enable_shared" = yes || enable_static=yes
14471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14472 $as_echo "$enable_static" >&6; }
14473
14474
14475
14476
14477 fi
14478 ac_ext=c
14479 ac_cpp='$CPP $CPPFLAGS'
14480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14483
14484 CC="$lt_save_CC"
14485
14486
14487
14488
14489
14490
14491
14492
14493
14494
14495
14496
14497
14498         ac_config_commands="$ac_config_commands libtool"
14499
14500
14501
14502
14503 # Only expand once:
14504
14505
14506
14507
14508
14509   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
14510 $as_echo_n "checking whether NLS is requested... " >&6; }
14511     # Check whether --enable-nls was given.
14512 if test "${enable_nls+set}" = set; then :
14513   enableval=$enable_nls; USE_NLS=$enableval
14514 else
14515   USE_NLS=yes
14516 fi
14517
14518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14519 $as_echo "$USE_NLS" >&6; }
14520
14521
14522
14523
14524       GETTEXT_MACRO_VERSION=0.17
14525
14526
14527
14528
14529 # Prepare PATH_SEPARATOR.
14530 # The user is always right.
14531 if test "${PATH_SEPARATOR+set}" != set; then
14532   echo "#! /bin/sh" >conf$$.sh
14533   echo  "exit 0"   >>conf$$.sh
14534   chmod +x conf$$.sh
14535   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14536     PATH_SEPARATOR=';'
14537   else
14538     PATH_SEPARATOR=:
14539   fi
14540   rm -f conf$$.sh
14541 fi
14542
14543 # Find out how to test for executable files. Don't use a zero-byte file,
14544 # as systems may use methods other than mode bits to determine executability.
14545 cat >conf$$.file <<_ASEOF
14546 #! /bin/sh
14547 exit 0
14548 _ASEOF
14549 chmod +x conf$$.file
14550 if test -x conf$$.file >/dev/null 2>&1; then
14551   ac_executable_p="test -x"
14552 else
14553   ac_executable_p="test -f"
14554 fi
14555 rm -f conf$$.file
14556
14557 # Extract the first word of "msgfmt", so it can be a program name with args.
14558 set dummy msgfmt; ac_word=$2
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14560 $as_echo_n "checking for $ac_word... " >&6; }
14561 if ${ac_cv_path_MSGFMT+:} false; then :
14562   $as_echo_n "(cached) " >&6
14563 else
14564   case "$MSGFMT" in
14565   [\\/]* | ?:[\\/]*)
14566     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
14567     ;;
14568   *)
14569     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14570     for ac_dir in $PATH; do
14571       IFS="$ac_save_IFS"
14572       test -z "$ac_dir" && ac_dir=.
14573       for ac_exec_ext in '' $ac_executable_extensions; do
14574         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14575           echo "$as_me: trying $ac_dir/$ac_word..." >&5
14576           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
14577      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
14578             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
14579             break 2
14580           fi
14581         fi
14582       done
14583     done
14584     IFS="$ac_save_IFS"
14585   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
14586     ;;
14587 esac
14588 fi
14589 MSGFMT="$ac_cv_path_MSGFMT"
14590 if test "$MSGFMT" != ":"; then
14591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
14592 $as_echo "$MSGFMT" >&6; }
14593 else
14594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14595 $as_echo "no" >&6; }
14596 fi
14597
14598   # Extract the first word of "gmsgfmt", so it can be a program name with args.
14599 set dummy gmsgfmt; ac_word=$2
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14601 $as_echo_n "checking for $ac_word... " >&6; }
14602 if ${ac_cv_path_GMSGFMT+:} false; then :
14603   $as_echo_n "(cached) " >&6
14604 else
14605   case $GMSGFMT in
14606   [\\/]* | ?:[\\/]*)
14607   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
14608   ;;
14609   *)
14610   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14611 for as_dir in $PATH
14612 do
14613   IFS=$as_save_IFS
14614   test -z "$as_dir" && as_dir=.
14615     for ac_exec_ext in '' $ac_executable_extensions; do
14616   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14617     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
14618     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14619     break 2
14620   fi
14621 done
14622   done
14623 IFS=$as_save_IFS
14624
14625   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
14626   ;;
14627 esac
14628 fi
14629 GMSGFMT=$ac_cv_path_GMSGFMT
14630 if test -n "$GMSGFMT"; then
14631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
14632 $as_echo "$GMSGFMT" >&6; }
14633 else
14634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14635 $as_echo "no" >&6; }
14636 fi
14637
14638
14639
14640     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14641     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
14642     *) MSGFMT_015=$MSGFMT ;;
14643   esac
14644
14645   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14646     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
14647     *) GMSGFMT_015=$GMSGFMT ;;
14648   esac
14649
14650
14651
14652 # Prepare PATH_SEPARATOR.
14653 # The user is always right.
14654 if test "${PATH_SEPARATOR+set}" != set; then
14655   echo "#! /bin/sh" >conf$$.sh
14656   echo  "exit 0"   >>conf$$.sh
14657   chmod +x conf$$.sh
14658   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14659     PATH_SEPARATOR=';'
14660   else
14661     PATH_SEPARATOR=:
14662   fi
14663   rm -f conf$$.sh
14664 fi
14665
14666 # Find out how to test for executable files. Don't use a zero-byte file,
14667 # as systems may use methods other than mode bits to determine executability.
14668 cat >conf$$.file <<_ASEOF
14669 #! /bin/sh
14670 exit 0
14671 _ASEOF
14672 chmod +x conf$$.file
14673 if test -x conf$$.file >/dev/null 2>&1; then
14674   ac_executable_p="test -x"
14675 else
14676   ac_executable_p="test -f"
14677 fi
14678 rm -f conf$$.file
14679
14680 # Extract the first word of "xgettext", so it can be a program name with args.
14681 set dummy xgettext; ac_word=$2
14682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14683 $as_echo_n "checking for $ac_word... " >&6; }
14684 if ${ac_cv_path_XGETTEXT+:} false; then :
14685   $as_echo_n "(cached) " >&6
14686 else
14687   case "$XGETTEXT" in
14688   [\\/]* | ?:[\\/]*)
14689     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
14690     ;;
14691   *)
14692     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14693     for ac_dir in $PATH; do
14694       IFS="$ac_save_IFS"
14695       test -z "$ac_dir" && ac_dir=.
14696       for ac_exec_ext in '' $ac_executable_extensions; do
14697         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14698           echo "$as_me: trying $ac_dir/$ac_word..." >&5
14699           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
14700      (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
14701             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
14702             break 2
14703           fi
14704         fi
14705       done
14706     done
14707     IFS="$ac_save_IFS"
14708   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
14709     ;;
14710 esac
14711 fi
14712 XGETTEXT="$ac_cv_path_XGETTEXT"
14713 if test "$XGETTEXT" != ":"; then
14714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
14715 $as_echo "$XGETTEXT" >&6; }
14716 else
14717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14718 $as_echo "no" >&6; }
14719 fi
14720
14721     rm -f messages.po
14722
14723     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14724     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
14725     *) XGETTEXT_015=$XGETTEXT ;;
14726   esac
14727
14728
14729
14730 # Prepare PATH_SEPARATOR.
14731 # The user is always right.
14732 if test "${PATH_SEPARATOR+set}" != set; then
14733   echo "#! /bin/sh" >conf$$.sh
14734   echo  "exit 0"   >>conf$$.sh
14735   chmod +x conf$$.sh
14736   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14737     PATH_SEPARATOR=';'
14738   else
14739     PATH_SEPARATOR=:
14740   fi
14741   rm -f conf$$.sh
14742 fi
14743
14744 # Find out how to test for executable files. Don't use a zero-byte file,
14745 # as systems may use methods other than mode bits to determine executability.
14746 cat >conf$$.file <<_ASEOF
14747 #! /bin/sh
14748 exit 0
14749 _ASEOF
14750 chmod +x conf$$.file
14751 if test -x conf$$.file >/dev/null 2>&1; then
14752   ac_executable_p="test -x"
14753 else
14754   ac_executable_p="test -f"
14755 fi
14756 rm -f conf$$.file
14757
14758 # Extract the first word of "msgmerge", so it can be a program name with args.
14759 set dummy msgmerge; ac_word=$2
14760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14761 $as_echo_n "checking for $ac_word... " >&6; }
14762 if ${ac_cv_path_MSGMERGE+:} false; then :
14763   $as_echo_n "(cached) " >&6
14764 else
14765   case "$MSGMERGE" in
14766   [\\/]* | ?:[\\/]*)
14767     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
14768     ;;
14769   *)
14770     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14771     for ac_dir in $PATH; do
14772       IFS="$ac_save_IFS"
14773       test -z "$ac_dir" && ac_dir=.
14774       for ac_exec_ext in '' $ac_executable_extensions; do
14775         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14776           echo "$as_me: trying $ac_dir/$ac_word..." >&5
14777           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
14778             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
14779             break 2
14780           fi
14781         fi
14782       done
14783     done
14784     IFS="$ac_save_IFS"
14785   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
14786     ;;
14787 esac
14788 fi
14789 MSGMERGE="$ac_cv_path_MSGMERGE"
14790 if test "$MSGMERGE" != ":"; then
14791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
14792 $as_echo "$MSGMERGE" >&6; }
14793 else
14794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14795 $as_echo "no" >&6; }
14796 fi
14797
14798
14799         test -n "$localedir" || localedir='${datadir}/locale'
14800
14801
14802     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
14803
14804
14805   ac_config_commands="$ac_config_commands po-directories"
14806
14807
14808
14809       if test "X$prefix" = "XNONE"; then
14810     acl_final_prefix="$ac_default_prefix"
14811   else
14812     acl_final_prefix="$prefix"
14813   fi
14814   if test "X$exec_prefix" = "XNONE"; then
14815     acl_final_exec_prefix='${prefix}'
14816   else
14817     acl_final_exec_prefix="$exec_prefix"
14818   fi
14819   acl_save_prefix="$prefix"
14820   prefix="$acl_final_prefix"
14821   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
14822   prefix="$acl_save_prefix"
14823
14824
14825 # Check whether --with-gnu-ld was given.
14826 if test "${with_gnu_ld+set}" = set; then :
14827   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14828 else
14829   with_gnu_ld=no
14830 fi
14831
14832 # Prepare PATH_SEPARATOR.
14833 # The user is always right.
14834 if test "${PATH_SEPARATOR+set}" != set; then
14835   echo "#! /bin/sh" >conf$$.sh
14836   echo  "exit 0"   >>conf$$.sh
14837   chmod +x conf$$.sh
14838   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14839     PATH_SEPARATOR=';'
14840   else
14841     PATH_SEPARATOR=:
14842   fi
14843   rm -f conf$$.sh
14844 fi
14845 ac_prog=ld
14846 if test "$GCC" = yes; then
14847   # Check if gcc -print-prog-name=ld gives a path.
14848   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
14849 $as_echo_n "checking for ld used by GCC... " >&6; }
14850   case $host in
14851   *-*-mingw*)
14852     # gcc leaves a trailing carriage return which upsets mingw
14853     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14854   *)
14855     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14856   esac
14857   case $ac_prog in
14858     # Accept absolute paths.
14859     [\\/]* | [A-Za-z]:[\\/]*)
14860       re_direlt='/[^/][^/]*/\.\./'
14861       # Canonicalize the path of ld
14862       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
14863       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
14864         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
14865       done
14866       test -z "$LD" && LD="$ac_prog"
14867       ;;
14868   "")
14869     # If it fails, then pretend we aren't using GCC.
14870     ac_prog=ld
14871     ;;
14872   *)
14873     # If it is relative, then search for the first ld in PATH.
14874     with_gnu_ld=unknown
14875     ;;
14876   esac
14877 elif test "$with_gnu_ld" = yes; then
14878   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14879 $as_echo_n "checking for GNU ld... " >&6; }
14880 else
14881   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14882 $as_echo_n "checking for non-GNU ld... " >&6; }
14883 fi
14884 if ${acl_cv_path_LD+:} false; then :
14885   $as_echo_n "(cached) " >&6
14886 else
14887   if test -z "$LD"; then
14888   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
14889   for ac_dir in $PATH; do
14890     test -z "$ac_dir" && ac_dir=.
14891     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14892       acl_cv_path_LD="$ac_dir/$ac_prog"
14893       # Check to see if the program is GNU ld.  I'd rather use --version,
14894       # but apparently some GNU ld's only accept -v.
14895       # Break only if it was the GNU/non-GNU ld that we prefer.
14896       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
14897       *GNU* | *'with BFD'*)
14898         test "$with_gnu_ld" != no && break ;;
14899       *)
14900         test "$with_gnu_ld" != yes && break ;;
14901       esac
14902     fi
14903   done
14904   IFS="$ac_save_ifs"
14905 else
14906   acl_cv_path_LD="$LD" # Let the user override the test with a path.
14907 fi
14908 fi
14909
14910 LD="$acl_cv_path_LD"
14911 if test -n "$LD"; then
14912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14913 $as_echo "$LD" >&6; }
14914 else
14915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14916 $as_echo "no" >&6; }
14917 fi
14918 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14920 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14921 if ${acl_cv_prog_gnu_ld+:} false; then :
14922   $as_echo_n "(cached) " >&6
14923 else
14924   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14925 case `$LD -v 2>&1 </dev/null` in
14926 *GNU* | *'with BFD'*)
14927   acl_cv_prog_gnu_ld=yes ;;
14928 *)
14929   acl_cv_prog_gnu_ld=no ;;
14930 esac
14931 fi
14932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
14933 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
14934 with_gnu_ld=$acl_cv_prog_gnu_ld
14935
14936
14937
14938
14939                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
14940 $as_echo_n "checking for shared library run path origin... " >&6; }
14941 if ${acl_cv_rpath+:} false; then :
14942   $as_echo_n "(cached) " >&6
14943 else
14944
14945     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
14946     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
14947     . ./conftest.sh
14948     rm -f ./conftest.sh
14949     acl_cv_rpath=done
14950
14951 fi
14952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
14953 $as_echo "$acl_cv_rpath" >&6; }
14954   wl="$acl_cv_wl"
14955   acl_libext="$acl_cv_libext"
14956   acl_shlibext="$acl_cv_shlibext"
14957   acl_libname_spec="$acl_cv_libname_spec"
14958   acl_library_names_spec="$acl_cv_library_names_spec"
14959   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
14960   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
14961   acl_hardcode_direct="$acl_cv_hardcode_direct"
14962   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
14963     # Check whether --enable-rpath was given.
14964 if test "${enable_rpath+set}" = set; then :
14965   enableval=$enable_rpath; :
14966 else
14967   enable_rpath=yes
14968 fi
14969
14970
14971
14972                   acl_libdirstem=lib
14973   searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
14974   if test -n "$searchpath"; then
14975     acl_save_IFS="${IFS=        }"; IFS=":"
14976     for searchdir in $searchpath; do
14977       if test -d "$searchdir"; then
14978         case "$searchdir" in
14979           */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
14980           *) searchdir=`cd "$searchdir" && pwd`
14981              case "$searchdir" in
14982                */lib64 ) acl_libdirstem=lib64 ;;
14983              esac ;;
14984         esac
14985       fi
14986     done
14987     IFS="$acl_save_IFS"
14988   fi
14989
14990
14991
14992
14993
14994
14995
14996
14997
14998     use_additional=yes
14999
15000   acl_save_prefix="$prefix"
15001   prefix="$acl_final_prefix"
15002   acl_save_exec_prefix="$exec_prefix"
15003   exec_prefix="$acl_final_exec_prefix"
15004
15005     eval additional_includedir=\"$includedir\"
15006     eval additional_libdir=\"$libdir\"
15007
15008   exec_prefix="$acl_save_exec_prefix"
15009   prefix="$acl_save_prefix"
15010
15011
15012 # Check whether --with-libiconv-prefix was given.
15013 if test "${with_libiconv_prefix+set}" = set; then :
15014   withval=$with_libiconv_prefix;
15015     if test "X$withval" = "Xno"; then
15016       use_additional=no
15017     else
15018       if test "X$withval" = "X"; then
15019
15020   acl_save_prefix="$prefix"
15021   prefix="$acl_final_prefix"
15022   acl_save_exec_prefix="$exec_prefix"
15023   exec_prefix="$acl_final_exec_prefix"
15024
15025           eval additional_includedir=\"$includedir\"
15026           eval additional_libdir=\"$libdir\"
15027
15028   exec_prefix="$acl_save_exec_prefix"
15029   prefix="$acl_save_prefix"
15030
15031       else
15032         additional_includedir="$withval/include"
15033         additional_libdir="$withval/$acl_libdirstem"
15034       fi
15035     fi
15036
15037 fi
15038
15039       LIBICONV=
15040   LTLIBICONV=
15041   INCICONV=
15042   LIBICONV_PREFIX=
15043   rpathdirs=
15044   ltrpathdirs=
15045   names_already_handled=
15046   names_next_round='iconv '
15047   while test -n "$names_next_round"; do
15048     names_this_round="$names_next_round"
15049     names_next_round=
15050     for name in $names_this_round; do
15051       already_handled=
15052       for n in $names_already_handled; do
15053         if test "$n" = "$name"; then
15054           already_handled=yes
15055           break
15056         fi
15057       done
15058       if test -z "$already_handled"; then
15059         names_already_handled="$names_already_handled $name"
15060                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15061         eval value=\"\$HAVE_LIB$uppername\"
15062         if test -n "$value"; then
15063           if test "$value" = yes; then
15064             eval value=\"\$LIB$uppername\"
15065             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
15066             eval value=\"\$LTLIB$uppername\"
15067             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
15068           else
15069                                     :
15070           fi
15071         else
15072                               found_dir=
15073           found_la=
15074           found_so=
15075           found_a=
15076           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
15077           if test -n "$acl_shlibext"; then
15078             shrext=".$acl_shlibext"             # typically: shrext=.so
15079           else
15080             shrext=
15081           fi
15082           if test $use_additional = yes; then
15083             dir="$additional_libdir"
15084                                     if test -n "$acl_shlibext"; then
15085               if test -f "$dir/$libname$shrext"; then
15086                 found_dir="$dir"
15087                 found_so="$dir/$libname$shrext"
15088               else
15089                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15090                   ver=`(cd "$dir" && \
15091                         for f in "$libname$shrext".*; do echo "$f"; done \
15092                         | sed -e "s,^$libname$shrext\\\\.,," \
15093                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15094                         | sed 1q ) 2>/dev/null`
15095                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15096                     found_dir="$dir"
15097                     found_so="$dir/$libname$shrext.$ver"
15098                   fi
15099                 else
15100                   eval library_names=\"$acl_library_names_spec\"
15101                   for f in $library_names; do
15102                     if test -f "$dir/$f"; then
15103                       found_dir="$dir"
15104                       found_so="$dir/$f"
15105                       break
15106                     fi
15107                   done
15108                 fi
15109               fi
15110             fi
15111                         if test "X$found_dir" = "X"; then
15112               if test -f "$dir/$libname.$acl_libext"; then
15113                 found_dir="$dir"
15114                 found_a="$dir/$libname.$acl_libext"
15115               fi
15116             fi
15117             if test "X$found_dir" != "X"; then
15118               if test -f "$dir/$libname.la"; then
15119                 found_la="$dir/$libname.la"
15120               fi
15121             fi
15122           fi
15123           if test "X$found_dir" = "X"; then
15124             for x in $LDFLAGS $LTLIBICONV; do
15125
15126   acl_save_prefix="$prefix"
15127   prefix="$acl_final_prefix"
15128   acl_save_exec_prefix="$exec_prefix"
15129   exec_prefix="$acl_final_exec_prefix"
15130   eval x=\"$x\"
15131   exec_prefix="$acl_save_exec_prefix"
15132   prefix="$acl_save_prefix"
15133
15134               case "$x" in
15135                 -L*)
15136                   dir=`echo "X$x" | sed -e 's/^X-L//'`
15137                                     if test -n "$acl_shlibext"; then
15138                     if test -f "$dir/$libname$shrext"; then
15139                       found_dir="$dir"
15140                       found_so="$dir/$libname$shrext"
15141                     else
15142                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15143                         ver=`(cd "$dir" && \
15144                               for f in "$libname$shrext".*; do echo "$f"; done \
15145                               | sed -e "s,^$libname$shrext\\\\.,," \
15146                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15147                               | sed 1q ) 2>/dev/null`
15148                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15149                           found_dir="$dir"
15150                           found_so="$dir/$libname$shrext.$ver"
15151                         fi
15152                       else
15153                         eval library_names=\"$acl_library_names_spec\"
15154                         for f in $library_names; do
15155                           if test -f "$dir/$f"; then
15156                             found_dir="$dir"
15157                             found_so="$dir/$f"
15158                             break
15159                           fi
15160                         done
15161                       fi
15162                     fi
15163                   fi
15164                                     if test "X$found_dir" = "X"; then
15165                     if test -f "$dir/$libname.$acl_libext"; then
15166                       found_dir="$dir"
15167                       found_a="$dir/$libname.$acl_libext"
15168                     fi
15169                   fi
15170                   if test "X$found_dir" != "X"; then
15171                     if test -f "$dir/$libname.la"; then
15172                       found_la="$dir/$libname.la"
15173                     fi
15174                   fi
15175                   ;;
15176               esac
15177               if test "X$found_dir" != "X"; then
15178                 break
15179               fi
15180             done
15181           fi
15182           if test "X$found_dir" != "X"; then
15183                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
15184             if test "X$found_so" != "X"; then
15185                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
15186                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15187               else
15188                                                                                 haveit=
15189                 for x in $ltrpathdirs; do
15190                   if test "X$x" = "X$found_dir"; then
15191                     haveit=yes
15192                     break
15193                   fi
15194                 done
15195                 if test -z "$haveit"; then
15196                   ltrpathdirs="$ltrpathdirs $found_dir"
15197                 fi
15198                                 if test "$acl_hardcode_direct" = yes; then
15199                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15200                 else
15201                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
15202                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15203                                                             haveit=
15204                     for x in $rpathdirs; do
15205                       if test "X$x" = "X$found_dir"; then
15206                         haveit=yes
15207                         break
15208                       fi
15209                     done
15210                     if test -z "$haveit"; then
15211                       rpathdirs="$rpathdirs $found_dir"
15212                     fi
15213                   else
15214                                                                                 haveit=
15215                     for x in $LDFLAGS $LIBICONV; do
15216
15217   acl_save_prefix="$prefix"
15218   prefix="$acl_final_prefix"
15219   acl_save_exec_prefix="$exec_prefix"
15220   exec_prefix="$acl_final_exec_prefix"
15221   eval x=\"$x\"
15222   exec_prefix="$acl_save_exec_prefix"
15223   prefix="$acl_save_prefix"
15224
15225                       if test "X$x" = "X-L$found_dir"; then
15226                         haveit=yes
15227                         break
15228                       fi
15229                     done
15230                     if test -z "$haveit"; then
15231                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
15232                     fi
15233                     if test "$acl_hardcode_minus_L" != no; then
15234                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15235                     else
15236                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15237                     fi
15238                   fi
15239                 fi
15240               fi
15241             else
15242               if test "X$found_a" != "X"; then
15243                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
15244               else
15245                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
15246               fi
15247             fi
15248                         additional_includedir=
15249             case "$found_dir" in
15250               */$acl_libdirstem | */$acl_libdirstem/)
15251                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
15252                 LIBICONV_PREFIX="$basedir"
15253                 additional_includedir="$basedir/include"
15254                 ;;
15255             esac
15256             if test "X$additional_includedir" != "X"; then
15257                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
15258                 haveit=
15259                 if test "X$additional_includedir" = "X/usr/local/include"; then
15260                   if test -n "$GCC"; then
15261                     case $host_os in
15262                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15263                     esac
15264                   fi
15265                 fi
15266                 if test -z "$haveit"; then
15267                   for x in $CPPFLAGS $INCICONV; do
15268
15269   acl_save_prefix="$prefix"
15270   prefix="$acl_final_prefix"
15271   acl_save_exec_prefix="$exec_prefix"
15272   exec_prefix="$acl_final_exec_prefix"
15273   eval x=\"$x\"
15274   exec_prefix="$acl_save_exec_prefix"
15275   prefix="$acl_save_prefix"
15276
15277                     if test "X$x" = "X-I$additional_includedir"; then
15278                       haveit=yes
15279                       break
15280                     fi
15281                   done
15282                   if test -z "$haveit"; then
15283                     if test -d "$additional_includedir"; then
15284                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
15285                     fi
15286                   fi
15287                 fi
15288               fi
15289             fi
15290                         if test -n "$found_la"; then
15291                                                         save_libdir="$libdir"
15292               case "$found_la" in
15293                 */* | *\\*) . "$found_la" ;;
15294                 *) . "./$found_la" ;;
15295               esac
15296               libdir="$save_libdir"
15297                             for dep in $dependency_libs; do
15298                 case "$dep" in
15299                   -L*)
15300                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15301                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
15302                       haveit=
15303                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
15304                         if test -n "$GCC"; then
15305                           case $host_os in
15306                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15307                           esac
15308                         fi
15309                       fi
15310                       if test -z "$haveit"; then
15311                         haveit=
15312                         for x in $LDFLAGS $LIBICONV; do
15313
15314   acl_save_prefix="$prefix"
15315   prefix="$acl_final_prefix"
15316   acl_save_exec_prefix="$exec_prefix"
15317   exec_prefix="$acl_final_exec_prefix"
15318   eval x=\"$x\"
15319   exec_prefix="$acl_save_exec_prefix"
15320   prefix="$acl_save_prefix"
15321
15322                           if test "X$x" = "X-L$additional_libdir"; then
15323                             haveit=yes
15324                             break
15325                           fi
15326                         done
15327                         if test -z "$haveit"; then
15328                           if test -d "$additional_libdir"; then
15329                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
15330                           fi
15331                         fi
15332                         haveit=
15333                         for x in $LDFLAGS $LTLIBICONV; do
15334
15335   acl_save_prefix="$prefix"
15336   prefix="$acl_final_prefix"
15337   acl_save_exec_prefix="$exec_prefix"
15338   exec_prefix="$acl_final_exec_prefix"
15339   eval x=\"$x\"
15340   exec_prefix="$acl_save_exec_prefix"
15341   prefix="$acl_save_prefix"
15342
15343                           if test "X$x" = "X-L$additional_libdir"; then
15344                             haveit=yes
15345                             break
15346                           fi
15347                         done
15348                         if test -z "$haveit"; then
15349                           if test -d "$additional_libdir"; then
15350                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
15351                           fi
15352                         fi
15353                       fi
15354                     fi
15355                     ;;
15356                   -R*)
15357                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
15358                     if test "$enable_rpath" != no; then
15359                                                                   haveit=
15360                       for x in $rpathdirs; do
15361                         if test "X$x" = "X$dir"; then
15362                           haveit=yes
15363                           break
15364                         fi
15365                       done
15366                       if test -z "$haveit"; then
15367                         rpathdirs="$rpathdirs $dir"
15368                       fi
15369                                                                   haveit=
15370                       for x in $ltrpathdirs; do
15371                         if test "X$x" = "X$dir"; then
15372                           haveit=yes
15373                           break
15374                         fi
15375                       done
15376                       if test -z "$haveit"; then
15377                         ltrpathdirs="$ltrpathdirs $dir"
15378                       fi
15379                     fi
15380                     ;;
15381                   -l*)
15382                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15383                     ;;
15384                   *.la)
15385                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15386                     ;;
15387                   *)
15388                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
15389                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
15390                     ;;
15391                 esac
15392               done
15393             fi
15394           else
15395                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15396             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
15397           fi
15398         fi
15399       fi
15400     done
15401   done
15402   if test "X$rpathdirs" != "X"; then
15403     if test -n "$acl_hardcode_libdir_separator"; then
15404                         alldirs=
15405       for found_dir in $rpathdirs; do
15406         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
15407       done
15408             acl_save_libdir="$libdir"
15409       libdir="$alldirs"
15410       eval flag=\"$acl_hardcode_libdir_flag_spec\"
15411       libdir="$acl_save_libdir"
15412       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15413     else
15414             for found_dir in $rpathdirs; do
15415         acl_save_libdir="$libdir"
15416         libdir="$found_dir"
15417         eval flag=\"$acl_hardcode_libdir_flag_spec\"
15418         libdir="$acl_save_libdir"
15419         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15420       done
15421     fi
15422   fi
15423   if test "X$ltrpathdirs" != "X"; then
15424             for found_dir in $ltrpathdirs; do
15425       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
15426     done
15427   fi
15428
15429
15430
15431
15432
15433
15434
15435
15436
15437
15438
15439
15440
15441
15442
15443
15444
15445
15446
15447
15448
15449
15450
15451
15452
15453     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
15454 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
15455 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
15456   $as_echo_n "(cached) " >&6
15457 else
15458   gt_save_LIBS="$LIBS"
15459      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
15460      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15461 /* end confdefs.h.  */
15462 #include <CoreFoundation/CFPreferences.h>
15463 int
15464 main ()
15465 {
15466 CFPreferencesCopyAppValue(NULL, NULL)
15467   ;
15468   return 0;
15469 }
15470 _ACEOF
15471 if ac_fn_c_try_link "$LINENO"; then :
15472   gt_cv_func_CFPreferencesCopyAppValue=yes
15473 else
15474   gt_cv_func_CFPreferencesCopyAppValue=no
15475 fi
15476 rm -f core conftest.err conftest.$ac_objext \
15477     conftest$ac_exeext conftest.$ac_ext
15478      LIBS="$gt_save_LIBS"
15479 fi
15480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
15481 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
15482   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
15483
15484 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
15485
15486   fi
15487     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
15488 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
15489 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
15490   $as_echo_n "(cached) " >&6
15491 else
15492   gt_save_LIBS="$LIBS"
15493      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
15494      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15495 /* end confdefs.h.  */
15496 #include <CoreFoundation/CFLocale.h>
15497 int
15498 main ()
15499 {
15500 CFLocaleCopyCurrent();
15501   ;
15502   return 0;
15503 }
15504 _ACEOF
15505 if ac_fn_c_try_link "$LINENO"; then :
15506   gt_cv_func_CFLocaleCopyCurrent=yes
15507 else
15508   gt_cv_func_CFLocaleCopyCurrent=no
15509 fi
15510 rm -f core conftest.err conftest.$ac_objext \
15511     conftest$ac_exeext conftest.$ac_ext
15512      LIBS="$gt_save_LIBS"
15513 fi
15514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
15515 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
15516   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
15517
15518 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
15519
15520   fi
15521   INTL_MACOSX_LIBS=
15522   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
15523     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
15524   fi
15525
15526
15527
15528
15529
15530
15531   LIBINTL=
15532   LTLIBINTL=
15533   POSUB=
15534
15535     case " $gt_needs " in
15536     *" need-formatstring-macros "*) gt_api_version=3 ;;
15537     *" need-ngettext "*) gt_api_version=2 ;;
15538     *) gt_api_version=1 ;;
15539   esac
15540   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
15541   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
15542
15543     if test "$USE_NLS" = "yes"; then
15544     gt_use_preinstalled_gnugettext=no
15545
15546
15547         if test $gt_api_version -ge 3; then
15548           gt_revision_test_code='
15549 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
15550 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
15551 #endif
15552 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
15553 '
15554         else
15555           gt_revision_test_code=
15556         fi
15557         if test $gt_api_version -ge 2; then
15558           gt_expression_test_code=' + * ngettext ("", "", 0)'
15559         else
15560           gt_expression_test_code=
15561         fi
15562
15563         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
15564 $as_echo_n "checking for GNU gettext in libc... " >&6; }
15565 if eval \${$gt_func_gnugettext_libc+:} false; then :
15566   $as_echo_n "(cached) " >&6
15567 else
15568   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15569 /* end confdefs.h.  */
15570 #include <libintl.h>
15571 $gt_revision_test_code
15572 extern int _nl_msg_cat_cntr;
15573 extern int *_nl_domain_bindings;
15574 int
15575 main ()
15576 {
15577 bindtextdomain ("", "");
15578 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
15579   ;
15580   return 0;
15581 }
15582 _ACEOF
15583 if ac_fn_c_try_link "$LINENO"; then :
15584   eval "$gt_func_gnugettext_libc=yes"
15585 else
15586   eval "$gt_func_gnugettext_libc=no"
15587 fi
15588 rm -f core conftest.err conftest.$ac_objext \
15589     conftest$ac_exeext conftest.$ac_ext
15590 fi
15591 eval ac_res=\$$gt_func_gnugettext_libc
15592                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15593 $as_echo "$ac_res" >&6; }
15594
15595         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
15596
15597
15598
15599
15600
15601           am_save_CPPFLAGS="$CPPFLAGS"
15602
15603   for element in $INCICONV; do
15604     haveit=
15605     for x in $CPPFLAGS; do
15606
15607   acl_save_prefix="$prefix"
15608   prefix="$acl_final_prefix"
15609   acl_save_exec_prefix="$exec_prefix"
15610   exec_prefix="$acl_final_exec_prefix"
15611   eval x=\"$x\"
15612   exec_prefix="$acl_save_exec_prefix"
15613   prefix="$acl_save_prefix"
15614
15615       if test "X$x" = "X$element"; then
15616         haveit=yes
15617         break
15618       fi
15619     done
15620     if test -z "$haveit"; then
15621       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15622     fi
15623   done
15624
15625
15626   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
15627 $as_echo_n "checking for iconv... " >&6; }
15628 if ${am_cv_func_iconv+:} false; then :
15629   $as_echo_n "(cached) " >&6
15630 else
15631
15632     am_cv_func_iconv="no, consider installing GNU libiconv"
15633     am_cv_lib_iconv=no
15634     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15635 /* end confdefs.h.  */
15636 #include <stdlib.h>
15637 #include <iconv.h>
15638 int
15639 main ()
15640 {
15641 iconv_t cd = iconv_open("","");
15642        iconv(cd,NULL,NULL,NULL,NULL);
15643        iconv_close(cd);
15644   ;
15645   return 0;
15646 }
15647 _ACEOF
15648 if ac_fn_c_try_link "$LINENO"; then :
15649   am_cv_func_iconv=yes
15650 fi
15651 rm -f core conftest.err conftest.$ac_objext \
15652     conftest$ac_exeext conftest.$ac_ext
15653     if test "$am_cv_func_iconv" != yes; then
15654       am_save_LIBS="$LIBS"
15655       LIBS="$LIBS $LIBICONV"
15656       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15657 /* end confdefs.h.  */
15658 #include <stdlib.h>
15659 #include <iconv.h>
15660 int
15661 main ()
15662 {
15663 iconv_t cd = iconv_open("","");
15664          iconv(cd,NULL,NULL,NULL,NULL);
15665          iconv_close(cd);
15666   ;
15667   return 0;
15668 }
15669 _ACEOF
15670 if ac_fn_c_try_link "$LINENO"; then :
15671   am_cv_lib_iconv=yes
15672         am_cv_func_iconv=yes
15673 fi
15674 rm -f core conftest.err conftest.$ac_objext \
15675     conftest$ac_exeext conftest.$ac_ext
15676       LIBS="$am_save_LIBS"
15677     fi
15678
15679 fi
15680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
15681 $as_echo "$am_cv_func_iconv" >&6; }
15682   if test "$am_cv_func_iconv" = yes; then
15683     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
15684 $as_echo_n "checking for working iconv... " >&6; }
15685 if ${am_cv_func_iconv_works+:} false; then :
15686   $as_echo_n "(cached) " >&6
15687 else
15688
15689             am_save_LIBS="$LIBS"
15690       if test $am_cv_lib_iconv = yes; then
15691         LIBS="$LIBS $LIBICONV"
15692       fi
15693       if test "$cross_compiling" = yes; then :
15694   case "$host_os" in
15695            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
15696            *)            am_cv_func_iconv_works="guessing yes" ;;
15697          esac
15698 else
15699   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15700 /* end confdefs.h.  */
15701
15702 #include <iconv.h>
15703 #include <string.h>
15704 int main ()
15705 {
15706   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
15707      returns.  */
15708   {
15709     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
15710     if (cd_utf8_to_88591 != (iconv_t)(-1))
15711       {
15712         static const char input[] = "\342\202\254"; /* EURO SIGN */
15713         char buf[10];
15714         const char *inptr = input;
15715         size_t inbytesleft = strlen (input);
15716         char *outptr = buf;
15717         size_t outbytesleft = sizeof (buf);
15718         size_t res = iconv (cd_utf8_to_88591,
15719                             (char **) &inptr, &inbytesleft,
15720                             &outptr, &outbytesleft);
15721         if (res == 0)
15722           return 1;
15723       }
15724   }
15725 #if 0 /* This bug could be worked around by the caller.  */
15726   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
15727   {
15728     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
15729     if (cd_88591_to_utf8 != (iconv_t)(-1))
15730       {
15731         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
15732         char buf[50];
15733         const char *inptr = input;
15734         size_t inbytesleft = strlen (input);
15735         char *outptr = buf;
15736         size_t outbytesleft = sizeof (buf);
15737         size_t res = iconv (cd_88591_to_utf8,
15738                             (char **) &inptr, &inbytesleft,
15739                             &outptr, &outbytesleft);
15740         if ((int)res > 0)
15741           return 1;
15742       }
15743   }
15744 #endif
15745   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
15746      provided.  */
15747   if (/* Try standardized names.  */
15748       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
15749       /* Try IRIX, OSF/1 names.  */
15750       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
15751       /* Try AIX names.  */
15752       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
15753       /* Try HP-UX names.  */
15754       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
15755     return 1;
15756   return 0;
15757 }
15758 _ACEOF
15759 if ac_fn_c_try_run "$LINENO"; then :
15760   am_cv_func_iconv_works=yes
15761 else
15762   am_cv_func_iconv_works=no
15763 fi
15764 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15765   conftest.$ac_objext conftest.beam conftest.$ac_ext
15766 fi
15767
15768       LIBS="$am_save_LIBS"
15769
15770 fi
15771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
15772 $as_echo "$am_cv_func_iconv_works" >&6; }
15773     case "$am_cv_func_iconv_works" in
15774       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
15775       *)   am_func_iconv=yes ;;
15776     esac
15777   else
15778     am_func_iconv=no am_cv_lib_iconv=no
15779   fi
15780   if test "$am_func_iconv" = yes; then
15781
15782 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
15783
15784   fi
15785   if test "$am_cv_lib_iconv" = yes; then
15786     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
15787 $as_echo_n "checking how to link with libiconv... " >&6; }
15788     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
15789 $as_echo "$LIBICONV" >&6; }
15790   else
15791             CPPFLAGS="$am_save_CPPFLAGS"
15792     LIBICONV=
15793     LTLIBICONV=
15794   fi
15795
15796
15797
15798
15799
15800
15801
15802
15803     use_additional=yes
15804
15805   acl_save_prefix="$prefix"
15806   prefix="$acl_final_prefix"
15807   acl_save_exec_prefix="$exec_prefix"
15808   exec_prefix="$acl_final_exec_prefix"
15809
15810     eval additional_includedir=\"$includedir\"
15811     eval additional_libdir=\"$libdir\"
15812
15813   exec_prefix="$acl_save_exec_prefix"
15814   prefix="$acl_save_prefix"
15815
15816
15817 # Check whether --with-libintl-prefix was given.
15818 if test "${with_libintl_prefix+set}" = set; then :
15819   withval=$with_libintl_prefix;
15820     if test "X$withval" = "Xno"; then
15821       use_additional=no
15822     else
15823       if test "X$withval" = "X"; then
15824
15825   acl_save_prefix="$prefix"
15826   prefix="$acl_final_prefix"
15827   acl_save_exec_prefix="$exec_prefix"
15828   exec_prefix="$acl_final_exec_prefix"
15829
15830           eval additional_includedir=\"$includedir\"
15831           eval additional_libdir=\"$libdir\"
15832
15833   exec_prefix="$acl_save_exec_prefix"
15834   prefix="$acl_save_prefix"
15835
15836       else
15837         additional_includedir="$withval/include"
15838         additional_libdir="$withval/$acl_libdirstem"
15839       fi
15840     fi
15841
15842 fi
15843
15844       LIBINTL=
15845   LTLIBINTL=
15846   INCINTL=
15847   LIBINTL_PREFIX=
15848   rpathdirs=
15849   ltrpathdirs=
15850   names_already_handled=
15851   names_next_round='intl '
15852   while test -n "$names_next_round"; do
15853     names_this_round="$names_next_round"
15854     names_next_round=
15855     for name in $names_this_round; do
15856       already_handled=
15857       for n in $names_already_handled; do
15858         if test "$n" = "$name"; then
15859           already_handled=yes
15860           break
15861         fi
15862       done
15863       if test -z "$already_handled"; then
15864         names_already_handled="$names_already_handled $name"
15865                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15866         eval value=\"\$HAVE_LIB$uppername\"
15867         if test -n "$value"; then
15868           if test "$value" = yes; then
15869             eval value=\"\$LIB$uppername\"
15870             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
15871             eval value=\"\$LTLIB$uppername\"
15872             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
15873           else
15874                                     :
15875           fi
15876         else
15877                               found_dir=
15878           found_la=
15879           found_so=
15880           found_a=
15881           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
15882           if test -n "$acl_shlibext"; then
15883             shrext=".$acl_shlibext"             # typically: shrext=.so
15884           else
15885             shrext=
15886           fi
15887           if test $use_additional = yes; then
15888             dir="$additional_libdir"
15889                                     if test -n "$acl_shlibext"; then
15890               if test -f "$dir/$libname$shrext"; then
15891                 found_dir="$dir"
15892                 found_so="$dir/$libname$shrext"
15893               else
15894                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15895                   ver=`(cd "$dir" && \
15896                         for f in "$libname$shrext".*; do echo "$f"; done \
15897                         | sed -e "s,^$libname$shrext\\\\.,," \
15898                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15899                         | sed 1q ) 2>/dev/null`
15900                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15901                     found_dir="$dir"
15902                     found_so="$dir/$libname$shrext.$ver"
15903                   fi
15904                 else
15905                   eval library_names=\"$acl_library_names_spec\"
15906                   for f in $library_names; do
15907                     if test -f "$dir/$f"; then
15908                       found_dir="$dir"
15909                       found_so="$dir/$f"
15910                       break
15911                     fi
15912                   done
15913                 fi
15914               fi
15915             fi
15916                         if test "X$found_dir" = "X"; then
15917               if test -f "$dir/$libname.$acl_libext"; then
15918                 found_dir="$dir"
15919                 found_a="$dir/$libname.$acl_libext"
15920               fi
15921             fi
15922             if test "X$found_dir" != "X"; then
15923               if test -f "$dir/$libname.la"; then
15924                 found_la="$dir/$libname.la"
15925               fi
15926             fi
15927           fi
15928           if test "X$found_dir" = "X"; then
15929             for x in $LDFLAGS $LTLIBINTL; do
15930
15931   acl_save_prefix="$prefix"
15932   prefix="$acl_final_prefix"
15933   acl_save_exec_prefix="$exec_prefix"
15934   exec_prefix="$acl_final_exec_prefix"
15935   eval x=\"$x\"
15936   exec_prefix="$acl_save_exec_prefix"
15937   prefix="$acl_save_prefix"
15938
15939               case "$x" in
15940                 -L*)
15941                   dir=`echo "X$x" | sed -e 's/^X-L//'`
15942                                     if test -n "$acl_shlibext"; then
15943                     if test -f "$dir/$libname$shrext"; then
15944                       found_dir="$dir"
15945                       found_so="$dir/$libname$shrext"
15946                     else
15947                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15948                         ver=`(cd "$dir" && \
15949                               for f in "$libname$shrext".*; do echo "$f"; done \
15950                               | sed -e "s,^$libname$shrext\\\\.,," \
15951                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15952                               | sed 1q ) 2>/dev/null`
15953                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15954                           found_dir="$dir"
15955                           found_so="$dir/$libname$shrext.$ver"
15956                         fi
15957                       else
15958                         eval library_names=\"$acl_library_names_spec\"
15959                         for f in $library_names; do
15960                           if test -f "$dir/$f"; then
15961                             found_dir="$dir"
15962                             found_so="$dir/$f"
15963                             break
15964                           fi
15965                         done
15966                       fi
15967                     fi
15968                   fi
15969                                     if test "X$found_dir" = "X"; then
15970                     if test -f "$dir/$libname.$acl_libext"; then
15971                       found_dir="$dir"
15972                       found_a="$dir/$libname.$acl_libext"
15973                     fi
15974                   fi
15975                   if test "X$found_dir" != "X"; then
15976                     if test -f "$dir/$libname.la"; then
15977                       found_la="$dir/$libname.la"
15978                     fi
15979                   fi
15980                   ;;
15981               esac
15982               if test "X$found_dir" != "X"; then
15983                 break
15984               fi
15985             done
15986           fi
15987           if test "X$found_dir" != "X"; then
15988                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
15989             if test "X$found_so" != "X"; then
15990                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
15991                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15992               else
15993                                                                                 haveit=
15994                 for x in $ltrpathdirs; do
15995                   if test "X$x" = "X$found_dir"; then
15996                     haveit=yes
15997                     break
15998                   fi
15999                 done
16000                 if test -z "$haveit"; then
16001                   ltrpathdirs="$ltrpathdirs $found_dir"
16002                 fi
16003                                 if test "$acl_hardcode_direct" = yes; then
16004                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16005                 else
16006                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
16007                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16008                                                             haveit=
16009                     for x in $rpathdirs; do
16010                       if test "X$x" = "X$found_dir"; then
16011                         haveit=yes
16012                         break
16013                       fi
16014                     done
16015                     if test -z "$haveit"; then
16016                       rpathdirs="$rpathdirs $found_dir"
16017                     fi
16018                   else
16019                                                                                 haveit=
16020                     for x in $LDFLAGS $LIBINTL; do
16021
16022   acl_save_prefix="$prefix"
16023   prefix="$acl_final_prefix"
16024   acl_save_exec_prefix="$exec_prefix"
16025   exec_prefix="$acl_final_exec_prefix"
16026   eval x=\"$x\"
16027   exec_prefix="$acl_save_exec_prefix"
16028   prefix="$acl_save_prefix"
16029
16030                       if test "X$x" = "X-L$found_dir"; then
16031                         haveit=yes
16032                         break
16033                       fi
16034                     done
16035                     if test -z "$haveit"; then
16036                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
16037                     fi
16038                     if test "$acl_hardcode_minus_L" != no; then
16039                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16040                     else
16041                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
16042                     fi
16043                   fi
16044                 fi
16045               fi
16046             else
16047               if test "X$found_a" != "X"; then
16048                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
16049               else
16050                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
16051               fi
16052             fi
16053                         additional_includedir=
16054             case "$found_dir" in
16055               */$acl_libdirstem | */$acl_libdirstem/)
16056                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
16057                 LIBINTL_PREFIX="$basedir"
16058                 additional_includedir="$basedir/include"
16059                 ;;
16060             esac
16061             if test "X$additional_includedir" != "X"; then
16062                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
16063                 haveit=
16064                 if test "X$additional_includedir" = "X/usr/local/include"; then
16065                   if test -n "$GCC"; then
16066                     case $host_os in
16067                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16068                     esac
16069                   fi
16070                 fi
16071                 if test -z "$haveit"; then
16072                   for x in $CPPFLAGS $INCINTL; do
16073
16074   acl_save_prefix="$prefix"
16075   prefix="$acl_final_prefix"
16076   acl_save_exec_prefix="$exec_prefix"
16077   exec_prefix="$acl_final_exec_prefix"
16078   eval x=\"$x\"
16079   exec_prefix="$acl_save_exec_prefix"
16080   prefix="$acl_save_prefix"
16081
16082                     if test "X$x" = "X-I$additional_includedir"; then
16083                       haveit=yes
16084                       break
16085                     fi
16086                   done
16087                   if test -z "$haveit"; then
16088                     if test -d "$additional_includedir"; then
16089                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
16090                     fi
16091                   fi
16092                 fi
16093               fi
16094             fi
16095                         if test -n "$found_la"; then
16096                                                         save_libdir="$libdir"
16097               case "$found_la" in
16098                 */* | *\\*) . "$found_la" ;;
16099                 *) . "./$found_la" ;;
16100               esac
16101               libdir="$save_libdir"
16102                             for dep in $dependency_libs; do
16103                 case "$dep" in
16104                   -L*)
16105                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16106                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
16107                       haveit=
16108                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
16109                         if test -n "$GCC"; then
16110                           case $host_os in
16111                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16112                           esac
16113                         fi
16114                       fi
16115                       if test -z "$haveit"; then
16116                         haveit=
16117                         for x in $LDFLAGS $LIBINTL; do
16118
16119   acl_save_prefix="$prefix"
16120   prefix="$acl_final_prefix"
16121   acl_save_exec_prefix="$exec_prefix"
16122   exec_prefix="$acl_final_exec_prefix"
16123   eval x=\"$x\"
16124   exec_prefix="$acl_save_exec_prefix"
16125   prefix="$acl_save_prefix"
16126
16127                           if test "X$x" = "X-L$additional_libdir"; then
16128                             haveit=yes
16129                             break
16130                           fi
16131                         done
16132                         if test -z "$haveit"; then
16133                           if test -d "$additional_libdir"; then
16134                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
16135                           fi
16136                         fi
16137                         haveit=
16138                         for x in $LDFLAGS $LTLIBINTL; do
16139
16140   acl_save_prefix="$prefix"
16141   prefix="$acl_final_prefix"
16142   acl_save_exec_prefix="$exec_prefix"
16143   exec_prefix="$acl_final_exec_prefix"
16144   eval x=\"$x\"
16145   exec_prefix="$acl_save_exec_prefix"
16146   prefix="$acl_save_prefix"
16147
16148                           if test "X$x" = "X-L$additional_libdir"; then
16149                             haveit=yes
16150                             break
16151                           fi
16152                         done
16153                         if test -z "$haveit"; then
16154                           if test -d "$additional_libdir"; then
16155                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
16156                           fi
16157                         fi
16158                       fi
16159                     fi
16160                     ;;
16161                   -R*)
16162                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
16163                     if test "$enable_rpath" != no; then
16164                                                                   haveit=
16165                       for x in $rpathdirs; do
16166                         if test "X$x" = "X$dir"; then
16167                           haveit=yes
16168                           break
16169                         fi
16170                       done
16171                       if test -z "$haveit"; then
16172                         rpathdirs="$rpathdirs $dir"
16173                       fi
16174                                                                   haveit=
16175                       for x in $ltrpathdirs; do
16176                         if test "X$x" = "X$dir"; then
16177                           haveit=yes
16178                           break
16179                         fi
16180                       done
16181                       if test -z "$haveit"; then
16182                         ltrpathdirs="$ltrpathdirs $dir"
16183                       fi
16184                     fi
16185                     ;;
16186                   -l*)
16187                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16188                     ;;
16189                   *.la)
16190                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16191                     ;;
16192                   *)
16193                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
16194                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
16195                     ;;
16196                 esac
16197               done
16198             fi
16199           else
16200                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
16201             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
16202           fi
16203         fi
16204       fi
16205     done
16206   done
16207   if test "X$rpathdirs" != "X"; then
16208     if test -n "$acl_hardcode_libdir_separator"; then
16209                         alldirs=
16210       for found_dir in $rpathdirs; do
16211         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
16212       done
16213             acl_save_libdir="$libdir"
16214       libdir="$alldirs"
16215       eval flag=\"$acl_hardcode_libdir_flag_spec\"
16216       libdir="$acl_save_libdir"
16217       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
16218     else
16219             for found_dir in $rpathdirs; do
16220         acl_save_libdir="$libdir"
16221         libdir="$found_dir"
16222         eval flag=\"$acl_hardcode_libdir_flag_spec\"
16223         libdir="$acl_save_libdir"
16224         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
16225       done
16226     fi
16227   fi
16228   if test "X$ltrpathdirs" != "X"; then
16229             for found_dir in $ltrpathdirs; do
16230       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
16231     done
16232   fi
16233
16234           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
16235 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
16236 if eval \${$gt_func_gnugettext_libintl+:} false; then :
16237   $as_echo_n "(cached) " >&6
16238 else
16239   gt_save_CPPFLAGS="$CPPFLAGS"
16240             CPPFLAGS="$CPPFLAGS $INCINTL"
16241             gt_save_LIBS="$LIBS"
16242             LIBS="$LIBS $LIBINTL"
16243                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16244 /* end confdefs.h.  */
16245 #include <libintl.h>
16246 $gt_revision_test_code
16247 extern int _nl_msg_cat_cntr;
16248 extern
16249 #ifdef __cplusplus
16250 "C"
16251 #endif
16252 const char *_nl_expand_alias (const char *);
16253 int
16254 main ()
16255 {
16256 bindtextdomain ("", "");
16257 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
16258   ;
16259   return 0;
16260 }
16261 _ACEOF
16262 if ac_fn_c_try_link "$LINENO"; then :
16263   eval "$gt_func_gnugettext_libintl=yes"
16264 else
16265   eval "$gt_func_gnugettext_libintl=no"
16266 fi
16267 rm -f core conftest.err conftest.$ac_objext \
16268     conftest$ac_exeext conftest.$ac_ext
16269                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
16270               LIBS="$LIBS $LIBICONV"
16271               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16272 /* end confdefs.h.  */
16273 #include <libintl.h>
16274 $gt_revision_test_code
16275 extern int _nl_msg_cat_cntr;
16276 extern
16277 #ifdef __cplusplus
16278 "C"
16279 #endif
16280 const char *_nl_expand_alias (const char *);
16281 int
16282 main ()
16283 {
16284 bindtextdomain ("", "");
16285 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
16286   ;
16287   return 0;
16288 }
16289 _ACEOF
16290 if ac_fn_c_try_link "$LINENO"; then :
16291   LIBINTL="$LIBINTL $LIBICONV"
16292                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
16293                 eval "$gt_func_gnugettext_libintl=yes"
16294
16295 fi
16296 rm -f core conftest.err conftest.$ac_objext \
16297     conftest$ac_exeext conftest.$ac_ext
16298             fi
16299             CPPFLAGS="$gt_save_CPPFLAGS"
16300             LIBS="$gt_save_LIBS"
16301 fi
16302 eval ac_res=\$$gt_func_gnugettext_libintl
16303                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16304 $as_echo "$ac_res" >&6; }
16305         fi
16306
16307                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
16308            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
16309                 && test "$PACKAGE" != gettext-runtime \
16310                 && test "$PACKAGE" != gettext-tools; }; then
16311           gt_use_preinstalled_gnugettext=yes
16312         else
16313                     LIBINTL=
16314           LTLIBINTL=
16315           INCINTL=
16316         fi
16317
16318
16319
16320     if test -n "$INTL_MACOSX_LIBS"; then
16321       if test "$gt_use_preinstalled_gnugettext" = "yes" \
16322          || test "$nls_cv_use_gnu_gettext" = "yes"; then
16323                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
16324         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
16325       fi
16326     fi
16327
16328     if test "$gt_use_preinstalled_gnugettext" = "yes" \
16329        || test "$nls_cv_use_gnu_gettext" = "yes"; then
16330
16331 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
16332
16333     else
16334       USE_NLS=no
16335     fi
16336   fi
16337
16338   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
16339 $as_echo_n "checking whether to use NLS... " >&6; }
16340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16341 $as_echo "$USE_NLS" >&6; }
16342   if test "$USE_NLS" = "yes"; then
16343     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
16344 $as_echo_n "checking where the gettext function comes from... " >&6; }
16345     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
16346       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
16347         gt_source="external libintl"
16348       else
16349         gt_source="libc"
16350       fi
16351     else
16352       gt_source="included intl directory"
16353     fi
16354     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
16355 $as_echo "$gt_source" >&6; }
16356   fi
16357
16358   if test "$USE_NLS" = "yes"; then
16359
16360     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
16361       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
16362         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
16363 $as_echo_n "checking how to link with libintl... " >&6; }
16364         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
16365 $as_echo "$LIBINTL" >&6; }
16366
16367   for element in $INCINTL; do
16368     haveit=
16369     for x in $CPPFLAGS; do
16370
16371   acl_save_prefix="$prefix"
16372   prefix="$acl_final_prefix"
16373   acl_save_exec_prefix="$exec_prefix"
16374   exec_prefix="$acl_final_exec_prefix"
16375   eval x=\"$x\"
16376   exec_prefix="$acl_save_exec_prefix"
16377   prefix="$acl_save_prefix"
16378
16379       if test "X$x" = "X$element"; then
16380         haveit=yes
16381         break
16382       fi
16383     done
16384     if test -z "$haveit"; then
16385       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16386     fi
16387   done
16388
16389       fi
16390
16391
16392 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
16393
16394
16395 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
16396
16397     fi
16398
16399         POSUB=po
16400   fi
16401
16402
16403
16404     INTLLIBS="$LIBINTL"
16405
16406
16407
16408
16409
16410
16411
16412 GETTEXT_PACKAGE="cogl"
16413
16414
16415 cat >>confdefs.h <<_ACEOF
16416 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
16417 _ACEOF
16418
16419
16420  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linguas" >&5
16421 $as_echo_n "checking for linguas... " >&6; }
16422  podir="$srcdir/po"
16423  linguas=`cd $podir && ls *.po 2>/dev/null | awk 'BEGIN { FS="."; ORS=" " } { print $1 }'`
16424  if test -f "$podir/LINGUAS.ignore"; then
16425    ALL_LINGUAS="";
16426    ignore_linguas=`sed -n -e 's/^\s\+\|\s\+$//g' -e '/^#/b' -e '/\S/!b' \
16427                        -e 's/\s\+/\n/g' -e p "$podir/LINGUAS.ignore"`;
16428    for lang in $linguas; do
16429      if ! echo "$ignore_linguas" | grep -q "^${lang}$"; then
16430        ALL_LINGUAS="$ALL_LINGUAS $lang";
16431      fi;
16432    done;
16433  else
16434    ALL_LINGUAS="$linguas";
16435  fi;
16436
16437  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALL_LINGUAS" >&5
16438 $as_echo "$ALL_LINGUAS" >&6; }
16439
16440
16441
16442 # gtkdocize greps for ^GTK_DOC_CHECK and parses it, so you need to have
16443 # it on it's own line.
16444
16445
16446
16447
16448     # Extract the first word of "gtkdoc-check", so it can be a program name with args.
16449 set dummy gtkdoc-check; ac_word=$2
16450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16451 $as_echo_n "checking for $ac_word... " >&6; }
16452 if ${ac_cv_path_GTKDOC_CHECK+:} false; then :
16453   $as_echo_n "(cached) " >&6
16454 else
16455   case $GTKDOC_CHECK in
16456   [\\/]* | ?:[\\/]*)
16457   ac_cv_path_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test with a path.
16458   ;;
16459   *)
16460   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16461 for as_dir in $PATH
16462 do
16463   IFS=$as_save_IFS
16464   test -z "$as_dir" && as_dir=.
16465     for ac_exec_ext in '' $ac_executable_extensions; do
16466   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16467     ac_cv_path_GTKDOC_CHECK="$as_dir/$ac_word$ac_exec_ext"
16468     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16469     break 2
16470   fi
16471 done
16472   done
16473 IFS=$as_save_IFS
16474
16475   ;;
16476 esac
16477 fi
16478 GTKDOC_CHECK=$ac_cv_path_GTKDOC_CHECK
16479 if test -n "$GTKDOC_CHECK"; then
16480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
16481 $as_echo "$GTKDOC_CHECK" >&6; }
16482 else
16483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16484 $as_echo "no" >&6; }
16485 fi
16486
16487
16488   for ac_prog in gtkdoc-rebase
16489 do
16490   # Extract the first word of "$ac_prog", so it can be a program name with args.
16491 set dummy $ac_prog; ac_word=$2
16492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16493 $as_echo_n "checking for $ac_word... " >&6; }
16494 if ${ac_cv_path_GTKDOC_REBASE+:} false; then :
16495   $as_echo_n "(cached) " >&6
16496 else
16497   case $GTKDOC_REBASE in
16498   [\\/]* | ?:[\\/]*)
16499   ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
16500   ;;
16501   *)
16502   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16503 for as_dir in $PATH
16504 do
16505   IFS=$as_save_IFS
16506   test -z "$as_dir" && as_dir=.
16507     for ac_exec_ext in '' $ac_executable_extensions; do
16508   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16509     ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
16510     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16511     break 2
16512   fi
16513 done
16514   done
16515 IFS=$as_save_IFS
16516
16517   ;;
16518 esac
16519 fi
16520 GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
16521 if test -n "$GTKDOC_REBASE"; then
16522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
16523 $as_echo "$GTKDOC_REBASE" >&6; }
16524 else
16525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16526 $as_echo "no" >&6; }
16527 fi
16528
16529
16530   test -n "$GTKDOC_REBASE" && break
16531 done
16532 test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
16533
16534   # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
16535 set dummy gtkdoc-mkpdf; ac_word=$2
16536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16537 $as_echo_n "checking for $ac_word... " >&6; }
16538 if ${ac_cv_path_GTKDOC_MKPDF+:} false; then :
16539   $as_echo_n "(cached) " >&6
16540 else
16541   case $GTKDOC_MKPDF in
16542   [\\/]* | ?:[\\/]*)
16543   ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
16544   ;;
16545   *)
16546   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16547 for as_dir in $PATH
16548 do
16549   IFS=$as_save_IFS
16550   test -z "$as_dir" && as_dir=.
16551     for ac_exec_ext in '' $ac_executable_extensions; do
16552   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16553     ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
16554     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16555     break 2
16556   fi
16557 done
16558   done
16559 IFS=$as_save_IFS
16560
16561   ;;
16562 esac
16563 fi
16564 GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
16565 if test -n "$GTKDOC_MKPDF"; then
16566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
16567 $as_echo "$GTKDOC_MKPDF" >&6; }
16568 else
16569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16570 $as_echo "no" >&6; }
16571 fi
16572
16573
16574
16575
16576 # Check whether --with-html-dir was given.
16577 if test "${with_html_dir+set}" = set; then :
16578   withval=$with_html_dir;
16579 else
16580   with_html_dir='${datadir}/gtk-doc/html'
16581 fi
16582
16583   HTML_DIR="$with_html_dir"
16584
16585
16586     # Check whether --enable-gtk-doc was given.
16587 if test "${enable_gtk_doc+set}" = set; then :
16588   enableval=$enable_gtk_doc;
16589 else
16590   enable_gtk_doc=no
16591 fi
16592
16593
16594   if test x$enable_gtk_doc = xyes; then
16595     if test -n "$PKG_CONFIG" && \
16596     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-doc >= 1.13\""; } >&5
16597   ($PKG_CONFIG --exists --print-errors "gtk-doc >= 1.13") 2>&5
16598   ac_status=$?
16599   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16600   test $ac_status = 0; }; then
16601   :
16602 else
16603   as_fn_error $? "You need to have gtk-doc >= 1.13 installed to build $PACKAGE_NAME" "$LINENO" 5
16604 fi
16605         if test "x$PACKAGE_NAME" != "xglib"; then
16606
16607 pkg_failed=no
16608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5
16609 $as_echo_n "checking for GTKDOC_DEPS... " >&6; }
16610
16611 if test -n "$GTKDOC_DEPS_CFLAGS"; then
16612     pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS"
16613  elif test -n "$PKG_CONFIG"; then
16614     if test -n "$PKG_CONFIG" && \
16615     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0\""; } >&5
16616   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
16617   ac_status=$?
16618   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16619   test $ac_status = 0; }; then
16620   pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
16621 else
16622   pkg_failed=yes
16623 fi
16624  else
16625     pkg_failed=untried
16626 fi
16627 if test -n "$GTKDOC_DEPS_LIBS"; then
16628     pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS"
16629  elif test -n "$PKG_CONFIG"; then
16630     if test -n "$PKG_CONFIG" && \
16631     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0\""; } >&5
16632   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
16633   ac_status=$?
16634   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16635   test $ac_status = 0; }; then
16636   pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
16637 else
16638   pkg_failed=yes
16639 fi
16640  else
16641     pkg_failed=untried
16642 fi
16643
16644
16645
16646 if test $pkg_failed = yes; then
16647         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16648 $as_echo "no" >&6; }
16649
16650 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16651         _pkg_short_errors_supported=yes
16652 else
16653         _pkg_short_errors_supported=no
16654 fi
16655         if test $_pkg_short_errors_supported = yes; then
16656                 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>&1`
16657         else
16658                 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>&1`
16659         fi
16660         # Put the nasty error message in config.log where it belongs
16661         echo "$GTKDOC_DEPS_PKG_ERRORS" >&5
16662
16663         as_fn_error $? "Package requirements (glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0) were not met:
16664
16665 $GTKDOC_DEPS_PKG_ERRORS
16666
16667 Consider adjusting the PKG_CONFIG_PATH environment variable if you
16668 installed software in a non-standard prefix.
16669
16670 Alternatively, you may set the environment variables GTKDOC_DEPS_CFLAGS
16671 and GTKDOC_DEPS_LIBS to avoid the need to call pkg-config.
16672 See the pkg-config man page for more details." "$LINENO" 5
16673
16674 elif test $pkg_failed = untried; then
16675         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16676 $as_echo "no" >&6; }
16677         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16678 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16679 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
16680 is in your PATH or set the PKG_CONFIG environment variable to the full
16681 path to pkg-config.
16682
16683 Alternatively, you may set the environment variables GTKDOC_DEPS_CFLAGS
16684 and GTKDOC_DEPS_LIBS to avoid the need to call pkg-config.
16685 See the pkg-config man page for more details.
16686
16687 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16688 See \`config.log' for more details" "$LINENO" 5; }
16689
16690 else
16691         GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS
16692         GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS
16693         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16694 $as_echo "yes" >&6; }
16695
16696 fi
16697     fi
16698   fi
16699
16700   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
16701 $as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
16702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
16703 $as_echo "$enable_gtk_doc" >&6; }
16704
16705     # Check whether --enable-gtk-doc-html was given.
16706 if test "${enable_gtk_doc_html+set}" = set; then :
16707   enableval=$enable_gtk_doc_html;
16708 else
16709   enable_gtk_doc_html=yes
16710 fi
16711
16712     # Check whether --enable-gtk-doc-pdf was given.
16713 if test "${enable_gtk_doc_pdf+set}" = set; then :
16714   enableval=$enable_gtk_doc_pdf;
16715 else
16716   enable_gtk_doc_pdf=no
16717 fi
16718
16719
16720   if test -z "$GTKDOC_MKPDF"; then
16721     enable_gtk_doc_pdf=no
16722   fi
16723
16724
16725    if test x$enable_gtk_doc = xyes; then
16726   ENABLE_GTK_DOC_TRUE=
16727   ENABLE_GTK_DOC_FALSE='#'
16728 else
16729   ENABLE_GTK_DOC_TRUE='#'
16730   ENABLE_GTK_DOC_FALSE=
16731 fi
16732
16733    if test x$enable_gtk_doc_html = xyes; then
16734   GTK_DOC_BUILD_HTML_TRUE=
16735   GTK_DOC_BUILD_HTML_FALSE='#'
16736 else
16737   GTK_DOC_BUILD_HTML_TRUE='#'
16738   GTK_DOC_BUILD_HTML_FALSE=
16739 fi
16740
16741    if test x$enable_gtk_doc_pdf = xyes; then
16742   GTK_DOC_BUILD_PDF_TRUE=
16743   GTK_DOC_BUILD_PDF_FALSE='#'
16744 else
16745   GTK_DOC_BUILD_PDF_TRUE='#'
16746   GTK_DOC_BUILD_PDF_FALSE=
16747 fi
16748
16749    if test -n "$LIBTOOL"; then
16750   GTK_DOC_USE_LIBTOOL_TRUE=
16751   GTK_DOC_USE_LIBTOOL_FALSE='#'
16752 else
16753   GTK_DOC_USE_LIBTOOL_TRUE='#'
16754   GTK_DOC_USE_LIBTOOL_FALSE=
16755 fi
16756
16757    if test -n "$GTKDOC_REBASE"; then
16758   GTK_DOC_USE_REBASE_TRUE=
16759   GTK_DOC_USE_REBASE_FALSE='#'
16760 else
16761   GTK_DOC_USE_REBASE_TRUE='#'
16762   GTK_DOC_USE_REBASE_FALSE=
16763 fi
16764
16765
16766
16767  if test "x$enable_gtk_doc" = "xyes"; then
16768   BUILD_GTK_DOC_TRUE=
16769   BUILD_GTK_DOC_FALSE='#'
16770 else
16771   BUILD_GTK_DOC_TRUE='#'
16772   BUILD_GTK_DOC_FALSE=
16773 fi
16774
16775
16776
16777 # Check whether --enable-glibtest was given.
16778 if test "${enable_glibtest+set}" = set; then :
16779   enableval=$enable_glibtest;
16780 else
16781   enable_glibtest=yes
16782 fi
16783
16784
16785   pkg_config_args=glib-2.0
16786   for module in . gobject gthread gmodule-no-export
16787   do
16788       case "$module" in
16789          gmodule)
16790              pkg_config_args="$pkg_config_args gmodule-2.0"
16791          ;;
16792          gmodule-no-export)
16793              pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
16794          ;;
16795          gobject)
16796              pkg_config_args="$pkg_config_args gobject-2.0"
16797          ;;
16798          gthread)
16799              pkg_config_args="$pkg_config_args gthread-2.0"
16800          ;;
16801          gio*)
16802              pkg_config_args="$pkg_config_args $module-2.0"
16803          ;;
16804       esac
16805   done
16806
16807
16808
16809
16810
16811
16812
16813 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16814         if test -n "$ac_tool_prefix"; then
16815   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16816 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16818 $as_echo_n "checking for $ac_word... " >&6; }
16819 if ${ac_cv_path_PKG_CONFIG+:} false; then :
16820   $as_echo_n "(cached) " >&6
16821 else
16822   case $PKG_CONFIG in
16823   [\\/]* | ?:[\\/]*)
16824   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16825   ;;
16826   *)
16827   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16828 for as_dir in $PATH
16829 do
16830   IFS=$as_save_IFS
16831   test -z "$as_dir" && as_dir=.
16832     for ac_exec_ext in '' $ac_executable_extensions; do
16833   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16834     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16835     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16836     break 2
16837   fi
16838 done
16839   done
16840 IFS=$as_save_IFS
16841
16842   ;;
16843 esac
16844 fi
16845 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16846 if test -n "$PKG_CONFIG"; then
16847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16848 $as_echo "$PKG_CONFIG" >&6; }
16849 else
16850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16851 $as_echo "no" >&6; }
16852 fi
16853
16854
16855 fi
16856 if test -z "$ac_cv_path_PKG_CONFIG"; then
16857   ac_pt_PKG_CONFIG=$PKG_CONFIG
16858   # Extract the first word of "pkg-config", so it can be a program name with args.
16859 set dummy pkg-config; ac_word=$2
16860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16861 $as_echo_n "checking for $ac_word... " >&6; }
16862 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
16863   $as_echo_n "(cached) " >&6
16864 else
16865   case $ac_pt_PKG_CONFIG in
16866   [\\/]* | ?:[\\/]*)
16867   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16868   ;;
16869   *)
16870   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16871 for as_dir in $PATH
16872 do
16873   IFS=$as_save_IFS
16874   test -z "$as_dir" && as_dir=.
16875     for ac_exec_ext in '' $ac_executable_extensions; do
16876   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16877     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16878     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16879     break 2
16880   fi
16881 done
16882   done
16883 IFS=$as_save_IFS
16884
16885   ;;
16886 esac
16887 fi
16888 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16889 if test -n "$ac_pt_PKG_CONFIG"; then
16890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16891 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
16892 else
16893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16894 $as_echo "no" >&6; }
16895 fi
16896
16897   if test "x$ac_pt_PKG_CONFIG" = x; then
16898     PKG_CONFIG=""
16899   else
16900     case $cross_compiling:$ac_tool_warned in
16901 yes:)
16902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16903 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16904 ac_tool_warned=yes ;;
16905 esac
16906     PKG_CONFIG=$ac_pt_PKG_CONFIG
16907   fi
16908 else
16909   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16910 fi
16911
16912 fi
16913 if test -n "$PKG_CONFIG"; then
16914         _pkg_min_version=0.16
16915         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16916 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16917         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16918                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16919 $as_echo "yes" >&6; }
16920         else
16921                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16922 $as_echo "no" >&6; }
16923                 PKG_CONFIG=""
16924         fi
16925 fi
16926
16927   no_glib=""
16928
16929   if test "x$PKG_CONFIG" = x ; then
16930     no_glib=yes
16931     PKG_CONFIG=no
16932   fi
16933
16934   min_glib_version=2.28.0
16935   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB - version >= $min_glib_version" >&5
16936 $as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; }
16937
16938   if test x$PKG_CONFIG != xno ; then
16939     ## don't try to run the test against uninstalled libtool libs
16940     if $PKG_CONFIG --uninstalled $pkg_config_args; then
16941           echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
16942           enable_glibtest=no
16943     fi
16944
16945     if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
16946           :
16947     else
16948           no_glib=yes
16949     fi
16950   fi
16951
16952   if test x"$no_glib" = x ; then
16953     GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
16954     GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
16955     GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
16956     GLIB_COMPILE_RESOURCES=`$PKG_CONFIG --variable=glib_compile_resources gio-2.0`
16957
16958     GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
16959     GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
16960     glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
16961            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
16962     glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
16963            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
16964     glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
16965            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
16966     if test "x$enable_glibtest" = "xyes" ; then
16967       ac_save_CFLAGS="$CFLAGS"
16968       ac_save_LIBS="$LIBS"
16969       CFLAGS="$CFLAGS $GLIB_CFLAGS"
16970       LIBS="$GLIB_LIBS $LIBS"
16971       rm -f conf.glibtest
16972       if test "$cross_compiling" = yes; then :
16973   echo $ac_n "cross compiling; assumed OK... $ac_c"
16974 else
16975   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16976 /* end confdefs.h.  */
16977
16978 #include <glib.h>
16979 #include <stdio.h>
16980 #include <stdlib.h>
16981
16982 int
16983 main ()
16984 {
16985   unsigned int major, minor, micro;
16986   char *tmp_version;
16987
16988   fclose (fopen ("conf.glibtest", "w"));
16989
16990   /* HP/UX 9 (%@#!) writes to sscanf strings */
16991   tmp_version = g_strdup("$min_glib_version");
16992   if (sscanf(tmp_version, "%u.%u.%u", &major, &minor, &micro) != 3) {
16993      printf("%s, bad version string\n", "$min_glib_version");
16994      exit(1);
16995    }
16996
16997   if ((glib_major_version != $glib_config_major_version) ||
16998       (glib_minor_version != $glib_config_minor_version) ||
16999       (glib_micro_version != $glib_config_micro_version))
17000     {
17001       printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
17002              $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
17003              glib_major_version, glib_minor_version, glib_micro_version);
17004       printf ("*** was found! If pkg-config was correct, then it is best\n");
17005       printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
17006       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
17007       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
17008       printf("*** required on your system.\n");
17009       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
17010       printf("*** to point to the correct configuration files\n");
17011     }
17012   else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
17013            (glib_minor_version != GLIB_MINOR_VERSION) ||
17014            (glib_micro_version != GLIB_MICRO_VERSION))
17015     {
17016       printf("*** GLIB header files (version %d.%d.%d) do not match\n",
17017              GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
17018       printf("*** library (version %d.%d.%d)\n",
17019              glib_major_version, glib_minor_version, glib_micro_version);
17020     }
17021   else
17022     {
17023       if ((glib_major_version > major) ||
17024         ((glib_major_version == major) && (glib_minor_version > minor)) ||
17025         ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
17026       {
17027         return 0;
17028        }
17029      else
17030       {
17031         printf("\n*** An old version of GLIB (%u.%u.%u) was found.\n",
17032                glib_major_version, glib_minor_version, glib_micro_version);
17033         printf("*** You need a version of GLIB newer than %u.%u.%u. The latest version of\n",
17034                major, minor, micro);
17035         printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
17036         printf("***\n");
17037         printf("*** If you have already installed a sufficiently new version, this error\n");
17038         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
17039         printf("*** being found. The easiest way to fix this is to remove the old version\n");
17040         printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
17041         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
17042         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
17043         printf("*** so that the correct libraries are found at run-time))\n");
17044       }
17045     }
17046   return 1;
17047 }
17048
17049 _ACEOF
17050 if ac_fn_c_try_run "$LINENO"; then :
17051
17052 else
17053   no_glib=yes
17054 fi
17055 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17056   conftest.$ac_objext conftest.beam conftest.$ac_ext
17057 fi
17058
17059        CFLAGS="$ac_save_CFLAGS"
17060        LIBS="$ac_save_LIBS"
17061      fi
17062   fi
17063   if test "x$no_glib" = x ; then
17064      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
17065 $as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
17066      have_glib=yes
17067   else
17068      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17069 $as_echo "no" >&6; }
17070      if test "$PKG_CONFIG" = "no" ; then
17071        echo "*** A new enough version of pkg-config was not found."
17072        echo "*** See http://www.freedesktop.org/software/pkgconfig/"
17073      else
17074        if test -f conf.glibtest ; then
17075         :
17076        else
17077           echo "*** Could not run GLIB test program, checking why..."
17078           ac_save_CFLAGS="$CFLAGS"
17079           ac_save_LIBS="$LIBS"
17080           CFLAGS="$CFLAGS $GLIB_CFLAGS"
17081           LIBS="$LIBS $GLIB_LIBS"
17082           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17083 /* end confdefs.h.  */
17084
17085 #include <glib.h>
17086 #include <stdio.h>
17087
17088 int
17089 main ()
17090 {
17091  return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
17092   ;
17093   return 0;
17094 }
17095 _ACEOF
17096 if ac_fn_c_try_link "$LINENO"; then :
17097    echo "*** The test program compiled, but did not run. This usually means"
17098           echo "*** that the run-time linker is not finding GLIB or finding the wrong"
17099           echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
17100           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
17101           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
17102           echo "*** is required on your system"
17103           echo "***"
17104           echo "*** If you have an old version installed, it is best to remove it, although"
17105           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
17106 else
17107    echo "*** The test program failed to compile or link. See the file config.log for the"
17108           echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
17109 fi
17110 rm -f core conftest.err conftest.$ac_objext \
17111     conftest$ac_exeext conftest.$ac_ext
17112           CFLAGS="$ac_save_CFLAGS"
17113           LIBS="$ac_save_LIBS"
17114        fi
17115      fi
17116      GLIB_CFLAGS=""
17117      GLIB_LIBS=""
17118      GLIB_GENMARSHAL=""
17119      GOBJECT_QUERY=""
17120      GLIB_MKENUMS=""
17121      GLIB_COMPILE_RESOURCES=""
17122      have_glib=no
17123   fi
17124
17125
17126
17127
17128
17129
17130   rm -f conf.glibtest
17131
17132 if test "x$have_glib" = "xno"; then :
17133   as_fn_error $? "gobject-2.0 is required" "$LINENO" 5
17134 fi
17135
17136 COGL_PKG_REQUIRES="$COGL_PKG_REQUIRES gobject-2.0 gmodule-no-export-2.0"
17137
17138
17139 pkg_failed=no
17140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COGL_DEP" >&5
17141 $as_echo_n "checking for COGL_DEP... " >&6; }
17142
17143 if test -n "$COGL_DEP_CFLAGS"; then
17144     pkg_cv_COGL_DEP_CFLAGS="$COGL_DEP_CFLAGS"
17145  elif test -n "$PKG_CONFIG"; then
17146     if test -n "$PKG_CONFIG" && \
17147     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$COGL_PKG_REQUIRES\""; } >&5
17148   ($PKG_CONFIG --exists --print-errors "$COGL_PKG_REQUIRES") 2>&5
17149   ac_status=$?
17150   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17151   test $ac_status = 0; }; then
17152   pkg_cv_COGL_DEP_CFLAGS=`$PKG_CONFIG --cflags "$COGL_PKG_REQUIRES" 2>/dev/null`
17153 else
17154   pkg_failed=yes
17155 fi
17156  else
17157     pkg_failed=untried
17158 fi
17159 if test -n "$COGL_DEP_LIBS"; then
17160     pkg_cv_COGL_DEP_LIBS="$COGL_DEP_LIBS"
17161  elif test -n "$PKG_CONFIG"; then
17162     if test -n "$PKG_CONFIG" && \
17163     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$COGL_PKG_REQUIRES\""; } >&5
17164   ($PKG_CONFIG --exists --print-errors "$COGL_PKG_REQUIRES") 2>&5
17165   ac_status=$?
17166   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17167   test $ac_status = 0; }; then
17168   pkg_cv_COGL_DEP_LIBS=`$PKG_CONFIG --libs "$COGL_PKG_REQUIRES" 2>/dev/null`
17169 else
17170   pkg_failed=yes
17171 fi
17172  else
17173     pkg_failed=untried
17174 fi
17175
17176
17177
17178 if test $pkg_failed = yes; then
17179         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17180 $as_echo "no" >&6; }
17181
17182 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17183         _pkg_short_errors_supported=yes
17184 else
17185         _pkg_short_errors_supported=no
17186 fi
17187         if test $_pkg_short_errors_supported = yes; then
17188                 COGL_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$COGL_PKG_REQUIRES" 2>&1`
17189         else
17190                 COGL_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors "$COGL_PKG_REQUIRES" 2>&1`
17191         fi
17192         # Put the nasty error message in config.log where it belongs
17193         echo "$COGL_DEP_PKG_ERRORS" >&5
17194
17195         as_fn_error $? "Package requirements ($COGL_PKG_REQUIRES) were not met:
17196
17197 $COGL_DEP_PKG_ERRORS
17198
17199 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17200 installed software in a non-standard prefix.
17201
17202 Alternatively, you may set the environment variables COGL_DEP_CFLAGS
17203 and COGL_DEP_LIBS to avoid the need to call pkg-config.
17204 See the pkg-config man page for more details." "$LINENO" 5
17205
17206 elif test $pkg_failed = untried; then
17207         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17208 $as_echo "no" >&6; }
17209         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17210 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17211 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
17212 is in your PATH or set the PKG_CONFIG environment variable to the full
17213 path to pkg-config.
17214
17215 Alternatively, you may set the environment variables COGL_DEP_CFLAGS
17216 and COGL_DEP_LIBS to avoid the need to call pkg-config.
17217 See the pkg-config man page for more details.
17218
17219 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17220 See \`config.log' for more details" "$LINENO" 5; }
17221
17222 else
17223         COGL_DEP_CFLAGS=$pkg_cv_COGL_DEP_CFLAGS
17224         COGL_DEP_LIBS=$pkg_cv_COGL_DEP_LIBS
17225         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17226 $as_echo "yes" >&6; }
17227
17228 fi
17229 if test -n "$COGL_PKG_REQUIRES_GL"; then
17230
17231 pkg_failed=no
17232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COGL_DEP_GL" >&5
17233 $as_echo_n "checking for COGL_DEP_GL... " >&6; }
17234
17235 if test -n "$COGL_DEP_GL_CFLAGS"; then
17236     pkg_cv_COGL_DEP_GL_CFLAGS="$COGL_DEP_GL_CFLAGS"
17237  elif test -n "$PKG_CONFIG"; then
17238     if test -n "$PKG_CONFIG" && \
17239     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$COGL_PKG_REQUIRES_GL\""; } >&5
17240   ($PKG_CONFIG --exists --print-errors "$COGL_PKG_REQUIRES_GL") 2>&5
17241   ac_status=$?
17242   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17243   test $ac_status = 0; }; then
17244   pkg_cv_COGL_DEP_GL_CFLAGS=`$PKG_CONFIG --cflags "$COGL_PKG_REQUIRES_GL" 2>/dev/null`
17245 else
17246   pkg_failed=yes
17247 fi
17248  else
17249     pkg_failed=untried
17250 fi
17251 if test -n "$COGL_DEP_GL_LIBS"; then
17252     pkg_cv_COGL_DEP_GL_LIBS="$COGL_DEP_GL_LIBS"
17253  elif test -n "$PKG_CONFIG"; then
17254     if test -n "$PKG_CONFIG" && \
17255     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$COGL_PKG_REQUIRES_GL\""; } >&5
17256   ($PKG_CONFIG --exists --print-errors "$COGL_PKG_REQUIRES_GL") 2>&5
17257   ac_status=$?
17258   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17259   test $ac_status = 0; }; then
17260   pkg_cv_COGL_DEP_GL_LIBS=`$PKG_CONFIG --libs "$COGL_PKG_REQUIRES_GL" 2>/dev/null`
17261 else
17262   pkg_failed=yes
17263 fi
17264  else
17265     pkg_failed=untried
17266 fi
17267
17268
17269
17270 if test $pkg_failed = yes; then
17271         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17272 $as_echo "no" >&6; }
17273
17274 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17275         _pkg_short_errors_supported=yes
17276 else
17277         _pkg_short_errors_supported=no
17278 fi
17279         if test $_pkg_short_errors_supported = yes; then
17280                 COGL_DEP_GL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$COGL_PKG_REQUIRES_GL" 2>&1`
17281         else
17282                 COGL_DEP_GL_PKG_ERRORS=`$PKG_CONFIG --print-errors "$COGL_PKG_REQUIRES_GL" 2>&1`
17283         fi
17284         # Put the nasty error message in config.log where it belongs
17285         echo "$COGL_DEP_GL_PKG_ERRORS" >&5
17286
17287         as_fn_error $? "Package requirements ($COGL_PKG_REQUIRES_GL) were not met:
17288
17289 $COGL_DEP_GL_PKG_ERRORS
17290
17291 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17292 installed software in a non-standard prefix.
17293
17294 Alternatively, you may set the environment variables COGL_DEP_GL_CFLAGS
17295 and COGL_DEP_GL_LIBS to avoid the need to call pkg-config.
17296 See the pkg-config man page for more details." "$LINENO" 5
17297
17298 elif test $pkg_failed = untried; then
17299         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17300 $as_echo "no" >&6; }
17301         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17302 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17303 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
17304 is in your PATH or set the PKG_CONFIG environment variable to the full
17305 path to pkg-config.
17306
17307 Alternatively, you may set the environment variables COGL_DEP_GL_CFLAGS
17308 and COGL_DEP_GL_LIBS to avoid the need to call pkg-config.
17309 See the pkg-config man page for more details.
17310
17311 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17312 See \`config.log' for more details" "$LINENO" 5; }
17313
17314 else
17315         COGL_DEP_GL_CFLAGS=$pkg_cv_COGL_DEP_GL_CFLAGS
17316         COGL_DEP_GL_LIBS=$pkg_cv_COGL_DEP_GL_LIBS
17317         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17318 $as_echo "yes" >&6; }
17319
17320 fi
17321
17322       gl_libs=""
17323   for x in $COGL_DEP_GL_LIBS; do
17324     case $x in #(
17325   -lGL) :
17326      ;; #(
17327   -lGLESv2) :
17328      ;; #(
17329   -lGLESv1_CM) :
17330      ;; #(
17331   *) :
17332     gl_libs="$gl_libs $x" ;; #(
17333   *) :
17334      ;;
17335 esac
17336   done
17337   COGL_DEP_CFLAGS="$COGL_DEP_CFLAGS $COGL_DEP_CFLAGS_GL"
17338   COGL_DEP_LIBS="$COGL_DEP_LIBS $gl_libs"
17339 fi
17340
17341
17342 if test "x$enable_cogl_pango" = "xyes"; then :
17343
17344 pkg_failed=no
17345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COGL_PANGO_DEP" >&5
17346 $as_echo_n "checking for COGL_PANGO_DEP... " >&6; }
17347
17348 if test -n "$COGL_PANGO_DEP_CFLAGS"; then
17349     pkg_cv_COGL_PANGO_DEP_CFLAGS="$COGL_PANGO_DEP_CFLAGS"
17350  elif test -n "$PKG_CONFIG"; then
17351     if test -n "$PKG_CONFIG" && \
17352     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$COGL_PANGO_PKG_REQUIRES\""; } >&5
17353   ($PKG_CONFIG --exists --print-errors "$COGL_PANGO_PKG_REQUIRES") 2>&5
17354   ac_status=$?
17355   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17356   test $ac_status = 0; }; then
17357   pkg_cv_COGL_PANGO_DEP_CFLAGS=`$PKG_CONFIG --cflags "$COGL_PANGO_PKG_REQUIRES" 2>/dev/null`
17358 else
17359   pkg_failed=yes
17360 fi
17361  else
17362     pkg_failed=untried
17363 fi
17364 if test -n "$COGL_PANGO_DEP_LIBS"; then
17365     pkg_cv_COGL_PANGO_DEP_LIBS="$COGL_PANGO_DEP_LIBS"
17366  elif test -n "$PKG_CONFIG"; then
17367     if test -n "$PKG_CONFIG" && \
17368     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$COGL_PANGO_PKG_REQUIRES\""; } >&5
17369   ($PKG_CONFIG --exists --print-errors "$COGL_PANGO_PKG_REQUIRES") 2>&5
17370   ac_status=$?
17371   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17372   test $ac_status = 0; }; then
17373   pkg_cv_COGL_PANGO_DEP_LIBS=`$PKG_CONFIG --libs "$COGL_PANGO_PKG_REQUIRES" 2>/dev/null`
17374 else
17375   pkg_failed=yes
17376 fi
17377  else
17378     pkg_failed=untried
17379 fi
17380
17381
17382
17383 if test $pkg_failed = yes; then
17384         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17385 $as_echo "no" >&6; }
17386
17387 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17388         _pkg_short_errors_supported=yes
17389 else
17390         _pkg_short_errors_supported=no
17391 fi
17392         if test $_pkg_short_errors_supported = yes; then
17393                 COGL_PANGO_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$COGL_PANGO_PKG_REQUIRES" 2>&1`
17394         else
17395                 COGL_PANGO_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors "$COGL_PANGO_PKG_REQUIRES" 2>&1`
17396         fi
17397         # Put the nasty error message in config.log where it belongs
17398         echo "$COGL_PANGO_DEP_PKG_ERRORS" >&5
17399
17400         as_fn_error $? "Package requirements ($COGL_PANGO_PKG_REQUIRES) were not met:
17401
17402 $COGL_PANGO_DEP_PKG_ERRORS
17403
17404 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17405 installed software in a non-standard prefix.
17406
17407 Alternatively, you may set the environment variables COGL_PANGO_DEP_CFLAGS
17408 and COGL_PANGO_DEP_LIBS to avoid the need to call pkg-config.
17409 See the pkg-config man page for more details." "$LINENO" 5
17410
17411 elif test $pkg_failed = untried; then
17412         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17413 $as_echo "no" >&6; }
17414         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17415 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17416 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
17417 is in your PATH or set the PKG_CONFIG environment variable to the full
17418 path to pkg-config.
17419
17420 Alternatively, you may set the environment variables COGL_PANGO_DEP_CFLAGS
17421 and COGL_PANGO_DEP_LIBS to avoid the need to call pkg-config.
17422 See the pkg-config man page for more details.
17423
17424 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17425 See \`config.log' for more details" "$LINENO" 5; }
17426
17427 else
17428         COGL_PANGO_DEP_CFLAGS=$pkg_cv_COGL_PANGO_DEP_CFLAGS
17429         COGL_PANGO_DEP_LIBS=$pkg_cv_COGL_PANGO_DEP_LIBS
17430         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17431 $as_echo "yes" >&6; }
17432
17433 fi
17434
17435 fi
17436
17437
17438
17439
17440
17441
17442                 # Check whether --enable-introspection was given.
17443 if test "${enable_introspection+set}" = set; then :
17444   enableval=$enable_introspection;
17445 else
17446   enable_introspection=auto
17447 fi
17448
17449
17450     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-introspection" >&5
17451 $as_echo_n "checking for gobject-introspection... " >&6; }
17452
17453         case $enable_introspection in #(
17454   no) :
17455             found_introspection="no (disabled, use --enable-introspection to enable)"
17456      ;; #(
17457       yes) :
17458             if test -n "$PKG_CONFIG" && \
17459     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0\""; } >&5
17460   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0") 2>&5
17461   ac_status=$?
17462   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17463   test $ac_status = 0; }; then
17464   :
17465 else
17466   as_fn_error $? "gobject-introspection-1.0 is not installed" "$LINENO" 5
17467 fi
17468         if test -n "$PKG_CONFIG" && \
17469     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.9.5\""; } >&5
17470   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.9.5") 2>&5
17471   ac_status=$?
17472   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17473   test $ac_status = 0; }; then
17474   found_introspection=yes
17475 else
17476   as_fn_error $? "You need to have gobject-introspection >= 0.9.5 installed to build cogl" "$LINENO" 5
17477 fi
17478      ;; #(
17479       auto) :
17480             if test -n "$PKG_CONFIG" && \
17481     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.9.5\""; } >&5
17482   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.9.5") 2>&5
17483   ac_status=$?
17484   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17485   test $ac_status = 0; }; then
17486   found_introspection=yes
17487 else
17488   found_introspection=no
17489 fi
17490      ;; #(
17491   *) :
17492                 as_fn_error $? "invalid argument passed to --enable-introspection, should be one of [no/auto/yes]" "$LINENO" 5
17493      ;;
17494 esac
17495     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_introspection" >&5
17496 $as_echo "$found_introspection" >&6; }
17497
17498     INTROSPECTION_SCANNER=
17499     INTROSPECTION_COMPILER=
17500     INTROSPECTION_GENERATE=
17501     INTROSPECTION_GIRDIR=
17502     INTROSPECTION_TYPELIBDIR=
17503     if test "x$found_introspection" = "xyes"; then
17504        INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
17505        INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
17506        INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
17507        INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
17508        INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
17509        INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
17510        INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
17511        INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
17512     fi
17513
17514
17515
17516
17517
17518
17519
17520
17521
17522      if test "x$found_introspection" = "xyes"; then
17523   HAVE_INTROSPECTION_TRUE=
17524   HAVE_INTROSPECTION_FALSE='#'
17525 else
17526   HAVE_INTROSPECTION_TRUE='#'
17527   HAVE_INTROSPECTION_FALSE=
17528 fi
17529
17530
17531
17532
17533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
17534 $as_echo_n "checking for X... " >&6; }
17535
17536
17537 # Check whether --with-x was given.
17538 if test "${with_x+set}" = set; then :
17539   withval=$with_x;
17540 fi
17541
17542 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
17543 if test "x$with_x" = xno; then
17544   # The user explicitly disabled X.
17545   have_x=disabled
17546 else
17547   case $x_includes,$x_libraries in #(
17548     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
17549     *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
17550   $as_echo_n "(cached) " >&6
17551 else
17552   # One or both of the vars are not set, and there is no cached value.
17553 ac_x_includes=no ac_x_libraries=no
17554 rm -f -r conftest.dir
17555 if mkdir conftest.dir; then
17556   cd conftest.dir
17557   cat >Imakefile <<'_ACEOF'
17558 incroot:
17559         @echo incroot='${INCROOT}'
17560 usrlibdir:
17561         @echo usrlibdir='${USRLIBDIR}'
17562 libdir:
17563         @echo libdir='${LIBDIR}'
17564 _ACEOF
17565   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
17566     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
17567     for ac_var in incroot usrlibdir libdir; do
17568       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
17569     done
17570     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
17571     for ac_extension in a so sl dylib la dll; do
17572       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
17573          test -f "$ac_im_libdir/libX11.$ac_extension"; then
17574         ac_im_usrlibdir=$ac_im_libdir; break
17575       fi
17576     done
17577     # Screen out bogus values from the imake configuration.  They are
17578     # bogus both because they are the default anyway, and because
17579     # using them would break gcc on systems where it needs fixed includes.
17580     case $ac_im_incroot in
17581         /usr/include) ac_x_includes= ;;
17582         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
17583     esac
17584     case $ac_im_usrlibdir in
17585         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
17586         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
17587     esac
17588   fi
17589   cd ..
17590   rm -f -r conftest.dir
17591 fi
17592
17593 # Standard set of common directories for X headers.
17594 # Check X11 before X11Rn because it is often a symlink to the current release.
17595 ac_x_header_dirs='
17596 /usr/X11/include
17597 /usr/X11R7/include
17598 /usr/X11R6/include
17599 /usr/X11R5/include
17600 /usr/X11R4/include
17601
17602 /usr/include/X11
17603 /usr/include/X11R7
17604 /usr/include/X11R6
17605 /usr/include/X11R5
17606 /usr/include/X11R4
17607
17608 /usr/local/X11/include
17609 /usr/local/X11R7/include
17610 /usr/local/X11R6/include
17611 /usr/local/X11R5/include
17612 /usr/local/X11R4/include
17613
17614 /usr/local/include/X11
17615 /usr/local/include/X11R7
17616 /usr/local/include/X11R6
17617 /usr/local/include/X11R5
17618 /usr/local/include/X11R4
17619
17620 /usr/X386/include
17621 /usr/x386/include
17622 /usr/XFree86/include/X11
17623
17624 /usr/include
17625 /usr/local/include
17626 /usr/unsupported/include
17627 /usr/athena/include
17628 /usr/local/x11r5/include
17629 /usr/lpp/Xamples/include
17630
17631 /usr/openwin/include
17632 /usr/openwin/share/include'
17633
17634 if test "$ac_x_includes" = no; then
17635   # Guess where to find include files, by looking for Xlib.h.
17636   # First, try using that file with no special directory specified.
17637   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17638 /* end confdefs.h.  */
17639 #include <X11/Xlib.h>
17640 _ACEOF
17641 if ac_fn_c_try_cpp "$LINENO"; then :
17642   # We can compile using X headers with no special include directory.
17643 ac_x_includes=
17644 else
17645   for ac_dir in $ac_x_header_dirs; do
17646   if test -r "$ac_dir/X11/Xlib.h"; then
17647     ac_x_includes=$ac_dir
17648     break
17649   fi
17650 done
17651 fi
17652 rm -f conftest.err conftest.i conftest.$ac_ext
17653 fi # $ac_x_includes = no
17654
17655 if test "$ac_x_libraries" = no; then
17656   # Check for the libraries.
17657   # See if we find them without any special options.
17658   # Don't add to $LIBS permanently.
17659   ac_save_LIBS=$LIBS
17660   LIBS="-lX11 $LIBS"
17661   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17662 /* end confdefs.h.  */
17663 #include <X11/Xlib.h>
17664 int
17665 main ()
17666 {
17667 XrmInitialize ()
17668   ;
17669   return 0;
17670 }
17671 _ACEOF
17672 if ac_fn_c_try_link "$LINENO"; then :
17673   LIBS=$ac_save_LIBS
17674 # We can link X programs with no special library path.
17675 ac_x_libraries=
17676 else
17677   LIBS=$ac_save_LIBS
17678 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
17679 do
17680   # Don't even attempt the hair of trying to link an X program!
17681   for ac_extension in a so sl dylib la dll; do
17682     if test -r "$ac_dir/libX11.$ac_extension"; then
17683       ac_x_libraries=$ac_dir
17684       break 2
17685     fi
17686   done
17687 done
17688 fi
17689 rm -f core conftest.err conftest.$ac_objext \
17690     conftest$ac_exeext conftest.$ac_ext
17691 fi # $ac_x_libraries = no
17692
17693 case $ac_x_includes,$ac_x_libraries in #(
17694   no,* | *,no | *\'*)
17695     # Didn't find X, or a directory has "'" in its name.
17696     ac_cv_have_x="have_x=no";; #(
17697   *)
17698     # Record where we found X for the cache.
17699     ac_cv_have_x="have_x=yes\
17700         ac_x_includes='$ac_x_includes'\
17701         ac_x_libraries='$ac_x_libraries'"
17702 esac
17703 fi
17704 ;; #(
17705     *) have_x=yes;;
17706   esac
17707   eval "$ac_cv_have_x"
17708 fi # $with_x != no
17709
17710 if test "$have_x" != yes; then
17711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
17712 $as_echo "$have_x" >&6; }
17713   no_x=yes
17714 else
17715   # If each of the values was on the command line, it overrides each guess.
17716   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
17717   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
17718   # Update the cache value to reflect the command line values.
17719   ac_cv_have_x="have_x=yes\
17720         ac_x_includes='$x_includes'\
17721         ac_x_libraries='$x_libraries'"
17722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
17723 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
17724 fi
17725
17726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
17727 $as_echo_n "checking for ANSI C header files... " >&6; }
17728 if ${ac_cv_header_stdc+:} false; then :
17729   $as_echo_n "(cached) " >&6
17730 else
17731   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17732 /* end confdefs.h.  */
17733 #include <stdlib.h>
17734 #include <stdarg.h>
17735 #include <string.h>
17736 #include <float.h>
17737
17738 int
17739 main ()
17740 {
17741
17742   ;
17743   return 0;
17744 }
17745 _ACEOF
17746 if ac_fn_c_try_compile "$LINENO"; then :
17747   ac_cv_header_stdc=yes
17748 else
17749   ac_cv_header_stdc=no
17750 fi
17751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17752
17753 if test $ac_cv_header_stdc = yes; then
17754   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
17755   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17756 /* end confdefs.h.  */
17757 #include <string.h>
17758
17759 _ACEOF
17760 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17761   $EGREP "memchr" >/dev/null 2>&1; then :
17762
17763 else
17764   ac_cv_header_stdc=no
17765 fi
17766 rm -f conftest*
17767
17768 fi
17769
17770 if test $ac_cv_header_stdc = yes; then
17771   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
17772   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17773 /* end confdefs.h.  */
17774 #include <stdlib.h>
17775
17776 _ACEOF
17777 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17778   $EGREP "free" >/dev/null 2>&1; then :
17779
17780 else
17781   ac_cv_header_stdc=no
17782 fi
17783 rm -f conftest*
17784
17785 fi
17786
17787 if test $ac_cv_header_stdc = yes; then
17788   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
17789   if test "$cross_compiling" = yes; then :
17790   :
17791 else
17792   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17793 /* end confdefs.h.  */
17794 #include <ctype.h>
17795 #include <stdlib.h>
17796 #if ((' ' & 0x0FF) == 0x020)
17797 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
17798 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
17799 #else
17800 # define ISLOWER(c) \
17801                    (('a' <= (c) && (c) <= 'i') \
17802                      || ('j' <= (c) && (c) <= 'r') \
17803                      || ('s' <= (c) && (c) <= 'z'))
17804 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
17805 #endif
17806
17807 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
17808 int
17809 main ()
17810 {
17811   int i;
17812   for (i = 0; i < 256; i++)
17813     if (XOR (islower (i), ISLOWER (i))
17814         || toupper (i) != TOUPPER (i))
17815       return 2;
17816   return 0;
17817 }
17818 _ACEOF
17819 if ac_fn_c_try_run "$LINENO"; then :
17820
17821 else
17822   ac_cv_header_stdc=no
17823 fi
17824 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17825   conftest.$ac_objext conftest.beam conftest.$ac_ext
17826 fi
17827
17828 fi
17829 fi
17830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
17831 $as_echo "$ac_cv_header_stdc" >&6; }
17832 if test $ac_cv_header_stdc = yes; then
17833
17834 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
17835
17836 fi
17837
17838 for ac_header in fcntl.h limits.h unistd.h
17839 do :
17840   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17841 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17842 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17843   cat >>confdefs.h <<_ACEOF
17844 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17845 _ACEOF
17846
17847 fi
17848
17849 done
17850
17851
17852
17853
17854 for ac_func in ffs
17855 do :
17856   ac_fn_c_check_func "$LINENO" "ffs" "ac_cv_func_ffs"
17857 if test "x$ac_cv_func_ffs" = xyes; then :
17858   cat >>confdefs.h <<_ACEOF
17859 #define HAVE_FFS 1
17860 _ACEOF
17861
17862 fi
17863 done
17864
17865
17866
17867 ac_fn_c_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
17868 if test "x$ac_cv_header_poll_h" = xyes; then :
17869
17870          if ac_fn_c_compute_int "$LINENO" "POLLIN" "COGL_SYSDEF_POLLIN"        "#include <poll.h>"; then :
17871
17872 else
17873   as_fn_error $? "Unable to get value of POLLIN" "$LINENO" 5
17874 fi
17875
17876          if ac_fn_c_compute_int "$LINENO" "POLLPRI" "COGL_SYSDEF_POLLPRI"        "#include <poll.h>"; then :
17877
17878 else
17879   as_fn_error $? "Unable to get value of POLLPRI" "$LINENO" 5
17880 fi
17881
17882          if ac_fn_c_compute_int "$LINENO" "POLLOUT" "COGL_SYSDEF_POLLOUT"        "#include <poll.h>"; then :
17883
17884 else
17885   as_fn_error $? "Unable to get value of POLLOUT" "$LINENO" 5
17886 fi
17887
17888          if ac_fn_c_compute_int "$LINENO" "POLLERR" "COGL_SYSDEF_POLLERR"        "#include <poll.h>"; then :
17889
17890 else
17891   as_fn_error $? "Unable to get value of POLLERR" "$LINENO" 5
17892 fi
17893
17894          if ac_fn_c_compute_int "$LINENO" "POLLHUP" "COGL_SYSDEF_POLLHUP"        "#include <poll.h>"; then :
17895
17896 else
17897   as_fn_error $? "Unable to get value of POLLHUP" "$LINENO" 5
17898 fi
17899
17900          if ac_fn_c_compute_int "$LINENO" "POLLNVAL" "COGL_SYSDEF_POLLNVAL"        "#include <poll.h>"; then :
17901
17902 else
17903   as_fn_error $? "Unable to get value of POLLNVAL" "$LINENO" 5
17904 fi
17905
17906
17907 else
17908
17909          COGL_SYSDEF_POLLIN=1
17910          COGL_SYSDEF_POLLPRI=2
17911          COGL_SYSDEF_POLLOUT=4
17912          COGL_SYSDEF_POLLERR=8
17913          COGL_SYSDEF_POLLHUP=16
17914          COGL_SYSDEF_POLLNVAL=32
17915
17916 fi
17917
17918
17919 COGL_DEFINES_EXTRA="$COGL_DEFINES_EXTRA
17920 #define COGL_SYSDEF_POLLIN $COGL_SYSDEF_POLLIN
17921 #define COGL_SYSDEF_POLLPRI $COGL_SYSDEF_POLLPRI
17922 #define COGL_SYSDEF_POLLOUT $COGL_SYSDEF_POLLOUT
17923 #define COGL_SYSDEF_POLLERR $COGL_SYSDEF_POLLERR
17924 #define COGL_SYSDEF_POLLHUP $COGL_SYSDEF_POLLHUP
17925 #define COGL_SYSDEF_POLLNVAL $COGL_SYSDEF_POLLNVAL
17926 "
17927
17928 COGL_DEFINES="$COGL_DEFINES_EXTRA"
17929 for x in $COGL_DEFINES_SYMBOLS; do
17930   COGL_DEFINES="$COGL_DEFINES
17931 #define $x 1"
17932 done;
17933
17934
17935
17936 if test "x$cogl_gl_headers" = "x"; then :
17937   as_fn_error $? "Internal error: no GL header set" "$LINENO" 5
17938 fi
17939 COGL_GL_HEADER_INCLUDES=""
17940 for x in $cogl_gl_headers; do
17941   COGL_GL_HEADER_INCLUDES="$COGL_GL_HEADER_INCLUDES
17942 #include <$x>"
17943 done;
17944
17945
17946
17947 $as_echo "#define COGL_ENABLE_EXPERIMENTAL_2_0_API 1" >>confdefs.h
17948
17949
17950 $as_echo "#define COGL_ENABLE_EXPERIMENTAL_API 1" >>confdefs.h
17951
17952
17953
17954
17955
17956
17957
17958
17959
17960 # just for compatability with the clutter build...
17961 MAINTAINER_CFLAGS=
17962
17963
17964 ac_config_files="$ac_config_files Makefile README config.h.win32 build/Makefile build/win32/Makefile build/win32/vs9/Makefile build/win32/vs10/Makefile cogl/Makefile cogl/cogl-1.0.pc cogl/cogl-2.0-experimental.pc cogl/cogl-defines.h cogl/cogl.rc cogl-pango/Makefile cogl-pango/cogl-pango-1.0.pc cogl-pango/cogl-pango-2.0-experimental.pc cogl-pango/cogl-pango.rc doc/Makefile doc/reference/Makefile doc/reference/cogl/Makefile doc/reference/cogl/cogl-docs.xml doc/reference/cogl-2.0-experimental/Makefile doc/reference/cogl-2.0-experimental/cogl-2.0-experimental-docs.xml examples/Makefile tests/Makefile tests/conform/Makefile tests/conform/config.env tests/conform/test-launcher.sh tests/data/Makefile po/Makefile.in"
17965
17966 cat >confcache <<\_ACEOF
17967 # This file is a shell script that caches the results of configure
17968 # tests run on this system so they can be shared between configure
17969 # scripts and configure runs, see configure's option --config-cache.
17970 # It is not useful on other systems.  If it contains results you don't
17971 # want to keep, you may remove or edit it.
17972 #
17973 # config.status only pays attention to the cache file if you give it
17974 # the --recheck option to rerun configure.
17975 #
17976 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17977 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17978 # following values.
17979
17980 _ACEOF
17981
17982 # The following way of writing the cache mishandles newlines in values,
17983 # but we know of no workaround that is simple, portable, and efficient.
17984 # So, we kill variables containing newlines.
17985 # Ultrix sh set writes to stderr and can't be redirected directly,
17986 # and sets the high bit in the cache file unless we assign to the vars.
17987 (
17988   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17989     eval ac_val=\$$ac_var
17990     case $ac_val in #(
17991     *${as_nl}*)
17992       case $ac_var in #(
17993       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17994 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17995       esac
17996       case $ac_var in #(
17997       _ | IFS | as_nl) ;; #(
17998       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17999       *) { eval $ac_var=; unset $ac_var;} ;;
18000       esac ;;
18001     esac
18002   done
18003
18004   (set) 2>&1 |
18005     case $as_nl`(ac_space=' '; set) 2>&1` in #(
18006     *${as_nl}ac_space=\ *)
18007       # `set' does not quote correctly, so add quotes: double-quote
18008       # substitution turns \\\\ into \\, and sed turns \\ into \.
18009       sed -n \
18010         "s/'/'\\\\''/g;
18011           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18012       ;; #(
18013     *)
18014       # `set' quotes correctly as required by POSIX, so do not add quotes.
18015       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18016       ;;
18017     esac |
18018     sort
18019 ) |
18020   sed '
18021      /^ac_cv_env_/b end
18022      t clear
18023      :clear
18024      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18025      t end
18026      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18027      :end' >>confcache
18028 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18029   if test -w "$cache_file"; then
18030     if test "x$cache_file" != "x/dev/null"; then
18031       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18032 $as_echo "$as_me: updating cache $cache_file" >&6;}
18033       if test ! -f "$cache_file" || test -h "$cache_file"; then
18034         cat confcache >"$cache_file"
18035       else
18036         case $cache_file in #(
18037         */* | ?:*)
18038           mv -f confcache "$cache_file"$$ &&
18039           mv -f "$cache_file"$$ "$cache_file" ;; #(
18040         *)
18041           mv -f confcache "$cache_file" ;;
18042         esac
18043       fi
18044     fi
18045   else
18046     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18047 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18048   fi
18049 fi
18050 rm -f confcache
18051
18052 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18053 # Let make expand exec_prefix.
18054 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18055
18056 DEFS=-DHAVE_CONFIG_H
18057
18058 ac_libobjs=
18059 ac_ltlibobjs=
18060 U=
18061 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18062   # 1. Remove the extension, and $U if already installed.
18063   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18064   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18065   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18066   #    will be set to the directory where LIBOBJS objects are built.
18067   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18068   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18069 done
18070 LIBOBJS=$ac_libobjs
18071
18072 LTLIBOBJS=$ac_ltlibobjs
18073
18074
18075  if test -n "$EXEEXT"; then
18076   am__EXEEXT_TRUE=
18077   am__EXEEXT_FALSE='#'
18078 else
18079   am__EXEEXT_TRUE='#'
18080   am__EXEEXT_FALSE=
18081 fi
18082
18083 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
18084   as_fn_error $? "conditional \"OS_WIN32\" was never defined.
18085 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18086 fi
18087 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18088   as_fn_error $? "conditional \"AMDEP\" was never defined.
18089 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18090 fi
18091 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18092   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18093 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18094 fi
18095 if test -z "${OS_QUARTZ_TRUE}" && test -z "${OS_QUARTZ_FALSE}"; then
18096   as_fn_error $? "conditional \"OS_QUARTZ\" was never defined.
18097 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18098 fi
18099 if test -z "${PROFILE_TRUE}" && test -z "${PROFILE_FALSE}"; then
18100   as_fn_error $? "conditional \"PROFILE\" was never defined.
18101 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18102 fi
18103 if test -z "${BUILD_COGL_PANGO_TRUE}" && test -z "${BUILD_COGL_PANGO_FALSE}"; then
18104   as_fn_error $? "conditional \"BUILD_COGL_PANGO\" was never defined.
18105 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18106 fi
18107 if test -z "${INSTALL_EXAMPLES_TRUE}" && test -z "${INSTALL_EXAMPLES_FALSE}"; then
18108   as_fn_error $? "conditional \"INSTALL_EXAMPLES\" was never defined.
18109 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18110 fi
18111 if test -z "${USE_GLIB_TRUE}" && test -z "${USE_GLIB_FALSE}"; then
18112   as_fn_error $? "conditional \"USE_GLIB\" was never defined.
18113 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18114 fi
18115 if test -z "${COGL_DRIVER_GL_SUPPORTED_TRUE}" && test -z "${COGL_DRIVER_GL_SUPPORTED_FALSE}"; then
18116   as_fn_error $? "conditional \"COGL_DRIVER_GL_SUPPORTED\" was never defined.
18117 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18118 fi
18119 if test -z "${COGL_DRIVER_GLES_SUPPORTED_TRUE}" && test -z "${COGL_DRIVER_GLES_SUPPORTED_FALSE}"; then
18120   as_fn_error $? "conditional \"COGL_DRIVER_GLES_SUPPORTED\" was never defined.
18121 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18122 fi
18123 if test -z "${SUPPORT_GLX_TRUE}" && test -z "${SUPPORT_GLX_FALSE}"; then
18124   as_fn_error $? "conditional \"SUPPORT_GLX\" was never defined.
18125 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18126 fi
18127 if test -z "${SUPPORT_WGL_TRUE}" && test -z "${SUPPORT_WGL_FALSE}"; then
18128   as_fn_error $? "conditional \"SUPPORT_WGL\" was never defined.
18129 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18130 fi
18131 if test -z "${SUPPORT_EGL_PLATFORM_POWERVR_NULL_TRUE}" && test -z "${SUPPORT_EGL_PLATFORM_POWERVR_NULL_FALSE}"; then
18132   as_fn_error $? "conditional \"SUPPORT_EGL_PLATFORM_POWERVR_NULL\" was never defined.
18133 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18134 fi
18135 if test -z "${SUPPORT_EGL_PLATFORM_GDL_TRUE}" && test -z "${SUPPORT_EGL_PLATFORM_GDL_FALSE}"; then
18136   as_fn_error $? "conditional \"SUPPORT_EGL_PLATFORM_GDL\" was never defined.
18137 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18138 fi
18139 if test -z "${SUPPORT_EGL_PLATFORM_WAYLAND_TRUE}" && test -z "${SUPPORT_EGL_PLATFORM_WAYLAND_FALSE}"; then
18140   as_fn_error $? "conditional \"SUPPORT_EGL_PLATFORM_WAYLAND\" was never defined.
18141 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18142 fi
18143 if test -z "${SUPPORT_EGL_PLATFORM_KMS_TRUE}" && test -z "${SUPPORT_EGL_PLATFORM_KMS_FALSE}"; then
18144   as_fn_error $? "conditional \"SUPPORT_EGL_PLATFORM_KMS\" was never defined.
18145 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18146 fi
18147 if test -z "${SUPPORT_WAYLAND_EGL_SERVER_TRUE}" && test -z "${SUPPORT_WAYLAND_EGL_SERVER_FALSE}"; then
18148   as_fn_error $? "conditional \"SUPPORT_WAYLAND_EGL_SERVER\" was never defined.
18149 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18150 fi
18151 if test -z "${SUPPORT_EGL_PLATFORM_ANDROID_TRUE}" && test -z "${SUPPORT_EGL_PLATFORM_ANDROID_FALSE}"; then
18152   as_fn_error $? "conditional \"SUPPORT_EGL_PLATFORM_ANDROID\" was never defined.
18153 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18154 fi
18155 if test -z "${SUPPORT_EGL_PLATFORM_XLIB_TRUE}" && test -z "${SUPPORT_EGL_PLATFORM_XLIB_FALSE}"; then
18156   as_fn_error $? "conditional \"SUPPORT_EGL_PLATFORM_XLIB\" was never defined.
18157 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18158 fi
18159 if test -z "${SUPPORT_EGL_TRUE}" && test -z "${SUPPORT_EGL_FALSE}"; then
18160   as_fn_error $? "conditional \"SUPPORT_EGL\" was never defined.
18161 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18162 fi
18163 if test -z "${SUPPORT_SDL_TRUE}" && test -z "${SUPPORT_SDL_FALSE}"; then
18164   as_fn_error $? "conditional \"SUPPORT_SDL\" was never defined.
18165 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18166 fi
18167 if test -z "${X11_TESTS_TRUE}" && test -z "${X11_TESTS_FALSE}"; then
18168   as_fn_error $? "conditional \"X11_TESTS\" was never defined.
18169 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18170 fi
18171 if test -z "${SUPPORT_X11_TRUE}" && test -z "${SUPPORT_X11_FALSE}"; then
18172   as_fn_error $? "conditional \"SUPPORT_X11\" was never defined.
18173 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18174 fi
18175 if test -z "${SUPPORT_XLIB_TRUE}" && test -z "${SUPPORT_XLIB_FALSE}"; then
18176   as_fn_error $? "conditional \"SUPPORT_XLIB\" was never defined.
18177 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18178 fi
18179 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18180   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18181 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18182 fi
18183 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
18184   as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
18185 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18186 fi
18187 if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
18188   as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
18189 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18190 fi
18191 if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
18192   as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
18193 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18194 fi
18195 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
18196   as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
18197 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18198 fi
18199 if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
18200   as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
18201 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18202 fi
18203 if test -z "${BUILD_GTK_DOC_TRUE}" && test -z "${BUILD_GTK_DOC_FALSE}"; then
18204   as_fn_error $? "conditional \"BUILD_GTK_DOC\" was never defined.
18205 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18206 fi
18207 if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
18208   as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
18209 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18210 fi
18211
18212 : "${CONFIG_STATUS=./config.status}"
18213 ac_write_fail=0
18214 ac_clean_files_save=$ac_clean_files
18215 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18216 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18217 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18218 as_write_fail=0
18219 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18220 #! $SHELL
18221 # Generated by $as_me.
18222 # Run this file to recreate the current configuration.
18223 # Compiler output produced by configure, useful for debugging
18224 # configure, is in config.log if it exists.
18225
18226 debug=false
18227 ac_cs_recheck=false
18228 ac_cs_silent=false
18229
18230 SHELL=\${CONFIG_SHELL-$SHELL}
18231 export SHELL
18232 _ASEOF
18233 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18234 ## -------------------- ##
18235 ## M4sh Initialization. ##
18236 ## -------------------- ##
18237
18238 # Be more Bourne compatible
18239 DUALCASE=1; export DUALCASE # for MKS sh
18240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18241   emulate sh
18242   NULLCMD=:
18243   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18244   # is contrary to our usage.  Disable this feature.
18245   alias -g '${1+"$@"}'='"$@"'
18246   setopt NO_GLOB_SUBST
18247 else
18248   case `(set -o) 2>/dev/null` in #(
18249   *posix*) :
18250     set -o posix ;; #(
18251   *) :
18252      ;;
18253 esac
18254 fi
18255
18256
18257 as_nl='
18258 '
18259 export as_nl
18260 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18261 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18262 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18263 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18264 # Prefer a ksh shell builtin over an external printf program on Solaris,
18265 # but without wasting forks for bash or zsh.
18266 if test -z "$BASH_VERSION$ZSH_VERSION" \
18267     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18268   as_echo='print -r --'
18269   as_echo_n='print -rn --'
18270 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18271   as_echo='printf %s\n'
18272   as_echo_n='printf %s'
18273 else
18274   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18275     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18276     as_echo_n='/usr/ucb/echo -n'
18277   else
18278     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18279     as_echo_n_body='eval
18280       arg=$1;
18281       case $arg in #(
18282       *"$as_nl"*)
18283         expr "X$arg" : "X\\(.*\\)$as_nl";
18284         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18285       esac;
18286       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18287     '
18288     export as_echo_n_body
18289     as_echo_n='sh -c $as_echo_n_body as_echo'
18290   fi
18291   export as_echo_body
18292   as_echo='sh -c $as_echo_body as_echo'
18293 fi
18294
18295 # The user is always right.
18296 if test "${PATH_SEPARATOR+set}" != set; then
18297   PATH_SEPARATOR=:
18298   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18299     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18300       PATH_SEPARATOR=';'
18301   }
18302 fi
18303
18304
18305 # IFS
18306 # We need space, tab and new line, in precisely that order.  Quoting is
18307 # there to prevent editors from complaining about space-tab.
18308 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18309 # splitting by setting IFS to empty value.)
18310 IFS=" ""        $as_nl"
18311
18312 # Find who we are.  Look in the path if we contain no directory separator.
18313 as_myself=
18314 case $0 in #((
18315   *[\\/]* ) as_myself=$0 ;;
18316   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18317 for as_dir in $PATH
18318 do
18319   IFS=$as_save_IFS
18320   test -z "$as_dir" && as_dir=.
18321     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18322   done
18323 IFS=$as_save_IFS
18324
18325      ;;
18326 esac
18327 # We did not find ourselves, most probably we were run as `sh COMMAND'
18328 # in which case we are not to be found in the path.
18329 if test "x$as_myself" = x; then
18330   as_myself=$0
18331 fi
18332 if test ! -f "$as_myself"; then
18333   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18334   exit 1
18335 fi
18336
18337 # Unset variables that we do not need and which cause bugs (e.g. in
18338 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18339 # suppresses any "Segmentation fault" message there.  '((' could
18340 # trigger a bug in pdksh 5.2.14.
18341 for as_var in BASH_ENV ENV MAIL MAILPATH
18342 do eval test x\${$as_var+set} = xset \
18343   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18344 done
18345 PS1='$ '
18346 PS2='> '
18347 PS4='+ '
18348
18349 # NLS nuisances.
18350 LC_ALL=C
18351 export LC_ALL
18352 LANGUAGE=C
18353 export LANGUAGE
18354
18355 # CDPATH.
18356 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18357
18358
18359 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18360 # ----------------------------------------
18361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18363 # script with STATUS, using 1 if that was 0.
18364 as_fn_error ()
18365 {
18366   as_status=$1; test $as_status -eq 0 && as_status=1
18367   if test "$4"; then
18368     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18369     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18370   fi
18371   $as_echo "$as_me: error: $2" >&2
18372   as_fn_exit $as_status
18373 } # as_fn_error
18374
18375
18376 # as_fn_set_status STATUS
18377 # -----------------------
18378 # Set $? to STATUS, without forking.
18379 as_fn_set_status ()
18380 {
18381   return $1
18382 } # as_fn_set_status
18383
18384 # as_fn_exit STATUS
18385 # -----------------
18386 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18387 as_fn_exit ()
18388 {
18389   set +e
18390   as_fn_set_status $1
18391   exit $1
18392 } # as_fn_exit
18393
18394 # as_fn_unset VAR
18395 # ---------------
18396 # Portably unset VAR.
18397 as_fn_unset ()
18398 {
18399   { eval $1=; unset $1;}
18400 }
18401 as_unset=as_fn_unset
18402 # as_fn_append VAR VALUE
18403 # ----------------------
18404 # Append the text in VALUE to the end of the definition contained in VAR. Take
18405 # advantage of any shell optimizations that allow amortized linear growth over
18406 # repeated appends, instead of the typical quadratic growth present in naive
18407 # implementations.
18408 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18409   eval 'as_fn_append ()
18410   {
18411     eval $1+=\$2
18412   }'
18413 else
18414   as_fn_append ()
18415   {
18416     eval $1=\$$1\$2
18417   }
18418 fi # as_fn_append
18419
18420 # as_fn_arith ARG...
18421 # ------------------
18422 # Perform arithmetic evaluation on the ARGs, and store the result in the
18423 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18424 # must be portable across $(()) and expr.
18425 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18426   eval 'as_fn_arith ()
18427   {
18428     as_val=$(( $* ))
18429   }'
18430 else
18431   as_fn_arith ()
18432   {
18433     as_val=`expr "$@" || test $? -eq 1`
18434   }
18435 fi # as_fn_arith
18436
18437
18438 if expr a : '\(a\)' >/dev/null 2>&1 &&
18439    test "X`expr 00001 : '.*\(...\)'`" = X001; then
18440   as_expr=expr
18441 else
18442   as_expr=false
18443 fi
18444
18445 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18446   as_basename=basename
18447 else
18448   as_basename=false
18449 fi
18450
18451 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18452   as_dirname=dirname
18453 else
18454   as_dirname=false
18455 fi
18456
18457 as_me=`$as_basename -- "$0" ||
18458 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18459          X"$0" : 'X\(//\)$' \| \
18460          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18461 $as_echo X/"$0" |
18462     sed '/^.*\/\([^/][^/]*\)\/*$/{
18463             s//\1/
18464             q
18465           }
18466           /^X\/\(\/\/\)$/{
18467             s//\1/
18468             q
18469           }
18470           /^X\/\(\/\).*/{
18471             s//\1/
18472             q
18473           }
18474           s/.*/./; q'`
18475
18476 # Avoid depending upon Character Ranges.
18477 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18478 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18479 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18480 as_cr_digits='0123456789'
18481 as_cr_alnum=$as_cr_Letters$as_cr_digits
18482
18483 ECHO_C= ECHO_N= ECHO_T=
18484 case `echo -n x` in #(((((
18485 -n*)
18486   case `echo 'xy\c'` in
18487   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
18488   xy)  ECHO_C='\c';;
18489   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18490        ECHO_T=' ';;
18491   esac;;
18492 *)
18493   ECHO_N='-n';;
18494 esac
18495
18496 rm -f conf$$ conf$$.exe conf$$.file
18497 if test -d conf$$.dir; then
18498   rm -f conf$$.dir/conf$$.file
18499 else
18500   rm -f conf$$.dir
18501   mkdir conf$$.dir 2>/dev/null
18502 fi
18503 if (echo >conf$$.file) 2>/dev/null; then
18504   if ln -s conf$$.file conf$$ 2>/dev/null; then
18505     as_ln_s='ln -s'
18506     # ... but there are two gotchas:
18507     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18508     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18509     # In both cases, we have to default to `cp -p'.
18510     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18511       as_ln_s='cp -p'
18512   elif ln conf$$.file conf$$ 2>/dev/null; then
18513     as_ln_s=ln
18514   else
18515     as_ln_s='cp -p'
18516   fi
18517 else
18518   as_ln_s='cp -p'
18519 fi
18520 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18521 rmdir conf$$.dir 2>/dev/null
18522
18523
18524 # as_fn_mkdir_p
18525 # -------------
18526 # Create "$as_dir" as a directory, including parents if necessary.
18527 as_fn_mkdir_p ()
18528 {
18529
18530   case $as_dir in #(
18531   -*) as_dir=./$as_dir;;
18532   esac
18533   test -d "$as_dir" || eval $as_mkdir_p || {
18534     as_dirs=
18535     while :; do
18536       case $as_dir in #(
18537       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18538       *) as_qdir=$as_dir;;
18539       esac
18540       as_dirs="'$as_qdir' $as_dirs"
18541       as_dir=`$as_dirname -- "$as_dir" ||
18542 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18543          X"$as_dir" : 'X\(//\)[^/]' \| \
18544          X"$as_dir" : 'X\(//\)$' \| \
18545          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18546 $as_echo X"$as_dir" |
18547     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18548             s//\1/
18549             q
18550           }
18551           /^X\(\/\/\)[^/].*/{
18552             s//\1/
18553             q
18554           }
18555           /^X\(\/\/\)$/{
18556             s//\1/
18557             q
18558           }
18559           /^X\(\/\).*/{
18560             s//\1/
18561             q
18562           }
18563           s/.*/./; q'`
18564       test -d "$as_dir" && break
18565     done
18566     test -z "$as_dirs" || eval "mkdir $as_dirs"
18567   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18568
18569
18570 } # as_fn_mkdir_p
18571 if mkdir -p . 2>/dev/null; then
18572   as_mkdir_p='mkdir -p "$as_dir"'
18573 else
18574   test -d ./-p && rmdir ./-p
18575   as_mkdir_p=false
18576 fi
18577
18578 if test -x / >/dev/null 2>&1; then
18579   as_test_x='test -x'
18580 else
18581   if ls -dL / >/dev/null 2>&1; then
18582     as_ls_L_option=L
18583   else
18584     as_ls_L_option=
18585   fi
18586   as_test_x='
18587     eval sh -c '\''
18588       if test -d "$1"; then
18589         test -d "$1/.";
18590       else
18591         case $1 in #(
18592         -*)set "./$1";;
18593         esac;
18594         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18595         ???[sx]*):;;*)false;;esac;fi
18596     '\'' sh
18597   '
18598 fi
18599 as_executable_p=$as_test_x
18600
18601 # Sed expression to map a string onto a valid CPP name.
18602 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18603
18604 # Sed expression to map a string onto a valid variable name.
18605 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18606
18607
18608 exec 6>&1
18609 ## ----------------------------------- ##
18610 ## Main body of $CONFIG_STATUS script. ##
18611 ## ----------------------------------- ##
18612 _ASEOF
18613 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18614
18615 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18616 # Save the log message, to keep $0 and so on meaningful, and to
18617 # report actual input values of CONFIG_FILES etc. instead of their
18618 # values after options handling.
18619 ac_log="
18620 This file was extended by cogl $as_me 1.10.2, which was
18621 generated by GNU Autoconf 2.68.  Invocation command line was
18622
18623   CONFIG_FILES    = $CONFIG_FILES
18624   CONFIG_HEADERS  = $CONFIG_HEADERS
18625   CONFIG_LINKS    = $CONFIG_LINKS
18626   CONFIG_COMMANDS = $CONFIG_COMMANDS
18627   $ $0 $@
18628
18629 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18630 "
18631
18632 _ACEOF
18633
18634 case $ac_config_files in *"
18635 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18636 esac
18637
18638 case $ac_config_headers in *"
18639 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18640 esac
18641
18642
18643 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18644 # Files that config.status was made for.
18645 config_files="$ac_config_files"
18646 config_headers="$ac_config_headers"
18647 config_commands="$ac_config_commands"
18648
18649 _ACEOF
18650
18651 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18652 ac_cs_usage="\
18653 \`$as_me' instantiates files and other configuration actions
18654 from templates according to the current configuration.  Unless the files
18655 and actions are specified as TAGs, all are instantiated by default.
18656
18657 Usage: $0 [OPTION]... [TAG]...
18658
18659   -h, --help       print this help, then exit
18660   -V, --version    print version number and configuration settings, then exit
18661       --config     print configuration, then exit
18662   -q, --quiet, --silent
18663                    do not print progress messages
18664   -d, --debug      don't remove temporary files
18665       --recheck    update $as_me by reconfiguring in the same conditions
18666       --file=FILE[:TEMPLATE]
18667                    instantiate the configuration file FILE
18668       --header=FILE[:TEMPLATE]
18669                    instantiate the configuration header FILE
18670
18671 Configuration files:
18672 $config_files
18673
18674 Configuration headers:
18675 $config_headers
18676
18677 Configuration commands:
18678 $config_commands
18679
18680 Report bugs to the package provider."
18681
18682 _ACEOF
18683 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18684 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18685 ac_cs_version="\\
18686 cogl config.status 1.10.2
18687 configured by $0, generated by GNU Autoconf 2.68,
18688   with options \\"\$ac_cs_config\\"
18689
18690 Copyright (C) 2010 Free Software Foundation, Inc.
18691 This config.status script is free software; the Free Software Foundation
18692 gives unlimited permission to copy, distribute and modify it."
18693
18694 ac_pwd='$ac_pwd'
18695 srcdir='$srcdir'
18696 INSTALL='$INSTALL'
18697 MKDIR_P='$MKDIR_P'
18698 AWK='$AWK'
18699 test -n "\$AWK" || AWK=awk
18700 _ACEOF
18701
18702 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18703 # The default lists apply if the user does not specify any file.
18704 ac_need_defaults=:
18705 while test $# != 0
18706 do
18707   case $1 in
18708   --*=?*)
18709     ac_option=`expr "X$1" : 'X\([^=]*\)='`
18710     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18711     ac_shift=:
18712     ;;
18713   --*=)
18714     ac_option=`expr "X$1" : 'X\([^=]*\)='`
18715     ac_optarg=
18716     ac_shift=:
18717     ;;
18718   *)
18719     ac_option=$1
18720     ac_optarg=$2
18721     ac_shift=shift
18722     ;;
18723   esac
18724
18725   case $ac_option in
18726   # Handling of the options.
18727   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18728     ac_cs_recheck=: ;;
18729   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18730     $as_echo "$ac_cs_version"; exit ;;
18731   --config | --confi | --conf | --con | --co | --c )
18732     $as_echo "$ac_cs_config"; exit ;;
18733   --debug | --debu | --deb | --de | --d | -d )
18734     debug=: ;;
18735   --file | --fil | --fi | --f )
18736     $ac_shift
18737     case $ac_optarg in
18738     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18739     '') as_fn_error $? "missing file argument" ;;
18740     esac
18741     as_fn_append CONFIG_FILES " '$ac_optarg'"
18742     ac_need_defaults=false;;
18743   --header | --heade | --head | --hea )
18744     $ac_shift
18745     case $ac_optarg in
18746     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18747     esac
18748     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18749     ac_need_defaults=false;;
18750   --he | --h)
18751     # Conflict between --help and --header
18752     as_fn_error $? "ambiguous option: \`$1'
18753 Try \`$0 --help' for more information.";;
18754   --help | --hel | -h )
18755     $as_echo "$ac_cs_usage"; exit ;;
18756   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18757   | -silent | --silent | --silen | --sile | --sil | --si | --s)
18758     ac_cs_silent=: ;;
18759
18760   # This is an error.
18761   -*) as_fn_error $? "unrecognized option: \`$1'
18762 Try \`$0 --help' for more information." ;;
18763
18764   *) as_fn_append ac_config_targets " $1"
18765      ac_need_defaults=false ;;
18766
18767   esac
18768   shift
18769 done
18770
18771 ac_configure_extra_args=
18772
18773 if $ac_cs_silent; then
18774   exec 6>/dev/null
18775   ac_configure_extra_args="$ac_configure_extra_args --silent"
18776 fi
18777
18778 _ACEOF
18779 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18780 if \$ac_cs_recheck; then
18781   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18782   shift
18783   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18784   CONFIG_SHELL='$SHELL'
18785   export CONFIG_SHELL
18786   exec "\$@"
18787 fi
18788
18789 _ACEOF
18790 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18791 exec 5>>config.log
18792 {
18793   echo
18794   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18795 ## Running $as_me. ##
18796 _ASBOX
18797   $as_echo "$ac_log"
18798 } >&5
18799
18800 _ACEOF
18801 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18802 #
18803 # INIT-COMMANDS
18804 #
18805 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18806
18807
18808 # The HP-UX ksh and POSIX shell print the target directory to stdout
18809 # if CDPATH is set.
18810 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18811
18812 sed_quote_subst='$sed_quote_subst'
18813 double_quote_subst='$double_quote_subst'
18814 delay_variable_subst='$delay_variable_subst'
18815 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18816 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18817 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18818 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18819 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18820 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18821 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18822 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18823 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18824 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18825 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18826 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18827 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18828 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18829 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18830 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18831 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18832 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18833 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18834 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18835 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18836 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18837 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18838 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18839 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18840 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18841 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18842 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18843 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18844 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18845 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18846 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18847 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18848 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18849 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18850 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18851 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18852 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18853 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18854 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18855 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18856 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18857 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18858 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18859 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18860 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18861 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18862 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18863 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18864 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18865 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18866 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18867 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18868 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18869 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18870 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"`'
18871 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18872 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18873 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18874 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18875 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18876 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18877 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18878 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18879 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18880 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18881 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18882 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18883 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18884 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18885 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18886 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18887 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18888 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18889 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18890 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18891 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18892 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18893 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18894 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18895 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18896 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18897 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18898 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18899 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18900 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18901 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18902 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18903 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18904 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18905 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18906 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18907 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18908 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18909 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18910 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18911 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18912 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18913 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18914 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18915 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18916 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18917 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18918 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18919 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18920 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18921 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18922 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18923 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18924 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18925 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18926 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18927 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18928 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18929 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18930 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18931 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18932 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18933 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18934 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18935 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18936 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18937 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18938 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18939 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18940 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18941 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18942 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18943 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18944 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18945
18946 LTCC='$LTCC'
18947 LTCFLAGS='$LTCFLAGS'
18948 compiler='$compiler_DEFAULT'
18949
18950 # A function that is used when there is no print builtin or printf.
18951 func_fallback_echo ()
18952 {
18953   eval 'cat <<_LTECHO_EOF
18954 \$1
18955 _LTECHO_EOF'
18956 }
18957
18958 # Quote evaled strings.
18959 for var in SHELL \
18960 ECHO \
18961 SED \
18962 GREP \
18963 EGREP \
18964 FGREP \
18965 LD \
18966 NM \
18967 LN_S \
18968 lt_SP2NL \
18969 lt_NL2SP \
18970 reload_flag \
18971 OBJDUMP \
18972 deplibs_check_method \
18973 file_magic_cmd \
18974 file_magic_glob \
18975 want_nocaseglob \
18976 DLLTOOL \
18977 sharedlib_from_linklib_cmd \
18978 AR \
18979 AR_FLAGS \
18980 archiver_list_spec \
18981 STRIP \
18982 RANLIB \
18983 CC \
18984 CFLAGS \
18985 compiler \
18986 lt_cv_sys_global_symbol_pipe \
18987 lt_cv_sys_global_symbol_to_cdecl \
18988 lt_cv_sys_global_symbol_to_c_name_address \
18989 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18990 nm_file_list_spec \
18991 lt_prog_compiler_no_builtin_flag \
18992 lt_prog_compiler_pic \
18993 lt_prog_compiler_wl \
18994 lt_prog_compiler_static \
18995 lt_cv_prog_compiler_c_o \
18996 need_locks \
18997 MANIFEST_TOOL \
18998 DSYMUTIL \
18999 NMEDIT \
19000 LIPO \
19001 OTOOL \
19002 OTOOL64 \
19003 shrext_cmds \
19004 export_dynamic_flag_spec \
19005 whole_archive_flag_spec \
19006 compiler_needs_object \
19007 with_gnu_ld \
19008 allow_undefined_flag \
19009 no_undefined_flag \
19010 hardcode_libdir_flag_spec \
19011 hardcode_libdir_flag_spec_ld \
19012 hardcode_libdir_separator \
19013 exclude_expsyms \
19014 include_expsyms \
19015 file_list_spec \
19016 variables_saved_for_relink \
19017 libname_spec \
19018 library_names_spec \
19019 soname_spec \
19020 install_override_mode \
19021 finish_eval \
19022 old_striplib \
19023 striplib; do
19024     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19025     *[\\\\\\\`\\"\\\$]*)
19026       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19027       ;;
19028     *)
19029       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19030       ;;
19031     esac
19032 done
19033
19034 # Double-quote double-evaled strings.
19035 for var in reload_cmds \
19036 old_postinstall_cmds \
19037 old_postuninstall_cmds \
19038 old_archive_cmds \
19039 extract_expsyms_cmds \
19040 old_archive_from_new_cmds \
19041 old_archive_from_expsyms_cmds \
19042 archive_cmds \
19043 archive_expsym_cmds \
19044 module_cmds \
19045 module_expsym_cmds \
19046 export_symbols_cmds \
19047 prelink_cmds \
19048 postlink_cmds \
19049 postinstall_cmds \
19050 postuninstall_cmds \
19051 finish_cmds \
19052 sys_lib_search_path_spec \
19053 sys_lib_dlsearch_path_spec; do
19054     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19055     *[\\\\\\\`\\"\\\$]*)
19056       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19057       ;;
19058     *)
19059       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19060       ;;
19061     esac
19062 done
19063
19064 ac_aux_dir='$ac_aux_dir'
19065 xsi_shell='$xsi_shell'
19066 lt_shell_append='$lt_shell_append'
19067
19068 # See if we are running on zsh, and set the options which allow our
19069 # commands through without removal of \ escapes INIT.
19070 if test -n "\${ZSH_VERSION+set}" ; then
19071    setopt NO_GLOB_SUBST
19072 fi
19073
19074
19075     PACKAGE='$PACKAGE'
19076     VERSION='$VERSION'
19077     TIMESTAMP='$TIMESTAMP'
19078     RM='$RM'
19079     ofile='$ofile'
19080
19081
19082
19083 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
19084     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
19085     # from automake < 1.5.
19086     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
19087     # Capture the value of LINGUAS because we need it to compute CATALOGS.
19088     LINGUAS="${LINGUAS-%UNSET%}"
19089
19090
19091 _ACEOF
19092
19093 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19094
19095 # Handling of arguments.
19096 for ac_config_target in $ac_config_targets
19097 do
19098   case $ac_config_target in
19099     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19100     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19101     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19102     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
19103     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19104     "README") CONFIG_FILES="$CONFIG_FILES README" ;;
19105     "config.h.win32") CONFIG_FILES="$CONFIG_FILES config.h.win32" ;;
19106     "build/Makefile") CONFIG_FILES="$CONFIG_FILES build/Makefile" ;;
19107     "build/win32/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32/Makefile" ;;
19108     "build/win32/vs9/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32/vs9/Makefile" ;;
19109     "build/win32/vs10/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32/vs10/Makefile" ;;
19110     "cogl/Makefile") CONFIG_FILES="$CONFIG_FILES cogl/Makefile" ;;
19111     "cogl/cogl-1.0.pc") CONFIG_FILES="$CONFIG_FILES cogl/cogl-1.0.pc" ;;
19112     "cogl/cogl-2.0-experimental.pc") CONFIG_FILES="$CONFIG_FILES cogl/cogl-2.0-experimental.pc" ;;
19113     "cogl/cogl-defines.h") CONFIG_FILES="$CONFIG_FILES cogl/cogl-defines.h" ;;
19114     "cogl/cogl.rc") CONFIG_FILES="$CONFIG_FILES cogl/cogl.rc" ;;
19115     "cogl-pango/Makefile") CONFIG_FILES="$CONFIG_FILES cogl-pango/Makefile" ;;
19116     "cogl-pango/cogl-pango-1.0.pc") CONFIG_FILES="$CONFIG_FILES cogl-pango/cogl-pango-1.0.pc" ;;
19117     "cogl-pango/cogl-pango-2.0-experimental.pc") CONFIG_FILES="$CONFIG_FILES cogl-pango/cogl-pango-2.0-experimental.pc" ;;
19118     "cogl-pango/cogl-pango.rc") CONFIG_FILES="$CONFIG_FILES cogl-pango/cogl-pango.rc" ;;
19119     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
19120     "doc/reference/Makefile") CONFIG_FILES="$CONFIG_FILES doc/reference/Makefile" ;;
19121     "doc/reference/cogl/Makefile") CONFIG_FILES="$CONFIG_FILES doc/reference/cogl/Makefile" ;;
19122     "doc/reference/cogl/cogl-docs.xml") CONFIG_FILES="$CONFIG_FILES doc/reference/cogl/cogl-docs.xml" ;;
19123     "doc/reference/cogl-2.0-experimental/Makefile") CONFIG_FILES="$CONFIG_FILES doc/reference/cogl-2.0-experimental/Makefile" ;;
19124     "doc/reference/cogl-2.0-experimental/cogl-2.0-experimental-docs.xml") CONFIG_FILES="$CONFIG_FILES doc/reference/cogl-2.0-experimental/cogl-2.0-experimental-docs.xml" ;;
19125     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
19126     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
19127     "tests/conform/Makefile") CONFIG_FILES="$CONFIG_FILES tests/conform/Makefile" ;;
19128     "tests/conform/config.env") CONFIG_FILES="$CONFIG_FILES tests/conform/config.env" ;;
19129     "tests/conform/test-launcher.sh") CONFIG_FILES="$CONFIG_FILES tests/conform/test-launcher.sh" ;;
19130     "tests/data/Makefile") CONFIG_FILES="$CONFIG_FILES tests/data/Makefile" ;;
19131     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
19132
19133   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19134   esac
19135 done
19136
19137
19138 # If the user did not use the arguments to specify the items to instantiate,
19139 # then the envvar interface is used.  Set only those that are not.
19140 # We use the long form for the default assignment because of an extremely
19141 # bizarre bug on SunOS 4.1.3.
19142 if $ac_need_defaults; then
19143   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19144   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19145   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19146 fi
19147
19148 # Have a temporary directory for convenience.  Make it in the build tree
19149 # simply because there is no reason against having it here, and in addition,
19150 # creating and moving files from /tmp can sometimes cause problems.
19151 # Hook for its removal unless debugging.
19152 # Note that there is a small window in which the directory will not be cleaned:
19153 # after its creation but before its name has been assigned to `$tmp'.
19154 $debug ||
19155 {
19156   tmp= ac_tmp=
19157   trap 'exit_status=$?
19158   : "${ac_tmp:=$tmp}"
19159   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19160 ' 0
19161   trap 'as_fn_exit 1' 1 2 13 15
19162 }
19163 # Create a (secure) tmp directory for tmp files.
19164
19165 {
19166   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19167   test -d "$tmp"
19168 }  ||
19169 {
19170   tmp=./conf$$-$RANDOM
19171   (umask 077 && mkdir "$tmp")
19172 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19173 ac_tmp=$tmp
19174
19175 # Set up the scripts for CONFIG_FILES section.
19176 # No need to generate them if there are no CONFIG_FILES.
19177 # This happens for instance with `./config.status config.h'.
19178 if test -n "$CONFIG_FILES"; then
19179
19180
19181 ac_cr=`echo X | tr X '\015'`
19182 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19183 # But we know of no other shell where ac_cr would be empty at this
19184 # point, so we can use a bashism as a fallback.
19185 if test "x$ac_cr" = x; then
19186   eval ac_cr=\$\'\\r\'
19187 fi
19188 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19189 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19190   ac_cs_awk_cr='\\r'
19191 else
19192   ac_cs_awk_cr=$ac_cr
19193 fi
19194
19195 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19196 _ACEOF
19197
19198
19199 {
19200   echo "cat >conf$$subs.awk <<_ACEOF" &&
19201   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19202   echo "_ACEOF"
19203 } >conf$$subs.sh ||
19204   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19205 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19206 ac_delim='%!_!# '
19207 for ac_last_try in false false false false false :; do
19208   . ./conf$$subs.sh ||
19209     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19210
19211   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19212   if test $ac_delim_n = $ac_delim_num; then
19213     break
19214   elif $ac_last_try; then
19215     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19216   else
19217     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19218   fi
19219 done
19220 rm -f conf$$subs.sh
19221
19222 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19223 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19224 _ACEOF
19225 sed -n '
19226 h
19227 s/^/S["/; s/!.*/"]=/
19228 p
19229 g
19230 s/^[^!]*!//
19231 :repl
19232 t repl
19233 s/'"$ac_delim"'$//
19234 t delim
19235 :nl
19236 h
19237 s/\(.\{148\}\)..*/\1/
19238 t more1
19239 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19240 p
19241 n
19242 b repl
19243 :more1
19244 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19245 p
19246 g
19247 s/.\{148\}//
19248 t nl
19249 :delim
19250 h
19251 s/\(.\{148\}\)..*/\1/
19252 t more2
19253 s/["\\]/\\&/g; s/^/"/; s/$/"/
19254 p
19255 b
19256 :more2
19257 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19258 p
19259 g
19260 s/.\{148\}//
19261 t delim
19262 ' <conf$$subs.awk | sed '
19263 /^[^""]/{
19264   N
19265   s/\n//
19266 }
19267 ' >>$CONFIG_STATUS || ac_write_fail=1
19268 rm -f conf$$subs.awk
19269 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19270 _ACAWK
19271 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19272   for (key in S) S_is_set[key] = 1
19273   FS = "\a"
19274
19275 }
19276 {
19277   line = $ 0
19278   nfields = split(line, field, "@")
19279   substed = 0
19280   len = length(field[1])
19281   for (i = 2; i < nfields; i++) {
19282     key = field[i]
19283     keylen = length(key)
19284     if (S_is_set[key]) {
19285       value = S[key]
19286       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19287       len += length(value) + length(field[++i])
19288       substed = 1
19289     } else
19290       len += 1 + keylen
19291   }
19292
19293   print line
19294 }
19295
19296 _ACAWK
19297 _ACEOF
19298 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19299 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19300   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19301 else
19302   cat
19303 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19304   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19305 _ACEOF
19306
19307 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19308 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19309 # trailing colons and then remove the whole line if VPATH becomes empty
19310 # (actually we leave an empty line to preserve line numbers).
19311 if test "x$srcdir" = x.; then
19312   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
19313 h
19314 s///
19315 s/^/:/
19316 s/[      ]*$/:/
19317 s/:\$(srcdir):/:/g
19318 s/:\${srcdir}:/:/g
19319 s/:@srcdir@:/:/g
19320 s/^:*//
19321 s/:*$//
19322 x
19323 s/\(=[   ]*\).*/\1/
19324 G
19325 s/\n//
19326 s/^[^=]*=[       ]*$//
19327 }'
19328 fi
19329
19330 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19331 fi # test -n "$CONFIG_FILES"
19332
19333 # Set up the scripts for CONFIG_HEADERS section.
19334 # No need to generate them if there are no CONFIG_HEADERS.
19335 # This happens for instance with `./config.status Makefile'.
19336 if test -n "$CONFIG_HEADERS"; then
19337 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19338 BEGIN {
19339 _ACEOF
19340
19341 # Transform confdefs.h into an awk script `defines.awk', embedded as
19342 # here-document in config.status, that substitutes the proper values into
19343 # config.h.in to produce config.h.
19344
19345 # Create a delimiter string that does not exist in confdefs.h, to ease
19346 # handling of long lines.
19347 ac_delim='%!_!# '
19348 for ac_last_try in false false :; do
19349   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19350   if test -z "$ac_tt"; then
19351     break
19352   elif $ac_last_try; then
19353     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19354   else
19355     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19356   fi
19357 done
19358
19359 # For the awk script, D is an array of macro values keyed by name,
19360 # likewise P contains macro parameters if any.  Preserve backslash
19361 # newline sequences.
19362
19363 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19364 sed -n '
19365 s/.\{148\}/&'"$ac_delim"'/g
19366 t rset
19367 :rset
19368 s/^[     ]*#[    ]*define[       ][      ]*/ /
19369 t def
19370 d
19371 :def
19372 s/\\$//
19373 t bsnl
19374 s/["\\]/\\&/g
19375 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
19376 D["\1"]=" \3"/p
19377 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
19378 d
19379 :bsnl
19380 s/["\\]/\\&/g
19381 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
19382 D["\1"]=" \3\\\\\\n"\\/p
19383 t cont
19384 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19385 t cont
19386 d
19387 :cont
19388 n
19389 s/.\{148\}/&'"$ac_delim"'/g
19390 t clear
19391 :clear
19392 s/\\$//
19393 t bsnlc
19394 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19395 d
19396 :bsnlc
19397 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19398 b cont
19399 ' <confdefs.h | sed '
19400 s/'"$ac_delim"'/"\\\
19401 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19402
19403 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19404   for (key in D) D_is_set[key] = 1
19405   FS = "\a"
19406 }
19407 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19408   line = \$ 0
19409   split(line, arg, " ")
19410   if (arg[1] == "#") {
19411     defundef = arg[2]
19412     mac1 = arg[3]
19413   } else {
19414     defundef = substr(arg[1], 2)
19415     mac1 = arg[2]
19416   }
19417   split(mac1, mac2, "(") #)
19418   macro = mac2[1]
19419   prefix = substr(line, 1, index(line, defundef) - 1)
19420   if (D_is_set[macro]) {
19421     # Preserve the white space surrounding the "#".
19422     print prefix "define", macro P[macro] D[macro]
19423     next
19424   } else {
19425     # Replace #undef with comments.  This is necessary, for example,
19426     # in the case of _POSIX_SOURCE, which is predefined and required
19427     # on some systems where configure will not decide to define it.
19428     if (defundef == "undef") {
19429       print "/*", prefix defundef, macro, "*/"
19430       next
19431     }
19432   }
19433 }
19434 { print }
19435 _ACAWK
19436 _ACEOF
19437 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19438   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19439 fi # test -n "$CONFIG_HEADERS"
19440
19441
19442 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19443 shift
19444 for ac_tag
19445 do
19446   case $ac_tag in
19447   :[FHLC]) ac_mode=$ac_tag; continue;;
19448   esac
19449   case $ac_mode$ac_tag in
19450   :[FHL]*:*);;
19451   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19452   :[FH]-) ac_tag=-:-;;
19453   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19454   esac
19455   ac_save_IFS=$IFS
19456   IFS=:
19457   set x $ac_tag
19458   IFS=$ac_save_IFS
19459   shift
19460   ac_file=$1
19461   shift
19462
19463   case $ac_mode in
19464   :L) ac_source=$1;;
19465   :[FH])
19466     ac_file_inputs=
19467     for ac_f
19468     do
19469       case $ac_f in
19470       -) ac_f="$ac_tmp/stdin";;
19471       *) # Look for the file first in the build tree, then in the source tree
19472          # (if the path is not absolute).  The absolute path cannot be DOS-style,
19473          # because $ac_f cannot contain `:'.
19474          test -f "$ac_f" ||
19475            case $ac_f in
19476            [\\/$]*) false;;
19477            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19478            esac ||
19479            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19480       esac
19481       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19482       as_fn_append ac_file_inputs " '$ac_f'"
19483     done
19484
19485     # Let's still pretend it is `configure' which instantiates (i.e., don't
19486     # use $as_me), people would be surprised to read:
19487     #    /* config.h.  Generated by config.status.  */
19488     configure_input='Generated from '`
19489           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19490         `' by configure.'
19491     if test x"$ac_file" != x-; then
19492       configure_input="$ac_file.  $configure_input"
19493       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19494 $as_echo "$as_me: creating $ac_file" >&6;}
19495     fi
19496     # Neutralize special characters interpreted by sed in replacement strings.
19497     case $configure_input in #(
19498     *\&* | *\|* | *\\* )
19499        ac_sed_conf_input=`$as_echo "$configure_input" |
19500        sed 's/[\\\\&|]/\\\\&/g'`;; #(
19501     *) ac_sed_conf_input=$configure_input;;
19502     esac
19503
19504     case $ac_tag in
19505     *:-:* | *:-) cat >"$ac_tmp/stdin" \
19506       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19507     esac
19508     ;;
19509   esac
19510
19511   ac_dir=`$as_dirname -- "$ac_file" ||
19512 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19513          X"$ac_file" : 'X\(//\)[^/]' \| \
19514          X"$ac_file" : 'X\(//\)$' \| \
19515          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19516 $as_echo X"$ac_file" |
19517     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19518             s//\1/
19519             q
19520           }
19521           /^X\(\/\/\)[^/].*/{
19522             s//\1/
19523             q
19524           }
19525           /^X\(\/\/\)$/{
19526             s//\1/
19527             q
19528           }
19529           /^X\(\/\).*/{
19530             s//\1/
19531             q
19532           }
19533           s/.*/./; q'`
19534   as_dir="$ac_dir"; as_fn_mkdir_p
19535   ac_builddir=.
19536
19537 case "$ac_dir" in
19538 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19539 *)
19540   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19541   # A ".." for each directory in $ac_dir_suffix.
19542   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19543   case $ac_top_builddir_sub in
19544   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19545   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19546   esac ;;
19547 esac
19548 ac_abs_top_builddir=$ac_pwd
19549 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19550 # for backward compatibility:
19551 ac_top_builddir=$ac_top_build_prefix
19552
19553 case $srcdir in
19554   .)  # We are building in place.
19555     ac_srcdir=.
19556     ac_top_srcdir=$ac_top_builddir_sub
19557     ac_abs_top_srcdir=$ac_pwd ;;
19558   [\\/]* | ?:[\\/]* )  # Absolute name.
19559     ac_srcdir=$srcdir$ac_dir_suffix;
19560     ac_top_srcdir=$srcdir
19561     ac_abs_top_srcdir=$srcdir ;;
19562   *) # Relative name.
19563     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19564     ac_top_srcdir=$ac_top_build_prefix$srcdir
19565     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19566 esac
19567 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19568
19569
19570   case $ac_mode in
19571   :F)
19572   #
19573   # CONFIG_FILE
19574   #
19575
19576   case $INSTALL in
19577   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19578   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19579   esac
19580   ac_MKDIR_P=$MKDIR_P
19581   case $MKDIR_P in
19582   [\\/$]* | ?:[\\/]* ) ;;
19583   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19584   esac
19585 _ACEOF
19586
19587 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19588 # If the template does not know about datarootdir, expand it.
19589 # FIXME: This hack should be removed a few years after 2.60.
19590 ac_datarootdir_hack=; ac_datarootdir_seen=
19591 ac_sed_dataroot='
19592 /datarootdir/ {
19593   p
19594   q
19595 }
19596 /@datadir@/p
19597 /@docdir@/p
19598 /@infodir@/p
19599 /@localedir@/p
19600 /@mandir@/p'
19601 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19602 *datarootdir*) ac_datarootdir_seen=yes;;
19603 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19604   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19605 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19606 _ACEOF
19607 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19608   ac_datarootdir_hack='
19609   s&@datadir@&$datadir&g
19610   s&@docdir@&$docdir&g
19611   s&@infodir@&$infodir&g
19612   s&@localedir@&$localedir&g
19613   s&@mandir@&$mandir&g
19614   s&\\\${datarootdir}&$datarootdir&g' ;;
19615 esac
19616 _ACEOF
19617
19618 # Neutralize VPATH when `$srcdir' = `.'.
19619 # Shell code in configure.ac might set extrasub.
19620 # FIXME: do we really want to maintain this feature?
19621 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19622 ac_sed_extra="$ac_vpsub
19623 $extrasub
19624 _ACEOF
19625 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19626 :t
19627 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19628 s|@configure_input@|$ac_sed_conf_input|;t t
19629 s&@top_builddir@&$ac_top_builddir_sub&;t t
19630 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19631 s&@srcdir@&$ac_srcdir&;t t
19632 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19633 s&@top_srcdir@&$ac_top_srcdir&;t t
19634 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19635 s&@builddir@&$ac_builddir&;t t
19636 s&@abs_builddir@&$ac_abs_builddir&;t t
19637 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19638 s&@INSTALL@&$ac_INSTALL&;t t
19639 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19640 $ac_datarootdir_hack
19641 "
19642 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19643   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19644
19645 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19646   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19647   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
19648       "$ac_tmp/out"`; test -z "$ac_out"; } &&
19649   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19650 which seems to be undefined.  Please make sure it is defined" >&5
19651 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19652 which seems to be undefined.  Please make sure it is defined" >&2;}
19653
19654   rm -f "$ac_tmp/stdin"
19655   case $ac_file in
19656   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19657   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19658   esac \
19659   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19660  ;;
19661   :H)
19662   #
19663   # CONFIG_HEADER
19664   #
19665   if test x"$ac_file" != x-; then
19666     {
19667       $as_echo "/* $configure_input  */" \
19668       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19669     } >"$ac_tmp/config.h" \
19670       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19671     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19672       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19673 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19674     else
19675       rm -f "$ac_file"
19676       mv "$ac_tmp/config.h" "$ac_file" \
19677         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19678     fi
19679   else
19680     $as_echo "/* $configure_input  */" \
19681       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19682       || as_fn_error $? "could not create -" "$LINENO" 5
19683   fi
19684 # Compute "$ac_file"'s index in $config_headers.
19685 _am_arg="$ac_file"
19686 _am_stamp_count=1
19687 for _am_header in $config_headers :; do
19688   case $_am_header in
19689     $_am_arg | $_am_arg:* )
19690       break ;;
19691     * )
19692       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19693   esac
19694 done
19695 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19696 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19697          X"$_am_arg" : 'X\(//\)[^/]' \| \
19698          X"$_am_arg" : 'X\(//\)$' \| \
19699          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19700 $as_echo X"$_am_arg" |
19701     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19702             s//\1/
19703             q
19704           }
19705           /^X\(\/\/\)[^/].*/{
19706             s//\1/
19707             q
19708           }
19709           /^X\(\/\/\)$/{
19710             s//\1/
19711             q
19712           }
19713           /^X\(\/\).*/{
19714             s//\1/
19715             q
19716           }
19717           s/.*/./; q'`/stamp-h$_am_stamp_count
19718  ;;
19719
19720   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19721 $as_echo "$as_me: executing $ac_file commands" >&6;}
19722  ;;
19723   esac
19724
19725
19726   case $ac_file$ac_mode in
19727     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19728   # Autoconf 2.62 quotes --file arguments for eval, but not when files
19729   # are listed without --file.  Let's play safe and only enable the eval
19730   # if we detect the quoting.
19731   case $CONFIG_FILES in
19732   *\'*) eval set x "$CONFIG_FILES" ;;
19733   *)   set x $CONFIG_FILES ;;
19734   esac
19735   shift
19736   for mf
19737   do
19738     # Strip MF so we end up with the name of the file.
19739     mf=`echo "$mf" | sed -e 's/:.*$//'`
19740     # Check whether this is an Automake generated Makefile or not.
19741     # We used to match only the files named `Makefile.in', but
19742     # some people rename them; so instead we look at the file content.
19743     # Grep'ing the first line is not enough: some people post-process
19744     # each Makefile.in and add a new line on top of each file to say so.
19745     # Grep'ing the whole file is not good either: AIX grep has a line
19746     # limit of 2048, but all sed's we know have understand at least 4000.
19747     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19748       dirpart=`$as_dirname -- "$mf" ||
19749 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19750          X"$mf" : 'X\(//\)[^/]' \| \
19751          X"$mf" : 'X\(//\)$' \| \
19752          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19753 $as_echo X"$mf" |
19754     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19755             s//\1/
19756             q
19757           }
19758           /^X\(\/\/\)[^/].*/{
19759             s//\1/
19760             q
19761           }
19762           /^X\(\/\/\)$/{
19763             s//\1/
19764             q
19765           }
19766           /^X\(\/\).*/{
19767             s//\1/
19768             q
19769           }
19770           s/.*/./; q'`
19771     else
19772       continue
19773     fi
19774     # Extract the definition of DEPDIR, am__include, and am__quote
19775     # from the Makefile without running `make'.
19776     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19777     test -z "$DEPDIR" && continue
19778     am__include=`sed -n 's/^am__include = //p' < "$mf"`
19779     test -z "am__include" && continue
19780     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19781     # When using ansi2knr, U may be empty or an underscore; expand it
19782     U=`sed -n 's/^U = //p' < "$mf"`
19783     # Find all dependency output files, they are included files with
19784     # $(DEPDIR) in their names.  We invoke sed twice because it is the
19785     # simplest approach to changing $(DEPDIR) to its actual value in the
19786     # expansion.
19787     for file in `sed -n "
19788       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19789          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19790       # Make sure the directory exists.
19791       test -f "$dirpart/$file" && continue
19792       fdir=`$as_dirname -- "$file" ||
19793 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19794          X"$file" : 'X\(//\)[^/]' \| \
19795          X"$file" : 'X\(//\)$' \| \
19796          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19797 $as_echo X"$file" |
19798     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19799             s//\1/
19800             q
19801           }
19802           /^X\(\/\/\)[^/].*/{
19803             s//\1/
19804             q
19805           }
19806           /^X\(\/\/\)$/{
19807             s//\1/
19808             q
19809           }
19810           /^X\(\/\).*/{
19811             s//\1/
19812             q
19813           }
19814           s/.*/./; q'`
19815       as_dir=$dirpart/$fdir; as_fn_mkdir_p
19816       # echo "creating $dirpart/$file"
19817       echo '# dummy' > "$dirpart/$file"
19818     done
19819   done
19820 }
19821  ;;
19822     "libtool":C)
19823
19824     # See if we are running on zsh, and set the options which allow our
19825     # commands through without removal of \ escapes.
19826     if test -n "${ZSH_VERSION+set}" ; then
19827       setopt NO_GLOB_SUBST
19828     fi
19829
19830     cfgfile="${ofile}T"
19831     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19832     $RM "$cfgfile"
19833
19834     cat <<_LT_EOF >> "$cfgfile"
19835 #! $SHELL
19836
19837 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19838 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19839 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19840 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19841 #
19842 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19843 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
19844 #                 Inc.
19845 #   Written by Gordon Matzigkeit, 1996
19846 #
19847 #   This file is part of GNU Libtool.
19848 #
19849 # GNU Libtool is free software; you can redistribute it and/or
19850 # modify it under the terms of the GNU General Public License as
19851 # published by the Free Software Foundation; either version 2 of
19852 # the License, or (at your option) any later version.
19853 #
19854 # As a special exception to the GNU General Public License,
19855 # if you distribute this file as part of a program or library that
19856 # is built using GNU Libtool, you may include this file under the
19857 # same distribution terms that you use for the rest of that program.
19858 #
19859 # GNU Libtool is distributed in the hope that it will be useful,
19860 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19861 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19862 # GNU General Public License for more details.
19863 #
19864 # You should have received a copy of the GNU General Public License
19865 # along with GNU Libtool; see the file COPYING.  If not, a copy
19866 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19867 # obtained by writing to the Free Software Foundation, Inc.,
19868 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19869
19870
19871 # The names of the tagged configurations supported by this script.
19872 available_tags=""
19873
19874 # ### BEGIN LIBTOOL CONFIG
19875
19876 # Which release of libtool.m4 was used?
19877 macro_version=$macro_version
19878 macro_revision=$macro_revision
19879
19880 # Whether or not to build static libraries.
19881 build_old_libs=$enable_static
19882
19883 # Whether or not to build shared libraries.
19884 build_libtool_libs=$enable_shared
19885
19886 # What type of objects to build.
19887 pic_mode=$pic_mode
19888
19889 # Whether or not to optimize for fast installation.
19890 fast_install=$enable_fast_install
19891
19892 # Shell to use when invoking shell scripts.
19893 SHELL=$lt_SHELL
19894
19895 # An echo program that protects backslashes.
19896 ECHO=$lt_ECHO
19897
19898 # The host system.
19899 host_alias=$host_alias
19900 host=$host
19901 host_os=$host_os
19902
19903 # The build system.
19904 build_alias=$build_alias
19905 build=$build
19906 build_os=$build_os
19907
19908 # A sed program that does not truncate output.
19909 SED=$lt_SED
19910
19911 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19912 Xsed="\$SED -e 1s/^X//"
19913
19914 # A grep program that handles long lines.
19915 GREP=$lt_GREP
19916
19917 # An ERE matcher.
19918 EGREP=$lt_EGREP
19919
19920 # A literal string matcher.
19921 FGREP=$lt_FGREP
19922
19923 # A BSD- or MS-compatible name lister.
19924 NM=$lt_NM
19925
19926 # Whether we need soft or hard links.
19927 LN_S=$lt_LN_S
19928
19929 # What is the maximum length of a command?
19930 max_cmd_len=$max_cmd_len
19931
19932 # Object file suffix (normally "o").
19933 objext=$ac_objext
19934
19935 # Executable file suffix (normally "").
19936 exeext=$exeext
19937
19938 # whether the shell understands "unset".
19939 lt_unset=$lt_unset
19940
19941 # turn spaces into newlines.
19942 SP2NL=$lt_lt_SP2NL
19943
19944 # turn newlines into spaces.
19945 NL2SP=$lt_lt_NL2SP
19946
19947 # convert \$build file names to \$host format.
19948 to_host_file_cmd=$lt_cv_to_host_file_cmd
19949
19950 # convert \$build files to toolchain format.
19951 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19952
19953 # An object symbol dumper.
19954 OBJDUMP=$lt_OBJDUMP
19955
19956 # Method to check whether dependent libraries are shared objects.
19957 deplibs_check_method=$lt_deplibs_check_method
19958
19959 # Command to use when deplibs_check_method = "file_magic".
19960 file_magic_cmd=$lt_file_magic_cmd
19961
19962 # How to find potential files when deplibs_check_method = "file_magic".
19963 file_magic_glob=$lt_file_magic_glob
19964
19965 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19966 want_nocaseglob=$lt_want_nocaseglob
19967
19968 # DLL creation program.
19969 DLLTOOL=$lt_DLLTOOL
19970
19971 # Command to associate shared and link libraries.
19972 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19973
19974 # The archiver.
19975 AR=$lt_AR
19976
19977 # Flags to create an archive.
19978 AR_FLAGS=$lt_AR_FLAGS
19979
19980 # How to feed a file listing to the archiver.
19981 archiver_list_spec=$lt_archiver_list_spec
19982
19983 # A symbol stripping program.
19984 STRIP=$lt_STRIP
19985
19986 # Commands used to install an old-style archive.
19987 RANLIB=$lt_RANLIB
19988 old_postinstall_cmds=$lt_old_postinstall_cmds
19989 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19990
19991 # Whether to use a lock for old archive extraction.
19992 lock_old_archive_extraction=$lock_old_archive_extraction
19993
19994 # A C compiler.
19995 LTCC=$lt_CC
19996
19997 # LTCC compiler flags.
19998 LTCFLAGS=$lt_CFLAGS
19999
20000 # Take the output of nm and produce a listing of raw symbols and C names.
20001 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20002
20003 # Transform the output of nm in a proper C declaration.
20004 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20005
20006 # Transform the output of nm in a C name address pair.
20007 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20008
20009 # Transform the output of nm in a C name address pair when lib prefix is needed.
20010 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20011
20012 # Specify filename containing input files for \$NM.
20013 nm_file_list_spec=$lt_nm_file_list_spec
20014
20015 # The root where to search for dependent libraries,and in which our libraries should be installed.
20016 lt_sysroot=$lt_sysroot
20017
20018 # The name of the directory that contains temporary libtool files.
20019 objdir=$objdir
20020
20021 # Used to examine libraries when file_magic_cmd begins with "file".
20022 MAGIC_CMD=$MAGIC_CMD
20023
20024 # Must we lock files when doing compilation?
20025 need_locks=$lt_need_locks
20026
20027 # Manifest tool.
20028 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20029
20030 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20031 DSYMUTIL=$lt_DSYMUTIL
20032
20033 # Tool to change global to local symbols on Mac OS X.
20034 NMEDIT=$lt_NMEDIT
20035
20036 # Tool to manipulate fat objects and archives on Mac OS X.
20037 LIPO=$lt_LIPO
20038
20039 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20040 OTOOL=$lt_OTOOL
20041
20042 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20043 OTOOL64=$lt_OTOOL64
20044
20045 # Old archive suffix (normally "a").
20046 libext=$libext
20047
20048 # Shared library suffix (normally ".so").
20049 shrext_cmds=$lt_shrext_cmds
20050
20051 # The commands to extract the exported symbol list from a shared archive.
20052 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20053
20054 # Variables whose values should be saved in libtool wrapper scripts and
20055 # restored at link time.
20056 variables_saved_for_relink=$lt_variables_saved_for_relink
20057
20058 # Do we need the "lib" prefix for modules?
20059 need_lib_prefix=$need_lib_prefix
20060
20061 # Do we need a version for libraries?
20062 need_version=$need_version
20063
20064 # Library versioning type.
20065 version_type=$version_type
20066
20067 # Shared library runtime path variable.
20068 runpath_var=$runpath_var
20069
20070 # Shared library path variable.
20071 shlibpath_var=$shlibpath_var
20072
20073 # Is shlibpath searched before the hard-coded library search path?
20074 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20075
20076 # Format of library name prefix.
20077 libname_spec=$lt_libname_spec
20078
20079 # List of archive names.  First name is the real one, the rest are links.
20080 # The last name is the one that the linker finds with -lNAME
20081 library_names_spec=$lt_library_names_spec
20082
20083 # The coded name of the library, if different from the real name.
20084 soname_spec=$lt_soname_spec
20085
20086 # Permission mode override for installation of shared libraries.
20087 install_override_mode=$lt_install_override_mode
20088
20089 # Command to use after installation of a shared archive.
20090 postinstall_cmds=$lt_postinstall_cmds
20091
20092 # Command to use after uninstallation of a shared archive.
20093 postuninstall_cmds=$lt_postuninstall_cmds
20094
20095 # Commands used to finish a libtool library installation in a directory.
20096 finish_cmds=$lt_finish_cmds
20097
20098 # As "finish_cmds", except a single script fragment to be evaled but
20099 # not shown.
20100 finish_eval=$lt_finish_eval
20101
20102 # Whether we should hardcode library paths into libraries.
20103 hardcode_into_libs=$hardcode_into_libs
20104
20105 # Compile-time system search path for libraries.
20106 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20107
20108 # Run-time system search path for libraries.
20109 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20110
20111 # Whether dlopen is supported.
20112 dlopen_support=$enable_dlopen
20113
20114 # Whether dlopen of programs is supported.
20115 dlopen_self=$enable_dlopen_self
20116
20117 # Whether dlopen of statically linked programs is supported.
20118 dlopen_self_static=$enable_dlopen_self_static
20119
20120 # Commands to strip libraries.
20121 old_striplib=$lt_old_striplib
20122 striplib=$lt_striplib
20123
20124
20125 # The linker used to build libraries.
20126 LD=$lt_LD
20127
20128 # How to create reloadable object files.
20129 reload_flag=$lt_reload_flag
20130 reload_cmds=$lt_reload_cmds
20131
20132 # Commands used to build an old-style archive.
20133 old_archive_cmds=$lt_old_archive_cmds
20134
20135 # A language specific compiler.
20136 CC=$lt_compiler
20137
20138 # Is the compiler the GNU compiler?
20139 with_gcc=$GCC
20140
20141 # Compiler flag to turn off builtin functions.
20142 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20143
20144 # Additional compiler flags for building library objects.
20145 pic_flag=$lt_lt_prog_compiler_pic
20146
20147 # How to pass a linker flag through the compiler.
20148 wl=$lt_lt_prog_compiler_wl
20149
20150 # Compiler flag to prevent dynamic linking.
20151 link_static_flag=$lt_lt_prog_compiler_static
20152
20153 # Does compiler simultaneously support -c and -o options?
20154 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20155
20156 # Whether or not to add -lc for building shared libraries.
20157 build_libtool_need_lc=$archive_cmds_need_lc
20158
20159 # Whether or not to disallow shared libs when runtime libs are static.
20160 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20161
20162 # Compiler flag to allow reflexive dlopens.
20163 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20164
20165 # Compiler flag to generate shared objects directly from archives.
20166 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20167
20168 # Whether the compiler copes with passing no objects directly.
20169 compiler_needs_object=$lt_compiler_needs_object
20170
20171 # Create an old-style archive from a shared archive.
20172 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20173
20174 # Create a temporary old-style archive to link instead of a shared archive.
20175 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20176
20177 # Commands used to build a shared archive.
20178 archive_cmds=$lt_archive_cmds
20179 archive_expsym_cmds=$lt_archive_expsym_cmds
20180
20181 # Commands used to build a loadable module if different from building
20182 # a shared archive.
20183 module_cmds=$lt_module_cmds
20184 module_expsym_cmds=$lt_module_expsym_cmds
20185
20186 # Whether we are building with GNU ld or not.
20187 with_gnu_ld=$lt_with_gnu_ld
20188
20189 # Flag that allows shared libraries with undefined symbols to be built.
20190 allow_undefined_flag=$lt_allow_undefined_flag
20191
20192 # Flag that enforces no undefined symbols.
20193 no_undefined_flag=$lt_no_undefined_flag
20194
20195 # Flag to hardcode \$libdir into a binary during linking.
20196 # This must work even if \$libdir does not exist
20197 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20198
20199 # If ld is used when linking, flag to hardcode \$libdir into a binary
20200 # during linking.  This must work even if \$libdir does not exist.
20201 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
20202
20203 # Whether we need a single "-rpath" flag with a separated argument.
20204 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20205
20206 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20207 # DIR into the resulting binary.
20208 hardcode_direct=$hardcode_direct
20209
20210 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20211 # DIR into the resulting binary and the resulting library dependency is
20212 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20213 # library is relocated.
20214 hardcode_direct_absolute=$hardcode_direct_absolute
20215
20216 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20217 # into the resulting binary.
20218 hardcode_minus_L=$hardcode_minus_L
20219
20220 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20221 # into the resulting binary.
20222 hardcode_shlibpath_var=$hardcode_shlibpath_var
20223
20224 # Set to "yes" if building a shared library automatically hardcodes DIR
20225 # into the library and all subsequent libraries and executables linked
20226 # against it.
20227 hardcode_automatic=$hardcode_automatic
20228
20229 # Set to yes if linker adds runtime paths of dependent libraries
20230 # to runtime path list.
20231 inherit_rpath=$inherit_rpath
20232
20233 # Whether libtool must link a program against all its dependency libraries.
20234 link_all_deplibs=$link_all_deplibs
20235
20236 # Set to "yes" if exported symbols are required.
20237 always_export_symbols=$always_export_symbols
20238
20239 # The commands to list exported symbols.
20240 export_symbols_cmds=$lt_export_symbols_cmds
20241
20242 # Symbols that should not be listed in the preloaded symbols.
20243 exclude_expsyms=$lt_exclude_expsyms
20244
20245 # Symbols that must always be exported.
20246 include_expsyms=$lt_include_expsyms
20247
20248 # Commands necessary for linking programs (against libraries) with templates.
20249 prelink_cmds=$lt_prelink_cmds
20250
20251 # Commands necessary for finishing linking programs.
20252 postlink_cmds=$lt_postlink_cmds
20253
20254 # Specify filename containing input files.
20255 file_list_spec=$lt_file_list_spec
20256
20257 # How to hardcode a shared library path into an executable.
20258 hardcode_action=$hardcode_action
20259
20260 # ### END LIBTOOL CONFIG
20261
20262 _LT_EOF
20263
20264   case $host_os in
20265   aix3*)
20266     cat <<\_LT_EOF >> "$cfgfile"
20267 # AIX sometimes has problems with the GCC collect2 program.  For some
20268 # reason, if we set the COLLECT_NAMES environment variable, the problems
20269 # vanish in a puff of smoke.
20270 if test "X${COLLECT_NAMES+set}" != Xset; then
20271   COLLECT_NAMES=
20272   export COLLECT_NAMES
20273 fi
20274 _LT_EOF
20275     ;;
20276   esac
20277
20278
20279 ltmain="$ac_aux_dir/ltmain.sh"
20280
20281
20282   # We use sed instead of cat because bash on DJGPP gets confused if
20283   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20284   # text mode, it properly converts lines to CR/LF.  This bash problem
20285   # is reportedly fixed, but why not run on old versions too?
20286   sed '$q' "$ltmain" >> "$cfgfile" \
20287      || (rm -f "$cfgfile"; exit 1)
20288
20289   if test x"$xsi_shell" = xyes; then
20290   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20291 func_dirname ()\
20292 {\
20293 \    case ${1} in\
20294 \      */*) func_dirname_result="${1%/*}${2}" ;;\
20295 \      *  ) func_dirname_result="${3}" ;;\
20296 \    esac\
20297 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20298   && mv -f "$cfgfile.tmp" "$cfgfile" \
20299     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20300 test 0 -eq $? || _lt_function_replace_fail=:
20301
20302
20303   sed -e '/^func_basename ()$/,/^} # func_basename /c\
20304 func_basename ()\
20305 {\
20306 \    func_basename_result="${1##*/}"\
20307 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20308   && mv -f "$cfgfile.tmp" "$cfgfile" \
20309     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20310 test 0 -eq $? || _lt_function_replace_fail=:
20311
20312
20313   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20314 func_dirname_and_basename ()\
20315 {\
20316 \    case ${1} in\
20317 \      */*) func_dirname_result="${1%/*}${2}" ;;\
20318 \      *  ) func_dirname_result="${3}" ;;\
20319 \    esac\
20320 \    func_basename_result="${1##*/}"\
20321 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20322   && mv -f "$cfgfile.tmp" "$cfgfile" \
20323     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20324 test 0 -eq $? || _lt_function_replace_fail=:
20325
20326
20327   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20328 func_stripname ()\
20329 {\
20330 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20331 \    # positional parameters, so assign one to ordinary parameter first.\
20332 \    func_stripname_result=${3}\
20333 \    func_stripname_result=${func_stripname_result#"${1}"}\
20334 \    func_stripname_result=${func_stripname_result%"${2}"}\
20335 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20336   && mv -f "$cfgfile.tmp" "$cfgfile" \
20337     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20338 test 0 -eq $? || _lt_function_replace_fail=:
20339
20340
20341   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20342 func_split_long_opt ()\
20343 {\
20344 \    func_split_long_opt_name=${1%%=*}\
20345 \    func_split_long_opt_arg=${1#*=}\
20346 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20347   && mv -f "$cfgfile.tmp" "$cfgfile" \
20348     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20349 test 0 -eq $? || _lt_function_replace_fail=:
20350
20351
20352   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20353 func_split_short_opt ()\
20354 {\
20355 \    func_split_short_opt_arg=${1#??}\
20356 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20357 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20358   && mv -f "$cfgfile.tmp" "$cfgfile" \
20359     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20360 test 0 -eq $? || _lt_function_replace_fail=:
20361
20362
20363   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20364 func_lo2o ()\
20365 {\
20366 \    case ${1} in\
20367 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20368 \      *)    func_lo2o_result=${1} ;;\
20369 \    esac\
20370 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20371   && mv -f "$cfgfile.tmp" "$cfgfile" \
20372     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20373 test 0 -eq $? || _lt_function_replace_fail=:
20374
20375
20376   sed -e '/^func_xform ()$/,/^} # func_xform /c\
20377 func_xform ()\
20378 {\
20379     func_xform_result=${1%.*}.lo\
20380 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20381   && mv -f "$cfgfile.tmp" "$cfgfile" \
20382     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20383 test 0 -eq $? || _lt_function_replace_fail=:
20384
20385
20386   sed -e '/^func_arith ()$/,/^} # func_arith /c\
20387 func_arith ()\
20388 {\
20389     func_arith_result=$(( $* ))\
20390 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20391   && mv -f "$cfgfile.tmp" "$cfgfile" \
20392     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20393 test 0 -eq $? || _lt_function_replace_fail=:
20394
20395
20396   sed -e '/^func_len ()$/,/^} # func_len /c\
20397 func_len ()\
20398 {\
20399     func_len_result=${#1}\
20400 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20401   && mv -f "$cfgfile.tmp" "$cfgfile" \
20402     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20403 test 0 -eq $? || _lt_function_replace_fail=:
20404
20405 fi
20406
20407 if test x"$lt_shell_append" = xyes; then
20408   sed -e '/^func_append ()$/,/^} # func_append /c\
20409 func_append ()\
20410 {\
20411     eval "${1}+=\\${2}"\
20412 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20413   && mv -f "$cfgfile.tmp" "$cfgfile" \
20414     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20415 test 0 -eq $? || _lt_function_replace_fail=:
20416
20417
20418   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20419 func_append_quoted ()\
20420 {\
20421 \    func_quote_for_eval "${2}"\
20422 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20423 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20424   && mv -f "$cfgfile.tmp" "$cfgfile" \
20425     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20426 test 0 -eq $? || _lt_function_replace_fail=:
20427
20428
20429   # Save a `func_append' function call where possible by direct use of '+='
20430   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20431     && mv -f "$cfgfile.tmp" "$cfgfile" \
20432       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20433   test 0 -eq $? || _lt_function_replace_fail=:
20434 else
20435   # Save a `func_append' function call even when '+=' is not available
20436   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20437     && mv -f "$cfgfile.tmp" "$cfgfile" \
20438       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20439   test 0 -eq $? || _lt_function_replace_fail=:
20440 fi
20441
20442 if test x"$_lt_function_replace_fail" = x":"; then
20443   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20444 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20445 fi
20446
20447
20448    mv -f "$cfgfile" "$ofile" ||
20449     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20450   chmod +x "$ofile"
20451
20452  ;;
20453     "po-directories":C)
20454     for ac_file in $CONFIG_FILES; do
20455       # Support "outfile[:infile[:infile...]]"
20456       case "$ac_file" in
20457         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
20458       esac
20459       # PO directories have a Makefile.in generated from Makefile.in.in.
20460       case "$ac_file" in */Makefile.in)
20461         # Adjust a relative srcdir.
20462         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
20463         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
20464         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
20465         # In autoconf-2.13 it is called $ac_given_srcdir.
20466         # In autoconf-2.50 it is called $srcdir.
20467         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
20468         case "$ac_given_srcdir" in
20469           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
20470           /*) top_srcdir="$ac_given_srcdir" ;;
20471           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
20472         esac
20473         # Treat a directory as a PO directory if and only if it has a
20474         # POTFILES.in file. This allows packages to have multiple PO
20475         # directories under different names or in different locations.
20476         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
20477           rm -f "$ac_dir/POTFILES"
20478           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
20479           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
20480           POMAKEFILEDEPS="POTFILES.in"
20481           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
20482           # on $ac_dir but don't depend on user-specified configuration
20483           # parameters.
20484           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
20485             # The LINGUAS file contains the set of available languages.
20486             if test -n "$OBSOLETE_ALL_LINGUAS"; then
20487               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
20488             fi
20489             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
20490             # Hide the ALL_LINGUAS assigment from automake < 1.5.
20491             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
20492             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
20493           else
20494             # The set of available languages was given in configure.in.
20495             # Hide the ALL_LINGUAS assigment from automake < 1.5.
20496             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
20497           fi
20498           # Compute POFILES
20499           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
20500           # Compute UPDATEPOFILES
20501           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
20502           # Compute DUMMYPOFILES
20503           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
20504           # Compute GMOFILES
20505           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
20506           case "$ac_given_srcdir" in
20507             .) srcdirpre= ;;
20508             *) srcdirpre='$(srcdir)/' ;;
20509           esac
20510           POFILES=
20511           UPDATEPOFILES=
20512           DUMMYPOFILES=
20513           GMOFILES=
20514           for lang in $ALL_LINGUAS; do
20515             POFILES="$POFILES $srcdirpre$lang.po"
20516             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
20517             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
20518             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
20519           done
20520           # CATALOGS depends on both $ac_dir and the user's LINGUAS
20521           # environment variable.
20522           INST_LINGUAS=
20523           if test -n "$ALL_LINGUAS"; then
20524             for presentlang in $ALL_LINGUAS; do
20525               useit=no
20526               if test "%UNSET%" != "$LINGUAS"; then
20527                 desiredlanguages="$LINGUAS"
20528               else
20529                 desiredlanguages="$ALL_LINGUAS"
20530               fi
20531               for desiredlang in $desiredlanguages; do
20532                 # Use the presentlang catalog if desiredlang is
20533                 #   a. equal to presentlang, or
20534                 #   b. a variant of presentlang (because in this case,
20535                 #      presentlang can be used as a fallback for messages
20536                 #      which are not translated in the desiredlang catalog).
20537                 case "$desiredlang" in
20538                   "$presentlang"*) useit=yes;;
20539                 esac
20540               done
20541               if test $useit = yes; then
20542                 INST_LINGUAS="$INST_LINGUAS $presentlang"
20543               fi
20544             done
20545           fi
20546           CATALOGS=
20547           if test -n "$INST_LINGUAS"; then
20548             for lang in $INST_LINGUAS; do
20549               CATALOGS="$CATALOGS $lang.gmo"
20550             done
20551           fi
20552           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
20553           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"
20554           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
20555             if test -f "$f"; then
20556               case "$f" in
20557                 *.orig | *.bak | *~) ;;
20558                 *) cat "$f" >> "$ac_dir/Makefile" ;;
20559               esac
20560             fi
20561           done
20562         fi
20563         ;;
20564       esac
20565     done ;;
20566
20567   esac
20568 done # for ac_tag
20569
20570
20571 as_fn_exit 0
20572 _ACEOF
20573 ac_clean_files=$ac_clean_files_save
20574
20575 test $ac_write_fail = 0 ||
20576   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20577
20578
20579 # configure is writing to config.log, and then calls config.status.
20580 # config.status does its own redirection, appending to config.log.
20581 # Unfortunately, on DOS this fails, as config.log is still kept open
20582 # by configure, so config.status won't be able to write to it; its
20583 # output is simply discarded.  So we exec the FD to /dev/null,
20584 # effectively closing config.log, so it can be properly (re)opened and
20585 # appended to by config.status.  When coming back to configure, we
20586 # need to make the FD available again.
20587 if test "$no_create" != yes; then
20588   ac_cs_success=:
20589   ac_config_status_args=
20590   test "$silent" = yes &&
20591     ac_config_status_args="$ac_config_status_args --quiet"
20592   exec 5>/dev/null
20593   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20594   exec 5>>config.log
20595   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20596   # would make configure fail if this is the last instruction.
20597   $ac_cs_success || as_fn_exit 1
20598 fi
20599 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20600   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20601 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20602 fi
20603
20604
20605 echo ""
20606 echo "Cogl - $COGL_1_VERSION/$COGL_VERSION (${COGL_RELEASE_STATUS})"
20607
20608 # Global flags
20609 echo ""
20610 echo " • Global:"
20611 echo "        Prefix: ${prefix}"
20612
20613 echo ""
20614 # Features
20615 echo " • Features:"
20616 echo "        Drivers: ${enabled_drivers}"
20617 if test "x$GL_LIBRARY_DIRECTLY_LINKED" != xyes; then :
20618   for driver in $enabled_drivers; do
20619          driver=`echo $driver | tr "gles" "GLES"`
20620          libname=`eval echo \\$COGL_${driver}_LIBNAME`
20621          echo "        Library name for $driver: $libname"
20622        done
20623 fi
20624 echo "        GL Window System APIs:${GL_WINSYS_APIS}"
20625 if test "x$SUPPORT_EGL" = "xyes"; then
20626 echo "        EGL Platforms:${EGL_PLATFORMS}"
20627 echo "        Wayland compositor support: ${enable_wayland_egl_server}"
20628 fi
20629 echo "        Image backend: ${COGL_IMAGE_BACKEND}"
20630 echo "        Cogl Pango: ${enable_cogl_pango}"
20631 echo "        Profiling: ${enable_profile}"
20632
20633 # Compiler/Debug related flags
20634 echo ""
20635 echo " • Compiler options:"
20636 echo "        Cogl debug: ${enable_debug}"
20637 echo "        Enable deprecated symbols: ${enable_deprecated}"
20638 echo "        Compiler flags: ${CFLAGS} ${COGL_EXTRA_CFLAGS}"
20639 echo "        Linker flags: ${LDFLAGS} ${COGL_EXTRA_LDFLAGS}"
20640
20641 # Miscellaneous
20642 echo ""
20643 echo " • Extra:"
20644 echo "        Build API reference: ${enable_gtk_doc}"
20645 echo "        Build introspection data: ${enable_introspection}"
20646
20647 echo ""
20648
20649 # General warning about experimental features
20650 if test "x$EXPERIMENTAL_CONFIG" = "xyes"; then
20651 echo ""
20652 echo "☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠"
20653 echo " *WARNING*"
20654 echo ""
20655 echo "  The stability of your build might be affected by one or more"
20656 echo "  experimental configuration options."
20657 echo
20658 echo "  experimental options: $EXPERIMENTAL_OPTIONS"
20659 echo "☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠☠"
20660 echo ""
20661 fi