[Tizen] Support Autoconf 2.71
[platform/upstream/SDL.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92   *[\\/]* ) as_myself=$0 ;;
93   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96   IFS=$as_save_IFS
97   test -z "$as_dir" && as_dir=.
98     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99   done
100 IFS=$as_save_IFS
101
102      ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107   as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111   exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there.  '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136   # into an infinite loop, continuously re-executing ourselves.
137   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138     _as_can_reexec=no; export _as_can_reexec;
139     # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147   *v*x* | *x*v* ) as_opts=-vx ;;
148   *v* ) as_opts=-v ;;
149   *x* ) as_opts=-x ;;
150   * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157   fi
158   # We don't want this to propagate to other subprocesses.
159           { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162   emulate sh
163   NULLCMD=:
164   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165   # is contrary to our usage.  Disable this feature.
166   alias -g '\${1+\"\$@\"}'='\"\$@\"'
167   setopt NO_GLOB_SUBST
168 else
169   case \`(set -o) 2>/dev/null\` in #(
170   *posix*) :
171     set -o posix ;; #(
172   *) :
173      ;;
174 esac
175 fi
176 "
177   as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191   exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199
200   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204     PATH=/empty FPATH=/empty; export PATH FPATH
205     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208   if (eval "$as_required") 2>/dev/null; then :
209   as_have_required=yes
210 else
211   as_have_required=no
212 fi
213   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220   IFS=$as_save_IFS
221   test -z "$as_dir" && as_dir=.
222   as_found=:
223   case $as_dir in #(
224          /*)
225            for as_base in sh bash ksh sh5; do
226              # Try only shells that exist, to save several forks.
227              as_shell=$as_dir/$as_base
228              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230   CONFIG_SHELL=$as_shell as_have_required=yes
231                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   break 2
233 fi
234 fi
235            done;;
236        esac
237   as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241   CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246       if test "x$CONFIG_SHELL" != x; then :
247   export CONFIG_SHELL
248              # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256   *v*x* | *x*v* ) as_opts=-vx ;;
257   *v* ) as_opts=-v ;;
258   *x* ) as_opts=-x ;;
259   * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268     if test x$as_have_required = xno; then :
269   $as_echo "$0: This script requires a shell more modern than all"
270   $as_echo "$0: the shells that I found on your system."
271   if test x${ZSH_VERSION+set} = xset ; then
272     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274   else
275     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279   fi
280   exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298   { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307   return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315   set +e
316   as_fn_set_status $1
317   exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326   case $as_dir in #(
327   -*) as_dir=./$as_dir;;
328   esac
329   test -d "$as_dir" || eval $as_mkdir_p || {
330     as_dirs=
331     while :; do
332       case $as_dir in #(
333       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334       *) as_qdir=$as_dir;;
335       esac
336       as_dirs="'$as_qdir' $as_dirs"
337       as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339          X"$as_dir" : 'X\(//\)[^/]' \| \
340          X"$as_dir" : 'X\(//\)$' \| \
341          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344             s//\1/
345             q
346           }
347           /^X\(\/\/\)[^/].*/{
348             s//\1/
349             q
350           }
351           /^X\(\/\/\)$/{
352             s//\1/
353             q
354           }
355           /^X\(\/\).*/{
356             s//\1/
357             q
358           }
359           s/.*/./; q'`
360       test -d "$as_dir" && break
361     done
362     test -z "$as_dirs" || eval "mkdir $as_dirs"
363   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373   test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382   eval 'as_fn_append ()
383   {
384     eval $1+=\$2
385   }'
386 else
387   as_fn_append ()
388   {
389     eval $1=\$$1\$2
390   }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399   eval 'as_fn_arith ()
400   {
401     as_val=$(( $* ))
402   }'
403 else
404   as_fn_arith ()
405   {
406     as_val=`expr "$@" || test $? -eq 1`
407   }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418   as_status=$1; test $as_status -eq 0 && as_status=1
419   if test "$4"; then
420     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422   fi
423   $as_echo "$as_me: error: $2" >&2
424   as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428    test "X`expr 00001 : '.*\(...\)'`" = X001; then
429   as_expr=expr
430 else
431   as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435   as_basename=basename
436 else
437   as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441   as_dirname=dirname
442 else
443   as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448          X"$0" : 'X\(//\)$' \| \
449          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451     sed '/^.*\/\([^/][^/]*\)\/*$/{
452             s//\1/
453             q
454           }
455           /^X\/\(\/\/\)$/{
456             s//\1/
457             q
458           }
459           /^X\/\(\/\).*/{
460             s//\1/
461             q
462           }
463           s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473   as_lineno_1=$LINENO as_lineno_1a=$LINENO
474   as_lineno_2=$LINENO as_lineno_2a=$LINENO
475   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
478   sed -n '
479     p
480     /[$]LINENO/=
481   ' <$as_myself |
482     sed '
483       s/[$]LINENO.*/&-/
484       t lineno
485       b
486       :lineno
487       N
488       :loop
489       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490       t loop
491       s/-\n.*//
492     ' >$as_me.lineno &&
493   chmod +x "$as_me.lineno" ||
494     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497   # already done that, so ensure we don't try to do so again and fall
498   # in an infinite loop.  This has already happened in practice.
499   _as_can_reexec=no; export _as_can_reexec
500   # Don't try to exec as it changes $[0], causing all sort of problems
501   # (the dirname of $[0] is not the place where we might find the
502   # original and so on.  Autoconf is especially sensitive to this).
503   . "./$as_me.lineno"
504   # Exit status is that of the last command.
505   exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511   case `echo 'xy\c'` in
512   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
513   xy)  ECHO_C='\c';;
514   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
515        ECHO_T=' ';;
516   esac;;
517 *)
518   ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523   rm -f conf$$.dir/conf$$.file
524 else
525   rm -f conf$$.dir
526   mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529   if ln -s conf$$.file conf$$ 2>/dev/null; then
530     as_ln_s='ln -s'
531     # ... but there are two gotchas:
532     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534     # In both cases, we have to default to `cp -pR'.
535     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536       as_ln_s='cp -pR'
537   elif ln conf$$.file conf$$ 2>/dev/null; then
538     as_ln_s=ln
539   else
540     as_ln_s='cp -pR'
541   fi
542 else
543   as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549   as_mkdir_p='mkdir -p "$as_dir"'
550 else
551   test -d ./-p && rmdir ./-p
552   as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME=
589 PACKAGE_TARNAME=
590 PACKAGE_VERSION=
591 PACKAGE_STRING=
592 PACKAGE_BUGREPORT=
593 PACKAGE_URL=
594
595 ac_unique_file="README.txt"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 #  include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 #  include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
631
632 ac_subst_vars='LTLIBOBJS
633 WAYLAND_SCANNER
634 EXTRA_LDFLAGS
635 BUILD_LDFLAGS
636 EXTRA_CFLAGS
637 BUILD_CFLAGS
638 SDLTEST_OBJECTS
639 SDLMAIN_OBJECTS
640 VERSION_OBJECTS
641 GEN_OBJECTS
642 GEN_HEADERS
643 OBJECTS
644 INCLUDE
645 ac_aux_dir
646 ENABLE_STATIC_FALSE
647 ENABLE_STATIC_TRUE
648 ENABLE_SHARED_FALSE
649 ENABLE_SHARED_TRUE
650 PKG_CONFIG_LIBS_PRIV
651 SDL_RLD_FLAGS
652 SDL_STATIC_LIBS
653 SDL_LIBS
654 SDL_CFLAGS
655 INSTALL_SDL2_CONFIG
656 LIBUSB_LIBS
657 LIBUSB_CFLAGS
658 IBUS_LIBS
659 IBUS_CFLAGS
660 DBUS_LIBS
661 DBUS_CFLAGS
662 LIBGBM_LIBS
663 LIBGBM_CFLAGS
664 LIBDRM_LIBS
665 LIBDRM_CFLAGS
666 DIRECTFB_LIBS
667 DIRECTFB_CFLAGS
668 X_EXTRA_LIBS
669 X_LIBS
670 X_PRE_LIBS
671 X_CFLAGS
672 XMKMF
673 RPI_LIBS
674 RPI_CFLAGS
675 FUSIONSOUND_LIBS
676 FUSIONSOUND_CFLAGS
677 ARTSCONFIG
678 PULSEAUDIO_LIBS
679 PULSEAUDIO_CFLAGS
680 ESD_LIBS
681 ESD_CFLAGS
682 ESD_CONFIG
683 JACK_LIBS
684 JACK_CFLAGS
685 ALSA_LIBS
686 ALSA_CFLAGS
687 POW_LIB
688 LIBOBJS
689 ALLOCA
690 PKG_CONFIG_LIBDIR
691 PKG_CONFIG_PATH
692 PKG_CONFIG
693 SET_MAKE
694 INSTALL_DATA
695 INSTALL_SCRIPT
696 INSTALL_PROGRAM
697 CXXCPP
698 ac_ct_CXX
699 CXXFLAGS
700 CXX
701 LT_AGE
702 LT_REVISION
703 LT_CURRENT
704 LT_RELEASE
705 RC
706 CPP
707 OTOOL64
708 OTOOL
709 LIPO
710 NMEDIT
711 DSYMUTIL
712 MANIFEST_TOOL
713 AWK
714 RANLIB
715 STRIP
716 ac_ct_AR
717 AR
718 LN_S
719 NM
720 ac_ct_DUMPBIN
721 DUMPBIN
722 LD
723 FGREP
724 EGREP
725 GREP
726 SED
727 OBJEXT
728 EXEEXT
729 ac_ct_CC
730 CPPFLAGS
731 LDFLAGS
732 CFLAGS
733 CC
734 host_os
735 host_vendor
736 host_cpu
737 host
738 build_os
739 build_vendor
740 build_cpu
741 build
742 LIBTOOL
743 OBJDUMP
744 DLLTOOL
745 AS
746 SDL_VERSION
747 SDL_BINARY_AGE
748 SDL_INTERFACE_AGE
749 SDL_MICRO_VERSION
750 SDL_MINOR_VERSION
751 SDL_MAJOR_VERSION
752 target_alias
753 host_alias
754 build_alias
755 LIBS
756 ECHO_T
757 ECHO_N
758 ECHO_C
759 DEFS
760 mandir
761 localedir
762 libdir
763 psdir
764 pdfdir
765 dvidir
766 htmldir
767 infodir
768 docdir
769 oldincludedir
770 includedir
771 localstatedir
772 sharedstatedir
773 sysconfdir
774 datadir
775 datarootdir
776 libexecdir
777 sbindir
778 bindir
779 program_transform_name
780 prefix
781 exec_prefix
782 PACKAGE_URL
783 PACKAGE_BUGREPORT
784 PACKAGE_STRING
785 PACKAGE_VERSION
786 PACKAGE_TARNAME
787 PACKAGE_NAME
788 PATH_SEPARATOR
789 SHELL'
790 ac_subst_files=''
791 ac_user_opts='
792 enable_option_checking
793 enable_shared
794 enable_static
795 with_pic
796 enable_fast_install
797 with_gnu_ld
798 with_sysroot
799 enable_libtool_lock
800 enable_assertions
801 enable_dependency_tracking
802 enable_libc
803 enable_gcc_atomics
804 enable_atomic
805 enable_audio
806 enable_video
807 enable_render
808 enable_events
809 enable_joystick
810 enable_haptic
811 enable_sensor
812 enable_power
813 enable_filesystem
814 enable_threads
815 enable_timers
816 enable_file
817 enable_loadso
818 enable_cpuinfo
819 enable_assembly
820 enable_ssemath
821 enable_mmx
822 enable_3dnow
823 enable_sse
824 enable_sse2
825 enable_sse3
826 enable_altivec
827 enable_oss
828 enable_alsa
829 with_alsa_prefix
830 with_alsa_inc_prefix
831 enable_alsatest
832 enable_alsa_shared
833 enable_jack
834 enable_jack_shared
835 enable_esd
836 with_esd_prefix
837 with_esd_exec_prefix
838 enable_esdtest
839 enable_esd_shared
840 enable_pulseaudio
841 enable_pulseaudio_shared
842 enable_arts
843 enable_arts_shared
844 enable_nas
845 enable_nas_shared
846 enable_sndio
847 enable_sndio_shared
848 enable_fusionsound
849 enable_fusionsound_shared
850 enable_diskaudio
851 enable_dummyaudio
852 enable_libsamplerate
853 enable_libsamplerate_shared
854 enable_arm_simd
855 enable_arm_neon
856 enable_video_wayland
857 enable_video_wayland_qt_touch
858 enable_wayland_shared
859 enable_video_tizen
860 enable_video_mir
861 enable_mir_shared
862 enable_video_rpi
863 enable_video_x11
864 with_x
865 enable_x11_shared
866 enable_video_x11_xcursor
867 enable_video_x11_xdbe
868 enable_video_x11_xinerama
869 enable_video_x11_xinput
870 enable_video_x11_xrandr
871 enable_video_x11_scrnsaver
872 enable_video_x11_xshape
873 enable_video_x11_vm
874 enable_video_vivante
875 enable_video_cocoa
876 enable_video_metal
877 enable_render_metal
878 enable_video_directfb
879 enable_directfb_shared
880 enable_video_kmsdrm
881 enable_kmsdrm_shared
882 enable_video_dummy
883 enable_video_opengl
884 enable_video_opengles
885 enable_video_opengles1
886 enable_video_opengles2
887 enable_video_vulkan
888 enable_libudev
889 enable_dbus
890 enable_ime
891 enable_ibus
892 enable_fcitx
893 enable_joystick_mfi
894 enable_pthreads
895 enable_pthread_sem
896 enable_directx
897 enable_wasapi
898 enable_sdl_dlopen
899 enable_hidapi
900 enable_hidapi_libusb
901 enable_clock_gettime
902 enable_rpath
903 enable_backgrounding_signal
904 enable_foregrounding_signal
905 enable_joystick_virtual
906 enable_render_d3d
907 enable_sdl2_config
908 '
909       ac_precious_vars='build_alias
910 host_alias
911 target_alias
912 CC
913 CFLAGS
914 LDFLAGS
915 LIBS
916 CPPFLAGS
917 CPP
918 CXX
919 CXXFLAGS
920 CCC
921 CXXCPP
922 PKG_CONFIG
923 PKG_CONFIG_PATH
924 PKG_CONFIG_LIBDIR
925 JACK_CFLAGS
926 JACK_LIBS
927 PULSEAUDIO_CFLAGS
928 PULSEAUDIO_LIBS
929 FUSIONSOUND_CFLAGS
930 FUSIONSOUND_LIBS
931 RPI_CFLAGS
932 RPI_LIBS
933 XMKMF
934 DIRECTFB_CFLAGS
935 DIRECTFB_LIBS
936 LIBDRM_CFLAGS
937 LIBDRM_LIBS
938 LIBGBM_CFLAGS
939 LIBGBM_LIBS
940 DBUS_CFLAGS
941 DBUS_LIBS
942 IBUS_CFLAGS
943 IBUS_LIBS
944 LIBUSB_CFLAGS
945 LIBUSB_LIBS'
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}'
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   elif test "x$build_alias" != "x$host_alias"; then
1402     cross_compiling=yes
1403   fi
1404 fi
1405
1406 ac_tool_prefix=
1407 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1408
1409 test "$silent" = yes && exec 6>/dev/null
1410
1411
1412 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1413 ac_ls_di=`ls -di .` &&
1414 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1415   as_fn_error $? "working directory cannot be determined"
1416 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1417   as_fn_error $? "pwd does not report name of working directory"
1418
1419
1420 # Find the source files, if location was not specified.
1421 if test -z "$srcdir"; then
1422   ac_srcdir_defaulted=yes
1423   # Try the directory containing this script, then the parent directory.
1424   ac_confdir=`$as_dirname -- "$as_myself" ||
1425 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1426          X"$as_myself" : 'X\(//\)[^/]' \| \
1427          X"$as_myself" : 'X\(//\)$' \| \
1428          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1429 $as_echo X"$as_myself" |
1430     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1431             s//\1/
1432             q
1433           }
1434           /^X\(\/\/\)[^/].*/{
1435             s//\1/
1436             q
1437           }
1438           /^X\(\/\/\)$/{
1439             s//\1/
1440             q
1441           }
1442           /^X\(\/\).*/{
1443             s//\1/
1444             q
1445           }
1446           s/.*/./; q'`
1447   srcdir=$ac_confdir
1448   if test ! -r "$srcdir/$ac_unique_file"; then
1449     srcdir=..
1450   fi
1451 else
1452   ac_srcdir_defaulted=no
1453 fi
1454 if test ! -r "$srcdir/$ac_unique_file"; then
1455   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1456   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1457 fi
1458 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1459 ac_abs_confdir=`(
1460         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1461         pwd)`
1462 # When building in place, set srcdir=.
1463 if test "$ac_abs_confdir" = "$ac_pwd"; then
1464   srcdir=.
1465 fi
1466 # Remove unnecessary trailing slashes from srcdir.
1467 # Double slashes in file names in object file debugging info
1468 # mess up M-x gdb in Emacs.
1469 case $srcdir in
1470 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1471 esac
1472 for ac_var in $ac_precious_vars; do
1473   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1474   eval ac_env_${ac_var}_value=\$${ac_var}
1475   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1476   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1477 done
1478
1479 #
1480 # Report the --help message.
1481 #
1482 if test "$ac_init_help" = "long"; then
1483   # Omit some internal or obsolete options to make the list less imposing.
1484   # This message is too long to be a string in the A/UX 3.1 sh.
1485   cat <<_ACEOF
1486 \`configure' configures this package to adapt to many kinds of systems.
1487
1488 Usage: $0 [OPTION]... [VAR=VALUE]...
1489
1490 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1491 VAR=VALUE.  See below for descriptions of some of the useful variables.
1492
1493 Defaults for the options are specified in brackets.
1494
1495 Configuration:
1496   -h, --help              display this help and exit
1497       --help=short        display options specific to this package
1498       --help=recursive    display the short help of all the included packages
1499   -V, --version           display version information and exit
1500   -q, --quiet, --silent   do not print \`checking ...' messages
1501       --cache-file=FILE   cache test results in FILE [disabled]
1502   -C, --config-cache      alias for \`--cache-file=config.cache'
1503   -n, --no-create         do not create output files
1504       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1505
1506 Installation directories:
1507   --prefix=PREFIX         install architecture-independent files in PREFIX
1508                           [$ac_default_prefix]
1509   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1510                           [PREFIX]
1511
1512 By default, \`make install' will install all the files in
1513 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1514 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1515 for instance \`--prefix=\$HOME'.
1516
1517 For better control, use the options below.
1518
1519 Fine tuning of the installation directories:
1520   --bindir=DIR            user executables [EPREFIX/bin]
1521   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1522   --libexecdir=DIR        program executables [EPREFIX/libexec]
1523   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1524   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1525   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1526   --libdir=DIR            object code libraries [EPREFIX/lib]
1527   --includedir=DIR        C header files [PREFIX/include]
1528   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1529   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1530   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1531   --infodir=DIR           info documentation [DATAROOTDIR/info]
1532   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1533   --mandir=DIR            man documentation [DATAROOTDIR/man]
1534   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1535   --htmldir=DIR           html documentation [DOCDIR]
1536   --dvidir=DIR            dvi documentation [DOCDIR]
1537   --pdfdir=DIR            pdf documentation [DOCDIR]
1538   --psdir=DIR             ps documentation [DOCDIR]
1539 _ACEOF
1540
1541   cat <<\_ACEOF
1542
1543 X features:
1544   --x-includes=DIR    X include files are in DIR
1545   --x-libraries=DIR   X library files are in DIR
1546
1547 System types:
1548   --build=BUILD     configure for building on BUILD [guessed]
1549   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1550 _ACEOF
1551 fi
1552
1553 if test -n "$ac_init_help"; then
1554
1555   cat <<\_ACEOF
1556
1557 Optional Features:
1558   --disable-option-checking  ignore unrecognized --enable/--with options
1559   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1560   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1561   --enable-shared[=PKGS]  build shared libraries [default=yes]
1562   --enable-static[=PKGS]  build static libraries [default=yes]
1563   --enable-fast-install[=PKGS]
1564                           optimize for fast installation [default=yes]
1565   --disable-libtool-lock  avoid locking (might break parallel builds)
1566   --enable-assertions     Enable internal sanity checks
1567                           (auto/disabled/release/enabled/paranoid)
1568                           [[default=auto]]
1569   --enable-dependency-tracking
1570                           Use gcc -MMD -MT dependency tracking [[default=yes]]
1571   --enable-libc           Use the system C library [[default=yes]]
1572   --enable-gcc-atomics    Use gcc builtin atomics [[default=yes]]
1573   --enable-atomic         Enable the atomic operations subsystem
1574                           [[default=yes]]
1575   --enable-audio          Enable the audio subsystem [[default=yes]]
1576   --enable-video          Enable the video subsystem [[default=yes]]
1577   --enable-render         Enable the render subsystem [[default=yes]]
1578   --enable-events         Enable the events subsystem [[default=yes]]
1579   --enable-joystick       Enable the joystick subsystem [[default=yes]]
1580   --enable-haptic         Enable the haptic (force feedback) subsystem
1581                           [[default=yes]]
1582   --enable-sensor         Enable the sensor subsystem [[default=yes]]
1583   --enable-power          Enable the power subsystem [[default=yes]]
1584   --enable-filesystem     Enable the filesystem subsystem [[default=yes]]
1585   --enable-threads        Enable the threading subsystem [[default=yes]]
1586   --enable-timers         Enable the timer subsystem [[default=yes]]
1587   --enable-file           Enable the file subsystem [[default=yes]]
1588   --enable-loadso         Enable the shared object loading subsystem
1589                           [[default=yes]]
1590   --enable-cpuinfo        Enable the cpuinfo subsystem [[default=yes]]
1591   --enable-assembly       Enable assembly routines [[default=yes]]
1592   --enable-ssemath        Allow GCC to use SSE floating point math
1593                           [[default=maybe]]
1594   --enable-mmx            use MMX assembly routines [[default=yes]]
1595   --enable-3dnow          use 3DNow! assembly routines [[default=yes]]
1596   --enable-sse            use SSE assembly routines [[default=yes]]
1597   --enable-sse2           use SSE2 assembly routines [[default=maybe]]
1598   --enable-sse3           use SSE3 assembly routines [[default=maybe]]
1599   --enable-altivec        use Altivec assembly routines [[default=yes]]
1600   --enable-oss            support the OSS audio API [[default=maybe]]
1601   --enable-alsa           support the ALSA audio API [[default=yes]]
1602   --disable-alsatest      Do not try to compile and run a test Alsa program
1603   --enable-alsa-shared    dynamically load ALSA audio support [[default=yes]]
1604   --enable-jack           use JACK audio [[default=yes]]
1605   --enable-jack-shared    dynamically load JACK audio support [[default=yes]]
1606   --enable-esd            support the Enlightened Sound Daemon [[default=yes]]
1607   --disable-esdtest       Do not try to compile and run a test ESD program
1608   --enable-esd-shared     dynamically load ESD audio support [[default=yes]]
1609   --enable-pulseaudio     use PulseAudio [[default=yes]]
1610   --enable-pulseaudio-shared
1611                           dynamically load PulseAudio support [[default=yes]]
1612   --enable-arts           support the Analog Real Time Synthesizer
1613                           [[default=yes]]
1614   --enable-arts-shared    dynamically load aRts audio support [[default=yes]]
1615   --enable-nas            support the NAS audio API [[default=yes]]
1616   --enable-nas-shared     dynamically load NAS audio support [[default=yes]]
1617   --enable-sndio          support the sndio audio API [[default=yes]]
1618   --enable-sndio-shared   dynamically load sndio audio support [[default=yes]]
1619   --enable-fusionsound    use FusionSound audio driver [[default=no]]
1620   --enable-fusionsound-shared
1621                           dynamically load fusionsound audio support
1622                           [[default=yes]]
1623   --enable-diskaudio      support the disk writer audio driver [[default=yes]]
1624   --enable-dummyaudio     support the dummy audio driver [[default=yes]]
1625   --enable-libsamplerate  use libsamplerate for audio rate conversion
1626                           [[default=yes]]
1627   --enable-libsamplerate-shared
1628                           dynamically load libsamplerate [[default=yes]]
1629   --enable-arm-simd       use SIMD assembly blitters on ARM [[default=no]]
1630   --enable-arm-neon       use NEON assembly blitters on ARM [[default=no]]
1631   --enable-video-wayland  use Wayland video driver [[default=yes]]
1632   --enable-video-wayland-qt-touch
1633                           QtWayland server support for Wayland video driver
1634                           [[default=yes]]
1635   --enable-wayland-shared dynamically load Wayland support [[default=maybe]]
1636   --enable-video-tizen    use tizen video driver [[default=yes]]
1637   --enable-video-mir      use Mir video driver [[default=yes]]
1638   --enable-mir-shared     dynamically load Mir support [[default=maybe]]
1639   --enable-video-rpi      use Raspberry Pi video driver [[default=yes]]
1640   --enable-video-x11      use X11 video driver [[default=yes]]
1641   --enable-x11-shared     dynamically load X11 support [[default=maybe]]
1642   --enable-video-x11-xcursor
1643                           enable X11 Xcursor support [[default=yes]]
1644   --enable-video-x11-xdbe enable X11 Xdbe support [[default=yes]]
1645   --enable-video-x11-xinerama
1646                           enable X11 Xinerama support [[default=yes]]
1647   --enable-video-x11-xinput
1648                           enable X11 XInput extension for manymouse, tablets,
1649                           etc [[default=yes]]
1650   --enable-video-x11-xrandr
1651                           enable X11 Xrandr extension for fullscreen
1652                           [[default=yes]]
1653   --enable-video-x11-scrnsaver
1654                           enable X11 screensaver extension [[default=yes]]
1655   --enable-video-x11-xshape
1656                           enable X11 XShape support [[default=yes]]
1657   --enable-video-x11-vm   use X11 VM extension for fullscreen [[default=yes]]
1658   --enable-video-vivante  use Vivante EGL video driver [[default=yes]]
1659   --enable-video-cocoa    use Cocoa video driver [[default=yes]]
1660   --enable-video-metal    include Metal support [[default=yes]]
1661   --enable-render-metal   enable the Metal render driver [[default=yes]]
1662   --enable-video-directfb use DirectFB video driver [[default=no]]
1663   --enable-directfb-shared
1664                           dynamically load directfb support [[default=yes]]
1665   --enable-video-kmsdrm   use KMSDRM video driver [[default=no]]
1666   --enable-kmsdrm-shared  dynamically load kmsdrm support [[default=yes]]
1667   --enable-video-dummy    use dummy video driver [[default=yes]]
1668   --enable-video-opengl   include OpenGL support [[default=yes]]
1669   --enable-video-opengles include OpenGL ES support [[default=yes]]
1670   --enable-video-opengles1
1671                           include OpenGL ES 1.1 support [[default=yes]]
1672   --enable-video-opengles2
1673                           include OpenGL ES 2.0 support [[default=yes]]
1674   --enable-video-vulkan   include Vulkan support [[default=yes]]
1675   --enable-libudev        enable libudev support [[default=yes]]
1676   --enable-dbus           enable D-Bus support [[default=yes]]
1677   --enable-ime            enable IME support [[default=yes]]
1678   --enable-ibus           enable IBus support [[default=yes]]
1679   --enable-fcitx          enable fcitx support [[default=yes]]
1680   --enable-joystick-mfi   include macOS MFI joystick support [[default=yes]]
1681   --enable-pthreads       use POSIX threads for multi-threading
1682                           [[default=yes]]
1683   --enable-pthread-sem    use pthread semaphores [[default=yes]]
1684   --enable-directx        use DirectX for Windows audio/video [[default=yes]]
1685   --enable-wasapi         use the Windows WASAPI audio driver [[default=yes]]
1686   --enable-sdl-dlopen     use dlopen for shared object loading [[default=yes]]
1687   --enable-hidapi         use HIDAPI for low level joystick drivers
1688                           [[default=yes]]
1689   --enable-hidapi-libusb  use libusb for low level joystick drivers
1690                           [[default=maybe]]
1691   --enable-clock_gettime  use clock_gettime() instead of gettimeofday() on
1692                           UNIX [[default=yes]]
1693   --enable-rpath          use an rpath when linking SDL [[default=yes]]
1694   --enable-backgrounding-signal
1695                           number to use for magic backgrounding signal or 'no'
1696                           [[default=no]]
1697   --enable-foregrounding-signal
1698                           number to use for magic foregrounding signal or 'no'
1699                           [[default=no]]
1700   --enable-joystick-virtual
1701                           enable virtual joystick APIs [[default=yes]]
1702   --enable-render-d3d     enable the Direct3D render driver [[default=yes]]
1703   --enable-sdl2-config    Install sdl2-config [default=yes]
1704
1705 Optional Packages:
1706   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1707   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1708   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1709                           both]
1710   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1711   --with-sysroot=DIR Search for dependent libraries within DIR
1712                         (or the compiler's sysroot if not specified).
1713   --with-alsa-prefix=PFX  Prefix where Alsa library is installed(optional)
1714   --with-alsa-inc-prefix=PFX  Prefix where include libraries are (optional)
1715   --with-esd-prefix=PFX   Prefix where ESD is installed (optional)
1716   --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
1717   --with-x                use the X Window System
1718
1719 Some influential environment variables:
1720   CC          C compiler command
1721   CFLAGS      C compiler flags
1722   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1723               nonstandard directory <lib dir>
1724   LIBS        libraries to pass to the linker, e.g. -l<library>
1725   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1726               you have headers in a nonstandard directory <include dir>
1727   CPP         C preprocessor
1728   CXX         C++ compiler command
1729   CXXFLAGS    C++ compiler flags
1730   CXXCPP      C++ preprocessor
1731   PKG_CONFIG  path to pkg-config utility
1732   PKG_CONFIG_PATH
1733               directories to add to pkg-config's search path
1734   PKG_CONFIG_LIBDIR
1735               path overriding pkg-config's built-in search path
1736   JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
1737   JACK_LIBS   linker flags for JACK, overriding pkg-config
1738   PULSEAUDIO_CFLAGS
1739               C compiler flags for PULSEAUDIO, overriding pkg-config
1740   PULSEAUDIO_LIBS
1741               linker flags for PULSEAUDIO, overriding pkg-config
1742   FUSIONSOUND_CFLAGS
1743               C compiler flags for FUSIONSOUND, overriding pkg-config
1744   FUSIONSOUND_LIBS
1745               linker flags for FUSIONSOUND, overriding pkg-config
1746   RPI_CFLAGS  C compiler flags for RPI, overriding pkg-config
1747   RPI_LIBS    linker flags for RPI, overriding pkg-config
1748   XMKMF       Path to xmkmf, Makefile generator for X Window System
1749   DIRECTFB_CFLAGS
1750               C compiler flags for DIRECTFB, overriding pkg-config
1751   DIRECTFB_LIBS
1752               linker flags for DIRECTFB, overriding pkg-config
1753   LIBDRM_CFLAGS
1754               C compiler flags for LIBDRM, overriding pkg-config
1755   LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
1756   LIBGBM_CFLAGS
1757               C compiler flags for LIBGBM, overriding pkg-config
1758   LIBGBM_LIBS linker flags for LIBGBM, overriding pkg-config
1759   DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
1760   DBUS_LIBS   linker flags for DBUS, overriding pkg-config
1761   IBUS_CFLAGS C compiler flags for IBUS, overriding pkg-config
1762   IBUS_LIBS   linker flags for IBUS, overriding pkg-config
1763   LIBUSB_CFLAGS
1764               C compiler flags for LIBUSB, overriding pkg-config
1765   LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
1766
1767 Use these variables to override the choices made by `configure' or to help
1768 it to find libraries and programs with nonstandard names/locations.
1769
1770 Report bugs to the package provider.
1771 _ACEOF
1772 ac_status=$?
1773 fi
1774
1775 if test "$ac_init_help" = "recursive"; then
1776   # If there are subdirs, report their specific --help.
1777   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1778     test -d "$ac_dir" ||
1779       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1780       continue
1781     ac_builddir=.
1782
1783 case "$ac_dir" in
1784 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1785 *)
1786   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1787   # A ".." for each directory in $ac_dir_suffix.
1788   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1789   case $ac_top_builddir_sub in
1790   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1791   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1792   esac ;;
1793 esac
1794 ac_abs_top_builddir=$ac_pwd
1795 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1796 # for backward compatibility:
1797 ac_top_builddir=$ac_top_build_prefix
1798
1799 case $srcdir in
1800   .)  # We are building in place.
1801     ac_srcdir=.
1802     ac_top_srcdir=$ac_top_builddir_sub
1803     ac_abs_top_srcdir=$ac_pwd ;;
1804   [\\/]* | ?:[\\/]* )  # Absolute name.
1805     ac_srcdir=$srcdir$ac_dir_suffix;
1806     ac_top_srcdir=$srcdir
1807     ac_abs_top_srcdir=$srcdir ;;
1808   *) # Relative name.
1809     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1810     ac_top_srcdir=$ac_top_build_prefix$srcdir
1811     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1812 esac
1813 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1814
1815     cd "$ac_dir" || { ac_status=$?; continue; }
1816     # Check for guested configure.
1817     if test -f "$ac_srcdir/configure.gnu"; then
1818       echo &&
1819       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1820     elif test -f "$ac_srcdir/configure"; then
1821       echo &&
1822       $SHELL "$ac_srcdir/configure" --help=recursive
1823     else
1824       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1825     fi || ac_status=$?
1826     cd "$ac_pwd" || { ac_status=$?; break; }
1827   done
1828 fi
1829
1830 test -n "$ac_init_help" && exit $ac_status
1831 if $ac_init_version; then
1832   cat <<\_ACEOF
1833 configure
1834 generated by GNU Autoconf 2.69
1835
1836 Copyright (C) 2012 Free Software Foundation, Inc.
1837 This configure script is free software; the Free Software Foundation
1838 gives unlimited permission to copy, distribute and modify it.
1839 _ACEOF
1840   exit
1841 fi
1842
1843 ## ------------------------ ##
1844 ## Autoconf initialization. ##
1845 ## ------------------------ ##
1846
1847 # ac_fn_c_try_compile LINENO
1848 # --------------------------
1849 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1850 ac_fn_c_try_compile ()
1851 {
1852   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1853   rm -f conftest.$ac_objext
1854   if { { ac_try="$ac_compile"
1855 case "(($ac_try" in
1856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1857   *) ac_try_echo=$ac_try;;
1858 esac
1859 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1860 $as_echo "$ac_try_echo"; } >&5
1861   (eval "$ac_compile") 2>conftest.err
1862   ac_status=$?
1863   if test -s conftest.err; then
1864     grep -v '^ *+' conftest.err >conftest.er1
1865     cat conftest.er1 >&5
1866     mv -f conftest.er1 conftest.err
1867   fi
1868   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1869   test $ac_status = 0; } && {
1870          test -z "$ac_c_werror_flag" ||
1871          test ! -s conftest.err
1872        } && test -s conftest.$ac_objext; then :
1873   ac_retval=0
1874 else
1875   $as_echo "$as_me: failed program was:" >&5
1876 sed 's/^/| /' conftest.$ac_ext >&5
1877
1878         ac_retval=1
1879 fi
1880   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1881   as_fn_set_status $ac_retval
1882
1883 } # ac_fn_c_try_compile
1884
1885 # ac_fn_c_try_link LINENO
1886 # -----------------------
1887 # Try to link conftest.$ac_ext, and return whether this succeeded.
1888 ac_fn_c_try_link ()
1889 {
1890   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1891   rm -f conftest.$ac_objext conftest$ac_exeext
1892   if { { ac_try="$ac_link"
1893 case "(($ac_try" in
1894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1895   *) ac_try_echo=$ac_try;;
1896 esac
1897 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1898 $as_echo "$ac_try_echo"; } >&5
1899   (eval "$ac_link") 2>conftest.err
1900   ac_status=$?
1901   if test -s conftest.err; then
1902     grep -v '^ *+' conftest.err >conftest.er1
1903     cat conftest.er1 >&5
1904     mv -f conftest.er1 conftest.err
1905   fi
1906   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1907   test $ac_status = 0; } && {
1908          test -z "$ac_c_werror_flag" ||
1909          test ! -s conftest.err
1910        } && test -s conftest$ac_exeext && {
1911          test "$cross_compiling" = yes ||
1912          test -x conftest$ac_exeext
1913        }; then :
1914   ac_retval=0
1915 else
1916   $as_echo "$as_me: failed program was:" >&5
1917 sed 's/^/| /' conftest.$ac_ext >&5
1918
1919         ac_retval=1
1920 fi
1921   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1922   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1923   # interfere with the next link command; also delete a directory that is
1924   # left behind by Apple's compiler.  We do this before executing the actions.
1925   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1926   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927   as_fn_set_status $ac_retval
1928
1929 } # ac_fn_c_try_link
1930
1931 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1932 # -------------------------------------------------------
1933 # Tests whether HEADER exists and can be compiled using the include files in
1934 # INCLUDES, setting the cache variable VAR accordingly.
1935 ac_fn_c_check_header_compile ()
1936 {
1937   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1938   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1939 $as_echo_n "checking for $2... " >&6; }
1940 if eval \${$3+:} false; then :
1941   $as_echo_n "(cached) " >&6
1942 else
1943   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1944 /* end confdefs.h.  */
1945 $4
1946 #include <$2>
1947 _ACEOF
1948 if ac_fn_c_try_compile "$LINENO"; then :
1949   eval "$3=yes"
1950 else
1951   eval "$3=no"
1952 fi
1953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1954 fi
1955 eval ac_res=\$$3
1956                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1957 $as_echo "$ac_res" >&6; }
1958   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1959
1960 } # ac_fn_c_check_header_compile
1961
1962 # ac_fn_c_try_cpp LINENO
1963 # ----------------------
1964 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1965 ac_fn_c_try_cpp ()
1966 {
1967   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1968   if { { ac_try="$ac_cpp conftest.$ac_ext"
1969 case "(($ac_try" in
1970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1971   *) ac_try_echo=$ac_try;;
1972 esac
1973 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1974 $as_echo "$ac_try_echo"; } >&5
1975   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1976   ac_status=$?
1977   if test -s conftest.err; then
1978     grep -v '^ *+' conftest.err >conftest.er1
1979     cat conftest.er1 >&5
1980     mv -f conftest.er1 conftest.err
1981   fi
1982   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1983   test $ac_status = 0; } > conftest.i && {
1984          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1985          test ! -s conftest.err
1986        }; then :
1987   ac_retval=0
1988 else
1989   $as_echo "$as_me: failed program was:" >&5
1990 sed 's/^/| /' conftest.$ac_ext >&5
1991
1992     ac_retval=1
1993 fi
1994   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1995   as_fn_set_status $ac_retval
1996
1997 } # ac_fn_c_try_cpp
1998
1999 # ac_fn_c_try_run LINENO
2000 # ----------------------
2001 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2002 # that executables *can* be run.
2003 ac_fn_c_try_run ()
2004 {
2005   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2006   if { { ac_try="$ac_link"
2007 case "(($ac_try" in
2008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2009   *) ac_try_echo=$ac_try;;
2010 esac
2011 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2012 $as_echo "$ac_try_echo"; } >&5
2013   (eval "$ac_link") 2>&5
2014   ac_status=$?
2015   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2016   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2017   { { case "(($ac_try" in
2018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2019   *) ac_try_echo=$ac_try;;
2020 esac
2021 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2022 $as_echo "$ac_try_echo"; } >&5
2023   (eval "$ac_try") 2>&5
2024   ac_status=$?
2025   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2026   test $ac_status = 0; }; }; then :
2027   ac_retval=0
2028 else
2029   $as_echo "$as_me: program exited with status $ac_status" >&5
2030        $as_echo "$as_me: failed program was:" >&5
2031 sed 's/^/| /' conftest.$ac_ext >&5
2032
2033        ac_retval=$ac_status
2034 fi
2035   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2036   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2037   as_fn_set_status $ac_retval
2038
2039 } # ac_fn_c_try_run
2040
2041 # ac_fn_c_check_func LINENO FUNC VAR
2042 # ----------------------------------
2043 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2044 ac_fn_c_check_func ()
2045 {
2046   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2047   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2048 $as_echo_n "checking for $2... " >&6; }
2049 if eval \${$3+:} false; then :
2050   $as_echo_n "(cached) " >&6
2051 else
2052   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2053 /* end confdefs.h.  */
2054 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2055    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2056 #define $2 innocuous_$2
2057
2058 /* System header to define __stub macros and hopefully few prototypes,
2059     which can conflict with char $2 (); below.
2060     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2061     <limits.h> exists even on freestanding compilers.  */
2062
2063 #ifdef __STDC__
2064 # include <limits.h>
2065 #else
2066 # include <assert.h>
2067 #endif
2068
2069 #undef $2
2070
2071 /* Override any GCC internal prototype to avoid an error.
2072    Use char because int might match the return type of a GCC
2073    builtin and then its argument prototype would still apply.  */
2074 #ifdef __cplusplus
2075 extern "C"
2076 #endif
2077 char $2 ();
2078 /* The GNU C library defines this for functions which it implements
2079     to always fail with ENOSYS.  Some functions are actually named
2080     something starting with __ and the normal name is an alias.  */
2081 #if defined __stub_$2 || defined __stub___$2
2082 choke me
2083 #endif
2084
2085 int
2086 main ()
2087 {
2088 return $2 ();
2089   ;
2090   return 0;
2091 }
2092 _ACEOF
2093 if ac_fn_c_try_link "$LINENO"; then :
2094   eval "$3=yes"
2095 else
2096   eval "$3=no"
2097 fi
2098 rm -f core conftest.err conftest.$ac_objext \
2099     conftest$ac_exeext conftest.$ac_ext
2100 fi
2101 eval ac_res=\$$3
2102                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2103 $as_echo "$ac_res" >&6; }
2104   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2105
2106 } # ac_fn_c_check_func
2107
2108 # ac_fn_cxx_try_compile LINENO
2109 # ----------------------------
2110 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2111 ac_fn_cxx_try_compile ()
2112 {
2113   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2114   rm -f conftest.$ac_objext
2115   if { { ac_try="$ac_compile"
2116 case "(($ac_try" in
2117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2118   *) ac_try_echo=$ac_try;;
2119 esac
2120 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2121 $as_echo "$ac_try_echo"; } >&5
2122   (eval "$ac_compile") 2>conftest.err
2123   ac_status=$?
2124   if test -s conftest.err; then
2125     grep -v '^ *+' conftest.err >conftest.er1
2126     cat conftest.er1 >&5
2127     mv -f conftest.er1 conftest.err
2128   fi
2129   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2130   test $ac_status = 0; } && {
2131          test -z "$ac_cxx_werror_flag" ||
2132          test ! -s conftest.err
2133        } && test -s conftest.$ac_objext; then :
2134   ac_retval=0
2135 else
2136   $as_echo "$as_me: failed program was:" >&5
2137 sed 's/^/| /' conftest.$ac_ext >&5
2138
2139         ac_retval=1
2140 fi
2141   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2142   as_fn_set_status $ac_retval
2143
2144 } # ac_fn_cxx_try_compile
2145
2146 # ac_fn_cxx_try_cpp LINENO
2147 # ------------------------
2148 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2149 ac_fn_cxx_try_cpp ()
2150 {
2151   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2152   if { { ac_try="$ac_cpp conftest.$ac_ext"
2153 case "(($ac_try" in
2154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2155   *) ac_try_echo=$ac_try;;
2156 esac
2157 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2158 $as_echo "$ac_try_echo"; } >&5
2159   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2160   ac_status=$?
2161   if test -s conftest.err; then
2162     grep -v '^ *+' conftest.err >conftest.er1
2163     cat conftest.er1 >&5
2164     mv -f conftest.er1 conftest.err
2165   fi
2166   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2167   test $ac_status = 0; } > conftest.i && {
2168          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2169          test ! -s conftest.err
2170        }; then :
2171   ac_retval=0
2172 else
2173   $as_echo "$as_me: failed program was:" >&5
2174 sed 's/^/| /' conftest.$ac_ext >&5
2175
2176     ac_retval=1
2177 fi
2178   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2179   as_fn_set_status $ac_retval
2180
2181 } # ac_fn_cxx_try_cpp
2182
2183 # ac_fn_cxx_try_link LINENO
2184 # -------------------------
2185 # Try to link conftest.$ac_ext, and return whether this succeeded.
2186 ac_fn_cxx_try_link ()
2187 {
2188   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2189   rm -f conftest.$ac_objext conftest$ac_exeext
2190   if { { ac_try="$ac_link"
2191 case "(($ac_try" in
2192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2193   *) ac_try_echo=$ac_try;;
2194 esac
2195 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2196 $as_echo "$ac_try_echo"; } >&5
2197   (eval "$ac_link") 2>conftest.err
2198   ac_status=$?
2199   if test -s conftest.err; then
2200     grep -v '^ *+' conftest.err >conftest.er1
2201     cat conftest.er1 >&5
2202     mv -f conftest.er1 conftest.err
2203   fi
2204   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2205   test $ac_status = 0; } && {
2206          test -z "$ac_cxx_werror_flag" ||
2207          test ! -s conftest.err
2208        } && test -s conftest$ac_exeext && {
2209          test "$cross_compiling" = yes ||
2210          test -x conftest$ac_exeext
2211        }; then :
2212   ac_retval=0
2213 else
2214   $as_echo "$as_me: failed program was:" >&5
2215 sed 's/^/| /' conftest.$ac_ext >&5
2216
2217         ac_retval=1
2218 fi
2219   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2220   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2221   # interfere with the next link command; also delete a directory that is
2222   # left behind by Apple's compiler.  We do this before executing the actions.
2223   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2224   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2225   as_fn_set_status $ac_retval
2226
2227 } # ac_fn_cxx_try_link
2228
2229 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2230 # -------------------------------------------------------
2231 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2232 # the include files in INCLUDES and setting the cache variable VAR
2233 # accordingly.
2234 ac_fn_c_check_header_mongrel ()
2235 {
2236   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2237   if eval \${$3+:} false; then :
2238   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2239 $as_echo_n "checking for $2... " >&6; }
2240 if eval \${$3+:} false; then :
2241   $as_echo_n "(cached) " >&6
2242 fi
2243 eval ac_res=\$$3
2244                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2245 $as_echo "$ac_res" >&6; }
2246 else
2247   # Is the header compilable?
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2249 $as_echo_n "checking $2 usability... " >&6; }
2250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2251 /* end confdefs.h.  */
2252 $4
2253 #include <$2>
2254 _ACEOF
2255 if ac_fn_c_try_compile "$LINENO"; then :
2256   ac_header_compiler=yes
2257 else
2258   ac_header_compiler=no
2259 fi
2260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2262 $as_echo "$ac_header_compiler" >&6; }
2263
2264 # Is the header present?
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2266 $as_echo_n "checking $2 presence... " >&6; }
2267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2268 /* end confdefs.h.  */
2269 #include <$2>
2270 _ACEOF
2271 if ac_fn_c_try_cpp "$LINENO"; then :
2272   ac_header_preproc=yes
2273 else
2274   ac_header_preproc=no
2275 fi
2276 rm -f conftest.err conftest.i conftest.$ac_ext
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2278 $as_echo "$ac_header_preproc" >&6; }
2279
2280 # So?  What about this header?
2281 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2282   yes:no: )
2283     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2284 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2285     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2286 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2287     ;;
2288   no:yes:* )
2289     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2290 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2291     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2292 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2293     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2294 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2295     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2296 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2297     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2298 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2299     ;;
2300 esac
2301   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2302 $as_echo_n "checking for $2... " >&6; }
2303 if eval \${$3+:} false; then :
2304   $as_echo_n "(cached) " >&6
2305 else
2306   eval "$3=\$ac_header_compiler"
2307 fi
2308 eval ac_res=\$$3
2309                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2310 $as_echo "$ac_res" >&6; }
2311 fi
2312   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2313
2314 } # ac_fn_c_check_header_mongrel
2315
2316 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2317 # -------------------------------------------
2318 # Tests whether TYPE exists after having included INCLUDES, setting cache
2319 # variable VAR accordingly.
2320 ac_fn_c_check_type ()
2321 {
2322   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2323   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2324 $as_echo_n "checking for $2... " >&6; }
2325 if eval \${$3+:} false; then :
2326   $as_echo_n "(cached) " >&6
2327 else
2328   eval "$3=no"
2329   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2330 /* end confdefs.h.  */
2331 $4
2332 int
2333 main ()
2334 {
2335 if (sizeof ($2))
2336          return 0;
2337   ;
2338   return 0;
2339 }
2340 _ACEOF
2341 if ac_fn_c_try_compile "$LINENO"; then :
2342   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2343 /* end confdefs.h.  */
2344 $4
2345 int
2346 main ()
2347 {
2348 if (sizeof (($2)))
2349             return 0;
2350   ;
2351   return 0;
2352 }
2353 _ACEOF
2354 if ac_fn_c_try_compile "$LINENO"; then :
2355
2356 else
2357   eval "$3=yes"
2358 fi
2359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2360 fi
2361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2362 fi
2363 eval ac_res=\$$3
2364                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2365 $as_echo "$ac_res" >&6; }
2366   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2367
2368 } # ac_fn_c_check_type
2369
2370 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2371 # ----------------------------------------------------
2372 # Tries to find if the field MEMBER exists in type AGGR, after including
2373 # INCLUDES, setting cache variable VAR accordingly.
2374 ac_fn_c_check_member ()
2375 {
2376   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2377   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2378 $as_echo_n "checking for $2.$3... " >&6; }
2379 if eval \${$4+:} false; then :
2380   $as_echo_n "(cached) " >&6
2381 else
2382   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2383 /* end confdefs.h.  */
2384 $5
2385 int
2386 main ()
2387 {
2388 static $2 ac_aggr;
2389 if (ac_aggr.$3)
2390 return 0;
2391   ;
2392   return 0;
2393 }
2394 _ACEOF
2395 if ac_fn_c_try_compile "$LINENO"; then :
2396   eval "$4=yes"
2397 else
2398   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2399 /* end confdefs.h.  */
2400 $5
2401 int
2402 main ()
2403 {
2404 static $2 ac_aggr;
2405 if (sizeof ac_aggr.$3)
2406 return 0;
2407   ;
2408   return 0;
2409 }
2410 _ACEOF
2411 if ac_fn_c_try_compile "$LINENO"; then :
2412   eval "$4=yes"
2413 else
2414   eval "$4=no"
2415 fi
2416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2417 fi
2418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2419 fi
2420 eval ac_res=\$$4
2421                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2422 $as_echo "$ac_res" >&6; }
2423   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2424
2425 } # ac_fn_c_check_member
2426 cat >config.log <<_ACEOF
2427 This file contains any messages produced by compilers while
2428 running configure, to aid debugging if configure makes a mistake.
2429
2430 It was created by $as_me, which was
2431 generated by GNU Autoconf 2.69.  Invocation command line was
2432
2433   $ $0 $@
2434
2435 _ACEOF
2436 exec 5>>config.log
2437 {
2438 cat <<_ASUNAME
2439 ## --------- ##
2440 ## Platform. ##
2441 ## --------- ##
2442
2443 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2444 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2445 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2446 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2447 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2448
2449 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2450 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2451
2452 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2453 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2454 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2455 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2456 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2457 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2458 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2459
2460 _ASUNAME
2461
2462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2463 for as_dir in $PATH
2464 do
2465   IFS=$as_save_IFS
2466   test -z "$as_dir" && as_dir=.
2467     $as_echo "PATH: $as_dir"
2468   done
2469 IFS=$as_save_IFS
2470
2471 } >&5
2472
2473 cat >&5 <<_ACEOF
2474
2475
2476 ## ----------- ##
2477 ## Core tests. ##
2478 ## ----------- ##
2479
2480 _ACEOF
2481
2482
2483 # Keep a trace of the command line.
2484 # Strip out --no-create and --no-recursion so they do not pile up.
2485 # Strip out --silent because we don't want to record it for future runs.
2486 # Also quote any args containing shell meta-characters.
2487 # Make two passes to allow for proper duplicate-argument suppression.
2488 ac_configure_args=
2489 ac_configure_args0=
2490 ac_configure_args1=
2491 ac_must_keep_next=false
2492 for ac_pass in 1 2
2493 do
2494   for ac_arg
2495   do
2496     case $ac_arg in
2497     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2498     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2499     | -silent | --silent | --silen | --sile | --sil)
2500       continue ;;
2501     *\'*)
2502       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2503     esac
2504     case $ac_pass in
2505     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2506     2)
2507       as_fn_append ac_configure_args1 " '$ac_arg'"
2508       if test $ac_must_keep_next = true; then
2509         ac_must_keep_next=false # Got value, back to normal.
2510       else
2511         case $ac_arg in
2512           *=* | --config-cache | -C | -disable-* | --disable-* \
2513           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2514           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2515           | -with-* | --with-* | -without-* | --without-* | --x)
2516             case "$ac_configure_args0 " in
2517               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2518             esac
2519             ;;
2520           -* ) ac_must_keep_next=true ;;
2521         esac
2522       fi
2523       as_fn_append ac_configure_args " '$ac_arg'"
2524       ;;
2525     esac
2526   done
2527 done
2528 { ac_configure_args0=; unset ac_configure_args0;}
2529 { ac_configure_args1=; unset ac_configure_args1;}
2530
2531 # When interrupted or exit'd, cleanup temporary files, and complete
2532 # config.log.  We remove comments because anyway the quotes in there
2533 # would cause problems or look ugly.
2534 # WARNING: Use '\'' to represent an apostrophe within the trap.
2535 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2536 trap 'exit_status=$?
2537   # Save into config.log some information that might help in debugging.
2538   {
2539     echo
2540
2541     $as_echo "## ---------------- ##
2542 ## Cache variables. ##
2543 ## ---------------- ##"
2544     echo
2545     # The following way of writing the cache mishandles newlines in values,
2546 (
2547   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2548     eval ac_val=\$$ac_var
2549     case $ac_val in #(
2550     *${as_nl}*)
2551       case $ac_var in #(
2552       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2553 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2554       esac
2555       case $ac_var in #(
2556       _ | IFS | as_nl) ;; #(
2557       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2558       *) { eval $ac_var=; unset $ac_var;} ;;
2559       esac ;;
2560     esac
2561   done
2562   (set) 2>&1 |
2563     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2564     *${as_nl}ac_space=\ *)
2565       sed -n \
2566         "s/'\''/'\''\\\\'\'''\''/g;
2567           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2568       ;; #(
2569     *)
2570       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2571       ;;
2572     esac |
2573     sort
2574 )
2575     echo
2576
2577     $as_echo "## ----------------- ##
2578 ## Output variables. ##
2579 ## ----------------- ##"
2580     echo
2581     for ac_var in $ac_subst_vars
2582     do
2583       eval ac_val=\$$ac_var
2584       case $ac_val in
2585       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2586       esac
2587       $as_echo "$ac_var='\''$ac_val'\''"
2588     done | sort
2589     echo
2590
2591     if test -n "$ac_subst_files"; then
2592       $as_echo "## ------------------- ##
2593 ## File substitutions. ##
2594 ## ------------------- ##"
2595       echo
2596       for ac_var in $ac_subst_files
2597       do
2598         eval ac_val=\$$ac_var
2599         case $ac_val in
2600         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2601         esac
2602         $as_echo "$ac_var='\''$ac_val'\''"
2603       done | sort
2604       echo
2605     fi
2606
2607     if test -s confdefs.h; then
2608       $as_echo "## ----------- ##
2609 ## confdefs.h. ##
2610 ## ----------- ##"
2611       echo
2612       cat confdefs.h
2613       echo
2614     fi
2615     test "$ac_signal" != 0 &&
2616       $as_echo "$as_me: caught signal $ac_signal"
2617     $as_echo "$as_me: exit $exit_status"
2618   } >&5
2619   rm -f core *.core core.conftest.* &&
2620     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2621     exit $exit_status
2622 ' 0
2623 for ac_signal in 1 2 13 15; do
2624   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2625 done
2626 ac_signal=0
2627
2628 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2629 rm -f -r conftest* confdefs.h
2630
2631 $as_echo "/* confdefs.h */" > confdefs.h
2632
2633 # Predefined preprocessor variables.
2634
2635 cat >>confdefs.h <<_ACEOF
2636 #define PACKAGE_NAME "$PACKAGE_NAME"
2637 _ACEOF
2638
2639 cat >>confdefs.h <<_ACEOF
2640 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2641 _ACEOF
2642
2643 cat >>confdefs.h <<_ACEOF
2644 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2645 _ACEOF
2646
2647 cat >>confdefs.h <<_ACEOF
2648 #define PACKAGE_STRING "$PACKAGE_STRING"
2649 _ACEOF
2650
2651 cat >>confdefs.h <<_ACEOF
2652 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2653 _ACEOF
2654
2655 cat >>confdefs.h <<_ACEOF
2656 #define PACKAGE_URL "$PACKAGE_URL"
2657 _ACEOF
2658
2659
2660 # Let the site file select an alternate cache file if it wants to.
2661 # Prefer an explicitly selected file to automatically selected ones.
2662 ac_site_file1=NONE
2663 ac_site_file2=NONE
2664 if test -n "$CONFIG_SITE"; then
2665   # We do not want a PATH search for config.site.
2666   case $CONFIG_SITE in #((
2667     -*)  ac_site_file1=./$CONFIG_SITE;;
2668     */*) ac_site_file1=$CONFIG_SITE;;
2669     *)   ac_site_file1=./$CONFIG_SITE;;
2670   esac
2671 elif test "x$prefix" != xNONE; then
2672   ac_site_file1=$prefix/share/config.site
2673   ac_site_file2=$prefix/etc/config.site
2674 else
2675   ac_site_file1=$ac_default_prefix/share/config.site
2676   ac_site_file2=$ac_default_prefix/etc/config.site
2677 fi
2678 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2679 do
2680   test "x$ac_site_file" = xNONE && continue
2681   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2682     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2683 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2684     sed 's/^/| /' "$ac_site_file" >&5
2685     . "$ac_site_file" \
2686       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2687 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2688 as_fn_error $? "failed to load site script $ac_site_file
2689 See \`config.log' for more details" "$LINENO" 5; }
2690   fi
2691 done
2692
2693 if test -r "$cache_file"; then
2694   # Some versions of bash will fail to source /dev/null (special files
2695   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2696   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2697     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2698 $as_echo "$as_me: loading cache $cache_file" >&6;}
2699     case $cache_file in
2700       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2701       *)                      . "./$cache_file";;
2702     esac
2703   fi
2704 else
2705   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2706 $as_echo "$as_me: creating cache $cache_file" >&6;}
2707   >$cache_file
2708 fi
2709
2710 # Check that the precious variables saved in the cache have kept the same
2711 # value.
2712 ac_cache_corrupted=false
2713 for ac_var in $ac_precious_vars; do
2714   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2715   eval ac_new_set=\$ac_env_${ac_var}_set
2716   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2717   eval ac_new_val=\$ac_env_${ac_var}_value
2718   case $ac_old_set,$ac_new_set in
2719     set,)
2720       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2721 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2722       ac_cache_corrupted=: ;;
2723     ,set)
2724       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2725 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2726       ac_cache_corrupted=: ;;
2727     ,);;
2728     *)
2729       if test "x$ac_old_val" != "x$ac_new_val"; then
2730         # differences in whitespace do not lead to failure.
2731         ac_old_val_w=`echo x $ac_old_val`
2732         ac_new_val_w=`echo x $ac_new_val`
2733         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2734           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2735 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2736           ac_cache_corrupted=:
2737         else
2738           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2739 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2740           eval $ac_var=\$ac_old_val
2741         fi
2742         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2743 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2744         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2745 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2746       fi;;
2747   esac
2748   # Pass precious variables to config.status.
2749   if test "$ac_new_set" = set; then
2750     case $ac_new_val in
2751     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2752     *) ac_arg=$ac_var=$ac_new_val ;;
2753     esac
2754     case " $ac_configure_args " in
2755       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2756       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2757     esac
2758   fi
2759 done
2760 if $ac_cache_corrupted; then
2761   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2762 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2763   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2764 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2765   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2766 fi
2767 ## -------------------- ##
2768 ## Main body of script. ##
2769 ## -------------------- ##
2770
2771 ac_ext=c
2772 ac_cpp='$CPP $CPPFLAGS'
2773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2776
2777
2778
2779 ac_config_headers="$ac_config_headers include/SDL_config.h"
2780
2781 ac_aux_dir=
2782 for ac_dir in build-scripts "$srcdir"/build-scripts; do
2783   if test -f "$ac_dir/install-sh"; then
2784     ac_aux_dir=$ac_dir
2785     ac_install_sh="$ac_aux_dir/install-sh -c"
2786     break
2787   elif test -f "$ac_dir/install.sh"; then
2788     ac_aux_dir=$ac_dir
2789     ac_install_sh="$ac_aux_dir/install.sh -c"
2790     break
2791   elif test -f "$ac_dir/shtool"; then
2792     ac_aux_dir=$ac_dir
2793     ac_install_sh="$ac_aux_dir/shtool install -c"
2794     break
2795   fi
2796 done
2797 if test -z "$ac_aux_dir"; then
2798   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5
2799 fi
2800
2801 # These three variables are undocumented and unsupported,
2802 # and are intended to be withdrawn in a future Autoconf release.
2803 # They can cause serious problems if a builder's source tree is in a directory
2804 # whose full name contains unusual characters.
2805 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2806 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2807 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2808
2809
2810
2811
2812 orig_CFLAGS="$CFLAGS"
2813
2814 #
2815 # Making releases:
2816 # Edit include/SDL_version.h and change the version, then:
2817 #   SDL_MICRO_VERSION += 1;
2818 #   SDL_INTERFACE_AGE += 1;
2819 #   SDL_BINARY_AGE += 1;
2820 # if any functions have been added, set SDL_INTERFACE_AGE to 0.
2821 # if backwards compatibility has been broken,
2822 # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
2823 #
2824 SDL_MAJOR_VERSION=2
2825 SDL_MINOR_VERSION=0
2826 SDL_MICRO_VERSION=14
2827 SDL_INTERFACE_AGE=0
2828 SDL_BINARY_AGE=14
2829 SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
2830
2831
2832
2833
2834
2835
2836
2837
2838 # libtool versioning
2839 case `pwd` in
2840   *\ * | *\     *)
2841     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2842 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2843 esac
2844
2845
2846
2847 macro_version='2.4.2'
2848 macro_revision='1.3337'
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862 ltmain="$ac_aux_dir/ltmain.sh"
2863
2864 ac_build_alias=$build_alias
2865 ac_cv_build=$build_alias
2866
2867 $as_echo "ac_cv_build : $ac_cv_build"
2868 $as_echo "ac_build_alias : $ac_build_alias"
2869
2870
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2872 $as_echo "$ac_cv_build" >&6; }
2873 case $ac_cv_build in
2874 *-*-*) ;;
2875 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2876 esac
2877 build=$ac_cv_build
2878 ac_save_IFS=$IFS; IFS='-'
2879 set x $ac_cv_build
2880 shift
2881 build_cpu=$1
2882 build_vendor=$2
2883 shift; shift
2884 # Remember, the first character of IFS is used to create $*,
2885 # except with old shells:
2886 build_os=$*
2887 IFS=$ac_save_IFS
2888 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2889
2890
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2892 $as_echo_n "checking host system type... " >&6; }
2893 ac_cv_host=$host_alias
2894 $as_echo "ac_cv_host : $ac_cv_host"
2895
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2897 $as_echo "$ac_cv_host" >&6; }
2898 case $ac_cv_host in
2899 *-*-*) ;;
2900 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2901 esac
2902 host=$ac_cv_host
2903 ac_save_IFS=$IFS; IFS='-'
2904 set x $ac_cv_host
2905 shift
2906 host_cpu=$1
2907 host_vendor=$2
2908 shift; shift
2909 # Remember, the first character of IFS is used to create $*,
2910 # except with old shells:
2911 host_os=$*
2912 IFS=$ac_save_IFS
2913 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2914
2915
2916 # Backslashify metacharacters that are still active within
2917 # double-quoted strings.
2918 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2919
2920 # Same as above, but do not quote variable references.
2921 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2922
2923 # Sed substitution to delay expansion of an escaped shell variable in a
2924 # double_quote_subst'ed string.
2925 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2926
2927 # Sed substitution to delay expansion of an escaped single quote.
2928 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2929
2930 # Sed substitution to avoid accidental globbing in evaled expressions
2931 no_glob_subst='s/\*/\\\*/g'
2932
2933 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2934 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2935 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2936
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2938 $as_echo_n "checking how to print strings... " >&6; }
2939 # Test print first, because it will be a builtin if present.
2940 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2941    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2942   ECHO='print -r --'
2943 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2944   ECHO='printf %s\n'
2945 else
2946   # Use this function as a fallback that always works.
2947   func_fallback_echo ()
2948   {
2949     eval 'cat <<_LTECHO_EOF
2950 $1
2951 _LTECHO_EOF'
2952   }
2953   ECHO='func_fallback_echo'
2954 fi
2955
2956 # func_echo_all arg...
2957 # Invoke $ECHO with all args, space-separated.
2958 func_echo_all ()
2959 {
2960     $ECHO ""
2961 }
2962
2963 case "$ECHO" in
2964   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2965 $as_echo "printf" >&6; } ;;
2966   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2967 $as_echo "print -r" >&6; } ;;
2968   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2969 $as_echo "cat" >&6; } ;;
2970 esac
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985 ac_ext=c
2986 ac_cpp='$CPP $CPPFLAGS'
2987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2990 if test -n "$ac_tool_prefix"; then
2991   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2992 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2994 $as_echo_n "checking for $ac_word... " >&6; }
2995 if ${ac_cv_prog_CC+:} false; then :
2996   $as_echo_n "(cached) " >&6
2997 else
2998   if test -n "$CC"; then
2999   ac_cv_prog_CC="$CC" # Let the user override the test.
3000 else
3001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3002 for as_dir in $PATH
3003 do
3004   IFS=$as_save_IFS
3005   test -z "$as_dir" && as_dir=.
3006     for ac_exec_ext in '' $ac_executable_extensions; do
3007   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3008     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3009     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3010     break 2
3011   fi
3012 done
3013   done
3014 IFS=$as_save_IFS
3015
3016 fi
3017 fi
3018 CC=$ac_cv_prog_CC
3019 if test -n "$CC"; then
3020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3021 $as_echo "$CC" >&6; }
3022 else
3023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3024 $as_echo "no" >&6; }
3025 fi
3026
3027
3028 fi
3029 if test -z "$ac_cv_prog_CC"; then
3030   ac_ct_CC=$CC
3031   # Extract the first word of "gcc", so it can be a program name with args.
3032 set dummy gcc; ac_word=$2
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3034 $as_echo_n "checking for $ac_word... " >&6; }
3035 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3036   $as_echo_n "(cached) " >&6
3037 else
3038   if test -n "$ac_ct_CC"; then
3039   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3040 else
3041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3042 for as_dir in $PATH
3043 do
3044   IFS=$as_save_IFS
3045   test -z "$as_dir" && as_dir=.
3046     for ac_exec_ext in '' $ac_executable_extensions; do
3047   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3048     ac_cv_prog_ac_ct_CC="gcc"
3049     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3050     break 2
3051   fi
3052 done
3053   done
3054 IFS=$as_save_IFS
3055
3056 fi
3057 fi
3058 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3059 if test -n "$ac_ct_CC"; then
3060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3061 $as_echo "$ac_ct_CC" >&6; }
3062 else
3063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3064 $as_echo "no" >&6; }
3065 fi
3066
3067   if test "x$ac_ct_CC" = x; then
3068     CC=""
3069   else
3070     case $cross_compiling:$ac_tool_warned in
3071 yes:)
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3073 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3074 ac_tool_warned=yes ;;
3075 esac
3076     CC=$ac_ct_CC
3077   fi
3078 else
3079   CC="$ac_cv_prog_CC"
3080 fi
3081
3082 if test -z "$CC"; then
3083           if test -n "$ac_tool_prefix"; then
3084     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3085 set dummy ${ac_tool_prefix}cc; ac_word=$2
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3087 $as_echo_n "checking for $ac_word... " >&6; }
3088 if ${ac_cv_prog_CC+:} false; then :
3089   $as_echo_n "(cached) " >&6
3090 else
3091   if test -n "$CC"; then
3092   ac_cv_prog_CC="$CC" # Let the user override the test.
3093 else
3094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3095 for as_dir in $PATH
3096 do
3097   IFS=$as_save_IFS
3098   test -z "$as_dir" && as_dir=.
3099     for ac_exec_ext in '' $ac_executable_extensions; do
3100   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3101     ac_cv_prog_CC="${ac_tool_prefix}cc"
3102     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3103     break 2
3104   fi
3105 done
3106   done
3107 IFS=$as_save_IFS
3108
3109 fi
3110 fi
3111 CC=$ac_cv_prog_CC
3112 if test -n "$CC"; then
3113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3114 $as_echo "$CC" >&6; }
3115 else
3116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3117 $as_echo "no" >&6; }
3118 fi
3119
3120
3121   fi
3122 fi
3123 if test -z "$CC"; then
3124   # Extract the first word of "cc", so it can be a program name with args.
3125 set dummy cc; ac_word=$2
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3127 $as_echo_n "checking for $ac_word... " >&6; }
3128 if ${ac_cv_prog_CC+:} false; then :
3129   $as_echo_n "(cached) " >&6
3130 else
3131   if test -n "$CC"; then
3132   ac_cv_prog_CC="$CC" # Let the user override the test.
3133 else
3134   ac_prog_rejected=no
3135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3136 for as_dir in $PATH
3137 do
3138   IFS=$as_save_IFS
3139   test -z "$as_dir" && as_dir=.
3140     for ac_exec_ext in '' $ac_executable_extensions; do
3141   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3142     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3143        ac_prog_rejected=yes
3144        continue
3145      fi
3146     ac_cv_prog_CC="cc"
3147     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3148     break 2
3149   fi
3150 done
3151   done
3152 IFS=$as_save_IFS
3153
3154 if test $ac_prog_rejected = yes; then
3155   # We found a bogon in the path, so make sure we never use it.
3156   set dummy $ac_cv_prog_CC
3157   shift
3158   if test $# != 0; then
3159     # We chose a different compiler from the bogus one.
3160     # However, it has the same basename, so the bogon will be chosen
3161     # first if we set CC to just the basename; use the full file name.
3162     shift
3163     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3164   fi
3165 fi
3166 fi
3167 fi
3168 CC=$ac_cv_prog_CC
3169 if test -n "$CC"; then
3170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3171 $as_echo "$CC" >&6; }
3172 else
3173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3174 $as_echo "no" >&6; }
3175 fi
3176
3177
3178 fi
3179 if test -z "$CC"; then
3180   if test -n "$ac_tool_prefix"; then
3181   for ac_prog in cl.exe
3182   do
3183     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3184 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3186 $as_echo_n "checking for $ac_word... " >&6; }
3187 if ${ac_cv_prog_CC+:} false; then :
3188   $as_echo_n "(cached) " >&6
3189 else
3190   if test -n "$CC"; then
3191   ac_cv_prog_CC="$CC" # Let the user override the test.
3192 else
3193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3194 for as_dir in $PATH
3195 do
3196   IFS=$as_save_IFS
3197   test -z "$as_dir" && as_dir=.
3198     for ac_exec_ext in '' $ac_executable_extensions; do
3199   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3200     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3201     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3202     break 2
3203   fi
3204 done
3205   done
3206 IFS=$as_save_IFS
3207
3208 fi
3209 fi
3210 CC=$ac_cv_prog_CC
3211 if test -n "$CC"; then
3212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3213 $as_echo "$CC" >&6; }
3214 else
3215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3216 $as_echo "no" >&6; }
3217 fi
3218
3219
3220     test -n "$CC" && break
3221   done
3222 fi
3223 if test -z "$CC"; then
3224   ac_ct_CC=$CC
3225   for ac_prog in cl.exe
3226 do
3227   # Extract the first word of "$ac_prog", so it can be a program name with args.
3228 set dummy $ac_prog; ac_word=$2
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3230 $as_echo_n "checking for $ac_word... " >&6; }
3231 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3232   $as_echo_n "(cached) " >&6
3233 else
3234   if test -n "$ac_ct_CC"; then
3235   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3236 else
3237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3238 for as_dir in $PATH
3239 do
3240   IFS=$as_save_IFS
3241   test -z "$as_dir" && as_dir=.
3242     for ac_exec_ext in '' $ac_executable_extensions; do
3243   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3244     ac_cv_prog_ac_ct_CC="$ac_prog"
3245     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3246     break 2
3247   fi
3248 done
3249   done
3250 IFS=$as_save_IFS
3251
3252 fi
3253 fi
3254 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3255 if test -n "$ac_ct_CC"; then
3256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3257 $as_echo "$ac_ct_CC" >&6; }
3258 else
3259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3260 $as_echo "no" >&6; }
3261 fi
3262
3263
3264   test -n "$ac_ct_CC" && break
3265 done
3266
3267   if test "x$ac_ct_CC" = x; then
3268     CC=""
3269   else
3270     case $cross_compiling:$ac_tool_warned in
3271 yes:)
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3273 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3274 ac_tool_warned=yes ;;
3275 esac
3276     CC=$ac_ct_CC
3277   fi
3278 fi
3279
3280 fi
3281
3282
3283 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3284 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3285 as_fn_error $? "no acceptable C compiler found in \$PATH
3286 See \`config.log' for more details" "$LINENO" 5; }
3287
3288 # Provide some information about the compiler.
3289 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3290 set X $ac_compile
3291 ac_compiler=$2
3292 for ac_option in --version -v -V -qversion; do
3293   { { ac_try="$ac_compiler $ac_option >&5"
3294 case "(($ac_try" in
3295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3296   *) ac_try_echo=$ac_try;;
3297 esac
3298 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3299 $as_echo "$ac_try_echo"; } >&5
3300   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3301   ac_status=$?
3302   if test -s conftest.err; then
3303     sed '10a\
3304 ... rest of stderr output deleted ...
3305          10q' conftest.err >conftest.er1
3306     cat conftest.er1 >&5
3307   fi
3308   rm -f conftest.er1 conftest.err
3309   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3310   test $ac_status = 0; }
3311 done
3312
3313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3314 /* end confdefs.h.  */
3315
3316 int
3317 main ()
3318 {
3319
3320   ;
3321   return 0;
3322 }
3323 _ACEOF
3324 ac_clean_files_save=$ac_clean_files
3325 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3326 # Try to create an executable without -o first, disregard a.out.
3327 # It will help us diagnose broken compilers, and finding out an intuition
3328 # of exeext.
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3330 $as_echo_n "checking whether the C compiler works... " >&6; }
3331 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3332
3333 # The possible output files:
3334 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3335
3336 ac_rmfiles=
3337 for ac_file in $ac_files
3338 do
3339   case $ac_file in
3340     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3341     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3342   esac
3343 done
3344 rm -f $ac_rmfiles
3345
3346 if { { ac_try="$ac_link_default"
3347 case "(($ac_try" in
3348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3349   *) ac_try_echo=$ac_try;;
3350 esac
3351 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3352 $as_echo "$ac_try_echo"; } >&5
3353   (eval "$ac_link_default") 2>&5
3354   ac_status=$?
3355   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3356   test $ac_status = 0; }; then :
3357   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3358 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3359 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3360 # so that the user can short-circuit this test for compilers unknown to
3361 # Autoconf.
3362 for ac_file in $ac_files ''
3363 do
3364   test -f "$ac_file" || continue
3365   case $ac_file in
3366     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3367         ;;
3368     [ab].out )
3369         # We found the default executable, but exeext='' is most
3370         # certainly right.
3371         break;;
3372     *.* )
3373         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3374         then :; else
3375            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3376         fi
3377         # We set ac_cv_exeext here because the later test for it is not
3378         # safe: cross compilers may not add the suffix if given an `-o'
3379         # argument, so we may need to know it at that point already.
3380         # Even if this section looks crufty: it has the advantage of
3381         # actually working.
3382         break;;
3383     * )
3384         break;;
3385   esac
3386 done
3387 test "$ac_cv_exeext" = no && ac_cv_exeext=
3388
3389 else
3390   ac_file=''
3391 fi
3392 if test -z "$ac_file"; then :
3393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3394 $as_echo "no" >&6; }
3395 $as_echo "$as_me: failed program was:" >&5
3396 sed 's/^/| /' conftest.$ac_ext >&5
3397
3398 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3399 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3400 as_fn_error 77 "C compiler cannot create executables
3401 See \`config.log' for more details" "$LINENO" 5; }
3402 else
3403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3404 $as_echo "yes" >&6; }
3405 fi
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3407 $as_echo_n "checking for C compiler default output file name... " >&6; }
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3409 $as_echo "$ac_file" >&6; }
3410 ac_exeext=$ac_cv_exeext
3411
3412 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3413 ac_clean_files=$ac_clean_files_save
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3415 $as_echo_n "checking for suffix of executables... " >&6; }
3416 if { { ac_try="$ac_link"
3417 case "(($ac_try" in
3418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3419   *) ac_try_echo=$ac_try;;
3420 esac
3421 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3422 $as_echo "$ac_try_echo"; } >&5
3423   (eval "$ac_link") 2>&5
3424   ac_status=$?
3425   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3426   test $ac_status = 0; }; then :
3427   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3428 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3429 # work properly (i.e., refer to `conftest.exe'), while it won't with
3430 # `rm'.
3431 for ac_file in conftest.exe conftest conftest.*; do
3432   test -f "$ac_file" || continue
3433   case $ac_file in
3434     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3435     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3436           break;;
3437     * ) break;;
3438   esac
3439 done
3440 else
3441   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3442 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3443 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3444 See \`config.log' for more details" "$LINENO" 5; }
3445 fi
3446 rm -f conftest conftest$ac_cv_exeext
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3448 $as_echo "$ac_cv_exeext" >&6; }
3449
3450 rm -f conftest.$ac_ext
3451 EXEEXT=$ac_cv_exeext
3452 ac_exeext=$EXEEXT
3453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3454 /* end confdefs.h.  */
3455 #include <stdio.h>
3456 int
3457 main ()
3458 {
3459 FILE *f = fopen ("conftest.out", "w");
3460  return ferror (f) || fclose (f) != 0;
3461
3462   ;
3463   return 0;
3464 }
3465 _ACEOF
3466 ac_clean_files="$ac_clean_files conftest.out"
3467 # Check that the compiler produces executables we can run.  If not, either
3468 # the compiler is broken, or we cross compile.
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3470 $as_echo_n "checking whether we are cross compiling... " >&6; }
3471 if test "$cross_compiling" != yes; then
3472   { { ac_try="$ac_link"
3473 case "(($ac_try" in
3474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3475   *) ac_try_echo=$ac_try;;
3476 esac
3477 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3478 $as_echo "$ac_try_echo"; } >&5
3479   (eval "$ac_link") 2>&5
3480   ac_status=$?
3481   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3482   test $ac_status = 0; }
3483   if { ac_try='./conftest$ac_cv_exeext'
3484   { { case "(($ac_try" in
3485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3486   *) ac_try_echo=$ac_try;;
3487 esac
3488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3489 $as_echo "$ac_try_echo"; } >&5
3490   (eval "$ac_try") 2>&5
3491   ac_status=$?
3492   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3493   test $ac_status = 0; }; }; then
3494     cross_compiling=no
3495   else
3496     if test "$cross_compiling" = maybe; then
3497         cross_compiling=yes
3498     else
3499         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3500 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3501 as_fn_error $? "cannot run C compiled programs.
3502 If you meant to cross compile, use \`--host'.
3503 See \`config.log' for more details" "$LINENO" 5; }
3504     fi
3505   fi
3506 fi
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3508 $as_echo "$cross_compiling" >&6; }
3509
3510 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3511 ac_clean_files=$ac_clean_files_save
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3513 $as_echo_n "checking for suffix of object files... " >&6; }
3514 if ${ac_cv_objext+:} false; then :
3515   $as_echo_n "(cached) " >&6
3516 else
3517   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3518 /* end confdefs.h.  */
3519
3520 int
3521 main ()
3522 {
3523
3524   ;
3525   return 0;
3526 }
3527 _ACEOF
3528 rm -f conftest.o conftest.obj
3529 if { { ac_try="$ac_compile"
3530 case "(($ac_try" in
3531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3532   *) ac_try_echo=$ac_try;;
3533 esac
3534 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3535 $as_echo "$ac_try_echo"; } >&5
3536   (eval "$ac_compile") 2>&5
3537   ac_status=$?
3538   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3539   test $ac_status = 0; }; then :
3540   for ac_file in conftest.o conftest.obj conftest.*; do
3541   test -f "$ac_file" || continue;
3542   case $ac_file in
3543     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3544     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3545        break;;
3546   esac
3547 done
3548 else
3549   $as_echo "$as_me: failed program was:" >&5
3550 sed 's/^/| /' conftest.$ac_ext >&5
3551
3552 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3553 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3554 as_fn_error $? "cannot compute suffix of object files: cannot compile
3555 See \`config.log' for more details" "$LINENO" 5; }
3556 fi
3557 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3558 fi
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3560 $as_echo "$ac_cv_objext" >&6; }
3561 OBJEXT=$ac_cv_objext
3562 ac_objext=$OBJEXT
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3564 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3565 if ${ac_cv_c_compiler_gnu+:} false; then :
3566   $as_echo_n "(cached) " >&6
3567 else
3568   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3569 /* end confdefs.h.  */
3570
3571 int
3572 main ()
3573 {
3574 #ifndef __GNUC__
3575        choke me
3576 #endif
3577
3578   ;
3579   return 0;
3580 }
3581 _ACEOF
3582 if ac_fn_c_try_compile "$LINENO"; then :
3583   ac_compiler_gnu=yes
3584 else
3585   ac_compiler_gnu=no
3586 fi
3587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3588 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3589
3590 fi
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3592 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3593 if test $ac_compiler_gnu = yes; then
3594   GCC=yes
3595 else
3596   GCC=
3597 fi
3598 ac_test_CFLAGS=${CFLAGS+set}
3599 ac_save_CFLAGS=$CFLAGS
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3601 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3602 if ${ac_cv_prog_cc_g+:} false; then :
3603   $as_echo_n "(cached) " >&6
3604 else
3605   ac_save_c_werror_flag=$ac_c_werror_flag
3606    ac_c_werror_flag=yes
3607    ac_cv_prog_cc_g=no
3608    CFLAGS="-g"
3609    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3610 /* end confdefs.h.  */
3611
3612 int
3613 main ()
3614 {
3615
3616   ;
3617   return 0;
3618 }
3619 _ACEOF
3620 if ac_fn_c_try_compile "$LINENO"; then :
3621   ac_cv_prog_cc_g=yes
3622 else
3623   CFLAGS=""
3624       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3625 /* end confdefs.h.  */
3626
3627 int
3628 main ()
3629 {
3630
3631   ;
3632   return 0;
3633 }
3634 _ACEOF
3635 if ac_fn_c_try_compile "$LINENO"; then :
3636
3637 else
3638   ac_c_werror_flag=$ac_save_c_werror_flag
3639          CFLAGS="-g"
3640          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3641 /* end confdefs.h.  */
3642
3643 int
3644 main ()
3645 {
3646
3647   ;
3648   return 0;
3649 }
3650 _ACEOF
3651 if ac_fn_c_try_compile "$LINENO"; then :
3652   ac_cv_prog_cc_g=yes
3653 fi
3654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3655 fi
3656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3657 fi
3658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3659    ac_c_werror_flag=$ac_save_c_werror_flag
3660 fi
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3662 $as_echo "$ac_cv_prog_cc_g" >&6; }
3663 if test "$ac_test_CFLAGS" = set; then
3664   CFLAGS=$ac_save_CFLAGS
3665 elif test $ac_cv_prog_cc_g = yes; then
3666   if test "$GCC" = yes; then
3667     CFLAGS="-g -O2"
3668   else
3669     CFLAGS="-g"
3670   fi
3671 else
3672   if test "$GCC" = yes; then
3673     CFLAGS="-O2"
3674   else
3675     CFLAGS=
3676   fi
3677 fi
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3679 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3680 if ${ac_cv_prog_cc_c89+:} false; then :
3681   $as_echo_n "(cached) " >&6
3682 else
3683   ac_cv_prog_cc_c89=no
3684 ac_save_CC=$CC
3685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3686 /* end confdefs.h.  */
3687 #include <stdarg.h>
3688 #include <stdio.h>
3689 struct stat;
3690 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3691 struct buf { int x; };
3692 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3693 static char *e (p, i)
3694      char **p;
3695      int i;
3696 {
3697   return p[i];
3698 }
3699 static char *f (char * (*g) (char **, int), char **p, ...)
3700 {
3701   char *s;
3702   va_list v;
3703   va_start (v,p);
3704   s = g (p, va_arg (v,int));
3705   va_end (v);
3706   return s;
3707 }
3708
3709 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3710    function prototypes and stuff, but not '\xHH' hex character constants.
3711    These don't provoke an error unfortunately, instead are silently treated
3712    as 'x'.  The following induces an error, until -std is added to get
3713    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3714    array size at least.  It's necessary to write '\x00'==0 to get something
3715    that's true only with -std.  */
3716 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3717
3718 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3719    inside strings and character constants.  */
3720 #define FOO(x) 'x'
3721 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3722
3723 int test (int i, double x);
3724 struct s1 {int (*f) (int a);};
3725 struct s2 {int (*f) (double a);};
3726 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3727 int argc;
3728 char **argv;
3729 int
3730 main ()
3731 {
3732 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3733   ;
3734   return 0;
3735 }
3736 _ACEOF
3737 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3738         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3739 do
3740   CC="$ac_save_CC $ac_arg"
3741   if ac_fn_c_try_compile "$LINENO"; then :
3742   ac_cv_prog_cc_c89=$ac_arg
3743 fi
3744 rm -f core conftest.err conftest.$ac_objext
3745   test "x$ac_cv_prog_cc_c89" != "xno" && break
3746 done
3747 rm -f conftest.$ac_ext
3748 CC=$ac_save_CC
3749
3750 fi
3751 # AC_CACHE_VAL
3752 case "x$ac_cv_prog_cc_c89" in
3753   x)
3754     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3755 $as_echo "none needed" >&6; } ;;
3756   xno)
3757     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3758 $as_echo "unsupported" >&6; } ;;
3759   *)
3760     CC="$CC $ac_cv_prog_cc_c89"
3761     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3762 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3763 esac
3764 if test "x$ac_cv_prog_cc_c89" != xno; then :
3765
3766 fi
3767
3768 ac_ext=c
3769 ac_cpp='$CPP $CPPFLAGS'
3770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3773
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3775 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3776 if ${ac_cv_path_SED+:} false; then :
3777   $as_echo_n "(cached) " >&6
3778 else
3779             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3780      for ac_i in 1 2 3 4 5 6 7; do
3781        ac_script="$ac_script$as_nl$ac_script"
3782      done
3783      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3784      { ac_script=; unset ac_script;}
3785      if test -z "$SED"; then
3786   ac_path_SED_found=false
3787   # Loop through the user's path and test for each of PROGNAME-LIST
3788   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3789 for as_dir in $PATH
3790 do
3791   IFS=$as_save_IFS
3792   test -z "$as_dir" && as_dir=.
3793     for ac_prog in sed gsed; do
3794     for ac_exec_ext in '' $ac_executable_extensions; do
3795       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3796       as_fn_executable_p "$ac_path_SED" || continue
3797 # Check for GNU ac_path_SED and select it if it is found.
3798   # Check for GNU $ac_path_SED
3799 case `"$ac_path_SED" --version 2>&1` in
3800 *GNU*)
3801   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3802 *)
3803   ac_count=0
3804   $as_echo_n 0123456789 >"conftest.in"
3805   while :
3806   do
3807     cat "conftest.in" "conftest.in" >"conftest.tmp"
3808     mv "conftest.tmp" "conftest.in"
3809     cp "conftest.in" "conftest.nl"
3810     $as_echo '' >> "conftest.nl"
3811     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3812     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3813     as_fn_arith $ac_count + 1 && ac_count=$as_val
3814     if test $ac_count -gt ${ac_path_SED_max-0}; then
3815       # Best one so far, save it but keep looking for a better one
3816       ac_cv_path_SED="$ac_path_SED"
3817       ac_path_SED_max=$ac_count
3818     fi
3819     # 10*(2^10) chars as input seems more than enough
3820     test $ac_count -gt 10 && break
3821   done
3822   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3823 esac
3824
3825       $ac_path_SED_found && break 3
3826     done
3827   done
3828   done
3829 IFS=$as_save_IFS
3830   if test -z "$ac_cv_path_SED"; then
3831     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3832   fi
3833 else
3834   ac_cv_path_SED=$SED
3835 fi
3836
3837 fi
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3839 $as_echo "$ac_cv_path_SED" >&6; }
3840  SED="$ac_cv_path_SED"
3841   rm -f conftest.sed
3842
3843 test -z "$SED" && SED=sed
3844 Xsed="$SED -e 1s/^X//"
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3857 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3858 if ${ac_cv_path_GREP+:} false; then :
3859   $as_echo_n "(cached) " >&6
3860 else
3861   if test -z "$GREP"; then
3862   ac_path_GREP_found=false
3863   # Loop through the user's path and test for each of PROGNAME-LIST
3864   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3865 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3866 do
3867   IFS=$as_save_IFS
3868   test -z "$as_dir" && as_dir=.
3869     for ac_prog in grep ggrep; do
3870     for ac_exec_ext in '' $ac_executable_extensions; do
3871       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3872       as_fn_executable_p "$ac_path_GREP" || continue
3873 # Check for GNU ac_path_GREP and select it if it is found.
3874   # Check for GNU $ac_path_GREP
3875 case `"$ac_path_GREP" --version 2>&1` in
3876 *GNU*)
3877   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3878 *)
3879   ac_count=0
3880   $as_echo_n 0123456789 >"conftest.in"
3881   while :
3882   do
3883     cat "conftest.in" "conftest.in" >"conftest.tmp"
3884     mv "conftest.tmp" "conftest.in"
3885     cp "conftest.in" "conftest.nl"
3886     $as_echo 'GREP' >> "conftest.nl"
3887     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3888     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3889     as_fn_arith $ac_count + 1 && ac_count=$as_val
3890     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3891       # Best one so far, save it but keep looking for a better one
3892       ac_cv_path_GREP="$ac_path_GREP"
3893       ac_path_GREP_max=$ac_count
3894     fi
3895     # 10*(2^10) chars as input seems more than enough
3896     test $ac_count -gt 10 && break
3897   done
3898   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3899 esac
3900
3901       $ac_path_GREP_found && break 3
3902     done
3903   done
3904   done
3905 IFS=$as_save_IFS
3906   if test -z "$ac_cv_path_GREP"; then
3907     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3908   fi
3909 else
3910   ac_cv_path_GREP=$GREP
3911 fi
3912
3913 fi
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3915 $as_echo "$ac_cv_path_GREP" >&6; }
3916  GREP="$ac_cv_path_GREP"
3917
3918
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3920 $as_echo_n "checking for egrep... " >&6; }
3921 if ${ac_cv_path_EGREP+:} false; then :
3922   $as_echo_n "(cached) " >&6
3923 else
3924   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3925    then ac_cv_path_EGREP="$GREP -E"
3926    else
3927      if test -z "$EGREP"; then
3928   ac_path_EGREP_found=false
3929   # Loop through the user's path and test for each of PROGNAME-LIST
3930   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3931 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3932 do
3933   IFS=$as_save_IFS
3934   test -z "$as_dir" && as_dir=.
3935     for ac_prog in egrep; do
3936     for ac_exec_ext in '' $ac_executable_extensions; do
3937       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3938       as_fn_executable_p "$ac_path_EGREP" || continue
3939 # Check for GNU ac_path_EGREP and select it if it is found.
3940   # Check for GNU $ac_path_EGREP
3941 case `"$ac_path_EGREP" --version 2>&1` in
3942 *GNU*)
3943   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3944 *)
3945   ac_count=0
3946   $as_echo_n 0123456789 >"conftest.in"
3947   while :
3948   do
3949     cat "conftest.in" "conftest.in" >"conftest.tmp"
3950     mv "conftest.tmp" "conftest.in"
3951     cp "conftest.in" "conftest.nl"
3952     $as_echo 'EGREP' >> "conftest.nl"
3953     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3954     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3955     as_fn_arith $ac_count + 1 && ac_count=$as_val
3956     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3957       # Best one so far, save it but keep looking for a better one
3958       ac_cv_path_EGREP="$ac_path_EGREP"
3959       ac_path_EGREP_max=$ac_count
3960     fi
3961     # 10*(2^10) chars as input seems more than enough
3962     test $ac_count -gt 10 && break
3963   done
3964   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3965 esac
3966
3967       $ac_path_EGREP_found && break 3
3968     done
3969   done
3970   done
3971 IFS=$as_save_IFS
3972   if test -z "$ac_cv_path_EGREP"; then
3973     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3974   fi
3975 else
3976   ac_cv_path_EGREP=$EGREP
3977 fi
3978
3979    fi
3980 fi
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3982 $as_echo "$ac_cv_path_EGREP" >&6; }
3983  EGREP="$ac_cv_path_EGREP"
3984
3985
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3987 $as_echo_n "checking for fgrep... " >&6; }
3988 if ${ac_cv_path_FGREP+:} false; then :
3989   $as_echo_n "(cached) " >&6
3990 else
3991   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3992    then ac_cv_path_FGREP="$GREP -F"
3993    else
3994      if test -z "$FGREP"; then
3995   ac_path_FGREP_found=false
3996   # Loop through the user's path and test for each of PROGNAME-LIST
3997   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3998 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3999 do
4000   IFS=$as_save_IFS
4001   test -z "$as_dir" && as_dir=.
4002     for ac_prog in fgrep; do
4003     for ac_exec_ext in '' $ac_executable_extensions; do
4004       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4005       as_fn_executable_p "$ac_path_FGREP" || continue
4006 # Check for GNU ac_path_FGREP and select it if it is found.
4007   # Check for GNU $ac_path_FGREP
4008 case `"$ac_path_FGREP" --version 2>&1` in
4009 *GNU*)
4010   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4011 *)
4012   ac_count=0
4013   $as_echo_n 0123456789 >"conftest.in"
4014   while :
4015   do
4016     cat "conftest.in" "conftest.in" >"conftest.tmp"
4017     mv "conftest.tmp" "conftest.in"
4018     cp "conftest.in" "conftest.nl"
4019     $as_echo 'FGREP' >> "conftest.nl"
4020     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4021     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4022     as_fn_arith $ac_count + 1 && ac_count=$as_val
4023     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4024       # Best one so far, save it but keep looking for a better one
4025       ac_cv_path_FGREP="$ac_path_FGREP"
4026       ac_path_FGREP_max=$ac_count
4027     fi
4028     # 10*(2^10) chars as input seems more than enough
4029     test $ac_count -gt 10 && break
4030   done
4031   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4032 esac
4033
4034       $ac_path_FGREP_found && break 3
4035     done
4036   done
4037   done
4038 IFS=$as_save_IFS
4039   if test -z "$ac_cv_path_FGREP"; then
4040     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4041   fi
4042 else
4043   ac_cv_path_FGREP=$FGREP
4044 fi
4045
4046    fi
4047 fi
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4049 $as_echo "$ac_cv_path_FGREP" >&6; }
4050  FGREP="$ac_cv_path_FGREP"
4051
4052
4053 test -z "$GREP" && GREP=grep
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073 # Check whether --with-gnu-ld was given.
4074 if test "${with_gnu_ld+set}" = set; then :
4075   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4076 else
4077   with_gnu_ld=no
4078 fi
4079
4080 ac_prog=ld
4081 if test "$GCC" = yes; then
4082   # Check if gcc -print-prog-name=ld gives a path.
4083   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4084 $as_echo_n "checking for ld used by $CC... " >&6; }
4085   case $host in
4086   *-*-mingw*)
4087     # gcc leaves a trailing carriage return which upsets mingw
4088     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4089   *)
4090     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4091   esac
4092   case $ac_prog in
4093     # Accept absolute paths.
4094     [\\/]* | ?:[\\/]*)
4095       re_direlt='/[^/][^/]*/\.\./'
4096       # Canonicalize the pathname of ld
4097       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4098       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4099         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4100       done
4101       test -z "$LD" && LD="$ac_prog"
4102       ;;
4103   "")
4104     # If it fails, then pretend we aren't using GCC.
4105     ac_prog=ld
4106     ;;
4107   *)
4108     # If it is relative, then search for the first ld in PATH.
4109     with_gnu_ld=unknown
4110     ;;
4111   esac
4112 elif test "$with_gnu_ld" = yes; then
4113   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4114 $as_echo_n "checking for GNU ld... " >&6; }
4115 else
4116   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4117 $as_echo_n "checking for non-GNU ld... " >&6; }
4118 fi
4119 if ${lt_cv_path_LD+:} false; then :
4120   $as_echo_n "(cached) " >&6
4121 else
4122   if test -z "$LD"; then
4123   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4124   for ac_dir in $PATH; do
4125     IFS="$lt_save_ifs"
4126     test -z "$ac_dir" && ac_dir=.
4127     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4128       lt_cv_path_LD="$ac_dir/$ac_prog"
4129       # Check to see if the program is GNU ld.  I'd rather use --version,
4130       # but apparently some variants of GNU ld only accept -v.
4131       # Break only if it was the GNU/non-GNU ld that we prefer.
4132       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4133       *GNU* | *'with BFD'*)
4134         test "$with_gnu_ld" != no && break
4135         ;;
4136       *)
4137         test "$with_gnu_ld" != yes && break
4138         ;;
4139       esac
4140     fi
4141   done
4142   IFS="$lt_save_ifs"
4143 else
4144   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4145 fi
4146 fi
4147
4148 LD="$lt_cv_path_LD"
4149 if test -n "$LD"; then
4150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4151 $as_echo "$LD" >&6; }
4152 else
4153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4154 $as_echo "no" >&6; }
4155 fi
4156 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4158 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4159 if ${lt_cv_prog_gnu_ld+:} false; then :
4160   $as_echo_n "(cached) " >&6
4161 else
4162   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4163 case `$LD -v 2>&1 </dev/null` in
4164 *GNU* | *'with BFD'*)
4165   lt_cv_prog_gnu_ld=yes
4166   ;;
4167 *)
4168   lt_cv_prog_gnu_ld=no
4169   ;;
4170 esac
4171 fi
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4173 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4174 with_gnu_ld=$lt_cv_prog_gnu_ld
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4185 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4186 if ${lt_cv_path_NM+:} false; then :
4187   $as_echo_n "(cached) " >&6
4188 else
4189   if test -n "$NM"; then
4190   # Let the user override the test.
4191   lt_cv_path_NM="$NM"
4192 else
4193   lt_nm_to_check="${ac_tool_prefix}nm"
4194   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4195     lt_nm_to_check="$lt_nm_to_check nm"
4196   fi
4197   for lt_tmp_nm in $lt_nm_to_check; do
4198     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4199     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4200       IFS="$lt_save_ifs"
4201       test -z "$ac_dir" && ac_dir=.
4202       tmp_nm="$ac_dir/$lt_tmp_nm"
4203       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4204         # Check to see if the nm accepts a BSD-compat flag.
4205         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4206         #   nm: unknown option "B" ignored
4207         # Tru64's nm complains that /dev/null is an invalid object file
4208         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4209         */dev/null* | *'Invalid file or object type'*)
4210           lt_cv_path_NM="$tmp_nm -B"
4211           break
4212           ;;
4213         *)
4214           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4215           */dev/null*)
4216             lt_cv_path_NM="$tmp_nm -p"
4217             break
4218             ;;
4219           *)
4220             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4221             continue # so that we can try to find one that supports BSD flags
4222             ;;
4223           esac
4224           ;;
4225         esac
4226       fi
4227     done
4228     IFS="$lt_save_ifs"
4229   done
4230   : ${lt_cv_path_NM=no}
4231 fi
4232 fi
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4234 $as_echo "$lt_cv_path_NM" >&6; }
4235 if test "$lt_cv_path_NM" != "no"; then
4236   NM="$lt_cv_path_NM"
4237 else
4238   # Didn't find any BSD compatible name lister, look for dumpbin.
4239   if test -n "$DUMPBIN"; then :
4240     # Let the user override the test.
4241   else
4242     if test -n "$ac_tool_prefix"; then
4243   for ac_prog in dumpbin "link -dump"
4244   do
4245     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4246 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4248 $as_echo_n "checking for $ac_word... " >&6; }
4249 if ${ac_cv_prog_DUMPBIN+:} false; then :
4250   $as_echo_n "(cached) " >&6
4251 else
4252   if test -n "$DUMPBIN"; then
4253   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4254 else
4255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4256 for as_dir in $PATH
4257 do
4258   IFS=$as_save_IFS
4259   test -z "$as_dir" && as_dir=.
4260     for ac_exec_ext in '' $ac_executable_extensions; do
4261   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4262     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4263     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4264     break 2
4265   fi
4266 done
4267   done
4268 IFS=$as_save_IFS
4269
4270 fi
4271 fi
4272 DUMPBIN=$ac_cv_prog_DUMPBIN
4273 if test -n "$DUMPBIN"; then
4274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4275 $as_echo "$DUMPBIN" >&6; }
4276 else
4277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4278 $as_echo "no" >&6; }
4279 fi
4280
4281
4282     test -n "$DUMPBIN" && break
4283   done
4284 fi
4285 if test -z "$DUMPBIN"; then
4286   ac_ct_DUMPBIN=$DUMPBIN
4287   for ac_prog in dumpbin "link -dump"
4288 do
4289   # Extract the first word of "$ac_prog", so it can be a program name with args.
4290 set dummy $ac_prog; ac_word=$2
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4292 $as_echo_n "checking for $ac_word... " >&6; }
4293 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4294   $as_echo_n "(cached) " >&6
4295 else
4296   if test -n "$ac_ct_DUMPBIN"; then
4297   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4298 else
4299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4300 for as_dir in $PATH
4301 do
4302   IFS=$as_save_IFS
4303   test -z "$as_dir" && as_dir=.
4304     for ac_exec_ext in '' $ac_executable_extensions; do
4305   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4306     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4307     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4308     break 2
4309   fi
4310 done
4311   done
4312 IFS=$as_save_IFS
4313
4314 fi
4315 fi
4316 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4317 if test -n "$ac_ct_DUMPBIN"; then
4318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4319 $as_echo "$ac_ct_DUMPBIN" >&6; }
4320 else
4321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4322 $as_echo "no" >&6; }
4323 fi
4324
4325
4326   test -n "$ac_ct_DUMPBIN" && break
4327 done
4328
4329   if test "x$ac_ct_DUMPBIN" = x; then
4330     DUMPBIN=":"
4331   else
4332     case $cross_compiling:$ac_tool_warned in
4333 yes:)
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4335 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4336 ac_tool_warned=yes ;;
4337 esac
4338     DUMPBIN=$ac_ct_DUMPBIN
4339   fi
4340 fi
4341
4342     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4343     *COFF*)
4344       DUMPBIN="$DUMPBIN -symbols"
4345       ;;
4346     *)
4347       DUMPBIN=:
4348       ;;
4349     esac
4350   fi
4351
4352   if test "$DUMPBIN" != ":"; then
4353     NM="$DUMPBIN"
4354   fi
4355 fi
4356 test -z "$NM" && NM=nm
4357
4358
4359
4360
4361
4362
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4364 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4365 if ${lt_cv_nm_interface+:} false; then :
4366   $as_echo_n "(cached) " >&6
4367 else
4368   lt_cv_nm_interface="BSD nm"
4369   echo "int some_variable = 0;" > conftest.$ac_ext
4370   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4371   (eval "$ac_compile" 2>conftest.err)
4372   cat conftest.err >&5
4373   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4374   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4375   cat conftest.err >&5
4376   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4377   cat conftest.out >&5
4378   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4379     lt_cv_nm_interface="MS dumpbin"
4380   fi
4381   rm -f conftest*
4382 fi
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4384 $as_echo "$lt_cv_nm_interface" >&6; }
4385
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4387 $as_echo_n "checking whether ln -s works... " >&6; }
4388 LN_S=$as_ln_s
4389 if test "$LN_S" = "ln -s"; then
4390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4391 $as_echo "yes" >&6; }
4392 else
4393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4394 $as_echo "no, using $LN_S" >&6; }
4395 fi
4396
4397 # find the maximum length of command line arguments
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4399 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4400 if ${lt_cv_sys_max_cmd_len+:} false; then :
4401   $as_echo_n "(cached) " >&6
4402 else
4403     i=0
4404   teststring="ABCD"
4405
4406   case $build_os in
4407   msdosdjgpp*)
4408     # On DJGPP, this test can blow up pretty badly due to problems in libc
4409     # (any single argument exceeding 2000 bytes causes a buffer overrun
4410     # during glob expansion).  Even if it were fixed, the result of this
4411     # check would be larger than it should be.
4412     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4413     ;;
4414
4415   gnu*)
4416     # Under GNU Hurd, this test is not required because there is
4417     # no limit to the length of command line arguments.
4418     # Libtool will interpret -1 as no limit whatsoever
4419     lt_cv_sys_max_cmd_len=-1;
4420     ;;
4421
4422   cygwin* | mingw* | cegcc*)
4423     # On Win9x/ME, this test blows up -- it succeeds, but takes
4424     # about 5 minutes as the teststring grows exponentially.
4425     # Worse, since 9x/ME are not pre-emptively multitasking,
4426     # you end up with a "frozen" computer, even though with patience
4427     # the test eventually succeeds (with a max line length of 256k).
4428     # Instead, let's just punt: use the minimum linelength reported by
4429     # all of the supported platforms: 8192 (on NT/2K/XP).
4430     lt_cv_sys_max_cmd_len=8192;
4431     ;;
4432
4433   mint*)
4434     # On MiNT this can take a long time and run out of memory.
4435     lt_cv_sys_max_cmd_len=8192;
4436     ;;
4437
4438   amigaos*)
4439     # On AmigaOS with pdksh, this test takes hours, literally.
4440     # So we just punt and use a minimum line length of 8192.
4441     lt_cv_sys_max_cmd_len=8192;
4442     ;;
4443
4444   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4445     # This has been around since 386BSD, at least.  Likely further.
4446     if test -x /sbin/sysctl; then
4447       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4448     elif test -x /usr/sbin/sysctl; then
4449       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4450     else
4451       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4452     fi
4453     # And add a safety zone
4454     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4455     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4456     ;;
4457
4458   interix*)
4459     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4460     lt_cv_sys_max_cmd_len=196608
4461     ;;
4462
4463   os2*)
4464     # The test takes a long time on OS/2.
4465     lt_cv_sys_max_cmd_len=8192
4466     ;;
4467
4468   osf*)
4469     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4470     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4471     # nice to cause kernel panics so lets avoid the loop below.
4472     # First set a reasonable default.
4473     lt_cv_sys_max_cmd_len=16384
4474     #
4475     if test -x /sbin/sysconfig; then
4476       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4477         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4478       esac
4479     fi
4480     ;;
4481   sco3.2v5*)
4482     lt_cv_sys_max_cmd_len=102400
4483     ;;
4484   sysv5* | sco5v6* | sysv4.2uw2*)
4485     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4486     if test -n "$kargmax"; then
4487       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4488     else
4489       lt_cv_sys_max_cmd_len=32768
4490     fi
4491     ;;
4492   *)
4493     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4494     if test -n "$lt_cv_sys_max_cmd_len"; then
4495       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4496       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4497     else
4498       # Make teststring a little bigger before we do anything with it.
4499       # a 1K string should be a reasonable start.
4500       for i in 1 2 3 4 5 6 7 8 ; do
4501         teststring=$teststring$teststring
4502       done
4503       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4504       # If test is not a shell built-in, we'll probably end up computing a
4505       # maximum length that is only half of the actual maximum length, but
4506       # we can't tell.
4507       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4508                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4509               test $i != 17 # 1/2 MB should be enough
4510       do
4511         i=`expr $i + 1`
4512         teststring=$teststring$teststring
4513       done
4514       # Only check the string length outside the loop.
4515       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4516       teststring=
4517       # Add a significant safety factor because C++ compilers can tack on
4518       # massive amounts of additional arguments before passing them to the
4519       # linker.  It appears as though 1/2 is a usable value.
4520       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4521     fi
4522     ;;
4523   esac
4524
4525 fi
4526
4527 if test -n $lt_cv_sys_max_cmd_len ; then
4528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4529 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4530 else
4531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4532 $as_echo "none" >&6; }
4533 fi
4534 max_cmd_len=$lt_cv_sys_max_cmd_len
4535
4536
4537
4538
4539
4540
4541 : ${CP="cp -f"}
4542 : ${MV="mv -f"}
4543 : ${RM="rm -f"}
4544
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4546 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4547 # Try some XSI features
4548 xsi_shell=no
4549 ( _lt_dummy="a/b/c"
4550   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4551       = c,a/b,b/c, \
4552     && eval 'test $(( 1 + 1 )) -eq 2 \
4553     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4554   && xsi_shell=yes
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4556 $as_echo "$xsi_shell" >&6; }
4557
4558
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4560 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4561 lt_shell_append=no
4562 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4563     >/dev/null 2>&1 \
4564   && lt_shell_append=yes
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4566 $as_echo "$lt_shell_append" >&6; }
4567
4568
4569 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4570   lt_unset=unset
4571 else
4572   lt_unset=false
4573 fi
4574
4575
4576
4577
4578
4579 # test EBCDIC or ASCII
4580 case `echo X|tr X '\101'` in
4581  A) # ASCII based system
4582     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4583   lt_SP2NL='tr \040 \012'
4584   lt_NL2SP='tr \015\012 \040\040'
4585   ;;
4586  *) # EBCDIC based system
4587   lt_SP2NL='tr \100 \n'
4588   lt_NL2SP='tr \r\n \100\100'
4589   ;;
4590 esac
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4601 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4602 if ${lt_cv_to_host_file_cmd+:} false; then :
4603   $as_echo_n "(cached) " >&6
4604 else
4605   case $host in
4606   *-*-mingw* )
4607     case $build in
4608       *-*-mingw* ) # actually msys
4609         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4610         ;;
4611       *-*-cygwin* )
4612         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4613         ;;
4614       * ) # otherwise, assume *nix
4615         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4616         ;;
4617     esac
4618     ;;
4619   *-*-cygwin* )
4620     case $build in
4621       *-*-mingw* ) # actually msys
4622         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4623         ;;
4624       *-*-cygwin* )
4625         lt_cv_to_host_file_cmd=func_convert_file_noop
4626         ;;
4627       * ) # otherwise, assume *nix
4628         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4629         ;;
4630     esac
4631     ;;
4632   * ) # unhandled hosts (and "normal" native builds)
4633     lt_cv_to_host_file_cmd=func_convert_file_noop
4634     ;;
4635 esac
4636
4637 fi
4638
4639 to_host_file_cmd=$lt_cv_to_host_file_cmd
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4641 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4642
4643
4644
4645
4646
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4648 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4649 if ${lt_cv_to_tool_file_cmd+:} false; then :
4650   $as_echo_n "(cached) " >&6
4651 else
4652   #assume ordinary cross tools, or native build.
4653 lt_cv_to_tool_file_cmd=func_convert_file_noop
4654 case $host in
4655   *-*-mingw* )
4656     case $build in
4657       *-*-mingw* ) # actually msys
4658         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4659         ;;
4660     esac
4661     ;;
4662 esac
4663
4664 fi
4665
4666 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4668 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4669
4670
4671
4672
4673
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4675 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4676 if ${lt_cv_ld_reload_flag+:} false; then :
4677   $as_echo_n "(cached) " >&6
4678 else
4679   lt_cv_ld_reload_flag='-r'
4680 fi
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4682 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4683 reload_flag=$lt_cv_ld_reload_flag
4684 case $reload_flag in
4685 "" | " "*) ;;
4686 *) reload_flag=" $reload_flag" ;;
4687 esac
4688 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4689 case $host_os in
4690   cygwin* | mingw* | pw32* | cegcc*)
4691     if test "$GCC" != yes; then
4692       reload_cmds=false
4693     fi
4694     ;;
4695   darwin*)
4696     if test "$GCC" = yes; then
4697       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4698     else
4699       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4700     fi
4701     ;;
4702 esac
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712 if test -n "$ac_tool_prefix"; then
4713   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4714 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4716 $as_echo_n "checking for $ac_word... " >&6; }
4717 if ${ac_cv_prog_OBJDUMP+:} false; then :
4718   $as_echo_n "(cached) " >&6
4719 else
4720   if test -n "$OBJDUMP"; then
4721   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4722 else
4723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4724 for as_dir in $PATH
4725 do
4726   IFS=$as_save_IFS
4727   test -z "$as_dir" && as_dir=.
4728     for ac_exec_ext in '' $ac_executable_extensions; do
4729   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4730     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4731     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4732     break 2
4733   fi
4734 done
4735   done
4736 IFS=$as_save_IFS
4737
4738 fi
4739 fi
4740 OBJDUMP=$ac_cv_prog_OBJDUMP
4741 if test -n "$OBJDUMP"; then
4742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4743 $as_echo "$OBJDUMP" >&6; }
4744 else
4745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4746 $as_echo "no" >&6; }
4747 fi
4748
4749
4750 fi
4751 if test -z "$ac_cv_prog_OBJDUMP"; then
4752   ac_ct_OBJDUMP=$OBJDUMP
4753   # Extract the first word of "objdump", so it can be a program name with args.
4754 set dummy objdump; ac_word=$2
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4756 $as_echo_n "checking for $ac_word... " >&6; }
4757 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4758   $as_echo_n "(cached) " >&6
4759 else
4760   if test -n "$ac_ct_OBJDUMP"; then
4761   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4762 else
4763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4764 for as_dir in $PATH
4765 do
4766   IFS=$as_save_IFS
4767   test -z "$as_dir" && as_dir=.
4768     for ac_exec_ext in '' $ac_executable_extensions; do
4769   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4770     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4771     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4772     break 2
4773   fi
4774 done
4775   done
4776 IFS=$as_save_IFS
4777
4778 fi
4779 fi
4780 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4781 if test -n "$ac_ct_OBJDUMP"; then
4782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4783 $as_echo "$ac_ct_OBJDUMP" >&6; }
4784 else
4785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4786 $as_echo "no" >&6; }
4787 fi
4788
4789   if test "x$ac_ct_OBJDUMP" = x; then
4790     OBJDUMP="false"
4791   else
4792     case $cross_compiling:$ac_tool_warned in
4793 yes:)
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4795 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4796 ac_tool_warned=yes ;;
4797 esac
4798     OBJDUMP=$ac_ct_OBJDUMP
4799   fi
4800 else
4801   OBJDUMP="$ac_cv_prog_OBJDUMP"
4802 fi
4803
4804 test -z "$OBJDUMP" && OBJDUMP=objdump
4805
4806
4807
4808
4809
4810
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4812 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4813 if ${lt_cv_deplibs_check_method+:} false; then :
4814   $as_echo_n "(cached) " >&6
4815 else
4816   lt_cv_file_magic_cmd='$MAGIC_CMD'
4817 lt_cv_file_magic_test_file=
4818 lt_cv_deplibs_check_method='unknown'
4819 # Need to set the preceding variable on all platforms that support
4820 # interlibrary dependencies.
4821 # 'none' -- dependencies not supported.
4822 # `unknown' -- same as none, but documents that we really don't know.
4823 # 'pass_all' -- all dependencies passed with no checks.
4824 # 'test_compile' -- check by making test program.
4825 # 'file_magic [[regex]]' -- check by looking for files in library path
4826 # which responds to the $file_magic_cmd with a given extended regex.
4827 # If you have `file' or equivalent on your system and you're not sure
4828 # whether `pass_all' will *always* work, you probably want this one.
4829
4830 case $host_os in
4831 aix[4-9]*)
4832   lt_cv_deplibs_check_method=pass_all
4833   ;;
4834
4835 beos*)
4836   lt_cv_deplibs_check_method=pass_all
4837   ;;
4838
4839 bsdi[45]*)
4840   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4841   lt_cv_file_magic_cmd='/usr/bin/file -L'
4842   lt_cv_file_magic_test_file=/shlib/libc.so
4843   ;;
4844
4845 cygwin*)
4846   # func_win32_libid is a shell function defined in ltmain.sh
4847   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4848   lt_cv_file_magic_cmd='func_win32_libid'
4849   lt_cv_deplibs_check_method=pass_all
4850   ;;
4851
4852 mingw* | pw32*)
4853   # Base MSYS/MinGW do not provide the 'file' command needed by
4854   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4855   # unless we find 'file', for example because we are cross-compiling.
4856   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4857   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4858     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4859     lt_cv_file_magic_cmd='func_win32_libid'
4860   else
4861     # Keep this pattern in sync with the one in func_win32_libid.
4862     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4863     lt_cv_file_magic_cmd='$OBJDUMP -f'
4864   fi
4865   lt_cv_deplibs_check_method=pass_all
4866   ;;
4867
4868 cegcc*)
4869   # use the weaker test based on 'objdump'. See mingw*.
4870   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4871   lt_cv_file_magic_cmd='$OBJDUMP -f'
4872   ;;
4873
4874 darwin* | rhapsody*)
4875   lt_cv_deplibs_check_method=pass_all
4876   ;;
4877
4878 freebsd* | dragonfly*)
4879   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4880     case $host_cpu in
4881     i*86 )
4882       # Not sure whether the presence of OpenBSD here was a mistake.
4883       # Let's accept both of them until this is cleared up.
4884       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4885       lt_cv_file_magic_cmd=/usr/bin/file
4886       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4887       ;;
4888     esac
4889   else
4890     lt_cv_deplibs_check_method=pass_all
4891   fi
4892   ;;
4893
4894 gnu*)
4895   lt_cv_deplibs_check_method=pass_all
4896   ;;
4897
4898 haiku*)
4899   lt_cv_deplibs_check_method=pass_all
4900   ;;
4901
4902 hpux10.20* | hpux11*)
4903   lt_cv_file_magic_cmd=/usr/bin/file
4904   case $host_cpu in
4905   ia64*)
4906     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4907     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4908     ;;
4909   hppa*64*)
4910     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]'
4911     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4912     ;;
4913   *)
4914     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4915     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4916     ;;
4917   esac
4918   ;;
4919
4920 interix[3-9]*)
4921   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4922   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4923   ;;
4924
4925 irix5* | irix6* | nonstopux*)
4926   case $LD in
4927   *-32|*"-32 ") libmagic=32-bit;;
4928   *-n32|*"-n32 ") libmagic=N32;;
4929   *-64|*"-64 ") libmagic=64-bit;;
4930   *) libmagic=never-match;;
4931   esac
4932   lt_cv_deplibs_check_method=pass_all
4933   ;;
4934
4935 # This must be glibc/ELF.
4936 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4937   lt_cv_deplibs_check_method=pass_all
4938   ;;
4939
4940 netbsd*)
4941   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4942     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4943   else
4944     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4945   fi
4946   ;;
4947
4948 newos6*)
4949   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4950   lt_cv_file_magic_cmd=/usr/bin/file
4951   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4952   ;;
4953
4954 *nto* | *qnx*)
4955   lt_cv_deplibs_check_method=pass_all
4956   ;;
4957
4958 openbsd*)
4959   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4960     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4961   else
4962     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4963   fi
4964   ;;
4965
4966 osf3* | osf4* | osf5*)
4967   lt_cv_deplibs_check_method=pass_all
4968   ;;
4969
4970 rdos*)
4971   lt_cv_deplibs_check_method=pass_all
4972   ;;
4973
4974 solaris*)
4975   lt_cv_deplibs_check_method=pass_all
4976   ;;
4977
4978 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4979   lt_cv_deplibs_check_method=pass_all
4980   ;;
4981
4982 sysv4 | sysv4.3*)
4983   case $host_vendor in
4984   motorola)
4985     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]'
4986     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4987     ;;
4988   ncr)
4989     lt_cv_deplibs_check_method=pass_all
4990     ;;
4991   sequent)
4992     lt_cv_file_magic_cmd='/bin/file'
4993     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4994     ;;
4995   sni)
4996     lt_cv_file_magic_cmd='/bin/file'
4997     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4998     lt_cv_file_magic_test_file=/lib/libc.so
4999     ;;
5000   siemens)
5001     lt_cv_deplibs_check_method=pass_all
5002     ;;
5003   pc)
5004     lt_cv_deplibs_check_method=pass_all
5005     ;;
5006   esac
5007   ;;
5008
5009 tpf*)
5010   lt_cv_deplibs_check_method=pass_all
5011   ;;
5012 esac
5013
5014 fi
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5016 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5017
5018 file_magic_glob=
5019 want_nocaseglob=no
5020 if test "$build" = "$host"; then
5021   case $host_os in
5022   mingw* | pw32*)
5023     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5024       want_nocaseglob=yes
5025     else
5026       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5027     fi
5028     ;;
5029   esac
5030 fi
5031
5032 file_magic_cmd=$lt_cv_file_magic_cmd
5033 deplibs_check_method=$lt_cv_deplibs_check_method
5034 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057 if test -n "$ac_tool_prefix"; then
5058   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5059 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5061 $as_echo_n "checking for $ac_word... " >&6; }
5062 if ${ac_cv_prog_DLLTOOL+:} false; then :
5063   $as_echo_n "(cached) " >&6
5064 else
5065   if test -n "$DLLTOOL"; then
5066   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5067 else
5068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5069 for as_dir in $PATH
5070 do
5071   IFS=$as_save_IFS
5072   test -z "$as_dir" && as_dir=.
5073     for ac_exec_ext in '' $ac_executable_extensions; do
5074   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5075     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5076     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5077     break 2
5078   fi
5079 done
5080   done
5081 IFS=$as_save_IFS
5082
5083 fi
5084 fi
5085 DLLTOOL=$ac_cv_prog_DLLTOOL
5086 if test -n "$DLLTOOL"; then
5087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5088 $as_echo "$DLLTOOL" >&6; }
5089 else
5090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5091 $as_echo "no" >&6; }
5092 fi
5093
5094
5095 fi
5096 if test -z "$ac_cv_prog_DLLTOOL"; then
5097   ac_ct_DLLTOOL=$DLLTOOL
5098   # Extract the first word of "dlltool", so it can be a program name with args.
5099 set dummy dlltool; ac_word=$2
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5101 $as_echo_n "checking for $ac_word... " >&6; }
5102 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5103   $as_echo_n "(cached) " >&6
5104 else
5105   if test -n "$ac_ct_DLLTOOL"; then
5106   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5107 else
5108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5109 for as_dir in $PATH
5110 do
5111   IFS=$as_save_IFS
5112   test -z "$as_dir" && as_dir=.
5113     for ac_exec_ext in '' $ac_executable_extensions; do
5114   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5115     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5116     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5117     break 2
5118   fi
5119 done
5120   done
5121 IFS=$as_save_IFS
5122
5123 fi
5124 fi
5125 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5126 if test -n "$ac_ct_DLLTOOL"; then
5127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5128 $as_echo "$ac_ct_DLLTOOL" >&6; }
5129 else
5130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5131 $as_echo "no" >&6; }
5132 fi
5133
5134   if test "x$ac_ct_DLLTOOL" = x; then
5135     DLLTOOL="false"
5136   else
5137     case $cross_compiling:$ac_tool_warned in
5138 yes:)
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5140 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5141 ac_tool_warned=yes ;;
5142 esac
5143     DLLTOOL=$ac_ct_DLLTOOL
5144   fi
5145 else
5146   DLLTOOL="$ac_cv_prog_DLLTOOL"
5147 fi
5148
5149 test -z "$DLLTOOL" && DLLTOOL=dlltool
5150
5151
5152
5153
5154
5155
5156
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5158 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5159 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5160   $as_echo_n "(cached) " >&6
5161 else
5162   lt_cv_sharedlib_from_linklib_cmd='unknown'
5163
5164 case $host_os in
5165 cygwin* | mingw* | pw32* | cegcc*)
5166   # two different shell functions defined in ltmain.sh
5167   # decide which to use based on capabilities of $DLLTOOL
5168   case `$DLLTOOL --help 2>&1` in
5169   *--identify-strict*)
5170     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5171     ;;
5172   *)
5173     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5174     ;;
5175   esac
5176   ;;
5177 *)
5178   # fallback: assume linklib IS sharedlib
5179   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5180   ;;
5181 esac
5182
5183 fi
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5185 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5186 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5187 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5188
5189
5190
5191
5192
5193
5194
5195
5196 if test -n "$ac_tool_prefix"; then
5197   for ac_prog in ar
5198   do
5199     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5200 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5202 $as_echo_n "checking for $ac_word... " >&6; }
5203 if ${ac_cv_prog_AR+:} false; then :
5204   $as_echo_n "(cached) " >&6
5205 else
5206   if test -n "$AR"; then
5207   ac_cv_prog_AR="$AR" # Let the user override the test.
5208 else
5209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5210 for as_dir in $PATH
5211 do
5212   IFS=$as_save_IFS
5213   test -z "$as_dir" && as_dir=.
5214     for ac_exec_ext in '' $ac_executable_extensions; do
5215   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5216     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5217     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5218     break 2
5219   fi
5220 done
5221   done
5222 IFS=$as_save_IFS
5223
5224 fi
5225 fi
5226 AR=$ac_cv_prog_AR
5227 if test -n "$AR"; then
5228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5229 $as_echo "$AR" >&6; }
5230 else
5231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5232 $as_echo "no" >&6; }
5233 fi
5234
5235
5236     test -n "$AR" && break
5237   done
5238 fi
5239 if test -z "$AR"; then
5240   ac_ct_AR=$AR
5241   for ac_prog in ar
5242 do
5243   # Extract the first word of "$ac_prog", so it can be a program name with args.
5244 set dummy $ac_prog; ac_word=$2
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5246 $as_echo_n "checking for $ac_word... " >&6; }
5247 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5248   $as_echo_n "(cached) " >&6
5249 else
5250   if test -n "$ac_ct_AR"; then
5251   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5252 else
5253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5254 for as_dir in $PATH
5255 do
5256   IFS=$as_save_IFS
5257   test -z "$as_dir" && as_dir=.
5258     for ac_exec_ext in '' $ac_executable_extensions; do
5259   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5260     ac_cv_prog_ac_ct_AR="$ac_prog"
5261     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5262     break 2
5263   fi
5264 done
5265   done
5266 IFS=$as_save_IFS
5267
5268 fi
5269 fi
5270 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5271 if test -n "$ac_ct_AR"; then
5272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5273 $as_echo "$ac_ct_AR" >&6; }
5274 else
5275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5276 $as_echo "no" >&6; }
5277 fi
5278
5279
5280   test -n "$ac_ct_AR" && break
5281 done
5282
5283   if test "x$ac_ct_AR" = x; then
5284     AR="false"
5285   else
5286     case $cross_compiling:$ac_tool_warned in
5287 yes:)
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5289 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5290 ac_tool_warned=yes ;;
5291 esac
5292     AR=$ac_ct_AR
5293   fi
5294 fi
5295
5296 : ${AR=ar}
5297 : ${AR_FLAGS=cru}
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5310 $as_echo_n "checking for archiver @FILE support... " >&6; }
5311 if ${lt_cv_ar_at_file+:} false; then :
5312   $as_echo_n "(cached) " >&6
5313 else
5314   lt_cv_ar_at_file=no
5315    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5316 /* end confdefs.h.  */
5317
5318 int
5319 main ()
5320 {
5321
5322   ;
5323   return 0;
5324 }
5325 _ACEOF
5326 if ac_fn_c_try_compile "$LINENO"; then :
5327   echo conftest.$ac_objext > conftest.lst
5328       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5329       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5330   (eval $lt_ar_try) 2>&5
5331   ac_status=$?
5332   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5333   test $ac_status = 0; }
5334       if test "$ac_status" -eq 0; then
5335         # Ensure the archiver fails upon bogus file names.
5336         rm -f conftest.$ac_objext libconftest.a
5337         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5338   (eval $lt_ar_try) 2>&5
5339   ac_status=$?
5340   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5341   test $ac_status = 0; }
5342         if test "$ac_status" -ne 0; then
5343           lt_cv_ar_at_file=@
5344         fi
5345       fi
5346       rm -f conftest.* libconftest.a
5347
5348 fi
5349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5350
5351 fi
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5353 $as_echo "$lt_cv_ar_at_file" >&6; }
5354
5355 if test "x$lt_cv_ar_at_file" = xno; then
5356   archiver_list_spec=
5357 else
5358   archiver_list_spec=$lt_cv_ar_at_file
5359 fi
5360
5361
5362
5363
5364
5365
5366
5367 if test -n "$ac_tool_prefix"; then
5368   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5369 set dummy ${ac_tool_prefix}strip; ac_word=$2
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5371 $as_echo_n "checking for $ac_word... " >&6; }
5372 if ${ac_cv_prog_STRIP+:} false; then :
5373   $as_echo_n "(cached) " >&6
5374 else
5375   if test -n "$STRIP"; then
5376   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5377 else
5378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5379 for as_dir in $PATH
5380 do
5381   IFS=$as_save_IFS
5382   test -z "$as_dir" && as_dir=.
5383     for ac_exec_ext in '' $ac_executable_extensions; do
5384   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5385     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5386     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5387     break 2
5388   fi
5389 done
5390   done
5391 IFS=$as_save_IFS
5392
5393 fi
5394 fi
5395 STRIP=$ac_cv_prog_STRIP
5396 if test -n "$STRIP"; then
5397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5398 $as_echo "$STRIP" >&6; }
5399 else
5400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5401 $as_echo "no" >&6; }
5402 fi
5403
5404
5405 fi
5406 if test -z "$ac_cv_prog_STRIP"; then
5407   ac_ct_STRIP=$STRIP
5408   # Extract the first word of "strip", so it can be a program name with args.
5409 set dummy strip; ac_word=$2
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5411 $as_echo_n "checking for $ac_word... " >&6; }
5412 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5413   $as_echo_n "(cached) " >&6
5414 else
5415   if test -n "$ac_ct_STRIP"; then
5416   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5417 else
5418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5419 for as_dir in $PATH
5420 do
5421   IFS=$as_save_IFS
5422   test -z "$as_dir" && as_dir=.
5423     for ac_exec_ext in '' $ac_executable_extensions; do
5424   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5425     ac_cv_prog_ac_ct_STRIP="strip"
5426     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5427     break 2
5428   fi
5429 done
5430   done
5431 IFS=$as_save_IFS
5432
5433 fi
5434 fi
5435 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5436 if test -n "$ac_ct_STRIP"; then
5437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5438 $as_echo "$ac_ct_STRIP" >&6; }
5439 else
5440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5441 $as_echo "no" >&6; }
5442 fi
5443
5444   if test "x$ac_ct_STRIP" = x; then
5445     STRIP=":"
5446   else
5447     case $cross_compiling:$ac_tool_warned in
5448 yes:)
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5450 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5451 ac_tool_warned=yes ;;
5452 esac
5453     STRIP=$ac_ct_STRIP
5454   fi
5455 else
5456   STRIP="$ac_cv_prog_STRIP"
5457 fi
5458
5459 test -z "$STRIP" && STRIP=:
5460
5461
5462
5463
5464
5465
5466 if test -n "$ac_tool_prefix"; then
5467   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5468 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5470 $as_echo_n "checking for $ac_word... " >&6; }
5471 if ${ac_cv_prog_RANLIB+:} false; then :
5472   $as_echo_n "(cached) " >&6
5473 else
5474   if test -n "$RANLIB"; then
5475   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5476 else
5477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5478 for as_dir in $PATH
5479 do
5480   IFS=$as_save_IFS
5481   test -z "$as_dir" && as_dir=.
5482     for ac_exec_ext in '' $ac_executable_extensions; do
5483   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5484     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5485     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5486     break 2
5487   fi
5488 done
5489   done
5490 IFS=$as_save_IFS
5491
5492 fi
5493 fi
5494 RANLIB=$ac_cv_prog_RANLIB
5495 if test -n "$RANLIB"; then
5496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5497 $as_echo "$RANLIB" >&6; }
5498 else
5499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5500 $as_echo "no" >&6; }
5501 fi
5502
5503
5504 fi
5505 if test -z "$ac_cv_prog_RANLIB"; then
5506   ac_ct_RANLIB=$RANLIB
5507   # Extract the first word of "ranlib", so it can be a program name with args.
5508 set dummy ranlib; ac_word=$2
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5510 $as_echo_n "checking for $ac_word... " >&6; }
5511 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5512   $as_echo_n "(cached) " >&6
5513 else
5514   if test -n "$ac_ct_RANLIB"; then
5515   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5516 else
5517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5518 for as_dir in $PATH
5519 do
5520   IFS=$as_save_IFS
5521   test -z "$as_dir" && as_dir=.
5522     for ac_exec_ext in '' $ac_executable_extensions; do
5523   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5524     ac_cv_prog_ac_ct_RANLIB="ranlib"
5525     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5526     break 2
5527   fi
5528 done
5529   done
5530 IFS=$as_save_IFS
5531
5532 fi
5533 fi
5534 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5535 if test -n "$ac_ct_RANLIB"; then
5536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5537 $as_echo "$ac_ct_RANLIB" >&6; }
5538 else
5539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5540 $as_echo "no" >&6; }
5541 fi
5542
5543   if test "x$ac_ct_RANLIB" = x; then
5544     RANLIB=":"
5545   else
5546     case $cross_compiling:$ac_tool_warned in
5547 yes:)
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5549 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5550 ac_tool_warned=yes ;;
5551 esac
5552     RANLIB=$ac_ct_RANLIB
5553   fi
5554 else
5555   RANLIB="$ac_cv_prog_RANLIB"
5556 fi
5557
5558 test -z "$RANLIB" && RANLIB=:
5559
5560
5561
5562
5563
5564
5565 # Determine commands to create old-style static archives.
5566 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5567 old_postinstall_cmds='chmod 644 $oldlib'
5568 old_postuninstall_cmds=
5569
5570 if test -n "$RANLIB"; then
5571   case $host_os in
5572   openbsd*)
5573     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5574     ;;
5575   *)
5576     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5577     ;;
5578   esac
5579   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5580 fi
5581
5582 case $host_os in
5583   darwin*)
5584     lock_old_archive_extraction=yes ;;
5585   *)
5586     lock_old_archive_extraction=no ;;
5587 esac
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609 for ac_prog in gawk mawk nawk awk
5610 do
5611   # Extract the first word of "$ac_prog", so it can be a program name with args.
5612 set dummy $ac_prog; ac_word=$2
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5614 $as_echo_n "checking for $ac_word... " >&6; }
5615 if ${ac_cv_prog_AWK+:} false; then :
5616   $as_echo_n "(cached) " >&6
5617 else
5618   if test -n "$AWK"; then
5619   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5620 else
5621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5622 for as_dir in $PATH
5623 do
5624   IFS=$as_save_IFS
5625   test -z "$as_dir" && as_dir=.
5626     for ac_exec_ext in '' $ac_executable_extensions; do
5627   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5628     ac_cv_prog_AWK="$ac_prog"
5629     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5630     break 2
5631   fi
5632 done
5633   done
5634 IFS=$as_save_IFS
5635
5636 fi
5637 fi
5638 AWK=$ac_cv_prog_AWK
5639 if test -n "$AWK"; then
5640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5641 $as_echo "$AWK" >&6; }
5642 else
5643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5644 $as_echo "no" >&6; }
5645 fi
5646
5647
5648   test -n "$AWK" && break
5649 done
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669 # If no C compiler was specified, use CC.
5670 LTCC=${LTCC-"$CC"}
5671
5672 # If no C compiler flags were specified, use CFLAGS.
5673 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5674
5675 # Allow CC to be a program name with arguments.
5676 compiler=$CC
5677
5678
5679 # Check for command to grab the raw symbol name followed by C symbol from nm.
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5681 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5682 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5683   $as_echo_n "(cached) " >&6
5684 else
5685
5686 # These are sane defaults that work on at least a few old systems.
5687 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5688
5689 # Character class describing NM global symbol codes.
5690 symcode='[BCDEGRST]'
5691
5692 # Regexp to match symbols that can be accessed directly from C.
5693 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5694
5695 # Define system-specific variables.
5696 case $host_os in
5697 aix*)
5698   symcode='[BCDT]'
5699   ;;
5700 cygwin* | mingw* | pw32* | cegcc*)
5701   symcode='[ABCDGISTW]'
5702   ;;
5703 hpux*)
5704   if test "$host_cpu" = ia64; then
5705     symcode='[ABCDEGRST]'
5706   fi
5707   ;;
5708 irix* | nonstopux*)
5709   symcode='[BCDEGRST]'
5710   ;;
5711 osf*)
5712   symcode='[BCDEGQRST]'
5713   ;;
5714 solaris*)
5715   symcode='[BDRT]'
5716   ;;
5717 sco3.2v5*)
5718   symcode='[DT]'
5719   ;;
5720 sysv4.2uw2*)
5721   symcode='[DT]'
5722   ;;
5723 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5724   symcode='[ABDT]'
5725   ;;
5726 sysv4)
5727   symcode='[DFNSTU]'
5728   ;;
5729 esac
5730
5731 # If we're using GNU nm, then use its standard symbol codes.
5732 case `$NM -V 2>&1` in
5733 *GNU* | *'with BFD'*)
5734   symcode='[ABCDGIRSTW]' ;;
5735 esac
5736
5737 # Transform an extracted symbol line into a proper C declaration.
5738 # Some systems (esp. on ia64) link data and code symbols differently,
5739 # so use this general approach.
5740 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5741
5742 # Transform an extracted symbol line into symbol name and symbol address
5743 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5744 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'"
5745
5746 # Handle CRLF in mingw tool chain
5747 opt_cr=
5748 case $build_os in
5749 mingw*)
5750   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5751   ;;
5752 esac
5753
5754 # Try without a prefix underscore, then with it.
5755 for ac_symprfx in "" "_"; do
5756
5757   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5758   symxfrm="\\1 $ac_symprfx\\2 \\2"
5759
5760   # Write the raw and C identifiers.
5761   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5762     # Fake it for dumpbin and say T for any non-static function
5763     # and D for any global variable.
5764     # Also find C++ and __fastcall symbols from MSVC++,
5765     # which start with @ or ?.
5766     lt_cv_sys_global_symbol_pipe="$AWK '"\
5767 "     {last_section=section; section=\$ 3};"\
5768 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5769 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5770 "     \$ 0!~/External *\|/{next};"\
5771 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5772 "     {if(hide[section]) next};"\
5773 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5774 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5775 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5776 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5777 "     ' prfx=^$ac_symprfx"
5778   else
5779     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5780   fi
5781   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5782
5783   # Check to see that the pipe works correctly.
5784   pipe_works=no
5785
5786   rm -f conftest*
5787   cat > conftest.$ac_ext <<_LT_EOF
5788 #ifdef __cplusplus
5789 extern "C" {
5790 #endif
5791 char nm_test_var;
5792 void nm_test_func(void);
5793 void nm_test_func(void){}
5794 #ifdef __cplusplus
5795 }
5796 #endif
5797 int main(){nm_test_var='a';nm_test_func();return(0);}
5798 _LT_EOF
5799
5800   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5801   (eval $ac_compile) 2>&5
5802   ac_status=$?
5803   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5804   test $ac_status = 0; }; then
5805     # Now try to grab the symbols.
5806     nlist=conftest.nm
5807     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5808   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5809   ac_status=$?
5810   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5811   test $ac_status = 0; } && test -s "$nlist"; then
5812       # Try sorting and uniquifying the output.
5813       if sort "$nlist" | uniq > "$nlist"T; then
5814         mv -f "$nlist"T "$nlist"
5815       else
5816         rm -f "$nlist"T
5817       fi
5818
5819       # Make sure that we snagged all the symbols we need.
5820       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5821         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5822           cat <<_LT_EOF > conftest.$ac_ext
5823 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
5824 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5825 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5826    relocations are performed -- see ld's documentation on pseudo-relocs.  */
5827 # define LT_DLSYM_CONST
5828 #elif defined(__osf__)
5829 /* This system does not cope well with relocations in const data.  */
5830 # define LT_DLSYM_CONST
5831 #else
5832 # define LT_DLSYM_CONST const
5833 #endif
5834
5835 #ifdef __cplusplus
5836 extern "C" {
5837 #endif
5838
5839 _LT_EOF
5840           # Now generate the symbol file.
5841           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5842
5843           cat <<_LT_EOF >> conftest.$ac_ext
5844
5845 /* The mapping between symbol names and symbols.  */
5846 LT_DLSYM_CONST struct {
5847   const char *name;
5848   void       *address;
5849 }
5850 lt__PROGRAM__LTX_preloaded_symbols[] =
5851 {
5852   { "@PROGRAM@", (void *) 0 },
5853 _LT_EOF
5854           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5855           cat <<\_LT_EOF >> conftest.$ac_ext
5856   {0, (void *) 0}
5857 };
5858
5859 /* This works around a problem in FreeBSD linker */
5860 #ifdef FREEBSD_WORKAROUND
5861 static const void *lt_preloaded_setup() {
5862   return lt__PROGRAM__LTX_preloaded_symbols;
5863 }
5864 #endif
5865
5866 #ifdef __cplusplus
5867 }
5868 #endif
5869 _LT_EOF
5870           # Now try linking the two files.
5871           mv conftest.$ac_objext conftstm.$ac_objext
5872           lt_globsym_save_LIBS=$LIBS
5873           lt_globsym_save_CFLAGS=$CFLAGS
5874           LIBS="conftstm.$ac_objext"
5875           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5876           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5877   (eval $ac_link) 2>&5
5878   ac_status=$?
5879   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5880   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5881             pipe_works=yes
5882           fi
5883           LIBS=$lt_globsym_save_LIBS
5884           CFLAGS=$lt_globsym_save_CFLAGS
5885         else
5886           echo "cannot find nm_test_func in $nlist" >&5
5887         fi
5888       else
5889         echo "cannot find nm_test_var in $nlist" >&5
5890       fi
5891     else
5892       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5893     fi
5894   else
5895     echo "$progname: failed program was:" >&5
5896     cat conftest.$ac_ext >&5
5897   fi
5898   rm -rf conftest* conftst*
5899
5900   # Do not use the global_symbol_pipe unless it works.
5901   if test "$pipe_works" = yes; then
5902     break
5903   else
5904     lt_cv_sys_global_symbol_pipe=
5905   fi
5906 done
5907
5908 fi
5909
5910 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5911   lt_cv_sys_global_symbol_to_cdecl=
5912 fi
5913 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5915 $as_echo "failed" >&6; }
5916 else
5917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5918 $as_echo "ok" >&6; }
5919 fi
5920
5921 # Response file support.
5922 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5923   nm_file_list_spec='@'
5924 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5925   nm_file_list_spec='@'
5926 fi
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5955 $as_echo_n "checking for sysroot... " >&6; }
5956
5957 # Check whether --with-sysroot was given.
5958 if test "${with_sysroot+set}" = set; then :
5959   withval=$with_sysroot;
5960 else
5961   with_sysroot=no
5962 fi
5963
5964
5965 lt_sysroot=
5966 case ${with_sysroot} in #(
5967  yes)
5968    if test "$GCC" = yes; then
5969      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5970    fi
5971    ;; #(
5972  /*)
5973    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5974    ;; #(
5975  no|'')
5976    ;; #(
5977  *)
5978    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
5979 $as_echo "${with_sysroot}" >&6; }
5980    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
5981    ;;
5982 esac
5983
5984  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
5985 $as_echo "${lt_sysroot:-no}" >&6; }
5986
5987
5988
5989
5990
5991 # Check whether --enable-libtool-lock was given.
5992 if test "${enable_libtool_lock+set}" = set; then :
5993   enableval=$enable_libtool_lock;
5994 fi
5995
5996 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5997
5998 # Some flags need to be propagated to the compiler or linker for good
5999 # libtool support.
6000 case $host in
6001 ia64-*-hpux*)
6002   # Find out which ABI we are using.
6003   echo 'int i;' > conftest.$ac_ext
6004   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6005   (eval $ac_compile) 2>&5
6006   ac_status=$?
6007   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6008   test $ac_status = 0; }; then
6009     case `/usr/bin/file conftest.$ac_objext` in
6010       *ELF-32*)
6011         HPUX_IA64_MODE="32"
6012         ;;
6013       *ELF-64*)
6014         HPUX_IA64_MODE="64"
6015         ;;
6016     esac
6017   fi
6018   rm -rf conftest*
6019   ;;
6020 *-*-irix6*)
6021   # Find out which ABI we are using.
6022   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6023   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6024   (eval $ac_compile) 2>&5
6025   ac_status=$?
6026   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6027   test $ac_status = 0; }; then
6028     if test "$lt_cv_prog_gnu_ld" = yes; then
6029       case `/usr/bin/file conftest.$ac_objext` in
6030         *32-bit*)
6031           LD="${LD-ld} -melf32bsmip"
6032           ;;
6033         *N32*)
6034           LD="${LD-ld} -melf32bmipn32"
6035           ;;
6036         *64-bit*)
6037           LD="${LD-ld} -melf64bmip"
6038         ;;
6039       esac
6040     else
6041       case `/usr/bin/file conftest.$ac_objext` in
6042         *32-bit*)
6043           LD="${LD-ld} -32"
6044           ;;
6045         *N32*)
6046           LD="${LD-ld} -n32"
6047           ;;
6048         *64-bit*)
6049           LD="${LD-ld} -64"
6050           ;;
6051       esac
6052     fi
6053   fi
6054   rm -rf conftest*
6055   ;;
6056
6057 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6058 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6059   # Find out which ABI we are using.
6060   echo 'int i;' > conftest.$ac_ext
6061   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6062   (eval $ac_compile) 2>&5
6063   ac_status=$?
6064   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6065   test $ac_status = 0; }; then
6066     case `/usr/bin/file conftest.o` in
6067       *32-bit*)
6068         case $host in
6069           x86_64-*kfreebsd*-gnu)
6070             LD="${LD-ld} -m elf_i386_fbsd"
6071             ;;
6072           x86_64-*linux*)
6073             LD="${LD-ld} -m elf_i386"
6074             ;;
6075           ppc64-*linux*|powerpc64-*linux*)
6076             LD="${LD-ld} -m elf32ppclinux"
6077             ;;
6078           s390x-*linux*)
6079             LD="${LD-ld} -m elf_s390"
6080             ;;
6081           sparc64-*linux*)
6082             LD="${LD-ld} -m elf32_sparc"
6083             ;;
6084         esac
6085         ;;
6086       *64-bit*)
6087         case $host in
6088           x86_64-*kfreebsd*-gnu)
6089             LD="${LD-ld} -m elf_x86_64_fbsd"
6090             ;;
6091           x86_64-*linux*)
6092             LD="${LD-ld} -m elf_x86_64"
6093             ;;
6094           powerpc64le-*linux*)
6095             LD="${LD-ld} -m elf64lppc"
6096             ;;
6097           powerpc64-*linux*)
6098             LD="${LD-ld} -m elf64ppc"
6099             ;;
6100           s390*-*linux*|s390*-*tpf*)
6101             LD="${LD-ld} -m elf64_s390"
6102             ;;
6103           sparc*-*linux*)
6104             LD="${LD-ld} -m elf64_sparc"
6105             ;;
6106         esac
6107         ;;
6108     esac
6109   fi
6110   rm -rf conftest*
6111   ;;
6112
6113 *-*-sco3.2v5*)
6114   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6115   SAVE_CFLAGS="$CFLAGS"
6116   CFLAGS="$CFLAGS -belf"
6117   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6118 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6119 if ${lt_cv_cc_needs_belf+:} false; then :
6120   $as_echo_n "(cached) " >&6
6121 else
6122   ac_ext=c
6123 ac_cpp='$CPP $CPPFLAGS'
6124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6127
6128      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6129 /* end confdefs.h.  */
6130
6131 int
6132 main ()
6133 {
6134
6135   ;
6136   return 0;
6137 }
6138 _ACEOF
6139 if ac_fn_c_try_link "$LINENO"; then :
6140   lt_cv_cc_needs_belf=yes
6141 else
6142   lt_cv_cc_needs_belf=no
6143 fi
6144 rm -f core conftest.err conftest.$ac_objext \
6145     conftest$ac_exeext conftest.$ac_ext
6146      ac_ext=c
6147 ac_cpp='$CPP $CPPFLAGS'
6148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6151
6152 fi
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6154 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6155   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6156     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6157     CFLAGS="$SAVE_CFLAGS"
6158   fi
6159   ;;
6160 *-*solaris*)
6161   # Find out which ABI we are using.
6162   echo 'int i;' > conftest.$ac_ext
6163   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6164   (eval $ac_compile) 2>&5
6165   ac_status=$?
6166   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6167   test $ac_status = 0; }; then
6168     case `/usr/bin/file conftest.o` in
6169     *64-bit*)
6170       case $lt_cv_prog_gnu_ld in
6171       yes*)
6172         case $host in
6173         i?86-*-solaris*)
6174           LD="${LD-ld} -m elf_x86_64"
6175           ;;
6176         sparc*-*-solaris*)
6177           LD="${LD-ld} -m elf64_sparc"
6178           ;;
6179         esac
6180         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6181         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6182           LD="${LD-ld}_sol2"
6183         fi
6184         ;;
6185       *)
6186         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6187           LD="${LD-ld} -64"
6188         fi
6189         ;;
6190       esac
6191       ;;
6192     esac
6193   fi
6194   rm -rf conftest*
6195   ;;
6196 esac
6197
6198 need_locks="$enable_libtool_lock"
6199
6200 if test -n "$ac_tool_prefix"; then
6201   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6202 set dummy ${ac_tool_prefix}mt; ac_word=$2
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6204 $as_echo_n "checking for $ac_word... " >&6; }
6205 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6206   $as_echo_n "(cached) " >&6
6207 else
6208   if test -n "$MANIFEST_TOOL"; then
6209   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6210 else
6211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6212 for as_dir in $PATH
6213 do
6214   IFS=$as_save_IFS
6215   test -z "$as_dir" && as_dir=.
6216     for ac_exec_ext in '' $ac_executable_extensions; do
6217   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6218     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6219     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6220     break 2
6221   fi
6222 done
6223   done
6224 IFS=$as_save_IFS
6225
6226 fi
6227 fi
6228 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6229 if test -n "$MANIFEST_TOOL"; then
6230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6231 $as_echo "$MANIFEST_TOOL" >&6; }
6232 else
6233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6234 $as_echo "no" >&6; }
6235 fi
6236
6237
6238 fi
6239 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6240   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6241   # Extract the first word of "mt", so it can be a program name with args.
6242 set dummy mt; ac_word=$2
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6244 $as_echo_n "checking for $ac_word... " >&6; }
6245 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6246   $as_echo_n "(cached) " >&6
6247 else
6248   if test -n "$ac_ct_MANIFEST_TOOL"; then
6249   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6250 else
6251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6252 for as_dir in $PATH
6253 do
6254   IFS=$as_save_IFS
6255   test -z "$as_dir" && as_dir=.
6256     for ac_exec_ext in '' $ac_executable_extensions; do
6257   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6258     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6259     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6260     break 2
6261   fi
6262 done
6263   done
6264 IFS=$as_save_IFS
6265
6266 fi
6267 fi
6268 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6269 if test -n "$ac_ct_MANIFEST_TOOL"; then
6270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6271 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6272 else
6273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6274 $as_echo "no" >&6; }
6275 fi
6276
6277   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6278     MANIFEST_TOOL=":"
6279   else
6280     case $cross_compiling:$ac_tool_warned in
6281 yes:)
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6283 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6284 ac_tool_warned=yes ;;
6285 esac
6286     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6287   fi
6288 else
6289   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6290 fi
6291
6292 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6294 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6295 if ${lt_cv_path_mainfest_tool+:} false; then :
6296   $as_echo_n "(cached) " >&6
6297 else
6298   lt_cv_path_mainfest_tool=no
6299   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6300   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6301   cat conftest.err >&5
6302   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6303     lt_cv_path_mainfest_tool=yes
6304   fi
6305   rm -f conftest*
6306 fi
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6308 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6309 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6310   MANIFEST_TOOL=:
6311 fi
6312
6313
6314
6315
6316
6317
6318   case $host_os in
6319     rhapsody* | darwin*)
6320     if test -n "$ac_tool_prefix"; then
6321   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6322 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6324 $as_echo_n "checking for $ac_word... " >&6; }
6325 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6326   $as_echo_n "(cached) " >&6
6327 else
6328   if test -n "$DSYMUTIL"; then
6329   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6330 else
6331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6332 for as_dir in $PATH
6333 do
6334   IFS=$as_save_IFS
6335   test -z "$as_dir" && as_dir=.
6336     for ac_exec_ext in '' $ac_executable_extensions; do
6337   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6338     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6339     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6340     break 2
6341   fi
6342 done
6343   done
6344 IFS=$as_save_IFS
6345
6346 fi
6347 fi
6348 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6349 if test -n "$DSYMUTIL"; then
6350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6351 $as_echo "$DSYMUTIL" >&6; }
6352 else
6353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6354 $as_echo "no" >&6; }
6355 fi
6356
6357
6358 fi
6359 if test -z "$ac_cv_prog_DSYMUTIL"; then
6360   ac_ct_DSYMUTIL=$DSYMUTIL
6361   # Extract the first word of "dsymutil", so it can be a program name with args.
6362 set dummy dsymutil; ac_word=$2
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6364 $as_echo_n "checking for $ac_word... " >&6; }
6365 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6366   $as_echo_n "(cached) " >&6
6367 else
6368   if test -n "$ac_ct_DSYMUTIL"; then
6369   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6370 else
6371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6372 for as_dir in $PATH
6373 do
6374   IFS=$as_save_IFS
6375   test -z "$as_dir" && as_dir=.
6376     for ac_exec_ext in '' $ac_executable_extensions; do
6377   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6378     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6379     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6380     break 2
6381   fi
6382 done
6383   done
6384 IFS=$as_save_IFS
6385
6386 fi
6387 fi
6388 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6389 if test -n "$ac_ct_DSYMUTIL"; then
6390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6391 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6392 else
6393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6394 $as_echo "no" >&6; }
6395 fi
6396
6397   if test "x$ac_ct_DSYMUTIL" = x; then
6398     DSYMUTIL=":"
6399   else
6400     case $cross_compiling:$ac_tool_warned in
6401 yes:)
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6403 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6404 ac_tool_warned=yes ;;
6405 esac
6406     DSYMUTIL=$ac_ct_DSYMUTIL
6407   fi
6408 else
6409   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6410 fi
6411
6412     if test -n "$ac_tool_prefix"; then
6413   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6414 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6416 $as_echo_n "checking for $ac_word... " >&6; }
6417 if ${ac_cv_prog_NMEDIT+:} false; then :
6418   $as_echo_n "(cached) " >&6
6419 else
6420   if test -n "$NMEDIT"; then
6421   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6422 else
6423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6424 for as_dir in $PATH
6425 do
6426   IFS=$as_save_IFS
6427   test -z "$as_dir" && as_dir=.
6428     for ac_exec_ext in '' $ac_executable_extensions; do
6429   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6430     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6431     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6432     break 2
6433   fi
6434 done
6435   done
6436 IFS=$as_save_IFS
6437
6438 fi
6439 fi
6440 NMEDIT=$ac_cv_prog_NMEDIT
6441 if test -n "$NMEDIT"; then
6442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6443 $as_echo "$NMEDIT" >&6; }
6444 else
6445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6446 $as_echo "no" >&6; }
6447 fi
6448
6449
6450 fi
6451 if test -z "$ac_cv_prog_NMEDIT"; then
6452   ac_ct_NMEDIT=$NMEDIT
6453   # Extract the first word of "nmedit", so it can be a program name with args.
6454 set dummy nmedit; ac_word=$2
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6456 $as_echo_n "checking for $ac_word... " >&6; }
6457 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6458   $as_echo_n "(cached) " >&6
6459 else
6460   if test -n "$ac_ct_NMEDIT"; then
6461   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6462 else
6463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6464 for as_dir in $PATH
6465 do
6466   IFS=$as_save_IFS
6467   test -z "$as_dir" && as_dir=.
6468     for ac_exec_ext in '' $ac_executable_extensions; do
6469   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6470     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6471     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6472     break 2
6473   fi
6474 done
6475   done
6476 IFS=$as_save_IFS
6477
6478 fi
6479 fi
6480 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6481 if test -n "$ac_ct_NMEDIT"; then
6482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6483 $as_echo "$ac_ct_NMEDIT" >&6; }
6484 else
6485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6486 $as_echo "no" >&6; }
6487 fi
6488
6489   if test "x$ac_ct_NMEDIT" = x; then
6490     NMEDIT=":"
6491   else
6492     case $cross_compiling:$ac_tool_warned in
6493 yes:)
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6495 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6496 ac_tool_warned=yes ;;
6497 esac
6498     NMEDIT=$ac_ct_NMEDIT
6499   fi
6500 else
6501   NMEDIT="$ac_cv_prog_NMEDIT"
6502 fi
6503
6504     if test -n "$ac_tool_prefix"; then
6505   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6506 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6508 $as_echo_n "checking for $ac_word... " >&6; }
6509 if ${ac_cv_prog_LIPO+:} false; then :
6510   $as_echo_n "(cached) " >&6
6511 else
6512   if test -n "$LIPO"; then
6513   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6514 else
6515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6516 for as_dir in $PATH
6517 do
6518   IFS=$as_save_IFS
6519   test -z "$as_dir" && as_dir=.
6520     for ac_exec_ext in '' $ac_executable_extensions; do
6521   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6522     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6523     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6524     break 2
6525   fi
6526 done
6527   done
6528 IFS=$as_save_IFS
6529
6530 fi
6531 fi
6532 LIPO=$ac_cv_prog_LIPO
6533 if test -n "$LIPO"; then
6534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6535 $as_echo "$LIPO" >&6; }
6536 else
6537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6538 $as_echo "no" >&6; }
6539 fi
6540
6541
6542 fi
6543 if test -z "$ac_cv_prog_LIPO"; then
6544   ac_ct_LIPO=$LIPO
6545   # Extract the first word of "lipo", so it can be a program name with args.
6546 set dummy lipo; ac_word=$2
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6548 $as_echo_n "checking for $ac_word... " >&6; }
6549 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6550   $as_echo_n "(cached) " >&6
6551 else
6552   if test -n "$ac_ct_LIPO"; then
6553   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6554 else
6555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6556 for as_dir in $PATH
6557 do
6558   IFS=$as_save_IFS
6559   test -z "$as_dir" && as_dir=.
6560     for ac_exec_ext in '' $ac_executable_extensions; do
6561   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6562     ac_cv_prog_ac_ct_LIPO="lipo"
6563     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6564     break 2
6565   fi
6566 done
6567   done
6568 IFS=$as_save_IFS
6569
6570 fi
6571 fi
6572 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6573 if test -n "$ac_ct_LIPO"; then
6574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6575 $as_echo "$ac_ct_LIPO" >&6; }
6576 else
6577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6578 $as_echo "no" >&6; }
6579 fi
6580
6581   if test "x$ac_ct_LIPO" = x; then
6582     LIPO=":"
6583   else
6584     case $cross_compiling:$ac_tool_warned in
6585 yes:)
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6587 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6588 ac_tool_warned=yes ;;
6589 esac
6590     LIPO=$ac_ct_LIPO
6591   fi
6592 else
6593   LIPO="$ac_cv_prog_LIPO"
6594 fi
6595
6596     if test -n "$ac_tool_prefix"; then
6597   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6598 set dummy ${ac_tool_prefix}otool; ac_word=$2
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6600 $as_echo_n "checking for $ac_word... " >&6; }
6601 if ${ac_cv_prog_OTOOL+:} false; then :
6602   $as_echo_n "(cached) " >&6
6603 else
6604   if test -n "$OTOOL"; then
6605   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6606 else
6607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6608 for as_dir in $PATH
6609 do
6610   IFS=$as_save_IFS
6611   test -z "$as_dir" && as_dir=.
6612     for ac_exec_ext in '' $ac_executable_extensions; do
6613   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6614     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6615     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6616     break 2
6617   fi
6618 done
6619   done
6620 IFS=$as_save_IFS
6621
6622 fi
6623 fi
6624 OTOOL=$ac_cv_prog_OTOOL
6625 if test -n "$OTOOL"; then
6626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6627 $as_echo "$OTOOL" >&6; }
6628 else
6629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6630 $as_echo "no" >&6; }
6631 fi
6632
6633
6634 fi
6635 if test -z "$ac_cv_prog_OTOOL"; then
6636   ac_ct_OTOOL=$OTOOL
6637   # Extract the first word of "otool", so it can be a program name with args.
6638 set dummy otool; ac_word=$2
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6640 $as_echo_n "checking for $ac_word... " >&6; }
6641 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6642   $as_echo_n "(cached) " >&6
6643 else
6644   if test -n "$ac_ct_OTOOL"; then
6645   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6646 else
6647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6648 for as_dir in $PATH
6649 do
6650   IFS=$as_save_IFS
6651   test -z "$as_dir" && as_dir=.
6652     for ac_exec_ext in '' $ac_executable_extensions; do
6653   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6654     ac_cv_prog_ac_ct_OTOOL="otool"
6655     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6656     break 2
6657   fi
6658 done
6659   done
6660 IFS=$as_save_IFS
6661
6662 fi
6663 fi
6664 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6665 if test -n "$ac_ct_OTOOL"; then
6666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6667 $as_echo "$ac_ct_OTOOL" >&6; }
6668 else
6669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6670 $as_echo "no" >&6; }
6671 fi
6672
6673   if test "x$ac_ct_OTOOL" = x; then
6674     OTOOL=":"
6675   else
6676     case $cross_compiling:$ac_tool_warned in
6677 yes:)
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6679 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6680 ac_tool_warned=yes ;;
6681 esac
6682     OTOOL=$ac_ct_OTOOL
6683   fi
6684 else
6685   OTOOL="$ac_cv_prog_OTOOL"
6686 fi
6687
6688     if test -n "$ac_tool_prefix"; then
6689   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6690 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6692 $as_echo_n "checking for $ac_word... " >&6; }
6693 if ${ac_cv_prog_OTOOL64+:} false; then :
6694   $as_echo_n "(cached) " >&6
6695 else
6696   if test -n "$OTOOL64"; then
6697   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6698 else
6699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6700 for as_dir in $PATH
6701 do
6702   IFS=$as_save_IFS
6703   test -z "$as_dir" && as_dir=.
6704     for ac_exec_ext in '' $ac_executable_extensions; do
6705   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6706     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6707     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6708     break 2
6709   fi
6710 done
6711   done
6712 IFS=$as_save_IFS
6713
6714 fi
6715 fi
6716 OTOOL64=$ac_cv_prog_OTOOL64
6717 if test -n "$OTOOL64"; then
6718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6719 $as_echo "$OTOOL64" >&6; }
6720 else
6721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6722 $as_echo "no" >&6; }
6723 fi
6724
6725
6726 fi
6727 if test -z "$ac_cv_prog_OTOOL64"; then
6728   ac_ct_OTOOL64=$OTOOL64
6729   # Extract the first word of "otool64", so it can be a program name with args.
6730 set dummy otool64; ac_word=$2
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6732 $as_echo_n "checking for $ac_word... " >&6; }
6733 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6734   $as_echo_n "(cached) " >&6
6735 else
6736   if test -n "$ac_ct_OTOOL64"; then
6737   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6738 else
6739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6740 for as_dir in $PATH
6741 do
6742   IFS=$as_save_IFS
6743   test -z "$as_dir" && as_dir=.
6744     for ac_exec_ext in '' $ac_executable_extensions; do
6745   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6746     ac_cv_prog_ac_ct_OTOOL64="otool64"
6747     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6748     break 2
6749   fi
6750 done
6751   done
6752 IFS=$as_save_IFS
6753
6754 fi
6755 fi
6756 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6757 if test -n "$ac_ct_OTOOL64"; then
6758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6759 $as_echo "$ac_ct_OTOOL64" >&6; }
6760 else
6761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6762 $as_echo "no" >&6; }
6763 fi
6764
6765   if test "x$ac_ct_OTOOL64" = x; then
6766     OTOOL64=":"
6767   else
6768     case $cross_compiling:$ac_tool_warned in
6769 yes:)
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6771 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6772 ac_tool_warned=yes ;;
6773 esac
6774     OTOOL64=$ac_ct_OTOOL64
6775   fi
6776 else
6777   OTOOL64="$ac_cv_prog_OTOOL64"
6778 fi
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6807 $as_echo_n "checking for -single_module linker flag... " >&6; }
6808 if ${lt_cv_apple_cc_single_mod+:} false; then :
6809   $as_echo_n "(cached) " >&6
6810 else
6811   lt_cv_apple_cc_single_mod=no
6812       if test -z "${LT_MULTI_MODULE}"; then
6813         # By default we will add the -single_module flag. You can override
6814         # by either setting the environment variable LT_MULTI_MODULE
6815         # non-empty at configure time, or by adding -multi_module to the
6816         # link flags.
6817         rm -rf libconftest.dylib*
6818         echo "int foo(void){return 1;}" > conftest.c
6819         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6820 -dynamiclib -Wl,-single_module conftest.c" >&5
6821         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6822           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6823         _lt_result=$?
6824         # If there is a non-empty error log, and "single_module"
6825         # appears in it, assume the flag caused a linker warning
6826         if test -s conftest.err && $GREP single_module conftest.err; then
6827           cat conftest.err >&5
6828         # Otherwise, if the output was created with a 0 exit code from
6829         # the compiler, it worked.
6830         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6831           lt_cv_apple_cc_single_mod=yes
6832         else
6833           cat conftest.err >&5
6834         fi
6835         rm -rf libconftest.dylib*
6836         rm -f conftest.*
6837       fi
6838 fi
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6840 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6841
6842     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6843 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6844 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6845   $as_echo_n "(cached) " >&6
6846 else
6847   lt_cv_ld_exported_symbols_list=no
6848       save_LDFLAGS=$LDFLAGS
6849       echo "_main" > conftest.sym
6850       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6851       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6852 /* end confdefs.h.  */
6853
6854 int
6855 main ()
6856 {
6857
6858   ;
6859   return 0;
6860 }
6861 _ACEOF
6862 if ac_fn_c_try_link "$LINENO"; then :
6863   lt_cv_ld_exported_symbols_list=yes
6864 else
6865   lt_cv_ld_exported_symbols_list=no
6866 fi
6867 rm -f core conftest.err conftest.$ac_objext \
6868     conftest$ac_exeext conftest.$ac_ext
6869         LDFLAGS="$save_LDFLAGS"
6870
6871 fi
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6873 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6874
6875     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6876 $as_echo_n "checking for -force_load linker flag... " >&6; }
6877 if ${lt_cv_ld_force_load+:} false; then :
6878   $as_echo_n "(cached) " >&6
6879 else
6880   lt_cv_ld_force_load=no
6881       cat > conftest.c << _LT_EOF
6882 int forced_loaded() { return 2;}
6883 _LT_EOF
6884       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6885       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6886       echo "$AR cru libconftest.a conftest.o" >&5
6887       $AR cru libconftest.a conftest.o 2>&5
6888       echo "$RANLIB libconftest.a" >&5
6889       $RANLIB libconftest.a 2>&5
6890       cat > conftest.c << _LT_EOF
6891 int main() { return 0;}
6892 _LT_EOF
6893       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6894       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6895       _lt_result=$?
6896       if test -s conftest.err && $GREP force_load conftest.err; then
6897         cat conftest.err >&5
6898       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
6899         lt_cv_ld_force_load=yes
6900       else
6901         cat conftest.err >&5
6902       fi
6903         rm -f conftest.err libconftest.a conftest conftest.c
6904         rm -rf conftest.dSYM
6905
6906 fi
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6908 $as_echo "$lt_cv_ld_force_load" >&6; }
6909     case $host_os in
6910     rhapsody* | darwin1.[012])
6911       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6912     darwin1.*)
6913       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6914     darwin*) # darwin 5.x on
6915       # if running on 10.5 or later, the deployment target defaults
6916       # to the OS version, if on x86, and 10.4, the deployment
6917       # target defaults to 10.4. Don't you love it?
6918       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6919         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6920           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6921         10.[012]*)
6922           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6923         10.*)
6924           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6925       esac
6926     ;;
6927   esac
6928     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6929       _lt_dar_single_mod='$single_module'
6930     fi
6931     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6932       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6933     else
6934       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6935     fi
6936     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6937       _lt_dsymutil='~$DSYMUTIL $lib || :'
6938     else
6939       _lt_dsymutil=
6940     fi
6941     ;;
6942   esac
6943
6944 ac_ext=c
6945 ac_cpp='$CPP $CPPFLAGS'
6946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6950 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6951 # On Suns, sometimes $CPP names a directory.
6952 if test -n "$CPP" && test -d "$CPP"; then
6953   CPP=
6954 fi
6955 if test -z "$CPP"; then
6956   if ${ac_cv_prog_CPP+:} false; then :
6957   $as_echo_n "(cached) " >&6
6958 else
6959       # Double quotes because CPP needs to be expanded
6960     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6961     do
6962       ac_preproc_ok=false
6963 for ac_c_preproc_warn_flag in '' yes
6964 do
6965   # Use a header file that comes with gcc, so configuring glibc
6966   # with a fresh cross-compiler works.
6967   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6968   # <limits.h> exists even on freestanding compilers.
6969   # On the NeXT, cc -E runs the code through the compiler's parser,
6970   # not just through cpp. "Syntax error" is here to catch this case.
6971   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6972 /* end confdefs.h.  */
6973 #ifdef __STDC__
6974 # include <limits.h>
6975 #else
6976 # include <assert.h>
6977 #endif
6978                      Syntax error
6979 _ACEOF
6980 if ac_fn_c_try_cpp "$LINENO"; then :
6981
6982 else
6983   # Broken: fails on valid input.
6984 continue
6985 fi
6986 rm -f conftest.err conftest.i conftest.$ac_ext
6987
6988   # OK, works on sane cases.  Now check whether nonexistent headers
6989   # can be detected and how.
6990   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6991 /* end confdefs.h.  */
6992 #include <ac_nonexistent.h>
6993 _ACEOF
6994 if ac_fn_c_try_cpp "$LINENO"; then :
6995   # Broken: success on invalid input.
6996 continue
6997 else
6998   # Passes both tests.
6999 ac_preproc_ok=:
7000 break
7001 fi
7002 rm -f conftest.err conftest.i conftest.$ac_ext
7003
7004 done
7005 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7006 rm -f conftest.i conftest.err conftest.$ac_ext
7007 if $ac_preproc_ok; then :
7008   break
7009 fi
7010
7011     done
7012     ac_cv_prog_CPP=$CPP
7013
7014 fi
7015   CPP=$ac_cv_prog_CPP
7016 else
7017   ac_cv_prog_CPP=$CPP
7018 fi
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7020 $as_echo "$CPP" >&6; }
7021 ac_preproc_ok=false
7022 for ac_c_preproc_warn_flag in '' yes
7023 do
7024   # Use a header file that comes with gcc, so configuring glibc
7025   # with a fresh cross-compiler works.
7026   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7027   # <limits.h> exists even on freestanding compilers.
7028   # On the NeXT, cc -E runs the code through the compiler's parser,
7029   # not just through cpp. "Syntax error" is here to catch this case.
7030   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7031 /* end confdefs.h.  */
7032 #ifdef __STDC__
7033 # include <limits.h>
7034 #else
7035 # include <assert.h>
7036 #endif
7037                      Syntax error
7038 _ACEOF
7039 if ac_fn_c_try_cpp "$LINENO"; then :
7040
7041 else
7042   # Broken: fails on valid input.
7043 continue
7044 fi
7045 rm -f conftest.err conftest.i conftest.$ac_ext
7046
7047   # OK, works on sane cases.  Now check whether nonexistent headers
7048   # can be detected and how.
7049   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7050 /* end confdefs.h.  */
7051 #include <ac_nonexistent.h>
7052 _ACEOF
7053 if ac_fn_c_try_cpp "$LINENO"; then :
7054   # Broken: success on invalid input.
7055 continue
7056 else
7057   # Passes both tests.
7058 ac_preproc_ok=:
7059 break
7060 fi
7061 rm -f conftest.err conftest.i conftest.$ac_ext
7062
7063 done
7064 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7065 rm -f conftest.i conftest.err conftest.$ac_ext
7066 if $ac_preproc_ok; then :
7067
7068 else
7069   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7070 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7071 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7072 See \`config.log' for more details" "$LINENO" 5; }
7073 fi
7074
7075 ac_ext=c
7076 ac_cpp='$CPP $CPPFLAGS'
7077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7080
7081
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7083 $as_echo_n "checking for ANSI C header files... " >&6; }
7084 if ${ac_cv_header_stdc+:} false; then :
7085   $as_echo_n "(cached) " >&6
7086 else
7087   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7088 /* end confdefs.h.  */
7089 #include <stdlib.h>
7090 #include <stdarg.h>
7091 #include <string.h>
7092 #include <float.h>
7093
7094 int
7095 main ()
7096 {
7097
7098   ;
7099   return 0;
7100 }
7101 _ACEOF
7102 if ac_fn_c_try_compile "$LINENO"; then :
7103   ac_cv_header_stdc=yes
7104 else
7105   ac_cv_header_stdc=no
7106 fi
7107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7108
7109 if test $ac_cv_header_stdc = yes; then
7110   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7111   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7112 /* end confdefs.h.  */
7113 #include <string.h>
7114
7115 _ACEOF
7116 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7117   $EGREP "memchr" >/dev/null 2>&1; then :
7118
7119 else
7120   ac_cv_header_stdc=no
7121 fi
7122 rm -f conftest*
7123
7124 fi
7125
7126 if test $ac_cv_header_stdc = yes; then
7127   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7128   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7129 /* end confdefs.h.  */
7130 #include <stdlib.h>
7131
7132 _ACEOF
7133 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7134   $EGREP "free" >/dev/null 2>&1; then :
7135
7136 else
7137   ac_cv_header_stdc=no
7138 fi
7139 rm -f conftest*
7140
7141 fi
7142
7143 if test $ac_cv_header_stdc = yes; then
7144   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7145   if test "$cross_compiling" = yes; then :
7146   :
7147 else
7148   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7149 /* end confdefs.h.  */
7150 #include <ctype.h>
7151 #include <stdlib.h>
7152 #if ((' ' & 0x0FF) == 0x020)
7153 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7154 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7155 #else
7156 # define ISLOWER(c) \
7157                    (('a' <= (c) && (c) <= 'i') \
7158                      || ('j' <= (c) && (c) <= 'r') \
7159                      || ('s' <= (c) && (c) <= 'z'))
7160 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7161 #endif
7162
7163 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7164 int
7165 main ()
7166 {
7167   int i;
7168   for (i = 0; i < 256; i++)
7169     if (XOR (islower (i), ISLOWER (i))
7170         || toupper (i) != TOUPPER (i))
7171       return 2;
7172   return 0;
7173 }
7174 _ACEOF
7175 if ac_fn_c_try_run "$LINENO"; then :
7176
7177 else
7178   ac_cv_header_stdc=no
7179 fi
7180 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7181   conftest.$ac_objext conftest.beam conftest.$ac_ext
7182 fi
7183
7184 fi
7185 fi
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7187 $as_echo "$ac_cv_header_stdc" >&6; }
7188 if test $ac_cv_header_stdc = yes; then
7189
7190 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7191
7192 fi
7193
7194 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7195 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7196                   inttypes.h stdint.h unistd.h
7197 do :
7198   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7199 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7200 "
7201 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7202   cat >>confdefs.h <<_ACEOF
7203 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7204 _ACEOF
7205
7206 fi
7207
7208 done
7209
7210
7211 for ac_header in dlfcn.h
7212 do :
7213   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7214 "
7215 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7216   cat >>confdefs.h <<_ACEOF
7217 #define HAVE_DLFCN_H 1
7218 _ACEOF
7219
7220 fi
7221
7222 done
7223
7224
7225
7226
7227
7228 # Set options
7229 enable_win32_dll=yes
7230
7231 case $host in
7232 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7233   if test -n "$ac_tool_prefix"; then
7234   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7235 set dummy ${ac_tool_prefix}as; ac_word=$2
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7237 $as_echo_n "checking for $ac_word... " >&6; }
7238 if ${ac_cv_prog_AS+:} false; then :
7239   $as_echo_n "(cached) " >&6
7240 else
7241   if test -n "$AS"; then
7242   ac_cv_prog_AS="$AS" # Let the user override the test.
7243 else
7244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7245 for as_dir in $PATH
7246 do
7247   IFS=$as_save_IFS
7248   test -z "$as_dir" && as_dir=.
7249     for ac_exec_ext in '' $ac_executable_extensions; do
7250   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7251     ac_cv_prog_AS="${ac_tool_prefix}as"
7252     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7253     break 2
7254   fi
7255 done
7256   done
7257 IFS=$as_save_IFS
7258
7259 fi
7260 fi
7261 AS=$ac_cv_prog_AS
7262 if test -n "$AS"; then
7263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7264 $as_echo "$AS" >&6; }
7265 else
7266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7267 $as_echo "no" >&6; }
7268 fi
7269
7270
7271 fi
7272 if test -z "$ac_cv_prog_AS"; then
7273   ac_ct_AS=$AS
7274   # Extract the first word of "as", so it can be a program name with args.
7275 set dummy as; ac_word=$2
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7277 $as_echo_n "checking for $ac_word... " >&6; }
7278 if ${ac_cv_prog_ac_ct_AS+:} false; then :
7279   $as_echo_n "(cached) " >&6
7280 else
7281   if test -n "$ac_ct_AS"; then
7282   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7283 else
7284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7285 for as_dir in $PATH
7286 do
7287   IFS=$as_save_IFS
7288   test -z "$as_dir" && as_dir=.
7289     for ac_exec_ext in '' $ac_executable_extensions; do
7290   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7291     ac_cv_prog_ac_ct_AS="as"
7292     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7293     break 2
7294   fi
7295 done
7296   done
7297 IFS=$as_save_IFS
7298
7299 fi
7300 fi
7301 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7302 if test -n "$ac_ct_AS"; then
7303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7304 $as_echo "$ac_ct_AS" >&6; }
7305 else
7306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7307 $as_echo "no" >&6; }
7308 fi
7309
7310   if test "x$ac_ct_AS" = x; then
7311     AS="false"
7312   else
7313     case $cross_compiling:$ac_tool_warned in
7314 yes:)
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7316 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7317 ac_tool_warned=yes ;;
7318 esac
7319     AS=$ac_ct_AS
7320   fi
7321 else
7322   AS="$ac_cv_prog_AS"
7323 fi
7324
7325   if test -n "$ac_tool_prefix"; then
7326   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7327 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7329 $as_echo_n "checking for $ac_word... " >&6; }
7330 if ${ac_cv_prog_DLLTOOL+:} false; then :
7331   $as_echo_n "(cached) " >&6
7332 else
7333   if test -n "$DLLTOOL"; then
7334   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7335 else
7336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7337 for as_dir in $PATH
7338 do
7339   IFS=$as_save_IFS
7340   test -z "$as_dir" && as_dir=.
7341     for ac_exec_ext in '' $ac_executable_extensions; do
7342   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7343     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7344     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7345     break 2
7346   fi
7347 done
7348   done
7349 IFS=$as_save_IFS
7350
7351 fi
7352 fi
7353 DLLTOOL=$ac_cv_prog_DLLTOOL
7354 if test -n "$DLLTOOL"; then
7355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7356 $as_echo "$DLLTOOL" >&6; }
7357 else
7358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7359 $as_echo "no" >&6; }
7360 fi
7361
7362
7363 fi
7364 if test -z "$ac_cv_prog_DLLTOOL"; then
7365   ac_ct_DLLTOOL=$DLLTOOL
7366   # Extract the first word of "dlltool", so it can be a program name with args.
7367 set dummy dlltool; ac_word=$2
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7369 $as_echo_n "checking for $ac_word... " >&6; }
7370 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7371   $as_echo_n "(cached) " >&6
7372 else
7373   if test -n "$ac_ct_DLLTOOL"; then
7374   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7375 else
7376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7377 for as_dir in $PATH
7378 do
7379   IFS=$as_save_IFS
7380   test -z "$as_dir" && as_dir=.
7381     for ac_exec_ext in '' $ac_executable_extensions; do
7382   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7383     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7384     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7385     break 2
7386   fi
7387 done
7388   done
7389 IFS=$as_save_IFS
7390
7391 fi
7392 fi
7393 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7394 if test -n "$ac_ct_DLLTOOL"; then
7395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7396 $as_echo "$ac_ct_DLLTOOL" >&6; }
7397 else
7398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7399 $as_echo "no" >&6; }
7400 fi
7401
7402   if test "x$ac_ct_DLLTOOL" = x; then
7403     DLLTOOL="false"
7404   else
7405     case $cross_compiling:$ac_tool_warned in
7406 yes:)
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7408 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7409 ac_tool_warned=yes ;;
7410 esac
7411     DLLTOOL=$ac_ct_DLLTOOL
7412   fi
7413 else
7414   DLLTOOL="$ac_cv_prog_DLLTOOL"
7415 fi
7416
7417   if test -n "$ac_tool_prefix"; then
7418   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7419 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7421 $as_echo_n "checking for $ac_word... " >&6; }
7422 if ${ac_cv_prog_OBJDUMP+:} false; then :
7423   $as_echo_n "(cached) " >&6
7424 else
7425   if test -n "$OBJDUMP"; then
7426   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7427 else
7428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7429 for as_dir in $PATH
7430 do
7431   IFS=$as_save_IFS
7432   test -z "$as_dir" && as_dir=.
7433     for ac_exec_ext in '' $ac_executable_extensions; do
7434   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7435     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7436     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7437     break 2
7438   fi
7439 done
7440   done
7441 IFS=$as_save_IFS
7442
7443 fi
7444 fi
7445 OBJDUMP=$ac_cv_prog_OBJDUMP
7446 if test -n "$OBJDUMP"; then
7447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7448 $as_echo "$OBJDUMP" >&6; }
7449 else
7450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7451 $as_echo "no" >&6; }
7452 fi
7453
7454
7455 fi
7456 if test -z "$ac_cv_prog_OBJDUMP"; then
7457   ac_ct_OBJDUMP=$OBJDUMP
7458   # Extract the first word of "objdump", so it can be a program name with args.
7459 set dummy objdump; ac_word=$2
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7461 $as_echo_n "checking for $ac_word... " >&6; }
7462 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7463   $as_echo_n "(cached) " >&6
7464 else
7465   if test -n "$ac_ct_OBJDUMP"; then
7466   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7467 else
7468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7469 for as_dir in $PATH
7470 do
7471   IFS=$as_save_IFS
7472   test -z "$as_dir" && as_dir=.
7473     for ac_exec_ext in '' $ac_executable_extensions; do
7474   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7475     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7476     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7477     break 2
7478   fi
7479 done
7480   done
7481 IFS=$as_save_IFS
7482
7483 fi
7484 fi
7485 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7486 if test -n "$ac_ct_OBJDUMP"; then
7487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7488 $as_echo "$ac_ct_OBJDUMP" >&6; }
7489 else
7490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7491 $as_echo "no" >&6; }
7492 fi
7493
7494   if test "x$ac_ct_OBJDUMP" = x; then
7495     OBJDUMP="false"
7496   else
7497     case $cross_compiling:$ac_tool_warned in
7498 yes:)
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7500 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7501 ac_tool_warned=yes ;;
7502 esac
7503     OBJDUMP=$ac_ct_OBJDUMP
7504   fi
7505 else
7506   OBJDUMP="$ac_cv_prog_OBJDUMP"
7507 fi
7508
7509   ;;
7510 esac
7511
7512 test -z "$AS" && AS=as
7513
7514
7515
7516
7517
7518 test -z "$DLLTOOL" && DLLTOOL=dlltool
7519
7520
7521
7522
7523
7524 test -z "$OBJDUMP" && OBJDUMP=objdump
7525
7526
7527
7528
7529
7530
7531
7532         enable_dlopen=no
7533
7534
7535
7536             # Check whether --enable-shared was given.
7537 if test "${enable_shared+set}" = set; then :
7538   enableval=$enable_shared; p=${PACKAGE-default}
7539     case $enableval in
7540     yes) enable_shared=yes ;;
7541     no) enable_shared=no ;;
7542     *)
7543       enable_shared=no
7544       # Look at the argument we got.  We use all the common list separators.
7545       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7546       for pkg in $enableval; do
7547         IFS="$lt_save_ifs"
7548         if test "X$pkg" = "X$p"; then
7549           enable_shared=yes
7550         fi
7551       done
7552       IFS="$lt_save_ifs"
7553       ;;
7554     esac
7555 else
7556   enable_shared=yes
7557 fi
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567   # Check whether --enable-static was given.
7568 if test "${enable_static+set}" = set; then :
7569   enableval=$enable_static; p=${PACKAGE-default}
7570     case $enableval in
7571     yes) enable_static=yes ;;
7572     no) enable_static=no ;;
7573     *)
7574      enable_static=no
7575       # Look at the argument we got.  We use all the common list separators.
7576       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7577       for pkg in $enableval; do
7578         IFS="$lt_save_ifs"
7579         if test "X$pkg" = "X$p"; then
7580           enable_static=yes
7581         fi
7582       done
7583       IFS="$lt_save_ifs"
7584       ;;
7585     esac
7586 else
7587   enable_static=yes
7588 fi
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599 # Check whether --with-pic was given.
7600 if test "${with_pic+set}" = set; then :
7601   withval=$with_pic; lt_p=${PACKAGE-default}
7602     case $withval in
7603     yes|no) pic_mode=$withval ;;
7604     *)
7605       pic_mode=default
7606       # Look at the argument we got.  We use all the common list separators.
7607       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7608       for lt_pkg in $withval; do
7609         IFS="$lt_save_ifs"
7610         if test "X$lt_pkg" = "X$lt_p"; then
7611           pic_mode=yes
7612         fi
7613       done
7614       IFS="$lt_save_ifs"
7615       ;;
7616     esac
7617 else
7618   pic_mode=default
7619 fi
7620
7621
7622 test -z "$pic_mode" && pic_mode=default
7623
7624
7625
7626
7627
7628
7629
7630   # Check whether --enable-fast-install was given.
7631 if test "${enable_fast_install+set}" = set; then :
7632   enableval=$enable_fast_install; p=${PACKAGE-default}
7633     case $enableval in
7634     yes) enable_fast_install=yes ;;
7635     no) enable_fast_install=no ;;
7636     *)
7637       enable_fast_install=no
7638       # Look at the argument we got.  We use all the common list separators.
7639       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7640       for pkg in $enableval; do
7641         IFS="$lt_save_ifs"
7642         if test "X$pkg" = "X$p"; then
7643           enable_fast_install=yes
7644         fi
7645       done
7646       IFS="$lt_save_ifs"
7647       ;;
7648     esac
7649 else
7650   enable_fast_install=yes
7651 fi
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663 # This can be used to rebuild libtool when needed
7664 LIBTOOL_DEPS="$ltmain"
7665
7666 # Always use our own libtool.
7667 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698 test -z "$LN_S" && LN_S="ln -s"
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713 if test -n "${ZSH_VERSION+set}" ; then
7714    setopt NO_GLOB_SUBST
7715 fi
7716
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7718 $as_echo_n "checking for objdir... " >&6; }
7719 if ${lt_cv_objdir+:} false; then :
7720   $as_echo_n "(cached) " >&6
7721 else
7722   rm -f .libs 2>/dev/null
7723 mkdir .libs 2>/dev/null
7724 if test -d .libs; then
7725   lt_cv_objdir=.libs
7726 else
7727   # MS-DOS does not allow filenames that begin with a dot.
7728   lt_cv_objdir=_libs
7729 fi
7730 rmdir .libs 2>/dev/null
7731 fi
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7733 $as_echo "$lt_cv_objdir" >&6; }
7734 objdir=$lt_cv_objdir
7735
7736
7737
7738
7739
7740 cat >>confdefs.h <<_ACEOF
7741 #define LT_OBJDIR "$lt_cv_objdir/"
7742 _ACEOF
7743
7744
7745
7746
7747 case $host_os in
7748 aix3*)
7749   # AIX sometimes has problems with the GCC collect2 program.  For some
7750   # reason, if we set the COLLECT_NAMES environment variable, the problems
7751   # vanish in a puff of smoke.
7752   if test "X${COLLECT_NAMES+set}" != Xset; then
7753     COLLECT_NAMES=
7754     export COLLECT_NAMES
7755   fi
7756   ;;
7757 esac
7758
7759 # Global variables:
7760 ofile=libtool
7761 can_build_shared=yes
7762
7763 # All known linkers require a `.a' archive for static linking (except MSVC,
7764 # which needs '.lib').
7765 libext=a
7766
7767 with_gnu_ld="$lt_cv_prog_gnu_ld"
7768
7769 old_CC="$CC"
7770 old_CFLAGS="$CFLAGS"
7771
7772 # Set sane defaults for various variables
7773 test -z "$CC" && CC=cc
7774 test -z "$LTCC" && LTCC=$CC
7775 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7776 test -z "$LD" && LD=ld
7777 test -z "$ac_objext" && ac_objext=o
7778
7779 for cc_temp in $compiler""; do
7780   case $cc_temp in
7781     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7782     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7783     \-*) ;;
7784     *) break;;
7785   esac
7786 done
7787 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7788
7789
7790 # Only perform the check for file, if the check method requires it
7791 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7792 case $deplibs_check_method in
7793 file_magic*)
7794   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7795     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7796 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7797 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7798   $as_echo_n "(cached) " >&6
7799 else
7800   case $MAGIC_CMD in
7801 [\\/*] |  ?:[\\/]*)
7802   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7803   ;;
7804 *)
7805   lt_save_MAGIC_CMD="$MAGIC_CMD"
7806   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7807   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7808   for ac_dir in $ac_dummy; do
7809     IFS="$lt_save_ifs"
7810     test -z "$ac_dir" && ac_dir=.
7811     if test -f $ac_dir/${ac_tool_prefix}file; then
7812       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7813       if test -n "$file_magic_test_file"; then
7814         case $deplibs_check_method in
7815         "file_magic "*)
7816           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7817           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7818           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7819             $EGREP "$file_magic_regex" > /dev/null; then
7820             :
7821           else
7822             cat <<_LT_EOF 1>&2
7823
7824 *** Warning: the command libtool uses to detect shared libraries,
7825 *** $file_magic_cmd, produces output that libtool cannot recognize.
7826 *** The result is that libtool may fail to recognize shared libraries
7827 *** as such.  This will affect the creation of libtool libraries that
7828 *** depend on shared libraries, but programs linked with such libtool
7829 *** libraries will work regardless of this problem.  Nevertheless, you
7830 *** may want to report the problem to your system manager and/or to
7831 *** bug-libtool@gnu.org
7832
7833 _LT_EOF
7834           fi ;;
7835         esac
7836       fi
7837       break
7838     fi
7839   done
7840   IFS="$lt_save_ifs"
7841   MAGIC_CMD="$lt_save_MAGIC_CMD"
7842   ;;
7843 esac
7844 fi
7845
7846 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7847 if test -n "$MAGIC_CMD"; then
7848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7849 $as_echo "$MAGIC_CMD" >&6; }
7850 else
7851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7852 $as_echo "no" >&6; }
7853 fi
7854
7855
7856
7857
7858
7859 if test -z "$lt_cv_path_MAGIC_CMD"; then
7860   if test -n "$ac_tool_prefix"; then
7861     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7862 $as_echo_n "checking for file... " >&6; }
7863 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7864   $as_echo_n "(cached) " >&6
7865 else
7866   case $MAGIC_CMD in
7867 [\\/*] |  ?:[\\/]*)
7868   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7869   ;;
7870 *)
7871   lt_save_MAGIC_CMD="$MAGIC_CMD"
7872   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7873   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7874   for ac_dir in $ac_dummy; do
7875     IFS="$lt_save_ifs"
7876     test -z "$ac_dir" && ac_dir=.
7877     if test -f $ac_dir/file; then
7878       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7879       if test -n "$file_magic_test_file"; then
7880         case $deplibs_check_method in
7881         "file_magic "*)
7882           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7883           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7884           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7885             $EGREP "$file_magic_regex" > /dev/null; then
7886             :
7887           else
7888             cat <<_LT_EOF 1>&2
7889
7890 *** Warning: the command libtool uses to detect shared libraries,
7891 *** $file_magic_cmd, produces output that libtool cannot recognize.
7892 *** The result is that libtool may fail to recognize shared libraries
7893 *** as such.  This will affect the creation of libtool libraries that
7894 *** depend on shared libraries, but programs linked with such libtool
7895 *** libraries will work regardless of this problem.  Nevertheless, you
7896 *** may want to report the problem to your system manager and/or to
7897 *** bug-libtool@gnu.org
7898
7899 _LT_EOF
7900           fi ;;
7901         esac
7902       fi
7903       break
7904     fi
7905   done
7906   IFS="$lt_save_ifs"
7907   MAGIC_CMD="$lt_save_MAGIC_CMD"
7908   ;;
7909 esac
7910 fi
7911
7912 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7913 if test -n "$MAGIC_CMD"; then
7914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7915 $as_echo "$MAGIC_CMD" >&6; }
7916 else
7917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7918 $as_echo "no" >&6; }
7919 fi
7920
7921
7922   else
7923     MAGIC_CMD=:
7924   fi
7925 fi
7926
7927   fi
7928   ;;
7929 esac
7930
7931 # Use C for the default configuration in the libtool script
7932
7933 lt_save_CC="$CC"
7934 ac_ext=c
7935 ac_cpp='$CPP $CPPFLAGS'
7936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7939
7940
7941 # Source file extension for C test sources.
7942 ac_ext=c
7943
7944 # Object file extension for compiled C test sources.
7945 objext=o
7946 objext=$objext
7947
7948 # Code to be used in simple compile tests
7949 lt_simple_compile_test_code="int some_variable = 0;"
7950
7951 # Code to be used in simple link tests
7952 lt_simple_link_test_code='int main(){return(0);}'
7953
7954
7955
7956
7957
7958
7959
7960 # If no C compiler was specified, use CC.
7961 LTCC=${LTCC-"$CC"}
7962
7963 # If no C compiler flags were specified, use CFLAGS.
7964 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7965
7966 # Allow CC to be a program name with arguments.
7967 compiler=$CC
7968
7969 # Save the default compiler, since it gets overwritten when the other
7970 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7971 compiler_DEFAULT=$CC
7972
7973 # save warnings/boilerplate of simple test code
7974 ac_outfile=conftest.$ac_objext
7975 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7976 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7977 _lt_compiler_boilerplate=`cat conftest.err`
7978 $RM conftest*
7979
7980 ac_outfile=conftest.$ac_objext
7981 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7982 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7983 _lt_linker_boilerplate=`cat conftest.err`
7984 $RM -r conftest*
7985
7986
7987 ## CAVEAT EMPTOR:
7988 ## There is no encapsulation within the following macros, do not change
7989 ## the running order or otherwise move them around unless you know exactly
7990 ## what you are doing...
7991 if test -n "$compiler"; then
7992
7993 lt_prog_compiler_no_builtin_flag=
7994
7995 if test "$GCC" = yes; then
7996   case $cc_basename in
7997   nvcc*)
7998     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7999   *)
8000     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8001   esac
8002
8003   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8004 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8005 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8006   $as_echo_n "(cached) " >&6
8007 else
8008   lt_cv_prog_compiler_rtti_exceptions=no
8009    ac_outfile=conftest.$ac_objext
8010    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8011    lt_compiler_flag="-fno-rtti -fno-exceptions"
8012    # Insert the option either (1) after the last *FLAGS variable, or
8013    # (2) before a word containing "conftest.", or (3) at the end.
8014    # Note that $ac_compile itself does not contain backslashes and begins
8015    # with a dollar sign (not a hyphen), so the echo should work correctly.
8016    # The option is referenced via a variable to avoid confusing sed.
8017    lt_compile=`echo "$ac_compile" | $SED \
8018    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8019    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8020    -e 's:$: $lt_compiler_flag:'`
8021    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8022    (eval "$lt_compile" 2>conftest.err)
8023    ac_status=$?
8024    cat conftest.err >&5
8025    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8026    if (exit $ac_status) && test -s "$ac_outfile"; then
8027      # The compiler can only warn and ignore the option if not recognized
8028      # So say no if there are warnings other than the usual output.
8029      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8030      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8031      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8032        lt_cv_prog_compiler_rtti_exceptions=yes
8033      fi
8034    fi
8035    $RM conftest*
8036
8037 fi
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8039 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8040
8041 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8042     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8043 else
8044     :
8045 fi
8046
8047 fi
8048
8049
8050
8051
8052
8053
8054   lt_prog_compiler_wl=
8055 lt_prog_compiler_pic=
8056 lt_prog_compiler_static=
8057
8058
8059   if test "$GCC" = yes; then
8060     lt_prog_compiler_wl='-Wl,'
8061     lt_prog_compiler_static='-static'
8062
8063     case $host_os in
8064       aix*)
8065       # All AIX code is PIC.
8066       if test "$host_cpu" = ia64; then
8067         # AIX 5 now supports IA64 processor
8068         lt_prog_compiler_static='-Bstatic'
8069       fi
8070       ;;
8071
8072     amigaos*)
8073       case $host_cpu in
8074       powerpc)
8075             # see comment about AmigaOS4 .so support
8076             lt_prog_compiler_pic='-fPIC'
8077         ;;
8078       m68k)
8079             # FIXME: we need at least 68020 code to build shared libraries, but
8080             # adding the `-m68020' flag to GCC prevents building anything better,
8081             # like `-m68040'.
8082             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8083         ;;
8084       esac
8085       ;;
8086
8087     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8088       # PIC is the default for these OSes.
8089       ;;
8090
8091     mingw* | cygwin* | pw32* | os2* | cegcc*)
8092       # This hack is so that the source file can tell whether it is being
8093       # built for inclusion in a dll (and should export symbols for example).
8094       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8095       # (--disable-auto-import) libraries
8096       lt_prog_compiler_pic='-DDLL_EXPORT'
8097       ;;
8098
8099     darwin* | rhapsody*)
8100       # PIC is the default on this platform
8101       # Common symbols not allowed in MH_DYLIB files
8102       lt_prog_compiler_pic='-fno-common'
8103       ;;
8104
8105     haiku*)
8106       # PIC is the default for Haiku.
8107       # The "-static" flag exists, but is broken.
8108       lt_prog_compiler_static=
8109       ;;
8110
8111     hpux*)
8112       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8113       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8114       # sets the default TLS model and affects inlining.
8115       case $host_cpu in
8116       hppa*64*)
8117         # +Z the default
8118         ;;
8119       *)
8120         lt_prog_compiler_pic='-fPIC'
8121         ;;
8122       esac
8123       ;;
8124
8125     interix[3-9]*)
8126       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8127       # Instead, we relocate shared libraries at runtime.
8128       ;;
8129
8130     msdosdjgpp*)
8131       # Just because we use GCC doesn't mean we suddenly get shared libraries
8132       # on systems that don't support them.
8133       lt_prog_compiler_can_build_shared=no
8134       enable_shared=no
8135       ;;
8136
8137     *nto* | *qnx*)
8138       # QNX uses GNU C++, but need to define -shared option too, otherwise
8139       # it will coredump.
8140       lt_prog_compiler_pic='-fPIC -shared'
8141       ;;
8142
8143     sysv4*MP*)
8144       if test -d /usr/nec; then
8145         lt_prog_compiler_pic=-Kconform_pic
8146       fi
8147       ;;
8148
8149     *)
8150       lt_prog_compiler_pic='-fPIC'
8151       ;;
8152     esac
8153
8154     case $cc_basename in
8155     nvcc*) # Cuda Compiler Driver 2.2
8156       lt_prog_compiler_wl='-Xlinker '
8157       if test -n "$lt_prog_compiler_pic"; then
8158         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8159       fi
8160       ;;
8161     esac
8162   else
8163     # PORTME Check for flag to pass linker flags through the system compiler.
8164     case $host_os in
8165     aix*)
8166       lt_prog_compiler_wl='-Wl,'
8167       if test "$host_cpu" = ia64; then
8168         # AIX 5 now supports IA64 processor
8169         lt_prog_compiler_static='-Bstatic'
8170       else
8171         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8172       fi
8173       ;;
8174
8175     mingw* | cygwin* | pw32* | os2* | cegcc*)
8176       # This hack is so that the source file can tell whether it is being
8177       # built for inclusion in a dll (and should export symbols for example).
8178       lt_prog_compiler_pic='-DDLL_EXPORT'
8179       ;;
8180
8181     hpux9* | hpux10* | hpux11*)
8182       lt_prog_compiler_wl='-Wl,'
8183       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8184       # not for PA HP-UX.
8185       case $host_cpu in
8186       hppa*64*|ia64*)
8187         # +Z the default
8188         ;;
8189       *)
8190         lt_prog_compiler_pic='+Z'
8191         ;;
8192       esac
8193       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8194       lt_prog_compiler_static='${wl}-a ${wl}archive'
8195       ;;
8196
8197     irix5* | irix6* | nonstopux*)
8198       lt_prog_compiler_wl='-Wl,'
8199       # PIC (with -KPIC) is the default.
8200       lt_prog_compiler_static='-non_shared'
8201       ;;
8202
8203     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8204       case $cc_basename in
8205       # old Intel for x86_64 which still supported -KPIC.
8206       ecc*)
8207         lt_prog_compiler_wl='-Wl,'
8208         lt_prog_compiler_pic='-KPIC'
8209         lt_prog_compiler_static='-static'
8210         ;;
8211       # icc used to be incompatible with GCC.
8212       # ICC 10 doesn't accept -KPIC any more.
8213       icc* | ifort*)
8214         lt_prog_compiler_wl='-Wl,'
8215         lt_prog_compiler_pic='-fPIC'
8216         lt_prog_compiler_static='-static'
8217         ;;
8218       # Lahey Fortran 8.1.
8219       lf95*)
8220         lt_prog_compiler_wl='-Wl,'
8221         lt_prog_compiler_pic='--shared'
8222         lt_prog_compiler_static='--static'
8223         ;;
8224       nagfor*)
8225         # NAG Fortran compiler
8226         lt_prog_compiler_wl='-Wl,-Wl,,'
8227         lt_prog_compiler_pic='-PIC'
8228         lt_prog_compiler_static='-Bstatic'
8229         ;;
8230       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8231         # Portland Group compilers (*not* the Pentium gcc compiler,
8232         # which looks to be a dead project)
8233         lt_prog_compiler_wl='-Wl,'
8234         lt_prog_compiler_pic='-fpic'
8235         lt_prog_compiler_static='-Bstatic'
8236         ;;
8237       ccc*)
8238         lt_prog_compiler_wl='-Wl,'
8239         # All Alpha code is PIC.
8240         lt_prog_compiler_static='-non_shared'
8241         ;;
8242       xl* | bgxl* | bgf* | mpixl*)
8243         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8244         lt_prog_compiler_wl='-Wl,'
8245         lt_prog_compiler_pic='-qpic'
8246         lt_prog_compiler_static='-qstaticlink'
8247         ;;
8248       *)
8249         case `$CC -V 2>&1 | sed 5q` in
8250         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8251           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8252           lt_prog_compiler_pic='-KPIC'
8253           lt_prog_compiler_static='-Bstatic'
8254           lt_prog_compiler_wl=''
8255           ;;
8256         *Sun\ F* | *Sun*Fortran*)
8257           lt_prog_compiler_pic='-KPIC'
8258           lt_prog_compiler_static='-Bstatic'
8259           lt_prog_compiler_wl='-Qoption ld '
8260           ;;
8261         *Sun\ C*)
8262           # Sun C 5.9
8263           lt_prog_compiler_pic='-KPIC'
8264           lt_prog_compiler_static='-Bstatic'
8265           lt_prog_compiler_wl='-Wl,'
8266           ;;
8267         *Intel*\ [CF]*Compiler*)
8268           lt_prog_compiler_wl='-Wl,'
8269           lt_prog_compiler_pic='-fPIC'
8270           lt_prog_compiler_static='-static'
8271           ;;
8272         *Portland\ Group*)
8273           lt_prog_compiler_wl='-Wl,'
8274           lt_prog_compiler_pic='-fpic'
8275           lt_prog_compiler_static='-Bstatic'
8276           ;;
8277         esac
8278         ;;
8279       esac
8280       ;;
8281
8282     newsos6)
8283       lt_prog_compiler_pic='-KPIC'
8284       lt_prog_compiler_static='-Bstatic'
8285       ;;
8286
8287     *nto* | *qnx*)
8288       # QNX uses GNU C++, but need to define -shared option too, otherwise
8289       # it will coredump.
8290       lt_prog_compiler_pic='-fPIC -shared'
8291       ;;
8292
8293     osf3* | osf4* | osf5*)
8294       lt_prog_compiler_wl='-Wl,'
8295       # All OSF/1 code is PIC.
8296       lt_prog_compiler_static='-non_shared'
8297       ;;
8298
8299     rdos*)
8300       lt_prog_compiler_static='-non_shared'
8301       ;;
8302
8303     solaris*)
8304       lt_prog_compiler_pic='-KPIC'
8305       lt_prog_compiler_static='-Bstatic'
8306       case $cc_basename in
8307       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8308         lt_prog_compiler_wl='-Qoption ld ';;
8309       *)
8310         lt_prog_compiler_wl='-Wl,';;
8311       esac
8312       ;;
8313
8314     sunos4*)
8315       lt_prog_compiler_wl='-Qoption ld '
8316       lt_prog_compiler_pic='-PIC'
8317       lt_prog_compiler_static='-Bstatic'
8318       ;;
8319
8320     sysv4 | sysv4.2uw2* | sysv4.3*)
8321       lt_prog_compiler_wl='-Wl,'
8322       lt_prog_compiler_pic='-KPIC'
8323       lt_prog_compiler_static='-Bstatic'
8324       ;;
8325
8326     sysv4*MP*)
8327       if test -d /usr/nec ;then
8328         lt_prog_compiler_pic='-Kconform_pic'
8329         lt_prog_compiler_static='-Bstatic'
8330       fi
8331       ;;
8332
8333     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8334       lt_prog_compiler_wl='-Wl,'
8335       lt_prog_compiler_pic='-KPIC'
8336       lt_prog_compiler_static='-Bstatic'
8337       ;;
8338
8339     unicos*)
8340       lt_prog_compiler_wl='-Wl,'
8341       lt_prog_compiler_can_build_shared=no
8342       ;;
8343
8344     uts4*)
8345       lt_prog_compiler_pic='-pic'
8346       lt_prog_compiler_static='-Bstatic'
8347       ;;
8348
8349     *)
8350       lt_prog_compiler_can_build_shared=no
8351       ;;
8352     esac
8353   fi
8354
8355 case $host_os in
8356   # For platforms which do not support PIC, -DPIC is meaningless:
8357   *djgpp*)
8358     lt_prog_compiler_pic=
8359     ;;
8360   *)
8361     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8362     ;;
8363 esac
8364
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8366 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8367 if ${lt_cv_prog_compiler_pic+:} false; then :
8368   $as_echo_n "(cached) " >&6
8369 else
8370   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8371 fi
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8373 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8374 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8375
8376 #
8377 # Check to make sure the PIC flag actually works.
8378 #
8379 if test -n "$lt_prog_compiler_pic"; then
8380   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8381 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8382 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8383   $as_echo_n "(cached) " >&6
8384 else
8385   lt_cv_prog_compiler_pic_works=no
8386    ac_outfile=conftest.$ac_objext
8387    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8388    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8389    # Insert the option either (1) after the last *FLAGS variable, or
8390    # (2) before a word containing "conftest.", or (3) at the end.
8391    # Note that $ac_compile itself does not contain backslashes and begins
8392    # with a dollar sign (not a hyphen), so the echo should work correctly.
8393    # The option is referenced via a variable to avoid confusing sed.
8394    lt_compile=`echo "$ac_compile" | $SED \
8395    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8396    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8397    -e 's:$: $lt_compiler_flag:'`
8398    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8399    (eval "$lt_compile" 2>conftest.err)
8400    ac_status=$?
8401    cat conftest.err >&5
8402    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403    if (exit $ac_status) && test -s "$ac_outfile"; then
8404      # The compiler can only warn and ignore the option if not recognized
8405      # So say no if there are warnings other than the usual output.
8406      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8407      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8408      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8409        lt_cv_prog_compiler_pic_works=yes
8410      fi
8411    fi
8412    $RM conftest*
8413
8414 fi
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8416 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8417
8418 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8419     case $lt_prog_compiler_pic in
8420      "" | " "*) ;;
8421      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8422      esac
8423 else
8424     lt_prog_compiler_pic=
8425      lt_prog_compiler_can_build_shared=no
8426 fi
8427
8428 fi
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440 #
8441 # Check to make sure the static flag actually works.
8442 #
8443 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8445 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8446 if ${lt_cv_prog_compiler_static_works+:} false; then :
8447   $as_echo_n "(cached) " >&6
8448 else
8449   lt_cv_prog_compiler_static_works=no
8450    save_LDFLAGS="$LDFLAGS"
8451    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8452    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8453    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8454      # The linker can only warn and ignore the option if not recognized
8455      # So say no if there are warnings
8456      if test -s conftest.err; then
8457        # Append any errors to the config.log.
8458        cat conftest.err 1>&5
8459        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8460        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8461        if diff conftest.exp conftest.er2 >/dev/null; then
8462          lt_cv_prog_compiler_static_works=yes
8463        fi
8464      else
8465        lt_cv_prog_compiler_static_works=yes
8466      fi
8467    fi
8468    $RM -r conftest*
8469    LDFLAGS="$save_LDFLAGS"
8470
8471 fi
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8473 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8474
8475 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8476     :
8477 else
8478     lt_prog_compiler_static=
8479 fi
8480
8481
8482
8483
8484
8485
8486
8487   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8488 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8489 if ${lt_cv_prog_compiler_c_o+:} false; then :
8490   $as_echo_n "(cached) " >&6
8491 else
8492   lt_cv_prog_compiler_c_o=no
8493    $RM -r conftest 2>/dev/null
8494    mkdir conftest
8495    cd conftest
8496    mkdir out
8497    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8498
8499    lt_compiler_flag="-o out/conftest2.$ac_objext"
8500    # Insert the option either (1) after the last *FLAGS variable, or
8501    # (2) before a word containing "conftest.", or (3) at the end.
8502    # Note that $ac_compile itself does not contain backslashes and begins
8503    # with a dollar sign (not a hyphen), so the echo should work correctly.
8504    lt_compile=`echo "$ac_compile" | $SED \
8505    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8506    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8507    -e 's:$: $lt_compiler_flag:'`
8508    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8509    (eval "$lt_compile" 2>out/conftest.err)
8510    ac_status=$?
8511    cat out/conftest.err >&5
8512    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8513    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8514    then
8515      # The compiler can only warn and ignore the option if not recognized
8516      # So say no if there are warnings
8517      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8518      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8519      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8520        lt_cv_prog_compiler_c_o=yes
8521      fi
8522    fi
8523    chmod u+w . 2>&5
8524    $RM conftest*
8525    # SGI C++ compiler will create directory out/ii_files/ for
8526    # template instantiation
8527    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8528    $RM out/* && rmdir out
8529    cd ..
8530    $RM -r conftest
8531    $RM conftest*
8532
8533 fi
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8535 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8536
8537
8538
8539
8540
8541
8542   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8543 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8544 if ${lt_cv_prog_compiler_c_o+:} false; then :
8545   $as_echo_n "(cached) " >&6
8546 else
8547   lt_cv_prog_compiler_c_o=no
8548    $RM -r conftest 2>/dev/null
8549    mkdir conftest
8550    cd conftest
8551    mkdir out
8552    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8553
8554    lt_compiler_flag="-o out/conftest2.$ac_objext"
8555    # Insert the option either (1) after the last *FLAGS variable, or
8556    # (2) before a word containing "conftest.", or (3) at the end.
8557    # Note that $ac_compile itself does not contain backslashes and begins
8558    # with a dollar sign (not a hyphen), so the echo should work correctly.
8559    lt_compile=`echo "$ac_compile" | $SED \
8560    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8561    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8562    -e 's:$: $lt_compiler_flag:'`
8563    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8564    (eval "$lt_compile" 2>out/conftest.err)
8565    ac_status=$?
8566    cat out/conftest.err >&5
8567    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8569    then
8570      # The compiler can only warn and ignore the option if not recognized
8571      # So say no if there are warnings
8572      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8573      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8574      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8575        lt_cv_prog_compiler_c_o=yes
8576      fi
8577    fi
8578    chmod u+w . 2>&5
8579    $RM conftest*
8580    # SGI C++ compiler will create directory out/ii_files/ for
8581    # template instantiation
8582    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8583    $RM out/* && rmdir out
8584    cd ..
8585    $RM -r conftest
8586    $RM conftest*
8587
8588 fi
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8590 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8591
8592
8593
8594
8595 hard_links="nottested"
8596 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8597   # do not overwrite the value of need_locks provided by the user
8598   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8599 $as_echo_n "checking if we can lock with hard links... " >&6; }
8600   hard_links=yes
8601   $RM conftest*
8602   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8603   touch conftest.a
8604   ln conftest.a conftest.b 2>&5 || hard_links=no
8605   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8607 $as_echo "$hard_links" >&6; }
8608   if test "$hard_links" = no; then
8609     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8610 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8611     need_locks=warn
8612   fi
8613 else
8614   need_locks=no
8615 fi
8616
8617
8618
8619
8620
8621
8622   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8623 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8624
8625   runpath_var=
8626   allow_undefined_flag=
8627   always_export_symbols=no
8628   archive_cmds=
8629   archive_expsym_cmds=
8630   compiler_needs_object=no
8631   enable_shared_with_static_runtimes=no
8632   export_dynamic_flag_spec=
8633   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8634   hardcode_automatic=no
8635   hardcode_direct=no
8636   hardcode_direct_absolute=no
8637   hardcode_libdir_flag_spec=
8638   hardcode_libdir_separator=
8639   hardcode_minus_L=no
8640   hardcode_shlibpath_var=unsupported
8641   inherit_rpath=no
8642   link_all_deplibs=unknown
8643   module_cmds=
8644   module_expsym_cmds=
8645   old_archive_from_new_cmds=
8646   old_archive_from_expsyms_cmds=
8647   thread_safe_flag_spec=
8648   whole_archive_flag_spec=
8649   # include_expsyms should be a list of space-separated symbols to be *always*
8650   # included in the symbol list
8651   include_expsyms=
8652   # exclude_expsyms can be an extended regexp of symbols to exclude
8653   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8654   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8655   # as well as any symbol that contains `d'.
8656   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8657   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8658   # platforms (ab)use it in PIC code, but their linkers get confused if
8659   # the symbol is explicitly referenced.  Since portable code cannot
8660   # rely on this symbol name, it's probably fine to never include it in
8661   # preloaded symbol tables.
8662   # Exclude shared library initialization/finalization symbols.
8663   extract_expsyms_cmds=
8664
8665   case $host_os in
8666   cygwin* | mingw* | pw32* | cegcc*)
8667     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8668     # When not using gcc, we currently assume that we are using
8669     # Microsoft Visual C++.
8670     if test "$GCC" != yes; then
8671       with_gnu_ld=no
8672     fi
8673     ;;
8674   interix*)
8675     # we just hope/assume this is gcc and not c89 (= MSVC++)
8676     with_gnu_ld=yes
8677     ;;
8678   openbsd*)
8679     with_gnu_ld=no
8680     ;;
8681   esac
8682
8683   ld_shlibs=yes
8684
8685   # On some targets, GNU ld is compatible enough with the native linker
8686   # that we're better off using the native interface for both.
8687   lt_use_gnu_ld_interface=no
8688   if test "$with_gnu_ld" = yes; then
8689     case $host_os in
8690       aix*)
8691         # The AIX port of GNU ld has always aspired to compatibility
8692         # with the native linker.  However, as the warning in the GNU ld
8693         # block says, versions before 2.19.5* couldn't really create working
8694         # shared libraries, regardless of the interface used.
8695         case `$LD -v 2>&1` in
8696           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8697           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8698           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8699           *)
8700             lt_use_gnu_ld_interface=yes
8701             ;;
8702         esac
8703         ;;
8704       *)
8705         lt_use_gnu_ld_interface=yes
8706         ;;
8707     esac
8708   fi
8709
8710   if test "$lt_use_gnu_ld_interface" = yes; then
8711     # If archive_cmds runs LD, not CC, wlarc should be empty
8712     wlarc='${wl}'
8713
8714     # Set some defaults for GNU ld with shared library support. These
8715     # are reset later if shared libraries are not supported. Putting them
8716     # here allows them to be overridden if necessary.
8717     runpath_var=LD_RUN_PATH
8718     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8719     export_dynamic_flag_spec='${wl}--export-dynamic'
8720     # ancient GNU ld didn't support --whole-archive et. al.
8721     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8722       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8723     else
8724       whole_archive_flag_spec=
8725     fi
8726     supports_anon_versioning=no
8727     case `$LD -v 2>&1` in
8728       *GNU\ gold*) supports_anon_versioning=yes ;;
8729       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8730       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8731       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8732       *\ 2.11.*) ;; # other 2.11 versions
8733       *) supports_anon_versioning=yes ;;
8734     esac
8735
8736     # See if GNU ld supports shared libraries.
8737     case $host_os in
8738     aix[3-9]*)
8739       # On AIX/PPC, the GNU linker is very broken
8740       if test "$host_cpu" != ia64; then
8741         ld_shlibs=no
8742         cat <<_LT_EOF 1>&2
8743
8744 *** Warning: the GNU linker, at least up to release 2.19, is reported
8745 *** to be unable to reliably create shared libraries on AIX.
8746 *** Therefore, libtool is disabling shared libraries support.  If you
8747 *** really care for shared libraries, you may want to install binutils
8748 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8749 *** You will then need to restart the configuration process.
8750
8751 _LT_EOF
8752       fi
8753       ;;
8754
8755     amigaos*)
8756       case $host_cpu in
8757       powerpc)
8758             # see comment about AmigaOS4 .so support
8759             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8760             archive_expsym_cmds=''
8761         ;;
8762       m68k)
8763             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)'
8764             hardcode_libdir_flag_spec='-L$libdir'
8765             hardcode_minus_L=yes
8766         ;;
8767       esac
8768       ;;
8769
8770     beos*)
8771       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8772         allow_undefined_flag=unsupported
8773         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8774         # support --undefined.  This deserves some investigation.  FIXME
8775         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8776       else
8777         ld_shlibs=no
8778       fi
8779       ;;
8780
8781     cygwin* | mingw* | pw32* | cegcc*)
8782       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8783       # as there is no search path for DLLs.
8784       hardcode_libdir_flag_spec='-L$libdir'
8785       export_dynamic_flag_spec='${wl}--export-all-symbols'
8786       allow_undefined_flag=unsupported
8787       always_export_symbols=no
8788       enable_shared_with_static_runtimes=yes
8789       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'
8790       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8791
8792       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8793         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8794         # If the export-symbols file already is a .def file (1st line
8795         # is EXPORTS), use it as is; otherwise, prepend...
8796         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8797           cp $export_symbols $output_objdir/$soname.def;
8798         else
8799           echo EXPORTS > $output_objdir/$soname.def;
8800           cat $export_symbols >> $output_objdir/$soname.def;
8801         fi~
8802         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8803       else
8804         ld_shlibs=no
8805       fi
8806       ;;
8807
8808     haiku*)
8809       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8810       link_all_deplibs=yes
8811       ;;
8812
8813     interix[3-9]*)
8814       hardcode_direct=no
8815       hardcode_shlibpath_var=no
8816       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8817       export_dynamic_flag_spec='${wl}-E'
8818       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8819       # Instead, shared libraries are loaded at an image base (0x10000000 by
8820       # default) and relocated if they conflict, which is a slow very memory
8821       # consuming and fragmenting process.  To avoid this, we pick a random,
8822       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8823       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8824       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8825       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'
8826       ;;
8827
8828     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8829       tmp_diet=no
8830       if test "$host_os" = linux-dietlibc; then
8831         case $cc_basename in
8832           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8833         esac
8834       fi
8835       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8836          && test "$tmp_diet" = no
8837       then
8838         tmp_addflag=' $pic_flag'
8839         tmp_sharedflag='-shared'
8840         case $cc_basename,$host_cpu in
8841         pgcc*)                          # Portland Group C compiler
8842           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'
8843           tmp_addflag=' $pic_flag'
8844           ;;
8845         pgf77* | pgf90* | pgf95* | pgfortran*)
8846                                         # Portland Group f77 and f90 compilers
8847           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'
8848           tmp_addflag=' $pic_flag -Mnomain' ;;
8849         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8850           tmp_addflag=' -i_dynamic' ;;
8851         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8852           tmp_addflag=' -i_dynamic -nofor_main' ;;
8853         ifc* | ifort*)                  # Intel Fortran compiler
8854           tmp_addflag=' -nofor_main' ;;
8855         lf95*)                          # Lahey Fortran 8.1
8856           whole_archive_flag_spec=
8857           tmp_sharedflag='--shared' ;;
8858         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8859           tmp_sharedflag='-qmkshrobj'
8860           tmp_addflag= ;;
8861         nvcc*)  # Cuda Compiler Driver 2.2
8862           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'
8863           compiler_needs_object=yes
8864           ;;
8865         esac
8866         case `$CC -V 2>&1 | sed 5q` in
8867         *Sun\ C*)                       # Sun C 5.9
8868           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'
8869           compiler_needs_object=yes
8870           tmp_sharedflag='-G' ;;
8871         *Sun\ F*)                       # Sun Fortran 8.3
8872           tmp_sharedflag='-G' ;;
8873         esac
8874         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8875
8876         if test "x$supports_anon_versioning" = xyes; then
8877           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8878             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8879             echo "local: *; };" >> $output_objdir/$libname.ver~
8880             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8881         fi
8882
8883         case $cc_basename in
8884         xlf* | bgf* | bgxlf* | mpixlf*)
8885           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8886           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8887           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8888           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8889           if test "x$supports_anon_versioning" = xyes; then
8890             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8891               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8892               echo "local: *; };" >> $output_objdir/$libname.ver~
8893               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8894           fi
8895           ;;
8896         esac
8897       else
8898         ld_shlibs=no
8899       fi
8900       ;;
8901
8902     netbsd*)
8903       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8904         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8905         wlarc=
8906       else
8907         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8908         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8909       fi
8910       ;;
8911
8912     solaris*)
8913       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8914         ld_shlibs=no
8915         cat <<_LT_EOF 1>&2
8916
8917 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8918 *** create shared libraries on Solaris systems.  Therefore, libtool
8919 *** is disabling shared libraries support.  We urge you to upgrade GNU
8920 *** binutils to release 2.9.1 or newer.  Another option is to modify
8921 *** your PATH or compiler configuration so that the native linker is
8922 *** used, and then restart.
8923
8924 _LT_EOF
8925       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8926         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8927         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8928       else
8929         ld_shlibs=no
8930       fi
8931       ;;
8932
8933     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8934       case `$LD -v 2>&1` in
8935         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8936         ld_shlibs=no
8937         cat <<_LT_EOF 1>&2
8938
8939 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8940 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8941 *** is disabling shared libraries support.  We urge you to upgrade GNU
8942 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8943 *** your PATH or compiler configuration so that the native linker is
8944 *** used, and then restart.
8945
8946 _LT_EOF
8947         ;;
8948         *)
8949           # For security reasons, it is highly recommended that you always
8950           # use absolute paths for naming shared libraries, and exclude the
8951           # DT_RUNPATH tag from executables and libraries.  But doing so
8952           # requires that you compile everything twice, which is a pain.
8953           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8954             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8955             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8956             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8957           else
8958             ld_shlibs=no
8959           fi
8960         ;;
8961       esac
8962       ;;
8963
8964     sunos4*)
8965       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8966       wlarc=
8967       hardcode_direct=yes
8968       hardcode_shlibpath_var=no
8969       ;;
8970
8971     *)
8972       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8973         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8974         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8975       else
8976         ld_shlibs=no
8977       fi
8978       ;;
8979     esac
8980
8981     if test "$ld_shlibs" = no; then
8982       runpath_var=
8983       hardcode_libdir_flag_spec=
8984       export_dynamic_flag_spec=
8985       whole_archive_flag_spec=
8986     fi
8987   else
8988     # PORTME fill in a description of your system's linker (not GNU ld)
8989     case $host_os in
8990     aix3*)
8991       allow_undefined_flag=unsupported
8992       always_export_symbols=yes
8993       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'
8994       # Note: this linker hardcodes the directories in LIBPATH if there
8995       # are no directories specified by -L.
8996       hardcode_minus_L=yes
8997       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8998         # Neither direct hardcoding nor static linking is supported with a
8999         # broken collect2.
9000         hardcode_direct=unsupported
9001       fi
9002       ;;
9003
9004     aix[4-9]*)
9005       if test "$host_cpu" = ia64; then
9006         # On IA64, the linker does run time linking by default, so we don't
9007         # have to do anything special.
9008         aix_use_runtimelinking=no
9009         exp_sym_flag='-Bexport'
9010         no_entry_flag=""
9011       else
9012         # If we're using GNU nm, then we don't want the "-C" option.
9013         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9014         # Also, AIX nm treats weak defined symbols like other global
9015         # defined symbols, whereas GNU nm marks them as "W".
9016         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9017           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'
9018         else
9019           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'
9020         fi
9021         aix_use_runtimelinking=no
9022
9023         # Test if we are trying to use run time linking or normal
9024         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9025         # need to do runtime linking.
9026         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9027           for ld_flag in $LDFLAGS; do
9028           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9029             aix_use_runtimelinking=yes
9030             break
9031           fi
9032           done
9033           ;;
9034         esac
9035
9036         exp_sym_flag='-bexport'
9037         no_entry_flag='-bnoentry'
9038       fi
9039
9040       # When large executables or shared objects are built, AIX ld can
9041       # have problems creating the table of contents.  If linking a library
9042       # or program results in "error TOC overflow" add -mminimal-toc to
9043       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9044       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9045
9046       archive_cmds=''
9047       hardcode_direct=yes
9048       hardcode_direct_absolute=yes
9049       hardcode_libdir_separator=':'
9050       link_all_deplibs=yes
9051       file_list_spec='${wl}-f,'
9052
9053       if test "$GCC" = yes; then
9054         case $host_os in aix4.[012]|aix4.[012].*)
9055         # We only want to do this on AIX 4.2 and lower, the check
9056         # below for broken collect2 doesn't work under 4.3+
9057           collect2name=`${CC} -print-prog-name=collect2`
9058           if test -f "$collect2name" &&
9059            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9060           then
9061           # We have reworked collect2
9062           :
9063           else
9064           # We have old collect2
9065           hardcode_direct=unsupported
9066           # It fails to find uninstalled libraries when the uninstalled
9067           # path is not listed in the libpath.  Setting hardcode_minus_L
9068           # to unsupported forces relinking
9069           hardcode_minus_L=yes
9070           hardcode_libdir_flag_spec='-L$libdir'
9071           hardcode_libdir_separator=
9072           fi
9073           ;;
9074         esac
9075         shared_flag='-shared'
9076         if test "$aix_use_runtimelinking" = yes; then
9077           shared_flag="$shared_flag "'${wl}-G'
9078         fi
9079       else
9080         # not using gcc
9081         if test "$host_cpu" = ia64; then
9082         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9083         # chokes on -Wl,-G. The following line is correct:
9084           shared_flag='-G'
9085         else
9086           if test "$aix_use_runtimelinking" = yes; then
9087             shared_flag='${wl}-G'
9088           else
9089             shared_flag='${wl}-bM:SRE'
9090           fi
9091         fi
9092       fi
9093
9094       export_dynamic_flag_spec='${wl}-bexpall'
9095       # It seems that -bexpall does not export symbols beginning with
9096       # underscore (_), so it is better to generate a list of symbols to export.
9097       always_export_symbols=yes
9098       if test "$aix_use_runtimelinking" = yes; then
9099         # Warning - without using the other runtime loading flags (-brtl),
9100         # -berok will link without error, but may produce a broken library.
9101         allow_undefined_flag='-berok'
9102         # Determine the default libpath from the value encoded in an
9103         # empty executable.
9104         if test "${lt_cv_aix_libpath+set}" = set; then
9105   aix_libpath=$lt_cv_aix_libpath
9106 else
9107   if ${lt_cv_aix_libpath_+:} false; then :
9108   $as_echo_n "(cached) " >&6
9109 else
9110   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9111 /* end confdefs.h.  */
9112
9113 int
9114 main ()
9115 {
9116
9117   ;
9118   return 0;
9119 }
9120 _ACEOF
9121 if ac_fn_c_try_link "$LINENO"; then :
9122
9123   lt_aix_libpath_sed='
9124       /Import File Strings/,/^$/ {
9125           /^0/ {
9126               s/^0  *\([^ ]*\) *$/\1/
9127               p
9128           }
9129       }'
9130   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9131   # Check for a 64-bit object if we didn't find anything.
9132   if test -z "$lt_cv_aix_libpath_"; then
9133     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9134   fi
9135 fi
9136 rm -f core conftest.err conftest.$ac_objext \
9137     conftest$ac_exeext conftest.$ac_ext
9138   if test -z "$lt_cv_aix_libpath_"; then
9139     lt_cv_aix_libpath_="/usr/lib:/lib"
9140   fi
9141
9142 fi
9143
9144   aix_libpath=$lt_cv_aix_libpath_
9145 fi
9146
9147         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9148         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"
9149       else
9150         if test "$host_cpu" = ia64; then
9151           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9152           allow_undefined_flag="-z nodefs"
9153           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"
9154         else
9155          # Determine the default libpath from the value encoded in an
9156          # empty executable.
9157          if test "${lt_cv_aix_libpath+set}" = set; then
9158   aix_libpath=$lt_cv_aix_libpath
9159 else
9160   if ${lt_cv_aix_libpath_+:} false; then :
9161   $as_echo_n "(cached) " >&6
9162 else
9163   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9164 /* end confdefs.h.  */
9165
9166 int
9167 main ()
9168 {
9169
9170   ;
9171   return 0;
9172 }
9173 _ACEOF
9174 if ac_fn_c_try_link "$LINENO"; then :
9175
9176   lt_aix_libpath_sed='
9177       /Import File Strings/,/^$/ {
9178           /^0/ {
9179               s/^0  *\([^ ]*\) *$/\1/
9180               p
9181           }
9182       }'
9183   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9184   # Check for a 64-bit object if we didn't find anything.
9185   if test -z "$lt_cv_aix_libpath_"; then
9186     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9187   fi
9188 fi
9189 rm -f core conftest.err conftest.$ac_objext \
9190     conftest$ac_exeext conftest.$ac_ext
9191   if test -z "$lt_cv_aix_libpath_"; then
9192     lt_cv_aix_libpath_="/usr/lib:/lib"
9193   fi
9194
9195 fi
9196
9197   aix_libpath=$lt_cv_aix_libpath_
9198 fi
9199
9200          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9201           # Warning - without using the other run time loading flags,
9202           # -berok will link without error, but may produce a broken library.
9203           no_undefined_flag=' ${wl}-bernotok'
9204           allow_undefined_flag=' ${wl}-berok'
9205           if test "$with_gnu_ld" = yes; then
9206             # We only use this code for GNU lds that support --whole-archive.
9207             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9208           else
9209             # Exported symbols can be pulled into shared objects from archives
9210             whole_archive_flag_spec='$convenience'
9211           fi
9212           archive_cmds_need_lc=yes
9213           # This is similar to how AIX traditionally builds its shared libraries.
9214           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'
9215         fi
9216       fi
9217       ;;
9218
9219     amigaos*)
9220       case $host_cpu in
9221       powerpc)
9222             # see comment about AmigaOS4 .so support
9223             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9224             archive_expsym_cmds=''
9225         ;;
9226       m68k)
9227             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)'
9228             hardcode_libdir_flag_spec='-L$libdir'
9229             hardcode_minus_L=yes
9230         ;;
9231       esac
9232       ;;
9233
9234     bsdi[45]*)
9235       export_dynamic_flag_spec=-rdynamic
9236       ;;
9237
9238     cygwin* | mingw* | pw32* | cegcc*)
9239       # When not using gcc, we currently assume that we are using
9240       # Microsoft Visual C++.
9241       # hardcode_libdir_flag_spec is actually meaningless, as there is
9242       # no search path for DLLs.
9243       case $cc_basename in
9244       cl*)
9245         # Native MSVC
9246         hardcode_libdir_flag_spec=' '
9247         allow_undefined_flag=unsupported
9248         always_export_symbols=yes
9249         file_list_spec='@'
9250         # Tell ltmain to make .lib files, not .a files.
9251         libext=lib
9252         # Tell ltmain to make .dll files, not .so files.
9253         shrext_cmds=".dll"
9254         # FIXME: Setting linknames here is a bad hack.
9255         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9256         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9257             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9258           else
9259             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9260           fi~
9261           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9262           linknames='
9263         # The linker will not automatically build a static lib if we build a DLL.
9264         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9265         enable_shared_with_static_runtimes=yes
9266         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9267         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9268         # Don't use ranlib
9269         old_postinstall_cmds='chmod 644 $oldlib'
9270         postlink_cmds='lt_outputfile="@OUTPUT@"~
9271           lt_tool_outputfile="@TOOL_OUTPUT@"~
9272           case $lt_outputfile in
9273             *.exe|*.EXE) ;;
9274             *)
9275               lt_outputfile="$lt_outputfile.exe"
9276               lt_tool_outputfile="$lt_tool_outputfile.exe"
9277               ;;
9278           esac~
9279           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9280             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9281             $RM "$lt_outputfile.manifest";
9282           fi'
9283         ;;
9284       *)
9285         # Assume MSVC wrapper
9286         hardcode_libdir_flag_spec=' '
9287         allow_undefined_flag=unsupported
9288         # Tell ltmain to make .lib files, not .a files.
9289         libext=lib
9290         # Tell ltmain to make .dll files, not .so files.
9291         shrext_cmds=".dll"
9292         # FIXME: Setting linknames here is a bad hack.
9293         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9294         # The linker will automatically build a .lib file if we build a DLL.
9295         old_archive_from_new_cmds='true'
9296         # FIXME: Should let the user specify the lib program.
9297         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9298         enable_shared_with_static_runtimes=yes
9299         ;;
9300       esac
9301       ;;
9302
9303     darwin* | rhapsody*)
9304
9305
9306   archive_cmds_need_lc=no
9307   hardcode_direct=no
9308   hardcode_automatic=yes
9309   hardcode_shlibpath_var=unsupported
9310   if test "$lt_cv_ld_force_load" = "yes"; then
9311     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\"`'
9312
9313   else
9314     whole_archive_flag_spec=''
9315   fi
9316   link_all_deplibs=yes
9317   allow_undefined_flag="$_lt_dar_allow_undefined"
9318   case $cc_basename in
9319      ifort*) _lt_dar_can_shared=yes ;;
9320      *) _lt_dar_can_shared=$GCC ;;
9321   esac
9322   if test "$_lt_dar_can_shared" = "yes"; then
9323     output_verbose_link_cmd=func_echo_all
9324     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9325     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9326     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}"
9327     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}"
9328
9329   else
9330   ld_shlibs=no
9331   fi
9332
9333       ;;
9334
9335     dgux*)
9336       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9337       hardcode_libdir_flag_spec='-L$libdir'
9338       hardcode_shlibpath_var=no
9339       ;;
9340
9341     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9342     # support.  Future versions do this automatically, but an explicit c++rt0.o
9343     # does not break anything, and helps significantly (at the cost of a little
9344     # extra space).
9345     freebsd2.2*)
9346       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9347       hardcode_libdir_flag_spec='-R$libdir'
9348       hardcode_direct=yes
9349       hardcode_shlibpath_var=no
9350       ;;
9351
9352     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9353     freebsd2.*)
9354       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9355       hardcode_direct=yes
9356       hardcode_minus_L=yes
9357       hardcode_shlibpath_var=no
9358       ;;
9359
9360     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9361     freebsd* | dragonfly*)
9362       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9363       hardcode_libdir_flag_spec='-R$libdir'
9364       hardcode_direct=yes
9365       hardcode_shlibpath_var=no
9366       ;;
9367
9368     hpux9*)
9369       if test "$GCC" = yes; then
9370         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'
9371       else
9372         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'
9373       fi
9374       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9375       hardcode_libdir_separator=:
9376       hardcode_direct=yes
9377
9378       # hardcode_minus_L: Not really in the search PATH,
9379       # but as the default location of the library.
9380       hardcode_minus_L=yes
9381       export_dynamic_flag_spec='${wl}-E'
9382       ;;
9383
9384     hpux10*)
9385       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9386         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9387       else
9388         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9389       fi
9390       if test "$with_gnu_ld" = no; then
9391         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9392         hardcode_libdir_separator=:
9393         hardcode_direct=yes
9394         hardcode_direct_absolute=yes
9395         export_dynamic_flag_spec='${wl}-E'
9396         # hardcode_minus_L: Not really in the search PATH,
9397         # but as the default location of the library.
9398         hardcode_minus_L=yes
9399       fi
9400       ;;
9401
9402     hpux11*)
9403       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9404         case $host_cpu in
9405         hppa*64*)
9406           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9407           ;;
9408         ia64*)
9409           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9410           ;;
9411         *)
9412           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9413           ;;
9414         esac
9415       else
9416         case $host_cpu in
9417         hppa*64*)
9418           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9419           ;;
9420         ia64*)
9421           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9422           ;;
9423         *)
9424
9425           # Older versions of the 11.00 compiler do not understand -b yet
9426           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9427           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9428 $as_echo_n "checking if $CC understands -b... " >&6; }
9429 if ${lt_cv_prog_compiler__b+:} false; then :
9430   $as_echo_n "(cached) " >&6
9431 else
9432   lt_cv_prog_compiler__b=no
9433    save_LDFLAGS="$LDFLAGS"
9434    LDFLAGS="$LDFLAGS -b"
9435    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9436    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9437      # The linker can only warn and ignore the option if not recognized
9438      # So say no if there are warnings
9439      if test -s conftest.err; then
9440        # Append any errors to the config.log.
9441        cat conftest.err 1>&5
9442        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9443        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9444        if diff conftest.exp conftest.er2 >/dev/null; then
9445          lt_cv_prog_compiler__b=yes
9446        fi
9447      else
9448        lt_cv_prog_compiler__b=yes
9449      fi
9450    fi
9451    $RM -r conftest*
9452    LDFLAGS="$save_LDFLAGS"
9453
9454 fi
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9456 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9457
9458 if test x"$lt_cv_prog_compiler__b" = xyes; then
9459     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9460 else
9461     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9462 fi
9463
9464           ;;
9465         esac
9466       fi
9467       if test "$with_gnu_ld" = no; then
9468         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9469         hardcode_libdir_separator=:
9470
9471         case $host_cpu in
9472         hppa*64*|ia64*)
9473           hardcode_direct=no
9474           hardcode_shlibpath_var=no
9475           ;;
9476         *)
9477           hardcode_direct=yes
9478           hardcode_direct_absolute=yes
9479           export_dynamic_flag_spec='${wl}-E'
9480
9481           # hardcode_minus_L: Not really in the search PATH,
9482           # but as the default location of the library.
9483           hardcode_minus_L=yes
9484           ;;
9485         esac
9486       fi
9487       ;;
9488
9489     irix5* | irix6* | nonstopux*)
9490       if test "$GCC" = yes; then
9491         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'
9492         # Try to use the -exported_symbol ld option, if it does not
9493         # work, assume that -exports_file does not work either and
9494         # implicitly export all symbols.
9495         # This should be the same for all languages, so no per-tag cache variable.
9496         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9497 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9498 if ${lt_cv_irix_exported_symbol+:} false; then :
9499   $as_echo_n "(cached) " >&6
9500 else
9501   save_LDFLAGS="$LDFLAGS"
9502            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9503            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9504 /* end confdefs.h.  */
9505 int foo (void) { return 0; }
9506 _ACEOF
9507 if ac_fn_c_try_link "$LINENO"; then :
9508   lt_cv_irix_exported_symbol=yes
9509 else
9510   lt_cv_irix_exported_symbol=no
9511 fi
9512 rm -f core conftest.err conftest.$ac_objext \
9513     conftest$ac_exeext conftest.$ac_ext
9514            LDFLAGS="$save_LDFLAGS"
9515 fi
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9517 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9518         if test "$lt_cv_irix_exported_symbol" = yes; then
9519           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'
9520         fi
9521       else
9522         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'
9523         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'
9524       fi
9525       archive_cmds_need_lc='no'
9526       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9527       hardcode_libdir_separator=:
9528       inherit_rpath=yes
9529       link_all_deplibs=yes
9530       ;;
9531
9532     netbsd*)
9533       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9534         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9535       else
9536         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9537       fi
9538       hardcode_libdir_flag_spec='-R$libdir'
9539       hardcode_direct=yes
9540       hardcode_shlibpath_var=no
9541       ;;
9542
9543     newsos6)
9544       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9545       hardcode_direct=yes
9546       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9547       hardcode_libdir_separator=:
9548       hardcode_shlibpath_var=no
9549       ;;
9550
9551     *nto* | *qnx*)
9552       ;;
9553
9554     openbsd*)
9555       if test -f /usr/libexec/ld.so; then
9556         hardcode_direct=yes
9557         hardcode_shlibpath_var=no
9558         hardcode_direct_absolute=yes
9559         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9560           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9561           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9562           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9563           export_dynamic_flag_spec='${wl}-E'
9564         else
9565           case $host_os in
9566            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9567              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9568              hardcode_libdir_flag_spec='-R$libdir'
9569              ;;
9570            *)
9571              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9572              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9573              ;;
9574           esac
9575         fi
9576       else
9577         ld_shlibs=no
9578       fi
9579       ;;
9580
9581     os2*)
9582       hardcode_libdir_flag_spec='-L$libdir'
9583       hardcode_minus_L=yes
9584       allow_undefined_flag=unsupported
9585       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'
9586       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9587       ;;
9588
9589     osf3*)
9590       if test "$GCC" = yes; then
9591         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9592         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'
9593       else
9594         allow_undefined_flag=' -expect_unresolved \*'
9595         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'
9596       fi
9597       archive_cmds_need_lc='no'
9598       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9599       hardcode_libdir_separator=:
9600       ;;
9601
9602     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9603       if test "$GCC" = yes; then
9604         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9605         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'
9606         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9607       else
9608         allow_undefined_flag=' -expect_unresolved \*'
9609         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'
9610         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~
9611         $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'
9612
9613         # Both c and cxx compiler support -rpath directly
9614         hardcode_libdir_flag_spec='-rpath $libdir'
9615       fi
9616       archive_cmds_need_lc='no'
9617       hardcode_libdir_separator=:
9618       ;;
9619
9620     solaris*)
9621       no_undefined_flag=' -z defs'
9622       if test "$GCC" = yes; then
9623         wlarc='${wl}'
9624         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9625         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9626           $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'
9627       else
9628         case `$CC -V 2>&1` in
9629         *"Compilers 5.0"*)
9630           wlarc=''
9631           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9632           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9633           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9634           ;;
9635         *)
9636           wlarc='${wl}'
9637           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9638           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9639           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9640           ;;
9641         esac
9642       fi
9643       hardcode_libdir_flag_spec='-R$libdir'
9644       hardcode_shlibpath_var=no
9645       case $host_os in
9646       solaris2.[0-5] | solaris2.[0-5].*) ;;
9647       *)
9648         # The compiler driver will combine and reorder linker options,
9649         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9650         # but is careful enough not to reorder.
9651         # Supported since Solaris 2.6 (maybe 2.5.1?)
9652         if test "$GCC" = yes; then
9653           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9654         else
9655           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9656         fi
9657         ;;
9658       esac
9659       link_all_deplibs=yes
9660       ;;
9661
9662     sunos4*)
9663       if test "x$host_vendor" = xsequent; then
9664         # Use $CC to link under sequent, because it throws in some extra .o
9665         # files that make .init and .fini sections work.
9666         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9667       else
9668         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9669       fi
9670       hardcode_libdir_flag_spec='-L$libdir'
9671       hardcode_direct=yes
9672       hardcode_minus_L=yes
9673       hardcode_shlibpath_var=no
9674       ;;
9675
9676     sysv4)
9677       case $host_vendor in
9678         sni)
9679           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9680           hardcode_direct=yes # is this really true???
9681         ;;
9682         siemens)
9683           ## LD is ld it makes a PLAMLIB
9684           ## CC just makes a GrossModule.
9685           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9686           reload_cmds='$CC -r -o $output$reload_objs'
9687           hardcode_direct=no
9688         ;;
9689         motorola)
9690           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9691           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9692         ;;
9693       esac
9694       runpath_var='LD_RUN_PATH'
9695       hardcode_shlibpath_var=no
9696       ;;
9697
9698     sysv4.3*)
9699       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9700       hardcode_shlibpath_var=no
9701       export_dynamic_flag_spec='-Bexport'
9702       ;;
9703
9704     sysv4*MP*)
9705       if test -d /usr/nec; then
9706         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9707         hardcode_shlibpath_var=no
9708         runpath_var=LD_RUN_PATH
9709         hardcode_runpath_var=yes
9710         ld_shlibs=yes
9711       fi
9712       ;;
9713
9714     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9715       no_undefined_flag='${wl}-z,text'
9716       archive_cmds_need_lc=no
9717       hardcode_shlibpath_var=no
9718       runpath_var='LD_RUN_PATH'
9719
9720       if test "$GCC" = yes; then
9721         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9722         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9723       else
9724         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9725         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9726       fi
9727       ;;
9728
9729     sysv5* | sco3.2v5* | sco5v6*)
9730       # Note: We can NOT use -z defs as we might desire, because we do not
9731       # link with -lc, and that would cause any symbols used from libc to
9732       # always be unresolved, which means just about no library would
9733       # ever link correctly.  If we're not using GNU ld we use -z text
9734       # though, which does catch some bad symbols but isn't as heavy-handed
9735       # as -z defs.
9736       no_undefined_flag='${wl}-z,text'
9737       allow_undefined_flag='${wl}-z,nodefs'
9738       archive_cmds_need_lc=no
9739       hardcode_shlibpath_var=no
9740       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9741       hardcode_libdir_separator=':'
9742       link_all_deplibs=yes
9743       export_dynamic_flag_spec='${wl}-Bexport'
9744       runpath_var='LD_RUN_PATH'
9745
9746       if test "$GCC" = yes; then
9747         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9748         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9749       else
9750         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9751         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9752       fi
9753       ;;
9754
9755     uts4*)
9756       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9757       hardcode_libdir_flag_spec='-L$libdir'
9758       hardcode_shlibpath_var=no
9759       ;;
9760
9761     *)
9762       ld_shlibs=no
9763       ;;
9764     esac
9765
9766     if test x$host_vendor = xsni; then
9767       case $host in
9768       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9769         export_dynamic_flag_spec='${wl}-Blargedynsym'
9770         ;;
9771       esac
9772     fi
9773   fi
9774
9775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9776 $as_echo "$ld_shlibs" >&6; }
9777 test "$ld_shlibs" = no && can_build_shared=no
9778
9779 with_gnu_ld=$with_gnu_ld
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795 #
9796 # Do we need to explicitly link libc?
9797 #
9798 case "x$archive_cmds_need_lc" in
9799 x|xyes)
9800   # Assume -lc should be added
9801   archive_cmds_need_lc=yes
9802
9803   if test "$enable_shared" = yes && test "$GCC" = yes; then
9804     case $archive_cmds in
9805     *'~'*)
9806       # FIXME: we may have to deal with multi-command sequences.
9807       ;;
9808     '$CC '*)
9809       # Test whether the compiler implicitly links with -lc since on some
9810       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9811       # to ld, don't add -lc before -lgcc.
9812       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9813 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9814 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9815   $as_echo_n "(cached) " >&6
9816 else
9817   $RM conftest*
9818         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9819
9820         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9821   (eval $ac_compile) 2>&5
9822   ac_status=$?
9823   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9824   test $ac_status = 0; } 2>conftest.err; then
9825           soname=conftest
9826           lib=conftest
9827           libobjs=conftest.$ac_objext
9828           deplibs=
9829           wl=$lt_prog_compiler_wl
9830           pic_flag=$lt_prog_compiler_pic
9831           compiler_flags=-v
9832           linker_flags=-v
9833           verstring=
9834           output_objdir=.
9835           libname=conftest
9836           lt_save_allow_undefined_flag=$allow_undefined_flag
9837           allow_undefined_flag=
9838           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9839   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9840   ac_status=$?
9841   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9842   test $ac_status = 0; }
9843           then
9844             lt_cv_archive_cmds_need_lc=no
9845           else
9846             lt_cv_archive_cmds_need_lc=yes
9847           fi
9848           allow_undefined_flag=$lt_save_allow_undefined_flag
9849         else
9850           cat conftest.err 1>&5
9851         fi
9852         $RM conftest*
9853
9854 fi
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9856 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9857       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9858       ;;
9859     esac
9860   fi
9861   ;;
9862 esac
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10016 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10017
10018 if test "$GCC" = yes; then
10019   case $host_os in
10020     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10021     *) lt_awk_arg="/^libraries:/" ;;
10022   esac
10023   case $host_os in
10024     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10025     *) lt_sed_strip_eq="s,=/,/,g" ;;
10026   esac
10027   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10028   case $lt_search_path_spec in
10029   *\;*)
10030     # if the path contains ";" then we assume it to be the separator
10031     # otherwise default to the standard path separator (i.e. ":") - it is
10032     # assumed that no part of a normal pathname contains ";" but that should
10033     # okay in the real world where ";" in dirpaths is itself problematic.
10034     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10035     ;;
10036   *)
10037     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10038     ;;
10039   esac
10040   # Ok, now we have the path, separated by spaces, we can step through it
10041   # and add multilib dir if necessary...
10042   lt_tmp_lt_search_path_spec=
10043   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10044   # ...but if some path already ends with the multilib dir we assume
10045   # that all is fine and trust -print-search-dirs as is (GCC 4.2 or newer).
10046   case "$lt_multi_os_dir; $lt_search_path_spec " in
10047   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10048     lt_multi_os_dir=
10049     ;;
10050   esac
10051   for lt_sys_path in $lt_search_path_spec; do
10052     if test -d "$lt_sys_path$lt_multi_os_dir"; then
10053       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10054     elif test -n "$lt_multi_os_dir"; then
10055       test -d "$lt_sys_path" && \
10056         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10057     fi
10058   done
10059   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10060 BEGIN {RS=" "; FS="/|\n";} {
10061   lt_foo="";
10062   lt_count=0;
10063   for (lt_i = NF; lt_i > 0; lt_i--) {
10064     if ($lt_i != "" && $lt_i != ".") {
10065       if ($lt_i == "..") {
10066         lt_count++;
10067       } else {
10068         if (lt_count == 0) {
10069           lt_foo="/" $lt_i lt_foo;
10070         } else {
10071           lt_count--;
10072         }
10073       }
10074     }
10075   }
10076   if (lt_foo != "") { lt_freq[lt_foo]++; }
10077   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10078 }'`
10079   # AWK program above erroneously prepends '/' to C:/dos/paths
10080   # for these hosts.
10081   case $host_os in
10082     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10083       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10084   esac
10085   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10086 else
10087   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10088 fi
10089 library_names_spec=
10090 libname_spec='lib$name'
10091 soname_spec=
10092 shrext_cmds=".so"
10093 postinstall_cmds=
10094 postuninstall_cmds=
10095 finish_cmds=
10096 finish_eval=
10097 shlibpath_var=
10098 shlibpath_overrides_runpath=unknown
10099 version_type=none
10100 dynamic_linker="$host_os ld.so"
10101 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10102 need_lib_prefix=unknown
10103 hardcode_into_libs=no
10104
10105 # when you set need_version to no, make sure it does not cause -set_version
10106 # flags to be left without arguments
10107 need_version=unknown
10108
10109 case $host_os in
10110 aix3*)
10111   version_type=linux # correct to gnu/linux during the next big refactor
10112   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10113   shlibpath_var=LIBPATH
10114
10115   # AIX 3 has no versioning support, so we append a major version to the name.
10116   soname_spec='${libname}${release}${shared_ext}$major'
10117   ;;
10118
10119 aix[4-9]*)
10120   version_type=linux # correct to gnu/linux during the next big refactor
10121   need_lib_prefix=no
10122   need_version=no
10123   hardcode_into_libs=yes
10124   if test "$host_cpu" = ia64; then
10125     # AIX 5 supports IA64
10126     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10127     shlibpath_var=LD_LIBRARY_PATH
10128   else
10129     # With GCC up to 2.95.x, collect2 would create an import file
10130     # for dependence libraries.  The import file would start with
10131     # the line `#! .'.  This would cause the generated library to
10132     # depend on `.', always an invalid library.  This was fixed in
10133     # development snapshots of GCC prior to 3.0.
10134     case $host_os in
10135       aix4 | aix4.[01] | aix4.[01].*)
10136       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10137            echo ' yes '
10138            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10139         :
10140       else
10141         can_build_shared=no
10142       fi
10143       ;;
10144     esac
10145     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10146     # soname into executable. Probably we can add versioning support to
10147     # collect2, so additional links can be useful in future.
10148     if test "$aix_use_runtimelinking" = yes; then
10149       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10150       # instead of lib<name>.a to let people know that these are not
10151       # typical AIX shared libraries.
10152       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10153     else
10154       # We preserve .a as extension for shared libraries through AIX4.2
10155       # and later when we are not doing run time linking.
10156       library_names_spec='${libname}${release}.a $libname.a'
10157       soname_spec='${libname}${release}${shared_ext}$major'
10158     fi
10159     shlibpath_var=LIBPATH
10160   fi
10161   ;;
10162
10163 amigaos*)
10164   case $host_cpu in
10165   powerpc)
10166     # Since July 2007 AmigaOS4 officially supports .so libraries.
10167     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10168     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10169     ;;
10170   m68k)
10171     library_names_spec='$libname.ixlibrary $libname.a'
10172     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10173     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'
10174     ;;
10175   esac
10176   ;;
10177
10178 beos*)
10179   library_names_spec='${libname}${shared_ext}'
10180   dynamic_linker="$host_os ld.so"
10181   shlibpath_var=LIBRARY_PATH
10182   ;;
10183
10184 bsdi[45]*)
10185   version_type=linux # correct to gnu/linux during the next big refactor
10186   need_version=no
10187   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10188   soname_spec='${libname}${release}${shared_ext}$major'
10189   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10190   shlibpath_var=LD_LIBRARY_PATH
10191   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10192   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10193   # the default ld.so.conf also contains /usr/contrib/lib and
10194   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10195   # libtool to hard-code these into programs
10196   ;;
10197
10198 cygwin* | mingw* | pw32* | cegcc*)
10199   version_type=windows
10200   shrext_cmds=".dll"
10201   need_version=no
10202   need_lib_prefix=no
10203
10204   case $GCC,$cc_basename in
10205   yes,*)
10206     # gcc
10207     library_names_spec='$libname.dll.a'
10208     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10209     postinstall_cmds='base_file=`basename \${file}`~
10210       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10211       dldir=$destdir/`dirname \$dlpath`~
10212       test -d \$dldir || mkdir -p \$dldir~
10213       $install_prog $dir/$dlname \$dldir/$dlname~
10214       chmod a+x \$dldir/$dlname~
10215       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10216         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10217       fi'
10218     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10219       dlpath=$dir/\$dldll~
10220        $RM \$dlpath'
10221     shlibpath_overrides_runpath=yes
10222
10223     case $host_os in
10224     cygwin*)
10225       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10226       #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
10227       soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
10228
10229       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10230       ;;
10231     mingw* | cegcc*)
10232       # MinGW DLLs use traditional 'lib' prefix
10233       #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
10234       soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
10235       ;;
10236     pw32*)
10237       # pw32 DLLs use 'pw' prefix rather than 'lib'
10238       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10239       ;;
10240     esac
10241     dynamic_linker='Win32 ld.exe'
10242     ;;
10243
10244   *,cl*)
10245     # Native MSVC
10246     libname_spec='$name'
10247     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10248     library_names_spec='${libname}.dll.lib'
10249
10250     case $build_os in
10251     mingw*)
10252       sys_lib_search_path_spec=
10253       lt_save_ifs=$IFS
10254       IFS=';'
10255       for lt_path in $LIB
10256       do
10257         IFS=$lt_save_ifs
10258         # Let DOS variable expansion print the short 8.3 style file name.
10259         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10260         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10261       done
10262       IFS=$lt_save_ifs
10263       # Convert to MSYS style.
10264       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10265       ;;
10266     cygwin*)
10267       # Convert to unix form, then to dos form, then back to unix form
10268       # but this time dos style (no spaces!) so that the unix form looks
10269       # like /cygdrive/c/PROGRA~1:/cygdr...
10270       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10271       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10272       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10273       ;;
10274     *)
10275       sys_lib_search_path_spec="$LIB"
10276       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10277         # It is most probably a Windows format PATH.
10278         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10279       else
10280         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10281       fi
10282       # FIXME: find the short name or the path components, as spaces are
10283       # common. (e.g. "Program Files" -> "PROGRA~1")
10284       ;;
10285     esac
10286
10287     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10288     postinstall_cmds='base_file=`basename \${file}`~
10289       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10290       dldir=$destdir/`dirname \$dlpath`~
10291       test -d \$dldir || mkdir -p \$dldir~
10292       $install_prog $dir/$dlname \$dldir/$dlname'
10293     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10294       dlpath=$dir/\$dldll~
10295        $RM \$dlpath'
10296     shlibpath_overrides_runpath=yes
10297     dynamic_linker='Win32 link.exe'
10298     ;;
10299
10300   *)
10301     # Assume MSVC wrapper
10302     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10303     dynamic_linker='Win32 ld.exe'
10304     ;;
10305   esac
10306   # FIXME: first we should search . and the directory the executable is in
10307   shlibpath_var=PATH
10308   ;;
10309
10310 darwin* | rhapsody*)
10311   dynamic_linker="$host_os dyld"
10312   version_type=darwin
10313   need_lib_prefix=no
10314   need_version=no
10315   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10316   soname_spec='${libname}${release}${major}$shared_ext'
10317   shlibpath_overrides_runpath=yes
10318   shlibpath_var=DYLD_LIBRARY_PATH
10319   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10320
10321   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10322   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10323   ;;
10324
10325 dgux*)
10326   version_type=linux # correct to gnu/linux during the next big refactor
10327   need_lib_prefix=no
10328   need_version=no
10329   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10330   soname_spec='${libname}${release}${shared_ext}$major'
10331   shlibpath_var=LD_LIBRARY_PATH
10332   ;;
10333
10334 freebsd* | dragonfly*)
10335   # DragonFly does not have aout.  When/if they implement a new
10336   # versioning mechanism, adjust this.
10337   if test -x /usr/bin/objformat; then
10338     objformat=`/usr/bin/objformat`
10339   else
10340     case $host_os in
10341     freebsd[23].*) objformat=aout ;;
10342     *) objformat=elf ;;
10343     esac
10344   fi
10345   version_type=freebsd-$objformat
10346   case $version_type in
10347     freebsd-elf*)
10348       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10349       need_version=no
10350       need_lib_prefix=no
10351       ;;
10352     freebsd-*)
10353       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10354       need_version=yes
10355       ;;
10356   esac
10357   shlibpath_var=LD_LIBRARY_PATH
10358   case $host_os in
10359   freebsd2.*)
10360     shlibpath_overrides_runpath=yes
10361     ;;
10362   freebsd3.[01]* | freebsdelf3.[01]*)
10363     shlibpath_overrides_runpath=yes
10364     hardcode_into_libs=yes
10365     ;;
10366   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10367   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10368     shlibpath_overrides_runpath=no
10369     hardcode_into_libs=yes
10370     ;;
10371   *) # from 4.6 on, and DragonFly
10372     shlibpath_overrides_runpath=yes
10373     hardcode_into_libs=yes
10374     ;;
10375   esac
10376   ;;
10377
10378 gnu*)
10379   version_type=linux # correct to gnu/linux during the next big refactor
10380   need_lib_prefix=no
10381   need_version=no
10382   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10383   soname_spec='${libname}${release}${shared_ext}$major'
10384   shlibpath_var=LD_LIBRARY_PATH
10385   shlibpath_overrides_runpath=no
10386   hardcode_into_libs=yes
10387   ;;
10388
10389 haiku*)
10390   version_type=linux # correct to gnu/linux during the next big refactor
10391   need_lib_prefix=no
10392   need_version=no
10393   dynamic_linker="$host_os runtime_loader"
10394   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10395   soname_spec='${libname}${release}${shared_ext}$major'
10396   shlibpath_var=LIBRARY_PATH
10397   shlibpath_overrides_runpath=yes
10398   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10399   hardcode_into_libs=yes
10400   ;;
10401
10402 hpux9* | hpux10* | hpux11*)
10403   # Give a soname corresponding to the major version so that dld.sl refuses to
10404   # link against other versions.
10405   version_type=sunos
10406   need_lib_prefix=no
10407   need_version=no
10408   case $host_cpu in
10409   ia64*)
10410     shrext_cmds='.so'
10411     hardcode_into_libs=yes
10412     dynamic_linker="$host_os dld.so"
10413     shlibpath_var=LD_LIBRARY_PATH
10414     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10415     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10416     soname_spec='${libname}${release}${shared_ext}$major'
10417     if test "X$HPUX_IA64_MODE" = X32; then
10418       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10419     else
10420       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10421     fi
10422     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10423     ;;
10424   hppa*64*)
10425     shrext_cmds='.sl'
10426     hardcode_into_libs=yes
10427     dynamic_linker="$host_os dld.sl"
10428     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10429     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10430     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10431     soname_spec='${libname}${release}${shared_ext}$major'
10432     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10433     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10434     ;;
10435   *)
10436     shrext_cmds='.sl'
10437     dynamic_linker="$host_os dld.sl"
10438     shlibpath_var=SHLIB_PATH
10439     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10440     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10441     soname_spec='${libname}${release}${shared_ext}$major'
10442     ;;
10443   esac
10444   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10445   postinstall_cmds='chmod 555 $lib'
10446   # or fails outright, so override atomically:
10447   install_override_mode=555
10448   ;;
10449
10450 interix[3-9]*)
10451   version_type=linux # correct to gnu/linux during the next big refactor
10452   need_lib_prefix=no
10453   need_version=no
10454   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10455   soname_spec='${libname}${release}${shared_ext}$major'
10456   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10457   shlibpath_var=LD_LIBRARY_PATH
10458   shlibpath_overrides_runpath=no
10459   hardcode_into_libs=yes
10460   ;;
10461
10462 irix5* | irix6* | nonstopux*)
10463   case $host_os in
10464     nonstopux*) version_type=nonstopux ;;
10465     *)
10466         if test "$lt_cv_prog_gnu_ld" = yes; then
10467                 version_type=linux # correct to gnu/linux during the next big refactor
10468         else
10469                 version_type=irix
10470         fi ;;
10471   esac
10472   need_lib_prefix=no
10473   need_version=no
10474   soname_spec='${libname}${release}${shared_ext}$major'
10475   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10476   case $host_os in
10477   irix5* | nonstopux*)
10478     libsuff= shlibsuff=
10479     ;;
10480   *)
10481     case $LD in # libtool.m4 will add one of these switches to LD
10482     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10483       libsuff= shlibsuff= libmagic=32-bit;;
10484     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10485       libsuff=32 shlibsuff=N32 libmagic=N32;;
10486     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10487       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10488     *) libsuff= shlibsuff= libmagic=never-match;;
10489     esac
10490     ;;
10491   esac
10492   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10493   shlibpath_overrides_runpath=no
10494   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10495   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10496   hardcode_into_libs=yes
10497   ;;
10498
10499 # No shared lib support for Linux oldld, aout, or coff.
10500 linux*oldld* | linux*aout* | linux*coff*)
10501   dynamic_linker=no
10502   ;;
10503
10504 # This must be glibc/ELF.
10505 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10506   version_type=linux # correct to gnu/linux during the next big refactor
10507   need_lib_prefix=no
10508   need_version=no
10509   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10510   soname_spec='${libname}${release}${shared_ext}$major'
10511   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10512   shlibpath_var=LD_LIBRARY_PATH
10513   shlibpath_overrides_runpath=no
10514
10515   # Some binutils ld are patched to set DT_RUNPATH
10516   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10517   $as_echo_n "(cached) " >&6
10518 else
10519   lt_cv_shlibpath_overrides_runpath=no
10520     save_LDFLAGS=$LDFLAGS
10521     save_libdir=$libdir
10522     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10523          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10524     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10525 /* end confdefs.h.  */
10526
10527 int
10528 main ()
10529 {
10530
10531   ;
10532   return 0;
10533 }
10534 _ACEOF
10535 if ac_fn_c_try_link "$LINENO"; then :
10536   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10537   lt_cv_shlibpath_overrides_runpath=yes
10538 fi
10539 fi
10540 rm -f core conftest.err conftest.$ac_objext \
10541     conftest$ac_exeext conftest.$ac_ext
10542     LDFLAGS=$save_LDFLAGS
10543     libdir=$save_libdir
10544
10545 fi
10546
10547   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10548
10549   # This implies no fast_install, which is unacceptable.
10550   # Some rework will be needed to allow for fast_install
10551   # before this can be enabled.
10552   hardcode_into_libs=yes
10553
10554   # Append ld.so.conf contents to the search path
10555   if test -f /etc/ld.so.conf; then
10556     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' ' '`
10557     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10558   fi
10559
10560   # We used to test for /lib/ld.so.1 and disable shared libraries on
10561   # powerpc, because MkLinux only supported shared libraries with the
10562   # GNU dynamic linker.  Since this was broken with cross compilers,
10563   # most powerpc-linux boxes support dynamic linking these days and
10564   # people can always --disable-shared, the test was removed, and we
10565   # assume the GNU/Linux dynamic linker is in use.
10566   dynamic_linker='GNU/Linux ld.so'
10567   ;;
10568
10569 netbsd*)
10570   version_type=sunos
10571   need_lib_prefix=no
10572   need_version=no
10573   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10574     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10575     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10576     dynamic_linker='NetBSD (a.out) ld.so'
10577   else
10578     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10579     soname_spec='${libname}${release}${shared_ext}$major'
10580     dynamic_linker='NetBSD ld.elf_so'
10581   fi
10582   shlibpath_var=LD_LIBRARY_PATH
10583   shlibpath_overrides_runpath=yes
10584   hardcode_into_libs=yes
10585   ;;
10586
10587 newsos6)
10588   version_type=linux # correct to gnu/linux during the next big refactor
10589   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10590   shlibpath_var=LD_LIBRARY_PATH
10591   shlibpath_overrides_runpath=yes
10592   ;;
10593
10594 *nto* | *qnx*)
10595   version_type=qnx
10596   need_lib_prefix=no
10597   need_version=no
10598   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10599   soname_spec='${libname}${release}${shared_ext}$major'
10600   shlibpath_var=LD_LIBRARY_PATH
10601   shlibpath_overrides_runpath=no
10602   hardcode_into_libs=yes
10603   dynamic_linker='ldqnx.so'
10604   ;;
10605
10606 openbsd*)
10607   version_type=sunos
10608   sys_lib_dlsearch_path_spec="/usr/lib"
10609   need_lib_prefix=no
10610   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10611   case $host_os in
10612     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10613     *)                          need_version=no  ;;
10614   esac
10615   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10616   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10617   shlibpath_var=LD_LIBRARY_PATH
10618   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10619     case $host_os in
10620       openbsd2.[89] | openbsd2.[89].*)
10621         shlibpath_overrides_runpath=no
10622         ;;
10623       *)
10624         shlibpath_overrides_runpath=yes
10625         ;;
10626       esac
10627   else
10628     shlibpath_overrides_runpath=yes
10629   fi
10630   ;;
10631
10632 os2*)
10633   libname_spec='$name'
10634   shrext_cmds=".dll"
10635   need_lib_prefix=no
10636   library_names_spec='$libname${shared_ext} $libname.a'
10637   dynamic_linker='OS/2 ld.exe'
10638   shlibpath_var=LIBPATH
10639   ;;
10640
10641 osf3* | osf4* | osf5*)
10642   version_type=osf
10643   need_lib_prefix=no
10644   need_version=no
10645   soname_spec='${libname}${release}${shared_ext}$major'
10646   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10647   shlibpath_var=LD_LIBRARY_PATH
10648   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10649   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10650   ;;
10651
10652 rdos*)
10653   dynamic_linker=no
10654   ;;
10655
10656 solaris*)
10657   version_type=linux # correct to gnu/linux during the next big refactor
10658   need_lib_prefix=no
10659   need_version=no
10660   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10661   soname_spec='${libname}${release}${shared_ext}$major'
10662   shlibpath_var=LD_LIBRARY_PATH
10663   shlibpath_overrides_runpath=yes
10664   hardcode_into_libs=yes
10665   # ldd complains unless libraries are executable
10666   postinstall_cmds='chmod +x $lib'
10667   ;;
10668
10669 sunos4*)
10670   version_type=sunos
10671   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10672   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10673   shlibpath_var=LD_LIBRARY_PATH
10674   shlibpath_overrides_runpath=yes
10675   if test "$with_gnu_ld" = yes; then
10676     need_lib_prefix=no
10677   fi
10678   need_version=yes
10679   ;;
10680
10681 sysv4 | sysv4.3*)
10682   version_type=linux # correct to gnu/linux during the next big refactor
10683   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10684   soname_spec='${libname}${release}${shared_ext}$major'
10685   shlibpath_var=LD_LIBRARY_PATH
10686   case $host_vendor in
10687     sni)
10688       shlibpath_overrides_runpath=no
10689       need_lib_prefix=no
10690       runpath_var=LD_RUN_PATH
10691       ;;
10692     siemens)
10693       need_lib_prefix=no
10694       ;;
10695     motorola)
10696       need_lib_prefix=no
10697       need_version=no
10698       shlibpath_overrides_runpath=no
10699       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10700       ;;
10701   esac
10702   ;;
10703
10704 sysv4*MP*)
10705   if test -d /usr/nec ;then
10706     version_type=linux # correct to gnu/linux during the next big refactor
10707     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10708     soname_spec='$libname${shared_ext}.$major'
10709     shlibpath_var=LD_LIBRARY_PATH
10710   fi
10711   ;;
10712
10713 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10714   version_type=freebsd-elf
10715   need_lib_prefix=no
10716   need_version=no
10717   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10718   soname_spec='${libname}${release}${shared_ext}$major'
10719   shlibpath_var=LD_LIBRARY_PATH
10720   shlibpath_overrides_runpath=yes
10721   hardcode_into_libs=yes
10722   if test "$with_gnu_ld" = yes; then
10723     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10724   else
10725     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10726     case $host_os in
10727       sco3.2v5*)
10728         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10729         ;;
10730     esac
10731   fi
10732   sys_lib_dlsearch_path_spec='/usr/lib'
10733   ;;
10734
10735 tpf*)
10736   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10737   version_type=linux # correct to gnu/linux during the next big refactor
10738   need_lib_prefix=no
10739   need_version=no
10740   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10741   shlibpath_var=LD_LIBRARY_PATH
10742   shlibpath_overrides_runpath=no
10743   hardcode_into_libs=yes
10744   ;;
10745
10746 uts4*)
10747   version_type=linux # correct to gnu/linux during the next big refactor
10748   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10749   soname_spec='${libname}${release}${shared_ext}$major'
10750   shlibpath_var=LD_LIBRARY_PATH
10751   ;;
10752
10753 *)
10754   dynamic_linker=no
10755   ;;
10756 esac
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10758 $as_echo "$dynamic_linker" >&6; }
10759 test "$dynamic_linker" = no && can_build_shared=no
10760
10761 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10762 if test "$GCC" = yes; then
10763   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10764 fi
10765
10766 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10767   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10768 fi
10769 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10770   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10771 fi
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10865 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10866 hardcode_action=
10867 if test -n "$hardcode_libdir_flag_spec" ||
10868    test -n "$runpath_var" ||
10869    test "X$hardcode_automatic" = "Xyes" ; then
10870
10871   # We can hardcode non-existent directories.
10872   if test "$hardcode_direct" != no &&
10873      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10874      # have to relink, otherwise we might link with an installed library
10875      # when we should be linking with a yet-to-be-installed one
10876      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10877      test "$hardcode_minus_L" != no; then
10878     # Linking always hardcodes the temporary library directory.
10879     hardcode_action=relink
10880   else
10881     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10882     hardcode_action=immediate
10883   fi
10884 else
10885   # We cannot hardcode anything, or else we can only hardcode existing
10886   # directories.
10887   hardcode_action=unsupported
10888 fi
10889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10890 $as_echo "$hardcode_action" >&6; }
10891
10892 if test "$hardcode_action" = relink ||
10893    test "$inherit_rpath" = yes; then
10894   # Fast installation is not supported
10895   enable_fast_install=no
10896 elif test "$shlibpath_overrides_runpath" = yes ||
10897      test "$enable_shared" = no; then
10898   # Fast installation is not necessary
10899   enable_fast_install=needless
10900 fi
10901
10902
10903
10904
10905
10906
10907   if test "x$enable_dlopen" != xyes; then
10908   enable_dlopen=unknown
10909   enable_dlopen_self=unknown
10910   enable_dlopen_self_static=unknown
10911 else
10912   lt_cv_dlopen=no
10913   lt_cv_dlopen_libs=
10914
10915   case $host_os in
10916   beos*)
10917     lt_cv_dlopen="load_add_on"
10918     lt_cv_dlopen_libs=
10919     lt_cv_dlopen_self=yes
10920     ;;
10921
10922   mingw* | pw32* | cegcc*)
10923     lt_cv_dlopen="LoadLibrary"
10924     lt_cv_dlopen_libs=
10925     ;;
10926
10927   cygwin*)
10928     lt_cv_dlopen="dlopen"
10929     lt_cv_dlopen_libs=
10930     ;;
10931
10932   darwin*)
10933   # if libdl is installed we need to link against it
10934     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10935 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10936 if ${ac_cv_lib_dl_dlopen+:} false; then :
10937   $as_echo_n "(cached) " >&6
10938 else
10939   ac_check_lib_save_LIBS=$LIBS
10940 LIBS="-ldl  $LIBS"
10941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10942 /* end confdefs.h.  */
10943
10944 /* Override any GCC internal prototype to avoid an error.
10945    Use char because int might match the return type of a GCC
10946    builtin and then its argument prototype would still apply.  */
10947 #ifdef __cplusplus
10948 extern "C"
10949 #endif
10950 char dlopen ();
10951 int
10952 main ()
10953 {
10954 return dlopen ();
10955   ;
10956   return 0;
10957 }
10958 _ACEOF
10959 if ac_fn_c_try_link "$LINENO"; then :
10960   ac_cv_lib_dl_dlopen=yes
10961 else
10962   ac_cv_lib_dl_dlopen=no
10963 fi
10964 rm -f core conftest.err conftest.$ac_objext \
10965     conftest$ac_exeext conftest.$ac_ext
10966 LIBS=$ac_check_lib_save_LIBS
10967 fi
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10969 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10970 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10971   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10972 else
10973
10974     lt_cv_dlopen="dyld"
10975     lt_cv_dlopen_libs=
10976     lt_cv_dlopen_self=yes
10977
10978 fi
10979
10980     ;;
10981
10982   *)
10983     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10984 if test "x$ac_cv_func_shl_load" = xyes; then :
10985   lt_cv_dlopen="shl_load"
10986 else
10987   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10988 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10989 if ${ac_cv_lib_dld_shl_load+:} false; then :
10990   $as_echo_n "(cached) " >&6
10991 else
10992   ac_check_lib_save_LIBS=$LIBS
10993 LIBS="-ldld  $LIBS"
10994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10995 /* end confdefs.h.  */
10996
10997 /* Override any GCC internal prototype to avoid an error.
10998    Use char because int might match the return type of a GCC
10999    builtin and then its argument prototype would still apply.  */
11000 #ifdef __cplusplus
11001 extern "C"
11002 #endif
11003 char shl_load ();
11004 int
11005 main ()
11006 {
11007 return shl_load ();
11008   ;
11009   return 0;
11010 }
11011 _ACEOF
11012 if ac_fn_c_try_link "$LINENO"; then :
11013   ac_cv_lib_dld_shl_load=yes
11014 else
11015   ac_cv_lib_dld_shl_load=no
11016 fi
11017 rm -f core conftest.err conftest.$ac_objext \
11018     conftest$ac_exeext conftest.$ac_ext
11019 LIBS=$ac_check_lib_save_LIBS
11020 fi
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11022 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11023 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11024   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11025 else
11026   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11027 if test "x$ac_cv_func_dlopen" = xyes; then :
11028   lt_cv_dlopen="dlopen"
11029 else
11030   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11031 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11032 if ${ac_cv_lib_dl_dlopen+:} false; then :
11033   $as_echo_n "(cached) " >&6
11034 else
11035   ac_check_lib_save_LIBS=$LIBS
11036 LIBS="-ldl  $LIBS"
11037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11038 /* end confdefs.h.  */
11039
11040 /* Override any GCC internal prototype to avoid an error.
11041    Use char because int might match the return type of a GCC
11042    builtin and then its argument prototype would still apply.  */
11043 #ifdef __cplusplus
11044 extern "C"
11045 #endif
11046 char dlopen ();
11047 int
11048 main ()
11049 {
11050 return dlopen ();
11051   ;
11052   return 0;
11053 }
11054 _ACEOF
11055 if ac_fn_c_try_link "$LINENO"; then :
11056   ac_cv_lib_dl_dlopen=yes
11057 else
11058   ac_cv_lib_dl_dlopen=no
11059 fi
11060 rm -f core conftest.err conftest.$ac_objext \
11061     conftest$ac_exeext conftest.$ac_ext
11062 LIBS=$ac_check_lib_save_LIBS
11063 fi
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11065 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11066 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11067   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11068 else
11069   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11070 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11071 if ${ac_cv_lib_svld_dlopen+:} false; then :
11072   $as_echo_n "(cached) " >&6
11073 else
11074   ac_check_lib_save_LIBS=$LIBS
11075 LIBS="-lsvld  $LIBS"
11076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11077 /* end confdefs.h.  */
11078
11079 /* Override any GCC internal prototype to avoid an error.
11080    Use char because int might match the return type of a GCC
11081    builtin and then its argument prototype would still apply.  */
11082 #ifdef __cplusplus
11083 extern "C"
11084 #endif
11085 char dlopen ();
11086 int
11087 main ()
11088 {
11089 return dlopen ();
11090   ;
11091   return 0;
11092 }
11093 _ACEOF
11094 if ac_fn_c_try_link "$LINENO"; then :
11095   ac_cv_lib_svld_dlopen=yes
11096 else
11097   ac_cv_lib_svld_dlopen=no
11098 fi
11099 rm -f core conftest.err conftest.$ac_objext \
11100     conftest$ac_exeext conftest.$ac_ext
11101 LIBS=$ac_check_lib_save_LIBS
11102 fi
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11104 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11105 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11106   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11107 else
11108   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11109 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11110 if ${ac_cv_lib_dld_dld_link+:} false; then :
11111   $as_echo_n "(cached) " >&6
11112 else
11113   ac_check_lib_save_LIBS=$LIBS
11114 LIBS="-ldld  $LIBS"
11115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11116 /* end confdefs.h.  */
11117
11118 /* Override any GCC internal prototype to avoid an error.
11119    Use char because int might match the return type of a GCC
11120    builtin and then its argument prototype would still apply.  */
11121 #ifdef __cplusplus
11122 extern "C"
11123 #endif
11124 char dld_link ();
11125 int
11126 main ()
11127 {
11128 return dld_link ();
11129   ;
11130   return 0;
11131 }
11132 _ACEOF
11133 if ac_fn_c_try_link "$LINENO"; then :
11134   ac_cv_lib_dld_dld_link=yes
11135 else
11136   ac_cv_lib_dld_dld_link=no
11137 fi
11138 rm -f core conftest.err conftest.$ac_objext \
11139     conftest$ac_exeext conftest.$ac_ext
11140 LIBS=$ac_check_lib_save_LIBS
11141 fi
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11143 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11144 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11145   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11146 fi
11147
11148
11149 fi
11150
11151
11152 fi
11153
11154
11155 fi
11156
11157
11158 fi
11159
11160
11161 fi
11162
11163     ;;
11164   esac
11165
11166   if test "x$lt_cv_dlopen" != xno; then
11167     enable_dlopen=yes
11168   else
11169     enable_dlopen=no
11170   fi
11171
11172   case $lt_cv_dlopen in
11173   dlopen)
11174     save_CPPFLAGS="$CPPFLAGS"
11175     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11176
11177     save_LDFLAGS="$LDFLAGS"
11178     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11179
11180     save_LIBS="$LIBS"
11181     LIBS="$lt_cv_dlopen_libs $LIBS"
11182
11183     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11184 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11185 if ${lt_cv_dlopen_self+:} false; then :
11186   $as_echo_n "(cached) " >&6
11187 else
11188           if test "$cross_compiling" = yes; then :
11189   lt_cv_dlopen_self=cross
11190 else
11191   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11192   lt_status=$lt_dlunknown
11193   cat > conftest.$ac_ext <<_LT_EOF
11194 #line $LINENO "configure"
11195 #include "confdefs.h"
11196
11197 #if HAVE_DLFCN_H
11198 #include <dlfcn.h>
11199 #endif
11200
11201 #include <stdio.h>
11202
11203 #ifdef RTLD_GLOBAL
11204 #  define LT_DLGLOBAL           RTLD_GLOBAL
11205 #else
11206 #  ifdef DL_GLOBAL
11207 #    define LT_DLGLOBAL         DL_GLOBAL
11208 #  else
11209 #    define LT_DLGLOBAL         0
11210 #  endif
11211 #endif
11212
11213 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11214    find out it does not work in some platform. */
11215 #ifndef LT_DLLAZY_OR_NOW
11216 #  ifdef RTLD_LAZY
11217 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11218 #  else
11219 #    ifdef DL_LAZY
11220 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11221 #    else
11222 #      ifdef RTLD_NOW
11223 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11224 #      else
11225 #        ifdef DL_NOW
11226 #          define LT_DLLAZY_OR_NOW      DL_NOW
11227 #        else
11228 #          define LT_DLLAZY_OR_NOW      0
11229 #        endif
11230 #      endif
11231 #    endif
11232 #  endif
11233 #endif
11234
11235 /* When -fvisbility=hidden is used, assume the code has been annotated
11236    correspondingly for the symbols needed.  */
11237 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11238 int fnord () __attribute__((visibility("default")));
11239 #endif
11240
11241 int fnord () { return 42; }
11242 int main ()
11243 {
11244   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11245   int status = $lt_dlunknown;
11246
11247   if (self)
11248     {
11249       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11250       else
11251         {
11252           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11253           else puts (dlerror ());
11254         }
11255       /* dlclose (self); */
11256     }
11257   else
11258     puts (dlerror ());
11259
11260   return status;
11261 }
11262 _LT_EOF
11263   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11264   (eval $ac_link) 2>&5
11265   ac_status=$?
11266   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11267   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11268     (./conftest; exit; ) >&5 2>/dev/null
11269     lt_status=$?
11270     case x$lt_status in
11271       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11272       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11273       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11274     esac
11275   else :
11276     # compilation failed
11277     lt_cv_dlopen_self=no
11278   fi
11279 fi
11280 rm -fr conftest*
11281
11282
11283 fi
11284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11285 $as_echo "$lt_cv_dlopen_self" >&6; }
11286
11287     if test "x$lt_cv_dlopen_self" = xyes; then
11288       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11289       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11290 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11291 if ${lt_cv_dlopen_self_static+:} false; then :
11292   $as_echo_n "(cached) " >&6
11293 else
11294           if test "$cross_compiling" = yes; then :
11295   lt_cv_dlopen_self_static=cross
11296 else
11297   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11298   lt_status=$lt_dlunknown
11299   cat > conftest.$ac_ext <<_LT_EOF
11300 #line $LINENO "configure"
11301 #include "confdefs.h"
11302
11303 #if HAVE_DLFCN_H
11304 #include <dlfcn.h>
11305 #endif
11306
11307 #include <stdio.h>
11308
11309 #ifdef RTLD_GLOBAL
11310 #  define LT_DLGLOBAL           RTLD_GLOBAL
11311 #else
11312 #  ifdef DL_GLOBAL
11313 #    define LT_DLGLOBAL         DL_GLOBAL
11314 #  else
11315 #    define LT_DLGLOBAL         0
11316 #  endif
11317 #endif
11318
11319 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11320    find out it does not work in some platform. */
11321 #ifndef LT_DLLAZY_OR_NOW
11322 #  ifdef RTLD_LAZY
11323 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11324 #  else
11325 #    ifdef DL_LAZY
11326 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11327 #    else
11328 #      ifdef RTLD_NOW
11329 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11330 #      else
11331 #        ifdef DL_NOW
11332 #          define LT_DLLAZY_OR_NOW      DL_NOW
11333 #        else
11334 #          define LT_DLLAZY_OR_NOW      0
11335 #        endif
11336 #      endif
11337 #    endif
11338 #  endif
11339 #endif
11340
11341 /* When -fvisbility=hidden is used, assume the code has been annotated
11342    correspondingly for the symbols needed.  */
11343 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11344 int fnord () __attribute__((visibility("default")));
11345 #endif
11346
11347 int fnord () { return 42; }
11348 int main ()
11349 {
11350   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11351   int status = $lt_dlunknown;
11352
11353   if (self)
11354     {
11355       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11356       else
11357         {
11358           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11359           else puts (dlerror ());
11360         }
11361       /* dlclose (self); */
11362     }
11363   else
11364     puts (dlerror ());
11365
11366   return status;
11367 }
11368 _LT_EOF
11369   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11370   (eval $ac_link) 2>&5
11371   ac_status=$?
11372   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11373   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11374     (./conftest; exit; ) >&5 2>/dev/null
11375     lt_status=$?
11376     case x$lt_status in
11377       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11378       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11379       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11380     esac
11381   else :
11382     # compilation failed
11383     lt_cv_dlopen_self_static=no
11384   fi
11385 fi
11386 rm -fr conftest*
11387
11388
11389 fi
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11391 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11392     fi
11393
11394     CPPFLAGS="$save_CPPFLAGS"
11395     LDFLAGS="$save_LDFLAGS"
11396     LIBS="$save_LIBS"
11397     ;;
11398   esac
11399
11400   case $lt_cv_dlopen_self in
11401   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11402   *) enable_dlopen_self=unknown ;;
11403   esac
11404
11405   case $lt_cv_dlopen_self_static in
11406   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11407   *) enable_dlopen_self_static=unknown ;;
11408   esac
11409 fi
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427 striplib=
11428 old_striplib=
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11430 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11431 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11432   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11433   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11435 $as_echo "yes" >&6; }
11436 else
11437 # FIXME - insert some real tests, host_os isn't really good enough
11438   case $host_os in
11439   darwin*)
11440     if test -n "$STRIP" ; then
11441       striplib="$STRIP -x"
11442       old_striplib="$STRIP -S"
11443       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11444 $as_echo "yes" >&6; }
11445     else
11446       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11447 $as_echo "no" >&6; }
11448     fi
11449     ;;
11450   *)
11451     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11452 $as_echo "no" >&6; }
11453     ;;
11454   esac
11455 fi
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468   # Report which library types will actually be built
11469   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11470 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11472 $as_echo "$can_build_shared" >&6; }
11473
11474   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11475 $as_echo_n "checking whether to build shared libraries... " >&6; }
11476   test "$can_build_shared" = "no" && enable_shared=no
11477
11478   # On AIX, shared libraries and static libraries use the same namespace, and
11479   # are all built from PIC.
11480   case $host_os in
11481   aix3*)
11482     test "$enable_shared" = yes && enable_static=no
11483     if test -n "$RANLIB"; then
11484       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11485       postinstall_cmds='$RANLIB $lib'
11486     fi
11487     ;;
11488
11489   aix[4-9]*)
11490     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11491       test "$enable_shared" = yes && enable_static=no
11492     fi
11493     ;;
11494   esac
11495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11496 $as_echo "$enable_shared" >&6; }
11497
11498   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11499 $as_echo_n "checking whether to build static libraries... " >&6; }
11500   # Make sure either enable_shared or enable_static is yes.
11501   test "$enable_shared" = yes || enable_static=yes
11502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11503 $as_echo "$enable_static" >&6; }
11504
11505
11506
11507
11508 fi
11509 ac_ext=c
11510 ac_cpp='$CPP $CPPFLAGS'
11511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11514
11515 CC="$lt_save_CC"
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531         ac_config_commands="$ac_config_commands libtool"
11532
11533
11534
11535
11536 # Only expand once:
11537
11538
11539 if test -n "$ac_tool_prefix"; then
11540   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
11541 set dummy ${ac_tool_prefix}windres; ac_word=$2
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11543 $as_echo_n "checking for $ac_word... " >&6; }
11544 if ${ac_cv_prog_RC+:} false; then :
11545   $as_echo_n "(cached) " >&6
11546 else
11547   if test -n "$RC"; then
11548   ac_cv_prog_RC="$RC" # Let the user override the test.
11549 else
11550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11551 for as_dir in $PATH
11552 do
11553   IFS=$as_save_IFS
11554   test -z "$as_dir" && as_dir=.
11555     for ac_exec_ext in '' $ac_executable_extensions; do
11556   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11557     ac_cv_prog_RC="${ac_tool_prefix}windres"
11558     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11559     break 2
11560   fi
11561 done
11562   done
11563 IFS=$as_save_IFS
11564
11565 fi
11566 fi
11567 RC=$ac_cv_prog_RC
11568 if test -n "$RC"; then
11569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
11570 $as_echo "$RC" >&6; }
11571 else
11572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11573 $as_echo "no" >&6; }
11574 fi
11575
11576
11577 fi
11578 if test -z "$ac_cv_prog_RC"; then
11579   ac_ct_RC=$RC
11580   # Extract the first word of "windres", so it can be a program name with args.
11581 set dummy windres; ac_word=$2
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11583 $as_echo_n "checking for $ac_word... " >&6; }
11584 if ${ac_cv_prog_ac_ct_RC+:} false; then :
11585   $as_echo_n "(cached) " >&6
11586 else
11587   if test -n "$ac_ct_RC"; then
11588   ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
11589 else
11590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11591 for as_dir in $PATH
11592 do
11593   IFS=$as_save_IFS
11594   test -z "$as_dir" && as_dir=.
11595     for ac_exec_ext in '' $ac_executable_extensions; do
11596   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11597     ac_cv_prog_ac_ct_RC="windres"
11598     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11599     break 2
11600   fi
11601 done
11602   done
11603 IFS=$as_save_IFS
11604
11605 fi
11606 fi
11607 ac_ct_RC=$ac_cv_prog_ac_ct_RC
11608 if test -n "$ac_ct_RC"; then
11609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
11610 $as_echo "$ac_ct_RC" >&6; }
11611 else
11612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11613 $as_echo "no" >&6; }
11614 fi
11615
11616   if test "x$ac_ct_RC" = x; then
11617     RC=""
11618   else
11619     case $cross_compiling:$ac_tool_warned in
11620 yes:)
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11622 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11623 ac_tool_warned=yes ;;
11624 esac
11625     RC=$ac_ct_RC
11626   fi
11627 else
11628   RC="$ac_cv_prog_RC"
11629 fi
11630
11631
11632
11633
11634 # Source file extension for RC test sources.
11635 ac_ext=rc
11636
11637 # Object file extension for compiled RC test sources.
11638 objext=o
11639 objext_RC=$objext
11640
11641 # Code to be used in simple compile tests
11642 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
11643
11644 # Code to be used in simple link tests
11645 lt_simple_link_test_code="$lt_simple_compile_test_code"
11646
11647 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11648
11649
11650
11651
11652
11653
11654 # If no C compiler was specified, use CC.
11655 LTCC=${LTCC-"$CC"}
11656
11657 # If no C compiler flags were specified, use CFLAGS.
11658 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11659
11660 # Allow CC to be a program name with arguments.
11661 compiler=$CC
11662
11663
11664 # save warnings/boilerplate of simple test code
11665 ac_outfile=conftest.$ac_objext
11666 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11667 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11668 _lt_compiler_boilerplate=`cat conftest.err`
11669 $RM conftest*
11670
11671 ac_outfile=conftest.$ac_objext
11672 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11673 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11674 _lt_linker_boilerplate=`cat conftest.err`
11675 $RM -r conftest*
11676
11677
11678 # Allow CC to be a program name with arguments.
11679 lt_save_CC="$CC"
11680 lt_save_CFLAGS=$CFLAGS
11681 lt_save_GCC=$GCC
11682 GCC=
11683 CC=${RC-"windres"}
11684 CFLAGS=
11685 compiler=$CC
11686 compiler_RC=$CC
11687 for cc_temp in $compiler""; do
11688   case $cc_temp in
11689     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11690     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11691     \-*) ;;
11692     *) break;;
11693   esac
11694 done
11695 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11696
11697 lt_cv_prog_compiler_c_o_RC=yes
11698
11699 if test -n "$compiler"; then
11700   :
11701
11702
11703
11704 fi
11705
11706 GCC=$lt_save_GCC
11707 ac_ext=c
11708 ac_cpp='$CPP $CPPFLAGS'
11709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11712
11713 CC=$lt_save_CC
11714 CFLAGS=$lt_save_CFLAGS
11715
11716
11717 LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
11718 LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
11719 LT_REVISION=$SDL_INTERFACE_AGE
11720 LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
11721
11722
11723
11724
11725
11726
11727
11728
11729 ac_ext=c
11730 ac_cpp='$CPP $CPPFLAGS'
11731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11734 if test -n "$ac_tool_prefix"; then
11735   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11736 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11738 $as_echo_n "checking for $ac_word... " >&6; }
11739 if ${ac_cv_prog_CC+:} false; then :
11740   $as_echo_n "(cached) " >&6
11741 else
11742   if test -n "$CC"; then
11743   ac_cv_prog_CC="$CC" # Let the user override the test.
11744 else
11745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11746 for as_dir in $PATH
11747 do
11748   IFS=$as_save_IFS
11749   test -z "$as_dir" && as_dir=.
11750     for ac_exec_ext in '' $ac_executable_extensions; do
11751   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11752     ac_cv_prog_CC="${ac_tool_prefix}gcc"
11753     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11754     break 2
11755   fi
11756 done
11757   done
11758 IFS=$as_save_IFS
11759
11760 fi
11761 fi
11762 CC=$ac_cv_prog_CC
11763 if test -n "$CC"; then
11764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11765 $as_echo "$CC" >&6; }
11766 else
11767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11768 $as_echo "no" >&6; }
11769 fi
11770
11771
11772 fi
11773 if test -z "$ac_cv_prog_CC"; then
11774   ac_ct_CC=$CC
11775   # Extract the first word of "gcc", so it can be a program name with args.
11776 set dummy gcc; ac_word=$2
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11778 $as_echo_n "checking for $ac_word... " >&6; }
11779 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11780   $as_echo_n "(cached) " >&6
11781 else
11782   if test -n "$ac_ct_CC"; then
11783   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11784 else
11785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11786 for as_dir in $PATH
11787 do
11788   IFS=$as_save_IFS
11789   test -z "$as_dir" && as_dir=.
11790     for ac_exec_ext in '' $ac_executable_extensions; do
11791   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11792     ac_cv_prog_ac_ct_CC="gcc"
11793     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11794     break 2
11795   fi
11796 done
11797   done
11798 IFS=$as_save_IFS
11799
11800 fi
11801 fi
11802 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11803 if test -n "$ac_ct_CC"; then
11804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11805 $as_echo "$ac_ct_CC" >&6; }
11806 else
11807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11808 $as_echo "no" >&6; }
11809 fi
11810
11811   if test "x$ac_ct_CC" = x; then
11812     CC=""
11813   else
11814     case $cross_compiling:$ac_tool_warned in
11815 yes:)
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11817 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11818 ac_tool_warned=yes ;;
11819 esac
11820     CC=$ac_ct_CC
11821   fi
11822 else
11823   CC="$ac_cv_prog_CC"
11824 fi
11825
11826 if test -z "$CC"; then
11827           if test -n "$ac_tool_prefix"; then
11828     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11829 set dummy ${ac_tool_prefix}cc; ac_word=$2
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11831 $as_echo_n "checking for $ac_word... " >&6; }
11832 if ${ac_cv_prog_CC+:} false; then :
11833   $as_echo_n "(cached) " >&6
11834 else
11835   if test -n "$CC"; then
11836   ac_cv_prog_CC="$CC" # Let the user override the test.
11837 else
11838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11839 for as_dir in $PATH
11840 do
11841   IFS=$as_save_IFS
11842   test -z "$as_dir" && as_dir=.
11843     for ac_exec_ext in '' $ac_executable_extensions; do
11844   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11845     ac_cv_prog_CC="${ac_tool_prefix}cc"
11846     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11847     break 2
11848   fi
11849 done
11850   done
11851 IFS=$as_save_IFS
11852
11853 fi
11854 fi
11855 CC=$ac_cv_prog_CC
11856 if test -n "$CC"; then
11857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11858 $as_echo "$CC" >&6; }
11859 else
11860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11861 $as_echo "no" >&6; }
11862 fi
11863
11864
11865   fi
11866 fi
11867 if test -z "$CC"; then
11868   # Extract the first word of "cc", so it can be a program name with args.
11869 set dummy cc; ac_word=$2
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11871 $as_echo_n "checking for $ac_word... " >&6; }
11872 if ${ac_cv_prog_CC+:} false; then :
11873   $as_echo_n "(cached) " >&6
11874 else
11875   if test -n "$CC"; then
11876   ac_cv_prog_CC="$CC" # Let the user override the test.
11877 else
11878   ac_prog_rejected=no
11879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11880 for as_dir in $PATH
11881 do
11882   IFS=$as_save_IFS
11883   test -z "$as_dir" && as_dir=.
11884     for ac_exec_ext in '' $ac_executable_extensions; do
11885   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11886     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11887        ac_prog_rejected=yes
11888        continue
11889      fi
11890     ac_cv_prog_CC="cc"
11891     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11892     break 2
11893   fi
11894 done
11895   done
11896 IFS=$as_save_IFS
11897
11898 if test $ac_prog_rejected = yes; then
11899   # We found a bogon in the path, so make sure we never use it.
11900   set dummy $ac_cv_prog_CC
11901   shift
11902   if test $# != 0; then
11903     # We chose a different compiler from the bogus one.
11904     # However, it has the same basename, so the bogon will be chosen
11905     # first if we set CC to just the basename; use the full file name.
11906     shift
11907     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11908   fi
11909 fi
11910 fi
11911 fi
11912 CC=$ac_cv_prog_CC
11913 if test -n "$CC"; then
11914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11915 $as_echo "$CC" >&6; }
11916 else
11917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11918 $as_echo "no" >&6; }
11919 fi
11920
11921
11922 fi
11923 if test -z "$CC"; then
11924   if test -n "$ac_tool_prefix"; then
11925   for ac_prog in cl.exe
11926   do
11927     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11928 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11930 $as_echo_n "checking for $ac_word... " >&6; }
11931 if ${ac_cv_prog_CC+:} false; then :
11932   $as_echo_n "(cached) " >&6
11933 else
11934   if test -n "$CC"; then
11935   ac_cv_prog_CC="$CC" # Let the user override the test.
11936 else
11937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11938 for as_dir in $PATH
11939 do
11940   IFS=$as_save_IFS
11941   test -z "$as_dir" && as_dir=.
11942     for ac_exec_ext in '' $ac_executable_extensions; do
11943   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11944     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11945     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11946     break 2
11947   fi
11948 done
11949   done
11950 IFS=$as_save_IFS
11951
11952 fi
11953 fi
11954 CC=$ac_cv_prog_CC
11955 if test -n "$CC"; then
11956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11957 $as_echo "$CC" >&6; }
11958 else
11959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11960 $as_echo "no" >&6; }
11961 fi
11962
11963
11964     test -n "$CC" && break
11965   done
11966 fi
11967 if test -z "$CC"; then
11968   ac_ct_CC=$CC
11969   for ac_prog in cl.exe
11970 do
11971   # Extract the first word of "$ac_prog", so it can be a program name with args.
11972 set dummy $ac_prog; ac_word=$2
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11974 $as_echo_n "checking for $ac_word... " >&6; }
11975 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11976   $as_echo_n "(cached) " >&6
11977 else
11978   if test -n "$ac_ct_CC"; then
11979   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11980 else
11981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11982 for as_dir in $PATH
11983 do
11984   IFS=$as_save_IFS
11985   test -z "$as_dir" && as_dir=.
11986     for ac_exec_ext in '' $ac_executable_extensions; do
11987   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11988     ac_cv_prog_ac_ct_CC="$ac_prog"
11989     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11990     break 2
11991   fi
11992 done
11993   done
11994 IFS=$as_save_IFS
11995
11996 fi
11997 fi
11998 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11999 if test -n "$ac_ct_CC"; then
12000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12001 $as_echo "$ac_ct_CC" >&6; }
12002 else
12003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12004 $as_echo "no" >&6; }
12005 fi
12006
12007
12008   test -n "$ac_ct_CC" && break
12009 done
12010
12011   if test "x$ac_ct_CC" = x; then
12012     CC=""
12013   else
12014     case $cross_compiling:$ac_tool_warned in
12015 yes:)
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12017 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12018 ac_tool_warned=yes ;;
12019 esac
12020     CC=$ac_ct_CC
12021   fi
12022 fi
12023
12024 fi
12025
12026
12027 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12028 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12029 as_fn_error $? "no acceptable C compiler found in \$PATH
12030 See \`config.log' for more details" "$LINENO" 5; }
12031
12032 # Provide some information about the compiler.
12033 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12034 set X $ac_compile
12035 ac_compiler=$2
12036 for ac_option in --version -v -V -qversion; do
12037   { { ac_try="$ac_compiler $ac_option >&5"
12038 case "(($ac_try" in
12039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12040   *) ac_try_echo=$ac_try;;
12041 esac
12042 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12043 $as_echo "$ac_try_echo"; } >&5
12044   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12045   ac_status=$?
12046   if test -s conftest.err; then
12047     sed '10a\
12048 ... rest of stderr output deleted ...
12049          10q' conftest.err >conftest.er1
12050     cat conftest.er1 >&5
12051   fi
12052   rm -f conftest.er1 conftest.err
12053   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12054   test $ac_status = 0; }
12055 done
12056
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12058 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12059 if ${ac_cv_c_compiler_gnu+:} false; then :
12060   $as_echo_n "(cached) " >&6
12061 else
12062   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12063 /* end confdefs.h.  */
12064
12065 int
12066 main ()
12067 {
12068 #ifndef __GNUC__
12069        choke me
12070 #endif
12071
12072   ;
12073   return 0;
12074 }
12075 _ACEOF
12076 if ac_fn_c_try_compile "$LINENO"; then :
12077   ac_compiler_gnu=yes
12078 else
12079   ac_compiler_gnu=no
12080 fi
12081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12082 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12083
12084 fi
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12086 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12087 if test $ac_compiler_gnu = yes; then
12088   GCC=yes
12089 else
12090   GCC=
12091 fi
12092 ac_test_CFLAGS=${CFLAGS+set}
12093 ac_save_CFLAGS=$CFLAGS
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12095 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12096 if ${ac_cv_prog_cc_g+:} false; then :
12097   $as_echo_n "(cached) " >&6
12098 else
12099   ac_save_c_werror_flag=$ac_c_werror_flag
12100    ac_c_werror_flag=yes
12101    ac_cv_prog_cc_g=no
12102    CFLAGS="-g"
12103    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12104 /* end confdefs.h.  */
12105
12106 int
12107 main ()
12108 {
12109
12110   ;
12111   return 0;
12112 }
12113 _ACEOF
12114 if ac_fn_c_try_compile "$LINENO"; then :
12115   ac_cv_prog_cc_g=yes
12116 else
12117   CFLAGS=""
12118       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12119 /* end confdefs.h.  */
12120
12121 int
12122 main ()
12123 {
12124
12125   ;
12126   return 0;
12127 }
12128 _ACEOF
12129 if ac_fn_c_try_compile "$LINENO"; then :
12130
12131 else
12132   ac_c_werror_flag=$ac_save_c_werror_flag
12133          CFLAGS="-g"
12134          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12135 /* end confdefs.h.  */
12136
12137 int
12138 main ()
12139 {
12140
12141   ;
12142   return 0;
12143 }
12144 _ACEOF
12145 if ac_fn_c_try_compile "$LINENO"; then :
12146   ac_cv_prog_cc_g=yes
12147 fi
12148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12149 fi
12150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12151 fi
12152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12153    ac_c_werror_flag=$ac_save_c_werror_flag
12154 fi
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12156 $as_echo "$ac_cv_prog_cc_g" >&6; }
12157 if test "$ac_test_CFLAGS" = set; then
12158   CFLAGS=$ac_save_CFLAGS
12159 elif test $ac_cv_prog_cc_g = yes; then
12160   if test "$GCC" = yes; then
12161     CFLAGS="-g -O2"
12162   else
12163     CFLAGS="-g"
12164   fi
12165 else
12166   if test "$GCC" = yes; then
12167     CFLAGS="-O2"
12168   else
12169     CFLAGS=
12170   fi
12171 fi
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12173 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12174 if ${ac_cv_prog_cc_c89+:} false; then :
12175   $as_echo_n "(cached) " >&6
12176 else
12177   ac_cv_prog_cc_c89=no
12178 ac_save_CC=$CC
12179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12180 /* end confdefs.h.  */
12181 #include <stdarg.h>
12182 #include <stdio.h>
12183 struct stat;
12184 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12185 struct buf { int x; };
12186 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12187 static char *e (p, i)
12188      char **p;
12189      int i;
12190 {
12191   return p[i];
12192 }
12193 static char *f (char * (*g) (char **, int), char **p, ...)
12194 {
12195   char *s;
12196   va_list v;
12197   va_start (v,p);
12198   s = g (p, va_arg (v,int));
12199   va_end (v);
12200   return s;
12201 }
12202
12203 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12204    function prototypes and stuff, but not '\xHH' hex character constants.
12205    These don't provoke an error unfortunately, instead are silently treated
12206    as 'x'.  The following induces an error, until -std is added to get
12207    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12208    array size at least.  It's necessary to write '\x00'==0 to get something
12209    that's true only with -std.  */
12210 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12211
12212 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12213    inside strings and character constants.  */
12214 #define FOO(x) 'x'
12215 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12216
12217 int test (int i, double x);
12218 struct s1 {int (*f) (int a);};
12219 struct s2 {int (*f) (double a);};
12220 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12221 int argc;
12222 char **argv;
12223 int
12224 main ()
12225 {
12226 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12227   ;
12228   return 0;
12229 }
12230 _ACEOF
12231 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12232         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12233 do
12234   CC="$ac_save_CC $ac_arg"
12235   if ac_fn_c_try_compile "$LINENO"; then :
12236   ac_cv_prog_cc_c89=$ac_arg
12237 fi
12238 rm -f core conftest.err conftest.$ac_objext
12239   test "x$ac_cv_prog_cc_c89" != "xno" && break
12240 done
12241 rm -f conftest.$ac_ext
12242 CC=$ac_save_CC
12243
12244 fi
12245 # AC_CACHE_VAL
12246 case "x$ac_cv_prog_cc_c89" in
12247   x)
12248     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12249 $as_echo "none needed" >&6; } ;;
12250   xno)
12251     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12252 $as_echo "unsupported" >&6; } ;;
12253   *)
12254     CC="$CC $ac_cv_prog_cc_c89"
12255     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12256 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12257 esac
12258 if test "x$ac_cv_prog_cc_c89" != xno; then :
12259
12260 fi
12261
12262 ac_ext=c
12263 ac_cpp='$CPP $CPPFLAGS'
12264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12267
12268 ac_ext=cpp
12269 ac_cpp='$CXXCPP $CPPFLAGS'
12270 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12271 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12272 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12273 if test -z "$CXX"; then
12274   if test -n "$CCC"; then
12275     CXX=$CCC
12276   else
12277     if test -n "$ac_tool_prefix"; then
12278   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12279   do
12280     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12281 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12283 $as_echo_n "checking for $ac_word... " >&6; }
12284 if ${ac_cv_prog_CXX+:} false; then :
12285   $as_echo_n "(cached) " >&6
12286 else
12287   if test -n "$CXX"; then
12288   ac_cv_prog_CXX="$CXX" # Let the user override the test.
12289 else
12290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12291 for as_dir in $PATH
12292 do
12293   IFS=$as_save_IFS
12294   test -z "$as_dir" && as_dir=.
12295     for ac_exec_ext in '' $ac_executable_extensions; do
12296   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12297     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12298     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12299     break 2
12300   fi
12301 done
12302   done
12303 IFS=$as_save_IFS
12304
12305 fi
12306 fi
12307 CXX=$ac_cv_prog_CXX
12308 if test -n "$CXX"; then
12309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
12310 $as_echo "$CXX" >&6; }
12311 else
12312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12313 $as_echo "no" >&6; }
12314 fi
12315
12316
12317     test -n "$CXX" && break
12318   done
12319 fi
12320 if test -z "$CXX"; then
12321   ac_ct_CXX=$CXX
12322   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12323 do
12324   # Extract the first word of "$ac_prog", so it can be a program name with args.
12325 set dummy $ac_prog; ac_word=$2
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12327 $as_echo_n "checking for $ac_word... " >&6; }
12328 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
12329   $as_echo_n "(cached) " >&6
12330 else
12331   if test -n "$ac_ct_CXX"; then
12332   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12333 else
12334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12335 for as_dir in $PATH
12336 do
12337   IFS=$as_save_IFS
12338   test -z "$as_dir" && as_dir=.
12339     for ac_exec_ext in '' $ac_executable_extensions; do
12340   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12341     ac_cv_prog_ac_ct_CXX="$ac_prog"
12342     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12343     break 2
12344   fi
12345 done
12346   done
12347 IFS=$as_save_IFS
12348
12349 fi
12350 fi
12351 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12352 if test -n "$ac_ct_CXX"; then
12353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
12354 $as_echo "$ac_ct_CXX" >&6; }
12355 else
12356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12357 $as_echo "no" >&6; }
12358 fi
12359
12360
12361   test -n "$ac_ct_CXX" && break
12362 done
12363
12364   if test "x$ac_ct_CXX" = x; then
12365     CXX="g++"
12366   else
12367     case $cross_compiling:$ac_tool_warned in
12368 yes:)
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12370 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12371 ac_tool_warned=yes ;;
12372 esac
12373     CXX=$ac_ct_CXX
12374   fi
12375 fi
12376
12377   fi
12378 fi
12379 # Provide some information about the compiler.
12380 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
12381 set X $ac_compile
12382 ac_compiler=$2
12383 for ac_option in --version -v -V -qversion; do
12384   { { ac_try="$ac_compiler $ac_option >&5"
12385 case "(($ac_try" in
12386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12387   *) ac_try_echo=$ac_try;;
12388 esac
12389 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12390 $as_echo "$ac_try_echo"; } >&5
12391   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12392   ac_status=$?
12393   if test -s conftest.err; then
12394     sed '10a\
12395 ... rest of stderr output deleted ...
12396          10q' conftest.err >conftest.er1
12397     cat conftest.er1 >&5
12398   fi
12399   rm -f conftest.er1 conftest.err
12400   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12401   test $ac_status = 0; }
12402 done
12403
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
12405 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12406 if ${ac_cv_cxx_compiler_gnu+:} false; then :
12407   $as_echo_n "(cached) " >&6
12408 else
12409   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12410 /* end confdefs.h.  */
12411
12412 int
12413 main ()
12414 {
12415 #ifndef __GNUC__
12416        choke me
12417 #endif
12418
12419   ;
12420   return 0;
12421 }
12422 _ACEOF
12423 if ac_fn_cxx_try_compile "$LINENO"; then :
12424   ac_compiler_gnu=yes
12425 else
12426   ac_compiler_gnu=no
12427 fi
12428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12429 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12430
12431 fi
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
12433 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12434 if test $ac_compiler_gnu = yes; then
12435   GXX=yes
12436 else
12437   GXX=
12438 fi
12439 ac_test_CXXFLAGS=${CXXFLAGS+set}
12440 ac_save_CXXFLAGS=$CXXFLAGS
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
12442 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
12443 if ${ac_cv_prog_cxx_g+:} false; then :
12444   $as_echo_n "(cached) " >&6
12445 else
12446   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12447    ac_cxx_werror_flag=yes
12448    ac_cv_prog_cxx_g=no
12449    CXXFLAGS="-g"
12450    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12451 /* end confdefs.h.  */
12452
12453 int
12454 main ()
12455 {
12456
12457   ;
12458   return 0;
12459 }
12460 _ACEOF
12461 if ac_fn_cxx_try_compile "$LINENO"; then :
12462   ac_cv_prog_cxx_g=yes
12463 else
12464   CXXFLAGS=""
12465       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12466 /* end confdefs.h.  */
12467
12468 int
12469 main ()
12470 {
12471
12472   ;
12473   return 0;
12474 }
12475 _ACEOF
12476 if ac_fn_cxx_try_compile "$LINENO"; then :
12477
12478 else
12479   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12480          CXXFLAGS="-g"
12481          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12482 /* end confdefs.h.  */
12483
12484 int
12485 main ()
12486 {
12487
12488   ;
12489   return 0;
12490 }
12491 _ACEOF
12492 if ac_fn_cxx_try_compile "$LINENO"; then :
12493   ac_cv_prog_cxx_g=yes
12494 fi
12495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12496 fi
12497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12498 fi
12499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12500    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12501 fi
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
12503 $as_echo "$ac_cv_prog_cxx_g" >&6; }
12504 if test "$ac_test_CXXFLAGS" = set; then
12505   CXXFLAGS=$ac_save_CXXFLAGS
12506 elif test $ac_cv_prog_cxx_g = yes; then
12507   if test "$GXX" = yes; then
12508     CXXFLAGS="-g -O2"
12509   else
12510     CXXFLAGS="-g"
12511   fi
12512 else
12513   if test "$GXX" = yes; then
12514     CXXFLAGS="-O2"
12515   else
12516     CXXFLAGS=
12517   fi
12518 fi
12519 ac_ext=c
12520 ac_cpp='$CPP $CPPFLAGS'
12521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12524
12525
12526
12527 func_stripname_cnf ()
12528 {
12529   case ${2} in
12530   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12531   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12532   esac
12533 } # func_stripname_cnf
12534
12535       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12536     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12537     (test "X$CXX" != "Xg++"))) ; then
12538   ac_ext=cpp
12539 ac_cpp='$CXXCPP $CPPFLAGS'
12540 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12541 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12542 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12544 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12545 if test -z "$CXXCPP"; then
12546   if ${ac_cv_prog_CXXCPP+:} false; then :
12547   $as_echo_n "(cached) " >&6
12548 else
12549       # Double quotes because CXXCPP needs to be expanded
12550     for CXXCPP in "$CXX -E" "/lib/cpp"
12551     do
12552       ac_preproc_ok=false
12553 for ac_cxx_preproc_warn_flag in '' yes
12554 do
12555   # Use a header file that comes with gcc, so configuring glibc
12556   # with a fresh cross-compiler works.
12557   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12558   # <limits.h> exists even on freestanding compilers.
12559   # On the NeXT, cc -E runs the code through the compiler's parser,
12560   # not just through cpp. "Syntax error" is here to catch this case.
12561   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12562 /* end confdefs.h.  */
12563 #ifdef __STDC__
12564 # include <limits.h>
12565 #else
12566 # include <assert.h>
12567 #endif
12568                      Syntax error
12569 _ACEOF
12570 if ac_fn_cxx_try_cpp "$LINENO"; then :
12571
12572 else
12573   # Broken: fails on valid input.
12574 continue
12575 fi
12576 rm -f conftest.err conftest.i conftest.$ac_ext
12577
12578   # OK, works on sane cases.  Now check whether nonexistent headers
12579   # can be detected and how.
12580   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12581 /* end confdefs.h.  */
12582 #include <ac_nonexistent.h>
12583 _ACEOF
12584 if ac_fn_cxx_try_cpp "$LINENO"; then :
12585   # Broken: success on invalid input.
12586 continue
12587 else
12588   # Passes both tests.
12589 ac_preproc_ok=:
12590 break
12591 fi
12592 rm -f conftest.err conftest.i conftest.$ac_ext
12593
12594 done
12595 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12596 rm -f conftest.i conftest.err conftest.$ac_ext
12597 if $ac_preproc_ok; then :
12598   break
12599 fi
12600
12601     done
12602     ac_cv_prog_CXXCPP=$CXXCPP
12603
12604 fi
12605   CXXCPP=$ac_cv_prog_CXXCPP
12606 else
12607   ac_cv_prog_CXXCPP=$CXXCPP
12608 fi
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12610 $as_echo "$CXXCPP" >&6; }
12611 ac_preproc_ok=false
12612 for ac_cxx_preproc_warn_flag in '' yes
12613 do
12614   # Use a header file that comes with gcc, so configuring glibc
12615   # with a fresh cross-compiler works.
12616   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12617   # <limits.h> exists even on freestanding compilers.
12618   # On the NeXT, cc -E runs the code through the compiler's parser,
12619   # not just through cpp. "Syntax error" is here to catch this case.
12620   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12621 /* end confdefs.h.  */
12622 #ifdef __STDC__
12623 # include <limits.h>
12624 #else
12625 # include <assert.h>
12626 #endif
12627                      Syntax error
12628 _ACEOF
12629 if ac_fn_cxx_try_cpp "$LINENO"; then :
12630
12631 else
12632   # Broken: fails on valid input.
12633 continue
12634 fi
12635 rm -f conftest.err conftest.i conftest.$ac_ext
12636
12637   # OK, works on sane cases.  Now check whether nonexistent headers
12638   # can be detected and how.
12639   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12640 /* end confdefs.h.  */
12641 #include <ac_nonexistent.h>
12642 _ACEOF
12643 if ac_fn_cxx_try_cpp "$LINENO"; then :
12644   # Broken: success on invalid input.
12645 continue
12646 else
12647   # Passes both tests.
12648 ac_preproc_ok=:
12649 break
12650 fi
12651 rm -f conftest.err conftest.i conftest.$ac_ext
12652
12653 done
12654 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12655 rm -f conftest.i conftest.err conftest.$ac_ext
12656 if $ac_preproc_ok; then :
12657
12658 else
12659   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12660 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12661 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12662 See \`config.log' for more details" "$LINENO" 5; }
12663 fi
12664
12665 ac_ext=c
12666 ac_cpp='$CPP $CPPFLAGS'
12667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12670
12671 else
12672   _lt_caught_CXX_error=yes
12673 fi
12674
12675 ac_ext=cpp
12676 ac_cpp='$CXXCPP $CPPFLAGS'
12677 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12678 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12679 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12680
12681 archive_cmds_need_lc_CXX=no
12682 allow_undefined_flag_CXX=
12683 always_export_symbols_CXX=no
12684 archive_expsym_cmds_CXX=
12685 compiler_needs_object_CXX=no
12686 export_dynamic_flag_spec_CXX=
12687 hardcode_direct_CXX=no
12688 hardcode_direct_absolute_CXX=no
12689 hardcode_libdir_flag_spec_CXX=
12690 hardcode_libdir_separator_CXX=
12691 hardcode_minus_L_CXX=no
12692 hardcode_shlibpath_var_CXX=unsupported
12693 hardcode_automatic_CXX=no
12694 inherit_rpath_CXX=no
12695 module_cmds_CXX=
12696 module_expsym_cmds_CXX=
12697 link_all_deplibs_CXX=unknown
12698 old_archive_cmds_CXX=$old_archive_cmds
12699 reload_flag_CXX=$reload_flag
12700 reload_cmds_CXX=$reload_cmds
12701 no_undefined_flag_CXX=
12702 whole_archive_flag_spec_CXX=
12703 enable_shared_with_static_runtimes_CXX=no
12704
12705 # Source file extension for C++ test sources.
12706 ac_ext=cpp
12707
12708 # Object file extension for compiled C++ test sources.
12709 objext=o
12710 objext_CXX=$objext
12711
12712 # No sense in running all these tests if we already determined that
12713 # the CXX compiler isn't working.  Some variables (like enable_shared)
12714 # are currently assumed to apply to all compilers on this platform,
12715 # and will be corrupted by setting them based on a non-working compiler.
12716 if test "$_lt_caught_CXX_error" != yes; then
12717   # Code to be used in simple compile tests
12718   lt_simple_compile_test_code="int some_variable = 0;"
12719
12720   # Code to be used in simple link tests
12721   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12722
12723   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12724
12725
12726
12727
12728
12729
12730 # If no C compiler was specified, use CC.
12731 LTCC=${LTCC-"$CC"}
12732
12733 # If no C compiler flags were specified, use CFLAGS.
12734 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12735
12736 # Allow CC to be a program name with arguments.
12737 compiler=$CC
12738
12739
12740   # save warnings/boilerplate of simple test code
12741   ac_outfile=conftest.$ac_objext
12742 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12743 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12744 _lt_compiler_boilerplate=`cat conftest.err`
12745 $RM conftest*
12746
12747   ac_outfile=conftest.$ac_objext
12748 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12749 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12750 _lt_linker_boilerplate=`cat conftest.err`
12751 $RM -r conftest*
12752
12753
12754   # Allow CC to be a program name with arguments.
12755   lt_save_CC=$CC
12756   lt_save_CFLAGS=$CFLAGS
12757   lt_save_LD=$LD
12758   lt_save_GCC=$GCC
12759   GCC=$GXX
12760   lt_save_with_gnu_ld=$with_gnu_ld
12761   lt_save_path_LD=$lt_cv_path_LD
12762   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12763     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12764   else
12765     $as_unset lt_cv_prog_gnu_ld
12766   fi
12767   if test -n "${lt_cv_path_LDCXX+set}"; then
12768     lt_cv_path_LD=$lt_cv_path_LDCXX
12769   else
12770     $as_unset lt_cv_path_LD
12771   fi
12772   test -z "${LDCXX+set}" || LD=$LDCXX
12773   CC=${CXX-"c++"}
12774   CFLAGS=$CXXFLAGS
12775   compiler=$CC
12776   compiler_CXX=$CC
12777   for cc_temp in $compiler""; do
12778   case $cc_temp in
12779     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12780     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12781     \-*) ;;
12782     *) break;;
12783   esac
12784 done
12785 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12786
12787
12788   if test -n "$compiler"; then
12789     # We don't want -fno-exception when compiling C++ code, so set the
12790     # no_builtin_flag separately
12791     if test "$GXX" = yes; then
12792       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12793     else
12794       lt_prog_compiler_no_builtin_flag_CXX=
12795     fi
12796
12797     if test "$GXX" = yes; then
12798       # Set up default GNU C++ configuration
12799
12800
12801
12802 # Check whether --with-gnu-ld was given.
12803 if test "${with_gnu_ld+set}" = set; then :
12804   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12805 else
12806   with_gnu_ld=no
12807 fi
12808
12809 ac_prog=ld
12810 if test "$GCC" = yes; then
12811   # Check if gcc -print-prog-name=ld gives a path.
12812   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12813 $as_echo_n "checking for ld used by $CC... " >&6; }
12814   case $host in
12815   *-*-mingw*)
12816     # gcc leaves a trailing carriage return which upsets mingw
12817     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12818   *)
12819     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12820   esac
12821   case $ac_prog in
12822     # Accept absolute paths.
12823     [\\/]* | ?:[\\/]*)
12824       re_direlt='/[^/][^/]*/\.\./'
12825       # Canonicalize the pathname of ld
12826       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12827       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12828         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12829       done
12830       test -z "$LD" && LD="$ac_prog"
12831       ;;
12832   "")
12833     # If it fails, then pretend we aren't using GCC.
12834     ac_prog=ld
12835     ;;
12836   *)
12837     # If it is relative, then search for the first ld in PATH.
12838     with_gnu_ld=unknown
12839     ;;
12840   esac
12841 elif test "$with_gnu_ld" = yes; then
12842   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12843 $as_echo_n "checking for GNU ld... " >&6; }
12844 else
12845   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12846 $as_echo_n "checking for non-GNU ld... " >&6; }
12847 fi
12848 if ${lt_cv_path_LD+:} false; then :
12849   $as_echo_n "(cached) " >&6
12850 else
12851   if test -z "$LD"; then
12852   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12853   for ac_dir in $PATH; do
12854     IFS="$lt_save_ifs"
12855     test -z "$ac_dir" && ac_dir=.
12856     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12857       lt_cv_path_LD="$ac_dir/$ac_prog"
12858       # Check to see if the program is GNU ld.  I'd rather use --version,
12859       # but apparently some variants of GNU ld only accept -v.
12860       # Break only if it was the GNU/non-GNU ld that we prefer.
12861       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12862       *GNU* | *'with BFD'*)
12863         test "$with_gnu_ld" != no && break
12864         ;;
12865       *)
12866         test "$with_gnu_ld" != yes && break
12867         ;;
12868       esac
12869     fi
12870   done
12871   IFS="$lt_save_ifs"
12872 else
12873   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12874 fi
12875 fi
12876
12877 LD="$lt_cv_path_LD"
12878 if test -n "$LD"; then
12879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12880 $as_echo "$LD" >&6; }
12881 else
12882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12883 $as_echo "no" >&6; }
12884 fi
12885 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12887 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12888 if ${lt_cv_prog_gnu_ld+:} false; then :
12889   $as_echo_n "(cached) " >&6
12890 else
12891   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12892 case `$LD -v 2>&1 </dev/null` in
12893 *GNU* | *'with BFD'*)
12894   lt_cv_prog_gnu_ld=yes
12895   ;;
12896 *)
12897   lt_cv_prog_gnu_ld=no
12898   ;;
12899 esac
12900 fi
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12902 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12903 with_gnu_ld=$lt_cv_prog_gnu_ld
12904
12905
12906
12907
12908
12909
12910
12911       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12912       # archiving commands below assume that GNU ld is being used.
12913       if test "$with_gnu_ld" = yes; then
12914         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12915         archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12916
12917         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12918         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12919
12920         # If archive_cmds runs LD, not CC, wlarc should be empty
12921         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12922         #     investigate it a little bit more. (MM)
12923         wlarc='${wl}'
12924
12925         # ancient GNU ld didn't support --whole-archive et. al.
12926         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12927           $GREP 'no-whole-archive' > /dev/null; then
12928           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12929         else
12930           whole_archive_flag_spec_CXX=
12931         fi
12932       else
12933         with_gnu_ld=no
12934         wlarc=
12935
12936         # A generic and very simple default shared library creation
12937         # command for GNU C++ for the case where it uses the native
12938         # linker, instead of GNU ld.  If possible, this setting should
12939         # overridden to take advantage of the native linker features on
12940         # the platform it is being used on.
12941         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12942       fi
12943
12944       # Commands to make compiler produce verbose output that lists
12945       # what "hidden" libraries, object files and flags are used when
12946       # linking a shared library.
12947       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12948
12949     else
12950       GXX=no
12951       with_gnu_ld=no
12952       wlarc=
12953     fi
12954
12955     # PORTME: fill in a description of your system's C++ link characteristics
12956     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12957 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12958     ld_shlibs_CXX=yes
12959     case $host_os in
12960       aix3*)
12961         # FIXME: insert proper C++ library support
12962         ld_shlibs_CXX=no
12963         ;;
12964       aix[4-9]*)
12965         if test "$host_cpu" = ia64; then
12966           # On IA64, the linker does run time linking by default, so we don't
12967           # have to do anything special.
12968           aix_use_runtimelinking=no
12969           exp_sym_flag='-Bexport'
12970           no_entry_flag=""
12971         else
12972           aix_use_runtimelinking=no
12973
12974           # Test if we are trying to use run time linking or normal
12975           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12976           # need to do runtime linking.
12977           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12978             for ld_flag in $LDFLAGS; do
12979               case $ld_flag in
12980               *-brtl*)
12981                 aix_use_runtimelinking=yes
12982                 break
12983                 ;;
12984               esac
12985             done
12986             ;;
12987           esac
12988
12989           exp_sym_flag='-bexport'
12990           no_entry_flag='-bnoentry'
12991         fi
12992
12993         # When large executables or shared objects are built, AIX ld can
12994         # have problems creating the table of contents.  If linking a library
12995         # or program results in "error TOC overflow" add -mminimal-toc to
12996         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12997         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12998
12999         archive_cmds_CXX=''
13000         hardcode_direct_CXX=yes
13001         hardcode_direct_absolute_CXX=yes
13002         hardcode_libdir_separator_CXX=':'
13003         link_all_deplibs_CXX=yes
13004         file_list_spec_CXX='${wl}-f,'
13005
13006         if test "$GXX" = yes; then
13007           case $host_os in aix4.[012]|aix4.[012].*)
13008           # We only want to do this on AIX 4.2 and lower, the check
13009           # below for broken collect2 doesn't work under 4.3+
13010           collect2name=`${CC} -print-prog-name=collect2`
13011           if test -f "$collect2name" &&
13012              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13013           then
13014             # We have reworked collect2
13015             :
13016           else
13017             # We have old collect2
13018             hardcode_direct_CXX=unsupported
13019             # It fails to find uninstalled libraries when the uninstalled
13020             # path is not listed in the libpath.  Setting hardcode_minus_L
13021             # to unsupported forces relinking
13022             hardcode_minus_L_CXX=yes
13023             hardcode_libdir_flag_spec_CXX='-L$libdir'
13024             hardcode_libdir_separator_CXX=
13025           fi
13026           esac
13027           shared_flag='-shared'
13028           if test "$aix_use_runtimelinking" = yes; then
13029             shared_flag="$shared_flag "'${wl}-G'
13030           fi
13031         else
13032           # not using gcc
13033           if test "$host_cpu" = ia64; then
13034           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13035           # chokes on -Wl,-G. The following line is correct:
13036           shared_flag='-G'
13037           else
13038             if test "$aix_use_runtimelinking" = yes; then
13039               shared_flag='${wl}-G'
13040             else
13041               shared_flag='${wl}-bM:SRE'
13042             fi
13043           fi
13044         fi
13045
13046         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13047         # It seems that -bexpall does not export symbols beginning with
13048         # underscore (_), so it is better to generate a list of symbols to
13049         # export.
13050         always_export_symbols_CXX=yes
13051         if test "$aix_use_runtimelinking" = yes; then
13052           # Warning - without using the other runtime loading flags (-brtl),
13053           # -berok will link without error, but may produce a broken library.
13054           allow_undefined_flag_CXX='-berok'
13055           # Determine the default libpath from the value encoded in an empty
13056           # executable.
13057           if test "${lt_cv_aix_libpath+set}" = set; then
13058   aix_libpath=$lt_cv_aix_libpath
13059 else
13060   if ${lt_cv_aix_libpath__CXX+:} false; then :
13061   $as_echo_n "(cached) " >&6
13062 else
13063   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13064 /* end confdefs.h.  */
13065
13066 int
13067 main ()
13068 {
13069
13070   ;
13071   return 0;
13072 }
13073 _ACEOF
13074 if ac_fn_cxx_try_link "$LINENO"; then :
13075
13076   lt_aix_libpath_sed='
13077       /Import File Strings/,/^$/ {
13078           /^0/ {
13079               s/^0  *\([^ ]*\) *$/\1/
13080               p
13081           }
13082       }'
13083   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13084   # Check for a 64-bit object if we didn't find anything.
13085   if test -z "$lt_cv_aix_libpath__CXX"; then
13086     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13087   fi
13088 fi
13089 rm -f core conftest.err conftest.$ac_objext \
13090     conftest$ac_exeext conftest.$ac_ext
13091   if test -z "$lt_cv_aix_libpath__CXX"; then
13092     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13093   fi
13094
13095 fi
13096
13097   aix_libpath=$lt_cv_aix_libpath__CXX
13098 fi
13099
13100           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13101
13102           archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13103         else
13104           if test "$host_cpu" = ia64; then
13105             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13106             allow_undefined_flag_CXX="-z nodefs"
13107             archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
13108           else
13109             # Determine the default libpath from the value encoded in an
13110             # empty executable.
13111             if test "${lt_cv_aix_libpath+set}" = set; then
13112   aix_libpath=$lt_cv_aix_libpath
13113 else
13114   if ${lt_cv_aix_libpath__CXX+:} false; then :
13115   $as_echo_n "(cached) " >&6
13116 else
13117   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13118 /* end confdefs.h.  */
13119
13120 int
13121 main ()
13122 {
13123
13124   ;
13125   return 0;
13126 }
13127 _ACEOF
13128 if ac_fn_cxx_try_link "$LINENO"; then :
13129
13130   lt_aix_libpath_sed='
13131       /Import File Strings/,/^$/ {
13132           /^0/ {
13133               s/^0  *\([^ ]*\) *$/\1/
13134               p
13135           }
13136       }'
13137   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13138   # Check for a 64-bit object if we didn't find anything.
13139   if test -z "$lt_cv_aix_libpath__CXX"; then
13140     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13141   fi
13142 fi
13143 rm -f core conftest.err conftest.$ac_objext \
13144     conftest$ac_exeext conftest.$ac_ext
13145   if test -z "$lt_cv_aix_libpath__CXX"; then
13146     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13147   fi
13148
13149 fi
13150
13151   aix_libpath=$lt_cv_aix_libpath__CXX
13152 fi
13153
13154             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13155             # Warning - without using the other run time loading flags,
13156             # -berok will link without error, but may produce a broken library.
13157             no_undefined_flag_CXX=' ${wl}-bernotok'
13158             allow_undefined_flag_CXX=' ${wl}-berok'
13159             if test "$with_gnu_ld" = yes; then
13160               # We only use this code for GNU lds that support --whole-archive.
13161               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13162             else
13163               # Exported symbols can be pulled into shared objects from archives
13164               whole_archive_flag_spec_CXX='$convenience'
13165             fi
13166             archive_cmds_need_lc_CXX=yes
13167             # This is similar to how AIX traditionally builds its shared
13168             # libraries.
13169             archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13170           fi
13171         fi
13172         ;;
13173
13174       beos*)
13175         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13176           allow_undefined_flag_CXX=unsupported
13177           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13178           # support --undefined.  This deserves some investigation.  FIXME
13179           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13180         else
13181           ld_shlibs_CXX=no
13182         fi
13183         ;;
13184
13185       chorus*)
13186         case $cc_basename in
13187           *)
13188           # FIXME: insert proper C++ library support
13189           ld_shlibs_CXX=no
13190           ;;
13191         esac
13192         ;;
13193
13194       cygwin* | mingw* | pw32* | cegcc*)
13195         case $GXX,$cc_basename in
13196         ,cl* | no,cl*)
13197           # Native MSVC
13198           # hardcode_libdir_flag_spec is actually meaningless, as there is
13199           # no search path for DLLs.
13200           hardcode_libdir_flag_spec_CXX=' '
13201           allow_undefined_flag_CXX=unsupported
13202           always_export_symbols_CXX=yes
13203           file_list_spec_CXX='@'
13204           # Tell ltmain to make .lib files, not .a files.
13205           libext=lib
13206           # Tell ltmain to make .dll files, not .so files.
13207           shrext_cmds=".dll"
13208           # FIXME: Setting linknames here is a bad hack.
13209           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13210           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13211               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13212             else
13213               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13214             fi~
13215             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13216             linknames='
13217           # The linker will not automatically build a static lib if we build a DLL.
13218           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13219           enable_shared_with_static_runtimes_CXX=yes
13220           # Don't use ranlib
13221           old_postinstall_cmds_CXX='chmod 644 $oldlib'
13222           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13223             lt_tool_outputfile="@TOOL_OUTPUT@"~
13224             case $lt_outputfile in
13225               *.exe|*.EXE) ;;
13226               *)
13227                 lt_outputfile="$lt_outputfile.exe"
13228                 lt_tool_outputfile="$lt_tool_outputfile.exe"
13229                 ;;
13230             esac~
13231             func_to_tool_file "$lt_outputfile"~
13232             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13233               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13234               $RM "$lt_outputfile.manifest";
13235             fi'
13236           ;;
13237         *)
13238           # g++
13239           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13240           # as there is no search path for DLLs.
13241           hardcode_libdir_flag_spec_CXX='-L$libdir'
13242           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13243           allow_undefined_flag_CXX=unsupported
13244           always_export_symbols_CXX=no
13245           enable_shared_with_static_runtimes_CXX=yes
13246
13247           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13248             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13249             # If the export-symbols file already is a .def file (1st line
13250             # is EXPORTS), use it as is; otherwise, prepend...
13251             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13252               cp $export_symbols $output_objdir/$soname.def;
13253             else
13254               echo EXPORTS > $output_objdir/$soname.def;
13255               cat $export_symbols >> $output_objdir/$soname.def;
13256             fi~
13257             $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13258           else
13259             ld_shlibs_CXX=no
13260           fi
13261           ;;
13262         esac
13263         ;;
13264       darwin* | rhapsody*)
13265
13266
13267   archive_cmds_need_lc_CXX=no
13268   hardcode_direct_CXX=no
13269   hardcode_automatic_CXX=yes
13270   hardcode_shlibpath_var_CXX=unsupported
13271   if test "$lt_cv_ld_force_load" = "yes"; then
13272     whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13273
13274   else
13275     whole_archive_flag_spec_CXX=''
13276   fi
13277   link_all_deplibs_CXX=yes
13278   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13279   case $cc_basename in
13280      ifort*) _lt_dar_can_shared=yes ;;
13281      *) _lt_dar_can_shared=$GCC ;;
13282   esac
13283   if test "$_lt_dar_can_shared" = "yes"; then
13284     output_verbose_link_cmd=func_echo_all
13285     archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13286     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13287     archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
13288     module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
13289        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13290       archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
13291       archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
13292     fi
13293
13294   else
13295   ld_shlibs_CXX=no
13296   fi
13297
13298         ;;
13299
13300       dgux*)
13301         case $cc_basename in
13302           ec++*)
13303             # FIXME: insert proper C++ library support
13304             ld_shlibs_CXX=no
13305             ;;
13306           ghcx*)
13307             # Green Hills C++ Compiler
13308             # FIXME: insert proper C++ library support
13309             ld_shlibs_CXX=no
13310             ;;
13311           *)
13312             # FIXME: insert proper C++ library support
13313             ld_shlibs_CXX=no
13314             ;;
13315         esac
13316         ;;
13317
13318       freebsd2.*)
13319         # C++ shared libraries reported to be fairly broken before
13320         # switch to ELF
13321         ld_shlibs_CXX=no
13322         ;;
13323
13324       freebsd-elf*)
13325         archive_cmds_need_lc_CXX=no
13326         ;;
13327
13328       freebsd* | dragonfly*)
13329         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13330         # conventions
13331         ld_shlibs_CXX=yes
13332         ;;
13333
13334       gnu*)
13335         ;;
13336
13337       haiku*)
13338         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13339         link_all_deplibs_CXX=yes
13340         ;;
13341
13342       hpux9*)
13343         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13344         hardcode_libdir_separator_CXX=:
13345         export_dynamic_flag_spec_CXX='${wl}-E'
13346         hardcode_direct_CXX=yes
13347         hardcode_minus_L_CXX=yes # Not in the search PATH,
13348                                              # but as the default
13349                                              # location of the library.
13350
13351         case $cc_basename in
13352           CC*)
13353             # FIXME: insert proper C++ library support
13354             ld_shlibs_CXX=no
13355             ;;
13356           aCC*)
13357             archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13358             # Commands to make compiler produce verbose output that lists
13359             # what "hidden" libraries, object files and flags are used when
13360             # linking a shared library.
13361             #
13362             # There doesn't appear to be a way to prevent this compiler from
13363             # explicitly linking system object files so we need to strip them
13364             # from the output so that they don't get included in the library
13365             # dependencies.
13366             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13367             ;;
13368           *)
13369             if test "$GXX" = yes; then
13370               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13371             else
13372               # FIXME: insert proper C++ library support
13373               ld_shlibs_CXX=no
13374             fi
13375             ;;
13376         esac
13377         ;;
13378
13379       hpux10*|hpux11*)
13380         if test $with_gnu_ld = no; then
13381           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13382           hardcode_libdir_separator_CXX=:
13383
13384           case $host_cpu in
13385             hppa*64*|ia64*)
13386               ;;
13387             *)
13388               export_dynamic_flag_spec_CXX='${wl}-E'
13389               ;;
13390           esac
13391         fi
13392         case $host_cpu in
13393           hppa*64*|ia64*)
13394             hardcode_direct_CXX=no
13395             hardcode_shlibpath_var_CXX=no
13396             ;;
13397           *)
13398             hardcode_direct_CXX=yes
13399             hardcode_direct_absolute_CXX=yes
13400             hardcode_minus_L_CXX=yes # Not in the search PATH,
13401                                                  # but as the default
13402                                                  # location of the library.
13403             ;;
13404         esac
13405
13406         case $cc_basename in
13407           CC*)
13408             # FIXME: insert proper C++ library support
13409             ld_shlibs_CXX=no
13410             ;;
13411           aCC*)
13412             case $host_cpu in
13413               hppa*64*)
13414                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13415                 ;;
13416               ia64*)
13417                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13418                 ;;
13419               *)
13420                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13421                 ;;
13422             esac
13423             # Commands to make compiler produce verbose output that lists
13424             # what "hidden" libraries, object files and flags are used when
13425             # linking a shared library.
13426             #
13427             # There doesn't appear to be a way to prevent this compiler from
13428             # explicitly linking system object files so we need to strip them
13429             # from the output so that they don't get included in the library
13430             # dependencies.
13431             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13432             ;;
13433           *)
13434             if test "$GXX" = yes; then
13435               if test $with_gnu_ld = no; then
13436                 case $host_cpu in
13437                   hppa*64*)
13438                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13439                     ;;
13440                   ia64*)
13441                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13442                     ;;
13443                   *)
13444                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13445                     ;;
13446                 esac
13447               fi
13448             else
13449               # FIXME: insert proper C++ library support
13450               ld_shlibs_CXX=no
13451             fi
13452             ;;
13453         esac
13454         ;;
13455
13456       interix[3-9]*)
13457         hardcode_direct_CXX=no
13458         hardcode_shlibpath_var_CXX=no
13459         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13460         export_dynamic_flag_spec_CXX='${wl}-E'
13461         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13462         # Instead, shared libraries are loaded at an image base (0x10000000 by
13463         # default) and relocated if they conflict, which is a slow very memory
13464         # consuming and fragmenting process.  To avoid this, we pick a random,
13465         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13466         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13467         archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13468         archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13469         ;;
13470       irix5* | irix6*)
13471         case $cc_basename in
13472           CC*)
13473             # SGI C++
13474             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13475
13476             # Archives containing C++ object files must be created using
13477             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13478             # necessary to make sure instantiated templates are included
13479             # in the archive.
13480             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13481             ;;
13482           *)
13483             if test "$GXX" = yes; then
13484               if test "$with_gnu_ld" = no; then
13485                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
13486               else
13487                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
13488               fi
13489             fi
13490             link_all_deplibs_CXX=yes
13491             ;;
13492         esac
13493         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13494         hardcode_libdir_separator_CXX=:
13495         inherit_rpath_CXX=yes
13496         ;;
13497
13498       linux* | k*bsd*-gnu | kopensolaris*-gnu)
13499         case $cc_basename in
13500           KCC*)
13501             # Kuck and Associates, Inc. (KAI) C++ Compiler
13502
13503             # KCC will only create a shared library if the output file
13504             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13505             # to its proper name (with version) after linking.
13506             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13507             archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
13508             # Commands to make compiler produce verbose output that lists
13509             # what "hidden" libraries, object files and flags are used when
13510             # linking a shared library.
13511             #
13512             # There doesn't appear to be a way to prevent this compiler from
13513             # explicitly linking system object files so we need to strip them
13514             # from the output so that they don't get included in the library
13515             # dependencies.
13516             output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13517
13518             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13519             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13520
13521             # Archives containing C++ object files must be created using
13522             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13523             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13524             ;;
13525           icpc* | ecpc* )
13526             # Intel C++
13527             with_gnu_ld=yes
13528             # version 8.0 and above of icpc choke on multiply defined symbols
13529             # if we add $predep_objects and $postdep_objects, however 7.1 and
13530             # earlier do not add the objects themselves.
13531             case `$CC -V 2>&1` in
13532               *"Version 7."*)
13533                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13534                 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13535                 ;;
13536               *)  # Version 8.0 or newer
13537                 tmp_idyn=
13538                 case $host_cpu in
13539                   ia64*) tmp_idyn=' -i_dynamic';;
13540                 esac
13541                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13542                 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13543                 ;;
13544             esac
13545             archive_cmds_need_lc_CXX=no
13546             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13547             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13548             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13549             ;;
13550           pgCC* | pgcpp*)
13551             # Portland Group C++ compiler
13552             case `$CC -V` in
13553             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13554               prelink_cmds_CXX='tpldir=Template.dir~
13555                 rm -rf $tpldir~
13556                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13557                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13558               old_archive_cmds_CXX='tpldir=Template.dir~
13559                 rm -rf $tpldir~
13560                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13561                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13562                 $RANLIB $oldlib'
13563               archive_cmds_CXX='tpldir=Template.dir~
13564                 rm -rf $tpldir~
13565                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13566                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13567               archive_expsym_cmds_CXX='tpldir=Template.dir~
13568                 rm -rf $tpldir~
13569                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13570                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13571               ;;
13572             *) # Version 6 and above use weak symbols
13573               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13574               archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13575               ;;
13576             esac
13577
13578             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13579             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13580             whole_archive_flag_spec_CXX='${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'
13581             ;;
13582           cxx*)
13583             # Compaq C++
13584             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13585             archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
13586
13587             runpath_var=LD_RUN_PATH
13588             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13589             hardcode_libdir_separator_CXX=:
13590
13591             # Commands to make compiler produce verbose output that lists
13592             # what "hidden" libraries, object files and flags are used when
13593             # linking a shared library.
13594             #
13595             # There doesn't appear to be a way to prevent this compiler from
13596             # explicitly linking system object files so we need to strip them
13597             # from the output so that they don't get included in the library
13598             # dependencies.
13599             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
13600             ;;
13601           xl* | mpixl* | bgxl*)
13602             # IBM XL 8.0 on PPC, with GNU ld
13603             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13604             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13605             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13606             if test "x$supports_anon_versioning" = xyes; then
13607               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13608                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13609                 echo "local: *; };" >> $output_objdir/$libname.ver~
13610                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13611             fi
13612             ;;
13613           *)
13614             case `$CC -V 2>&1 | sed 5q` in
13615             *Sun\ C*)
13616               # Sun C++ 5.9
13617               no_undefined_flag_CXX=' -zdefs'
13618               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13619               archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13620               hardcode_libdir_flag_spec_CXX='-R$libdir'
13621               whole_archive_flag_spec_CXX='${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'
13622               compiler_needs_object_CXX=yes
13623
13624               # Not sure whether something based on
13625               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13626               # would be better.
13627               output_verbose_link_cmd='func_echo_all'
13628
13629               # Archives containing C++ object files must be created using
13630               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13631               # necessary to make sure instantiated templates are included
13632               # in the archive.
13633               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13634               ;;
13635             esac
13636             ;;
13637         esac
13638         ;;
13639
13640       lynxos*)
13641         # FIXME: insert proper C++ library support
13642         ld_shlibs_CXX=no
13643         ;;
13644
13645       m88k*)
13646         # FIXME: insert proper C++ library support
13647         ld_shlibs_CXX=no
13648         ;;
13649
13650       mvs*)
13651         case $cc_basename in
13652           cxx*)
13653             # FIXME: insert proper C++ library support
13654             ld_shlibs_CXX=no
13655             ;;
13656           *)
13657             # FIXME: insert proper C++ library support
13658             ld_shlibs_CXX=no
13659             ;;
13660         esac
13661         ;;
13662
13663       netbsd*)
13664         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13665           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13666           wlarc=
13667           hardcode_libdir_flag_spec_CXX='-R$libdir'
13668           hardcode_direct_CXX=yes
13669           hardcode_shlibpath_var_CXX=no
13670         fi
13671         # Workaround some broken pre-1.5 toolchains
13672         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13673         ;;
13674
13675       *nto* | *qnx*)
13676         ld_shlibs_CXX=yes
13677         ;;
13678
13679       openbsd2*)
13680         # C++ shared libraries are fairly broken
13681         ld_shlibs_CXX=no
13682         ;;
13683
13684       openbsd*)
13685         if test -f /usr/libexec/ld.so; then
13686           hardcode_direct_CXX=yes
13687           hardcode_shlibpath_var_CXX=no
13688           hardcode_direct_absolute_CXX=yes
13689           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13690           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13691           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13692             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13693             export_dynamic_flag_spec_CXX='${wl}-E'
13694             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13695           fi
13696           output_verbose_link_cmd=func_echo_all
13697         else
13698           ld_shlibs_CXX=no
13699         fi
13700         ;;
13701
13702       osf3* | osf4* | osf5*)
13703         case $cc_basename in
13704           KCC*)
13705             # Kuck and Associates, Inc. (KAI) C++ Compiler
13706
13707             # KCC will only create a shared library if the output file
13708             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13709             # to its proper name (with version) after linking.
13710             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13711
13712             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13713             hardcode_libdir_separator_CXX=:
13714
13715             # Archives containing C++ object files must be created using
13716             # the KAI C++ compiler.
13717             case $host in
13718               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13719               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13720             esac
13721             ;;
13722           RCC*)
13723             # Rational C++ 2.4.1
13724             # FIXME: insert proper C++ library support
13725             ld_shlibs_CXX=no
13726             ;;
13727           cxx*)
13728             case $host in
13729               osf3*)
13730                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13731                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13732                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13733                 ;;
13734               *)
13735                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13736                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13737                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13738                   echo "-hidden">> $lib.exp~
13739                   $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
13740                   $RM $lib.exp'
13741                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13742                 ;;
13743             esac
13744
13745             hardcode_libdir_separator_CXX=:
13746
13747             # Commands to make compiler produce verbose output that lists
13748             # what "hidden" libraries, object files and flags are used when
13749             # linking a shared library.
13750             #
13751             # There doesn't appear to be a way to prevent this compiler from
13752             # explicitly linking system object files so we need to strip them
13753             # from the output so that they don't get included in the library
13754             # dependencies.
13755             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13756             ;;
13757           *)
13758             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13759               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13760               case $host in
13761                 osf3*)
13762                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
13763                   ;;
13764                 *)
13765                   archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
13766                   ;;
13767               esac
13768
13769               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13770               hardcode_libdir_separator_CXX=:
13771
13772               # Commands to make compiler produce verbose output that lists
13773               # what "hidden" libraries, object files and flags are used when
13774               # linking a shared library.
13775               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13776
13777             else
13778               # FIXME: insert proper C++ library support
13779               ld_shlibs_CXX=no
13780             fi
13781             ;;
13782         esac
13783         ;;
13784
13785       psos*)
13786         # FIXME: insert proper C++ library support
13787         ld_shlibs_CXX=no
13788         ;;
13789
13790       sunos4*)
13791         case $cc_basename in
13792           CC*)
13793             # Sun C++ 4.x
13794             # FIXME: insert proper C++ library support
13795             ld_shlibs_CXX=no
13796             ;;
13797           lcc*)
13798             # Lucid
13799             # FIXME: insert proper C++ library support
13800             ld_shlibs_CXX=no
13801             ;;
13802           *)
13803             # FIXME: insert proper C++ library support
13804             ld_shlibs_CXX=no
13805             ;;
13806         esac
13807         ;;
13808
13809       solaris*)
13810         case $cc_basename in
13811           CC* | sunCC*)
13812             # Sun C++ 4.2, 5.x and Centerline C++
13813             archive_cmds_need_lc_CXX=yes
13814             no_undefined_flag_CXX=' -zdefs'
13815             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13816             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13817               $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13818
13819             hardcode_libdir_flag_spec_CXX='-R$libdir'
13820             hardcode_shlibpath_var_CXX=no
13821             case $host_os in
13822               solaris2.[0-5] | solaris2.[0-5].*) ;;
13823               *)
13824                 # The compiler driver will combine and reorder linker options,
13825                 # but understands `-z linker_flag'.
13826                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13827                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13828                 ;;
13829             esac
13830             link_all_deplibs_CXX=yes
13831
13832             output_verbose_link_cmd='func_echo_all'
13833
13834             # Archives containing C++ object files must be created using
13835             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13836             # necessary to make sure instantiated templates are included
13837             # in the archive.
13838             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13839             ;;
13840           gcx*)
13841             # Green Hills C++ Compiler
13842             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13843
13844             # The C++ compiler must be used to create the archive.
13845             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13846             ;;
13847           *)
13848             # GNU C++ compiler with Solaris linker
13849             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13850               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13851               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13852                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13853                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13854                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13855
13856                 # Commands to make compiler produce verbose output that lists
13857                 # what "hidden" libraries, object files and flags are used when
13858                 # linking a shared library.
13859                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13860               else
13861                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13862                 # platform.
13863                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13864                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13865                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13866
13867                 # Commands to make compiler produce verbose output that lists
13868                 # what "hidden" libraries, object files and flags are used when
13869                 # linking a shared library.
13870                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13871               fi
13872
13873               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13874               case $host_os in
13875                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13876                 *)
13877                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13878                   ;;
13879               esac
13880             fi
13881             ;;
13882         esac
13883         ;;
13884
13885     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13886       no_undefined_flag_CXX='${wl}-z,text'
13887       archive_cmds_need_lc_CXX=no
13888       hardcode_shlibpath_var_CXX=no
13889       runpath_var='LD_RUN_PATH'
13890
13891       case $cc_basename in
13892         CC*)
13893           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13894           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13895           ;;
13896         *)
13897           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13898           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13899           ;;
13900       esac
13901       ;;
13902
13903       sysv5* | sco3.2v5* | sco5v6*)
13904         # Note: We can NOT use -z defs as we might desire, because we do not
13905         # link with -lc, and that would cause any symbols used from libc to
13906         # always be unresolved, which means just about no library would
13907         # ever link correctly.  If we're not using GNU ld we use -z text
13908         # though, which does catch some bad symbols but isn't as heavy-handed
13909         # as -z defs.
13910         no_undefined_flag_CXX='${wl}-z,text'
13911         allow_undefined_flag_CXX='${wl}-z,nodefs'
13912         archive_cmds_need_lc_CXX=no
13913         hardcode_shlibpath_var_CXX=no
13914         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13915         hardcode_libdir_separator_CXX=':'
13916         link_all_deplibs_CXX=yes
13917         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13918         runpath_var='LD_RUN_PATH'
13919
13920         case $cc_basename in
13921           CC*)
13922             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13923             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13924             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13925               '"$old_archive_cmds_CXX"
13926             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13927               '"$reload_cmds_CXX"
13928             ;;
13929           *)
13930             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13931             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13932             ;;
13933         esac
13934       ;;
13935
13936       tandem*)
13937         case $cc_basename in
13938           NCC*)
13939             # NonStop-UX NCC 3.20
13940             # FIXME: insert proper C++ library support
13941             ld_shlibs_CXX=no
13942             ;;
13943           *)
13944             # FIXME: insert proper C++ library support
13945             ld_shlibs_CXX=no
13946             ;;
13947         esac
13948         ;;
13949
13950       vxworks*)
13951         # FIXME: insert proper C++ library support
13952         ld_shlibs_CXX=no
13953         ;;
13954
13955       *)
13956         # FIXME: insert proper C++ library support
13957         ld_shlibs_CXX=no
13958         ;;
13959     esac
13960
13961     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13962 $as_echo "$ld_shlibs_CXX" >&6; }
13963     test "$ld_shlibs_CXX" = no && can_build_shared=no
13964
13965     GCC_CXX="$GXX"
13966     LD_CXX="$LD"
13967
13968     ## CAVEAT EMPTOR:
13969     ## There is no encapsulation within the following macros, do not change
13970     ## the running order or otherwise move them around unless you know exactly
13971     ## what you are doing...
13972     # Dependencies to place before and after the object being linked:
13973 predep_objects_CXX=
13974 postdep_objects_CXX=
13975 predeps_CXX=
13976 postdeps_CXX=
13977 compiler_lib_search_path_CXX=
13978
13979 cat > conftest.$ac_ext <<_LT_EOF
13980 class Foo
13981 {
13982 public:
13983   Foo (void) { a = 0; }
13984 private:
13985   int a;
13986 };
13987 _LT_EOF
13988
13989
13990 _lt_libdeps_save_CFLAGS=$CFLAGS
13991 case "$CC $CFLAGS " in #(
13992 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13993 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13994 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13995 esac
13996
13997 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13998   (eval $ac_compile) 2>&5
13999   ac_status=$?
14000   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14001   test $ac_status = 0; }; then
14002   # Parse the compiler output and extract the necessary
14003   # objects, libraries and library flags.
14004
14005   # Sentinel used to keep track of whether or not we are before
14006   # the conftest object file.
14007   pre_test_object_deps_done=no
14008
14009   for p in `eval "$output_verbose_link_cmd"`; do
14010     case ${prev}${p} in
14011
14012     -L* | -R* | -l*)
14013        # Some compilers place space between "-{L,R}" and the path.
14014        # Remove the space.
14015        if test $p = "-L" ||
14016           test $p = "-R"; then
14017          prev=$p
14018          continue
14019        fi
14020
14021        # Expand the sysroot to ease extracting the directories later.
14022        if test -z "$prev"; then
14023          case $p in
14024          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14025          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14026          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14027          esac
14028        fi
14029        case $p in
14030        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14031        esac
14032        if test "$pre_test_object_deps_done" = no; then
14033          case ${prev} in
14034          -L | -R)
14035            # Internal compiler library paths should come after those
14036            # provided the user.  The postdeps already come after the
14037            # user supplied libs so there is no need to process them.
14038            if test -z "$compiler_lib_search_path_CXX"; then
14039              compiler_lib_search_path_CXX="${prev}${p}"
14040            else
14041              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14042            fi
14043            ;;
14044          # The "-l" case would never come before the object being
14045          # linked, so don't bother handling this case.
14046          esac
14047        else
14048          if test -z "$postdeps_CXX"; then
14049            postdeps_CXX="${prev}${p}"
14050          else
14051            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14052          fi
14053        fi
14054        prev=
14055        ;;
14056
14057     *.lto.$objext) ;; # Ignore GCC LTO objects
14058     *.$objext)
14059        # This assumes that the test object file only shows up
14060        # once in the compiler output.
14061        if test "$p" = "conftest.$objext"; then
14062          pre_test_object_deps_done=yes
14063          continue
14064        fi
14065
14066        if test "$pre_test_object_deps_done" = no; then
14067          if test -z "$predep_objects_CXX"; then
14068            predep_objects_CXX="$p"
14069          else
14070            predep_objects_CXX="$predep_objects_CXX $p"
14071          fi
14072        else
14073          if test -z "$postdep_objects_CXX"; then
14074            postdep_objects_CXX="$p"
14075          else
14076            postdep_objects_CXX="$postdep_objects_CXX $p"
14077          fi
14078        fi
14079        ;;
14080
14081     *) ;; # Ignore the rest.
14082
14083     esac
14084   done
14085
14086   # Clean up.
14087   rm -f a.out a.exe
14088 else
14089   echo "libtool.m4: error: problem compiling CXX test program"
14090 fi
14091
14092 $RM -f confest.$objext
14093 CFLAGS=$_lt_libdeps_save_CFLAGS
14094
14095 # PORTME: override above test on systems where it is broken
14096 case $host_os in
14097 interix[3-9]*)
14098   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14099   # hack all around it, let's just trust "g++" to DTRT.
14100   predep_objects_CXX=
14101   postdep_objects_CXX=
14102   postdeps_CXX=
14103   ;;
14104
14105 linux*)
14106   case `$CC -V 2>&1 | sed 5q` in
14107   *Sun\ C*)
14108     # Sun C++ 5.9
14109
14110     # The more standards-conforming stlport4 library is
14111     # incompatible with the Cstd library. Avoid specifying
14112     # it if it's in CXXFLAGS. Ignore libCrun as
14113     # -library=stlport4 depends on it.
14114     case " $CXX $CXXFLAGS " in
14115     *" -library=stlport4 "*)
14116       solaris_use_stlport4=yes
14117       ;;
14118     esac
14119
14120     if test "$solaris_use_stlport4" != yes; then
14121       postdeps_CXX='-library=Cstd -library=Crun'
14122     fi
14123     ;;
14124   esac
14125   ;;
14126
14127 solaris*)
14128   case $cc_basename in
14129   CC* | sunCC*)
14130     # The more standards-conforming stlport4 library is
14131     # incompatible with the Cstd library. Avoid specifying
14132     # it if it's in CXXFLAGS. Ignore libCrun as
14133     # -library=stlport4 depends on it.
14134     case " $CXX $CXXFLAGS " in
14135     *" -library=stlport4 "*)
14136       solaris_use_stlport4=yes
14137       ;;
14138     esac
14139
14140     # Adding this requires a known-good setup of shared libraries for
14141     # Sun compiler versions before 5.6, else PIC objects from an old
14142     # archive will be linked into the output, leading to subtle bugs.
14143     if test "$solaris_use_stlport4" != yes; then
14144       postdeps_CXX='-library=Cstd -library=Crun'
14145     fi
14146     ;;
14147   esac
14148   ;;
14149 esac
14150
14151
14152 case " $postdeps_CXX " in
14153 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14154 esac
14155  compiler_lib_search_dirs_CXX=
14156 if test -n "${compiler_lib_search_path_CXX}"; then
14157  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14158 fi
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190     lt_prog_compiler_wl_CXX=
14191 lt_prog_compiler_pic_CXX=
14192 lt_prog_compiler_static_CXX=
14193
14194
14195   # C++ specific cases for pic, static, wl, etc.
14196   if test "$GXX" = yes; then
14197     lt_prog_compiler_wl_CXX='-Wl,'
14198     lt_prog_compiler_static_CXX='-static'
14199
14200     case $host_os in
14201     aix*)
14202       # All AIX code is PIC.
14203       if test "$host_cpu" = ia64; then
14204         # AIX 5 now supports IA64 processor
14205         lt_prog_compiler_static_CXX='-Bstatic'
14206       fi
14207       ;;
14208
14209     amigaos*)
14210       case $host_cpu in
14211       powerpc)
14212             # see comment about AmigaOS4 .so support
14213             lt_prog_compiler_pic_CXX='-fPIC'
14214         ;;
14215       m68k)
14216             # FIXME: we need at least 68020 code to build shared libraries, but
14217             # adding the `-m68020' flag to GCC prevents building anything better,
14218             # like `-m68040'.
14219             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14220         ;;
14221       esac
14222       ;;
14223
14224     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14225       # PIC is the default for these OSes.
14226       ;;
14227     mingw* | cygwin* | os2* | pw32* | cegcc*)
14228       # This hack is so that the source file can tell whether it is being
14229       # built for inclusion in a dll (and should export symbols for example).
14230       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14231       # (--disable-auto-import) libraries
14232       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14233       ;;
14234     darwin* | rhapsody*)
14235       # PIC is the default on this platform
14236       # Common symbols not allowed in MH_DYLIB files
14237       lt_prog_compiler_pic_CXX='-fno-common'
14238       ;;
14239     *djgpp*)
14240       # DJGPP does not support shared libraries at all
14241       lt_prog_compiler_pic_CXX=
14242       ;;
14243     haiku*)
14244       # PIC is the default for Haiku.
14245       # The "-static" flag exists, but is broken.
14246       lt_prog_compiler_static_CXX=
14247       ;;
14248     interix[3-9]*)
14249       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14250       # Instead, we relocate shared libraries at runtime.
14251       ;;
14252     sysv4*MP*)
14253       if test -d /usr/nec; then
14254         lt_prog_compiler_pic_CXX=-Kconform_pic
14255       fi
14256       ;;
14257     hpux*)
14258       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14259       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14260       # sets the default TLS model and affects inlining.
14261       case $host_cpu in
14262       hppa*64*)
14263         ;;
14264       *)
14265         lt_prog_compiler_pic_CXX='-fPIC'
14266         ;;
14267       esac
14268       ;;
14269     *qnx* | *nto*)
14270       # QNX uses GNU C++, but need to define -shared option too, otherwise
14271       # it will coredump.
14272       lt_prog_compiler_pic_CXX='-fPIC -shared'
14273       ;;
14274     *)
14275       lt_prog_compiler_pic_CXX='-fPIC'
14276       ;;
14277     esac
14278   else
14279     case $host_os in
14280       aix[4-9]*)
14281         # All AIX code is PIC.
14282         if test "$host_cpu" = ia64; then
14283           # AIX 5 now supports IA64 processor
14284           lt_prog_compiler_static_CXX='-Bstatic'
14285         else
14286           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14287         fi
14288         ;;
14289       chorus*)
14290         case $cc_basename in
14291         cxch68*)
14292           # Green Hills C++ Compiler
14293           # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
14294           ;;
14295         esac
14296         ;;
14297       mingw* | cygwin* | os2* | pw32* | cegcc*)
14298         # This hack is so that the source file can tell whether it is being
14299         # built for inclusion in a dll (and should export symbols for example).
14300         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14301         ;;
14302       dgux*)
14303         case $cc_basename in
14304           ec++*)
14305             lt_prog_compiler_pic_CXX='-KPIC'
14306             ;;
14307           ghcx*)
14308             # Green Hills C++ Compiler
14309             lt_prog_compiler_pic_CXX='-pic'
14310             ;;
14311           *)
14312             ;;
14313         esac
14314         ;;
14315       freebsd* | dragonfly*)
14316         # FreeBSD uses GNU C++
14317         ;;
14318       hpux9* | hpux10* | hpux11*)
14319         case $cc_basename in
14320           CC*)
14321             lt_prog_compiler_wl_CXX='-Wl,'
14322             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14323             if test "$host_cpu" != ia64; then
14324               lt_prog_compiler_pic_CXX='+Z'
14325             fi
14326             ;;
14327           aCC*)
14328             lt_prog_compiler_wl_CXX='-Wl,'
14329             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14330             case $host_cpu in
14331             hppa*64*|ia64*)
14332               # +Z the default
14333               ;;
14334             *)
14335               lt_prog_compiler_pic_CXX='+Z'
14336               ;;
14337             esac
14338             ;;
14339           *)
14340             ;;
14341         esac
14342         ;;
14343       interix*)
14344         # This is c89, which is MS Visual C++ (no shared libs)
14345         # Anyone wants to do a port?
14346         ;;
14347       irix5* | irix6* | nonstopux*)
14348         case $cc_basename in
14349           CC*)
14350             lt_prog_compiler_wl_CXX='-Wl,'
14351             lt_prog_compiler_static_CXX='-non_shared'
14352             # CC pic flag -KPIC is the default.
14353             ;;
14354           *)
14355             ;;
14356         esac
14357         ;;
14358       linux* | k*bsd*-gnu | kopensolaris*-gnu)
14359         case $cc_basename in
14360           KCC*)
14361             # KAI C++ Compiler
14362             lt_prog_compiler_wl_CXX='--backend -Wl,'
14363             lt_prog_compiler_pic_CXX='-fPIC'
14364             ;;
14365           ecpc* )
14366             # old Intel C++ for x86_64 which still supported -KPIC.
14367             lt_prog_compiler_wl_CXX='-Wl,'
14368             lt_prog_compiler_pic_CXX='-KPIC'
14369             lt_prog_compiler_static_CXX='-static'
14370             ;;
14371           icpc* )
14372             # Intel C++, used to be incompatible with GCC.
14373             # ICC 10 doesn't accept -KPIC any more.
14374             lt_prog_compiler_wl_CXX='-Wl,'
14375             lt_prog_compiler_pic_CXX='-fPIC'
14376             lt_prog_compiler_static_CXX='-static'
14377             ;;
14378           pgCC* | pgcpp*)
14379             # Portland Group C++ compiler
14380             lt_prog_compiler_wl_CXX='-Wl,'
14381             lt_prog_compiler_pic_CXX='-fpic'
14382             lt_prog_compiler_static_CXX='-Bstatic'
14383             ;;
14384           cxx*)
14385             # Compaq C++
14386             # Make sure the PIC flag is empty.  It appears that all Alpha
14387             # Linux and Compaq Tru64 Unix objects are PIC.
14388             lt_prog_compiler_pic_CXX=
14389             lt_prog_compiler_static_CXX='-non_shared'
14390             ;;
14391           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14392             # IBM XL 8.0, 9.0 on PPC and BlueGene
14393             lt_prog_compiler_wl_CXX='-Wl,'
14394             lt_prog_compiler_pic_CXX='-qpic'
14395             lt_prog_compiler_static_CXX='-qstaticlink'
14396             ;;
14397           *)
14398             case `$CC -V 2>&1 | sed 5q` in
14399             *Sun\ C*)
14400               # Sun C++ 5.9
14401               lt_prog_compiler_pic_CXX='-KPIC'
14402               lt_prog_compiler_static_CXX='-Bstatic'
14403               lt_prog_compiler_wl_CXX='-Qoption ld '
14404               ;;
14405             esac
14406             ;;
14407         esac
14408         ;;
14409       lynxos*)
14410         ;;
14411       m88k*)
14412         ;;
14413       mvs*)
14414         case $cc_basename in
14415           cxx*)
14416             lt_prog_compiler_pic_CXX='-W c,exportall'
14417             ;;
14418           *)
14419             ;;
14420         esac
14421         ;;
14422       netbsd*)
14423         ;;
14424       *qnx* | *nto*)
14425         # QNX uses GNU C++, but need to define -shared option too, otherwise
14426         # it will coredump.
14427         lt_prog_compiler_pic_CXX='-fPIC -shared'
14428         ;;
14429       osf3* | osf4* | osf5*)
14430         case $cc_basename in
14431           KCC*)
14432             lt_prog_compiler_wl_CXX='--backend -Wl,'
14433             ;;
14434           RCC*)
14435             # Rational C++ 2.4.1
14436             lt_prog_compiler_pic_CXX='-pic'
14437             ;;
14438           cxx*)
14439             # Digital/Compaq C++
14440             lt_prog_compiler_wl_CXX='-Wl,'
14441             # Make sure the PIC flag is empty.  It appears that all Alpha
14442             # Linux and Compaq Tru64 Unix objects are PIC.
14443             lt_prog_compiler_pic_CXX=
14444             lt_prog_compiler_static_CXX='-non_shared'
14445             ;;
14446           *)
14447             ;;
14448         esac
14449         ;;
14450       psos*)
14451         ;;
14452       solaris*)
14453         case $cc_basename in
14454           CC* | sunCC*)
14455             # Sun C++ 4.2, 5.x and Centerline C++
14456             lt_prog_compiler_pic_CXX='-KPIC'
14457             lt_prog_compiler_static_CXX='-Bstatic'
14458             lt_prog_compiler_wl_CXX='-Qoption ld '
14459             ;;
14460           gcx*)
14461             # Green Hills C++ Compiler
14462             lt_prog_compiler_pic_CXX='-PIC'
14463             ;;
14464           *)
14465             ;;
14466         esac
14467         ;;
14468       sunos4*)
14469         case $cc_basename in
14470           CC*)
14471             # Sun C++ 4.x
14472             lt_prog_compiler_pic_CXX='-pic'
14473             lt_prog_compiler_static_CXX='-Bstatic'
14474             ;;
14475           lcc*)
14476             # Lucid
14477             lt_prog_compiler_pic_CXX='-pic'
14478             ;;
14479           *)
14480             ;;
14481         esac
14482         ;;
14483       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14484         case $cc_basename in
14485           CC*)
14486             lt_prog_compiler_wl_CXX='-Wl,'
14487             lt_prog_compiler_pic_CXX='-KPIC'
14488             lt_prog_compiler_static_CXX='-Bstatic'
14489             ;;
14490         esac
14491         ;;
14492       tandem*)
14493         case $cc_basename in
14494           NCC*)
14495             # NonStop-UX NCC 3.20
14496             lt_prog_compiler_pic_CXX='-KPIC'
14497             ;;
14498           *)
14499             ;;
14500         esac
14501         ;;
14502       vxworks*)
14503         ;;
14504       *)
14505         lt_prog_compiler_can_build_shared_CXX=no
14506         ;;
14507     esac
14508   fi
14509
14510 case $host_os in
14511   # For platforms which do not support PIC, -DPIC is meaningless:
14512   *djgpp*)
14513     lt_prog_compiler_pic_CXX=
14514     ;;
14515   *)
14516     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14517     ;;
14518 esac
14519
14520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14521 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14522 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14523   $as_echo_n "(cached) " >&6
14524 else
14525   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14526 fi
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14528 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14529 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14530
14531 #
14532 # Check to make sure the PIC flag actually works.
14533 #
14534 if test -n "$lt_prog_compiler_pic_CXX"; then
14535   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14536 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14537 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14538   $as_echo_n "(cached) " >&6
14539 else
14540   lt_cv_prog_compiler_pic_works_CXX=no
14541    ac_outfile=conftest.$ac_objext
14542    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14543    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14544    # Insert the option either (1) after the last *FLAGS variable, or
14545    # (2) before a word containing "conftest.", or (3) at the end.
14546    # Note that $ac_compile itself does not contain backslashes and begins
14547    # with a dollar sign (not a hyphen), so the echo should work correctly.
14548    # The option is referenced via a variable to avoid confusing sed.
14549    lt_compile=`echo "$ac_compile" | $SED \
14550    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14551    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14552    -e 's:$: $lt_compiler_flag:'`
14553    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14554    (eval "$lt_compile" 2>conftest.err)
14555    ac_status=$?
14556    cat conftest.err >&5
14557    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14558    if (exit $ac_status) && test -s "$ac_outfile"; then
14559      # The compiler can only warn and ignore the option if not recognized
14560      # So say no if there are warnings other than the usual output.
14561      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14562      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14563      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14564        lt_cv_prog_compiler_pic_works_CXX=yes
14565      fi
14566    fi
14567    $RM conftest*
14568
14569 fi
14570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14571 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14572
14573 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14574     case $lt_prog_compiler_pic_CXX in
14575      "" | " "*) ;;
14576      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14577      esac
14578 else
14579     lt_prog_compiler_pic_CXX=
14580      lt_prog_compiler_can_build_shared_CXX=no
14581 fi
14582
14583 fi
14584
14585
14586
14587
14588
14589 #
14590 # Check to make sure the static flag actually works.
14591 #
14592 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14594 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14595 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14596   $as_echo_n "(cached) " >&6
14597 else
14598   lt_cv_prog_compiler_static_works_CXX=no
14599    save_LDFLAGS="$LDFLAGS"
14600    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14601    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14602    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14603      # The linker can only warn and ignore the option if not recognized
14604      # So say no if there are warnings
14605      if test -s conftest.err; then
14606        # Append any errors to the config.log.
14607        cat conftest.err 1>&5
14608        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14609        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14610        if diff conftest.exp conftest.er2 >/dev/null; then
14611          lt_cv_prog_compiler_static_works_CXX=yes
14612        fi
14613      else
14614        lt_cv_prog_compiler_static_works_CXX=yes
14615      fi
14616    fi
14617    $RM -r conftest*
14618    LDFLAGS="$save_LDFLAGS"
14619
14620 fi
14621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14622 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14623
14624 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14625     :
14626 else
14627     lt_prog_compiler_static_CXX=
14628 fi
14629
14630
14631
14632
14633     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14634 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14635 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14636   $as_echo_n "(cached) " >&6
14637 else
14638   lt_cv_prog_compiler_c_o_CXX=no
14639    $RM -r conftest 2>/dev/null
14640    mkdir conftest
14641    cd conftest
14642    mkdir out
14643    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14644
14645    lt_compiler_flag="-o out/conftest2.$ac_objext"
14646    # Insert the option either (1) after the last *FLAGS variable, or
14647    # (2) before a word containing "conftest.", or (3) at the end.
14648    # Note that $ac_compile itself does not contain backslashes and begins
14649    # with a dollar sign (not a hyphen), so the echo should work correctly.
14650    lt_compile=`echo "$ac_compile" | $SED \
14651    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14652    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14653    -e 's:$: $lt_compiler_flag:'`
14654    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14655    (eval "$lt_compile" 2>out/conftest.err)
14656    ac_status=$?
14657    cat out/conftest.err >&5
14658    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14660    then
14661      # The compiler can only warn and ignore the option if not recognized
14662      # So say no if there are warnings
14663      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14664      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14665      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14666        lt_cv_prog_compiler_c_o_CXX=yes
14667      fi
14668    fi
14669    chmod u+w . 2>&5
14670    $RM conftest*
14671    # SGI C++ compiler will create directory out/ii_files/ for
14672    # template instantiation
14673    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14674    $RM out/* && rmdir out
14675    cd ..
14676    $RM -r conftest
14677    $RM conftest*
14678
14679 fi
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14681 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14682
14683
14684
14685     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14686 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14687 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14688   $as_echo_n "(cached) " >&6
14689 else
14690   lt_cv_prog_compiler_c_o_CXX=no
14691    $RM -r conftest 2>/dev/null
14692    mkdir conftest
14693    cd conftest
14694    mkdir out
14695    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14696
14697    lt_compiler_flag="-o out/conftest2.$ac_objext"
14698    # Insert the option either (1) after the last *FLAGS variable, or
14699    # (2) before a word containing "conftest.", or (3) at the end.
14700    # Note that $ac_compile itself does not contain backslashes and begins
14701    # with a dollar sign (not a hyphen), so the echo should work correctly.
14702    lt_compile=`echo "$ac_compile" | $SED \
14703    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14704    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14705    -e 's:$: $lt_compiler_flag:'`
14706    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14707    (eval "$lt_compile" 2>out/conftest.err)
14708    ac_status=$?
14709    cat out/conftest.err >&5
14710    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14712    then
14713      # The compiler can only warn and ignore the option if not recognized
14714      # So say no if there are warnings
14715      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14716      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14717      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14718        lt_cv_prog_compiler_c_o_CXX=yes
14719      fi
14720    fi
14721    chmod u+w . 2>&5
14722    $RM conftest*
14723    # SGI C++ compiler will create directory out/ii_files/ for
14724    # template instantiation
14725    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14726    $RM out/* && rmdir out
14727    cd ..
14728    $RM -r conftest
14729    $RM conftest*
14730
14731 fi
14732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14733 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14734
14735
14736
14737
14738 hard_links="nottested"
14739 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14740   # do not overwrite the value of need_locks provided by the user
14741   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14742 $as_echo_n "checking if we can lock with hard links... " >&6; }
14743   hard_links=yes
14744   $RM conftest*
14745   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14746   touch conftest.a
14747   ln conftest.a conftest.b 2>&5 || hard_links=no
14748   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14750 $as_echo "$hard_links" >&6; }
14751   if test "$hard_links" = no; then
14752     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14753 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14754     need_locks=warn
14755   fi
14756 else
14757   need_locks=no
14758 fi
14759
14760
14761
14762     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14763 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14764
14765   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14766   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14767   case $host_os in
14768   aix[4-9]*)
14769     # If we're using GNU nm, then we don't want the "-C" option.
14770     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14771     # Also, AIX nm treats weak defined symbols like other global defined
14772     # symbols, whereas GNU nm marks them as "W".
14773     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14774       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14775     else
14776       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14777     fi
14778     ;;
14779   pw32*)
14780     export_symbols_cmds_CXX="$ltdll_cmds"
14781     ;;
14782   cygwin* | mingw* | cegcc*)
14783     case $cc_basename in
14784     cl*)
14785       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14786       ;;
14787     *)
14788       export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14789       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14790       ;;
14791     esac
14792     ;;
14793   *)
14794     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14795     ;;
14796   esac
14797
14798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14799 $as_echo "$ld_shlibs_CXX" >&6; }
14800 test "$ld_shlibs_CXX" = no && can_build_shared=no
14801
14802 with_gnu_ld_CXX=$with_gnu_ld
14803
14804
14805
14806
14807
14808
14809 #
14810 # Do we need to explicitly link libc?
14811 #
14812 case "x$archive_cmds_need_lc_CXX" in
14813 x|xyes)
14814   # Assume -lc should be added
14815   archive_cmds_need_lc_CXX=yes
14816
14817   if test "$enable_shared" = yes && test "$GCC" = yes; then
14818     case $archive_cmds_CXX in
14819     *'~'*)
14820       # FIXME: we may have to deal with multi-command sequences.
14821       ;;
14822     '$CC '*)
14823       # Test whether the compiler implicitly links with -lc since on some
14824       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14825       # to ld, don't add -lc before -lgcc.
14826       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14827 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14828 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14829   $as_echo_n "(cached) " >&6
14830 else
14831   $RM conftest*
14832         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14833
14834         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14835   (eval $ac_compile) 2>&5
14836   ac_status=$?
14837   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14838   test $ac_status = 0; } 2>conftest.err; then
14839           soname=conftest
14840           lib=conftest
14841           libobjs=conftest.$ac_objext
14842           deplibs=
14843           wl=$lt_prog_compiler_wl_CXX
14844           pic_flag=$lt_prog_compiler_pic_CXX
14845           compiler_flags=-v
14846           linker_flags=-v
14847           verstring=
14848           output_objdir=.
14849           libname=conftest
14850           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14851           allow_undefined_flag_CXX=
14852           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14853   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14854   ac_status=$?
14855   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14856   test $ac_status = 0; }
14857           then
14858             lt_cv_archive_cmds_need_lc_CXX=no
14859           else
14860             lt_cv_archive_cmds_need_lc_CXX=yes
14861           fi
14862           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14863         else
14864           cat conftest.err 1>&5
14865         fi
14866         $RM conftest*
14867
14868 fi
14869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14870 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14871       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14872       ;;
14873     esac
14874   fi
14875   ;;
14876 esac
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890
14891
14892
14893
14894
14895
14896
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14940 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14941
14942 library_names_spec=
14943 libname_spec='lib$name'
14944 soname_spec=
14945 shrext_cmds=".so"
14946 postinstall_cmds=
14947 postuninstall_cmds=
14948 finish_cmds=
14949 finish_eval=
14950 shlibpath_var=
14951 shlibpath_overrides_runpath=unknown
14952 version_type=none
14953 dynamic_linker="$host_os ld.so"
14954 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14955 need_lib_prefix=unknown
14956 hardcode_into_libs=no
14957
14958 # when you set need_version to no, make sure it does not cause -set_version
14959 # flags to be left without arguments
14960 need_version=unknown
14961
14962 case $host_os in
14963 aix3*)
14964   version_type=linux # correct to gnu/linux during the next big refactor
14965   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14966   shlibpath_var=LIBPATH
14967
14968   # AIX 3 has no versioning support, so we append a major version to the name.
14969   soname_spec='${libname}${release}${shared_ext}$major'
14970   ;;
14971
14972 aix[4-9]*)
14973   version_type=linux # correct to gnu/linux during the next big refactor
14974   need_lib_prefix=no
14975   need_version=no
14976   hardcode_into_libs=yes
14977   if test "$host_cpu" = ia64; then
14978     # AIX 5 supports IA64
14979     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14980     shlibpath_var=LD_LIBRARY_PATH
14981   else
14982     # With GCC up to 2.95.x, collect2 would create an import file
14983     # for dependence libraries.  The import file would start with
14984     # the line `#! .'.  This would cause the generated library to
14985     # depend on `.', always an invalid library.  This was fixed in
14986     # development snapshots of GCC prior to 3.0.
14987     case $host_os in
14988       aix4 | aix4.[01] | aix4.[01].*)
14989       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14990            echo ' yes '
14991            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14992         :
14993       else
14994         can_build_shared=no
14995       fi
14996       ;;
14997     esac
14998     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14999     # soname into executable. Probably we can add versioning support to
15000     # collect2, so additional links can be useful in future.
15001     if test "$aix_use_runtimelinking" = yes; then
15002       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15003       # instead of lib<name>.a to let people know that these are not
15004       # typical AIX shared libraries.
15005       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15006     else
15007       # We preserve .a as extension for shared libraries through AIX4.2
15008       # and later when we are not doing run time linking.
15009       library_names_spec='${libname}${release}.a $libname.a'
15010       soname_spec='${libname}${release}${shared_ext}$major'
15011     fi
15012     shlibpath_var=LIBPATH
15013   fi
15014   ;;
15015
15016 amigaos*)
15017   case $host_cpu in
15018   powerpc)
15019     # Since July 2007 AmigaOS4 officially supports .so libraries.
15020     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15021     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15022     ;;
15023   m68k)
15024     library_names_spec='$libname.ixlibrary $libname.a'
15025     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15026     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'
15027     ;;
15028   esac
15029   ;;
15030
15031 beos*)
15032   library_names_spec='${libname}${shared_ext}'
15033   dynamic_linker="$host_os ld.so"
15034   shlibpath_var=LIBRARY_PATH
15035   ;;
15036
15037 bsdi[45]*)
15038   version_type=linux # correct to gnu/linux during the next big refactor
15039   need_version=no
15040   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15041   soname_spec='${libname}${release}${shared_ext}$major'
15042   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15043   shlibpath_var=LD_LIBRARY_PATH
15044   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15045   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15046   # the default ld.so.conf also contains /usr/contrib/lib and
15047   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15048   # libtool to hard-code these into programs
15049   ;;
15050
15051 cygwin* | mingw* | pw32* | cegcc*)
15052   version_type=windows
15053   shrext_cmds=".dll"
15054   need_version=no
15055   need_lib_prefix=no
15056
15057   case $GCC,$cc_basename in
15058   yes,*)
15059     # gcc
15060     library_names_spec='$libname.dll.a'
15061     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15062     postinstall_cmds='base_file=`basename \${file}`~
15063       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15064       dldir=$destdir/`dirname \$dlpath`~
15065       test -d \$dldir || mkdir -p \$dldir~
15066       $install_prog $dir/$dlname \$dldir/$dlname~
15067       chmod a+x \$dldir/$dlname~
15068       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15069         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15070       fi'
15071     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15072       dlpath=$dir/\$dldll~
15073        $RM \$dlpath'
15074     shlibpath_overrides_runpath=yes
15075
15076     case $host_os in
15077     cygwin*)
15078       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15079       #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
15080       soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
15081
15082       ;;
15083     mingw* | cegcc*)
15084       # MinGW DLLs use traditional 'lib' prefix
15085       #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
15086       soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
15087       ;;
15088     pw32*)
15089       # pw32 DLLs use 'pw' prefix rather than 'lib'
15090       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15091       ;;
15092     esac
15093     dynamic_linker='Win32 ld.exe'
15094     ;;
15095
15096   *,cl*)
15097     # Native MSVC
15098     libname_spec='$name'
15099     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15100     library_names_spec='${libname}.dll.lib'
15101
15102     case $build_os in
15103     mingw*)
15104       sys_lib_search_path_spec=
15105       lt_save_ifs=$IFS
15106       IFS=';'
15107       for lt_path in $LIB
15108       do
15109         IFS=$lt_save_ifs
15110         # Let DOS variable expansion print the short 8.3 style file name.
15111         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15112         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15113       done
15114       IFS=$lt_save_ifs
15115       # Convert to MSYS style.
15116       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15117       ;;
15118     cygwin*)
15119       # Convert to unix form, then to dos form, then back to unix form
15120       # but this time dos style (no spaces!) so that the unix form looks
15121       # like /cygdrive/c/PROGRA~1:/cygdr...
15122       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15123       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15124       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15125       ;;
15126     *)
15127       sys_lib_search_path_spec="$LIB"
15128       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15129         # It is most probably a Windows format PATH.
15130         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15131       else
15132         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15133       fi
15134       # FIXME: find the short name or the path components, as spaces are
15135       # common. (e.g. "Program Files" -> "PROGRA~1")
15136       ;;
15137     esac
15138
15139     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15140     postinstall_cmds='base_file=`basename \${file}`~
15141       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15142       dldir=$destdir/`dirname \$dlpath`~
15143       test -d \$dldir || mkdir -p \$dldir~
15144       $install_prog $dir/$dlname \$dldir/$dlname'
15145     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15146       dlpath=$dir/\$dldll~
15147        $RM \$dlpath'
15148     shlibpath_overrides_runpath=yes
15149     dynamic_linker='Win32 link.exe'
15150     ;;
15151
15152   *)
15153     # Assume MSVC wrapper
15154     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15155     dynamic_linker='Win32 ld.exe'
15156     ;;
15157   esac
15158   # FIXME: first we should search . and the directory the executable is in
15159   shlibpath_var=PATH
15160   ;;
15161
15162 darwin* | rhapsody*)
15163   dynamic_linker="$host_os dyld"
15164   version_type=darwin
15165   need_lib_prefix=no
15166   need_version=no
15167   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15168   soname_spec='${libname}${release}${major}$shared_ext'
15169   shlibpath_overrides_runpath=yes
15170   shlibpath_var=DYLD_LIBRARY_PATH
15171   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15172
15173   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15174   ;;
15175
15176 dgux*)
15177   version_type=linux # correct to gnu/linux during the next big refactor
15178   need_lib_prefix=no
15179   need_version=no
15180   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15181   soname_spec='${libname}${release}${shared_ext}$major'
15182   shlibpath_var=LD_LIBRARY_PATH
15183   ;;
15184
15185 freebsd* | dragonfly*)
15186   # DragonFly does not have aout.  When/if they implement a new
15187   # versioning mechanism, adjust this.
15188   if test -x /usr/bin/objformat; then
15189     objformat=`/usr/bin/objformat`
15190   else
15191     case $host_os in
15192     freebsd[23].*) objformat=aout ;;
15193     *) objformat=elf ;;
15194     esac
15195   fi
15196   version_type=freebsd-$objformat
15197   case $version_type in
15198     freebsd-elf*)
15199       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15200       need_version=no
15201       need_lib_prefix=no
15202       ;;
15203     freebsd-*)
15204       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15205       need_version=yes
15206       ;;
15207   esac
15208   shlibpath_var=LD_LIBRARY_PATH
15209   case $host_os in
15210   freebsd2.*)
15211     shlibpath_overrides_runpath=yes
15212     ;;
15213   freebsd3.[01]* | freebsdelf3.[01]*)
15214     shlibpath_overrides_runpath=yes
15215     hardcode_into_libs=yes
15216     ;;
15217   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15218   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15219     shlibpath_overrides_runpath=no
15220     hardcode_into_libs=yes
15221     ;;
15222   *) # from 4.6 on, and DragonFly
15223     shlibpath_overrides_runpath=yes
15224     hardcode_into_libs=yes
15225     ;;
15226   esac
15227   ;;
15228
15229 gnu*)
15230   version_type=linux # correct to gnu/linux during the next big refactor
15231   need_lib_prefix=no
15232   need_version=no
15233   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15234   soname_spec='${libname}${release}${shared_ext}$major'
15235   shlibpath_var=LD_LIBRARY_PATH
15236   shlibpath_overrides_runpath=no
15237   hardcode_into_libs=yes
15238   ;;
15239
15240 haiku*)
15241   version_type=linux # correct to gnu/linux during the next big refactor
15242   need_lib_prefix=no
15243   need_version=no
15244   dynamic_linker="$host_os runtime_loader"
15245   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15246   soname_spec='${libname}${release}${shared_ext}$major'
15247   shlibpath_var=LIBRARY_PATH
15248   shlibpath_overrides_runpath=yes
15249   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15250   hardcode_into_libs=yes
15251   ;;
15252
15253 hpux9* | hpux10* | hpux11*)
15254   # Give a soname corresponding to the major version so that dld.sl refuses to
15255   # link against other versions.
15256   version_type=sunos
15257   need_lib_prefix=no
15258   need_version=no
15259   case $host_cpu in
15260   ia64*)
15261     shrext_cmds='.so'
15262     hardcode_into_libs=yes
15263     dynamic_linker="$host_os dld.so"
15264     shlibpath_var=LD_LIBRARY_PATH
15265     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15266     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15267     soname_spec='${libname}${release}${shared_ext}$major'
15268     if test "X$HPUX_IA64_MODE" = X32; then
15269       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15270     else
15271       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15272     fi
15273     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15274     ;;
15275   hppa*64*)
15276     shrext_cmds='.sl'
15277     hardcode_into_libs=yes
15278     dynamic_linker="$host_os dld.sl"
15279     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15280     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15281     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15282     soname_spec='${libname}${release}${shared_ext}$major'
15283     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15284     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15285     ;;
15286   *)
15287     shrext_cmds='.sl'
15288     dynamic_linker="$host_os dld.sl"
15289     shlibpath_var=SHLIB_PATH
15290     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15291     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15292     soname_spec='${libname}${release}${shared_ext}$major'
15293     ;;
15294   esac
15295   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15296   postinstall_cmds='chmod 555 $lib'
15297   # or fails outright, so override atomically:
15298   install_override_mode=555
15299   ;;
15300
15301 interix[3-9]*)
15302   version_type=linux # correct to gnu/linux during the next big refactor
15303   need_lib_prefix=no
15304   need_version=no
15305   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15306   soname_spec='${libname}${release}${shared_ext}$major'
15307   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15308   shlibpath_var=LD_LIBRARY_PATH
15309   shlibpath_overrides_runpath=no
15310   hardcode_into_libs=yes
15311   ;;
15312
15313 irix5* | irix6* | nonstopux*)
15314   case $host_os in
15315     nonstopux*) version_type=nonstopux ;;
15316     *)
15317         if test "$lt_cv_prog_gnu_ld" = yes; then
15318                 version_type=linux # correct to gnu/linux during the next big refactor
15319         else
15320                 version_type=irix
15321         fi ;;
15322   esac
15323   need_lib_prefix=no
15324   need_version=no
15325   soname_spec='${libname}${release}${shared_ext}$major'
15326   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15327   case $host_os in
15328   irix5* | nonstopux*)
15329     libsuff= shlibsuff=
15330     ;;
15331   *)
15332     case $LD in # libtool.m4 will add one of these switches to LD
15333     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15334       libsuff= shlibsuff= libmagic=32-bit;;
15335     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15336       libsuff=32 shlibsuff=N32 libmagic=N32;;
15337     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15338       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15339     *) libsuff= shlibsuff= libmagic=never-match;;
15340     esac
15341     ;;
15342   esac
15343   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15344   shlibpath_overrides_runpath=no
15345   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15346   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15347   hardcode_into_libs=yes
15348   ;;
15349
15350 # No shared lib support for Linux oldld, aout, or coff.
15351 linux*oldld* | linux*aout* | linux*coff*)
15352   dynamic_linker=no
15353   ;;
15354
15355 # This must be glibc/ELF.
15356 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15357   version_type=linux # correct to gnu/linux during the next big refactor
15358   need_lib_prefix=no
15359   need_version=no
15360   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15361   soname_spec='${libname}${release}${shared_ext}$major'
15362   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15363   shlibpath_var=LD_LIBRARY_PATH
15364   shlibpath_overrides_runpath=no
15365
15366   # Some binutils ld are patched to set DT_RUNPATH
15367   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15368   $as_echo_n "(cached) " >&6
15369 else
15370   lt_cv_shlibpath_overrides_runpath=no
15371     save_LDFLAGS=$LDFLAGS
15372     save_libdir=$libdir
15373     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15374          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15375     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15376 /* end confdefs.h.  */
15377
15378 int
15379 main ()
15380 {
15381
15382   ;
15383   return 0;
15384 }
15385 _ACEOF
15386 if ac_fn_cxx_try_link "$LINENO"; then :
15387   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15388   lt_cv_shlibpath_overrides_runpath=yes
15389 fi
15390 fi
15391 rm -f core conftest.err conftest.$ac_objext \
15392     conftest$ac_exeext conftest.$ac_ext
15393     LDFLAGS=$save_LDFLAGS
15394     libdir=$save_libdir
15395
15396 fi
15397
15398   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15399
15400   # This implies no fast_install, which is unacceptable.
15401   # Some rework will be needed to allow for fast_install
15402   # before this can be enabled.
15403   hardcode_into_libs=yes
15404
15405   # Append ld.so.conf contents to the search path
15406   if test -f /etc/ld.so.conf; then
15407     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' ' '`
15408     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15409   fi
15410
15411   # We used to test for /lib/ld.so.1 and disable shared libraries on
15412   # powerpc, because MkLinux only supported shared libraries with the
15413   # GNU dynamic linker.  Since this was broken with cross compilers,
15414   # most powerpc-linux boxes support dynamic linking these days and
15415   # people can always --disable-shared, the test was removed, and we
15416   # assume the GNU/Linux dynamic linker is in use.
15417   dynamic_linker='GNU/Linux ld.so'
15418   ;;
15419
15420 netbsd*)
15421   version_type=sunos
15422   need_lib_prefix=no
15423   need_version=no
15424   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15425     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15426     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15427     dynamic_linker='NetBSD (a.out) ld.so'
15428   else
15429     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15430     soname_spec='${libname}${release}${shared_ext}$major'
15431     dynamic_linker='NetBSD ld.elf_so'
15432   fi
15433   shlibpath_var=LD_LIBRARY_PATH
15434   shlibpath_overrides_runpath=yes
15435   hardcode_into_libs=yes
15436   ;;
15437
15438 newsos6)
15439   version_type=linux # correct to gnu/linux during the next big refactor
15440   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15441   shlibpath_var=LD_LIBRARY_PATH
15442   shlibpath_overrides_runpath=yes
15443   ;;
15444
15445 *nto* | *qnx*)
15446   version_type=qnx
15447   need_lib_prefix=no
15448   need_version=no
15449   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15450   soname_spec='${libname}${release}${shared_ext}$major'
15451   shlibpath_var=LD_LIBRARY_PATH
15452   shlibpath_overrides_runpath=no
15453   hardcode_into_libs=yes
15454   dynamic_linker='ldqnx.so'
15455   ;;
15456
15457 openbsd*)
15458   version_type=sunos
15459   sys_lib_dlsearch_path_spec="/usr/lib"
15460   need_lib_prefix=no
15461   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15462   case $host_os in
15463     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15464     *)                          need_version=no  ;;
15465   esac
15466   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15467   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15468   shlibpath_var=LD_LIBRARY_PATH
15469   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15470     case $host_os in
15471       openbsd2.[89] | openbsd2.[89].*)
15472         shlibpath_overrides_runpath=no
15473         ;;
15474       *)
15475         shlibpath_overrides_runpath=yes
15476         ;;
15477       esac
15478   else
15479     shlibpath_overrides_runpath=yes
15480   fi
15481   ;;
15482
15483 os2*)
15484   libname_spec='$name'
15485   shrext_cmds=".dll"
15486   need_lib_prefix=no
15487   library_names_spec='$libname${shared_ext} $libname.a'
15488   dynamic_linker='OS/2 ld.exe'
15489   shlibpath_var=LIBPATH
15490   ;;
15491
15492 osf3* | osf4* | osf5*)
15493   version_type=osf
15494   need_lib_prefix=no
15495   need_version=no
15496   soname_spec='${libname}${release}${shared_ext}$major'
15497   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15498   shlibpath_var=LD_LIBRARY_PATH
15499   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15500   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15501   ;;
15502
15503 rdos*)
15504   dynamic_linker=no
15505   ;;
15506
15507 solaris*)
15508   version_type=linux # correct to gnu/linux during the next big refactor
15509   need_lib_prefix=no
15510   need_version=no
15511   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15512   soname_spec='${libname}${release}${shared_ext}$major'
15513   shlibpath_var=LD_LIBRARY_PATH
15514   shlibpath_overrides_runpath=yes
15515   hardcode_into_libs=yes
15516   # ldd complains unless libraries are executable
15517   postinstall_cmds='chmod +x $lib'
15518   ;;
15519
15520 sunos4*)
15521   version_type=sunos
15522   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15523   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15524   shlibpath_var=LD_LIBRARY_PATH
15525   shlibpath_overrides_runpath=yes
15526   if test "$with_gnu_ld" = yes; then
15527     need_lib_prefix=no
15528   fi
15529   need_version=yes
15530   ;;
15531
15532 sysv4 | sysv4.3*)
15533   version_type=linux # correct to gnu/linux during the next big refactor
15534   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15535   soname_spec='${libname}${release}${shared_ext}$major'
15536   shlibpath_var=LD_LIBRARY_PATH
15537   case $host_vendor in
15538     sni)
15539       shlibpath_overrides_runpath=no
15540       need_lib_prefix=no
15541       runpath_var=LD_RUN_PATH
15542       ;;
15543     siemens)
15544       need_lib_prefix=no
15545       ;;
15546     motorola)
15547       need_lib_prefix=no
15548       need_version=no
15549       shlibpath_overrides_runpath=no
15550       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15551       ;;
15552   esac
15553   ;;
15554
15555 sysv4*MP*)
15556   if test -d /usr/nec ;then
15557     version_type=linux # correct to gnu/linux during the next big refactor
15558     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15559     soname_spec='$libname${shared_ext}.$major'
15560     shlibpath_var=LD_LIBRARY_PATH
15561   fi
15562   ;;
15563
15564 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15565   version_type=freebsd-elf
15566   need_lib_prefix=no
15567   need_version=no
15568   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15569   soname_spec='${libname}${release}${shared_ext}$major'
15570   shlibpath_var=LD_LIBRARY_PATH
15571   shlibpath_overrides_runpath=yes
15572   hardcode_into_libs=yes
15573   if test "$with_gnu_ld" = yes; then
15574     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15575   else
15576     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15577     case $host_os in
15578       sco3.2v5*)
15579         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15580         ;;
15581     esac
15582   fi
15583   sys_lib_dlsearch_path_spec='/usr/lib'
15584   ;;
15585
15586 tpf*)
15587   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15588   version_type=linux # correct to gnu/linux during the next big refactor
15589   need_lib_prefix=no
15590   need_version=no
15591   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15592   shlibpath_var=LD_LIBRARY_PATH
15593   shlibpath_overrides_runpath=no
15594   hardcode_into_libs=yes
15595   ;;
15596
15597 uts4*)
15598   version_type=linux # correct to gnu/linux during the next big refactor
15599   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15600   soname_spec='${libname}${release}${shared_ext}$major'
15601   shlibpath_var=LD_LIBRARY_PATH
15602   ;;
15603
15604 *)
15605   dynamic_linker=no
15606   ;;
15607 esac
15608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15609 $as_echo "$dynamic_linker" >&6; }
15610 test "$dynamic_linker" = no && can_build_shared=no
15611
15612 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15613 if test "$GCC" = yes; then
15614   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15615 fi
15616
15617 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15618   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15619 fi
15620 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15621   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15622 fi
15623
15624
15625
15626
15627
15628
15629
15630
15631
15632
15633
15634
15635
15636
15637
15638
15639
15640
15641
15642
15643
15644
15645
15646
15647
15648
15649
15650
15651
15652
15653
15654
15655
15656
15657
15658
15659
15660
15661     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15662 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15663 hardcode_action_CXX=
15664 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15665    test -n "$runpath_var_CXX" ||
15666    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15667
15668   # We can hardcode non-existent directories.
15669   if test "$hardcode_direct_CXX" != no &&
15670      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15671      # have to relink, otherwise we might link with an installed library
15672      # when we should be linking with a yet-to-be-installed one
15673      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15674      test "$hardcode_minus_L_CXX" != no; then
15675     # Linking always hardcodes the temporary library directory.
15676     hardcode_action_CXX=relink
15677   else
15678     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15679     hardcode_action_CXX=immediate
15680   fi
15681 else
15682   # We cannot hardcode anything, or else we can only hardcode existing
15683   # directories.
15684   hardcode_action_CXX=unsupported
15685 fi
15686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15687 $as_echo "$hardcode_action_CXX" >&6; }
15688
15689 if test "$hardcode_action_CXX" = relink ||
15690    test "$inherit_rpath_CXX" = yes; then
15691   # Fast installation is not supported
15692   enable_fast_install=no
15693 elif test "$shlibpath_overrides_runpath" = yes ||
15694      test "$enable_shared" = no; then
15695   # Fast installation is not necessary
15696   enable_fast_install=needless
15697 fi
15698
15699
15700
15701
15702
15703
15704
15705   fi # test -n "$compiler"
15706
15707   CC=$lt_save_CC
15708   CFLAGS=$lt_save_CFLAGS
15709   LDCXX=$LD
15710   LD=$lt_save_LD
15711   GCC=$lt_save_GCC
15712   with_gnu_ld=$lt_save_with_gnu_ld
15713   lt_cv_path_LDCXX=$lt_cv_path_LD
15714   lt_cv_path_LD=$lt_save_path_LD
15715   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15716   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15717 fi # test "$_lt_caught_CXX_error" != yes
15718
15719 ac_ext=c
15720 ac_cpp='$CPP $CPPFLAGS'
15721 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15722 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15724
15725
15726 # Find a good install program.  We prefer a C program (faster),
15727 # so one script is as good as another.  But avoid the broken or
15728 # incompatible versions:
15729 # SysV /etc/install, /usr/sbin/install
15730 # SunOS /usr/etc/install
15731 # IRIX /sbin/install
15732 # AIX /bin/install
15733 # AmigaOS /C/install, which installs bootblocks on floppy discs
15734 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
15735 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
15736 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
15737 # OS/2's system install, which has a completely different semantic
15738 # ./install, which can be erroneously created by make from ./install.sh.
15739 # Reject install programs that cannot install multiple files.
15740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
15741 $as_echo_n "checking for a BSD-compatible install... " >&6; }
15742 if test -z "$INSTALL"; then
15743 if ${ac_cv_path_install+:} false; then :
15744   $as_echo_n "(cached) " >&6
15745 else
15746   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15747 for as_dir in $PATH
15748 do
15749   IFS=$as_save_IFS
15750   test -z "$as_dir" && as_dir=.
15751     # Account for people who put trailing slashes in PATH elements.
15752 case $as_dir/ in #((
15753   ./ | .// | /[cC]/* | \
15754   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
15755   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
15756   /usr/ucb/* ) ;;
15757   *)
15758     # OSF1 and SCO ODT 3.0 have their own names for install.
15759     # Don't use installbsd from OSF since it installs stuff as root
15760     # by default.
15761     for ac_prog in ginstall scoinst install; do
15762       for ac_exec_ext in '' $ac_executable_extensions; do
15763         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
15764           if test $ac_prog = install &&
15765             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15766             # AIX install.  It has an incompatible calling convention.
15767             :
15768           elif test $ac_prog = install &&
15769             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15770             # program-specific install script used by HP pwplus--don't use.
15771             :
15772           else
15773             rm -rf conftest.one conftest.two conftest.dir
15774             echo one > conftest.one
15775             echo two > conftest.two
15776             mkdir conftest.dir
15777             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
15778               test -s conftest.one && test -s conftest.two &&
15779               test -s conftest.dir/conftest.one &&
15780               test -s conftest.dir/conftest.two
15781             then
15782               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
15783               break 3
15784             fi
15785           fi
15786         fi
15787       done
15788     done
15789     ;;
15790 esac
15791
15792   done
15793 IFS=$as_save_IFS
15794
15795 rm -rf conftest.one conftest.two conftest.dir
15796
15797 fi
15798   if test "${ac_cv_path_install+set}" = set; then
15799     INSTALL=$ac_cv_path_install
15800   else
15801     # As a last resort, use the slow shell script.  Don't cache a
15802     # value for INSTALL within a source directory, because that will
15803     # break other packages using the cache if that directory is
15804     # removed, or if the value is a relative name.
15805     INSTALL=$ac_install_sh
15806   fi
15807 fi
15808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
15809 $as_echo "$INSTALL" >&6; }
15810
15811 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
15812 # It thinks the first close brace ends the variable substitution.
15813 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
15814
15815 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
15816
15817 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
15818
15819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
15820 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
15821 set x ${MAKE-make}
15822 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
15823 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
15824   $as_echo_n "(cached) " >&6
15825 else
15826   cat >conftest.make <<\_ACEOF
15827 SHELL = /bin/sh
15828 all:
15829         @echo '@@@%%%=$(MAKE)=@@@%%%'
15830 _ACEOF
15831 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
15832 case `${MAKE-make} -f conftest.make 2>/dev/null` in
15833   *@@@%%%=?*=@@@%%%*)
15834     eval ac_cv_prog_make_${ac_make}_set=yes;;
15835   *)
15836     eval ac_cv_prog_make_${ac_make}_set=no;;
15837 esac
15838 rm -f conftest.make
15839 fi
15840 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
15841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15842 $as_echo "yes" >&6; }
15843   SET_MAKE=
15844 else
15845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15846 $as_echo "no" >&6; }
15847   SET_MAKE="MAKE=${MAKE-make}"
15848 fi
15849
15850
15851
15852
15853
15854
15855
15856 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15857         if test -n "$ac_tool_prefix"; then
15858   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15859 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15861 $as_echo_n "checking for $ac_word... " >&6; }
15862 if ${ac_cv_path_PKG_CONFIG+:} false; then :
15863   $as_echo_n "(cached) " >&6
15864 else
15865   case $PKG_CONFIG in
15866   [\\/]* | ?:[\\/]*)
15867   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15868   ;;
15869   *)
15870   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15871 for as_dir in $PATH
15872 do
15873   IFS=$as_save_IFS
15874   test -z "$as_dir" && as_dir=.
15875     for ac_exec_ext in '' $ac_executable_extensions; do
15876   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15877     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15878     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15879     break 2
15880   fi
15881 done
15882   done
15883 IFS=$as_save_IFS
15884
15885   ;;
15886 esac
15887 fi
15888 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15889 if test -n "$PKG_CONFIG"; then
15890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15891 $as_echo "$PKG_CONFIG" >&6; }
15892 else
15893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15894 $as_echo "no" >&6; }
15895 fi
15896
15897
15898 fi
15899 if test -z "$ac_cv_path_PKG_CONFIG"; then
15900   ac_pt_PKG_CONFIG=$PKG_CONFIG
15901   # Extract the first word of "pkg-config", so it can be a program name with args.
15902 set dummy pkg-config; ac_word=$2
15903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15904 $as_echo_n "checking for $ac_word... " >&6; }
15905 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
15906   $as_echo_n "(cached) " >&6
15907 else
15908   case $ac_pt_PKG_CONFIG in
15909   [\\/]* | ?:[\\/]*)
15910   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15911   ;;
15912   *)
15913   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15914 for as_dir in $PATH
15915 do
15916   IFS=$as_save_IFS
15917   test -z "$as_dir" && as_dir=.
15918     for ac_exec_ext in '' $ac_executable_extensions; do
15919   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15920     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15921     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15922     break 2
15923   fi
15924 done
15925   done
15926 IFS=$as_save_IFS
15927
15928   ;;
15929 esac
15930 fi
15931 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15932 if test -n "$ac_pt_PKG_CONFIG"; then
15933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15934 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
15935 else
15936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15937 $as_echo "no" >&6; }
15938 fi
15939
15940   if test "x$ac_pt_PKG_CONFIG" = x; then
15941     PKG_CONFIG=""
15942   else
15943     case $cross_compiling:$ac_tool_warned in
15944 yes:)
15945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15946 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15947 ac_tool_warned=yes ;;
15948 esac
15949     PKG_CONFIG=$ac_pt_PKG_CONFIG
15950   fi
15951 else
15952   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15953 fi
15954
15955 fi
15956 if test -n "$PKG_CONFIG"; then
15957         _pkg_min_version=0.9.0
15958         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
15959 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15960         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15961                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15962 $as_echo "yes" >&6; }
15963         else
15964                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15965 $as_echo "no" >&6; }
15966                 PKG_CONFIG=""
15967         fi
15968 fi
15969
15970 case "$host" in
15971     *-*-mingw32*)
15972         # Except on msys, where make can't handle full pathnames (bug 1972)
15973         ;;
15974     *)
15975         srcdir=`cd $srcdir && pwd`
15976         ;;
15977 esac
15978
15979 INCLUDE="-I$srcdir/include"
15980
15981 case "$host" in
15982     *-*-nto-qnx*)
15983         ;;
15984     *)
15985         INCLUDE="$INCLUDE -idirafter $srcdir/src/video/khronos"
15986         ;;
15987 esac
15988
15989 if test x$srcdir != x.; then
15990     INCLUDE="-Iinclude $INCLUDE"
15991 elif test -d .hg; then
15992     as_fn_error $? "
15993 *** When building from Mercurial you should configure and build in a
15994     separate directory so you don't clobber SDL_config.h, SDL_revision.h
15995 " "$LINENO" 5
15996 fi
15997 BASE_CFLAGS=""
15998 BASE_LDFLAGS=""
15999 case "$host" in
16000     *-*-cygwin*)
16001         # We build SDL on cygwin without the UNIX emulation layer
16002         save_CFLAGS="$CFLAGS"
16003         have_no_cygwin=no
16004         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
16005 $as_echo_n "checking for GCC -mno-cygwin option... " >&6; }
16006         CFLAGS="$save_CFLAGS -mno-cygwin"
16007
16008         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16009 /* end confdefs.h.  */
16010
16011
16012 int
16013 main ()
16014 {
16015
16016
16017   ;
16018   return 0;
16019 }
16020 _ACEOF
16021 if ac_fn_c_try_compile "$LINENO"; then :
16022
16023         have_no_cygwin=yes
16024
16025 fi
16026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16027         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
16028 $as_echo "$have_no_cygwin" >&6; }
16029         CFLAGS="$save_CFLAGS"
16030
16031         if test x$have_no_cygwin = xyes; then
16032             BASE_CFLAGS="-mno-cygwin"
16033             BASE_LDFLAGS="-mno-cygwin"
16034         fi
16035         BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
16036         ;;
16037 esac
16038 # Uncomment the following line if you want to force SDL and applications
16039 # built with it to be compiled for a particular architecture.
16040 #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
16041 BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
16042 # The default optimization for SDL is -O3 (Bug #31)
16043 if test "x$orig_CFLAGS" = x; then
16044     BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
16045 fi
16046 EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
16047 BUILD_LDFLAGS="$LDFLAGS"
16048 EXTRA_LDFLAGS="$BASE_LDFLAGS"
16049 ## These are common directories to find software packages
16050 #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
16051 #    if test -d $path/include; then
16052 #        EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
16053 #    fi
16054 #    if test -d $path/lib; then
16055 #        EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
16056 #    fi
16057 #done
16058 SDL_CFLAGS="$BASE_CFLAGS"
16059 SDL_LIBS="-lSDL2"
16060 if test "x$BASE_LDFLAGS" != x; then
16061     SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS"
16062 fi
16063 if test "x$EXTRA_CFLAGS" != x; then
16064     CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
16065     CFLAGS="$CFLAGS $EXTRA_CFLAGS"
16066 fi
16067 if test "x$EXTRA_LDFLAGS" != x; then
16068     LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
16069 fi
16070
16071 base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
16072
16073 find_lib()
16074 {
16075     gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
16076     gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
16077     env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
16078     if test "$cross_compiling" = yes; then
16079         host_lib_path=""
16080     else
16081         host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
16082     fi
16083     for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
16084         lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`
16085         if test x$lib != x; then
16086             echo $lib
16087             return
16088         fi
16089     done
16090     # Try again, this time allowing more than one version digit after the .so
16091     for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
16092         lib=`ls -- $path/$1 2>/dev/null | sed -e 's,.*/,,' | sort | tail -1`
16093         if test x$lib != x; then
16094             echo $lib
16095             return
16096         fi
16097     done
16098 }
16099
16100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
16101 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
16102 if ${ac_cv_c_const+:} false; then :
16103   $as_echo_n "(cached) " >&6
16104 else
16105   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16106 /* end confdefs.h.  */
16107
16108 int
16109 main ()
16110 {
16111
16112 #ifndef __cplusplus
16113   /* Ultrix mips cc rejects this sort of thing.  */
16114   typedef int charset[2];
16115   const charset cs = { 0, 0 };
16116   /* SunOS 4.1.1 cc rejects this.  */
16117   char const *const *pcpcc;
16118   char **ppc;
16119   /* NEC SVR4.0.2 mips cc rejects this.  */
16120   struct point {int x, y;};
16121   static struct point const zero = {0,0};
16122   /* AIX XL C 1.02.0.0 rejects this.
16123      It does not let you subtract one const X* pointer from another in
16124      an arm of an if-expression whose if-part is not a constant
16125      expression */
16126   const char *g = "string";
16127   pcpcc = &g + (g ? g-g : 0);
16128   /* HPUX 7.0 cc rejects these. */
16129   ++pcpcc;
16130   ppc = (char**) pcpcc;
16131   pcpcc = (char const *const *) ppc;
16132   { /* SCO 3.2v4 cc rejects this sort of thing.  */
16133     char tx;
16134     char *t = &tx;
16135     char const *s = 0 ? (char *) 0 : (char const *) 0;
16136
16137     *t++ = 0;
16138     if (s) return 0;
16139   }
16140   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
16141     int x[] = {25, 17};
16142     const int *foo = &x[0];
16143     ++foo;
16144   }
16145   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16146     typedef const int *iptr;
16147     iptr p = 0;
16148     ++p;
16149   }
16150   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
16151        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16152     struct s { int j; const int *ap[3]; } bx;
16153     struct s *b = &bx; b->j = 5;
16154   }
16155   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16156     const int foo = 10;
16157     if (!foo) return 0;
16158   }
16159   return !cs[0] && !zero.x;
16160 #endif
16161
16162   ;
16163   return 0;
16164 }
16165 _ACEOF
16166 if ac_fn_c_try_compile "$LINENO"; then :
16167   ac_cv_c_const=yes
16168 else
16169   ac_cv_c_const=no
16170 fi
16171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16172 fi
16173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
16174 $as_echo "$ac_cv_c_const" >&6; }
16175 if test $ac_cv_c_const = no; then
16176
16177 $as_echo "#define const /**/" >>confdefs.h
16178
16179 fi
16180
16181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16182 $as_echo_n "checking for inline... " >&6; }
16183 if ${ac_cv_c_inline+:} false; then :
16184   $as_echo_n "(cached) " >&6
16185 else
16186   ac_cv_c_inline=no
16187 for ac_kw in inline __inline__ __inline; do
16188   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16189 /* end confdefs.h.  */
16190 #ifndef __cplusplus
16191 typedef int foo_t;
16192 static $ac_kw foo_t static_foo () {return 0; }
16193 $ac_kw foo_t foo () {return 0; }
16194 #endif
16195
16196 _ACEOF
16197 if ac_fn_c_try_compile "$LINENO"; then :
16198   ac_cv_c_inline=$ac_kw
16199 fi
16200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16201   test "$ac_cv_c_inline" != no && break
16202 done
16203
16204 fi
16205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16206 $as_echo "$ac_cv_c_inline" >&6; }
16207
16208 case $ac_cv_c_inline in
16209   inline | yes) ;;
16210   *)
16211     case $ac_cv_c_inline in
16212       no) ac_val=;;
16213       *) ac_val=$ac_cv_c_inline;;
16214     esac
16215     cat >>confdefs.h <<_ACEOF
16216 #ifndef __cplusplus
16217 #define inline $ac_val
16218 #endif
16219 _ACEOF
16220     ;;
16221 esac
16222
16223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
16224 $as_echo_n "checking for working volatile... " >&6; }
16225 if ${ac_cv_c_volatile+:} false; then :
16226   $as_echo_n "(cached) " >&6
16227 else
16228   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16229 /* end confdefs.h.  */
16230
16231 int
16232 main ()
16233 {
16234
16235 volatile int x;
16236 int * volatile y = (int *) 0;
16237 return !x && !y;
16238   ;
16239   return 0;
16240 }
16241 _ACEOF
16242 if ac_fn_c_try_compile "$LINENO"; then :
16243   ac_cv_c_volatile=yes
16244 else
16245   ac_cv_c_volatile=no
16246 fi
16247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16248 fi
16249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
16250 $as_echo "$ac_cv_c_volatile" >&6; }
16251 if test $ac_cv_c_volatile = no; then
16252
16253 $as_echo "#define volatile /**/" >>confdefs.h
16254
16255 fi
16256
16257
16258 # Check whether --enable-assertions was given.
16259 if test "${enable_assertions+set}" = set; then :
16260   enableval=$enable_assertions;
16261 else
16262   enable_assertions=auto
16263 fi
16264
16265 case "$enable_assertions" in
16266     auto) # Use optimization settings to determine assertion level
16267         ;;
16268     disabled)
16269
16270 $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
16271
16272         ;;
16273     release)
16274
16275 $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
16276
16277         ;;
16278     enabled)
16279
16280 $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
16281
16282         ;;
16283     paranoid)
16284
16285 $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
16286
16287         ;;
16288     *)
16289         as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
16290         ;;
16291 esac
16292
16293 # Check whether --enable-dependency-tracking was given.
16294 if test "${enable_dependency_tracking+set}" = set; then :
16295   enableval=$enable_dependency_tracking;
16296 else
16297   enable_dependency_tracking=yes
16298 fi
16299
16300 if test x$enable_dependency_tracking = xyes; then
16301     have_gcc_mmd_mt=no
16302     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
16303 $as_echo_n "checking for GCC -MMD -MT option... " >&6; }
16304     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16305 /* end confdefs.h.  */
16306
16307     #if !defined(__GNUC__) || __GNUC__ < 3
16308     #error Dependency tracking requires GCC 3.0 or newer
16309     #endif
16310
16311 int
16312 main ()
16313 {
16314
16315
16316   ;
16317   return 0;
16318 }
16319 _ACEOF
16320 if ac_fn_c_try_compile "$LINENO"; then :
16321
16322     have_gcc_mmd_mt=yes
16323
16324 fi
16325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16326     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
16327 $as_echo "$have_gcc_mmd_mt" >&6; }
16328
16329     if test x$have_gcc_mmd_mt = xyes; then
16330         DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
16331     fi
16332 fi
16333
16334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
16335 $as_echo_n "checking for linker option --no-undefined... " >&6; }
16336 have_no_undefined=no
16337 case "$host" in
16338         *-*-openbsd*)
16339         ;;
16340
16341     *)
16342         save_LDFLAGS="$LDFLAGS"
16343         LDFLAGS="$LDFLAGS -Wl,--no-undefined"
16344         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16345 /* end confdefs.h.  */
16346
16347
16348 int
16349 main ()
16350 {
16351
16352
16353   ;
16354   return 0;
16355 }
16356 _ACEOF
16357 if ac_fn_c_try_link "$LINENO"; then :
16358
16359         have_no_undefined=yes
16360         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--no-undefined"
16361
16362 fi
16363 rm -f core conftest.err conftest.$ac_objext \
16364     conftest$ac_exeext conftest.$ac_ext
16365         LDFLAGS="$save_LDFLAGS"
16366         ;;
16367 esac
16368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
16369 $as_echo "$have_no_undefined" >&6; }
16370
16371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --dynamicbase" >&5
16372 $as_echo_n "checking for linker option --dynamicbase... " >&6; }
16373 have_dynamicbase=no
16374 case "$host" in
16375     *)
16376         save_LDFLAGS="$LDFLAGS"
16377         LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
16378         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16379 /* end confdefs.h.  */
16380
16381
16382 int
16383 main ()
16384 {
16385
16386
16387   ;
16388   return 0;
16389 }
16390 _ACEOF
16391 if ac_fn_c_try_link "$LINENO"; then :
16392
16393         have_dynamicbase=yes
16394         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--dynamicbase"
16395
16396 fi
16397 rm -f core conftest.err conftest.$ac_objext \
16398     conftest$ac_exeext conftest.$ac_ext
16399         LDFLAGS="$save_LDFLAGS"
16400         ;;
16401 esac
16402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dynamicbase" >&5
16403 $as_echo "$have_dynamicbase" >&6; }
16404
16405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --nxcompat" >&5
16406 $as_echo_n "checking for linker option --nxcompat... " >&6; }
16407 have_nxcompat=no
16408 case "$host" in
16409     *)
16410         save_LDFLAGS="$LDFLAGS"
16411         LDFLAGS="$LDFLAGS -Wl,--nxcompat"
16412         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16413 /* end confdefs.h.  */
16414
16415
16416 int
16417 main ()
16418 {
16419
16420
16421   ;
16422   return 0;
16423 }
16424 _ACEOF
16425 if ac_fn_c_try_link "$LINENO"; then :
16426
16427         have_nxcompat=yes
16428         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--nxcompat"
16429
16430 fi
16431 rm -f core conftest.err conftest.$ac_objext \
16432     conftest$ac_exeext conftest.$ac_ext
16433         LDFLAGS="$save_LDFLAGS"
16434         ;;
16435 esac
16436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nxcompat" >&5
16437 $as_echo "$have_nxcompat" >&6; }
16438
16439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --high-entropy-va" >&5
16440 $as_echo_n "checking for linker option --high-entropy-va... " >&6; }
16441 have_high_entropy_va=no
16442 case "$host" in
16443     *)
16444         save_LDFLAGS="$LDFLAGS"
16445         LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
16446         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16447 /* end confdefs.h.  */
16448
16449
16450 int
16451 main ()
16452 {
16453
16454
16455   ;
16456   return 0;
16457 }
16458 _ACEOF
16459 if ac_fn_c_try_link "$LINENO"; then :
16460
16461         have_high_entropy_va=yes
16462         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--high-entropy-va"
16463
16464 fi
16465 rm -f core conftest.err conftest.$ac_objext \
16466     conftest$ac_exeext conftest.$ac_ext
16467         LDFLAGS="$save_LDFLAGS"
16468         ;;
16469 esac
16470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_high_entropy_va" >&5
16471 $as_echo "$have_high_entropy_va" >&6; }
16472
16473 # Check whether --enable-libc was given.
16474 if test "${enable_libc+set}" = set; then :
16475   enableval=$enable_libc;
16476 else
16477   enable_libc=yes
16478 fi
16479
16480 if test x$enable_libc = xyes; then
16481
16482 $as_echo "#define HAVE_LIBC 1" >>confdefs.h
16483
16484
16485         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
16486 $as_echo_n "checking for ANSI C header files... " >&6; }
16487 if ${ac_cv_header_stdc+:} false; then :
16488   $as_echo_n "(cached) " >&6
16489 else
16490   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16491 /* end confdefs.h.  */
16492 #include <stdlib.h>
16493 #include <stdarg.h>
16494 #include <string.h>
16495 #include <float.h>
16496
16497 int
16498 main ()
16499 {
16500
16501   ;
16502   return 0;
16503 }
16504 _ACEOF
16505 if ac_fn_c_try_compile "$LINENO"; then :
16506   ac_cv_header_stdc=yes
16507 else
16508   ac_cv_header_stdc=no
16509 fi
16510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16511
16512 if test $ac_cv_header_stdc = yes; then
16513   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16514   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16515 /* end confdefs.h.  */
16516 #include <string.h>
16517
16518 _ACEOF
16519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16520   $EGREP "memchr" >/dev/null 2>&1; then :
16521
16522 else
16523   ac_cv_header_stdc=no
16524 fi
16525 rm -f conftest*
16526
16527 fi
16528
16529 if test $ac_cv_header_stdc = yes; then
16530   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16531   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16532 /* end confdefs.h.  */
16533 #include <stdlib.h>
16534
16535 _ACEOF
16536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16537   $EGREP "free" >/dev/null 2>&1; then :
16538
16539 else
16540   ac_cv_header_stdc=no
16541 fi
16542 rm -f conftest*
16543
16544 fi
16545
16546 if test $ac_cv_header_stdc = yes; then
16547   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16548   if test "$cross_compiling" = yes; then :
16549   :
16550 else
16551   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16552 /* end confdefs.h.  */
16553 #include <ctype.h>
16554 #include <stdlib.h>
16555 #if ((' ' & 0x0FF) == 0x020)
16556 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16557 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16558 #else
16559 # define ISLOWER(c) \
16560                    (('a' <= (c) && (c) <= 'i') \
16561                      || ('j' <= (c) && (c) <= 'r') \
16562                      || ('s' <= (c) && (c) <= 'z'))
16563 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16564 #endif
16565
16566 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16567 int
16568 main ()
16569 {
16570   int i;
16571   for (i = 0; i < 256; i++)
16572     if (XOR (islower (i), ISLOWER (i))
16573         || toupper (i) != TOUPPER (i))
16574       return 2;
16575   return 0;
16576 }
16577 _ACEOF
16578 if ac_fn_c_try_run "$LINENO"; then :
16579
16580 else
16581   ac_cv_header_stdc=no
16582 fi
16583 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16584   conftest.$ac_objext conftest.beam conftest.$ac_ext
16585 fi
16586
16587 fi
16588 fi
16589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
16590 $as_echo "$ac_cv_header_stdc" >&6; }
16591 if test $ac_cv_header_stdc = yes; then
16592
16593 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
16594
16595 fi
16596
16597     for ac_header in sys/types.h stdio.h stdlib.h stddef.h stdarg.h malloc.h memory.h string.h strings.h wchar.h inttypes.h stdint.h limits.h ctype.h math.h float.h iconv.h signal.h
16598 do :
16599   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16600 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16601 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16602   cat >>confdefs.h <<_ACEOF
16603 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16604 _ACEOF
16605
16606 fi
16607
16608 done
16609
16610
16611         ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16612 if test "x$ac_cv_type_size_t" = xyes; then :
16613
16614 else
16615
16616 cat >>confdefs.h <<_ACEOF
16617 #define size_t unsigned int
16618 _ACEOF
16619
16620 fi
16621
16622
16623           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
16624 $as_echo_n "checking for M_PI in math.h... " >&6; }
16625 if ${ac_cv_define_M_PI+:} false; then :
16626   $as_echo_n "(cached) " >&6
16627 else
16628   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16629 /* end confdefs.h.  */
16630
16631 #include <math.h>
16632 #ifdef M_PI
16633 YES_IS_DEFINED
16634 #endif
16635
16636 _ACEOF
16637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16638   $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
16639   ac_cv_define_M_PI=yes
16640 else
16641   ac_cv_define_M_PI=no
16642 fi
16643 rm -f conftest*
16644
16645
16646 fi
16647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
16648 $as_echo "$ac_cv_define_M_PI" >&6; }
16649   if test "$ac_cv_define_M_PI" = "yes" ; then
16650
16651 $as_echo "#define HAVE_M_PI /**/" >>confdefs.h
16652
16653   fi
16654
16655
16656         case "$host" in
16657     *-*-cygwin* | *-*-mingw32*)
16658         ;;
16659     *)
16660         # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16661 # for constant arguments.  Useless!
16662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
16663 $as_echo_n "checking for working alloca.h... " >&6; }
16664 if ${ac_cv_working_alloca_h+:} false; then :
16665   $as_echo_n "(cached) " >&6
16666 else
16667   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16668 /* end confdefs.h.  */
16669 #include <alloca.h>
16670 int
16671 main ()
16672 {
16673 char *p = (char *) alloca (2 * sizeof (int));
16674                           if (p) return 0;
16675   ;
16676   return 0;
16677 }
16678 _ACEOF
16679 if ac_fn_c_try_link "$LINENO"; then :
16680   ac_cv_working_alloca_h=yes
16681 else
16682   ac_cv_working_alloca_h=no
16683 fi
16684 rm -f core conftest.err conftest.$ac_objext \
16685     conftest$ac_exeext conftest.$ac_ext
16686 fi
16687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
16688 $as_echo "$ac_cv_working_alloca_h" >&6; }
16689 if test $ac_cv_working_alloca_h = yes; then
16690
16691 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
16692
16693 fi
16694
16695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16696 $as_echo_n "checking for alloca... " >&6; }
16697 if ${ac_cv_func_alloca_works+:} false; then :
16698   $as_echo_n "(cached) " >&6
16699 else
16700   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16701 /* end confdefs.h.  */
16702 #ifdef __GNUC__
16703 # define alloca __builtin_alloca
16704 #else
16705 # ifdef _MSC_VER
16706 #  include <malloc.h>
16707 #  define alloca _alloca
16708 # else
16709 #  ifdef HAVE_ALLOCA_H
16710 #   include <alloca.h>
16711 #  else
16712 #   ifdef _AIX
16713  #pragma alloca
16714 #   else
16715 #    ifndef alloca /* predefined by HP cc +Olibcalls */
16716 void *alloca (size_t);
16717 #    endif
16718 #   endif
16719 #  endif
16720 # endif
16721 #endif
16722
16723 int
16724 main ()
16725 {
16726 char *p = (char *) alloca (1);
16727                                     if (p) return 0;
16728   ;
16729   return 0;
16730 }
16731 _ACEOF
16732 if ac_fn_c_try_link "$LINENO"; then :
16733   ac_cv_func_alloca_works=yes
16734 else
16735   ac_cv_func_alloca_works=no
16736 fi
16737 rm -f core conftest.err conftest.$ac_objext \
16738     conftest$ac_exeext conftest.$ac_ext
16739 fi
16740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16741 $as_echo "$ac_cv_func_alloca_works" >&6; }
16742
16743 if test $ac_cv_func_alloca_works = yes; then
16744
16745 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16746
16747 else
16748   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16749 # that cause trouble.  Some versions do not even contain alloca or
16750 # contain a buggy version.  If you still want to use their alloca,
16751 # use ar to extract alloca.o from them instead of compiling alloca.c.
16752
16753 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16754
16755 $as_echo "#define C_ALLOCA 1" >>confdefs.h
16756
16757
16758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
16759 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
16760 if ${ac_cv_os_cray+:} false; then :
16761   $as_echo_n "(cached) " >&6
16762 else
16763   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16764 /* end confdefs.h.  */
16765 #if defined CRAY && ! defined CRAY2
16766 webecray
16767 #else
16768 wenotbecray
16769 #endif
16770
16771 _ACEOF
16772 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16773   $EGREP "webecray" >/dev/null 2>&1; then :
16774   ac_cv_os_cray=yes
16775 else
16776   ac_cv_os_cray=no
16777 fi
16778 rm -f conftest*
16779
16780 fi
16781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16782 $as_echo "$ac_cv_os_cray" >&6; }
16783 if test $ac_cv_os_cray = yes; then
16784   for ac_func in _getb67 GETB67 getb67; do
16785     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16786 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16787 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16788
16789 cat >>confdefs.h <<_ACEOF
16790 #define CRAY_STACKSEG_END $ac_func
16791 _ACEOF
16792
16793     break
16794 fi
16795
16796   done
16797 fi
16798
16799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16800 $as_echo_n "checking stack direction for C alloca... " >&6; }
16801 if ${ac_cv_c_stack_direction+:} false; then :
16802   $as_echo_n "(cached) " >&6
16803 else
16804   if test "$cross_compiling" = yes; then :
16805   ac_cv_c_stack_direction=0
16806 else
16807   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16808 /* end confdefs.h.  */
16809 $ac_includes_default
16810 int
16811 find_stack_direction (int *addr, int depth)
16812 {
16813   int dir, dummy = 0;
16814   if (! addr)
16815     addr = &dummy;
16816   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16817   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16818   return dir + dummy;
16819 }
16820
16821 int
16822 main (int argc, char **argv)
16823 {
16824   return find_stack_direction (0, argc + !argv + 20) < 0;
16825 }
16826 _ACEOF
16827 if ac_fn_c_try_run "$LINENO"; then :
16828   ac_cv_c_stack_direction=1
16829 else
16830   ac_cv_c_stack_direction=-1
16831 fi
16832 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16833   conftest.$ac_objext conftest.beam conftest.$ac_ext
16834 fi
16835
16836 fi
16837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16838 $as_echo "$ac_cv_c_stack_direction" >&6; }
16839 cat >>confdefs.h <<_ACEOF
16840 #define STACK_DIRECTION $ac_cv_c_stack_direction
16841 _ACEOF
16842
16843
16844 fi
16845
16846         ;;
16847     esac
16848
16849     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
16850 $as_echo_n "checking for working memcmp... " >&6; }
16851 if ${ac_cv_func_memcmp_working+:} false; then :
16852   $as_echo_n "(cached) " >&6
16853 else
16854   if test "$cross_compiling" = yes; then :
16855   ac_cv_func_memcmp_working=no
16856 else
16857   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16858 /* end confdefs.h.  */
16859 $ac_includes_default
16860 int
16861 main ()
16862 {
16863
16864   /* Some versions of memcmp are not 8-bit clean.  */
16865   char c0 = '\100', c1 = '\200', c2 = '\201';
16866   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
16867     return 1;
16868
16869   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
16870      or more and with at least one buffer not starting on a 4-byte boundary.
16871      William Lewis provided this test program.   */
16872   {
16873     char foo[21];
16874     char bar[21];
16875     int i;
16876     for (i = 0; i < 4; i++)
16877       {
16878         char *a = foo + i;
16879         char *b = bar + i;
16880         strcpy (a, "--------01111111");
16881         strcpy (b, "--------10000000");
16882         if (memcmp (a, b, 16) >= 0)
16883           return 1;
16884       }
16885     return 0;
16886   }
16887
16888   ;
16889   return 0;
16890 }
16891 _ACEOF
16892 if ac_fn_c_try_run "$LINENO"; then :
16893   ac_cv_func_memcmp_working=yes
16894 else
16895   ac_cv_func_memcmp_working=no
16896 fi
16897 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16898   conftest.$ac_objext conftest.beam conftest.$ac_ext
16899 fi
16900
16901 fi
16902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
16903 $as_echo "$ac_cv_func_memcmp_working" >&6; }
16904 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
16905   *" memcmp.$ac_objext "* ) ;;
16906   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
16907  ;;
16908 esac
16909
16910
16911     if test x$ac_cv_func_memcmp_working = xyes; then
16912
16913 $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h
16914
16915     fi
16916     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
16917 $as_echo_n "checking for working strtod... " >&6; }
16918 if ${ac_cv_func_strtod+:} false; then :
16919   $as_echo_n "(cached) " >&6
16920 else
16921   if test "$cross_compiling" = yes; then :
16922   ac_cv_func_strtod=no
16923 else
16924   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16925 /* end confdefs.h.  */
16926
16927 $ac_includes_default
16928 #ifndef strtod
16929 double strtod ();
16930 #endif
16931 int
16932 main()
16933 {
16934   {
16935     /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
16936     char *string = " +69";
16937     char *term;
16938     double value;
16939     value = strtod (string, &term);
16940     if (value != 69 || term != (string + 4))
16941       return 1;
16942   }
16943
16944   {
16945     /* Under Solaris 2.4, strtod returns the wrong value for the
16946        terminating character under some conditions.  */
16947     char *string = "NaN";
16948     char *term;
16949     strtod (string, &term);
16950     if (term != string && *(term - 1) == 0)
16951       return 1;
16952   }
16953   return 0;
16954 }
16955
16956 _ACEOF
16957 if ac_fn_c_try_run "$LINENO"; then :
16958   ac_cv_func_strtod=yes
16959 else
16960   ac_cv_func_strtod=no
16961 fi
16962 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16963   conftest.$ac_objext conftest.beam conftest.$ac_ext
16964 fi
16965
16966 fi
16967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
16968 $as_echo "$ac_cv_func_strtod" >&6; }
16969 if test $ac_cv_func_strtod = no; then
16970   case " $LIBOBJS " in
16971   *" strtod.$ac_objext "* ) ;;
16972   *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
16973  ;;
16974 esac
16975
16976 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
16977 if test "x$ac_cv_func_pow" = xyes; then :
16978
16979 fi
16980
16981 if test $ac_cv_func_pow = no; then
16982   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
16983 $as_echo_n "checking for pow in -lm... " >&6; }
16984 if ${ac_cv_lib_m_pow+:} false; then :
16985   $as_echo_n "(cached) " >&6
16986 else
16987   ac_check_lib_save_LIBS=$LIBS
16988 LIBS="-lm  $LIBS"
16989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16990 /* end confdefs.h.  */
16991
16992 /* Override any GCC internal prototype to avoid an error.
16993    Use char because int might match the return type of a GCC
16994    builtin and then its argument prototype would still apply.  */
16995 #ifdef __cplusplus
16996 extern "C"
16997 #endif
16998 char pow ();
16999 int
17000 main ()
17001 {
17002 return pow ();
17003   ;
17004   return 0;
17005 }
17006 _ACEOF
17007 if ac_fn_c_try_link "$LINENO"; then :
17008   ac_cv_lib_m_pow=yes
17009 else
17010   ac_cv_lib_m_pow=no
17011 fi
17012 rm -f core conftest.err conftest.$ac_objext \
17013     conftest$ac_exeext conftest.$ac_ext
17014 LIBS=$ac_check_lib_save_LIBS
17015 fi
17016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
17017 $as_echo "$ac_cv_lib_m_pow" >&6; }
17018 if test "x$ac_cv_lib_m_pow" = xyes; then :
17019   POW_LIB=-lm
17020 else
17021   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
17022 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
17023 fi
17024
17025 fi
17026
17027 fi
17028
17029     if test x$ac_cv_func_strtod = xyes; then
17030
17031 $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
17032
17033     fi
17034     ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
17035 if test "x$ac_cv_func_mprotect" = xyes; then :
17036   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17037 /* end confdefs.h.  */
17038
17039           #include <sys/types.h>
17040           #include <sys/mman.h>
17041
17042 int
17043 main ()
17044 {
17045
17046
17047   ;
17048   return 0;
17049 }
17050 _ACEOF
17051 if ac_fn_c_try_compile "$LINENO"; then :
17052
17053
17054 $as_echo "#define HAVE_MPROTECT 1" >>confdefs.h
17055
17056
17057 fi
17058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17059 fi
17060
17061     for ac_func in malloc calloc realloc free getenv setenv putenv unsetenv qsort abs bcopy memset memcpy memmove wcslen wcslcpy wcslcat wcsdup wcsstr wcscmp wcsncmp wcscasecmp _wcsicmp wcsncasecmp _wcsnicmp strlen strlcpy strlcat _strrev _strupr _strlwr strchr strrchr strstr strtok_r itoa _ltoa _uitoa _ultoa strtol strtoul _i64toa _ui64toa strtoll strtoull atoi atof strcmp strncmp _stricmp strcasecmp _strnicmp strncasecmp vsscanf vsnprintf fopen64 fseeko fseeko64 sigaction setjmp nanosleep sysconf sysctlbyname getauxval elf_aux_info poll _Exit
17062 do :
17063   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17064 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17065 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17066   cat >>confdefs.h <<_ACEOF
17067 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17068 _ACEOF
17069
17070 fi
17071 done
17072
17073
17074     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
17075 $as_echo_n "checking for pow in -lm... " >&6; }
17076 if ${ac_cv_lib_m_pow+:} false; then :
17077   $as_echo_n "(cached) " >&6
17078 else
17079   ac_check_lib_save_LIBS=$LIBS
17080 LIBS="-lm  $LIBS"
17081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17082 /* end confdefs.h.  */
17083
17084 /* Override any GCC internal prototype to avoid an error.
17085    Use char because int might match the return type of a GCC
17086    builtin and then its argument prototype would still apply.  */
17087 #ifdef __cplusplus
17088 extern "C"
17089 #endif
17090 char pow ();
17091 int
17092 main ()
17093 {
17094 return pow ();
17095   ;
17096   return 0;
17097 }
17098 _ACEOF
17099 if ac_fn_c_try_link "$LINENO"; then :
17100   ac_cv_lib_m_pow=yes
17101 else
17102   ac_cv_lib_m_pow=no
17103 fi
17104 rm -f core conftest.err conftest.$ac_objext \
17105     conftest$ac_exeext conftest.$ac_ext
17106 LIBS=$ac_check_lib_save_LIBS
17107 fi
17108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
17109 $as_echo "$ac_cv_lib_m_pow" >&6; }
17110 if test "x$ac_cv_lib_m_pow" = xyes; then :
17111   LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
17112 fi
17113
17114     for ac_func in acos acosf asin asinf atan atanf atan2 atan2f ceil ceilf copysign copysignf cos cosf exp expf fabs fabsf floor floorf trunc truncf fmod fmodf log logf log10 log10f pow powf scalbn scalbnf sin sinf sqrt sqrtf tan tanf
17115 do :
17116   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17117 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17118 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17119   cat >>confdefs.h <<_ACEOF
17120 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17121 _ACEOF
17122
17123 fi
17124 done
17125
17126
17127     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
17128 $as_echo_n "checking for iconv_open in -liconv... " >&6; }
17129 if ${ac_cv_lib_iconv_iconv_open+:} false; then :
17130   $as_echo_n "(cached) " >&6
17131 else
17132   ac_check_lib_save_LIBS=$LIBS
17133 LIBS="-liconv  $LIBS"
17134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17135 /* end confdefs.h.  */
17136
17137 /* Override any GCC internal prototype to avoid an error.
17138    Use char because int might match the return type of a GCC
17139    builtin and then its argument prototype would still apply.  */
17140 #ifdef __cplusplus
17141 extern "C"
17142 #endif
17143 char iconv_open ();
17144 int
17145 main ()
17146 {
17147 return iconv_open ();
17148   ;
17149   return 0;
17150 }
17151 _ACEOF
17152 if ac_fn_c_try_link "$LINENO"; then :
17153   ac_cv_lib_iconv_iconv_open=yes
17154 else
17155   ac_cv_lib_iconv_iconv_open=no
17156 fi
17157 rm -f core conftest.err conftest.$ac_objext \
17158     conftest$ac_exeext conftest.$ac_ext
17159 LIBS=$ac_check_lib_save_LIBS
17160 fi
17161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
17162 $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
17163 if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
17164   LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
17165 fi
17166
17167     for ac_func in iconv
17168 do :
17169   ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
17170 if test "x$ac_cv_func_iconv" = xyes; then :
17171   cat >>confdefs.h <<_ACEOF
17172 #define HAVE_ICONV 1
17173 _ACEOF
17174
17175 fi
17176 done
17177
17178
17179     ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
17180 "
17181 if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
17182
17183 $as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h
17184
17185 fi
17186
17187
17188         for ac_header in libunwind.h
17189 do :
17190   ac_fn_c_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
17191 if test "x$ac_cv_header_libunwind_h" = xyes; then :
17192   cat >>confdefs.h <<_ACEOF
17193 #define HAVE_LIBUNWIND_H 1
17194 _ACEOF
17195
17196 fi
17197
17198 done
17199
17200 fi
17201
17202
17203 # Check whether --enable-gcc-atomics was given.
17204 if test "${enable_gcc_atomics+set}" = set; then :
17205   enableval=$enable_gcc_atomics;
17206 else
17207   enable_gcc_atomics=yes
17208 fi
17209
17210 if test x$enable_gcc_atomics = xyes; then
17211     have_gcc_atomics=no
17212     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
17213 $as_echo_n "checking for GCC builtin atomic operations... " >&6; }
17214     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17215 /* end confdefs.h.  */
17216
17217
17218 int
17219 main ()
17220 {
17221
17222     int a;
17223     void *x, *y, *z;
17224     __sync_lock_test_and_set(&a, 4);
17225     __sync_lock_test_and_set(&x, y);
17226     __sync_fetch_and_add(&a, 1);
17227     __sync_bool_compare_and_swap(&a, 5, 10);
17228     __sync_bool_compare_and_swap(&x, y, z);
17229
17230   ;
17231   return 0;
17232 }
17233 _ACEOF
17234 if ac_fn_c_try_link "$LINENO"; then :
17235
17236     have_gcc_atomics=yes
17237
17238 fi
17239 rm -f core conftest.err conftest.$ac_objext \
17240     conftest$ac_exeext conftest.$ac_ext
17241     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
17242 $as_echo "$have_gcc_atomics" >&6; }
17243
17244     if test x$have_gcc_atomics = xyes; then
17245
17246 $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
17247
17248     else
17249         # See if we have the minimum operation needed for GCC atomics
17250         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17251 /* end confdefs.h.  */
17252
17253
17254 int
17255 main ()
17256 {
17257
17258         int a;
17259         __sync_lock_test_and_set(&a, 1);
17260         __sync_lock_release(&a);
17261
17262   ;
17263   return 0;
17264 }
17265 _ACEOF
17266 if ac_fn_c_try_link "$LINENO"; then :
17267
17268         have_gcc_sync_lock_test_and_set=yes
17269
17270 fi
17271 rm -f core conftest.err conftest.$ac_objext \
17272     conftest$ac_exeext conftest.$ac_ext
17273         if test x$have_gcc_sync_lock_test_and_set = xyes; then
17274
17275 $as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
17276
17277         fi
17278     fi
17279 fi
17280
17281 # Standard C sources
17282 SOURCES="$SOURCES $srcdir/src/*.c"
17283 SOURCES="$SOURCES $srcdir/src/atomic/*.c"
17284 SOURCES="$SOURCES $srcdir/src/audio/*.c"
17285 SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
17286 SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
17287 SOURCES="$SOURCES $srcdir/src/events/*.c"
17288 SOURCES="$SOURCES $srcdir/src/file/*.c"
17289 SOURCES="$SOURCES $srcdir/src/haptic/*.c"
17290 SOURCES="$SOURCES $srcdir/src/joystick/*.c"
17291 SOURCES="$SOURCES $srcdir/src/libm/*.c"
17292 SOURCES="$SOURCES $srcdir/src/misc/*.c"
17293 SOURCES="$SOURCES $srcdir/src/power/*.c"
17294 #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
17295 SOURCES="$SOURCES $srcdir/src/render/*.c"
17296 SOURCES="$SOURCES $srcdir/src/render/*/*.c"
17297 SOURCES="$SOURCES $srcdir/src/sensor/*.c"
17298 SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
17299 SOURCES="$SOURCES $srcdir/src/thread/*.c"
17300 SOURCES="$SOURCES $srcdir/src/timer/*.c"
17301 SOURCES="$SOURCES $srcdir/src/video/*.c"
17302 SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
17303 SOURCES="$SOURCES $srcdir/src/locale/*.c"
17304
17305
17306 # Check whether --enable-atomic was given.
17307 if test "${enable_atomic+set}" = set; then :
17308   enableval=$enable_atomic;
17309 else
17310   enable_atomic=yes
17311 fi
17312
17313 if test x$enable_atomic != xyes; then
17314
17315 $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
17316
17317 else
17318     SUMMARY_modules="${SUMMARY_modules} atomic"
17319 fi
17320 # Check whether --enable-audio was given.
17321 if test "${enable_audio+set}" = set; then :
17322   enableval=$enable_audio;
17323 else
17324   enable_audio=yes
17325 fi
17326
17327 if test x$enable_audio != xyes; then
17328
17329 $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
17330
17331 else
17332     SUMMARY_modules="${SUMMARY_modules} audio"
17333 fi
17334 # Check whether --enable-video was given.
17335 if test "${enable_video+set}" = set; then :
17336   enableval=$enable_video;
17337 else
17338   enable_video=yes
17339 fi
17340
17341 if test x$enable_video != xyes; then
17342
17343 $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
17344
17345 else
17346     SUMMARY_modules="${SUMMARY_modules} video"
17347 fi
17348 # Check whether --enable-render was given.
17349 if test "${enable_render+set}" = set; then :
17350   enableval=$enable_render;
17351 else
17352   enable_render=yes
17353 fi
17354
17355 if test x$enable_render != xyes; then
17356
17357 $as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h
17358
17359 else
17360     SUMMARY_modules="${SUMMARY_modules} render"
17361 fi
17362 # Check whether --enable-events was given.
17363 if test "${enable_events+set}" = set; then :
17364   enableval=$enable_events;
17365 else
17366   enable_events=yes
17367 fi
17368
17369 if test x$enable_events != xyes; then
17370
17371 $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
17372
17373 else
17374     SUMMARY_modules="${SUMMARY_modules} events"
17375 fi
17376 # Check whether --enable-joystick was given.
17377 if test "${enable_joystick+set}" = set; then :
17378   enableval=$enable_joystick;
17379 else
17380   enable_joystick=yes
17381 fi
17382
17383 if test x$enable_joystick != xyes; then
17384
17385 $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
17386
17387 else
17388     SUMMARY_modules="${SUMMARY_modules} joystick"
17389 fi
17390 # Check whether --enable-haptic was given.
17391 if test "${enable_haptic+set}" = set; then :
17392   enableval=$enable_haptic;
17393 else
17394   enable_haptic=yes
17395 fi
17396
17397 if test x$enable_haptic != xyes; then
17398
17399 $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
17400
17401 else
17402     SUMMARY_modules="${SUMMARY_modules} haptic"
17403 fi
17404 # Check whether --enable-sensor was given.
17405 if test "${enable_sensor+set}" = set; then :
17406   enableval=$enable_sensor;
17407 else
17408   enable_sensor=yes
17409 fi
17410
17411 if test x$enable_sensor != xyes; then
17412
17413 $as_echo "#define SDL_SENSOR_DISABLED 1" >>confdefs.h
17414
17415 else
17416     SUMMARY_modules="${SUMMARY_modules} sensor"
17417 fi
17418 # Check whether --enable-power was given.
17419 if test "${enable_power+set}" = set; then :
17420   enableval=$enable_power;
17421 else
17422   enable_power=yes
17423 fi
17424
17425 if test x$enable_power != xyes; then
17426
17427 $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
17428
17429 else
17430     SUMMARY_modules="${SUMMARY_modules} power"
17431 fi
17432 # Check whether --enable-filesystem was given.
17433 if test "${enable_filesystem+set}" = set; then :
17434   enableval=$enable_filesystem;
17435 else
17436   enable_filesystem=yes
17437 fi
17438
17439 if test x$enable_filesystem != xyes; then
17440
17441 $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
17442
17443 else
17444     SUMMARY_modules="${SUMMARY_modules} filesystem"
17445 fi
17446 # Check whether --enable-threads was given.
17447 if test "${enable_threads+set}" = set; then :
17448   enableval=$enable_threads;
17449 else
17450   enable_threads=yes
17451 fi
17452
17453 if test x$enable_threads != xyes; then
17454
17455 $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
17456
17457 else
17458     SUMMARY_modules="${SUMMARY_modules} threads"
17459 fi
17460 # Check whether --enable-timers was given.
17461 if test "${enable_timers+set}" = set; then :
17462   enableval=$enable_timers;
17463 else
17464   enable_timers=yes
17465 fi
17466
17467 if test x$enable_timers != xyes; then
17468
17469 $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
17470
17471 else
17472     SUMMARY_modules="${SUMMARY_modules} timers"
17473 fi
17474 # Check whether --enable-file was given.
17475 if test "${enable_file+set}" = set; then :
17476   enableval=$enable_file;
17477 else
17478   enable_file=yes
17479 fi
17480
17481 if test x$enable_file != xyes; then
17482
17483 $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h
17484
17485 else
17486     SUMMARY_modules="${SUMMARY_modules} file"
17487 fi
17488 # Check whether --enable-loadso was given.
17489 if test "${enable_loadso+set}" = set; then :
17490   enableval=$enable_loadso;
17491 else
17492   enable_loadso=yes
17493 fi
17494
17495 if test x$enable_loadso != xyes; then
17496
17497 $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
17498
17499 else
17500     SUMMARY_modules="${SUMMARY_modules} loadso"
17501 fi
17502 # Check whether --enable-cpuinfo was given.
17503 if test "${enable_cpuinfo+set}" = set; then :
17504   enableval=$enable_cpuinfo;
17505 else
17506   enable_cpuinfo=yes
17507 fi
17508
17509 if test x$enable_cpuinfo != xyes; then
17510
17511 $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
17512
17513 else
17514     SUMMARY_modules="${SUMMARY_modules} cpuinfo"
17515 fi
17516 # Check whether --enable-assembly was given.
17517 if test "${enable_assembly+set}" = set; then :
17518   enableval=$enable_assembly;
17519 else
17520   enable_assembly=yes
17521 fi
17522
17523 if test x$enable_assembly = xyes; then
17524     SUMMARY_modules="${SUMMARY_modules} assembly"
17525
17526
17527 $as_echo "#define SDL_ASSEMBLY_ROUTINES 1" >>confdefs.h
17528
17529
17530     # Make sure that we don't generate floating point code that would
17531     # cause illegal instruction exceptions on older processors
17532     case "$host" in
17533         *-*-darwin*)
17534             # Don't need to worry about Apple hardware, it's all SSE capable
17535             default_ssemath=yes
17536             ;;
17537         *64-*-*)
17538             # x86 64-bit architectures all have SSE instructions
17539             default_ssemath=yes
17540             ;;
17541         *)
17542             default_ssemath=no
17543             ;;
17544     esac
17545     # Check whether --enable-ssemath was given.
17546 if test "${enable_ssemath+set}" = set; then :
17547   enableval=$enable_ssemath;
17548 else
17549   enable_ssemath=$default_ssemath
17550 fi
17551
17552     if test x$enable_ssemath = xno; then
17553         if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
17554             EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
17555         fi
17556     fi
17557
17558         # Check whether --enable-mmx was given.
17559 if test "${enable_mmx+set}" = set; then :
17560   enableval=$enable_mmx;
17561 else
17562   enable_mmx=yes
17563 fi
17564
17565     if test x$enable_mmx = xyes; then
17566         save_CFLAGS="$CFLAGS"
17567         have_gcc_mmx=no
17568         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
17569 $as_echo_n "checking for GCC -mmmx option... " >&6; }
17570         mmx_CFLAGS="-mmmx"
17571         CFLAGS="$save_CFLAGS $mmx_CFLAGS"
17572
17573         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17574 /* end confdefs.h.  */
17575
17576         #ifdef __MINGW32__
17577         #include <_mingw.h>
17578         #ifdef __MINGW64_VERSION_MAJOR
17579         #include <intrin.h>
17580         #else
17581         #include <mmintrin.h>
17582         #endif
17583         #else
17584         #include <mmintrin.h>
17585         #endif
17586         #ifndef __MMX__
17587         #error Assembler CPP flag not enabled
17588         #endif
17589
17590 int
17591 main ()
17592 {
17593
17594
17595   ;
17596   return 0;
17597 }
17598 _ACEOF
17599 if ac_fn_c_try_compile "$LINENO"; then :
17600
17601         have_gcc_mmx=yes
17602
17603 fi
17604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17605         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
17606 $as_echo "$have_gcc_mmx" >&6; }
17607         CFLAGS="$save_CFLAGS"
17608
17609         if test x$have_gcc_mmx = xyes; then
17610             EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
17611             SUMMARY_math="${SUMMARY_math} mmx"
17612         fi
17613     fi
17614
17615     # Check whether --enable-3dnow was given.
17616 if test "${enable_3dnow+set}" = set; then :
17617   enableval=$enable_3dnow;
17618 else
17619   enable_3dnow=yes
17620 fi
17621
17622     if test x$enable_3dnow = xyes; then
17623         save_CFLAGS="$CFLAGS"
17624         have_gcc_3dnow=no
17625         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
17626 $as_echo_n "checking for GCC -m3dnow option... " >&6; }
17627         amd3dnow_CFLAGS="-m3dnow"
17628         CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
17629
17630         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17631 /* end confdefs.h.  */
17632
17633         #include <mm3dnow.h>
17634         #ifndef __3dNOW__
17635         #error Assembler CPP flag not enabled
17636         #endif
17637
17638 int
17639 main ()
17640 {
17641
17642         void *p = 0;
17643         _m_prefetch(p);
17644
17645   ;
17646   return 0;
17647 }
17648 _ACEOF
17649 if ac_fn_c_try_link "$LINENO"; then :
17650
17651         have_gcc_3dnow=yes
17652
17653 fi
17654 rm -f core conftest.err conftest.$ac_objext \
17655     conftest$ac_exeext conftest.$ac_ext
17656         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
17657 $as_echo "$have_gcc_3dnow" >&6; }
17658         CFLAGS="$save_CFLAGS"
17659
17660         if test x$have_gcc_3dnow = xyes; then
17661             EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
17662             SUMMARY_math="${SUMMARY_math} 3dnow"
17663         fi
17664     fi
17665
17666     # Check whether --enable-sse was given.
17667 if test "${enable_sse+set}" = set; then :
17668   enableval=$enable_sse;
17669 else
17670   enable_sse=yes
17671 fi
17672
17673     if test x$enable_sse = xyes; then
17674         save_CFLAGS="$CFLAGS"
17675         have_gcc_sse=no
17676         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
17677 $as_echo_n "checking for GCC -msse option... " >&6; }
17678         sse_CFLAGS="-msse"
17679         CFLAGS="$save_CFLAGS $sse_CFLAGS"
17680
17681         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17682 /* end confdefs.h.  */
17683
17684         #ifdef __MINGW32__
17685         #include <_mingw.h>
17686         #ifdef __MINGW64_VERSION_MAJOR
17687         #include <intrin.h>
17688         #else
17689         #include <xmmintrin.h>
17690         #endif
17691         #else
17692         #include <xmmintrin.h>
17693         #endif
17694         #ifndef __SSE__
17695         #error Assembler CPP flag not enabled
17696         #endif
17697
17698 int
17699 main ()
17700 {
17701
17702
17703   ;
17704   return 0;
17705 }
17706 _ACEOF
17707 if ac_fn_c_try_compile "$LINENO"; then :
17708
17709         have_gcc_sse=yes
17710
17711 fi
17712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17713         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
17714 $as_echo "$have_gcc_sse" >&6; }
17715         CFLAGS="$save_CFLAGS"
17716
17717         if test x$have_gcc_sse = xyes; then
17718             EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
17719             SUMMARY_math="${SUMMARY_math} sse"
17720         fi
17721     fi
17722
17723     # Check whether --enable-sse2 was given.
17724 if test "${enable_sse2+set}" = set; then :
17725   enableval=$enable_sse2;
17726 else
17727   enable_sse2=$default_ssemath
17728 fi
17729
17730     if test x$enable_sse2 = xyes; then
17731         save_CFLAGS="$CFLAGS"
17732         have_gcc_sse2=no
17733         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
17734 $as_echo_n "checking for GCC -msse2 option... " >&6; }
17735         sse2_CFLAGS="-msse2"
17736         CFLAGS="$save_CFLAGS $sse2_CFLAGS"
17737
17738         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17739 /* end confdefs.h.  */
17740
17741         #ifdef __MINGW32__
17742         #include <_mingw.h>
17743         #ifdef __MINGW64_VERSION_MAJOR
17744         #include <intrin.h>
17745         #else
17746         #include <emmintrin.h>
17747         #endif
17748         #else
17749         #include <emmintrin.h>
17750         #endif
17751         #ifndef __SSE2__
17752         #error Assembler CPP flag not enabled
17753         #endif
17754
17755 int
17756 main ()
17757 {
17758
17759
17760   ;
17761   return 0;
17762 }
17763 _ACEOF
17764 if ac_fn_c_try_compile "$LINENO"; then :
17765
17766         have_gcc_sse2=yes
17767
17768 fi
17769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17770         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
17771 $as_echo "$have_gcc_sse2" >&6; }
17772         CFLAGS="$save_CFLAGS"
17773
17774         if test x$have_gcc_sse2 = xyes; then
17775             EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
17776             SUMMARY_math="${SUMMARY_math} sse2"
17777         fi
17778     fi
17779
17780     # Check whether --enable-sse3 was given.
17781 if test "${enable_sse3+set}" = set; then :
17782   enableval=$enable_sse3;
17783 else
17784   enable_sse3=$default_ssemath
17785 fi
17786
17787     if test x$enable_sse3 = xyes; then
17788         save_CFLAGS="$CFLAGS"
17789         have_gcc_sse3=no
17790         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
17791 $as_echo_n "checking for GCC -msse3 option... " >&6; }
17792         sse3_CFLAGS="-msse3"
17793         CFLAGS="$save_CFLAGS $sse3_CFLAGS"
17794
17795         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17796 /* end confdefs.h.  */
17797
17798         #ifdef __MINGW32__
17799         #include <_mingw.h>
17800         #ifdef __MINGW64_VERSION_MAJOR
17801         #include <intrin.h>
17802         #else
17803         #include <pmmintrin.h>
17804         #endif
17805         #else
17806         #include <pmmintrin.h>
17807         #endif
17808         #ifndef __SSE2__
17809         #error Assembler CPP flag not enabled
17810         #endif
17811
17812 int
17813 main ()
17814 {
17815
17816
17817   ;
17818   return 0;
17819 }
17820 _ACEOF
17821 if ac_fn_c_try_compile "$LINENO"; then :
17822
17823         have_gcc_sse3=yes
17824
17825 fi
17826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17827         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
17828 $as_echo "$have_gcc_sse3" >&6; }
17829         CFLAGS="$save_CFLAGS"
17830
17831         if test x$have_gcc_sse3 = xyes; then
17832             EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
17833             SUMMARY_math="${SUMMARY_math} sse3"
17834         fi
17835     fi
17836
17837     ac_fn_c_check_header_mongrel "$LINENO" "immintrin.h" "ac_cv_header_immintrin_h" "$ac_includes_default"
17838 if test "x$ac_cv_header_immintrin_h" = xyes; then :
17839   have_immintrin_h_hdr=yes
17840 else
17841   have_immintrin_h_hdr=no
17842 fi
17843
17844
17845     if test x$have_immintrin_h_hdr = xyes; then
17846
17847 $as_echo "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
17848
17849     fi
17850
17851     # Check whether --enable-altivec was given.
17852 if test "${enable_altivec+set}" = set; then :
17853   enableval=$enable_altivec;
17854 else
17855   enable_altivec=yes
17856 fi
17857
17858     if test x$enable_altivec = xyes; then
17859         save_CFLAGS="$CFLAGS"
17860         have_gcc_altivec=no
17861         have_altivec_h_hdr=no
17862         altivec_CFLAGS="-maltivec"
17863         CFLAGS="$save_CFLAGS $altivec_CFLAGS"
17864
17865         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
17866 $as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
17867         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17868 /* end confdefs.h.  */
17869
17870         #include <altivec.h>
17871         vector unsigned int vzero() {
17872             return vec_splat_u32(0);
17873         }
17874
17875 int
17876 main ()
17877 {
17878
17879
17880   ;
17881   return 0;
17882 }
17883 _ACEOF
17884 if ac_fn_c_try_compile "$LINENO"; then :
17885
17886         have_gcc_altivec=yes
17887         have_altivec_h_hdr=yes
17888
17889 fi
17890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17891         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
17892 $as_echo "$have_gcc_altivec" >&6; }
17893
17894         if test x$have_gcc_altivec = xno; then
17895             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
17896 $as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; }
17897             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17898 /* end confdefs.h.  */
17899
17900             vector unsigned int vzero() {
17901                 return vec_splat_u32(0);
17902             }
17903
17904 int
17905 main ()
17906 {
17907
17908
17909   ;
17910   return 0;
17911 }
17912 _ACEOF
17913 if ac_fn_c_try_compile "$LINENO"; then :
17914
17915             have_gcc_altivec=yes
17916
17917 fi
17918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17919             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
17920 $as_echo "$have_gcc_altivec" >&6; }
17921         fi
17922
17923         if test x$have_gcc_altivec = xno; then
17924             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
17925 $as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
17926             altivec_CFLAGS="-faltivec"
17927             CFLAGS="$save_CFLAGS $altivec_CFLAGS"
17928             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17929 /* end confdefs.h.  */
17930
17931             #include <altivec.h>
17932             vector unsigned int vzero() {
17933                 return vec_splat_u32(0);
17934             }
17935
17936 int
17937 main ()
17938 {
17939
17940
17941   ;
17942   return 0;
17943 }
17944 _ACEOF
17945 if ac_fn_c_try_compile "$LINENO"; then :
17946
17947             have_gcc_altivec=yes
17948             have_altivec_h_hdr=yes
17949
17950 fi
17951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17952             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
17953 $as_echo "$have_gcc_altivec" >&6; }
17954         fi
17955
17956         if test x$have_gcc_altivec = xno; then
17957             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
17958 $as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; }
17959             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17960 /* end confdefs.h.  */
17961
17962             vector unsigned int vzero() {
17963                 return vec_splat_u32(0);
17964             }
17965
17966 int
17967 main ()
17968 {
17969
17970
17971   ;
17972   return 0;
17973 }
17974 _ACEOF
17975 if ac_fn_c_try_compile "$LINENO"; then :
17976
17977             have_gcc_altivec=yes
17978
17979 fi
17980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17981             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
17982 $as_echo "$have_gcc_altivec" >&6; }
17983         fi
17984         CFLAGS="$save_CFLAGS"
17985
17986         if test x$have_gcc_altivec = xyes; then
17987
17988 $as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
17989
17990             if test x$have_altivec_h_hdr = xyes; then
17991
17992 $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h
17993
17994             fi
17995             EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
17996             SUMMARY_math="${SUMMARY_math} altivec"
17997         fi
17998     fi
17999 fi
18000
18001 CheckOSS()
18002 {
18003     # Check whether --enable-oss was given.
18004 if test "${enable_oss+set}" = set; then :
18005   enableval=$enable_oss;
18006 else
18007   enable_oss=maybe
18008 fi
18009
18010
18011     # OpenBSD "has" OSS, but it's not really for app use. They want you to
18012     #  use sndio instead. So on there, we default to disabled. You can force
18013     #  it on if you really want, though.
18014     if test x$enable_oss = xmaybe; then
18015         enable_oss=yes
18016         case "$host" in
18017             *-*-openbsd*)
18018                 enable_oss=no;;
18019         esac
18020     fi
18021
18022     if test x$enable_audio = xyes -a x$enable_oss = xyes; then
18023         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
18024 $as_echo_n "checking for OSS audio support... " >&6; }
18025         have_oss=no
18026         if test x$have_oss != xyes; then
18027             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18028 /* end confdefs.h.  */
18029
18030               #include <sys/soundcard.h>
18031
18032 int
18033 main ()
18034 {
18035
18036               int arg = SNDCTL_DSP_SETFRAGMENT;
18037
18038   ;
18039   return 0;
18040 }
18041 _ACEOF
18042 if ac_fn_c_try_compile "$LINENO"; then :
18043
18044             have_oss=yes
18045
18046 fi
18047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18048         fi
18049         if test x$have_oss != xyes; then
18050             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18051 /* end confdefs.h.  */
18052
18053               #include <soundcard.h>
18054
18055 int
18056 main ()
18057 {
18058
18059               int arg = SNDCTL_DSP_SETFRAGMENT;
18060
18061   ;
18062   return 0;
18063 }
18064 _ACEOF
18065 if ac_fn_c_try_compile "$LINENO"; then :
18066
18067             have_oss=yes
18068
18069 $as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
18070
18071
18072 fi
18073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18074         fi
18075         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
18076 $as_echo "$have_oss" >&6; }
18077         if test x$have_oss = xyes; then
18078             SUMMARY_audio="${SUMMARY_audio} oss"
18079
18080 $as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
18081
18082             SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
18083             have_audio=yes
18084
18085             # We may need to link with ossaudio emulation library
18086             case "$host" in
18087                 *-*-openbsd*|*-*-netbsd*)
18088                     EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
18089             esac
18090         fi
18091     fi
18092 }
18093
18094 CheckALSA()
18095 {
18096     # Check whether --enable-alsa was given.
18097 if test "${enable_alsa+set}" = set; then :
18098   enableval=$enable_alsa;
18099 else
18100   enable_alsa=yes
18101 fi
18102
18103     if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
18104         alsa_save_CFLAGS="$CFLAGS"
18105 alsa_save_LDFLAGS="$LDFLAGS"
18106 alsa_save_LIBS="$LIBS"
18107 alsa_found=yes
18108
18109
18110 # Check whether --with-alsa-prefix was given.
18111 if test "${with_alsa_prefix+set}" = set; then :
18112   withval=$with_alsa_prefix; alsa_prefix="$withval"
18113 else
18114   alsa_prefix=""
18115 fi
18116
18117
18118
18119 # Check whether --with-alsa-inc-prefix was given.
18120 if test "${with_alsa_inc_prefix+set}" = set; then :
18121   withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
18122 else
18123   alsa_inc_prefix=""
18124 fi
18125
18126
18127 # Check whether --enable-alsatest was given.
18128 if test "${enable_alsatest+set}" = set; then :
18129   enableval=$enable_alsatest; enable_alsatest="$enableval"
18130 else
18131   enable_alsatest=yes
18132 fi
18133
18134
18135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
18136 $as_echo_n "checking for ALSA CFLAGS... " >&6; }
18137 if test "$alsa_inc_prefix" != "" ; then
18138         ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
18139         CFLAGS="$CFLAGS -I$alsa_inc_prefix"
18140 fi
18141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
18142 $as_echo "$ALSA_CFLAGS" >&6; }
18143
18144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
18145 $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
18146 if test "$alsa_prefix" != "" ; then
18147         ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
18148         LDFLAGS="$LDFLAGS $ALSA_LIBS"
18149 fi
18150
18151 ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
18152 LIBS=`echo $LIBS | sed 's/-lm//'`
18153 LIBS=`echo $LIBS | sed 's/-ldl//'`
18154 LIBS=`echo $LIBS | sed 's/-lpthread//'`
18155 LIBS=`echo $LIBS | sed 's/  //'`
18156 LIBS="$ALSA_LIBS $LIBS"
18157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
18158 $as_echo "$ALSA_LIBS" >&6; }
18159
18160 min_alsa_version=1.0.11
18161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
18162 $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
18163 no_alsa=""
18164     alsa_min_major_version=`echo $min_alsa_version | \
18165            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
18166     alsa_min_minor_version=`echo $min_alsa_version | \
18167            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
18168     alsa_min_micro_version=`echo $min_alsa_version | \
18169            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
18170
18171
18172 ac_ext=c
18173 ac_cpp='$CPP $CPPFLAGS'
18174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18177
18178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18179 /* end confdefs.h.  */
18180
18181 #include <alsa/asoundlib.h>
18182
18183 int
18184 main ()
18185 {
18186
18187 /* ensure backward compatibility */
18188 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
18189 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
18190 #endif
18191 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
18192 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
18193 #endif
18194 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
18195 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
18196 #endif
18197
18198 #  if(SND_LIB_MAJOR > $alsa_min_major_version)
18199   exit(0);
18200 #  else
18201 #    if(SND_LIB_MAJOR < $alsa_min_major_version)
18202 #       error not present
18203 #    endif
18204
18205 #   if(SND_LIB_MINOR > $alsa_min_minor_version)
18206   exit(0);
18207 #   else
18208 #     if(SND_LIB_MINOR < $alsa_min_minor_version)
18209 #          error not present
18210 #      endif
18211
18212 #      if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
18213 #        error not present
18214 #      endif
18215 #    endif
18216 #  endif
18217 exit(0);
18218
18219   ;
18220   return 0;
18221 }
18222 _ACEOF
18223 if ac_fn_c_try_compile "$LINENO"; then :
18224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
18225 $as_echo "found." >&6; }
18226 else
18227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
18228 $as_echo "not present." >&6; }
18229
18230    alsa_found=no
18231
18232 fi
18233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18234 ac_ext=c
18235 ac_cpp='$CPP $CPPFLAGS'
18236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18239
18240
18241 if test "x$enable_alsatest" = "xyes"; then
18242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
18243 $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
18244 if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
18245   $as_echo_n "(cached) " >&6
18246 else
18247   ac_check_lib_save_LIBS=$LIBS
18248 LIBS="-lasound  $LIBS"
18249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18250 /* end confdefs.h.  */
18251
18252 /* Override any GCC internal prototype to avoid an error.
18253    Use char because int might match the return type of a GCC
18254    builtin and then its argument prototype would still apply.  */
18255 #ifdef __cplusplus
18256 extern "C"
18257 #endif
18258 char snd_ctl_open ();
18259 int
18260 main ()
18261 {
18262 return snd_ctl_open ();
18263   ;
18264   return 0;
18265 }
18266 _ACEOF
18267 if ac_fn_c_try_link "$LINENO"; then :
18268   ac_cv_lib_asound_snd_ctl_open=yes
18269 else
18270   ac_cv_lib_asound_snd_ctl_open=no
18271 fi
18272 rm -f core conftest.err conftest.$ac_objext \
18273     conftest$ac_exeext conftest.$ac_ext
18274 LIBS=$ac_check_lib_save_LIBS
18275 fi
18276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
18277 $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
18278 if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
18279   cat >>confdefs.h <<_ACEOF
18280 #define HAVE_LIBASOUND 1
18281 _ACEOF
18282
18283   LIBS="-lasound $LIBS"
18284
18285 else
18286
18287          alsa_found=no
18288
18289 fi
18290
18291 fi
18292
18293 if test "x$alsa_found" = "xyes" ; then
18294    have_alsa=yes
18295    LIBS=`echo $LIBS | sed 's/-lasound//g'`
18296    LIBS=`echo $LIBS | sed 's/  //'`
18297    LIBS="-lasound $LIBS"
18298 fi
18299 if test "x$alsa_found" = "xno" ; then
18300    have_alsa=no
18301    CFLAGS="$alsa_save_CFLAGS"
18302    LDFLAGS="$alsa_save_LDFLAGS"
18303    LIBS="$alsa_save_LIBS"
18304    ALSA_CFLAGS=""
18305    ALSA_LIBS=""
18306 fi
18307
18308
18309
18310
18311         # Restore all flags from before the ALSA detection runs
18312         CFLAGS="$alsa_save_CFLAGS"
18313         LDFLAGS="$alsa_save_LDFLAGS"
18314         LIBS="$alsa_save_LIBS"
18315         if test x$have_alsa = xyes; then
18316             # Check whether --enable-alsa-shared was given.
18317 if test "${enable_alsa_shared+set}" = set; then :
18318   enableval=$enable_alsa_shared;
18319 else
18320   enable_alsa_shared=yes
18321 fi
18322
18323             alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
18324
18325
18326 $as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
18327
18328             SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
18329             EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
18330             if test x$have_loadso != xyes && \
18331                test x$enable_alsa_shared = xyes; then
18332                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
18333 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
18334             fi
18335             if test x$have_loadso = xyes && \
18336                test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
18337                 echo "-- dynamic libasound -> $alsa_lib"
18338
18339 cat >>confdefs.h <<_ACEOF
18340 #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
18341 _ACEOF
18342
18343                 SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
18344             else
18345                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
18346                 SUMMARY_audio="${SUMMARY_audio} alsa"
18347             fi
18348             have_audio=yes
18349         fi
18350     fi
18351 }
18352
18353 CheckJACK()
18354 {
18355     # Check whether --enable-jack was given.
18356 if test "${enable_jack+set}" = set; then :
18357   enableval=$enable_jack;
18358 else
18359   enable_jack=yes
18360 fi
18361
18362     if test x$enable_audio = xyes -a x$enable_jack = xyes; then
18363
18364 pkg_failed=no
18365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JACK" >&5
18366 $as_echo_n "checking for JACK... " >&6; }
18367
18368 if test -n "$JACK_CFLAGS"; then
18369     pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
18370  elif test -n "$PKG_CONFIG"; then
18371     if test -n "$PKG_CONFIG" && \
18372     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
18373   ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
18374   ac_status=$?
18375   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18376   test $ac_status = 0; }; then
18377   pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.125" 2>/dev/null`
18378 else
18379   pkg_failed=yes
18380 fi
18381  else
18382     pkg_failed=untried
18383 fi
18384 if test -n "$JACK_LIBS"; then
18385     pkg_cv_JACK_LIBS="$JACK_LIBS"
18386  elif test -n "$PKG_CONFIG"; then
18387     if test -n "$PKG_CONFIG" && \
18388     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
18389   ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
18390   ac_status=$?
18391   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18392   test $ac_status = 0; }; then
18393   pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.125" 2>/dev/null`
18394 else
18395   pkg_failed=yes
18396 fi
18397  else
18398     pkg_failed=untried
18399 fi
18400
18401
18402
18403 if test $pkg_failed = yes; then
18404         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18405 $as_echo "no" >&6; }
18406
18407 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18408         _pkg_short_errors_supported=yes
18409 else
18410         _pkg_short_errors_supported=no
18411 fi
18412         if test $_pkg_short_errors_supported = yes; then
18413                 JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "jack >= 0.125" 2>&1`
18414         else
18415                 JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors "jack >= 0.125" 2>&1`
18416         fi
18417         # Put the nasty error message in config.log where it belongs
18418         echo "$JACK_PKG_ERRORS" >&5
18419
18420         audio_jack=no
18421 elif test $pkg_failed = untried; then
18422         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18423 $as_echo "no" >&6; }
18424         audio_jack=no
18425 else
18426         JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
18427         JACK_LIBS=$pkg_cv_JACK_LIBS
18428         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18429 $as_echo "yes" >&6; }
18430         audio_jack=yes
18431 fi
18432
18433         if test x$audio_jack = xyes; then
18434             # Check whether --enable-jack-shared was given.
18435 if test "${enable_jack_shared+set}" = set; then :
18436   enableval=$enable_jack_shared;
18437 else
18438   enable_jack_shared=yes
18439 fi
18440
18441             jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
18442
18443
18444 $as_echo "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
18445
18446             SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
18447             EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
18448             if test x$have_loadso != xyes && \
18449                test x$enable_jack_shared = xyes; then
18450                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
18451 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
18452             fi
18453             if test x$have_loadso = xyes && \
18454                test x$enable_jack_shared = xyes && test x$jack_lib != x; then
18455                 echo "-- dynamic libjack -> $jack_lib"
18456
18457 cat >>confdefs.h <<_ACEOF
18458 #define SDL_AUDIO_DRIVER_JACK_DYNAMIC "$jack_lib"
18459 _ACEOF
18460
18461                 SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
18462
18463                 case "$host" in
18464                     # On Solaris, jack must be linked deferred explicitly
18465                     # to prevent undefined symbol failures.
18466                     *-*-solaris*)
18467                         JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
18468                         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
18469                 esac
18470             else
18471                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
18472                 SUMMARY_audio="${SUMMARY_audio} jack"
18473             fi
18474             have_audio=yes
18475         fi
18476     fi
18477 }
18478
18479 CheckESD()
18480 {
18481     # Check whether --enable-esd was given.
18482 if test "${enable_esd+set}" = set; then :
18483   enableval=$enable_esd;
18484 else
18485   enable_esd=yes
18486 fi
18487
18488     if test x$enable_audio = xyes -a x$enable_esd = xyes; then
18489
18490 # Check whether --with-esd-prefix was given.
18491 if test "${with_esd_prefix+set}" = set; then :
18492   withval=$with_esd_prefix; esd_prefix="$withval"
18493 else
18494   esd_prefix=""
18495 fi
18496
18497
18498 # Check whether --with-esd-exec-prefix was given.
18499 if test "${with_esd_exec_prefix+set}" = set; then :
18500   withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
18501 else
18502   esd_exec_prefix=""
18503 fi
18504
18505 # Check whether --enable-esdtest was given.
18506 if test "${enable_esdtest+set}" = set; then :
18507   enableval=$enable_esdtest;
18508 else
18509   enable_esdtest=yes
18510 fi
18511
18512
18513   if test x$esd_exec_prefix != x ; then
18514      esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
18515      if test x${ESD_CONFIG+set} != xset ; then
18516         ESD_CONFIG=$esd_exec_prefix/bin/esd-config
18517      fi
18518   fi
18519   if test x$esd_prefix != x ; then
18520      esd_args="$esd_args --prefix=$esd_prefix"
18521      if test x${ESD_CONFIG+set} != xset ; then
18522         ESD_CONFIG=$esd_prefix/bin/esd-config
18523      fi
18524   fi
18525
18526   # Extract the first word of "esd-config", so it can be a program name with args.
18527 set dummy esd-config; ac_word=$2
18528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18529 $as_echo_n "checking for $ac_word... " >&6; }
18530 if ${ac_cv_path_ESD_CONFIG+:} false; then :
18531   $as_echo_n "(cached) " >&6
18532 else
18533   case $ESD_CONFIG in
18534   [\\/]* | ?:[\\/]*)
18535   ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
18536   ;;
18537   *)
18538   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18539 for as_dir in $PATH
18540 do
18541   IFS=$as_save_IFS
18542   test -z "$as_dir" && as_dir=.
18543     for ac_exec_ext in '' $ac_executable_extensions; do
18544   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18545     ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18546     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18547     break 2
18548   fi
18549 done
18550   done
18551 IFS=$as_save_IFS
18552
18553   test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
18554   ;;
18555 esac
18556 fi
18557 ESD_CONFIG=$ac_cv_path_ESD_CONFIG
18558 if test -n "$ESD_CONFIG"; then
18559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
18560 $as_echo "$ESD_CONFIG" >&6; }
18561 else
18562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18563 $as_echo "no" >&6; }
18564 fi
18565
18566
18567   min_esd_version=0.2.8
18568   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
18569 $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
18570   no_esd=""
18571   if test "$ESD_CONFIG" = "no" ; then
18572     no_esd=yes
18573   else
18574     ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
18575     ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
18576
18577     esd_major_version=`$ESD_CONFIG $esd_args --version | \
18578            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
18579     esd_minor_version=`$ESD_CONFIG $esd_args --version | \
18580            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
18581     esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
18582            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
18583     if test "x$enable_esdtest" = "xyes" ; then
18584       ac_save_CFLAGS="$CFLAGS"
18585       ac_save_LIBS="$LIBS"
18586       CFLAGS="$CFLAGS $ESD_CFLAGS"
18587       LIBS="$LIBS $ESD_LIBS"
18588       rm -f conf.esdtest
18589       if test "$cross_compiling" = yes; then :
18590   echo $ac_n "cross compiling; assumed OK... $ac_c"
18591 else
18592   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18593 /* end confdefs.h.  */
18594
18595 #include <stdio.h>
18596 #include <stdlib.h>
18597 #include <string.h>
18598 #include <esd.h>
18599
18600 char*
18601 my_strdup (char *str)
18602 {
18603   char *new_str;
18604
18605   if (str)
18606     {
18607       new_str = malloc ((strlen (str) + 1) * sizeof(char));
18608       strcpy (new_str, str);
18609     }
18610   else
18611     new_str = NULL;
18612
18613   return new_str;
18614 }
18615
18616 int main ()
18617 {
18618   int major, minor, micro;
18619   char *tmp_version;
18620
18621   system ("touch conf.esdtest");
18622
18623   /* HP/UX 9 (%@#!) writes to sscanf strings */
18624   tmp_version = my_strdup("$min_esd_version");
18625   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
18626      printf("%s, bad version string\n", "$min_esd_version");
18627      exit(1);
18628    }
18629
18630    if (($esd_major_version > major) ||
18631       (($esd_major_version == major) && ($esd_minor_version > minor)) ||
18632       (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
18633     {
18634       return 0;
18635     }
18636   else
18637     {
18638       printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
18639       printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
18640       printf("*** best to upgrade to the required version.\n");
18641       printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
18642       printf("*** to point to the correct copy of esd-config, and remove the file\n");
18643       printf("*** config.cache before re-running configure\n");
18644       return 1;
18645     }
18646 }
18647
18648
18649 _ACEOF
18650 if ac_fn_c_try_run "$LINENO"; then :
18651
18652 else
18653   no_esd=yes
18654 fi
18655 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18656   conftest.$ac_objext conftest.beam conftest.$ac_ext
18657 fi
18658
18659        CFLAGS="$ac_save_CFLAGS"
18660        LIBS="$ac_save_LIBS"
18661      fi
18662   fi
18663   if test "x$no_esd" = x ; then
18664      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18665 $as_echo "yes" >&6; }
18666      have_esd=yes
18667   else
18668      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18669 $as_echo "no" >&6; }
18670      if test "$ESD_CONFIG" = "no" ; then
18671        echo "*** The esd-config script installed by ESD could not be found"
18672        echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
18673        echo "*** your path, or set the ESD_CONFIG environment variable to the"
18674        echo "*** full path to esd-config."
18675      else
18676        if test -f conf.esdtest ; then
18677         :
18678        else
18679           echo "*** Could not run ESD test program, checking why..."
18680           CFLAGS="$CFLAGS $ESD_CFLAGS"
18681           LIBS="$LIBS $ESD_LIBS"
18682           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18683 /* end confdefs.h.  */
18684
18685 #include <stdio.h>
18686 #include <esd.h>
18687
18688 int
18689 main ()
18690 {
18691  return 0;
18692   ;
18693   return 0;
18694 }
18695 _ACEOF
18696 if ac_fn_c_try_link "$LINENO"; then :
18697    echo "*** The test program compiled, but did not run. This usually means"
18698           echo "*** that the run-time linker is not finding ESD or finding the wrong"
18699           echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
18700           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
18701           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
18702           echo "*** is required on your system"
18703           echo "***"
18704           echo "*** If you have an old version installed, it is best to remove it, although"
18705           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
18706 else
18707    echo "*** The test program failed to compile or link. See the file config.log for the"
18708           echo "*** exact error that occured. This usually means ESD was incorrectly installed"
18709           echo "*** or that you have moved ESD since it was installed. In the latter case, you"
18710           echo "*** may want to edit the esd-config script: $ESD_CONFIG"
18711 fi
18712 rm -f core conftest.err conftest.$ac_objext \
18713     conftest$ac_exeext conftest.$ac_ext
18714           CFLAGS="$ac_save_CFLAGS"
18715           LIBS="$ac_save_LIBS"
18716        fi
18717      fi
18718      ESD_CFLAGS=""
18719      ESD_LIBS=""
18720      have_esd=no
18721   fi
18722
18723
18724   rm -f conf.esdtest
18725
18726         if test x$have_esd = xyes; then
18727             # Check whether --enable-esd-shared was given.
18728 if test "${enable_esd_shared+set}" = set; then :
18729   enableval=$enable_esd_shared;
18730 else
18731   enable_esd_shared=yes
18732 fi
18733
18734             esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
18735
18736
18737 $as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
18738
18739             SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
18740             EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
18741             if test x$have_loadso != xyes && \
18742                test x$enable_esd_shared = xyes; then
18743                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
18744 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
18745             fi
18746             if test x$have_loadso = xyes && \
18747                test x$enable_esd_shared = xyes && test x$esd_lib != x; then
18748                 echo "-- dynamic libesd -> $esd_lib"
18749
18750 cat >>confdefs.h <<_ACEOF
18751 #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
18752 _ACEOF
18753
18754                 SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
18755             else
18756                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
18757                 SUMMARY_audio="${SUMMARY_audio} esd"
18758             fi
18759             have_audio=yes
18760         fi
18761     fi
18762 }
18763
18764 CheckPulseAudio()
18765 {
18766     # Check whether --enable-pulseaudio was given.
18767 if test "${enable_pulseaudio+set}" = set; then :
18768   enableval=$enable_pulseaudio;
18769 else
18770   enable_pulseaudio=yes
18771 fi
18772
18773     if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
18774
18775 pkg_failed=no
18776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PULSEAUDIO" >&5
18777 $as_echo_n "checking for PULSEAUDIO... " >&6; }
18778
18779 if test -n "$PULSEAUDIO_CFLAGS"; then
18780     pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
18781  elif test -n "$PKG_CONFIG"; then
18782     if test -n "$PKG_CONFIG" && \
18783     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
18784   ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
18785   ac_status=$?
18786   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18787   test $ac_status = 0; }; then
18788   pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple >= 0.9" 2>/dev/null`
18789 else
18790   pkg_failed=yes
18791 fi
18792  else
18793     pkg_failed=untried
18794 fi
18795 if test -n "$PULSEAUDIO_LIBS"; then
18796     pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
18797  elif test -n "$PKG_CONFIG"; then
18798     if test -n "$PKG_CONFIG" && \
18799     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
18800   ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
18801   ac_status=$?
18802   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18803   test $ac_status = 0; }; then
18804   pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse-simple >= 0.9" 2>/dev/null`
18805 else
18806   pkg_failed=yes
18807 fi
18808  else
18809     pkg_failed=untried
18810 fi
18811
18812
18813
18814 if test $pkg_failed = yes; then
18815         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18816 $as_echo "no" >&6; }
18817
18818 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18819         _pkg_short_errors_supported=yes
18820 else
18821         _pkg_short_errors_supported=no
18822 fi
18823         if test $_pkg_short_errors_supported = yes; then
18824                 PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpulse-simple >= 0.9" 2>&1`
18825         else
18826                 PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpulse-simple >= 0.9" 2>&1`
18827         fi
18828         # Put the nasty error message in config.log where it belongs
18829         echo "$PULSEAUDIO_PKG_ERRORS" >&5
18830
18831         audio_pulseaudio=no
18832 elif test $pkg_failed = untried; then
18833         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18834 $as_echo "no" >&6; }
18835         audio_pulseaudio=no
18836 else
18837         PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
18838         PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
18839         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18840 $as_echo "yes" >&6; }
18841         audio_pulseaudio=yes
18842 fi
18843
18844         if test x$audio_pulseaudio = xyes; then
18845             # Check whether --enable-pulseaudio-shared was given.
18846 if test "${enable_pulseaudio_shared+set}" = set; then :
18847   enableval=$enable_pulseaudio_shared;
18848 else
18849   enable_pulseaudio_shared=yes
18850 fi
18851
18852             pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
18853
18854
18855 $as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
18856
18857             SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
18858             EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
18859             if test x$have_loadso != xyes && \
18860                test x$enable_pulseaudio_shared = xyes; then
18861                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
18862 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
18863             fi
18864             if test x$have_loadso = xyes && \
18865                test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
18866                 echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
18867
18868 cat >>confdefs.h <<_ACEOF
18869 #define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib"
18870 _ACEOF
18871
18872                 SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
18873
18874                 case "$host" in
18875                     # On Solaris, pulseaudio must be linked deferred explicitly
18876                     # to prevent undefined symbol failures.
18877                     *-*-solaris*)
18878                         PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
18879                         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
18880                 esac
18881             else
18882                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
18883                 SUMMARY_audio="${SUMMARY_audio} pulse"
18884             fi
18885             have_audio=yes
18886         fi
18887     fi
18888 }
18889
18890 CheckARTSC()
18891 {
18892     # Check whether --enable-arts was given.
18893 if test "${enable_arts+set}" = set; then :
18894   enableval=$enable_arts;
18895 else
18896   enable_arts=yes
18897 fi
18898
18899     if test x$enable_audio = xyes -a x$enable_arts = xyes; then
18900         # Extract the first word of "artsc-config", so it can be a program name with args.
18901 set dummy artsc-config; ac_word=$2
18902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18903 $as_echo_n "checking for $ac_word... " >&6; }
18904 if ${ac_cv_path_ARTSCONFIG+:} false; then :
18905   $as_echo_n "(cached) " >&6
18906 else
18907   case $ARTSCONFIG in
18908   [\\/]* | ?:[\\/]*)
18909   ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
18910   ;;
18911   *)
18912   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18913 for as_dir in $PATH
18914 do
18915   IFS=$as_save_IFS
18916   test -z "$as_dir" && as_dir=.
18917     for ac_exec_ext in '' $ac_executable_extensions; do
18918   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18919     ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
18920     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18921     break 2
18922   fi
18923 done
18924   done
18925 IFS=$as_save_IFS
18926
18927   ;;
18928 esac
18929 fi
18930 ARTSCONFIG=$ac_cv_path_ARTSCONFIG
18931 if test -n "$ARTSCONFIG"; then
18932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
18933 $as_echo "$ARTSCONFIG" >&6; }
18934 else
18935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18936 $as_echo "no" >&6; }
18937 fi
18938
18939
18940         if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
18941             : # arts isn't installed
18942         else
18943             ARTS_CFLAGS=`$ARTSCONFIG --cflags`
18944             ARTS_LIBS=`$ARTSCONFIG --libs`
18945             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
18946 $as_echo_n "checking for aRts development environment... " >&6; }
18947             audio_arts=no
18948             save_CFLAGS="$CFLAGS"
18949             CFLAGS="$CFLAGS $ARTS_CFLAGS"
18950             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18951 /* end confdefs.h.  */
18952
18953              #include <artsc.h>
18954
18955 int
18956 main ()
18957 {
18958
18959              arts_stream_t stream;
18960
18961   ;
18962   return 0;
18963 }
18964 _ACEOF
18965 if ac_fn_c_try_compile "$LINENO"; then :
18966
18967             audio_arts=yes
18968
18969 fi
18970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18971             CFLAGS="$save_CFLAGS"
18972             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
18973 $as_echo "$audio_arts" >&6; }
18974             if test x$audio_arts = xyes; then
18975                 # Check whether --enable-arts-shared was given.
18976 if test "${enable_arts_shared+set}" = set; then :
18977   enableval=$enable_arts_shared;
18978 else
18979   enable_arts_shared=yes
18980 fi
18981
18982                 arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
18983
18984
18985 $as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
18986
18987                 SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
18988                 EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
18989                 if test x$have_loadso != xyes && \
18990                    test x$enable_arts_shared = xyes; then
18991                     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
18992 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
18993                 fi
18994                 if test x$have_loadso = xyes && \
18995                    test x$enable_arts_shared = xyes && test x$arts_lib != x; then
18996                     echo "-- dynamic libartsc -> $arts_lib"
18997
18998 cat >>confdefs.h <<_ACEOF
18999 #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
19000 _ACEOF
19001
19002                     SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
19003                 else
19004                     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
19005                     SUMMARY_audio="${SUMMARY_audio} arts"
19006                 fi
19007                 have_audio=yes
19008             fi
19009         fi
19010     fi
19011 }
19012
19013 CheckNAS()
19014 {
19015     # Check whether --enable-nas was given.
19016 if test "${enable_nas+set}" = set; then :
19017   enableval=$enable_nas;
19018 else
19019   enable_nas=yes
19020 fi
19021
19022     if test x$enable_audio = xyes -a x$enable_nas = xyes; then
19023         ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
19024 if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
19025   have_nas_hdr=yes
19026 fi
19027
19028
19029         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
19030 $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
19031 if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
19032   $as_echo_n "(cached) " >&6
19033 else
19034   ac_check_lib_save_LIBS=$LIBS
19035 LIBS="-laudio  $LIBS"
19036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19037 /* end confdefs.h.  */
19038
19039 /* Override any GCC internal prototype to avoid an error.
19040    Use char because int might match the return type of a GCC
19041    builtin and then its argument prototype would still apply.  */
19042 #ifdef __cplusplus
19043 extern "C"
19044 #endif
19045 char AuOpenServer ();
19046 int
19047 main ()
19048 {
19049 return AuOpenServer ();
19050   ;
19051   return 0;
19052 }
19053 _ACEOF
19054 if ac_fn_c_try_link "$LINENO"; then :
19055   ac_cv_lib_audio_AuOpenServer=yes
19056 else
19057   ac_cv_lib_audio_AuOpenServer=no
19058 fi
19059 rm -f core conftest.err conftest.$ac_objext \
19060     conftest$ac_exeext conftest.$ac_ext
19061 LIBS=$ac_check_lib_save_LIBS
19062 fi
19063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
19064 $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
19065 if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
19066   have_nas_lib=yes
19067 fi
19068
19069
19070         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
19071 $as_echo_n "checking for NAS audio support... " >&6; }
19072         have_nas=no
19073
19074         if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
19075             have_nas=yes
19076             NAS_LIBS="-laudio"
19077
19078         elif test -r /usr/X11R6/include/audio/audiolib.h; then
19079             have_nas=yes
19080             NAS_CFLAGS="-I/usr/X11R6/include/"
19081             NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
19082
19083         fi
19084
19085         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
19086 $as_echo "$have_nas" >&6; }
19087
19088         if test x$have_nas = xyes; then
19089             # Check whether --enable-nas-shared was given.
19090 if test "${enable_nas_shared+set}" = set; then :
19091   enableval=$enable_nas_shared;
19092 else
19093   enable_nas_shared=yes
19094 fi
19095
19096             nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
19097
19098             if test x$have_loadso != xyes && \
19099                test x$enable_nas_shared = xyes; then
19100                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
19101 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
19102             fi
19103             if test x$have_loadso = xyes && \
19104                test x$enable_nas_shared = xyes && test x$nas_lib != x; then
19105                 echo "-- dynamic libaudio -> $nas_lib"
19106
19107 cat >>confdefs.h <<_ACEOF
19108 #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
19109 _ACEOF
19110
19111                 SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
19112             else
19113                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
19114                 SUMMARY_audio="${SUMMARY_audio} nas"
19115             fi
19116
19117
19118 $as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
19119
19120             SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
19121             EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
19122             have_audio=yes
19123         fi
19124     fi
19125 }
19126
19127 CheckSNDIO()
19128 {
19129     # Check whether --enable-sndio was given.
19130 if test "${enable_sndio+set}" = set; then :
19131   enableval=$enable_sndio;
19132 else
19133   enable_sndio=yes
19134 fi
19135
19136     if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
19137         ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
19138 if test "x$ac_cv_header_sndio_h" = xyes; then :
19139   have_sndio_hdr=yes
19140 fi
19141
19142
19143         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
19144 $as_echo_n "checking for sio_open in -lsndio... " >&6; }
19145 if ${ac_cv_lib_sndio_sio_open+:} false; then :
19146   $as_echo_n "(cached) " >&6
19147 else
19148   ac_check_lib_save_LIBS=$LIBS
19149 LIBS="-lsndio  $LIBS"
19150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19151 /* end confdefs.h.  */
19152
19153 /* Override any GCC internal prototype to avoid an error.
19154    Use char because int might match the return type of a GCC
19155    builtin and then its argument prototype would still apply.  */
19156 #ifdef __cplusplus
19157 extern "C"
19158 #endif
19159 char sio_open ();
19160 int
19161 main ()
19162 {
19163 return sio_open ();
19164   ;
19165   return 0;
19166 }
19167 _ACEOF
19168 if ac_fn_c_try_link "$LINENO"; then :
19169   ac_cv_lib_sndio_sio_open=yes
19170 else
19171   ac_cv_lib_sndio_sio_open=no
19172 fi
19173 rm -f core conftest.err conftest.$ac_objext \
19174     conftest$ac_exeext conftest.$ac_ext
19175 LIBS=$ac_check_lib_save_LIBS
19176 fi
19177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
19178 $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
19179 if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
19180   have_sndio_lib=yes
19181 fi
19182
19183
19184         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
19185 $as_echo_n "checking for sndio audio support... " >&6; }
19186         have_sndio=no
19187
19188         if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
19189             have_sndio=yes
19190             SNDIO_LIBS="-lsndio"
19191         fi
19192
19193         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
19194 $as_echo "$have_sndio" >&6; }
19195
19196         if test x$have_sndio = xyes; then
19197             # Check whether --enable-sndio-shared was given.
19198 if test "${enable_sndio_shared+set}" = set; then :
19199   enableval=$enable_sndio_shared;
19200 else
19201   enable_sndio_shared=yes
19202 fi
19203
19204             sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
19205
19206             if test x$have_loadso != xyes && \
19207                test x$enable_sndio_shared = xyes; then
19208                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
19209 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
19210             fi
19211             if test x$have_loadso = xyes && \
19212                test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
19213                 echo "-- dynamic libsndio -> $sndio_lib"
19214
19215 cat >>confdefs.h <<_ACEOF
19216 #define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib"
19217 _ACEOF
19218
19219                 SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
19220             else
19221                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
19222                 SUMMARY_audio="${SUMMARY_audio} sndio"
19223             fi
19224
19225
19226 $as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
19227
19228             SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
19229             EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
19230             have_audio=yes
19231         fi
19232     fi
19233 }
19234
19235 CheckFusionSound()
19236 {
19237     # Check whether --enable-fusionsound was given.
19238 if test "${enable_fusionsound+set}" = set; then :
19239   enableval=$enable_fusionsound;
19240 else
19241   enable_fusionsound=no
19242 fi
19243
19244     if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
19245
19246 pkg_failed=no
19247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FUSIONSOUND" >&5
19248 $as_echo_n "checking for FUSIONSOUND... " >&6; }
19249
19250 if test -n "$FUSIONSOUND_CFLAGS"; then
19251     pkg_cv_FUSIONSOUND_CFLAGS="$FUSIONSOUND_CFLAGS"
19252  elif test -n "$PKG_CONFIG"; then
19253     if test -n "$PKG_CONFIG" && \
19254     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
19255   ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
19256   ac_status=$?
19257   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19258   test $ac_status = 0; }; then
19259   pkg_cv_FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags "fusionsound >= 1.1.1" 2>/dev/null`
19260 else
19261   pkg_failed=yes
19262 fi
19263  else
19264     pkg_failed=untried
19265 fi
19266 if test -n "$FUSIONSOUND_LIBS"; then
19267     pkg_cv_FUSIONSOUND_LIBS="$FUSIONSOUND_LIBS"
19268  elif test -n "$PKG_CONFIG"; then
19269     if test -n "$PKG_CONFIG" && \
19270     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
19271   ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
19272   ac_status=$?
19273   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19274   test $ac_status = 0; }; then
19275   pkg_cv_FUSIONSOUND_LIBS=`$PKG_CONFIG --libs "fusionsound >= 1.1.1" 2>/dev/null`
19276 else
19277   pkg_failed=yes
19278 fi
19279  else
19280     pkg_failed=untried
19281 fi
19282
19283
19284
19285 if test $pkg_failed = yes; then
19286         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19287 $as_echo "no" >&6; }
19288
19289 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19290         _pkg_short_errors_supported=yes
19291 else
19292         _pkg_short_errors_supported=no
19293 fi
19294         if test $_pkg_short_errors_supported = yes; then
19295                 FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fusionsound >= 1.1.1" 2>&1`
19296         else
19297                 FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors "fusionsound >= 1.1.1" 2>&1`
19298         fi
19299         # Put the nasty error message in config.log where it belongs
19300         echo "$FUSIONSOUND_PKG_ERRORS" >&5
19301
19302         fusionsound=no
19303 elif test $pkg_failed = untried; then
19304         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19305 $as_echo "no" >&6; }
19306         fusionsound=no
19307 else
19308         FUSIONSOUND_CFLAGS=$pkg_cv_FUSIONSOUND_CFLAGS
19309         FUSIONSOUND_LIBS=$pkg_cv_FUSIONSOUND_LIBS
19310         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19311 $as_echo "yes" >&6; }
19312         fusionsound=yes
19313 fi
19314
19315         if test x$fusionsound = xyes; then
19316
19317 $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
19318
19319             SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
19320             EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
19321
19322             # Check whether --enable-fusionsound-shared was given.
19323 if test "${enable_fusionsound_shared+set}" = set; then :
19324   enableval=$enable_fusionsound_shared;
19325 else
19326   enable_fusionsound_shared=yes
19327 fi
19328
19329             fusionsound_shared=no
19330             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
19331 $as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
19332             if test x$have_loadso != xyes && \
19333                test x$enable_fusionsound_shared = xyes; then
19334                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
19335 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
19336             fi
19337             if test x$have_loadso = xyes && \
19338                test x$enable_fusionsound_shared = xyes; then
19339
19340 cat >>confdefs.h <<_ACEOF
19341 #define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
19342 _ACEOF
19343
19344                 fusionsound_shared=yes
19345                 SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
19346             else
19347                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
19348                 SUMMARY_audio="${SUMMARY_audio} fusionsound"
19349             fi
19350             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
19351 $as_echo "$fusionsound_shared" >&6; }
19352
19353             have_audio=yes
19354         fi
19355     fi
19356 }
19357
19358 CheckDiskAudio()
19359 {
19360     # Check whether --enable-diskaudio was given.
19361 if test "${enable_diskaudio+set}" = set; then :
19362   enableval=$enable_diskaudio;
19363 else
19364   enable_diskaudio=yes
19365 fi
19366
19367     if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
19368
19369 $as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
19370
19371         SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
19372         SUMMARY_audio="${SUMMARY_audio} disk"
19373     fi
19374 }
19375
19376 CheckDummyAudio()
19377 {
19378     # Check whether --enable-dummyaudio was given.
19379 if test "${enable_dummyaudio+set}" = set; then :
19380   enableval=$enable_dummyaudio;
19381 else
19382   enable_dummyaudio=yes
19383 fi
19384
19385     if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
19386
19387 $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
19388
19389         SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
19390         SUMMARY_audio="${SUMMARY_audio} dummy"
19391     fi
19392 }
19393
19394 CheckLibSampleRate()
19395 {
19396     # Check whether --enable-libsamplerate was given.
19397 if test "${enable_libsamplerate+set}" = set; then :
19398   enableval=$enable_libsamplerate;
19399 else
19400   enable_libsamplerate=yes
19401 fi
19402
19403     if test x$enable_libsamplerate = xyes; then
19404         ac_fn_c_check_header_mongrel "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
19405 if test "x$ac_cv_header_samplerate_h" = xyes; then :
19406   have_samplerate_h_hdr=yes
19407 else
19408   have_samplerate_h_hdr=no
19409 fi
19410
19411
19412         if test x$have_samplerate_h_hdr = xyes; then
19413
19414 $as_echo "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
19415
19416
19417             # Check whether --enable-libsamplerate-shared was given.
19418 if test "${enable_libsamplerate_shared+set}" = set; then :
19419   enableval=$enable_libsamplerate_shared;
19420 else
19421   enable_libsamplerate_shared=yes
19422 fi
19423
19424
19425             samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
19426
19427             if test x$have_loadso != xyes && \
19428                test x$enable_libsamplerate_shared = xyes; then
19429                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
19430 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
19431             fi
19432             if test x$have_loadso = xyes && \
19433                test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
19434                 echo "-- dynamic libsamplerate -> $samplerate_lib"
19435
19436 cat >>confdefs.h <<_ACEOF
19437 #define SDL_LIBSAMPLERATE_DYNAMIC "$samplerate_lib"
19438 _ACEOF
19439
19440             else
19441                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
19442             fi
19443         fi
19444     fi
19445 }
19446
19447 CheckARM()
19448 {
19449     # Check whether --enable-arm-simd was given.
19450 if test "${enable_arm_simd+set}" = set; then :
19451   enableval=$enable_arm_simd; enable_arm_simd=$enableval
19452 else
19453   enable_arm_simd=no
19454 fi
19455
19456     if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_simd = xyes; then
19457         save_CFLAGS="$CFLAGS"
19458         have_arm_simd=no
19459         CFLAGS="-x assembler-with-cpp $CFLAGS"
19460
19461         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM SIMD" >&5
19462 $as_echo_n "checking for ARM SIMD... " >&6; }
19463         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19464 /* end confdefs.h.  */
19465
19466         .text
19467         .arch armv6
19468         .object_arch armv4
19469         .arm
19470         .altmacro
19471         #ifndef __ARM_EABI__
19472         #error EABI is required (to be sure that calling conventions are compatible)
19473         #endif
19474         pld [r0]
19475         uqadd8 r0, r0, r0
19476
19477 _ACEOF
19478 if ac_fn_c_try_compile "$LINENO"; then :
19479   have_arm_simd=yes
19480 fi
19481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19482         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_arm_simd" >&5
19483 $as_echo "$have_arm_simd" >&6; }
19484
19485         CFLAGS="$save_CFLAGS"
19486
19487         if test x$have_arm_simd = xyes; then
19488
19489 $as_echo "#define SDL_ARM_SIMD_BLITTERS 1" >>confdefs.h
19490
19491             SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-simd*.S"
19492             WARN_ABOUT_ARM_SIMD_ASM_MIT="yes"
19493         fi
19494     fi
19495 }
19496
19497 CheckNEON()
19498 {
19499     # Check whether --enable-arm-neon was given.
19500 if test "${enable_arm_neon+set}" = set; then :
19501   enableval=$enable_arm_neon; enable_arm_neon=$enableval
19502 else
19503   enable_arm_neon=no
19504 fi
19505
19506     if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_neon = xyes; then
19507         save_CFLAGS="$CFLAGS"
19508         have_arm_neon=no
19509         CFLAGS="-x assembler-with-cpp $CFLAGS"
19510
19511         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM NEON" >&5
19512 $as_echo_n "checking for ARM NEON... " >&6; }
19513         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19514 /* end confdefs.h.  */
19515
19516         .text
19517         .fpu neon
19518         .arch armv7a
19519         .object_arch armv4
19520         .eabi_attribute 10, 0
19521         .arm
19522         .altmacro
19523         #ifndef __ARM_EABI__
19524         #error EABI is required (to be sure that calling conventions are compatible)
19525         #endif
19526         pld [r0]
19527         vmovn.u16 d0, q0
19528
19529 _ACEOF
19530 if ac_fn_c_try_compile "$LINENO"; then :
19531   have_arm_neon=yes
19532 fi
19533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19534         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_arm_neon" >&5
19535 $as_echo "$have_arm_neon" >&6; }
19536         CFLAGS="$save_CFLAGS"
19537
19538         if test x$have_arm_neon = xyes; then
19539
19540 $as_echo "#define SDL_ARM_NEON_BLITTERS 1" >>confdefs.h
19541
19542             SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-neon*.S"
19543             WARN_ABOUT_ARM_NEON_ASM_MIT="yes"
19544         fi
19545     fi
19546 }
19547
19548 CheckVisibilityHidden()
19549 {
19550     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
19551 $as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; }
19552     have_gcc_fvisibility=no
19553
19554     visibility_CFLAGS="-fvisibility=hidden"
19555     save_CFLAGS="$CFLAGS"
19556     CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
19557     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19558 /* end confdefs.h.  */
19559
19560     #if !defined(__GNUC__) || __GNUC__ < 4
19561     #error SDL only uses visibility attributes in GCC 4 or newer
19562     #endif
19563
19564 int
19565 main ()
19566 {
19567
19568
19569   ;
19570   return 0;
19571 }
19572 _ACEOF
19573 if ac_fn_c_try_compile "$LINENO"; then :
19574
19575     have_gcc_fvisibility=yes
19576
19577 fi
19578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19579     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
19580 $as_echo "$have_gcc_fvisibility" >&6; }
19581     CFLAGS="$save_CFLAGS"
19582
19583     if test x$have_gcc_fvisibility = xyes; then
19584         EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
19585     fi
19586 }
19587
19588 CheckNoStrictAliasing()
19589 {
19590     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fno-strict-aliasing option" >&5
19591 $as_echo_n "checking for GCC -fno-strict-aliasing option... " >&6; }
19592     have_gcc_no_strict_aliasing=no
19593
19594     save_CFLAGS="$CFLAGS"
19595     CFLAGS="$save_CFLAGS -fno-strict-aliasing"
19596     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19597 /* end confdefs.h.  */
19598
19599     int x = 0;
19600
19601 int
19602 main ()
19603 {
19604
19605
19606   ;
19607   return 0;
19608 }
19609 _ACEOF
19610 if ac_fn_c_try_compile "$LINENO"; then :
19611
19612     have_gcc_no_strict_aliasing=yes
19613
19614 fi
19615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19616     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_no_strict_aliasing" >&5
19617 $as_echo "$have_gcc_no_strict_aliasing" >&6; }
19618     CFLAGS="$save_CFLAGS"
19619
19620     if test x$have_gcc_no_strict_aliasing = xyes; then
19621         EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
19622     fi
19623 }
19624
19625 CheckStackBoundary()
19626 {
19627     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
19628 $as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; }
19629     have_gcc_preferred_stack_boundary=no
19630
19631     save_CFLAGS="$CFLAGS"
19632     CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
19633     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19634 /* end confdefs.h.  */
19635
19636     int x = 0;
19637
19638 int
19639 main ()
19640 {
19641
19642
19643   ;
19644   return 0;
19645 }
19646 _ACEOF
19647 if ac_fn_c_try_compile "$LINENO"; then :
19648
19649     have_gcc_preferred_stack_boundary=yes
19650
19651 fi
19652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19653     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
19654 $as_echo "$have_gcc_preferred_stack_boundary" >&6; }
19655     CFLAGS="$save_CFLAGS"
19656
19657     if test x$have_gcc_preferred_stack_boundary = xyes; then
19658         EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
19659     fi
19660 }
19661
19662 CheckDeclarationAfterStatement()
19663 {
19664     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
19665 $as_echo_n "checking for GCC -Wdeclaration-after-statement option... " >&6; }
19666     have_gcc_declaration_after_statement=no
19667
19668     save_CFLAGS="$CFLAGS"
19669     CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
19670     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19671 /* end confdefs.h.  */
19672
19673     int x = 0;
19674
19675 int
19676 main ()
19677 {
19678
19679
19680   ;
19681   return 0;
19682 }
19683 _ACEOF
19684 if ac_fn_c_try_compile "$LINENO"; then :
19685
19686     have_gcc_declaration_after_statement=yes
19687
19688 fi
19689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19690     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
19691 $as_echo "$have_gcc_declaration_after_statement" >&6; }
19692     CFLAGS="$save_CFLAGS"
19693
19694     if test x$have_gcc_declaration_after_statement = xyes; then
19695         EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
19696     fi
19697 }
19698
19699 CheckWarnAll()
19700 {
19701     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
19702 $as_echo_n "checking for GCC -Wall option... " >&6; }
19703     have_gcc_Wall=no
19704
19705     save_CFLAGS="$CFLAGS"
19706     CFLAGS="$save_CFLAGS -Wall"
19707     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19708 /* end confdefs.h.  */
19709
19710     int x = 0;
19711
19712 int
19713 main ()
19714 {
19715
19716
19717   ;
19718   return 0;
19719 }
19720 _ACEOF
19721 if ac_fn_c_try_compile "$LINENO"; then :
19722
19723     have_gcc_Wall=yes
19724
19725 fi
19726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19727     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
19728 $as_echo "$have_gcc_Wall" >&6; }
19729     CFLAGS="$save_CFLAGS"
19730
19731     if test x$have_gcc_Wall = xyes; then
19732         EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
19733
19734                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
19735 $as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; }
19736         need_gcc_Wno_multichar=no
19737         case "$host" in
19738             *-*-haiku*)
19739                 need_gcc_Wno_multichar=yes
19740                 ;;
19741         esac
19742         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
19743 $as_echo "$need_gcc_Wno_multichar" >&6; }
19744         if test x$need_gcc_Wno_multichar = xyes; then
19745             EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
19746         fi
19747     fi
19748 }
19749
19750 CheckWayland()
19751 {
19752     # Check whether --enable-video-wayland was given.
19753 if test "${enable_video_wayland+set}" = set; then :
19754   enableval=$enable_video_wayland;
19755 else
19756   enable_video_wayland=yes
19757 fi
19758
19759
19760     # Check whether --enable-video-wayland-qt-touch was given.
19761 if test "${enable_video_wayland_qt_touch+set}" = set; then :
19762   enableval=$enable_video_wayland_qt_touch;
19763 else
19764   enable_video_wayland_qt_touch=yes
19765 fi
19766
19767
19768     if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
19769         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
19770 $as_echo_n "checking for Wayland support... " >&6; }
19771         video_wayland=no
19772         if  test x$video_opengl_egl = xyes && \
19773             test x$video_opengles_v2 = xyes; then
19774             if $PKG_CONFIG --exists wayland-client wayland-scanner wayland-protocols wayland-egl wayland-cursor egl xkbcommon xdg-shell-client text-client tizen-extension-client; then
19775                 WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon xdg-shell-client text-client tizen-extension-client`
19776                 WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon xdg-shell-client text-client tizen-extension-client`
19777                 WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
19778                 video_wayland=yes
19779             fi
19780         fi
19781         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
19782 $as_echo "$video_wayland" >&6; }
19783
19784         if test x$video_wayland = xyes; then
19785
19786 $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
19787
19788             if test x$enable_video_wayland_qt_touch = xyes; then
19789
19790 $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
19791
19792             fi
19793
19794             WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c"
19795             SOURCES="$SOURCES $WAYLAND_SOURCES"
19796             EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
19797             # Check whether --enable-wayland-shared was given.
19798 if test "${enable_wayland_shared+set}" = set; then :
19799   enableval=$enable_wayland_shared;
19800 else
19801   enable_wayland_shared=maybe
19802 fi
19803
19804
19805                         case "$host" in
19806                 *)
19807                     wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
19808                     wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
19809                     if test x$wayland_egl_lib = x; then
19810                                                 wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
19811                     fi
19812                     wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
19813                     xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
19814                     xdg_shell_client_lib=`find_lib "libxdg-shell-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
19815                     text_client_lib=`find_lib "libtext-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
19816                     tizen_extension_client_lib=`find_lib "libtizen-extension-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
19817                     ;;
19818             esac
19819
19820             if test x$enable_wayland_shared = xmaybe; then
19821                 enable_wayland_shared=yes
19822             fi
19823             if test x$have_loadso != xyes && \
19824                test x$enable_wayland_shared = xyes; then
19825                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
19826 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
19827                 enable_wayland_shared=no
19828             fi
19829             if test x$have_loadso = xyes && \
19830                test x$enable_wayland_shared = xyes && \
19831                test x$wayland_client_lib != x && \
19832                test x$wayland_egl_lib != x && \
19833                test x$wayland_cursor_lib != x && \
19834                test x$xdg_shell_client_lib != x && \
19835                test x$text_client_lib != x && \
19836                test x$tizen_extension_client_lib != x && \
19837                test x$xkbcommon_lib != x; then
19838                 echo "-- dynamic libwayland-client -> $wayland_client_lib"
19839                 echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
19840                 echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
19841                 echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
19842                 echo "-- dynamic libxdg_shell_client -> $xdg_shell_client_lib"
19843                 echo "-- dynamic libtext_client -> $xtext_client_lib"
19844                 echo "-- dynamic libtizen_extension_client -> $xtizen_extension_client_lib"
19845
19846 cat >>confdefs.h <<_ACEOF
19847 #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC "$wayland_client_lib"
19848 _ACEOF
19849
19850
19851 cat >>confdefs.h <<_ACEOF
19852 #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL "$wayland_egl_lib"
19853 _ACEOF
19854
19855
19856 cat >>confdefs.h <<_ACEOF
19857 #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR "$wayland_cursor_lib"
19858 _ACEOF
19859
19860
19861 cat >>confdefs.h <<_ACEOF
19862 #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
19863 _ACEOF
19864
19865
19866 cat >>confdefs.h <<_ACEOF
19867 #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XDGSHELLCLIENT "$xdg_shell_client_lib"
19868 _ACEOF
19869
19870
19871 cat >>confdefs.h <<_ACEOF
19872 #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_TEXTCLIENT "$text_client_lib"
19873 _ACEOF
19874
19875
19876 cat >>confdefs.h <<_ACEOF
19877 #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_TIZENEXTENSIONCLIENT "$tizen_extension_client_lib"
19878 _ACEOF
19879
19880                 SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
19881             else
19882                 enable_wayland_shared=no
19883                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
19884                 SUMMARY_video="${SUMMARY_video} wayland"
19885             fi
19886             have_video=yes
19887         fi
19888     fi
19889 }
19890
19891 CheckTizen()
19892 {
19893     # Check whether --enable-video-tizen was given.
19894 if test "${enable_video_tizen+set}" = set; then :
19895   enableval=$enable_video_tizen;
19896 else
19897   enable_video_tizen=yes
19898 fi
19899
19900
19901     if test x$enable_video = xyes -a x$enable_video_tizen = xyes; then
19902         # Extract the first word of "pkg-config", so it can be a program name with args.
19903 set dummy pkg-config; ac_word=$2
19904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19905 $as_echo_n "checking for $ac_word... " >&6; }
19906 if ${ac_cv_path_PKG_CONFIG+:} false; then :
19907   $as_echo_n "(cached) " >&6
19908 else
19909   case $PKG_CONFIG in
19910   [\\/]* | ?:[\\/]*)
19911   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19912   ;;
19913   *)
19914   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19915 for as_dir in $PATH
19916 do
19917   IFS=$as_save_IFS
19918   test -z "$as_dir" && as_dir=.
19919     for ac_exec_ext in '' $ac_executable_extensions; do
19920   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19921     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19922     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19923     break 2
19924   fi
19925 done
19926   done
19927 IFS=$as_save_IFS
19928
19929   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19930   ;;
19931 esac
19932 fi
19933 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19934 if test -n "$PKG_CONFIG"; then
19935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19936 $as_echo "$PKG_CONFIG" >&6; }
19937 else
19938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19939 $as_echo "no" >&6; }
19940 fi
19941
19942
19943         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tizen support" >&5
19944 $as_echo_n "checking for Tizen support... " >&6; }
19945         video_tizen=no
19946         if  test x$PKG_CONFIG != xno && \
19947             test x$video_opengl_egl = xyes && \
19948             test x$video_opengles_v2 = xyes; then
19949             if $PKG_CONFIG --exists wayland-client wayland-egl wayland-egl-tizen ecore ecore-wl2 xdg-shell-client text-client tizen-extension-client eina elementary capi-appfw-application capi-system-system-settings ecore-input dlog ecore-imf libdrm aul ecore-ipc appcore-ui; then
19950                 TIZEN_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-egl-tizen ecore ecore-wl2 xdg-shell-client text-client tizen-extension-client eina elementary capi-appfw-application capi-system-system-settings ecore-input dlog ecore-imf libdrm aul ecore-ipc appcore-ui`
19951                 TIZEN_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-egl-tizen ecore ecore-wl2 xdg-shell-client text-client tizen-extension-client eina elementary capi-appfw-application capi-system-system-settings ecore-input dlog ecore-imf libdrm aul ecore-ipc appcore-ui`
19952                 video_tizen=yes
19953             fi
19954         fi
19955
19956         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_tizen" >&5
19957 $as_echo "$video_tizen" >&6; }
19958
19959         if test x$video_tizen = xyes; then
19960
19961 $as_echo "#define SDL_VIDEO_DRIVER_TIZEN 1" >>confdefs.h
19962
19963             SOURCES="$SOURCES $srcdir/src/video/tizen/*.c"
19964             SOURCES="$SOURCES $srcdir/src/core/tizen/*.c"
19965             SDLMAIN_SOURCES="$srcdir/src/main/tizen/*.c"
19966
19967             SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
19968             SDL_LIBS="-lSDL2main $SDL_LIBS"
19969
19970             EXTRA_CFLAGS="$EXTRA_CFLAGS $TIZEN_CFLAGS -DTIZEN -fstack-protector-strong -Wl,-z,relro -D_FORTIFY_SOURCE=2 -fPIE -pie -Wno-error=declaration-after-statement"
19971             EXTRA_LDFLAGS="$EXTRA_LDFLAGS $TIZEN_LIBS -pie -Wl,-z,relro,-z,now"
19972             SUMMARY_video="${SUMMARY_video} tizen"
19973             have_video=yes
19974         fi
19975     fi
19976
19977     if test x$enable_joystick = xyes; then
19978         SUMMARY="${SUMMARY}SDL2 tizen joystick in:\n"
19979
19980 $as_echo "#define SDL_JOYSTICK_TIZEN 1" >>confdefs.h
19981
19982         SOURCES="$SOURCES $srcdir/src/joystick/tizen/*.c"
19983         have_joystick=yes
19984     fi
19985 }
19986
19987 CheckMir()
19988 {
19989     # Check whether --enable-video-mir was given.
19990 if test "${enable_video_mir+set}" = set; then :
19991   enableval=$enable_video_mir;
19992 else
19993   enable_video_mir=yes
19994 fi
19995
19996
19997     if test x$enable_video = xyes -a x$enable_video_mir = xyes; then
19998         # Extract the first word of "pkg-config", so it can be a program name with args.
19999 set dummy pkg-config; ac_word=$2
20000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20001 $as_echo_n "checking for $ac_word... " >&6; }
20002 if ${ac_cv_path_PKG_CONFIG+:} false; then :
20003   $as_echo_n "(cached) " >&6
20004 else
20005   case $PKG_CONFIG in
20006   [\\/]* | ?:[\\/]*)
20007   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20008   ;;
20009   *)
20010   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20011 for as_dir in $PATH
20012 do
20013   IFS=$as_save_IFS
20014   test -z "$as_dir" && as_dir=.
20015     for ac_exec_ext in '' $ac_executable_extensions; do
20016   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20017     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20018     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20019     break 2
20020   fi
20021 done
20022   done
20023 IFS=$as_save_IFS
20024
20025   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20026   ;;
20027 esac
20028 fi
20029 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20030 if test -n "$PKG_CONFIG"; then
20031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20032 $as_echo "$PKG_CONFIG" >&6; }
20033 else
20034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20035 $as_echo "no" >&6; }
20036 fi
20037
20038
20039         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mir support" >&5
20040 $as_echo_n "checking for Mir support... " >&6; }
20041         video_mir=no
20042         if test x$PKG_CONFIG != xno; then
20043             if $PKG_CONFIG --exists mirclient egl xkbcommon ; then
20044                 MIR_CFLAGS=`$PKG_CONFIG --cflags mirclient egl xkbcommon`
20045                 MIR_LIBS=`$PKG_CONFIG --libs mirclient egl xkbcommon`
20046                 save_CFLAGS="$CFLAGS"
20047                 CFLAGS="$save_CFLAGS $MIR_CFLAGS"
20048
20049                                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20050 /* end confdefs.h.  */
20051
20052                 #include <mir_toolkit/mir_client_library.h>
20053
20054 int
20055 main ()
20056 {
20057
20058                     MirWindowAttrib attrib = mir_window_attrib_state
20059
20060   ;
20061   return 0;
20062 }
20063 _ACEOF
20064 if ac_fn_c_try_compile "$LINENO"; then :
20065
20066                 video_mir=yes
20067
20068 fi
20069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20070                 CFLAGS="$save_CFLAGS"
20071             fi
20072         fi
20073         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_mir" >&5
20074 $as_echo "$video_mir" >&6; }
20075
20076         if test x$video_mir = xyes; then
20077
20078 $as_echo "#define SDL_VIDEO_DRIVER_MIR 1" >>confdefs.h
20079
20080             SOURCES="$SOURCES $srcdir/src/video/mir/*.c"
20081             EXTRA_CFLAGS="$EXTRA_CFLAGS $MIR_CFLAGS"
20082             # Check whether --enable-mir-shared was given.
20083 if test "${enable_mir_shared+set}" = set; then :
20084   enableval=$enable_mir_shared;
20085 else
20086   enable_mir_shared=maybe
20087 fi
20088
20089
20090                         case "$host" in
20091                 *)
20092                     mirclient_lib=`find_lib "libmirclient.so.*" "$MIR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
20093                     xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$MIR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
20094                     ;;
20095             esac
20096
20097             if test x$enable_mir_shared = xmaybe; then
20098                 enable_mir_shared=yes
20099             fi
20100             if test x$have_loadso != xyes && \
20101                test x$enable_mir_shared = xyes; then
20102                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Mir loading" >&5
20103 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Mir loading" >&2;}
20104                 enable_mir_shared=no
20105             fi
20106             if test x$have_loadso = xyes && \
20107                test x$enable_mir_shared = xyes && \
20108                test x$mirclient_lib != x && \
20109                test x$xkbcommon_lib != x; then
20110                 echo "-- dynamic libmirclient -> $mirclient_lib"
20111                 echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
20112
20113 cat >>confdefs.h <<_ACEOF
20114 #define SDL_VIDEO_DRIVER_MIR_DYNAMIC "$mirclient_lib"
20115 _ACEOF
20116
20117
20118 cat >>confdefs.h <<_ACEOF
20119 #define SDL_VIDEO_DRIVER_MIR_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
20120 _ACEOF
20121
20122                 SUMMARY_video="${SUMMARY_video} mir(dynamic)"
20123             else
20124                 enable_mir_shared=no
20125                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $MIR_LIBS"
20126                 SUMMARY_video="${SUMMARY_video} mir"
20127             fi
20128             have_video=yes
20129         fi
20130     fi
20131 }
20132
20133 CheckNativeClient()
20134 {
20135         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20136 /* end confdefs.h.  */
20137
20138           #if !defined(__native_client__)
20139           #error "NO NACL"
20140           #endif
20141
20142 int
20143 main ()
20144 {
20145
20146
20147   ;
20148   return 0;
20149 }
20150 _ACEOF
20151 if ac_fn_c_try_compile "$LINENO"; then :
20152
20153
20154 $as_echo "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
20155
20156
20157 $as_echo "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
20158
20159
20160 $as_echo "#define HAVE_POW 1" >>confdefs.h
20161
20162
20163 $as_echo "#define HAVE_OPENGLES2 1" >>confdefs.h
20164
20165
20166 $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
20167
20168
20169 $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
20170
20171
20172         SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
20173
20174         SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
20175         SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
20176         SUMMARY_audio="${SUMMARY_audio} nacl"
20177         SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
20178         SUMMARY_video="${SUMMARY_video} nacl opengles2"
20179
20180 fi
20181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20182 }
20183
20184 CheckRPI()
20185 {
20186     # Check whether --enable-video-rpi was given.
20187 if test "${enable_video_rpi+set}" = set; then :
20188   enableval=$enable_video_rpi;
20189 else
20190   enable_video_rpi=yes
20191 fi
20192
20193     if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
20194
20195 pkg_failed=no
20196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RPI" >&5
20197 $as_echo_n "checking for RPI... " >&6; }
20198
20199 if test -n "$RPI_CFLAGS"; then
20200     pkg_cv_RPI_CFLAGS="$RPI_CFLAGS"
20201  elif test -n "$PKG_CONFIG"; then
20202     if test -n "$PKG_CONFIG" && \
20203     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
20204   ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
20205   ac_status=$?
20206   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20207   test $ac_status = 0; }; then
20208   pkg_cv_RPI_CFLAGS=`$PKG_CONFIG --cflags "bcm_host brcmegl" 2>/dev/null`
20209 else
20210   pkg_failed=yes
20211 fi
20212  else
20213     pkg_failed=untried
20214 fi
20215 if test -n "$RPI_LIBS"; then
20216     pkg_cv_RPI_LIBS="$RPI_LIBS"
20217  elif test -n "$PKG_CONFIG"; then
20218     if test -n "$PKG_CONFIG" && \
20219     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
20220   ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
20221   ac_status=$?
20222   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20223   test $ac_status = 0; }; then
20224   pkg_cv_RPI_LIBS=`$PKG_CONFIG --libs "bcm_host brcmegl" 2>/dev/null`
20225 else
20226   pkg_failed=yes
20227 fi
20228  else
20229     pkg_failed=untried
20230 fi
20231
20232
20233
20234 if test $pkg_failed = yes; then
20235         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20236 $as_echo "no" >&6; }
20237
20238 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20239         _pkg_short_errors_supported=yes
20240 else
20241         _pkg_short_errors_supported=no
20242 fi
20243         if test $_pkg_short_errors_supported = yes; then
20244                 RPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "bcm_host brcmegl" 2>&1`
20245         else
20246                 RPI_PKG_ERRORS=`$PKG_CONFIG --print-errors "bcm_host brcmegl" 2>&1`
20247         fi
20248         # Put the nasty error message in config.log where it belongs
20249         echo "$RPI_PKG_ERRORS" >&5
20250
20251         video_rpi=no
20252 elif test $pkg_failed = untried; then
20253         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20254 $as_echo "no" >&6; }
20255         video_rpi=no
20256 else
20257         RPI_CFLAGS=$pkg_cv_RPI_CFLAGS
20258         RPI_LIBS=$pkg_cv_RPI_LIBS
20259         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20260 $as_echo "yes" >&6; }
20261         video_rpi=yes
20262 fi
20263
20264         if test x$video_rpi = xno; then
20265             if test x$ARCH = xnetbsd; then
20266                 RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
20267                 RPI_LIBS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
20268             else
20269                 RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
20270                 RPI_LIBS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host"
20271             fi
20272         fi
20273
20274         # Save the original compiler flags and libraries
20275         ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
20276
20277         # Add the Raspberry Pi compiler flags and libraries
20278         CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LIBS"
20279
20280         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi" >&5
20281 $as_echo_n "checking for Raspberry Pi... " >&6; }
20282         have_video_rpi=no
20283         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20284 /* end confdefs.h.  */
20285
20286           #include <bcm_host.h>
20287
20288 int
20289 main ()
20290 {
20291
20292           bcm_host_init();
20293
20294   ;
20295   return 0;
20296 }
20297 _ACEOF
20298 if ac_fn_c_try_link "$LINENO"; then :
20299
20300         have_video_rpi=yes
20301
20302 fi
20303 rm -f core conftest.err conftest.$ac_objext \
20304     conftest$ac_exeext conftest.$ac_ext
20305         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
20306 $as_echo "$have_video_rpi" >&6; }
20307
20308         # Restore the compiler flags and libraries
20309         CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
20310
20311         if test x$have_video_rpi = xyes; then
20312             CFLAGS="$CFLAGS $RPI_CFLAGS"
20313             SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
20314             EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
20315             EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LIBS"
20316             SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
20317
20318 $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
20319
20320             SUMMARY_video="${SUMMARY_video} rpi"
20321         fi
20322     fi
20323 }
20324
20325 CheckX11()
20326 {
20327     # Check whether --enable-video-x11 was given.
20328 if test "${enable_video_x11+set}" = set; then :
20329   enableval=$enable_video_x11;
20330 else
20331   enable_video_x11=yes
20332 fi
20333
20334     if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
20335         case "$host" in
20336             *-*-darwin*)
20337                 # This isn't necessary for X11, but fixes GLX detection
20338                 if test "x$x_includes" = xNONE && \
20339                    test "x$x_libraries" = xNONE && \
20340                    test -d /opt/X11/include && \
20341                    test -d /opt/X11/lib; then
20342                     x_includes="/opt/X11/include"
20343                     x_libraries="/opt/X11/lib"
20344                 fi
20345                 ;;
20346         esac
20347         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
20348 $as_echo_n "checking for X... " >&6; }
20349
20350
20351 # Check whether --with-x was given.
20352 if test "${with_x+set}" = set; then :
20353   withval=$with_x;
20354 fi
20355
20356 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
20357 if test "x$with_x" = xno; then
20358   # The user explicitly disabled X.
20359   have_x=disabled
20360 else
20361   case $x_includes,$x_libraries in #(
20362     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
20363     *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
20364   $as_echo_n "(cached) " >&6
20365 else
20366   # One or both of the vars are not set, and there is no cached value.
20367 ac_x_includes=no ac_x_libraries=no
20368 rm -f -r conftest.dir
20369 if mkdir conftest.dir; then
20370   cd conftest.dir
20371   cat >Imakefile <<'_ACEOF'
20372 incroot:
20373         @echo incroot='${INCROOT}'
20374 usrlibdir:
20375         @echo usrlibdir='${USRLIBDIR}'
20376 libdir:
20377         @echo libdir='${LIBDIR}'
20378 _ACEOF
20379   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
20380     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
20381     for ac_var in incroot usrlibdir libdir; do
20382       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
20383     done
20384     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
20385     for ac_extension in a so sl dylib la dll; do
20386       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
20387          test -f "$ac_im_libdir/libX11.$ac_extension"; then
20388         ac_im_usrlibdir=$ac_im_libdir; break
20389       fi
20390     done
20391     # Screen out bogus values from the imake configuration.  They are
20392     # bogus both because they are the default anyway, and because
20393     # using them would break gcc on systems where it needs fixed includes.
20394     case $ac_im_incroot in
20395         /usr/include) ac_x_includes= ;;
20396         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
20397     esac
20398     case $ac_im_usrlibdir in
20399         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
20400         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
20401     esac
20402   fi
20403   cd ..
20404   rm -f -r conftest.dir
20405 fi
20406
20407 # Standard set of common directories for X headers.
20408 # Check X11 before X11Rn because it is often a symlink to the current release.
20409 ac_x_header_dirs='
20410 /usr/X11/include
20411 /usr/X11R7/include
20412 /usr/X11R6/include
20413 /usr/X11R5/include
20414 /usr/X11R4/include
20415
20416 /usr/include/X11
20417 /usr/include/X11R7
20418 /usr/include/X11R6
20419 /usr/include/X11R5
20420 /usr/include/X11R4
20421
20422 /usr/local/X11/include
20423 /usr/local/X11R7/include
20424 /usr/local/X11R6/include
20425 /usr/local/X11R5/include
20426 /usr/local/X11R4/include
20427
20428 /usr/local/include/X11
20429 /usr/local/include/X11R7
20430 /usr/local/include/X11R6
20431 /usr/local/include/X11R5
20432 /usr/local/include/X11R4
20433
20434 /opt/X11/include
20435
20436 /usr/X386/include
20437 /usr/x386/include
20438 /usr/XFree86/include/X11
20439
20440 /usr/include
20441 /usr/local/include
20442 /usr/unsupported/include
20443 /usr/athena/include
20444 /usr/local/x11r5/include
20445 /usr/lpp/Xamples/include
20446
20447 /usr/openwin/include
20448 /usr/openwin/share/include'
20449
20450 if test "$ac_x_includes" = no; then
20451   # Guess where to find include files, by looking for Xlib.h.
20452   # First, try using that file with no special directory specified.
20453   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20454 /* end confdefs.h.  */
20455 #include <X11/Xlib.h>
20456 _ACEOF
20457 if ac_fn_c_try_cpp "$LINENO"; then :
20458   # We can compile using X headers with no special include directory.
20459 ac_x_includes=
20460 else
20461   for ac_dir in $ac_x_header_dirs; do
20462   if test -r "$ac_dir/X11/Xlib.h"; then
20463     ac_x_includes=$ac_dir
20464     break
20465   fi
20466 done
20467 fi
20468 rm -f conftest.err conftest.i conftest.$ac_ext
20469 fi # $ac_x_includes = no
20470
20471 if test "$ac_x_libraries" = no; then
20472   # Check for the libraries.
20473   # See if we find them without any special options.
20474   # Don't add to $LIBS permanently.
20475   ac_save_LIBS=$LIBS
20476   LIBS="-lX11 $LIBS"
20477   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20478 /* end confdefs.h.  */
20479 #include <X11/Xlib.h>
20480 int
20481 main ()
20482 {
20483 XrmInitialize ()
20484   ;
20485   return 0;
20486 }
20487 _ACEOF
20488 if ac_fn_c_try_link "$LINENO"; then :
20489   LIBS=$ac_save_LIBS
20490 # We can link X programs with no special library path.
20491 ac_x_libraries=
20492 else
20493   LIBS=$ac_save_LIBS
20494 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
20495 do
20496   # Don't even attempt the hair of trying to link an X program!
20497   for ac_extension in a so sl dylib la dll; do
20498     if test -r "$ac_dir/libX11.$ac_extension"; then
20499       ac_x_libraries=$ac_dir
20500       break 2
20501     fi
20502   done
20503 done
20504 fi
20505 rm -f core conftest.err conftest.$ac_objext \
20506     conftest$ac_exeext conftest.$ac_ext
20507 fi # $ac_x_libraries = no
20508
20509 case $ac_x_includes,$ac_x_libraries in #(
20510   no,* | *,no | *\'*)
20511     # Didn't find X, or a directory has "'" in its name.
20512     ac_cv_have_x="have_x=no";; #(
20513   *)
20514     # Record where we found X for the cache.
20515     ac_cv_have_x="have_x=yes\
20516         ac_x_includes='$ac_x_includes'\
20517         ac_x_libraries='$ac_x_libraries'"
20518 esac
20519 fi
20520 ;; #(
20521     *) have_x=yes;;
20522   esac
20523   eval "$ac_cv_have_x"
20524 fi # $with_x != no
20525
20526 if test "$have_x" != yes; then
20527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
20528 $as_echo "$have_x" >&6; }
20529   no_x=yes
20530 else
20531   # If each of the values was on the command line, it overrides each guess.
20532   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
20533   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
20534   # Update the cache value to reflect the command line values.
20535   ac_cv_have_x="have_x=yes\
20536         ac_x_includes='$x_includes'\
20537         ac_x_libraries='$x_libraries'"
20538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
20539 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
20540 fi
20541
20542         if test "$no_x" = yes; then
20543   # Not all programs may use this symbol, but it does not hurt to define it.
20544
20545 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
20546
20547   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
20548 else
20549   if test -n "$x_includes"; then
20550     X_CFLAGS="$X_CFLAGS -I$x_includes"
20551   fi
20552
20553   # It would also be nice to do this for all -L options, not just this one.
20554   if test -n "$x_libraries"; then
20555     X_LIBS="$X_LIBS -L$x_libraries"
20556     # For Solaris; some versions of Sun CC require a space after -R and
20557     # others require no space.  Words are not sufficient . . . .
20558     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
20559 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
20560     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
20561     ac_xsave_c_werror_flag=$ac_c_werror_flag
20562     ac_c_werror_flag=yes
20563     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20564 /* end confdefs.h.  */
20565
20566 int
20567 main ()
20568 {
20569
20570   ;
20571   return 0;
20572 }
20573 _ACEOF
20574 if ac_fn_c_try_link "$LINENO"; then :
20575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20576 $as_echo "no" >&6; }
20577        X_LIBS="$X_LIBS -R$x_libraries"
20578 else
20579   LIBS="$ac_xsave_LIBS -R $x_libraries"
20580        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20581 /* end confdefs.h.  */
20582
20583 int
20584 main ()
20585 {
20586
20587   ;
20588   return 0;
20589 }
20590 _ACEOF
20591 if ac_fn_c_try_link "$LINENO"; then :
20592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20593 $as_echo "yes" >&6; }
20594           X_LIBS="$X_LIBS -R $x_libraries"
20595 else
20596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
20597 $as_echo "neither works" >&6; }
20598 fi
20599 rm -f core conftest.err conftest.$ac_objext \
20600     conftest$ac_exeext conftest.$ac_ext
20601 fi
20602 rm -f core conftest.err conftest.$ac_objext \
20603     conftest$ac_exeext conftest.$ac_ext
20604     ac_c_werror_flag=$ac_xsave_c_werror_flag
20605     LIBS=$ac_xsave_LIBS
20606   fi
20607
20608   # Check for system-dependent libraries X programs must link with.
20609   # Do this before checking for the system-independent R6 libraries
20610   # (-lICE), since we may need -lsocket or whatever for X linking.
20611
20612   if test "$ISC" = yes; then
20613     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
20614   else
20615     # Martyn Johnson says this is needed for Ultrix, if the X
20616     # libraries were built with DECnet support.  And Karl Berry says
20617     # the Alpha needs dnet_stub (dnet does not exist).
20618     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
20619     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20620 /* end confdefs.h.  */
20621
20622 /* Override any GCC internal prototype to avoid an error.
20623    Use char because int might match the return type of a GCC
20624    builtin and then its argument prototype would still apply.  */
20625 #ifdef __cplusplus
20626 extern "C"
20627 #endif
20628 char XOpenDisplay ();
20629 int
20630 main ()
20631 {
20632 return XOpenDisplay ();
20633   ;
20634   return 0;
20635 }
20636 _ACEOF
20637 if ac_fn_c_try_link "$LINENO"; then :
20638
20639 else
20640   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
20641 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
20642 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
20643   $as_echo_n "(cached) " >&6
20644 else
20645   ac_check_lib_save_LIBS=$LIBS
20646 LIBS="-ldnet  $LIBS"
20647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20648 /* end confdefs.h.  */
20649
20650 /* Override any GCC internal prototype to avoid an error.
20651    Use char because int might match the return type of a GCC
20652    builtin and then its argument prototype would still apply.  */
20653 #ifdef __cplusplus
20654 extern "C"
20655 #endif
20656 char dnet_ntoa ();
20657 int
20658 main ()
20659 {
20660 return dnet_ntoa ();
20661   ;
20662   return 0;
20663 }
20664 _ACEOF
20665 if ac_fn_c_try_link "$LINENO"; then :
20666   ac_cv_lib_dnet_dnet_ntoa=yes
20667 else
20668   ac_cv_lib_dnet_dnet_ntoa=no
20669 fi
20670 rm -f core conftest.err conftest.$ac_objext \
20671     conftest$ac_exeext conftest.$ac_ext
20672 LIBS=$ac_check_lib_save_LIBS
20673 fi
20674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
20675 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
20676 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
20677   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
20678 fi
20679
20680     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
20681       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
20682 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
20683 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
20684   $as_echo_n "(cached) " >&6
20685 else
20686   ac_check_lib_save_LIBS=$LIBS
20687 LIBS="-ldnet_stub  $LIBS"
20688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20689 /* end confdefs.h.  */
20690
20691 /* Override any GCC internal prototype to avoid an error.
20692    Use char because int might match the return type of a GCC
20693    builtin and then its argument prototype would still apply.  */
20694 #ifdef __cplusplus
20695 extern "C"
20696 #endif
20697 char dnet_ntoa ();
20698 int
20699 main ()
20700 {
20701 return dnet_ntoa ();
20702   ;
20703   return 0;
20704 }
20705 _ACEOF
20706 if ac_fn_c_try_link "$LINENO"; then :
20707   ac_cv_lib_dnet_stub_dnet_ntoa=yes
20708 else
20709   ac_cv_lib_dnet_stub_dnet_ntoa=no
20710 fi
20711 rm -f core conftest.err conftest.$ac_objext \
20712     conftest$ac_exeext conftest.$ac_ext
20713 LIBS=$ac_check_lib_save_LIBS
20714 fi
20715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
20716 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
20717 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
20718   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
20719 fi
20720
20721     fi
20722 fi
20723 rm -f core conftest.err conftest.$ac_objext \
20724     conftest$ac_exeext conftest.$ac_ext
20725     LIBS="$ac_xsave_LIBS"
20726
20727     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
20728     # to get the SysV transport functions.
20729     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
20730     # needs -lnsl.
20731     # The nsl library prevents programs from opening the X display
20732     # on Irix 5.2, according to T.E. Dickey.
20733     # The functions gethostbyname, getservbyname, and inet_addr are
20734     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
20735     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
20736 if test "x$ac_cv_func_gethostbyname" = xyes; then :
20737
20738 fi
20739
20740     if test $ac_cv_func_gethostbyname = no; then
20741       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
20742 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
20743 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
20744   $as_echo_n "(cached) " >&6
20745 else
20746   ac_check_lib_save_LIBS=$LIBS
20747 LIBS="-lnsl  $LIBS"
20748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20749 /* end confdefs.h.  */
20750
20751 /* Override any GCC internal prototype to avoid an error.
20752    Use char because int might match the return type of a GCC
20753    builtin and then its argument prototype would still apply.  */
20754 #ifdef __cplusplus
20755 extern "C"
20756 #endif
20757 char gethostbyname ();
20758 int
20759 main ()
20760 {
20761 return gethostbyname ();
20762   ;
20763   return 0;
20764 }
20765 _ACEOF
20766 if ac_fn_c_try_link "$LINENO"; then :
20767   ac_cv_lib_nsl_gethostbyname=yes
20768 else
20769   ac_cv_lib_nsl_gethostbyname=no
20770 fi
20771 rm -f core conftest.err conftest.$ac_objext \
20772     conftest$ac_exeext conftest.$ac_ext
20773 LIBS=$ac_check_lib_save_LIBS
20774 fi
20775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
20776 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
20777 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
20778   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
20779 fi
20780
20781       if test $ac_cv_lib_nsl_gethostbyname = no; then
20782         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
20783 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
20784 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
20785   $as_echo_n "(cached) " >&6
20786 else
20787   ac_check_lib_save_LIBS=$LIBS
20788 LIBS="-lbsd  $LIBS"
20789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20790 /* end confdefs.h.  */
20791
20792 /* Override any GCC internal prototype to avoid an error.
20793    Use char because int might match the return type of a GCC
20794    builtin and then its argument prototype would still apply.  */
20795 #ifdef __cplusplus
20796 extern "C"
20797 #endif
20798 char gethostbyname ();
20799 int
20800 main ()
20801 {
20802 return gethostbyname ();
20803   ;
20804   return 0;
20805 }
20806 _ACEOF
20807 if ac_fn_c_try_link "$LINENO"; then :
20808   ac_cv_lib_bsd_gethostbyname=yes
20809 else
20810   ac_cv_lib_bsd_gethostbyname=no
20811 fi
20812 rm -f core conftest.err conftest.$ac_objext \
20813     conftest$ac_exeext conftest.$ac_ext
20814 LIBS=$ac_check_lib_save_LIBS
20815 fi
20816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
20817 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
20818 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
20819   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
20820 fi
20821
20822       fi
20823     fi
20824
20825     # lieder@skyler.mavd.honeywell.com says without -lsocket,
20826     # socket/setsockopt and other routines are undefined under SCO ODT
20827     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
20828     # on later versions), says Simon Leinen: it contains gethostby*
20829     # variants that don't use the name server (or something).  -lsocket
20830     # must be given before -lnsl if both are needed.  We assume that
20831     # if connect needs -lnsl, so does gethostbyname.
20832     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
20833 if test "x$ac_cv_func_connect" = xyes; then :
20834
20835 fi
20836
20837     if test $ac_cv_func_connect = no; then
20838       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
20839 $as_echo_n "checking for connect in -lsocket... " >&6; }
20840 if ${ac_cv_lib_socket_connect+:} false; then :
20841   $as_echo_n "(cached) " >&6
20842 else
20843   ac_check_lib_save_LIBS=$LIBS
20844 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
20845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20846 /* end confdefs.h.  */
20847
20848 /* Override any GCC internal prototype to avoid an error.
20849    Use char because int might match the return type of a GCC
20850    builtin and then its argument prototype would still apply.  */
20851 #ifdef __cplusplus
20852 extern "C"
20853 #endif
20854 char connect ();
20855 int
20856 main ()
20857 {
20858 return connect ();
20859   ;
20860   return 0;
20861 }
20862 _ACEOF
20863 if ac_fn_c_try_link "$LINENO"; then :
20864   ac_cv_lib_socket_connect=yes
20865 else
20866   ac_cv_lib_socket_connect=no
20867 fi
20868 rm -f core conftest.err conftest.$ac_objext \
20869     conftest$ac_exeext conftest.$ac_ext
20870 LIBS=$ac_check_lib_save_LIBS
20871 fi
20872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
20873 $as_echo "$ac_cv_lib_socket_connect" >&6; }
20874 if test "x$ac_cv_lib_socket_connect" = xyes; then :
20875   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
20876 fi
20877
20878     fi
20879
20880     # Guillermo Gomez says -lposix is necessary on A/UX.
20881     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
20882 if test "x$ac_cv_func_remove" = xyes; then :
20883
20884 fi
20885
20886     if test $ac_cv_func_remove = no; then
20887       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
20888 $as_echo_n "checking for remove in -lposix... " >&6; }
20889 if ${ac_cv_lib_posix_remove+:} false; then :
20890   $as_echo_n "(cached) " >&6
20891 else
20892   ac_check_lib_save_LIBS=$LIBS
20893 LIBS="-lposix  $LIBS"
20894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20895 /* end confdefs.h.  */
20896
20897 /* Override any GCC internal prototype to avoid an error.
20898    Use char because int might match the return type of a GCC
20899    builtin and then its argument prototype would still apply.  */
20900 #ifdef __cplusplus
20901 extern "C"
20902 #endif
20903 char remove ();
20904 int
20905 main ()
20906 {
20907 return remove ();
20908   ;
20909   return 0;
20910 }
20911 _ACEOF
20912 if ac_fn_c_try_link "$LINENO"; then :
20913   ac_cv_lib_posix_remove=yes
20914 else
20915   ac_cv_lib_posix_remove=no
20916 fi
20917 rm -f core conftest.err conftest.$ac_objext \
20918     conftest$ac_exeext conftest.$ac_ext
20919 LIBS=$ac_check_lib_save_LIBS
20920 fi
20921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
20922 $as_echo "$ac_cv_lib_posix_remove" >&6; }
20923 if test "x$ac_cv_lib_posix_remove" = xyes; then :
20924   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
20925 fi
20926
20927     fi
20928
20929     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
20930     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
20931 if test "x$ac_cv_func_shmat" = xyes; then :
20932
20933 fi
20934
20935     if test $ac_cv_func_shmat = no; then
20936       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
20937 $as_echo_n "checking for shmat in -lipc... " >&6; }
20938 if ${ac_cv_lib_ipc_shmat+:} false; then :
20939   $as_echo_n "(cached) " >&6
20940 else
20941   ac_check_lib_save_LIBS=$LIBS
20942 LIBS="-lipc  $LIBS"
20943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20944 /* end confdefs.h.  */
20945
20946 /* Override any GCC internal prototype to avoid an error.
20947    Use char because int might match the return type of a GCC
20948    builtin and then its argument prototype would still apply.  */
20949 #ifdef __cplusplus
20950 extern "C"
20951 #endif
20952 char shmat ();
20953 int
20954 main ()
20955 {
20956 return shmat ();
20957   ;
20958   return 0;
20959 }
20960 _ACEOF
20961 if ac_fn_c_try_link "$LINENO"; then :
20962   ac_cv_lib_ipc_shmat=yes
20963 else
20964   ac_cv_lib_ipc_shmat=no
20965 fi
20966 rm -f core conftest.err conftest.$ac_objext \
20967     conftest$ac_exeext conftest.$ac_ext
20968 LIBS=$ac_check_lib_save_LIBS
20969 fi
20970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
20971 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
20972 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
20973   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
20974 fi
20975
20976     fi
20977   fi
20978
20979   # Check for libraries that X11R6 Xt/Xaw programs need.
20980   ac_save_LDFLAGS=$LDFLAGS
20981   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
20982   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
20983   # check for ICE first), but we must link in the order -lSM -lICE or
20984   # we get undefined symbols.  So assume we have SM if we have ICE.
20985   # These have to be linked with before -lX11, unlike the other
20986   # libraries we check for below, so use a different variable.
20987   # John Interrante, Karl Berry
20988   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
20989 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
20990 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
20991   $as_echo_n "(cached) " >&6
20992 else
20993   ac_check_lib_save_LIBS=$LIBS
20994 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
20995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20996 /* end confdefs.h.  */
20997
20998 /* Override any GCC internal prototype to avoid an error.
20999    Use char because int might match the return type of a GCC
21000    builtin and then its argument prototype would still apply.  */
21001 #ifdef __cplusplus
21002 extern "C"
21003 #endif
21004 char IceConnectionNumber ();
21005 int
21006 main ()
21007 {
21008 return IceConnectionNumber ();
21009   ;
21010   return 0;
21011 }
21012 _ACEOF
21013 if ac_fn_c_try_link "$LINENO"; then :
21014   ac_cv_lib_ICE_IceConnectionNumber=yes
21015 else
21016   ac_cv_lib_ICE_IceConnectionNumber=no
21017 fi
21018 rm -f core conftest.err conftest.$ac_objext \
21019     conftest$ac_exeext conftest.$ac_ext
21020 LIBS=$ac_check_lib_save_LIBS
21021 fi
21022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
21023 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
21024 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
21025   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
21026 fi
21027
21028   LDFLAGS=$ac_save_LDFLAGS
21029
21030 fi
21031
21032         if test x$have_x = xyes; then
21033             # Check whether --enable-x11-shared was given.
21034 if test "${enable_x11_shared+set}" = set; then :
21035   enableval=$enable_x11_shared;
21036 else
21037   enable_x11_shared=maybe
21038 fi
21039
21040
21041             case "$host" in
21042                 *-*-darwin*)
21043                     # Apple now puts this in /opt/X11
21044                     x11_lib='/opt/X11/lib/libX11.6.dylib'
21045                     x11ext_lib='/opt/X11/lib/libXext.6.dylib'
21046                     xcursor_lib='/opt/X11/lib/libXcursor.1.dylib'
21047                     xinerama_lib='/opt/X11/lib/libXinerama.1.dylib'
21048                     xinput_lib='/opt/X11/lib/libXi.6.dylib'
21049                     xrandr_lib='/opt/X11/lib/libXrandr.2.dylib'
21050                     xrender_lib='/opt/X11/lib/libXrender.1.dylib'
21051                     xss_lib='/opt/X11/lib/libXss.1.dylib'
21052                     xvidmode_lib='/opt/X11/lib/libXxf86vm.1.dylib'
21053                     ;;
21054                 *-*-openbsd*)
21055                     x11_lib='libX11.so'
21056                     x11ext_lib='libXext.so'
21057                     xcursor_lib='libXcursor.so'
21058                     xinerama_lib='libXinerama.so'
21059                     xinput_lib='libXi.so'
21060                     xrandr_lib='libXrandr.so'
21061                     xrender_lib='libXrender.so'
21062                     xss_lib='libXss.so'
21063                     xvidmode_lib='libXxf86vm.so'
21064                     ;;
21065                 *)
21066                     x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
21067                     x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
21068                     xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
21069                     xinerama_lib=`find_lib "libXinerama.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
21070                     xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
21071                     xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
21072                     xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
21073                     xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
21074                     xvidmode_lib=`find_lib "libXxf86vm.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
21075                     ;;
21076             esac
21077
21078             if test x$ac_cv_func_shmat != xyes; then
21079                 X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
21080             fi
21081             CFLAGS="$CFLAGS $X_CFLAGS"
21082             LDFLAGS="$LDFLAGS $X_LIBS"
21083
21084             ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
21085                              #include <X11/Xproto.h>
21086
21087 "
21088 if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then :
21089   have_xext_h_hdr=yes
21090 else
21091   have_xext_h_hdr=no
21092 fi
21093
21094
21095             if test x$have_xext_h_hdr != xyes; then
21096                as_fn_error $? "
21097 *** Missing Xext.h, maybe you need to install the libxext-dev package?
21098                " "$LINENO" 5
21099             fi
21100
21101
21102 $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
21103
21104             SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
21105             EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
21106
21107             # Needed so SDL applications can include SDL_syswm.h
21108             SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
21109
21110             if test x$enable_x11_shared = xmaybe; then
21111                 enable_x11_shared=yes
21112             fi
21113             if test x$have_loadso != xyes && \
21114                test x$enable_x11_shared = xyes; then
21115                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
21116 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
21117                 enable_x11_shared=no
21118             fi
21119             if test x$have_loadso = xyes && \
21120                test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
21121                 echo "-- dynamic libX11 -> $x11_lib"
21122                 echo "-- dynamic libX11ext -> $x11ext_lib"
21123
21124 cat >>confdefs.h <<_ACEOF
21125 #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
21126 _ACEOF
21127
21128
21129 cat >>confdefs.h <<_ACEOF
21130 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
21131 _ACEOF
21132
21133                 SUMMARY_video="${SUMMARY_video} x11(dynamic)"
21134             else
21135                 enable_x11_shared=no
21136                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
21137                 SUMMARY_video="${SUMMARY_video} x11"
21138             fi
21139             have_video=yes
21140
21141             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const parameter to XextAddDisplay" >&5
21142 $as_echo_n "checking for const parameter to XextAddDisplay... " >&6; }
21143             have_const_param_XextAddDisplay=no
21144             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21145 /* end confdefs.h.  */
21146
21147               #include <X11/Xlib.h>
21148               #include <X11/Xproto.h>
21149               #include <X11/extensions/Xext.h>
21150               #include <X11/extensions/extutil.h>
21151               extern XExtDisplayInfo* XextAddDisplay(XExtensionInfo* a,Display* b,_Xconst char* c,XExtensionHooks* d,int e,XPointer f);
21152
21153 int
21154 main ()
21155 {
21156
21157
21158   ;
21159   return 0;
21160 }
21161 _ACEOF
21162 if ac_fn_c_try_compile "$LINENO"; then :
21163
21164             have_const_param_XextAddDisplay=yes
21165
21166 $as_echo "#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY 1" >>confdefs.h
21167
21168
21169 fi
21170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21171             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_const_param_XextAddDisplay" >&5
21172 $as_echo "$have_const_param_XextAddDisplay" >&6; }
21173
21174                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
21175 $as_echo_n "checking for XGenericEvent... " >&6; }
21176             have_XGenericEvent=no
21177             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21178 /* end confdefs.h.  */
21179
21180                 #include <X11/Xlib.h>
21181
21182 int
21183 main ()
21184 {
21185
21186 Display *display;
21187 XEvent event;
21188 XGenericEventCookie *cookie = &event.xcookie;
21189 XNextEvent(display, &event);
21190 XGetEventData(display, cookie);
21191 XFreeEventData(display, cookie);
21192
21193   ;
21194   return 0;
21195 }
21196 _ACEOF
21197 if ac_fn_c_try_compile "$LINENO"; then :
21198
21199                 have_XGenericEvent=yes
21200
21201 $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
21202
21203
21204 fi
21205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21206             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
21207 $as_echo "$have_XGenericEvent" >&6; }
21208
21209             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
21210 $as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
21211 if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then :
21212   $as_echo_n "(cached) " >&6
21213 else
21214   ac_check_lib_save_LIBS=$LIBS
21215 LIBS="-lX11  $LIBS"
21216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21217 /* end confdefs.h.  */
21218
21219 /* Override any GCC internal prototype to avoid an error.
21220    Use char because int might match the return type of a GCC
21221    builtin and then its argument prototype would still apply.  */
21222 #ifdef __cplusplus
21223 extern "C"
21224 #endif
21225 char XkbKeycodeToKeysym ();
21226 int
21227 main ()
21228 {
21229 return XkbKeycodeToKeysym ();
21230   ;
21231   return 0;
21232 }
21233 _ACEOF
21234 if ac_fn_c_try_link "$LINENO"; then :
21235   ac_cv_lib_X11_XkbKeycodeToKeysym=yes
21236 else
21237   ac_cv_lib_X11_XkbKeycodeToKeysym=no
21238 fi
21239 rm -f core conftest.err conftest.$ac_objext \
21240     conftest$ac_exeext conftest.$ac_ext
21241 LIBS=$ac_check_lib_save_LIBS
21242 fi
21243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
21244 $as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
21245 if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then :
21246
21247 $as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
21248
21249 fi
21250
21251
21252             # Check whether --enable-video-x11-xcursor was given.
21253 if test "${enable_video_x11_xcursor+set}" = set; then :
21254   enableval=$enable_video_x11_xcursor;
21255 else
21256   enable_video_x11_xcursor=yes
21257 fi
21258
21259             if test x$enable_video_x11_xcursor = xyes; then
21260                 definitely_enable_video_x11_xcursor=no
21261                 ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
21262
21263 "
21264 if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
21265   have_xcursor_h_hdr=yes
21266 else
21267   have_xcursor_h_hdr=no
21268 fi
21269
21270
21271                 if test x$have_xcursor_h_hdr = xyes; then
21272                     if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
21273                         echo "-- dynamic libXcursor -> $xcursor_lib"
21274
21275 cat >>confdefs.h <<_ACEOF
21276 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib"
21277 _ACEOF
21278
21279                         definitely_enable_video_x11_xcursor=yes
21280                     else
21281                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
21282 $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
21283 if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
21284   $as_echo_n "(cached) " >&6
21285 else
21286   ac_check_lib_save_LIBS=$LIBS
21287 LIBS="-lXcursor  $LIBS"
21288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21289 /* end confdefs.h.  */
21290
21291 /* Override any GCC internal prototype to avoid an error.
21292    Use char because int might match the return type of a GCC
21293    builtin and then its argument prototype would still apply.  */
21294 #ifdef __cplusplus
21295 extern "C"
21296 #endif
21297 char XcursorImageCreate ();
21298 int
21299 main ()
21300 {
21301 return XcursorImageCreate ();
21302   ;
21303   return 0;
21304 }
21305 _ACEOF
21306 if ac_fn_c_try_link "$LINENO"; then :
21307   ac_cv_lib_Xcursor_XcursorImageCreate=yes
21308 else
21309   ac_cv_lib_Xcursor_XcursorImageCreate=no
21310 fi
21311 rm -f core conftest.err conftest.$ac_objext \
21312     conftest$ac_exeext conftest.$ac_ext
21313 LIBS=$ac_check_lib_save_LIBS
21314 fi
21315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
21316 $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
21317 if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
21318   have_xcursor_lib=yes
21319 fi
21320
21321                         if test x$have_xcursor_lib = xyes ; then
21322                             EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
21323                             definitely_enable_video_x11_xcursor=yes
21324                         fi
21325                     fi
21326                 fi
21327             fi
21328             if test x$definitely_enable_video_x11_xcursor = xyes; then
21329
21330 $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
21331
21332                 SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
21333             fi
21334             # Check whether --enable-video-x11-xdbe was given.
21335 if test "${enable_video_x11_xdbe+set}" = set; then :
21336   enableval=$enable_video_x11_xdbe;
21337 else
21338   enable_video_x11_xdbe=yes
21339 fi
21340
21341             if test x$enable_video_x11_xdbe = xyes; then
21342                 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
21343
21344 "
21345 if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes; then :
21346   have_dbe_h_hdr=yes
21347 else
21348   have_dbe_h_hdr=no
21349 fi
21350
21351
21352                 if test x$have_dbe_h_hdr = xyes; then
21353
21354 $as_echo "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
21355
21356                     SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
21357                 fi
21358             fi
21359             # Check whether --enable-video-x11-xinerama was given.
21360 if test "${enable_video_x11_xinerama+set}" = set; then :
21361   enableval=$enable_video_x11_xinerama;
21362 else
21363   enable_video_x11_xinerama=yes
21364 fi
21365
21366             if test x$enable_video_x11_xinerama = xyes; then
21367                 definitely_enable_video_x11_xinerama=no
21368                 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h>
21369
21370 "
21371 if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
21372   have_xinerama_h_hdr=yes
21373 else
21374   have_xinerama_h_hdr=no
21375 fi
21376
21377
21378                 if test x$have_xinerama_h_hdr = xyes; then
21379                     if test x$enable_x11_shared = xyes && test x$xinerama_lib != x ; then
21380                         echo "-- dynamic libXinerama -> $xinerama_lib"
21381
21382 cat >>confdefs.h <<_ACEOF
21383 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "$xinerama_lib"
21384 _ACEOF
21385
21386                         definitely_enable_video_x11_xinerama=yes
21387                     else
21388                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
21389 $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
21390 if ${ac_cv_lib_Xinerama_XineramaQueryExtension+:} false; then :
21391   $as_echo_n "(cached) " >&6
21392 else
21393   ac_check_lib_save_LIBS=$LIBS
21394 LIBS="-lXinerama  $LIBS"
21395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21396 /* end confdefs.h.  */
21397
21398 /* Override any GCC internal prototype to avoid an error.
21399    Use char because int might match the return type of a GCC
21400    builtin and then its argument prototype would still apply.  */
21401 #ifdef __cplusplus
21402 extern "C"
21403 #endif
21404 char XineramaQueryExtension ();
21405 int
21406 main ()
21407 {
21408 return XineramaQueryExtension ();
21409   ;
21410   return 0;
21411 }
21412 _ACEOF
21413 if ac_fn_c_try_link "$LINENO"; then :
21414   ac_cv_lib_Xinerama_XineramaQueryExtension=yes
21415 else
21416   ac_cv_lib_Xinerama_XineramaQueryExtension=no
21417 fi
21418 rm -f core conftest.err conftest.$ac_objext \
21419     conftest$ac_exeext conftest.$ac_ext
21420 LIBS=$ac_check_lib_save_LIBS
21421 fi
21422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
21423 $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
21424 if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = xyes; then :
21425   have_xinerama_lib=yes
21426 fi
21427
21428                         if test x$have_xinerama_lib = xyes ; then
21429                             EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXinerama"
21430                             definitely_enable_video_x11_xinerama=yes
21431                         fi
21432                     fi
21433                 fi
21434             fi
21435             if test x$definitely_enable_video_x11_xinerama = xyes; then
21436
21437 $as_echo "#define SDL_VIDEO_DRIVER_X11_XINERAMA 1" >>confdefs.h
21438
21439                 SUMMARY_video_x11="${SUMMARY_video_x11} xinerama"
21440             fi
21441             # Check whether --enable-video-x11-xinput was given.
21442 if test "${enable_video_x11_xinput+set}" = set; then :
21443   enableval=$enable_video_x11_xinput;
21444 else
21445   enable_video_x11_xinput=yes
21446 fi
21447
21448             if test x$enable_video_x11_xinput = xyes; then
21449                 definitely_enable_video_x11_xinput=no
21450                 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
21451
21452 "
21453 if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
21454   have_xinput_h_hdr=yes
21455 else
21456   have_xinput_h_hdr=no
21457 fi
21458
21459
21460                 if test x$have_xinput_h_hdr = xyes; then
21461                     if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
21462                         echo "-- dynamic libXi -> $xinput_lib"
21463
21464 cat >>confdefs.h <<_ACEOF
21465 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib"
21466 _ACEOF
21467
21468                         definitely_enable_video_x11_xinput=yes
21469                     else
21470                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
21471 $as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
21472 if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
21473   $as_echo_n "(cached) " >&6
21474 else
21475   ac_check_lib_save_LIBS=$LIBS
21476 LIBS="-lXi  $LIBS"
21477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21478 /* end confdefs.h.  */
21479
21480 /* Override any GCC internal prototype to avoid an error.
21481    Use char because int might match the return type of a GCC
21482    builtin and then its argument prototype would still apply.  */
21483 #ifdef __cplusplus
21484 extern "C"
21485 #endif
21486 char XOpenDevice ();
21487 int
21488 main ()
21489 {
21490 return XOpenDevice ();
21491   ;
21492   return 0;
21493 }
21494 _ACEOF
21495 if ac_fn_c_try_link "$LINENO"; then :
21496   ac_cv_lib_Xi_XOpenDevice=yes
21497 else
21498   ac_cv_lib_Xi_XOpenDevice=no
21499 fi
21500 rm -f core conftest.err conftest.$ac_objext \
21501     conftest$ac_exeext conftest.$ac_ext
21502 LIBS=$ac_check_lib_save_LIBS
21503 fi
21504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
21505 $as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
21506 if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
21507   have_xinput_lib=yes
21508 fi
21509
21510                         if test x$have_xinput_lib = xyes ; then
21511                             EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
21512                             definitely_enable_video_x11_xinput=yes
21513                         fi
21514                     fi
21515                 fi
21516             fi
21517             if test x$definitely_enable_video_x11_xinput = xyes; then
21518                 SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
21519
21520 $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
21521
21522                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
21523 $as_echo_n "checking for xinput2 multitouch... " >&6; }
21524                 have_xinput2_multitouch=no
21525                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21526 /* end confdefs.h.  */
21527
21528                     #include <X11/Xlib.h>
21529                     #include <X11/Xproto.h>
21530                     #include <X11/extensions/XInput2.h>
21531
21532 int
21533 main ()
21534 {
21535
21536 int event_type = XI_TouchBegin;
21537 XITouchClassInfo *t;
21538
21539   ;
21540   return 0;
21541 }
21542 _ACEOF
21543 if ac_fn_c_try_compile "$LINENO"; then :
21544
21545                     have_xinput2_multitouch=yes
21546
21547 $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
21548
21549                     SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
21550
21551 fi
21552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21553                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
21554 $as_echo "$have_xinput2_multitouch" >&6; }
21555             fi
21556             # Check whether --enable-video-x11-xrandr was given.
21557 if test "${enable_video_x11_xrandr+set}" = set; then :
21558   enableval=$enable_video_x11_xrandr;
21559 else
21560   enable_video_x11_xrandr=yes
21561 fi
21562
21563             if test x$enable_video_x11_xrandr = xyes; then
21564                                 definitely_enable_video_x11_xrandr=no
21565                 have_xrandr_h_hdr=no
21566                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21567 /* end confdefs.h.  */
21568
21569                 #include <X11/Xlib.h>
21570                 #include <X11/extensions/Xrandr.h>
21571
21572 int
21573 main ()
21574 {
21575
21576                 XRRScreenResources *res = NULL;
21577
21578   ;
21579   return 0;
21580 }
21581 _ACEOF
21582 if ac_fn_c_try_compile "$LINENO"; then :
21583
21584                 have_xrandr_h_hdr=yes
21585
21586 fi
21587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21588                 if test x$have_xrandr_h_hdr = xyes; then
21589                     if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
21590                         echo "-- dynamic libXrandr -> $xrandr_lib"
21591
21592 cat >>confdefs.h <<_ACEOF
21593 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
21594 _ACEOF
21595
21596                         definitely_enable_video_x11_xrandr=yes
21597                     else
21598                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
21599 $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
21600 if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
21601   $as_echo_n "(cached) " >&6
21602 else
21603   ac_check_lib_save_LIBS=$LIBS
21604 LIBS="-lXrandr  $LIBS"
21605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21606 /* end confdefs.h.  */
21607
21608 /* Override any GCC internal prototype to avoid an error.
21609    Use char because int might match the return type of a GCC
21610    builtin and then its argument prototype would still apply.  */
21611 #ifdef __cplusplus
21612 extern "C"
21613 #endif
21614 char XRRQueryExtension ();
21615 int
21616 main ()
21617 {
21618 return XRRQueryExtension ();
21619   ;
21620   return 0;
21621 }
21622 _ACEOF
21623 if ac_fn_c_try_link "$LINENO"; then :
21624   ac_cv_lib_Xrandr_XRRQueryExtension=yes
21625 else
21626   ac_cv_lib_Xrandr_XRRQueryExtension=no
21627 fi
21628 rm -f core conftest.err conftest.$ac_objext \
21629     conftest$ac_exeext conftest.$ac_ext
21630 LIBS=$ac_check_lib_save_LIBS
21631 fi
21632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
21633 $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
21634 if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
21635   have_xrandr_lib=yes
21636 fi
21637
21638                         if test x$have_xrandr_lib = xyes ; then
21639                             EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
21640                             definitely_enable_video_x11_xrandr=yes
21641                         fi
21642                     fi
21643                 fi
21644             fi
21645             if test x$definitely_enable_video_x11_xrandr = xyes; then
21646
21647 $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
21648
21649                 SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
21650             fi
21651             # Check whether --enable-video-x11-scrnsaver was given.
21652 if test "${enable_video_x11_scrnsaver+set}" = set; then :
21653   enableval=$enable_video_x11_scrnsaver;
21654 else
21655   enable_video_x11_scrnsaver=yes
21656 fi
21657
21658             if test x$enable_video_x11_scrnsaver = xyes; then
21659                 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
21660
21661 "
21662 if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
21663   have_scrnsaver_h_hdr=yes
21664 else
21665   have_scrnsaver_h_hdr=no
21666 fi
21667
21668
21669                 if test x$have_scrnsaver_h_hdr = xyes; then
21670                     if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
21671                         echo "-- dynamic libXss -> $xss_lib"
21672
21673 cat >>confdefs.h <<_ACEOF
21674 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib"
21675 _ACEOF
21676
21677                         definitely_enable_video_x11_scrnsaver=yes
21678                     else
21679                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
21680 $as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; }
21681 if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then :
21682   $as_echo_n "(cached) " >&6
21683 else
21684   ac_check_lib_save_LIBS=$LIBS
21685 LIBS="-lXss  $LIBS"
21686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21687 /* end confdefs.h.  */
21688
21689 /* Override any GCC internal prototype to avoid an error.
21690    Use char because int might match the return type of a GCC
21691    builtin and then its argument prototype would still apply.  */
21692 #ifdef __cplusplus
21693 extern "C"
21694 #endif
21695 char XScreenSaverSuspend ();
21696 int
21697 main ()
21698 {
21699 return XScreenSaverSuspend ();
21700   ;
21701   return 0;
21702 }
21703 _ACEOF
21704 if ac_fn_c_try_link "$LINENO"; then :
21705   ac_cv_lib_Xss_XScreenSaverSuspend=yes
21706 else
21707   ac_cv_lib_Xss_XScreenSaverSuspend=no
21708 fi
21709 rm -f core conftest.err conftest.$ac_objext \
21710     conftest$ac_exeext conftest.$ac_ext
21711 LIBS=$ac_check_lib_save_LIBS
21712 fi
21713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
21714 $as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
21715 if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then :
21716   have_xss_lib=yes
21717 fi
21718
21719                         if test x$have_xss_lib = xyes ; then
21720                             EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
21721                             definitely_enable_video_x11_scrnsaver=yes
21722                         fi
21723                     fi
21724                 fi
21725             fi
21726             if test x$definitely_enable_video_x11_scrnsaver = xyes; then
21727
21728 $as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
21729
21730                 SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
21731             fi
21732             # Check whether --enable-video-x11-xshape was given.
21733 if test "${enable_video_x11_xshape+set}" = set; then :
21734   enableval=$enable_video_x11_xshape;
21735 else
21736   enable_video_x11_xshape=yes
21737 fi
21738
21739             if test x$enable_video_x11_xshape = xyes; then
21740                 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
21741
21742 "
21743 if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
21744   have_shape_h_hdr=yes
21745 else
21746   have_shape_h_hdr=no
21747 fi
21748
21749
21750                 if test x$have_shape_h_hdr = xyes; then
21751
21752 $as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
21753
21754                     SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
21755                 fi
21756             fi
21757             # Check whether --enable-video-x11-vm was given.
21758 if test "${enable_video_x11_vm+set}" = set; then :
21759   enableval=$enable_video_x11_vm;
21760 else
21761   enable_video_x11_vm=yes
21762 fi
21763
21764             if test x$enable_video_x11_vm = xyes; then
21765                 definitely_enable_video_x11_vm=no
21766                 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
21767
21768 "
21769 if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then :
21770   have_vm_h_hdr=yes
21771 else
21772   have_vm_h_hdr=no
21773 fi
21774
21775
21776                 if test x$have_vm_h_hdr = xyes; then
21777                     if test x$enable_x11_shared = xyes && test x$xvidmode_lib != x ; then
21778                         echo "-- dynamic libXxf86vm -> $xvidmode_lib"
21779
21780 cat >>confdefs.h <<_ACEOF
21781 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "$xvidmode_lib"
21782 _ACEOF
21783
21784                         definitely_enable_video_x11_vm=yes
21785                     else
21786                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryVersion in -lXxf86vm" >&5
21787 $as_echo_n "checking for XF86VidModeQueryVersion in -lXxf86vm... " >&6; }
21788 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion+:} false; then :
21789   $as_echo_n "(cached) " >&6
21790 else
21791   ac_check_lib_save_LIBS=$LIBS
21792 LIBS="-lXxf86vm  $LIBS"
21793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21794 /* end confdefs.h.  */
21795
21796 /* Override any GCC internal prototype to avoid an error.
21797    Use char because int might match the return type of a GCC
21798    builtin and then its argument prototype would still apply.  */
21799 #ifdef __cplusplus
21800 extern "C"
21801 #endif
21802 char XF86VidModeQueryVersion ();
21803 int
21804 main ()
21805 {
21806 return XF86VidModeQueryVersion ();
21807   ;
21808   return 0;
21809 }
21810 _ACEOF
21811 if ac_fn_c_try_link "$LINENO"; then :
21812   ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=yes
21813 else
21814   ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=no
21815 fi
21816 rm -f core conftest.err conftest.$ac_objext \
21817     conftest$ac_exeext conftest.$ac_ext
21818 LIBS=$ac_check_lib_save_LIBS
21819 fi
21820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&5
21821 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&6; }
21822 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" = xyes; then :
21823   have_vm_lib=yes
21824 fi
21825
21826                         if test x$have_vm_lib = xyes ; then
21827                             EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXxf86vm"
21828                             definitely_enable_video_x11_vm=yes
21829                         fi
21830                     fi
21831                 fi
21832             fi
21833             if test x$definitely_enable_video_x11_vm = xyes; then
21834
21835 $as_echo "#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1" >>confdefs.h
21836
21837                 SUMMARY_video_x11="${SUMMARY_video_x11} xvidmode"
21838             fi
21839         fi
21840     else
21841         # Prevent Mesa from including X11 headers
21842         EXTRA_CFLAGS="$EXTRA_CFLAGS -DMESA_EGL_NO_X11_HEADERS -DEGL_NO_X11"
21843     fi
21844 }
21845
21846 CheckVivanteVideo()
21847 {
21848     # Check whether --enable-video-vivante was given.
21849 if test "${enable_video_vivante+set}" = set; then :
21850   enableval=$enable_video_vivante;
21851 else
21852   enable_video_vivante=yes
21853 fi
21854
21855     if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
21856         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
21857 $as_echo_n "checking for Vivante VDK API... " >&6; }
21858         have_vivante_vdk=no
21859         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21860 /* end confdefs.h.  */
21861
21862           #define LINUX
21863           #define EGL_API_FB
21864           #include <gc_vdk.h>
21865
21866 int
21867 main ()
21868 {
21869
21870
21871   ;
21872   return 0;
21873 }
21874 _ACEOF
21875 if ac_fn_c_try_compile "$LINENO"; then :
21876
21877         have_vivante_vdk=yes
21878
21879 fi
21880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21881         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
21882 $as_echo "$have_vivante_vdk" >&6; }
21883
21884         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
21885 $as_echo_n "checking for Vivante FB API... " >&6; }
21886         have_vivante_egl=no
21887         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21888 /* end confdefs.h.  */
21889
21890           #define LINUX
21891           #define EGL_API_FB
21892           #include <EGL/eglvivante.h>
21893
21894 int
21895 main ()
21896 {
21897
21898
21899   ;
21900   return 0;
21901 }
21902 _ACEOF
21903 if ac_fn_c_try_compile "$LINENO"; then :
21904
21905         have_vivante_egl=yes
21906
21907 fi
21908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21909         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
21910 $as_echo "$have_vivante_egl" >&6; }
21911
21912         if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
21913
21914 $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
21915
21916             EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
21917             if test x$have_vivante_vdk = xyes; then
21918
21919 $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
21920
21921                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
21922             fi
21923             SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
21924             SUMMARY_video="${SUMMARY_video} vivante"
21925             have_video=yes
21926         fi
21927     fi
21928 }
21929
21930 CheckHaikuVideo()
21931 {
21932     if test x$enable_video = xyes; then
21933
21934 $as_echo "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
21935
21936         SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
21937         have_video=yes
21938         SUMMARY_video="${SUMMARY_video} haiku"
21939     fi
21940 }
21941
21942 CheckCOCOA()
21943 {
21944     # Check whether --enable-video-cocoa was given.
21945 if test "${enable_video_cocoa+set}" = set; then :
21946   enableval=$enable_video_cocoa;
21947 else
21948   enable_video_cocoa=yes
21949 fi
21950
21951     if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
21952         save_CFLAGS="$CFLAGS"
21953                 CFLAGS="$CFLAGS -x objective-c"
21954         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
21955 $as_echo_n "checking for Cocoa framework... " >&6; }
21956         have_cocoa=no
21957         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21958 /* end confdefs.h.  */
21959
21960           #import <Cocoa/Cocoa.h>
21961
21962 int
21963 main ()
21964 {
21965
21966
21967   ;
21968   return 0;
21969 }
21970 _ACEOF
21971 if ac_fn_c_try_compile "$LINENO"; then :
21972
21973         have_cocoa=yes
21974
21975 fi
21976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21977         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
21978 $as_echo "$have_cocoa" >&6; }
21979         CFLAGS="$save_CFLAGS"
21980         if test x$have_cocoa = xyes; then
21981
21982 $as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
21983
21984             SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
21985             SUMMARY_video="${SUMMARY_video} cocoa"
21986             have_video=yes
21987         fi
21988     fi
21989 }
21990
21991 CheckMETAL()
21992 {
21993     # Check whether --enable-video-metal was given.
21994 if test "${enable_video_metal+set}" = set; then :
21995   enableval=$enable_video_metal;
21996 else
21997   enable_video_metal=yes
21998 fi
21999
22000     # Check whether --enable-render-metal was given.
22001 if test "${enable_render_metal+set}" = set; then :
22002   enableval=$enable_render_metal;
22003 else
22004   enable_render_metal=yes
22005 fi
22006
22007     if test x$enable_video = xyes -a x$enable_video_metal = xyes; then
22008         save_CFLAGS="$CFLAGS"
22009                 CFLAGS="$CFLAGS -x objective-c"
22010         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
22011 $as_echo_n "checking for Metal framework... " >&6; }
22012         have_metal=no
22013         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22014 /* end confdefs.h.  */
22015
22016           #import <Cocoa/Cocoa.h>
22017           #import <Metal/Metal.h>
22018           #import <QuartzCore/CAMetalLayer.h>
22019
22020           #if TARGET_CPU_X86
22021           #error Metal doesn't work on this configuration
22022           #endif
22023
22024 int
22025 main ()
22026 {
22027
22028
22029   ;
22030   return 0;
22031 }
22032 _ACEOF
22033 if ac_fn_c_try_compile "$LINENO"; then :
22034
22035         have_metal=yes
22036
22037 fi
22038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22039         CFLAGS="$save_CFLAGS"
22040         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
22041 $as_echo "$have_metal" >&6; }
22042         if test x$have_metal = xyes; then
22043
22044 $as_echo "#define SDL_VIDEO_METAL 1" >>confdefs.h
22045
22046             if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
22047
22048 $as_echo "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
22049
22050                 SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
22051             fi
22052             SUMMARY_video="${SUMMARY_video} metal"
22053         else
22054             enable_video_metal=no
22055             enable_render_metal=no
22056         fi
22057     fi
22058 }
22059
22060 CheckDirectFB()
22061 {
22062     # Check whether --enable-video-directfb was given.
22063 if test "${enable_video_directfb+set}" = set; then :
22064   enableval=$enable_video_directfb;
22065 else
22066   enable_video_directfb=no
22067 fi
22068
22069     if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
22070
22071 pkg_failed=no
22072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRECTFB" >&5
22073 $as_echo_n "checking for DIRECTFB... " >&6; }
22074
22075 if test -n "$DIRECTFB_CFLAGS"; then
22076     pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
22077  elif test -n "$PKG_CONFIG"; then
22078     if test -n "$PKG_CONFIG" && \
22079     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
22080   ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
22081   ac_status=$?
22082   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22083   test $ac_status = 0; }; then
22084   pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 1.0.0" 2>/dev/null`
22085 else
22086   pkg_failed=yes
22087 fi
22088  else
22089     pkg_failed=untried
22090 fi
22091 if test -n "$DIRECTFB_LIBS"; then
22092     pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
22093  elif test -n "$PKG_CONFIG"; then
22094     if test -n "$PKG_CONFIG" && \
22095     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
22096   ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
22097   ac_status=$?
22098   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22099   test $ac_status = 0; }; then
22100   pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 1.0.0" 2>/dev/null`
22101 else
22102   pkg_failed=yes
22103 fi
22104  else
22105     pkg_failed=untried
22106 fi
22107
22108
22109
22110 if test $pkg_failed = yes; then
22111         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22112 $as_echo "no" >&6; }
22113
22114 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22115         _pkg_short_errors_supported=yes
22116 else
22117         _pkg_short_errors_supported=no
22118 fi
22119         if test $_pkg_short_errors_supported = yes; then
22120                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "directfb >= 1.0.0" 2>&1`
22121         else
22122                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --print-errors "directfb >= 1.0.0" 2>&1`
22123         fi
22124         # Put the nasty error message in config.log where it belongs
22125         echo "$DIRECTFB_PKG_ERRORS" >&5
22126
22127         video_directfb=no
22128 elif test $pkg_failed = untried; then
22129         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22130 $as_echo "no" >&6; }
22131         video_directfb=no
22132 else
22133         DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
22134         DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
22135         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22136 $as_echo "yes" >&6; }
22137         video_directfb=yes
22138 fi
22139
22140         if test x$video_directfb = xyes; then
22141             # SuSE 11.1 installs directfb-config without directfb-devel
22142             save_CPPFLAGS="$CPPFLAGS"
22143             CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
22144             ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
22145 if test "x$ac_cv_header_directfb_h" = xyes; then :
22146   have_directfb_hdr=yes
22147 else
22148   have_directfb_hdr=no
22149 fi
22150
22151
22152             CPPFLAGS="$save_CPPFLAGS"
22153             video_directfb=$have_directfb_hdr
22154         fi
22155
22156         if test x$video_directfb = xyes; then
22157             # Check whether --enable-directfb-shared was given.
22158 if test "${enable_directfb_shared+set}" = set; then :
22159   enableval=$enable_directfb_shared;
22160 else
22161   enable_directfb_shared=yes
22162 fi
22163
22164
22165
22166 $as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
22167
22168
22169 $as_echo "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
22170
22171             SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
22172             EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
22173
22174             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb dynamic loading support" >&5
22175 $as_echo_n "checking for directfb dynamic loading support... " >&6; }
22176             directfb_shared=no
22177             directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS"`
22178             # | sed 's/.*\/\(.*\)/\1/; q'`]
22179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"directfb $directfb_lib\"" >&5
22180 $as_echo "$as_me: WARNING: \"directfb $directfb_lib\"" >&2;}
22181             if test x$have_loadso != xyes && \
22182                test x$enable_directfb_shared = xyes; then
22183                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
22184 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
22185             fi
22186             if test x$have_loadso = xyes && \
22187                test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
22188                 directfb_shared=yes
22189                 echo "-- $directfb_lib_spec -> $directfb_lib"
22190
22191 cat >>confdefs.h <<_ACEOF
22192 #define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
22193 _ACEOF
22194
22195                 SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
22196             else
22197                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
22198                 SUMMARY_video="${SUMMARY_video} directfb"
22199             fi
22200             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $directfb_shared" >&5
22201 $as_echo "$directfb_shared" >&6; }
22202             SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
22203             have_video=yes
22204         fi
22205     fi
22206 }
22207
22208 CheckKMSDRM()
22209 {
22210     # Check whether --enable-video-kmsdrm was given.
22211 if test "${enable_video_kmsdrm+set}" = set; then :
22212   enableval=$enable_video_kmsdrm;
22213 else
22214   enable_video_kmsdrm=no
22215 fi
22216
22217
22218     if test x$enable_video = xyes -a x$enable_video_kmsdrm = xyes; then
22219         video_kmsdrm=no
22220
22221
22222 pkg_failed=no
22223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBDRM" >&5
22224 $as_echo_n "checking for LIBDRM... " >&6; }
22225
22226 if test -n "$LIBDRM_CFLAGS"; then
22227     pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
22228  elif test -n "$PKG_CONFIG"; then
22229     if test -n "$PKG_CONFIG" && \
22230     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
22231   ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
22232   ac_status=$?
22233   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22234   test $ac_status = 0; }; then
22235   pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 1.4.82" 2>/dev/null`
22236 else
22237   pkg_failed=yes
22238 fi
22239  else
22240     pkg_failed=untried
22241 fi
22242 if test -n "$LIBDRM_LIBS"; then
22243     pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
22244  elif test -n "$PKG_CONFIG"; then
22245     if test -n "$PKG_CONFIG" && \
22246     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
22247   ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
22248   ac_status=$?
22249   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22250   test $ac_status = 0; }; then
22251   pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 1.4.82" 2>/dev/null`
22252 else
22253   pkg_failed=yes
22254 fi
22255  else
22256     pkg_failed=untried
22257 fi
22258
22259
22260
22261 if test $pkg_failed = yes; then
22262         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22263 $as_echo "no" >&6; }
22264
22265 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22266         _pkg_short_errors_supported=yes
22267 else
22268         _pkg_short_errors_supported=no
22269 fi
22270         if test $_pkg_short_errors_supported = yes; then
22271                 LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdrm >= 1.4.82" 2>&1`
22272         else
22273                 LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdrm >= 1.4.82" 2>&1`
22274         fi
22275         # Put the nasty error message in config.log where it belongs
22276         echo "$LIBDRM_PKG_ERRORS" >&5
22277
22278         libdrm_avail=no
22279 elif test $pkg_failed = untried; then
22280         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22281 $as_echo "no" >&6; }
22282         libdrm_avail=no
22283 else
22284         LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
22285         LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
22286         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22287 $as_echo "yes" >&6; }
22288         libdrm_avail=yes
22289 fi
22290
22291 pkg_failed=no
22292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGBM" >&5
22293 $as_echo_n "checking for LIBGBM... " >&6; }
22294
22295 if test -n "$LIBGBM_CFLAGS"; then
22296     pkg_cv_LIBGBM_CFLAGS="$LIBGBM_CFLAGS"
22297  elif test -n "$PKG_CONFIG"; then
22298     if test -n "$PKG_CONFIG" && \
22299     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
22300   ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
22301   ac_status=$?
22302   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22303   test $ac_status = 0; }; then
22304   pkg_cv_LIBGBM_CFLAGS=`$PKG_CONFIG --cflags "gbm >= 11.1.0" 2>/dev/null`
22305 else
22306   pkg_failed=yes
22307 fi
22308  else
22309     pkg_failed=untried
22310 fi
22311 if test -n "$LIBGBM_LIBS"; then
22312     pkg_cv_LIBGBM_LIBS="$LIBGBM_LIBS"
22313  elif test -n "$PKG_CONFIG"; then
22314     if test -n "$PKG_CONFIG" && \
22315     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
22316   ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
22317   ac_status=$?
22318   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22319   test $ac_status = 0; }; then
22320   pkg_cv_LIBGBM_LIBS=`$PKG_CONFIG --libs "gbm >= 11.1.0" 2>/dev/null`
22321 else
22322   pkg_failed=yes
22323 fi
22324  else
22325     pkg_failed=untried
22326 fi
22327
22328
22329
22330 if test $pkg_failed = yes; then
22331         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22332 $as_echo "no" >&6; }
22333
22334 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22335         _pkg_short_errors_supported=yes
22336 else
22337         _pkg_short_errors_supported=no
22338 fi
22339         if test $_pkg_short_errors_supported = yes; then
22340                 LIBGBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gbm >= 11.1.0" 2>&1`
22341         else
22342                 LIBGBM_PKG_ERRORS=`$PKG_CONFIG --print-errors "gbm >= 11.1.0" 2>&1`
22343         fi
22344         # Put the nasty error message in config.log where it belongs
22345         echo "$LIBGBM_PKG_ERRORS" >&5
22346
22347         libgbm_avail=no
22348 elif test $pkg_failed = untried; then
22349         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22350 $as_echo "no" >&6; }
22351         libgbm_avail=no
22352 else
22353         LIBGBM_CFLAGS=$pkg_cv_LIBGBM_CFLAGS
22354         LIBGBM_LIBS=$pkg_cv_LIBGBM_LIBS
22355         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22356 $as_echo "yes" >&6; }
22357         libgbm_avail=yes
22358 fi
22359
22360         if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
22361             video_kmsdrm=yes
22362         fi
22363
22364         if test x$video_kmsdrm = xyes; then
22365             # Check whether --enable-kmsdrm-shared was given.
22366 if test "${enable_kmsdrm_shared+set}" = set; then :
22367   enableval=$enable_kmsdrm_shared;
22368 else
22369   enable_kmsdrm_shared=yes
22370 fi
22371
22372
22373
22374 $as_echo "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
22375
22376             SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
22377             SOURCES="$SOURCES $srcdir/src/video/kmsdrm_legacy/*.c"
22378             EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
22379
22380             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
22381 $as_echo_n "checking for kmsdrm dynamic loading support... " >&6; }
22382             kmsdrm_shared=no
22383             drm_lib=`find_lib "libdrm.so.*" "$DRM_LIBS"`
22384             gbm_lib=`find_lib "libgbm.so.*" "$DRM_LIBS"`
22385             if test x$have_loadso != xyes && \
22386                test x$enable_kmsdrm_shared = xyes; then
22387                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
22388 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
22389             fi
22390             if test x$have_loadso = xyes && \
22391                test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
22392                 kmsdrm_shared=yes
22393
22394 cat >>confdefs.h <<_ACEOF
22395 #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC "$drm_lib"
22396 _ACEOF
22397
22398
22399 cat >>confdefs.h <<_ACEOF
22400 #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM "$gbm_lib"
22401 _ACEOF
22402
22403
22404 cat >>confdefs.h <<_ACEOF
22405 #define HAVE_KMSDRM_SHARED "TRUE"
22406 _ACEOF
22407
22408                 SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
22409             else
22410                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
22411                 SUMMARY_video="${SUMMARY_video} kmsdrm"
22412             fi
22413             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
22414 $as_echo "$kmsdrm_shared" >&6; }
22415             have_video=yes
22416         fi
22417     fi
22418 }
22419
22420 CheckDummyVideo()
22421 {
22422     # Check whether --enable-video-dummy was given.
22423 if test "${enable_video_dummy+set}" = set; then :
22424   enableval=$enable_video_dummy;
22425 else
22426   enable_video_dummy=yes
22427 fi
22428
22429     if test x$enable_video_dummy = xyes; then
22430
22431 $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
22432
22433         SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
22434         have_video=yes
22435         SUMMARY_video="${SUMMARY_video} dummy"
22436     fi
22437 }
22438
22439 CheckQNXVideo()
22440 {
22441     if test x$enable_video = xyes; then
22442
22443 $as_echo "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
22444
22445         SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
22446         have_video=yes
22447         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
22448         SUMMARY_video="${SUMMARY_video} qnx"
22449     fi
22450 }
22451
22452 CheckQNXAudio()
22453 {
22454     if test x$enable_audio = xyes; then
22455
22456 $as_echo "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
22457
22458         SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
22459         have_audio=yes
22460         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
22461         SUMMARY_audio="${SUMMARY_audio} qsa"
22462     fi
22463 }
22464
22465 # Check whether --enable-video-opengl was given.
22466 if test "${enable_video_opengl+set}" = set; then :
22467   enableval=$enable_video_opengl;
22468 else
22469   enable_video_opengl=yes
22470 fi
22471
22472
22473 CheckOpenGLX11()
22474 {
22475     if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
22476         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL (GLX) support" >&5
22477 $as_echo_n "checking for OpenGL (GLX) support... " >&6; }
22478         video_opengl=no
22479         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22480 /* end confdefs.h.  */
22481
22482          #include <GL/gl.h>
22483          #include <GL/glx.h>
22484
22485 int
22486 main ()
22487 {
22488
22489
22490   ;
22491   return 0;
22492 }
22493 _ACEOF
22494 if ac_fn_c_try_compile "$LINENO"; then :
22495
22496         video_opengl=yes
22497
22498 fi
22499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22500         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
22501 $as_echo "$video_opengl" >&6; }
22502         if test x$video_opengl = xyes; then
22503
22504 $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
22505
22506
22507 $as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
22508
22509
22510 $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
22511
22512             SUMMARY_video="${SUMMARY_video} opengl"
22513         fi
22514     fi
22515 }
22516
22517 # Check whether --enable-video-opengles was given.
22518 if test "${enable_video_opengles+set}" = set; then :
22519   enableval=$enable_video_opengles;
22520 else
22521   enable_video_opengles=yes
22522 fi
22523
22524 # Check whether --enable-video-opengles1 was given.
22525 if test "${enable_video_opengles1+set}" = set; then :
22526   enableval=$enable_video_opengles1;
22527 else
22528   enable_video_opengles1=yes
22529 fi
22530
22531 # Check whether --enable-video-opengles2 was given.
22532 if test "${enable_video_opengles2+set}" = set; then :
22533   enableval=$enable_video_opengles2;
22534 else
22535   enable_video_opengles2=yes
22536 fi
22537
22538
22539
22540
22541 CheckOpenGLESX11()
22542 {
22543     if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
22544         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
22545 $as_echo_n "checking for EGL support... " >&6; }
22546         video_opengl_egl=no
22547         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22548 /* end confdefs.h.  */
22549
22550           #define LINUX
22551           #define EGL_API_FB
22552           #define MESA_EGL_NO_X11_HEADERS
22553           #define EGL_NO_X11
22554           #include <EGL/egl.h>
22555           #include <EGL/eglext.h>
22556
22557 int
22558 main ()
22559 {
22560
22561
22562   ;
22563   return 0;
22564 }
22565 _ACEOF
22566 if ac_fn_c_try_compile "$LINENO"; then :
22567
22568         video_opengl_egl=yes
22569
22570 fi
22571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22572         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
22573 $as_echo "$video_opengl_egl" >&6; }
22574         if test x$video_opengl_egl = xyes; then
22575
22576 $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
22577
22578         fi
22579
22580         if test x$enable_video_opengles1 = xyes; then
22581             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
22582 $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
22583             video_opengles_v1=no
22584             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22585 /* end confdefs.h.  */
22586
22587              #include <GLES/gl.h>
22588              #include <GLES/glext.h>
22589
22590 int
22591 main ()
22592 {
22593
22594
22595   ;
22596   return 0;
22597 }
22598 _ACEOF
22599 if ac_fn_c_try_compile "$LINENO"; then :
22600
22601             video_opengles_v1=yes
22602
22603 fi
22604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22605             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
22606 $as_echo "$video_opengles_v1" >&6; }
22607             if test x$video_opengles_v1 = xyes; then
22608
22609 $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
22610
22611
22612 $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
22613
22614                 SUMMARY_video="${SUMMARY_video} opengl_es1"
22615             fi
22616         fi
22617
22618         if test x$enable_video_opengles2 = xyes; then
22619             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
22620 $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
22621             video_opengles_v2=no
22622             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22623 /* end confdefs.h.  */
22624
22625              #include <GLES2/gl2.h>
22626              #include <GLES2/gl2ext.h>
22627
22628 int
22629 main ()
22630 {
22631
22632
22633   ;
22634   return 0;
22635 }
22636 _ACEOF
22637 if ac_fn_c_try_compile "$LINENO"; then :
22638
22639             video_opengles_v2=yes
22640
22641 fi
22642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22643             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
22644 $as_echo "$video_opengles_v2" >&6; }
22645             if test x$video_opengles_v2 = xyes; then
22646
22647 $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
22648
22649
22650 $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
22651
22652                 SUMMARY_video="${SUMMARY_video} opengl_es2"
22653             fi
22654         fi
22655     fi
22656 }
22657
22658 CheckWINDOWSGL()
22659 {
22660     if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
22661
22662 $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
22663
22664
22665 $as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
22666
22667
22668 $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
22669
22670         SUMMARY_video="${SUMMARY_video} opengl"
22671     fi
22672 }
22673
22674 CheckWINDOWSGLES()
22675 {
22676     if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
22677
22678         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
22679 $as_echo_n "checking for EGL support... " >&6; }
22680         video_opengl_egl=no
22681         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22682 /* end confdefs.h.  */
22683
22684          #include <EGL/egl.h>
22685
22686 int
22687 main ()
22688 {
22689
22690
22691   ;
22692   return 0;
22693 }
22694 _ACEOF
22695 if ac_fn_c_try_compile "$LINENO"; then :
22696
22697         video_opengl_egl=yes
22698
22699 fi
22700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22701         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
22702 $as_echo "$video_opengl_egl" >&6; }
22703         if test x$video_opengl_egl = xyes; then
22704
22705 $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
22706
22707
22708 $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
22709
22710             SUMMARY_video="${SUMMARY_video} opengl_es1"
22711         fi
22712
22713         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
22714 $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
22715         video_opengles_v2=no
22716         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22717 /* end confdefs.h.  */
22718
22719          #include <GLES2/gl2.h>
22720          #include <GLES2/gl2ext.h>
22721
22722 int
22723 main ()
22724 {
22725
22726
22727   ;
22728   return 0;
22729 }
22730 _ACEOF
22731 if ac_fn_c_try_compile "$LINENO"; then :
22732
22733         video_opengles_v2=yes
22734
22735 fi
22736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22737         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
22738 $as_echo "$video_opengles_v2" >&6; }
22739         if test x$video_opengles_v2 = xyes; then
22740
22741 $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
22742
22743
22744 $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
22745
22746
22747 $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
22748
22749             SUMMARY_video="${SUMMARY_video} opengl_es2"
22750         fi
22751     fi
22752 }
22753
22754 CheckHaikuGL()
22755 {
22756     if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
22757
22758 $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
22759
22760
22761 $as_echo "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
22762
22763
22764 $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
22765
22766         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
22767         SUMMARY_video="${SUMMARY_video} opengl"
22768     fi
22769 }
22770
22771 CheckMacGL()
22772 {
22773     if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
22774
22775 $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
22776
22777
22778 $as_echo "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
22779
22780
22781 $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
22782
22783         SUMMARY_video="${SUMMARY_video} opengl"
22784     fi
22785 }
22786
22787 CheckMacGLES()
22788 {
22789     if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
22790         video_opengl_egl=yes
22791
22792 $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
22793
22794         video_opengles_v2=yes
22795
22796 $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
22797
22798
22799 $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
22800
22801         SUMMARY_video="${SUMMARY_video} opengl_es2"
22802     fi
22803 }
22804
22805 CheckEmscriptenGLES()
22806 {
22807     if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
22808         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
22809 $as_echo_n "checking for EGL support... " >&6; }
22810         video_opengl_egl=no
22811         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22812 /* end confdefs.h.  */
22813
22814          #include <EGL/egl.h>
22815
22816 int
22817 main ()
22818 {
22819
22820
22821   ;
22822   return 0;
22823 }
22824 _ACEOF
22825 if ac_fn_c_try_compile "$LINENO"; then :
22826
22827         video_opengl_egl=yes
22828
22829 fi
22830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22831         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
22832 $as_echo "$video_opengl_egl" >&6; }
22833         if test x$video_opengl_egl = xyes; then
22834
22835 $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
22836
22837         fi
22838
22839         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
22840 $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
22841         video_opengles_v2=no
22842         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22843 /* end confdefs.h.  */
22844
22845          #include <GLES2/gl2.h>
22846          #include <GLES2/gl2ext.h>
22847
22848 int
22849 main ()
22850 {
22851
22852
22853   ;
22854   return 0;
22855 }
22856 _ACEOF
22857 if ac_fn_c_try_compile "$LINENO"; then :
22858
22859         video_opengles_v2=yes
22860
22861 fi
22862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22863         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
22864 $as_echo "$video_opengles_v2" >&6; }
22865         if test x$video_opengles_v2 = xyes; then
22866
22867 $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
22868
22869
22870 $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
22871
22872             SUMMARY_video="${SUMMARY_video} opengl_es2"
22873         fi
22874     fi
22875 }
22876
22877
22878 # Check whether --enable-video-vulkan was given.
22879 if test "${enable_video_vulkan+set}" = set; then :
22880   enableval=$enable_video_vulkan;
22881 else
22882   enable_video_vulkan=yes
22883 fi
22884
22885
22886 CheckVulkan()
22887 {
22888     if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
22889         case "$host" in
22890             *-*-android*)
22891                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22892 /* end confdefs.h.  */
22893
22894                   #if defined(__ARM_ARCH) && __ARM_ARCH < 7
22895                   #error Vulkan doesn't work on this configuration
22896                   #endif
22897
22898 int
22899 main ()
22900 {
22901
22902
22903   ;
22904   return 0;
22905 }
22906 _ACEOF
22907 if ac_fn_c_try_compile "$LINENO"; then :
22908
22909
22910
22911
22912
22913 else
22914
22915                     enable_video_vulkan=no
22916
22917 fi
22918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22919                 ;;
22920             *-*-darwin*)
22921                 save_CFLAGS="$CFLAGS"
22922                                 CFLAGS="$CFLAGS -x objective-c"
22923                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22924 /* end confdefs.h.  */
22925
22926                   #include <Cocoa/Cocoa.h>
22927                   #include <Metal/Metal.h>
22928                   #include <QuartzCore/CAMetalLayer.h>
22929
22930                   #if TARGET_CPU_X86
22931                   #error Vulkan doesn't work on this configuration
22932                   #endif
22933
22934 int
22935 main ()
22936 {
22937
22938
22939   ;
22940   return 0;
22941 }
22942 _ACEOF
22943 if ac_fn_c_try_compile "$LINENO"; then :
22944
22945
22946 else
22947
22948                     enable_video_vulkan=no
22949
22950 fi
22951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22952                 CFLAGS="$save_CFLAGS"
22953                 ;;
22954             *)
22955                 ;;
22956         esac
22957         if test x$enable_video_vulkan = xno; then
22958             # For reasons I am totally unable to see, I get an undefined macro error if
22959             # I put this in the AC_TRY_COMPILE.
22960             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
22961 $as_echo "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
22962         fi
22963     fi
22964     if test x$enable_video_vulkan = xyes; then
22965
22966 $as_echo "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
22967
22968         SUMMARY_video="${SUMMARY_video} vulkan"
22969     fi
22970 }
22971
22972 CheckInputEvents()
22973 {
22974             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
22975 $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
22976         use_input_events=no
22977         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22978 /* end confdefs.h.  */
22979
22980           #include <linux/input.h>
22981
22982 int
22983 main ()
22984 {
22985
22986           #ifndef EVIOCGNAME
22987           #error EVIOCGNAME() ioctl not available
22988           #endif
22989
22990   ;
22991   return 0;
22992 }
22993 _ACEOF
22994 if ac_fn_c_try_compile "$LINENO"; then :
22995
22996         use_input_events=yes
22997
22998 fi
22999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23000         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
23001 $as_echo "$use_input_events" >&6; }
23002         if test x$use_input_events = xyes; then
23003
23004 $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
23005
23006             SUMMARY_input="${SUMMARY_input} linuxev"
23007         fi
23008 }
23009
23010 CheckInputKD()
23011 {
23012
23013     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
23014 $as_echo_n "checking for Linux kd.h... " >&6; }
23015     use_input_kd=no
23016     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23017 /* end confdefs.h.  */
23018
23019       #include <linux/kd.h>
23020       #include <linux/keyboard.h>
23021
23022 int
23023 main ()
23024 {
23025
23026         struct kbentry kbe;
23027         kbe.kb_table = KG_CTRL;
23028         ioctl(0, KDGKBENT, &kbe);
23029
23030   ;
23031   return 0;
23032 }
23033 _ACEOF
23034 if ac_fn_c_try_compile "$LINENO"; then :
23035
23036     use_input_kd=yes
23037
23038 fi
23039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23040     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
23041 $as_echo "$use_input_kd" >&6; }
23042     if test x$use_input_kd = xyes; then
23043
23044 $as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
23045
23046         SUMMARY_input="${SUMMARY_input} linuxkd"
23047     fi
23048 }
23049
23050 CheckInputKBIO()
23051 {
23052     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeBSD kbio.h" >&5
23053 $as_echo_n "checking for FreeBSD kbio.h... " >&6; }
23054     use_input_kbio=no
23055     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23056 /* end confdefs.h.  */
23057
23058       #include <sys/kbio.h>
23059       #include <sys/ioctl.h>
23060
23061 int
23062 main ()
23063 {
23064
23065         accentmap_t accTable;
23066         ioctl(0, KDENABIO, 1);
23067
23068   ;
23069   return 0;
23070 }
23071 _ACEOF
23072 if ac_fn_c_try_compile "$LINENO"; then :
23073
23074     use_input_kbio=yes
23075
23076 fi
23077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23078     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kbio" >&5
23079 $as_echo "$use_input_kbio" >&6; }
23080     if test x$use_input_kbio = xyes; then
23081
23082 $as_echo "#define SDL_INPUT_FBSDKBIO 1" >>confdefs.h
23083
23084         SUMMARY_input="${SUMMARY_input} fbsdkbio"
23085     fi
23086 }
23087
23088 CheckLibUDev()
23089 {
23090     # Check whether --enable-libudev was given.
23091 if test "${enable_libudev+set}" = set; then :
23092   enableval=$enable_libudev;
23093 else
23094   enable_libudev=yes
23095 fi
23096
23097     if test x$enable_libudev = xyes; then
23098         ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
23099 if test "x$ac_cv_header_libudev_h" = xyes; then :
23100   have_libudev_h_hdr=yes
23101 else
23102   have_libudev_h_hdr=no
23103 fi
23104
23105
23106         if test x$have_libudev_h_hdr = xyes; then
23107
23108 $as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
23109
23110
23111             udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
23112             if test x$udev_lib != x; then
23113                 echo "-- dynamic udev -> $udev_lib"
23114
23115 cat >>confdefs.h <<_ACEOF
23116 #define SDL_UDEV_DYNAMIC "$udev_lib"
23117 _ACEOF
23118
23119             fi
23120         fi
23121     fi
23122 }
23123
23124 CheckDBus()
23125 {
23126     # Check whether --enable-dbus was given.
23127 if test "${enable_dbus+set}" = set; then :
23128   enableval=$enable_dbus;
23129 else
23130   enable_dbus=yes
23131 fi
23132
23133     if test x$enable_dbus = xyes; then
23134
23135 pkg_failed=no
23136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
23137 $as_echo_n "checking for DBUS... " >&6; }
23138
23139 if test -n "$DBUS_CFLAGS"; then
23140     pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
23141  elif test -n "$PKG_CONFIG"; then
23142     if test -n "$PKG_CONFIG" && \
23143     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
23144   ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
23145   ac_status=$?
23146   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23147   test $ac_status = 0; }; then
23148   pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
23149 else
23150   pkg_failed=yes
23151 fi
23152  else
23153     pkg_failed=untried
23154 fi
23155 if test -n "$DBUS_LIBS"; then
23156     pkg_cv_DBUS_LIBS="$DBUS_LIBS"
23157  elif test -n "$PKG_CONFIG"; then
23158     if test -n "$PKG_CONFIG" && \
23159     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
23160   ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
23161   ac_status=$?
23162   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23163   test $ac_status = 0; }; then
23164   pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
23165 else
23166   pkg_failed=yes
23167 fi
23168  else
23169     pkg_failed=untried
23170 fi
23171
23172
23173
23174 if test $pkg_failed = yes; then
23175         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23176 $as_echo "no" >&6; }
23177
23178 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23179         _pkg_short_errors_supported=yes
23180 else
23181         _pkg_short_errors_supported=no
23182 fi
23183         if test $_pkg_short_errors_supported = yes; then
23184                 DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "dbus-1" 2>&1`
23185         else
23186                 DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors "dbus-1" 2>&1`
23187         fi
23188         # Put the nasty error message in config.log where it belongs
23189         echo "$DBUS_PKG_ERRORS" >&5
23190
23191         have_dbus=no
23192 elif test $pkg_failed = untried; then
23193         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23194 $as_echo "no" >&6; }
23195         have_dbus=no
23196 else
23197         DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
23198         DBUS_LIBS=$pkg_cv_DBUS_LIBS
23199         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23200 $as_echo "yes" >&6; }
23201         have_dbus=yes
23202 fi
23203         save_CFLAGS="$CFLAGS"
23204         CFLAGS="$save_CFLAGS $DBUS_CFLAGS"
23205         ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
23206 if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
23207   have_dbus_dbus_h_hdr=yes
23208 else
23209   have_dbus_dbus_h_hdr=no
23210 fi
23211
23212
23213         CFLAGS="$save_CFLAGS"
23214         if test x$have_dbus_dbus_h_hdr = xyes; then
23215
23216 $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
23217
23218             EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
23219             SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
23220         fi
23221     fi
23222 }
23223
23224 CheckIME()
23225 {
23226     # Check whether --enable-ime was given.
23227 if test "${enable_ime+set}" = set; then :
23228   enableval=$enable_ime;
23229 else
23230   enable_ime=yes
23231 fi
23232
23233     if test x$enable_ime = xyes; then
23234
23235 $as_echo "#define SDL_USE_IME 1" >>confdefs.h
23236
23237         SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
23238     fi
23239 }
23240
23241 CheckInotify()
23242 {
23243     save_LIBS="$LIBS"
23244     case "$host" in
23245      *-*-freebsd*) LIBS="$LIBS -linotify"
23246       ;;
23247     esac
23248     for ac_header in sys/inotify.h
23249 do :
23250   ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
23251 if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
23252   cat >>confdefs.h <<_ACEOF
23253 #define HAVE_SYS_INOTIFY_H 1
23254 _ACEOF
23255  have_inotify_inotify_h_hdr=yes
23256 fi
23257
23258 done
23259
23260     for ac_func in inotify_init
23261 do :
23262   ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
23263 if test "x$ac_cv_func_inotify_init" = xyes; then :
23264   cat >>confdefs.h <<_ACEOF
23265 #define HAVE_INOTIFY_INIT 1
23266 _ACEOF
23267  have_inotify=yes
23268 fi
23269 done
23270
23271     for ac_func in inotify_init1
23272 do :
23273   ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
23274 if test "x$ac_cv_func_inotify_init1" = xyes; then :
23275   cat >>confdefs.h <<_ACEOF
23276 #define HAVE_INOTIFY_INIT1 1
23277 _ACEOF
23278
23279 fi
23280 done
23281
23282     if test x$have_inotify_inotify_h_hdr = xyes -a x$have_inotify = xyes; then
23283
23284 $as_echo "#define HAVE_INOTIFY 1" >>confdefs.h
23285
23286         case "$host" in
23287             *-*-freebsd*)
23288                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -linotify"
23289                 ;;
23290         esac
23291     fi
23292     LIBS="$save_LIBS"
23293 }
23294
23295 CheckIBus()
23296 {
23297     # Check whether --enable-ibus was given.
23298 if test "${enable_ibus+set}" = set; then :
23299   enableval=$enable_ibus;
23300 else
23301   enable_ibus=yes
23302 fi
23303
23304     if test x$enable_ibus = xyes; then
23305
23306 pkg_failed=no
23307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IBUS" >&5
23308 $as_echo_n "checking for IBUS... " >&6; }
23309
23310 if test -n "$IBUS_CFLAGS"; then
23311     pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
23312  elif test -n "$PKG_CONFIG"; then
23313     if test -n "$PKG_CONFIG" && \
23314     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
23315   ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
23316   ac_status=$?
23317   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23318   test $ac_status = 0; }; then
23319   pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0" 2>/dev/null`
23320 else
23321   pkg_failed=yes
23322 fi
23323  else
23324     pkg_failed=untried
23325 fi
23326 if test -n "$IBUS_LIBS"; then
23327     pkg_cv_IBUS_LIBS="$IBUS_LIBS"
23328  elif test -n "$PKG_CONFIG"; then
23329     if test -n "$PKG_CONFIG" && \
23330     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
23331   ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
23332   ac_status=$?
23333   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23334   test $ac_status = 0; }; then
23335   pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0" 2>/dev/null`
23336 else
23337   pkg_failed=yes
23338 fi
23339  else
23340     pkg_failed=untried
23341 fi
23342
23343
23344
23345 if test $pkg_failed = yes; then
23346         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23347 $as_echo "no" >&6; }
23348
23349 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23350         _pkg_short_errors_supported=yes
23351 else
23352         _pkg_short_errors_supported=no
23353 fi
23354         if test $_pkg_short_errors_supported = yes; then
23355                 IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "ibus-1.0" 2>&1`
23356         else
23357                 IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors "ibus-1.0" 2>&1`
23358         fi
23359         # Put the nasty error message in config.log where it belongs
23360         echo "$IBUS_PKG_ERRORS" >&5
23361
23362         have_ibus=no
23363 elif test $pkg_failed = untried; then
23364         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23365 $as_echo "no" >&6; }
23366         have_ibus=no
23367 else
23368         IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
23369         IBUS_LIBS=$pkg_cv_IBUS_LIBS
23370         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23371 $as_echo "yes" >&6; }
23372         have_ibus=yes
23373 fi
23374         save_CFLAGS="$CFLAGS"
23375         CFLAGS="$save_CFLAGS $IBUS_CFLAGS"
23376         ac_fn_c_check_header_mongrel "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
23377 if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes; then :
23378   have_ibus_ibus_h_hdr=yes
23379 else
23380   have_ibus_ibus_h_hdr=no
23381 fi
23382
23383
23384         CFLAGS="$save_CFLAGS"
23385         if test x$have_ibus_ibus_h_hdr = xyes; then
23386             if test x$enable_ime != xyes; then
23387                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
23388 $as_echo "$as_me: WARNING: IME support is required for IBus." >&2;}
23389                 have_ibus_ibus_h_hdr=no
23390             elif test x$enable_dbus != xyes; then
23391                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
23392 $as_echo "$as_me: WARNING: DBus support is required for IBus." >&2;}
23393                 have_ibus_ibus_h_hdr=no
23394             elif test x$have_inotify_inotify_h_hdr != xyes; then
23395                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
23396 $as_echo "$as_me: WARNING: INotify support is required for IBus." >&2;}
23397                 have_ibus_ibus_h_hdr=no
23398             else
23399
23400 $as_echo "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
23401
23402                 EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
23403                 SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
23404             fi
23405         fi
23406     fi
23407 }
23408
23409 CheckFcitx()
23410 {
23411     # Check whether --enable-fcitx was given.
23412 if test "${enable_fcitx+set}" = set; then :
23413   enableval=$enable_fcitx;
23414 else
23415   enable_fcitx=yes
23416 fi
23417
23418     if test x$enable_fcitx = xyes; then
23419         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fcitx support" >&5
23420 $as_echo_n "checking for fcitx support... " >&6; }
23421         have_fcitx=no
23422         if test x$enable_ime != xyes; then
23423             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
23424 $as_echo "$as_me: WARNING: IME support is required for fcitx." >&2;}
23425         elif test x$have_dbus_dbus_h_hdr != xyes; then
23426             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
23427 $as_echo "$as_me: WARNING: DBus support is required for fcitx." >&2;}
23428         else
23429             have_fcitx=yes
23430
23431 $as_echo "#define HAVE_FCITX 1" >>confdefs.h
23432
23433             SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
23434         fi
23435         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_fcitx" >&5
23436 $as_echo "$have_fcitx" >&6; }
23437     fi
23438 }
23439
23440 CheckJoystickMFI()
23441 {
23442     # Check whether --enable-joystick-mfi was given.
23443 if test "${enable_joystick_mfi+set}" = set; then :
23444   enableval=$enable_joystick_mfi;
23445 else
23446   enable_joystick_mfi=yes
23447 fi
23448
23449
23450     if test x$enable_joystick_mfi = xyes; then
23451         save_CFLAGS="$CFLAGS"
23452         save_LDFLAGS="$LDFLAGS"
23453                 CFLAGS="$CFLAGS -x objective-c -fobjc-weak"
23454         LDFLAGS="$LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
23455         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GameController framework" >&5
23456 $as_echo_n "checking for GameController framework... " >&6; }
23457         enable_joystick_mfi=no
23458         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23459 /* end confdefs.h.  */
23460
23461           #include <AvailabilityMacros.h>
23462           #include <TargetConditionals.h>
23463           #import <GameController/GameController.h>
23464
23465 int
23466 main ()
23467 {
23468
23469           #if MAC_OS_X_VERSION_MIN_REQUIRED < 1080
23470           #error GameController framework doesn't work on this configuration
23471           #endif
23472           #if TARGET_CPU_X86
23473           #error GameController framework doesn't work on this configuration
23474           #endif
23475
23476   ;
23477   return 0;
23478 }
23479 _ACEOF
23480 if ac_fn_c_try_link "$LINENO"; then :
23481
23482         enable_joystick_mfi=yes
23483
23484 fi
23485 rm -f core conftest.err conftest.$ac_objext \
23486     conftest$ac_exeext conftest.$ac_ext
23487         CFLAGS="$save_CFLAGS"
23488         LDFLAGS="$save_LDFLAGS"
23489
23490         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_joystick_mfi" >&5
23491 $as_echo "$enable_joystick_mfi" >&6; }
23492         if test x$enable_joystick_mfi = xyes; then
23493
23494 $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
23495
23496             EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-weak -Wno-unused-command-line-argument"
23497             EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
23498         fi
23499     fi
23500 }
23501
23502 CheckPTHREAD()
23503 {
23504         # Check whether --enable-pthreads was given.
23505 if test "${enable_pthreads+set}" = set; then :
23506   enableval=$enable_pthreads;
23507 else
23508   enable_pthreads=yes
23509 fi
23510
23511         # Check whether --enable-pthread-sem was given.
23512 if test "${enable_pthread_sem+set}" = set; then :
23513   enableval=$enable_pthread_sem;
23514 else
23515   enable_pthread_sem=yes
23516 fi
23517
23518     case "$host" in
23519          *-*-android*)
23520             pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
23521             pthread_lib=""
23522             ;;
23523         *-*-linux*|*-*-uclinux*)
23524             pthread_cflags="-D_REENTRANT"
23525             pthread_lib="-lpthread"
23526             ;;
23527         *-*-bsdi*)
23528             pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
23529             pthread_lib=""
23530             ;;
23531         *-*-darwin*)
23532             pthread_cflags="-D_THREAD_SAFE"
23533 # causes Carbon.p complaints?
23534 #            pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
23535             ;;
23536         *-*-freebsd*|*-*-dragonfly*)
23537             pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
23538             pthread_lib="-pthread"
23539             ;;
23540         *-*-netbsd*)
23541             pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
23542             pthread_lib="-lpthread"
23543             ;;
23544         *-*-openbsd*)
23545             pthread_cflags="-D_REENTRANT"
23546             pthread_lib="-pthread"
23547             ;;
23548         *-*-solaris2.9)
23549             # From Solaris 9+, posix4's preferred name is rt.
23550             pthread_cflags="-D_REENTRANT"
23551             pthread_lib="-lpthread -lrt"
23552             ;;
23553         *-*-solaris2.10)
23554             # Solaris 10+ merged pthread into libc.
23555             pthread_cflags="-D_REENTRANT"
23556             pthread_lib="-lrt"
23557             ;;
23558         *-*-solaris*)
23559             # Solaris 11+ merged rt into libc.
23560             pthread_cflags="-D_REENTRANT"
23561             pthread_lib=""
23562             ;;
23563         *-*-sysv5*)
23564             pthread_cflags="-D_REENTRANT -Kthread"
23565             pthread_lib=""
23566             ;;
23567         *-*-aix*)
23568             pthread_cflags="-D_REENTRANT -mthreads"
23569             pthread_lib="-lpthread"
23570             ;;
23571         *-*-hpux11*)
23572             pthread_cflags="-D_REENTRANT"
23573             pthread_lib="-L/usr/lib -lpthread"
23574             ;;
23575         *-*-haiku*)
23576             pthread_cflags="-D_REENTRANT"
23577             pthread_lib=""
23578             ;;
23579         *-*-nto*)
23580             pthread_cflags="-D_REENTRANT"
23581             pthread_lib=""
23582             ;;
23583         *)
23584             pthread_cflags="-D_REENTRANT"
23585             pthread_lib="-lpthread"
23586             ;;
23587     esac
23588     if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
23589         # Save the original compiler flags and libraries
23590         ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
23591         # Add the pthread compiler flags and libraries
23592         CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
23593         # Check to see if we have pthread support on this system
23594         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
23595 $as_echo_n "checking for pthreads... " >&6; }
23596         use_pthreads=no
23597         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23598 /* end confdefs.h.  */
23599
23600          #include <pthread.h>
23601
23602 int
23603 main ()
23604 {
23605
23606          pthread_attr_t type;
23607          pthread_attr_init(&type);
23608
23609   ;
23610   return 0;
23611 }
23612 _ACEOF
23613 if ac_fn_c_try_link "$LINENO"; then :
23614
23615         use_pthreads=yes
23616
23617 fi
23618 rm -f core conftest.err conftest.$ac_objext \
23619     conftest$ac_exeext conftest.$ac_ext
23620         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
23621 $as_echo "$use_pthreads" >&6; }
23622         # Restore the compiler flags and libraries
23623         CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
23624
23625         # Do futher testing if we have pthread support...
23626         if test x$use_pthreads = xyes; then
23627
23628 $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
23629
23630             EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
23631             EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
23632             SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
23633
23634             # Save the original compiler flags and libraries
23635             ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
23636             # Add the pthread compiler flags and libraries
23637             CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
23638
23639             # Check to see if recursive mutexes are available
23640             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
23641 $as_echo_n "checking for recursive mutexes... " >&6; }
23642             has_recursive_mutexes=no
23643             if test x$has_recursive_mutexes = xno; then
23644                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23645 /* end confdefs.h.  */
23646
23647                   #define _GNU_SOURCE 1
23648                   #include <pthread.h>
23649
23650 int
23651 main ()
23652 {
23653
23654                   pthread_mutexattr_t attr;
23655                   pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
23656
23657   ;
23658   return 0;
23659 }
23660 _ACEOF
23661 if ac_fn_c_try_link "$LINENO"; then :
23662
23663                 has_recursive_mutexes=yes
23664
23665 $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
23666
23667
23668 fi
23669 rm -f core conftest.err conftest.$ac_objext \
23670     conftest$ac_exeext conftest.$ac_ext
23671             fi
23672             if test x$has_recursive_mutexes = xno; then
23673                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23674 /* end confdefs.h.  */
23675
23676                   #define _GNU_SOURCE 1
23677                   #include <pthread.h>
23678
23679 int
23680 main ()
23681 {
23682
23683                   pthread_mutexattr_t attr;
23684                   pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
23685
23686   ;
23687   return 0;
23688 }
23689 _ACEOF
23690 if ac_fn_c_try_link "$LINENO"; then :
23691
23692                 has_recursive_mutexes=yes
23693
23694 $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
23695
23696
23697 fi
23698 rm -f core conftest.err conftest.$ac_objext \
23699     conftest$ac_exeext conftest.$ac_ext
23700             fi
23701             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
23702 $as_echo "$has_recursive_mutexes" >&6; }
23703
23704             # Check to see if pthread semaphore support is missing
23705             if test x$enable_pthread_sem = xyes; then
23706                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
23707 $as_echo_n "checking for pthread semaphores... " >&6; }
23708                 have_pthread_sem=no
23709                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23710 /* end confdefs.h.  */
23711
23712                   #include <pthread.h>
23713                   #include <semaphore.h>
23714
23715 int
23716 main ()
23717 {
23718
23719
23720   ;
23721   return 0;
23722 }
23723 _ACEOF
23724 if ac_fn_c_try_compile "$LINENO"; then :
23725
23726                 have_pthread_sem=yes
23727
23728 fi
23729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23730                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
23731 $as_echo "$have_pthread_sem" >&6; }
23732             fi
23733             if test x$have_pthread_sem = xyes; then
23734                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
23735 $as_echo_n "checking for sem_timedwait... " >&6; }
23736                 have_sem_timedwait=no
23737                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23738 /* end confdefs.h.  */
23739
23740                   #include <pthread.h>
23741                   #include <semaphore.h>
23742
23743 int
23744 main ()
23745 {
23746
23747                   sem_timedwait(NULL, NULL);
23748
23749   ;
23750   return 0;
23751 }
23752 _ACEOF
23753 if ac_fn_c_try_link "$LINENO"; then :
23754
23755                 have_sem_timedwait=yes
23756
23757 $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
23758
23759
23760 fi
23761 rm -f core conftest.err conftest.$ac_objext \
23762     conftest$ac_exeext conftest.$ac_ext
23763                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
23764 $as_echo "$have_sem_timedwait" >&6; }
23765             fi
23766
23767             ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
23768 "
23769 if test "x$ac_cv_header_pthread_np_h" = xyes; then :
23770   have_pthread_np_h=yes
23771 else
23772   have_pthread_np_h=no
23773 fi
23774
23775
23776             if test x$have_pthread_np_h = xyes; then
23777
23778 $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
23779
23780             fi
23781
23782             # Check to see if pthread naming is available
23783             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
23784 $as_echo_n "checking for pthread_setname_np... " >&6; }
23785             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23786 /* end confdefs.h.  */
23787
23788 /* Override any GCC internal prototype to avoid an error.
23789    Use char because int might match the return type of a GCC
23790    builtin and then its argument prototype would still apply.  */
23791 #ifdef __cplusplus
23792 extern "C"
23793 #endif
23794 char pthread_setname_np ();
23795 int
23796 main ()
23797 {
23798 return pthread_setname_np ();
23799   ;
23800   return 0;
23801 }
23802 _ACEOF
23803 if ac_fn_c_try_link "$LINENO"; then :
23804
23805               has_pthread_setname_np=yes
23806
23807 $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
23808
23809
23810 else
23811
23812               has_pthread_setname_np=no
23813
23814 fi
23815 rm -f core conftest.err conftest.$ac_objext \
23816     conftest$ac_exeext conftest.$ac_ext
23817             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
23818 $as_echo "$has_pthread_setname_np" >&6; }
23819
23820             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
23821 $as_echo_n "checking for pthread_set_name_np... " >&6; }
23822             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23823 /* end confdefs.h.  */
23824
23825 /* Override any GCC internal prototype to avoid an error.
23826    Use char because int might match the return type of a GCC
23827    builtin and then its argument prototype would still apply.  */
23828 #ifdef __cplusplus
23829 extern "C"
23830 #endif
23831 char pthread_set_name_np ();
23832 int
23833 main ()
23834 {
23835 return pthread_set_name_np ();
23836   ;
23837   return 0;
23838 }
23839 _ACEOF
23840 if ac_fn_c_try_link "$LINENO"; then :
23841
23842               has_pthread_set_name_np=yes
23843
23844 $as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
23845
23846
23847 else
23848
23849               has_pthread_set_name_np=no
23850
23851 fi
23852 rm -f core conftest.err conftest.$ac_objext \
23853     conftest$ac_exeext conftest.$ac_ext
23854             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
23855 $as_echo "$has_pthread_set_name_np" >&6; }
23856
23857             # Restore the compiler flags and libraries
23858             CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
23859
23860             # Basic thread creation functions
23861             SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
23862
23863             # Semaphores
23864             # We can fake these with mutexes and condition variables if necessary
23865             if test x$have_pthread_sem = xyes; then
23866                 SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
23867             else
23868                 SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
23869             fi
23870
23871             # Mutexes
23872             # We can fake these with semaphores if necessary
23873             SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
23874
23875             # Condition variables
23876             # We can fake these with semaphores and mutexes if necessary
23877             SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
23878
23879             # Thread local storage
23880             SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
23881
23882             have_threads=yes
23883         fi
23884     fi
23885 }
23886
23887 CheckWINDOWS()
23888 {
23889     { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
23890 $as_echo_n "checking Windows compiler... " >&6; }
23891     have_win32_gcc=no
23892     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23893 /* end confdefs.h.  */
23894
23895      #include <windows.h>
23896
23897 int
23898 main ()
23899 {
23900
23901
23902   ;
23903   return 0;
23904 }
23905 _ACEOF
23906 if ac_fn_c_try_compile "$LINENO"; then :
23907
23908     have_win32_gcc=yes
23909
23910 fi
23911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23912     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
23913 $as_echo "$have_win32_gcc" >&6; }
23914     if test x$have_win32_gcc != xyes; then
23915        as_fn_error $? "
23916 *** Your compiler ($CC) does not produce Windows executables!
23917        " "$LINENO" 5
23918     fi
23919
23920     { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
23921 $as_echo_n "checking Windows CE... " >&6; }
23922     have_wince=no
23923     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23924 /* end confdefs.h.  */
23925
23926 #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
23927 #error This is not Windows CE
23928 #endif
23929
23930 int
23931 main ()
23932 {
23933
23934
23935   ;
23936   return 0;
23937 }
23938 _ACEOF
23939 if ac_fn_c_try_compile "$LINENO"; then :
23940
23941     have_wince=yes
23942        as_fn_error $? "
23943 *** Sorry, Windows CE is no longer supported.
23944        " "$LINENO" 5
23945
23946 fi
23947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23948     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
23949 $as_echo "$have_wince" >&6; }
23950
23951     # This fixes Windows stack alignment with newer GCC
23952     CheckStackBoundary
23953 }
23954
23955 CheckDIRECTX()
23956 {
23957     # Check whether --enable-directx was given.
23958 if test "${enable_directx+set}" = set; then :
23959   enableval=$enable_directx;
23960 else
23961   enable_directx=yes
23962 fi
23963
23964     if test x$enable_directx = xyes; then
23965         ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
23966 if test "x$ac_cv_header_d3d9_h" = xyes; then :
23967   have_d3d=yes
23968 fi
23969
23970
23971         ac_fn_c_check_header_mongrel "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
23972 if test "x$ac_cv_header_d3d11_1_h" = xyes; then :
23973   have_d3d11=yes
23974 fi
23975
23976
23977         ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
23978 if test "x$ac_cv_header_ddraw_h" = xyes; then :
23979   have_ddraw=yes
23980 fi
23981
23982
23983         ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
23984 if test "x$ac_cv_header_dsound_h" = xyes; then :
23985   have_dsound=yes
23986 fi
23987
23988
23989         ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
23990 if test "x$ac_cv_header_dinput_h" = xyes; then :
23991   have_dinput=yes
23992 fi
23993
23994
23995         ac_fn_c_check_header_mongrel "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
23996 if test "x$ac_cv_header_dxgi_h" = xyes; then :
23997   have_dxgi=yes
23998 fi
23999
24000
24001         ac_fn_c_check_header_mongrel "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
24002 if test "x$ac_cv_header_xinput_h" = xyes; then :
24003   have_xinput=yes
24004 fi
24005
24006
24007         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24008 /* end confdefs.h.  */
24009
24010 #include <windows.h>
24011 #include <xinput.h>
24012 XINPUT_GAMEPAD_EX x1;
24013
24014 int
24015 main ()
24016 {
24017
24018   ;
24019   return 0;
24020 }
24021 _ACEOF
24022 if ac_fn_c_try_compile "$LINENO"; then :
24023   have_xinput_gamepadex=yes
24024 fi
24025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24026         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24027 /* end confdefs.h.  */
24028
24029 #include <windows.h>
24030 #include <xinput.h>
24031 XINPUT_STATE_EX s1;
24032
24033 int
24034 main ()
24035 {
24036
24037   ;
24038   return 0;
24039 }
24040 _ACEOF
24041 if ac_fn_c_try_compile "$LINENO"; then :
24042   have_xinput_stateex=yes
24043 fi
24044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24045
24046         if test x$have_ddraw = xyes; then
24047
24048 $as_echo "#define HAVE_DDRAW_H 1" >>confdefs.h
24049
24050         fi
24051         if test x$have_dinput = xyes; then
24052
24053 $as_echo "#define HAVE_DINPUT_H 1" >>confdefs.h
24054
24055         fi
24056         if test x$have_dsound = xyes; then
24057
24058 $as_echo "#define HAVE_DSOUND_H 1" >>confdefs.h
24059
24060         fi
24061         if test x$have_dxgi = xyes; then
24062
24063 $as_echo "#define HAVE_DXGI_H 1" >>confdefs.h
24064
24065         fi
24066         if test x$have_xinput = xyes; then
24067
24068 $as_echo "#define HAVE_XINPUT_H 1" >>confdefs.h
24069
24070         fi
24071         if test x$have_xinput_gamepadex = xyes; then
24072
24073 $as_echo "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
24074
24075         fi
24076         if test x$have_xinput_stateex = xyes; then
24077
24078 $as_echo "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
24079
24080         fi
24081
24082         # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
24083         # FIXME:  ...so force it off for now.
24084         case "$host" in
24085             *-*-cygwin*)
24086             have_dinput=false
24087             ;;
24088         esac
24089     fi
24090
24091     ac_fn_c_check_header_mongrel "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
24092 if test "x$ac_cv_header_mmdeviceapi_h" = xyes; then :
24093   have_wasapi=yes
24094 fi
24095
24096
24097     if test x$have_wasapi = xyes; then
24098
24099 $as_echo "#define HAVE_MMDEVICEAPI_H 1" >>confdefs.h
24100
24101     fi
24102     ac_fn_c_check_header_mongrel "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
24103 if test "x$ac_cv_header_audioclient_h" = xyes; then :
24104
24105 else
24106   have_wasapi=no
24107 fi
24108
24109
24110     if test x$have_wasapi = xyes; then
24111
24112 $as_echo "#define HAVE_AUDIOCLIENT_H 1" >>confdefs.h
24113
24114     fi
24115
24116     # Check whether --enable-wasapi was given.
24117 if test "${enable_wasapi+set}" = set; then :
24118   enableval=$enable_wasapi;
24119 else
24120   enable_wasapi=yes
24121 fi
24122
24123 }
24124
24125 CheckDLOPEN()
24126 {
24127     # Check whether --enable-sdl-dlopen was given.
24128 if test "${enable_sdl_dlopen+set}" = set; then :
24129   enableval=$enable_sdl_dlopen;
24130 else
24131   enable_sdl_dlopen=yes
24132 fi
24133
24134     if test x$enable_sdl_dlopen = xyes; then
24135         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
24136 $as_echo_n "checking for dlopen... " >&6; }
24137         have_dlopen=no
24138         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24139 /* end confdefs.h.  */
24140
24141          #include <dlfcn.h>
24142
24143 int
24144 main ()
24145 {
24146
24147          void *handle = dlopen("", RTLD_NOW);
24148          const char *loaderror = (char *) dlerror();
24149
24150   ;
24151   return 0;
24152 }
24153 _ACEOF
24154 if ac_fn_c_try_compile "$LINENO"; then :
24155
24156         have_dlopen=yes
24157
24158 fi
24159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24160         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
24161 $as_echo "$have_dlopen" >&6; }
24162
24163         if test x$have_dlopen = xyes; then
24164             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
24165 $as_echo_n "checking for dlopen in -lc... " >&6; }
24166 if ${ac_cv_lib_c_dlopen+:} false; then :
24167   $as_echo_n "(cached) " >&6
24168 else
24169   ac_check_lib_save_LIBS=$LIBS
24170 LIBS="-lc  $LIBS"
24171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24172 /* end confdefs.h.  */
24173
24174 /* Override any GCC internal prototype to avoid an error.
24175    Use char because int might match the return type of a GCC
24176    builtin and then its argument prototype would still apply.  */
24177 #ifdef __cplusplus
24178 extern "C"
24179 #endif
24180 char dlopen ();
24181 int
24182 main ()
24183 {
24184 return dlopen ();
24185   ;
24186   return 0;
24187 }
24188 _ACEOF
24189 if ac_fn_c_try_link "$LINENO"; then :
24190   ac_cv_lib_c_dlopen=yes
24191 else
24192   ac_cv_lib_c_dlopen=no
24193 fi
24194 rm -f core conftest.err conftest.$ac_objext \
24195     conftest$ac_exeext conftest.$ac_ext
24196 LIBS=$ac_check_lib_save_LIBS
24197 fi
24198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
24199 $as_echo "$ac_cv_lib_c_dlopen" >&6; }
24200 if test "x$ac_cv_lib_c_dlopen" = xyes; then :
24201   EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
24202 else
24203   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
24204 $as_echo_n "checking for dlopen in -ldl... " >&6; }
24205 if ${ac_cv_lib_dl_dlopen+:} false; then :
24206   $as_echo_n "(cached) " >&6
24207 else
24208   ac_check_lib_save_LIBS=$LIBS
24209 LIBS="-ldl  $LIBS"
24210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24211 /* end confdefs.h.  */
24212
24213 /* Override any GCC internal prototype to avoid an error.
24214    Use char because int might match the return type of a GCC
24215    builtin and then its argument prototype would still apply.  */
24216 #ifdef __cplusplus
24217 extern "C"
24218 #endif
24219 char dlopen ();
24220 int
24221 main ()
24222 {
24223 return dlopen ();
24224   ;
24225   return 0;
24226 }
24227 _ACEOF
24228 if ac_fn_c_try_link "$LINENO"; then :
24229   ac_cv_lib_dl_dlopen=yes
24230 else
24231   ac_cv_lib_dl_dlopen=no
24232 fi
24233 rm -f core conftest.err conftest.$ac_objext \
24234     conftest$ac_exeext conftest.$ac_ext
24235 LIBS=$ac_check_lib_save_LIBS
24236 fi
24237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
24238 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
24239 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
24240   EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
24241 else
24242   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lltdl" >&5
24243 $as_echo_n "checking for dlopen in -lltdl... " >&6; }
24244 if ${ac_cv_lib_ltdl_dlopen+:} false; then :
24245   $as_echo_n "(cached) " >&6
24246 else
24247   ac_check_lib_save_LIBS=$LIBS
24248 LIBS="-lltdl  $LIBS"
24249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24250 /* end confdefs.h.  */
24251
24252 /* Override any GCC internal prototype to avoid an error.
24253    Use char because int might match the return type of a GCC
24254    builtin and then its argument prototype would still apply.  */
24255 #ifdef __cplusplus
24256 extern "C"
24257 #endif
24258 char dlopen ();
24259 int
24260 main ()
24261 {
24262 return dlopen ();
24263   ;
24264   return 0;
24265 }
24266 _ACEOF
24267 if ac_fn_c_try_link "$LINENO"; then :
24268   ac_cv_lib_ltdl_dlopen=yes
24269 else
24270   ac_cv_lib_ltdl_dlopen=no
24271 fi
24272 rm -f core conftest.err conftest.$ac_objext \
24273     conftest$ac_exeext conftest.$ac_ext
24274 LIBS=$ac_check_lib_save_LIBS
24275 fi
24276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_dlopen" >&5
24277 $as_echo "$ac_cv_lib_ltdl_dlopen" >&6; }
24278 if test "x$ac_cv_lib_ltdl_dlopen" = xyes; then :
24279   EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lltdl"
24280 fi
24281
24282 fi
24283
24284 fi
24285
24286
24287 $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
24288
24289             SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
24290             have_loadso=yes
24291         fi
24292     fi
24293 }
24294
24295 CheckUSBHID()
24296 {
24297     case "$host" in
24298         *-*-*bsd*|*-*-dragonfly*)
24299             if test x$enable_joystick = xyes; then
24300                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
24301 $as_echo_n "checking for hid_init in -lusbhid... " >&6; }
24302 if ${ac_cv_lib_usbhid_hid_init+:} false; then :
24303   $as_echo_n "(cached) " >&6
24304 else
24305   ac_check_lib_save_LIBS=$LIBS
24306 LIBS="-lusbhid  $LIBS"
24307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24308 /* end confdefs.h.  */
24309
24310 /* Override any GCC internal prototype to avoid an error.
24311    Use char because int might match the return type of a GCC
24312    builtin and then its argument prototype would still apply.  */
24313 #ifdef __cplusplus
24314 extern "C"
24315 #endif
24316 char hid_init ();
24317 int
24318 main ()
24319 {
24320 return hid_init ();
24321   ;
24322   return 0;
24323 }
24324 _ACEOF
24325 if ac_fn_c_try_link "$LINENO"; then :
24326   ac_cv_lib_usbhid_hid_init=yes
24327 else
24328   ac_cv_lib_usbhid_hid_init=no
24329 fi
24330 rm -f core conftest.err conftest.$ac_objext \
24331     conftest$ac_exeext conftest.$ac_ext
24332 LIBS=$ac_check_lib_save_LIBS
24333 fi
24334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
24335 $as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
24336 if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then :
24337   have_libusbhid=yes
24338 fi
24339
24340                 if test x$have_libusbhid = xyes; then
24341                     ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
24342 if test "x$ac_cv_header_usbhid_h" = xyes; then :
24343   USB_CFLAGS="-DHAVE_USBHID_H"
24344 fi
24345
24346
24347                     ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
24348 if test "x$ac_cv_header_libusbhid_h" = xyes; then :
24349   USB_CFLAGS="-DHAVE_LIBUSBHID_H"
24350 fi
24351
24352
24353                     USB_LIBS="$USB_LIBS -lusbhid"
24354                 else
24355                     ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
24356 if test "x$ac_cv_header_usb_h" = xyes; then :
24357   USB_CFLAGS="-DHAVE_USB_H"
24358 fi
24359
24360
24361                     ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
24362 if test "x$ac_cv_header_libusb_h" = xyes; then :
24363   USB_CFLAGS="-DHAVE_LIBUSB_H"
24364 fi
24365
24366
24367                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
24368 $as_echo_n "checking for hid_init in -lusb... " >&6; }
24369 if ${ac_cv_lib_usb_hid_init+:} false; then :
24370   $as_echo_n "(cached) " >&6
24371 else
24372   ac_check_lib_save_LIBS=$LIBS
24373 LIBS="-lusb  $LIBS"
24374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24375 /* end confdefs.h.  */
24376
24377 /* Override any GCC internal prototype to avoid an error.
24378    Use char because int might match the return type of a GCC
24379    builtin and then its argument prototype would still apply.  */
24380 #ifdef __cplusplus
24381 extern "C"
24382 #endif
24383 char hid_init ();
24384 int
24385 main ()
24386 {
24387 return hid_init ();
24388   ;
24389   return 0;
24390 }
24391 _ACEOF
24392 if ac_fn_c_try_link "$LINENO"; then :
24393   ac_cv_lib_usb_hid_init=yes
24394 else
24395   ac_cv_lib_usb_hid_init=no
24396 fi
24397 rm -f core conftest.err conftest.$ac_objext \
24398     conftest$ac_exeext conftest.$ac_ext
24399 LIBS=$ac_check_lib_save_LIBS
24400 fi
24401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
24402 $as_echo "$ac_cv_lib_usb_hid_init" >&6; }
24403 if test "x$ac_cv_lib_usb_hid_init" = xyes; then :
24404   USB_LIBS="$USB_LIBS -lusb"
24405 fi
24406
24407                 fi
24408
24409                 save_CFLAGS="$CFLAGS"
24410                 CFLAGS="$CFLAGS $USB_CFLAGS"
24411
24412                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
24413 $as_echo_n "checking for usbhid... " >&6; }
24414                 have_usbhid=no
24415                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24416 /* end confdefs.h.  */
24417
24418                   #include <sys/types.h>
24419                   #if defined(HAVE_USB_H)
24420                   #include <usb.h>
24421                   #endif
24422                   #ifdef __DragonFly__
24423                   # include <bus/u4b/usb.h>
24424                   # include <bus/u4b/usbhid.h>
24425                   #else
24426                   # include <dev/usb/usb.h>
24427                   # include <dev/usb/usbhid.h>
24428                   #endif
24429                   #if defined(HAVE_USBHID_H)
24430                   #include <usbhid.h>
24431                   #elif defined(HAVE_LIBUSB_H)
24432                   #include <libusb.h>
24433                   #elif defined(HAVE_LIBUSBHID_H)
24434                   #include <libusbhid.h>
24435                   #endif
24436
24437 int
24438 main ()
24439 {
24440
24441                   struct report_desc *repdesc;
24442                   struct usb_ctl_report *repbuf;
24443                   hid_kind_t hidkind;
24444
24445   ;
24446   return 0;
24447 }
24448 _ACEOF
24449 if ac_fn_c_try_compile "$LINENO"; then :
24450
24451                 have_usbhid=yes
24452
24453 fi
24454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24455                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
24456 $as_echo "$have_usbhid" >&6; }
24457
24458                 if test x$have_usbhid = xyes; then
24459                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
24460 $as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
24461                     have_usbhid_ucr_data=no
24462                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24463 /* end confdefs.h.  */
24464
24465                       #include <sys/types.h>
24466                       #if defined(HAVE_USB_H)
24467                       #include <usb.h>
24468                       #endif
24469                       #ifdef __DragonFly__
24470                       # include <bus/u4b/usb.h>
24471                       # include <bus/u4b/usbhid.h>
24472                       #else
24473                       # include <dev/usb/usb.h>
24474                       # include <dev/usb/usbhid.h>
24475                       #endif
24476                       #if defined(HAVE_USBHID_H)
24477                       #include <usbhid.h>
24478                       #elif defined(HAVE_LIBUSB_H)
24479                       #include <libusb.h>
24480                       #elif defined(HAVE_LIBUSBHID_H)
24481                       #include <libusbhid.h>
24482                       #endif
24483
24484 int
24485 main ()
24486 {
24487
24488                       struct usb_ctl_report buf;
24489                       if (buf.ucr_data) { }
24490
24491   ;
24492   return 0;
24493 }
24494 _ACEOF
24495 if ac_fn_c_try_compile "$LINENO"; then :
24496
24497                     have_usbhid_ucr_data=yes
24498
24499 fi
24500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24501                     if test x$have_usbhid_ucr_data = xyes; then
24502                         USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
24503                     fi
24504                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
24505 $as_echo "$have_usbhid_ucr_data" >&6; }
24506
24507                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
24508 $as_echo_n "checking for new usbhid API... " >&6; }
24509                     have_usbhid_new=no
24510                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24511 /* end confdefs.h.  */
24512
24513                       #include <sys/types.h>
24514                       #if defined(HAVE_USB_H)
24515                       #include <usb.h>
24516                       #endif
24517                       #ifdef __DragonFly__
24518                       #include <bus/u4b/usb.h>
24519                       #include <bus/u4b/usbhid.h>
24520                       #else
24521                       #include <dev/usb/usb.h>
24522                       #include <dev/usb/usbhid.h>
24523                       #endif
24524                       #if defined(HAVE_USBHID_H)
24525                       #include <usbhid.h>
24526                       #elif defined(HAVE_LIBUSB_H)
24527                       #include <libusb.h>
24528                       #elif defined(HAVE_LIBUSBHID_H)
24529                       #include <libusbhid.h>
24530                       #endif
24531
24532 int
24533 main ()
24534 {
24535
24536                       report_desc_t d;
24537                       hid_start_parse(d, 1, 1);
24538
24539   ;
24540   return 0;
24541 }
24542 _ACEOF
24543 if ac_fn_c_try_compile "$LINENO"; then :
24544
24545                     have_usbhid_new=yes
24546
24547 fi
24548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24549                     if test x$have_usbhid_new = xyes; then
24550                         USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
24551                     fi
24552                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
24553 $as_echo "$have_usbhid_new" >&6; }
24554
24555                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
24556 $as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; }
24557                     have_machine_joystick=no
24558                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24559 /* end confdefs.h.  */
24560
24561                       #include <machine/joystick.h>
24562
24563 int
24564 main ()
24565 {
24566
24567                       struct joystick t;
24568
24569   ;
24570   return 0;
24571 }
24572 _ACEOF
24573 if ac_fn_c_try_compile "$LINENO"; then :
24574
24575                     have_machine_joystick=yes
24576
24577 fi
24578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24579                     if test x$have_machine_joystick = xyes; then
24580
24581 $as_echo "#define SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H 1" >>confdefs.h
24582
24583                     fi
24584                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
24585 $as_echo "$have_machine_joystick" >&6; }
24586
24587
24588 $as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
24589
24590                     SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
24591                     EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
24592                     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
24593                     have_joystick=yes
24594                 fi
24595                 CFLAGS="$save_CFLAGS"
24596             fi
24597         ;;
24598     esac
24599 }
24600
24601 CheckHIDAPI()
24602 {
24603     # Check whether --enable-hidapi was given.
24604 if test "${enable_hidapi+set}" = set; then :
24605   enableval=$enable_hidapi;
24606 else
24607   enable_hidapi=yes
24608 fi
24609
24610     # Check whether --enable-hidapi-libusb was given.
24611 if test "${enable_hidapi_libusb+set}" = set; then :
24612   enableval=$enable_hidapi_libusb;
24613 else
24614   enable_hidapi_libusb=maybe
24615 fi
24616
24617
24618     if test x$enable_joystick = xyes -a x$enable_hidapi = xyes; then
24619         case "$host" in
24620             # libusb does not support iOS
24621             *-ios-* )
24622                 enable_hidapi_libusb=no
24623                 ;;
24624             # On the other hand, *BSD specifically uses libusb only
24625             *-*-*bsd* )
24626                 enable_hidapi_libusb=yes
24627                 require_hidapi_libusb=yes
24628                 ;;
24629             # RAWINPUT is only available on Win32, but can be enabled if HIDAPI is
24630             *-*-cygwin* | *-*-mingw32*)
24631                 enable_joystick_rawinput=yes
24632                 ;;
24633         esac
24634
24635         hidapi_support=yes
24636         if test x$enable_hidapi_libusb = xyes; then
24637
24638 pkg_failed=no
24639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUSB" >&5
24640 $as_echo_n "checking for LIBUSB... " >&6; }
24641
24642 if test -n "$LIBUSB_CFLAGS"; then
24643     pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
24644  elif test -n "$PKG_CONFIG"; then
24645     if test -n "$PKG_CONFIG" && \
24646     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
24647   ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
24648   ac_status=$?
24649   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24650   test $ac_status = 0; }; then
24651   pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
24652 else
24653   pkg_failed=yes
24654 fi
24655  else
24656     pkg_failed=untried
24657 fi
24658 if test -n "$LIBUSB_LIBS"; then
24659     pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
24660  elif test -n "$PKG_CONFIG"; then
24661     if test -n "$PKG_CONFIG" && \
24662     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
24663   ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
24664   ac_status=$?
24665   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24666   test $ac_status = 0; }; then
24667   pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
24668 else
24669   pkg_failed=yes
24670 fi
24671  else
24672     pkg_failed=untried
24673 fi
24674
24675
24676
24677 if test $pkg_failed = yes; then
24678         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24679 $as_echo "no" >&6; }
24680
24681 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24682         _pkg_short_errors_supported=yes
24683 else
24684         _pkg_short_errors_supported=no
24685 fi
24686         if test $_pkg_short_errors_supported = yes; then
24687                 LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libusb-1.0" 2>&1`
24688         else
24689                 LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libusb-1.0" 2>&1`
24690         fi
24691         # Put the nasty error message in config.log where it belongs
24692         echo "$LIBUSB_PKG_ERRORS" >&5
24693
24694         have_libusb=no
24695 elif test $pkg_failed = untried; then
24696         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24697 $as_echo "no" >&6; }
24698         have_libusb=no
24699 else
24700         LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
24701         LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
24702         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24703 $as_echo "yes" >&6; }
24704         have_libusb=yes
24705 fi
24706             save_CFLAGS="$CFLAGS"
24707             CFLAGS="$save_CFLAGS $LIBUSB_CFLAGS"
24708             ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
24709 if test "x$ac_cv_header_libusb_h" = xyes; then :
24710   have_libusb_h=yes
24711 fi
24712
24713
24714             CFLAGS="$save_CFLAGS"
24715             if test x$have_libusb_h = xno && test x$require_hidapi_libusb = xyes; then
24716                 hidapi_support=no
24717             fi
24718         fi
24719
24720         if test x$hidapi_support = xyes; then
24721
24722 $as_echo "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
24723
24724             if test x$enable_joystick_rawinput = xyes; then
24725
24726 $as_echo "#define SDL_JOYSTICK_RAWINPUT 1" >>confdefs.h
24727
24728             fi
24729             EXTRA_CFLAGS="$EXTRA_CFLAGS -I$srcdir/src/hidapi/hidapi"
24730             SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
24731             SOURCES="$SOURCES $srcdir/src/hidapi/SDL_hidapi.c"
24732
24733             if test x$have_libusb_h = xyes; then
24734                 EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
24735                 if test x$require_hidapi_libusb = xyes; then
24736                     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"
24737                 else
24738                     if test x$have_loadso != xyes; then
24739                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&5
24740 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&2;}
24741                     fi
24742                     # libusb is loaded dynamically, so don't add it to LDFLAGS
24743                     libusb_lib=""
24744                     case "$host" in
24745                         *-*-darwin* )
24746                             libusb_lib="libusb-1.0.0.dylib"
24747                             ;;
24748                         *-*-cygwin* | *-*-mingw32* )
24749                             libusb_lib="libusb-1.0.dll"
24750                             ;;
24751                     esac
24752                     if test x$libusb_lib = x; then
24753                         libusb_lib=`find_lib "libusb-1.0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
24754                     fi
24755
24756 cat >>confdefs.h <<_ACEOF
24757 #define SDL_LIBUSB_DYNAMIC "$libusb_lib"
24758 _ACEOF
24759
24760                 fi
24761             fi
24762         fi
24763
24764         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hidapi support" >&5
24765 $as_echo_n "checking for hidapi support... " >&6; }
24766         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
24767 $as_echo "$hidapi_support" >&6; }
24768     fi
24769 }
24770
24771 CheckClockGettime()
24772 {
24773     # Check whether --enable-clock_gettime was given.
24774 if test "${enable_clock_gettime+set}" = set; then :
24775   enableval=$enable_clock_gettime;
24776 else
24777   enable_clock_gettime=yes
24778 fi
24779
24780     if test x$enable_clock_gettime = xyes; then
24781         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
24782 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
24783 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
24784   $as_echo_n "(cached) " >&6
24785 else
24786   ac_check_lib_save_LIBS=$LIBS
24787 LIBS="-lrt  $LIBS"
24788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24789 /* end confdefs.h.  */
24790
24791 /* Override any GCC internal prototype to avoid an error.
24792    Use char because int might match the return type of a GCC
24793    builtin and then its argument prototype would still apply.  */
24794 #ifdef __cplusplus
24795 extern "C"
24796 #endif
24797 char clock_gettime ();
24798 int
24799 main ()
24800 {
24801 return clock_gettime ();
24802   ;
24803   return 0;
24804 }
24805 _ACEOF
24806 if ac_fn_c_try_link "$LINENO"; then :
24807   ac_cv_lib_rt_clock_gettime=yes
24808 else
24809   ac_cv_lib_rt_clock_gettime=no
24810 fi
24811 rm -f core conftest.err conftest.$ac_objext \
24812     conftest$ac_exeext conftest.$ac_ext
24813 LIBS=$ac_check_lib_save_LIBS
24814 fi
24815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
24816 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
24817 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
24818   have_clock_gettime=yes
24819 fi
24820
24821         if test x$have_clock_gettime = xyes; then
24822
24823 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
24824
24825             EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
24826         else
24827             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
24828 $as_echo_n "checking for clock_gettime in -lc... " >&6; }
24829 if ${ac_cv_lib_c_clock_gettime+:} false; then :
24830   $as_echo_n "(cached) " >&6
24831 else
24832   ac_check_lib_save_LIBS=$LIBS
24833 LIBS="-lc  $LIBS"
24834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24835 /* end confdefs.h.  */
24836
24837 /* Override any GCC internal prototype to avoid an error.
24838    Use char because int might match the return type of a GCC
24839    builtin and then its argument prototype would still apply.  */
24840 #ifdef __cplusplus
24841 extern "C"
24842 #endif
24843 char clock_gettime ();
24844 int
24845 main ()
24846 {
24847 return clock_gettime ();
24848   ;
24849   return 0;
24850 }
24851 _ACEOF
24852 if ac_fn_c_try_link "$LINENO"; then :
24853   ac_cv_lib_c_clock_gettime=yes
24854 else
24855   ac_cv_lib_c_clock_gettime=no
24856 fi
24857 rm -f core conftest.err conftest.$ac_objext \
24858     conftest$ac_exeext conftest.$ac_ext
24859 LIBS=$ac_check_lib_save_LIBS
24860 fi
24861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
24862 $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
24863 if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
24864   have_clock_gettime=yes
24865 fi
24866
24867             if test x$have_clock_gettime = xyes; then
24868
24869 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
24870
24871                EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
24872             fi
24873         fi
24874     fi
24875 }
24876
24877 CheckLinuxVersion()
24878 {
24879     ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
24880 if test "x$ac_cv_header_linux_version_h" = xyes; then :
24881   have_linux_version_h=yes
24882 fi
24883
24884
24885     if test x$have_linux_version_h = xyes; then
24886         EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
24887     fi
24888 }
24889
24890 CheckRPATH()
24891 {
24892     # Check whether --enable-rpath was given.
24893 if test "${enable_rpath+set}" = set; then :
24894   enableval=$enable_rpath;
24895 else
24896   enable_rpath=yes
24897 fi
24898
24899 }
24900
24901 CheckEventSignals()
24902 {
24903     # Check whether --enable-backgrounding-signal was given.
24904 if test "${enable_backgrounding_signal+set}" = set; then :
24905   enableval=$enable_backgrounding_signal;
24906 else
24907   enable_backgrounding_signal=no
24908 fi
24909
24910     if test x$enable_backgrounding_signal != xno; then
24911         EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BACKGROUNDING_SIGNAL=$enable_backgrounding_signal"
24912     fi
24913
24914     # Check whether --enable-foregrounding-signal was given.
24915 if test "${enable_foregrounding_signal+set}" = set; then :
24916   enableval=$enable_foregrounding_signal;
24917 else
24918   enable_foregrounding_signal=no
24919 fi
24920
24921     if test x$enable_foregrounding_signal != xno; then
24922         EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_FOREGROUNDING_SIGNAL=$enable_foregrounding_signal"
24923     fi
24924 }
24925
24926 CheckVirtualJoystick()
24927 {
24928     # Check whether --enable-joystick-virtual was given.
24929 if test "${enable_joystick_virtual+set}" = set; then :
24930   enableval=$enable_joystick_virtual;
24931 else
24932   enable_joystick_virtual=yes
24933 fi
24934
24935     if test x$enable_joystick = xyes -a x$enable_joystick_virtual = xyes; then
24936
24937 $as_echo "#define SDL_JOYSTICK_VIRTUAL 1" >>confdefs.h
24938
24939         SOURCES="$SOURCES $srcdir/src/joystick/virtual/*.c"
24940         have_joystick_virtual=yes
24941     fi
24942 }
24943
24944 CheckWarnAll
24945 CheckNoStrictAliasing
24946
24947 CheckEventSignals
24948
24949 have_locale=no
24950
24951 case "$host" in
24952     *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
24953         case "$host" in
24954             *-*-android*)
24955                 # Android
24956                 ARCH=android
24957                 ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
24958                 CFLAGS="$CFLAGS $ANDROID_CFLAGS"
24959                 SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
24960                 EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
24961                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
24962                 SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
24963                 if test x$enable_video = xyes; then
24964                     SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
24965
24966 $as_echo "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
24967
24968                     SUMMARY_video="${SUMMARY_video} android"
24969                 fi
24970                 ;;
24971             *-*-linux*)         ARCH=linux ;;
24972             *-*-uclinux*)       ARCH=linux ;;
24973             *-*-kfreebsd*-gnu)  ARCH=kfreebsd-gnu ;;
24974             *-*-knetbsd*-gnu)   ARCH=knetbsd-gnu ;;
24975             *-*-kopenbsd*-gnu)  ARCH=kopenbsd-gnu ;;
24976             *-*-gnu*)           ARCH=gnu ;; # must be last of the gnu variants
24977             *-*-bsdi*)          ARCH=bsdi ;;
24978             *-*-freebsd*)       ARCH=freebsd ;;
24979             *-*-dragonfly*)     ARCH=freebsd ;;
24980             *-*-netbsd*)        ARCH=netbsd ;;
24981             *-*-openbsd*)       ARCH=openbsd ;;
24982             *-*-sysv5*)         ARCH=sysv5 ;;
24983             *-*-solaris*)       ARCH=solaris ;;
24984             *-*-hpux*)          ARCH=hpux ;;
24985             *-*-aix*)           ARCH=aix ;;
24986             *-*-minix*)         ARCH=minix ;;
24987             *-*-nto*)           ARCH=nto
24988                 CheckQNXVideo
24989                 ;;
24990         esac
24991         CheckVisibilityHidden
24992         #CheckDeclarationAfterStatement
24993         CheckDummyVideo
24994         CheckDiskAudio
24995         CheckDummyAudio
24996         CheckDLOPEN
24997         CheckARM
24998         CheckNEON
24999         CheckOSS
25000         CheckALSA
25001         CheckPulseAudio
25002         CheckJACK
25003         CheckARTSC
25004         CheckESD
25005         CheckNAS
25006         CheckSNDIO
25007         CheckFusionSound
25008         CheckLibSampleRate
25009         # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
25010         CheckRPI
25011         CheckX11
25012         CheckDirectFB
25013         CheckKMSDRM
25014         CheckOpenGLX11
25015         CheckOpenGLESX11
25016         CheckVulkan
25017         CheckWayland
25018         CheckTizen
25019         CheckLibUDev
25020         CheckDBus
25021         CheckIME
25022         CheckInotify
25023         CheckIBus
25024         CheckFcitx
25025         case $ARCH in
25026           linux)
25027               CheckInputKD
25028           ;;
25029           freebsd)
25030               CheckInputKBIO
25031           ;;
25032         esac
25033         CheckUSBHID
25034         CheckHIDAPI
25035         CheckPTHREAD
25036         CheckClockGettime
25037         CheckLinuxVersion
25038         CheckRPATH
25039         CheckVivanteVideo
25040
25041         SOURCES="$SOURCES $srcdir/src/misc/unix/*.c"
25042         have_misc=yes
25043
25044         SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
25045         have_locale=yes
25046
25047         # Set up files for the audio library
25048         if test x$enable_audio = xyes; then
25049           case $ARCH in
25050             sysv5|solaris|hpux)
25051
25052 $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
25053
25054                 SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
25055                 SUMMARY_audio="${SUMMARY_audio} sun"
25056                 have_audio=yes
25057             ;;
25058             netbsd)  # Don't use this on OpenBSD, it's busted.
25059
25060 $as_echo "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
25061
25062                 SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
25063                 SUMMARY_audio="${SUMMARY_audio} netbsd"
25064                 have_audio=yes
25065             ;;
25066             aix)
25067
25068 $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
25069
25070                 SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
25071                 SUMMARY_audio="${SUMMARY_audio} paudio"
25072                 have_audio=yes
25073             ;;
25074             android)
25075
25076 $as_echo "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
25077
25078                 SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
25079                 SUMMARY_audio="${SUMMARY_audio} android"
25080                 have_audio=yes
25081             ;;
25082             nto)
25083                 CheckQNXAudio
25084             ;;
25085           esac
25086         fi
25087         # Set up files for the joystick library
25088         if test x$have_joystick != xyes; then
25089             if test x$enable_joystick = xyes; then
25090               case $ARCH in
25091                 linux)
25092
25093 $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
25094
25095
25096
25097                 SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
25098                 SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
25099                 have_joystick=yes
25100             ;;
25101             freebsd)
25102                 if test x$use_input_events = xyes; then
25103
25104 $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
25105
25106                     SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
25107                     SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
25108                     have_joystick=yes
25109                 fi
25110             ;;
25111             android)
25112
25113 $as_echo "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
25114
25115                 SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
25116                 SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
25117                 have_joystick=yes
25118             ;;
25119           esac
25120             fi
25121         fi
25122         # Set up files for the haptic library
25123         if test x$enable_haptic = xyes; then
25124           case $ARCH in
25125             linux|freebsd)
25126                 if test x$use_input_events = xyes; then
25127
25128 $as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
25129
25130                     SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
25131                     have_haptic=yes
25132                 fi
25133             ;;
25134             android)
25135
25136 $as_echo "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
25137
25138                 SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
25139                 have_haptic=yes
25140             ;;
25141           esac
25142         fi
25143         # Set up files for the sensor library
25144         if test x$enable_sensor = xyes; then
25145           case $ARCH in
25146             android)
25147
25148 $as_echo "#define SDL_SENSOR_ANDROID 1" >>confdefs.h
25149
25150                 SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
25151                 have_sensor=yes
25152             ;;
25153           esac
25154         fi
25155         # Set up files for the power library
25156         if test x$enable_power = xyes; then
25157              case $ARCH in
25158                linux)
25159
25160 $as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h
25161
25162                    SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
25163                    have_power=yes
25164                ;;
25165                android)
25166
25167 $as_echo "#define SDL_POWER_ANDROID 1" >>confdefs.h
25168
25169                    SOURCES="$SOURCES $srcdir/src/power/android/*.c"
25170                    have_power=yes
25171                ;;
25172              esac
25173         fi
25174         # Set up files for the filesystem library
25175         if test x$enable_filesystem = xyes; then
25176              case $ARCH in
25177                android)
25178
25179 $as_echo "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
25180
25181                    SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
25182                    have_filesystem=yes
25183                ;;
25184                *)
25185
25186 $as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
25187
25188                    SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
25189                    have_filesystem=yes
25190                ;;
25191              esac
25192         fi
25193         # Set up files for the timer library
25194         if test x$enable_timers = xyes; then
25195
25196 $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
25197
25198             SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
25199             have_timers=yes
25200         fi
25201         # Set up files for udev hotplugging support
25202         if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
25203             SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
25204         fi
25205         # Set up files for evdev input
25206         if test x$use_input_events = xyes; then
25207             SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
25208             SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_kbd.c"
25209             SOURCES="$SOURCES $srcdir/src/core/freebsd/SDL_evdev_kbd_freebsd.c"
25210         fi
25211         # Set up other core UNIX files
25212         SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_capabilities.c"
25213         SOURCES="$SOURCES $srcdir/src/core/linux/SDL_threadprio.c"
25214         SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
25215         ;;
25216     *-*-cygwin* | *-*-mingw32*)
25217         ARCH=win32
25218         if test "$build" != "$host"; then # cross-compiling
25219             # Default cross-compile location
25220             ac_default_prefix=/usr/local/cross-tools/$host
25221         else
25222             # Look for the location of the tools and install there
25223             if test "$BUILD_PREFIX" != ""; then
25224                 ac_default_prefix=$BUILD_PREFIX
25225             fi
25226         fi
25227         #CheckDeclarationAfterStatement
25228         CheckDummyVideo
25229         CheckDiskAudio
25230         CheckDummyAudio
25231         CheckWINDOWS
25232         CheckWINDOWSGL
25233         CheckWINDOWSGLES
25234         CheckVulkan
25235         CheckDIRECTX
25236         CheckHIDAPI
25237
25238         # Set up the core platform files
25239         SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
25240
25241         SOURCES="$SOURCES $srcdir/src/misc/windows/*.c"
25242         have_misc=yes
25243
25244         # Use the Windows locale APIs.
25245         SOURCES="$SOURCES $srcdir/src/locale/windows/*.c"
25246         have_locale=yes
25247
25248         # Set up files for the video library
25249         if test x$enable_video = xyes; then
25250
25251 $as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
25252
25253             SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
25254             have_video=yes
25255             # Check whether --enable-render-d3d was given.
25256 if test "${enable_render_d3d+set}" = set; then :
25257   enableval=$enable_render_d3d;
25258 else
25259   enable_render_d3d=yes
25260 fi
25261
25262             if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
25263
25264 $as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
25265
25266                 SUMMARY_video="${SUMMARY_video} d3d9"
25267             fi
25268             if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
25269
25270 $as_echo "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
25271
25272                 SUMMARY_video="${SUMMARY_video} d3d11"
25273             fi
25274         fi
25275         # Set up files for the audio library
25276         if test x$enable_audio = xyes; then
25277
25278 $as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
25279
25280             SUMMARY_audio="${SUMMARY_audio} winmm"
25281             SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
25282             if test x$have_dsound = xyes; then
25283
25284 $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
25285
25286                 SUMMARY_audio="${SUMMARY_audio} directsound"
25287                 SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
25288             fi
25289             if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then
25290
25291 $as_echo "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
25292
25293                 SUMMARY_audio="${SUMMARY_audio} wasapi"
25294                 SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
25295             fi
25296             have_audio=yes
25297         fi
25298         # Set up files for the joystick library
25299         if test x$enable_joystick = xyes; then
25300             if test x$have_dinput = xyes -o x$have_xinput = xyes; then
25301                 if test x$have_xinput = xyes; then
25302
25303 $as_echo "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
25304
25305                 fi
25306                 if test x$have_dinput = xyes; then
25307
25308 $as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
25309
25310                     EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
25311                 fi
25312             else
25313
25314 $as_echo "#define SDL_JOYSTICK_WINMM 1" >>confdefs.h
25315
25316             fi
25317             SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
25318             have_joystick=yes
25319         fi
25320         if test x$enable_haptic = xyes; then
25321             if test x$have_dinput = xyes -o x$have_xinput = xyes; then
25322                 if test x$have_xinput = xyes; then
25323
25324 $as_echo "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
25325
25326                 fi
25327                 if test x$have_dinput = xyes; then
25328
25329 $as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
25330
25331                 fi
25332                 SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
25333                 have_haptic=yes
25334             fi
25335         fi
25336         # Set up files for the sensor library
25337         ac_fn_c_check_header_mongrel "$LINENO" "sensorsapi.h" "ac_cv_header_sensorsapi_h" "$ac_includes_default"
25338 if test "x$ac_cv_header_sensorsapi_h" = xyes; then :
25339   have_winsensors=yes
25340 else
25341   have_winsensors=no
25342 fi
25343
25344
25345         if test x$have_winsensors = xyes; then
25346
25347 $as_echo "#define HAVE_SENSORSAPI_H 1" >>confdefs.h
25348
25349         fi
25350         if test x$enable_sensor = xyes -a x$have_winsensors = xyes; then
25351
25352 $as_echo "#define SDL_SENSOR_WINDOWS 1" >>confdefs.h
25353
25354             SOURCES="$SOURCES $srcdir/src/sensor/windows/*.c"
25355             have_sensor=yes
25356         fi
25357         # Set up files for the power library
25358         if test x$enable_power = xyes; then
25359
25360 $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
25361
25362             SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
25363             have_power=yes
25364         fi
25365         # Set up files for the filesystem library
25366         if test x$enable_filesystem = xyes; then
25367
25368 $as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
25369
25370             SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
25371             have_filesystem=yes
25372         fi
25373         # Set up files for the thread library
25374         if test x$enable_threads = xyes; then
25375
25376 $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
25377
25378             SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
25379             SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
25380             have_threads=yes
25381         fi
25382         # Set up files for the timer library
25383         if test x$enable_timers = xyes; then
25384
25385 $as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
25386
25387             SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
25388             have_timers=yes
25389         fi
25390         # Set up files for the shared object loading library
25391         if test x$enable_loadso = xyes; then
25392
25393 $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
25394
25395             SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
25396             have_loadso=yes
25397         fi
25398         # Set up the system libraries we need
25399         if test -f /lib/w32api/libuuid.a; then
25400             LIBUUID=/lib/w32api/libuuid.a
25401         else
25402             LIBUUID=-luuid
25403         fi
25404         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID -static-libgcc"
25405         # The Windows platform requires special setup
25406         VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
25407         SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
25408         SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
25409         SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
25410
25411         # Check to see if this is a mingw or cygwin build
25412         have_mingw32=
25413         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
25414 $as_echo_n "checking for main in -lmingw32... " >&6; }
25415 if ${ac_cv_lib_mingw32_main+:} false; then :
25416   $as_echo_n "(cached) " >&6
25417 else
25418   ac_check_lib_save_LIBS=$LIBS
25419 LIBS="-lmingw32  $LIBS"
25420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25421 /* end confdefs.h.  */
25422
25423
25424 int
25425 main ()
25426 {
25427 return main ();
25428   ;
25429   return 0;
25430 }
25431 _ACEOF
25432 if ac_fn_c_try_link "$LINENO"; then :
25433   ac_cv_lib_mingw32_main=yes
25434 else
25435   ac_cv_lib_mingw32_main=no
25436 fi
25437 rm -f core conftest.err conftest.$ac_objext \
25438     conftest$ac_exeext conftest.$ac_ext
25439 LIBS=$ac_check_lib_save_LIBS
25440 fi
25441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
25442 $as_echo "$ac_cv_lib_mingw32_main" >&6; }
25443 if test "x$ac_cv_lib_mingw32_main" = xyes; then :
25444   have_mingw32=yes
25445 fi
25446
25447         if test x$have_mingw32 = xyes; then
25448             SDL_LIBS="-lmingw32 $SDL_LIBS"
25449         else
25450             SDL_LIBS="-lcygwin $SDL_LIBS"
25451         fi
25452         ;;
25453
25454         *-*-beos*)
25455         as_fn_error $? "
25456 *** BeOS support has been removed as of SDL 2.0.2.
25457         " "$LINENO" 5
25458         ;;
25459
25460     *-*-haiku*)
25461         ARCH=haiku
25462         ac_default_prefix=/boot/system
25463         CheckDummyVideo
25464         CheckDiskAudio
25465         CheckDummyAudio
25466         CheckHaikuVideo
25467         CheckHaikuGL
25468         CheckPTHREAD
25469
25470         # Set up files for the audio library
25471         if test x$enable_audio = xyes; then
25472
25473 $as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
25474
25475             SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
25476             have_audio=yes
25477         fi
25478         # Set up files for the joystick library
25479         if test x$enable_joystick = xyes; then
25480
25481 $as_echo "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
25482
25483             SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
25484             have_joystick=yes
25485         fi
25486         # Set up files for the timer library
25487         if test x$enable_timers = xyes; then
25488
25489 $as_echo "#define SDL_TIMER_HAIKU 1" >>confdefs.h
25490
25491             SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
25492             have_timers=yes
25493         fi
25494         # Set up files for the system power library
25495         if test x$enable_power = xyes; then
25496
25497 $as_echo "#define SDL_POWER_HAIKU 1" >>confdefs.h
25498
25499             SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
25500             have_power=yes
25501         fi
25502         # Set up files for the system filesystem library
25503         if test x$enable_filesystem = xyes; then
25504
25505 $as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
25506
25507             SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
25508             have_filesystem=yes
25509         fi
25510
25511         SOURCES="$SOURCES $srcdir/src/misc/haiku/*.cc"
25512         have_misc=yes
25513
25514         # Set up files for the locale library
25515         SOURCES="$SOURCES $srcdir/src/locale/haiku/*.cc"
25516         have_locale=yes
25517
25518         # The Haiku platform requires special setup.
25519         SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
25520         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
25521         # Haiku's x86 spins use libstdc++.r4.so (for binary compat?), but
25522         #  other spins, like x86-64, use a more standard "libstdc++.so.*"
25523         as_ac_File=`$as_echo "ac_cv_file_"/boot/system/lib/libstdc++.r4.so"" | $as_tr_sh`
25524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/boot/system/lib/libstdc++.r4.so\"" >&5
25525 $as_echo_n "checking for \"/boot/system/lib/libstdc++.r4.so\"... " >&6; }
25526 if eval \${$as_ac_File+:} false; then :
25527   $as_echo_n "(cached) " >&6
25528 else
25529   test "$cross_compiling" = yes &&
25530   as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
25531 if test -r ""/boot/system/lib/libstdc++.r4.so""; then
25532   eval "$as_ac_File=yes"
25533 else
25534   eval "$as_ac_File=no"
25535 fi
25536 fi
25537 eval ac_res=\$$as_ac_File
25538                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25539 $as_echo "$ac_res" >&6; }
25540 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
25541   EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lstdc++.r4"
25542 else
25543   EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lstdc++"
25544 fi
25545
25546         ;;
25547     *-ios-*)
25548         ARCH=ios
25549
25550         CheckVisibilityHidden
25551         #CheckDeclarationAfterStatement
25552         CheckDummyVideo
25553         CheckDiskAudio
25554         CheckDummyAudio
25555         CheckDLOPEN
25556         CheckMETAL
25557         CheckVulkan
25558         CheckPTHREAD
25559
25560         SOURCES="$SOURCES $srcdir/src/misc/ios/*.m"
25561         have_misc=yes
25562
25563         # Set up files for the locale library
25564         SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
25565         have_locale=yes
25566
25567         # Set up files for the audio library
25568         if test x$enable_audio = xyes; then
25569
25570 $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
25571
25572             SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
25573             SUMMARY_audio="${SUMMARY_audio} coreaudio"
25574             have_audio=yes
25575         fi
25576         # Set up files for the joystick library
25577         if test x$enable_joystick = xyes; then
25578
25579 $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
25580
25581             SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
25582             SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
25583             have_joystick=yes
25584         else
25585             # Need this code for accelerometer as joystick support
25586             SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
25587         fi
25588         # Set up files for the haptic library
25589         #if test x$enable_haptic = xyes; then
25590         #    SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
25591         #    have_haptic=yes
25592         #    EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
25593         #fi
25594         # Set up files for the sensor library
25595         if test x$enable_sensor = xyes; then
25596
25597 $as_echo "#define SDL_SENSOR_COREMOTION 1" >>confdefs.h
25598
25599             SOURCES="$SOURCES $srcdir/src/sensor/coremotion/*.m"
25600             have_sensor=yes
25601         fi
25602         # Set up files for the power library
25603         if test x$enable_power = xyes; then
25604
25605 $as_echo "#define SDL_POWER_UIKIT 1" >>confdefs.h
25606
25607             SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
25608             have_power=yes
25609         fi
25610         # Set up files for the filesystem library
25611         if test x$enable_filesystem = xyes; then
25612             SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
25613             have_filesystem=yes
25614         fi
25615         # Set up additional files for the file library
25616         if test x$enable_file = xyes; then
25617
25618 $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
25619
25620             SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
25621         fi
25622         # Set up files for the timer library
25623         if test x$enable_timers = xyes; then
25624
25625 $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
25626
25627             SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
25628             have_timers=yes
25629         fi
25630         # Set up other core UNIX files
25631         SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
25632         # The iOS platform requires special setup.
25633
25634 $as_echo "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
25635
25636
25637 $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
25638
25639
25640 $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
25641
25642
25643 $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
25644
25645
25646 $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
25647
25648         SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
25649         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
25650         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
25651         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
25652         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
25653         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
25654         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
25655         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
25656         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
25657         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
25658         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
25659         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
25660
25661         if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
25662             EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
25663         fi
25664         ;;
25665     *-*-darwin* )
25666         # This could be either full "Mac OS X", or plain "Darwin" which is
25667         # just the OS X kernel sans upper layers like Carbon and Cocoa.
25668         # Next line is broken, and a few files below require Mac OS X (full)
25669         ARCH=macosx
25670
25671         # Mac OS X builds with both the Carbon and OSX APIs at the moment
25672         EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
25673         EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
25674
25675         CheckVisibilityHidden
25676         #CheckDeclarationAfterStatement
25677         CheckDummyVideo
25678         CheckDiskAudio
25679         CheckDummyAudio
25680         CheckDLOPEN
25681         CheckCOCOA
25682         CheckMETAL
25683         CheckX11
25684         CheckMacGL
25685         CheckMacGLES
25686         CheckOpenGLX11
25687         CheckVulkan
25688         CheckPTHREAD
25689         CheckHIDAPI
25690
25691         SOURCES="$SOURCES $srcdir/src/misc/macosx/*.m"
25692         have_misc=yes
25693
25694         # Set up files for the locale library
25695         SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
25696         have_locale=yes
25697
25698         # Set up files for the audio library
25699         if test x$enable_audio = xyes; then
25700
25701 $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
25702
25703             SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
25704             EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
25705             SUMMARY_audio="${SUMMARY_audio} coreaudio"
25706             have_audio=yes
25707         fi
25708         # Set up files for the joystick library
25709         if test x$enable_joystick = xyes; then
25710
25711 $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
25712
25713             SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
25714             SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
25715             CheckJoystickMFI
25716             have_joystick=yes
25717         fi
25718         # Set up files for the haptic library
25719         if test x$enable_haptic = xyes; then
25720
25721 $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
25722
25723             SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
25724             EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
25725             have_haptic=yes
25726         fi
25727         # Set up files for the power library
25728         if test x$enable_power = xyes; then
25729
25730 $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
25731
25732             SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
25733             have_power=yes
25734         fi
25735         # Set up files for the filesystem library
25736         if test x$enable_filesystem = xyes; then
25737
25738 $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
25739
25740             SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
25741             have_filesystem=yes
25742         fi
25743         # Set up files for the timer library
25744         if test x$enable_timers = xyes; then
25745
25746 $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
25747
25748             SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
25749             have_timers=yes
25750         fi
25751         # Set up additional files for the file library
25752         if test x$enable_file = xyes; then
25753             SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
25754         fi
25755         # Set up other core UNIX files
25756         SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
25757         # The Mac OS X platform requires special setup.
25758         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
25759         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
25760         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
25761         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
25762         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
25763
25764         if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
25765             EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
25766         fi
25767         ;;
25768     *-nacl|*-pnacl)
25769         ARCH=nacl
25770         CheckNativeClient
25771         CheckDummyAudio
25772         CheckDummyVideo
25773         CheckInputEvents
25774         CheckPTHREAD
25775
25776         # Set up files for the timer library
25777         if test x$enable_timers = xyes; then
25778
25779 $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
25780
25781             SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
25782             have_timers=yes
25783         fi
25784
25785         if test x$enable_filesystem = xyes; then
25786
25787 $as_echo "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
25788
25789             SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
25790             have_filesystem=yes
25791         fi
25792         ;;
25793     *-*-emscripten* )
25794         if test x$enable_video = xyes; then
25795
25796 $as_echo "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
25797
25798             SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
25799             have_video=yes
25800             SUMMARY_video="${SUMMARY_video} emscripten"
25801         fi
25802
25803         if test x$enable_audio = xyes; then
25804
25805 $as_echo "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
25806
25807             SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
25808             have_audio=yes
25809             SUMMARY_audio="${SUMMARY_audio} emscripten"
25810         fi
25811
25812         CheckVisibilityHidden
25813         #CheckDeclarationAfterStatement
25814         CheckDummyVideo
25815         CheckDiskAudio
25816         CheckDummyAudio
25817         CheckDLOPEN
25818         CheckClockGettime
25819         CheckEmscriptenGLES
25820
25821          # Set up files for the power library
25822         if test x$enable_power = xyes; then
25823
25824 $as_echo "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
25825
25826             SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
25827             have_power=yes
25828         fi
25829
25830         # Set up files for the power library
25831         if test x$enable_joystick = xyes; then
25832
25833 $as_echo "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
25834
25835             SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
25836             have_joystick=yes
25837         fi
25838
25839         # Set up files for the filesystem library
25840         if test x$enable_filesystem = xyes; then
25841
25842 $as_echo "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
25843
25844             SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
25845             have_filesystem=yes
25846         fi
25847         # Set up files for the timer library
25848         if test x$enable_timers = xyes; then
25849
25850 $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
25851
25852             SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
25853             have_timers=yes
25854         fi
25855         # Set up files for the locale library
25856         SOURCES="$SOURCES $srcdir/src/locale/emscripten/*.c"
25857         have_locale=yes
25858         ;;
25859     *-*-riscos*)
25860         ARCH=riscos
25861         CheckVisibilityHidden
25862         CheckDeclarationAfterStatement
25863         CheckDummyVideo
25864         CheckDiskAudio
25865         CheckDummyAudio
25866         CheckDLOPEN
25867         CheckOSS
25868         CheckPTHREAD
25869         CheckClockGettime
25870
25871         SOURCES="$SOURCES $srcdir/src/misc/riscos/*.c"
25872         have_misc=yes
25873
25874         # Set up files for the timer library
25875         if test x$enable_timers = xyes; then
25876
25877 $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
25878
25879             SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
25880             have_timers=yes
25881         fi
25882         ;;
25883     *)
25884         as_fn_error $? "
25885 *** Unsupported host:  Please add to configure.ac
25886         " "$LINENO" 5
25887         ;;
25888 esac
25889
25890 CheckVirtualJoystick
25891
25892 # Check whether to install sdl2-config
25893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install sdl2-config" >&5
25894 $as_echo_n "checking whether to install sdl2-config... " >&6; }
25895 # Check whether --enable-sdl2-config was given.
25896 if test "${enable_sdl2_config+set}" = set; then :
25897   enableval=$enable_sdl2_config; case "${enableval}" in
25898         yes) enable_sdl2_config="TRUE" ;;
25899         no) enable_sdl2_config="FALSE" ;;
25900         *) as_fn_error $? "bad value '${enableval}' for --enable-sdl2-config" "$LINENO" 5 ;;
25901     esac
25902 else
25903   enable_sdl2_config="TRUE"
25904 fi
25905
25906 if test "$enable_sdl2_config" = "TRUE"; then
25907     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25908 $as_echo "yes" >&6; }
25909 else
25910     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25911 $as_echo "no" >&6; }
25912 fi
25913 INSTALL_SDL2_CONFIG=$enable_sdl2_config
25914
25915
25916 # Verify that we have all the platform specific files we need
25917
25918 if test x$have_misc != xyes; then
25919     SOURCES="$SOURCES $srcdir/src/misc/dummy/*.c"
25920 fi
25921 if test x$have_locale != xyes; then
25922     SOURCES="$SOURCES $srcdir/src/locale/dummy/*.c"
25923 fi
25924 if test x$have_joystick != xyes; then
25925     if test x$enable_joystick = xyes; then
25926
25927 $as_echo "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h
25928
25929     fi
25930     SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
25931 fi
25932 if test x$have_haptic != xyes; then
25933     if test x$enable_haptic = xyes; then
25934
25935 $as_echo "#define SDL_HAPTIC_DUMMY 1" >>confdefs.h
25936
25937     fi
25938     SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
25939 fi
25940 if test x$have_sensor != xyes; then
25941     if test x$enable_sensor = xyes; then
25942
25943 $as_echo "#define SDL_SENSOR_DUMMY 1" >>confdefs.h
25944
25945     fi
25946     SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
25947 fi
25948 if test x$have_threads != xyes; then
25949     if test x$enable_threads = xyes; then
25950
25951 $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
25952
25953     fi
25954     SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
25955 fi
25956 if test x$have_timers != xyes; then
25957     if test x$enable_timers = xyes; then
25958
25959 $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
25960
25961     fi
25962     SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
25963 fi
25964 if test x$have_filesystem != xyes; then
25965     if test x$enable_filesystem = xyes; then
25966
25967 $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
25968
25969     fi
25970     SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
25971 fi
25972 if test x$have_loadso != xyes; then
25973     if test x$enable_loadso = xyes; then
25974
25975 $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
25976
25977     fi
25978     SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
25979 fi
25980 if test x$SDLMAIN_SOURCES = x; then
25981     SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
25982 fi
25983 SDLTEST_SOURCES="$srcdir/src/test/*.c"
25984
25985 if test x$video_wayland = xyes; then
25986     WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do echo -n "\$p" |sed 's,\\.xml\$, ,g' ; done`
25987     WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do echo -n "\\$(gen)/\$p-protocol.c " ; done`
25988     WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do echo -n "\\$(gen)/\$p-client-protocol.h " ; done`
25989     GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES"
25990     GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS"
25991
25992     WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\
25993         echo ;\
25994         echo "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
25995         echo "  @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
25996         echo "  \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\
25997         echo ;\
25998         echo "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
25999         echo "  @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
26000         echo "  \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) code \\$< \\$@" ;\
26001         echo ;\
26002         echo "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\
26003         echo "  \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\
26004         done ;\
26005         echo ;\
26006         for s in $WAYLAND_SOURCES ; do echo -n "\$s:" ; for p in $WAYLAND_PROTOCOLS ; do echo -n " \\$(gen)/\$p-client-protocol.h" ; done ; echo ; done ; echo`
26007 fi
26008
26009 OBJECTS=`echo $SOURCES`
26010 DEPENDS=`echo $SOURCES | tr ' ' '\n'`
26011 for EXT in asm cc m c S; do
26012     OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
26013     DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
26014 \\$(objects)/\\2.lo: \\1/\\2.$EXT \\$(objects)/.created\\\\
26015         \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
26016 done
26017
26018 GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
26019
26020 VERSION_OBJECTS=`echo $VERSION_SOURCES`
26021 VERSION_DEPENDS=`echo $VERSION_SOURCES`
26022 VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.lo,g'`
26023 VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
26024 \\$(objects)/\\2.lo: \\1/\\2.rc \\$(objects)/.created\\\\
26025         \\$(RUN_CMD_RC)\\$(LIBTOOL) --mode=compile --tag=RC \\$(RC) -i \\$< -o \\$@,g"`
26026
26027 SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
26028 SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
26029 SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
26030 SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
26031 \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
26032         \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
26033
26034 SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
26035 SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
26036 SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
26037 SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
26038 \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
26039         \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
26040
26041 # Set runtime shared library paths as needed
26042
26043 if test "x$enable_rpath" = "xyes" -a "x$enable_shared" = "xyes"; then
26044   if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
26045     SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
26046
26047     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
26048 $as_echo_n "checking for linker option --enable-new-dtags... " >&6; }
26049     have_enable_new_dtags=no
26050     save_LDFLAGS="$LDFLAGS"
26051     LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
26052     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26053 /* end confdefs.h.  */
26054
26055
26056 int
26057 main ()
26058 {
26059
26060
26061   ;
26062   return 0;
26063 }
26064 _ACEOF
26065 if ac_fn_c_try_link "$LINENO"; then :
26066
26067     have_enable_new_dtags=yes
26068     SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
26069
26070 fi
26071 rm -f core conftest.err conftest.$ac_objext \
26072     conftest$ac_exeext conftest.$ac_ext
26073     LDFLAGS="$save_LDFLAGS"
26074     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
26075 $as_echo "$have_enable_new_dtags" >&6; }
26076   fi
26077   if test $ARCH = solaris; then
26078     SDL_RLD_FLAGS="-R\${libdir}"
26079   fi
26080 else
26081   SDL_RLD_FLAGS=""
26082 fi
26083
26084 SDL_STATIC_LIBS="$EXTRA_LDFLAGS"
26085
26086
26087
26088
26089
26090 if test x$enable_shared = xyes; then
26091     PKG_CONFIG_LIBS_PRIV="
26092 Libs.private:"
26093     ENABLE_SHARED_TRUE=
26094     ENABLE_SHARED_FALSE="#"
26095 else
26096     PKG_CONFIG_LIBS_PRIV=
26097     ENABLE_SHARED_TRUE="#"
26098     ENABLE_SHARED_FALSE=
26099 fi
26100 if test x$enable_static = xyes; then
26101     ENABLE_STATIC_TRUE=
26102     ENABLE_STATIC_FALSE="#"
26103 else
26104     ENABLE_STATIC_TRUE="#"
26105     ENABLE_STATIC_FALSE=
26106 fi
26107
26108
26109
26110
26111
26112
26113
26114
26115
26116
26117
26118
26119
26120
26121
26122
26123
26124
26125
26126
26127 cat >Makefile.rules <<__EOF__
26128
26129 # Build rules for objects
26130 -include \$(OBJECTS:.lo=.d)
26131
26132 # Special dependency for SDL.c, since it depends on SDL_revision.h
26133 $srcdir/src/SDL.c: update-revision
26134 $DEPENDS
26135 $VERSION_DEPENDS
26136 $SDLMAIN_DEPENDS
26137 $SDLTEST_DEPENDS
26138 $WAYLAND_PROTOCOLS_DEPENDS
26139 __EOF__
26140
26141 ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake sdl2-config-version.cmake SDL2.spec sdl2.pc"
26142
26143 ac_config_commands="$ac_config_commands sdl2_config"
26144
26145
26146 SUMMARY="${SUMMARY}SDL2 Configure Summary:\n"
26147 if test x$enable_shared = xyes; then
26148     SUMMARY="${SUMMARY}Building Shared Libraries\n"
26149 fi
26150 if test x$enable_static = xyes; then
26151     SUMMARY="${SUMMARY}Building Static Libraries\n"
26152 fi
26153 SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
26154 SUMMARY="${SUMMARY}Assembly Math   :${SUMMARY_math}\n"
26155 SUMMARY="${SUMMARY}Audio drivers   :${SUMMARY_audio}\n"
26156 SUMMARY="${SUMMARY}Video drivers   :${SUMMARY_video}\n"
26157 if test x$have_x = xyes; then
26158     SUMMARY="${SUMMARY}X11 libraries   :${SUMMARY_video_x11}\n"
26159 fi
26160 SUMMARY="${SUMMARY}Input drivers   :${SUMMARY_input}\n"
26161 if test x$have_joystick_virtual = xyes; then
26162     SUMMARY="${SUMMARY}Enable virtual joystick APIs : YES\n"
26163 else
26164     SUMMARY="${SUMMARY}Enable virtual joystick APIs : NO\n"
26165 fi
26166 if test x$have_samplerate_h_hdr = xyes; then
26167     SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
26168 else
26169     SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
26170 fi
26171 if test x$have_libudev_h_hdr = xyes; then
26172     SUMMARY="${SUMMARY}Using libudev       : YES\n"
26173 else
26174     SUMMARY="${SUMMARY}Using libudev       : NO\n"
26175 fi
26176 if test x$have_dbus_dbus_h_hdr = xyes; then
26177     SUMMARY="${SUMMARY}Using dbus          : YES\n"
26178 else
26179     SUMMARY="${SUMMARY}Using dbus          : NO\n"
26180 fi
26181 if test x$enable_ime = xyes; then
26182     SUMMARY="${SUMMARY}Using ime           : YES\n"
26183 else
26184     SUMMARY="${SUMMARY}Using ime           : NO\n"
26185 fi
26186 if test x$have_ibus_ibus_h_hdr = xyes; then
26187     SUMMARY="${SUMMARY}Using ibus          : YES\n"
26188 else
26189     SUMMARY="${SUMMARY}Using ibus          : NO\n"
26190 fi
26191 if test x$have_fcitx = xyes; then
26192     SUMMARY="${SUMMARY}Using fcitx         : YES\n"
26193 else
26194     SUMMARY="${SUMMARY}Using fcitx         : NO\n"
26195 fi
26196
26197 if test x$WARN_ABOUT_ARM_SIMD_ASM_MIT = xyes; then
26198     SUMMARY="${SUMMARY}\nSDL is being built with ARM SIMD optimizations, which\n"
26199     SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
26200     SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
26201     SUMMARY="${SUMMARY}configure script with:\n"
26202     SUMMARY="${SUMMARY}\n    --disable-arm-simd\n"
26203 fi
26204
26205 if test x$WARN_ABOUT_ARM_NEON_ASM_MIT = xyes; then
26206     SUMMARY="${SUMMARY}\nSDL is being built with ARM NEON optimizations, which\n"
26207     SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
26208     SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
26209     SUMMARY="${SUMMARY}configure script with:\n"
26210     SUMMARY="${SUMMARY}\n    --disable-arm-neon\n"
26211 fi
26212
26213 ac_config_commands="$ac_config_commands summary"
26214
26215
26216 cat >confcache <<\_ACEOF
26217 # This file is a shell script that caches the results of configure
26218 # tests run on this system so they can be shared between configure
26219 # scripts and configure runs, see configure's option --config-cache.
26220 # It is not useful on other systems.  If it contains results you don't
26221 # want to keep, you may remove or edit it.
26222 #
26223 # config.status only pays attention to the cache file if you give it
26224 # the --recheck option to rerun configure.
26225 #
26226 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26227 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26228 # following values.
26229
26230 _ACEOF
26231
26232 # The following way of writing the cache mishandles newlines in values,
26233 # but we know of no workaround that is simple, portable, and efficient.
26234 # So, we kill variables containing newlines.
26235 # Ultrix sh set writes to stderr and can't be redirected directly,
26236 # and sets the high bit in the cache file unless we assign to the vars.
26237 (
26238   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26239     eval ac_val=\$$ac_var
26240     case $ac_val in #(
26241     *${as_nl}*)
26242       case $ac_var in #(
26243       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26244 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26245       esac
26246       case $ac_var in #(
26247       _ | IFS | as_nl) ;; #(
26248       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26249       *) { eval $ac_var=; unset $ac_var;} ;;
26250       esac ;;
26251     esac
26252   done
26253
26254   (set) 2>&1 |
26255     case $as_nl`(ac_space=' '; set) 2>&1` in #(
26256     *${as_nl}ac_space=\ *)
26257       # `set' does not quote correctly, so add quotes: double-quote
26258       # substitution turns \\\\ into \\, and sed turns \\ into \.
26259       sed -n \
26260         "s/'/'\\\\''/g;
26261           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26262       ;; #(
26263     *)
26264       # `set' quotes correctly as required by POSIX, so do not add quotes.
26265       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26266       ;;
26267     esac |
26268     sort
26269 ) |
26270   sed '
26271      /^ac_cv_env_/b end
26272      t clear
26273      :clear
26274      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26275      t end
26276      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26277      :end' >>confcache
26278 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26279   if test -w "$cache_file"; then
26280     if test "x$cache_file" != "x/dev/null"; then
26281       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26282 $as_echo "$as_me: updating cache $cache_file" >&6;}
26283       if test ! -f "$cache_file" || test -h "$cache_file"; then
26284         cat confcache >"$cache_file"
26285       else
26286         case $cache_file in #(
26287         */* | ?:*)
26288           mv -f confcache "$cache_file"$$ &&
26289           mv -f "$cache_file"$$ "$cache_file" ;; #(
26290         *)
26291           mv -f confcache "$cache_file" ;;
26292         esac
26293       fi
26294     fi
26295   else
26296     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26297 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26298   fi
26299 fi
26300 rm -f confcache
26301
26302 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26303 # Let make expand exec_prefix.
26304 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26305
26306 DEFS=-DHAVE_CONFIG_H
26307
26308 ac_libobjs=
26309 ac_ltlibobjs=
26310 U=
26311 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26312   # 1. Remove the extension, and $U if already installed.
26313   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26314   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26315   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
26316   #    will be set to the directory where LIBOBJS objects are built.
26317   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26318   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26319 done
26320 LIBOBJS=$ac_libobjs
26321
26322 LTLIBOBJS=$ac_ltlibobjs
26323
26324
26325
26326 : "${CONFIG_STATUS=./config.status}"
26327 ac_write_fail=0
26328 ac_clean_files_save=$ac_clean_files
26329 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26330 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26331 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26332 as_write_fail=0
26333 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26334 #! $SHELL
26335 # Generated by $as_me.
26336 # Run this file to recreate the current configuration.
26337 # Compiler output produced by configure, useful for debugging
26338 # configure, is in config.log if it exists.
26339
26340 debug=false
26341 ac_cs_recheck=false
26342 ac_cs_silent=false
26343
26344 SHELL=\${CONFIG_SHELL-$SHELL}
26345 export SHELL
26346 _ASEOF
26347 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26348 ## -------------------- ##
26349 ## M4sh Initialization. ##
26350 ## -------------------- ##
26351
26352 # Be more Bourne compatible
26353 DUALCASE=1; export DUALCASE # for MKS sh
26354 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26355   emulate sh
26356   NULLCMD=:
26357   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26358   # is contrary to our usage.  Disable this feature.
26359   alias -g '${1+"$@"}'='"$@"'
26360   setopt NO_GLOB_SUBST
26361 else
26362   case `(set -o) 2>/dev/null` in #(
26363   *posix*) :
26364     set -o posix ;; #(
26365   *) :
26366      ;;
26367 esac
26368 fi
26369
26370
26371 as_nl='
26372 '
26373 export as_nl
26374 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26375 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26376 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26377 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26378 # Prefer a ksh shell builtin over an external printf program on Solaris,
26379 # but without wasting forks for bash or zsh.
26380 if test -z "$BASH_VERSION$ZSH_VERSION" \
26381     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26382   as_echo='print -r --'
26383   as_echo_n='print -rn --'
26384 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26385   as_echo='printf %s\n'
26386   as_echo_n='printf %s'
26387 else
26388   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26389     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26390     as_echo_n='/usr/ucb/echo -n'
26391   else
26392     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26393     as_echo_n_body='eval
26394       arg=$1;
26395       case $arg in #(
26396       *"$as_nl"*)
26397         expr "X$arg" : "X\\(.*\\)$as_nl";
26398         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26399       esac;
26400       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26401     '
26402     export as_echo_n_body
26403     as_echo_n='sh -c $as_echo_n_body as_echo'
26404   fi
26405   export as_echo_body
26406   as_echo='sh -c $as_echo_body as_echo'
26407 fi
26408
26409 # The user is always right.
26410 if test "${PATH_SEPARATOR+set}" != set; then
26411   PATH_SEPARATOR=:
26412   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26413     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26414       PATH_SEPARATOR=';'
26415   }
26416 fi
26417
26418
26419 # IFS
26420 # We need space, tab and new line, in precisely that order.  Quoting is
26421 # there to prevent editors from complaining about space-tab.
26422 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26423 # splitting by setting IFS to empty value.)
26424 IFS=" ""        $as_nl"
26425
26426 # Find who we are.  Look in the path if we contain no directory separator.
26427 as_myself=
26428 case $0 in #((
26429   *[\\/]* ) as_myself=$0 ;;
26430   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26431 for as_dir in $PATH
26432 do
26433   IFS=$as_save_IFS
26434   test -z "$as_dir" && as_dir=.
26435     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26436   done
26437 IFS=$as_save_IFS
26438
26439      ;;
26440 esac
26441 # We did not find ourselves, most probably we were run as `sh COMMAND'
26442 # in which case we are not to be found in the path.
26443 if test "x$as_myself" = x; then
26444   as_myself=$0
26445 fi
26446 if test ! -f "$as_myself"; then
26447   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26448   exit 1
26449 fi
26450
26451 # Unset variables that we do not need and which cause bugs (e.g. in
26452 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
26453 # suppresses any "Segmentation fault" message there.  '((' could
26454 # trigger a bug in pdksh 5.2.14.
26455 for as_var in BASH_ENV ENV MAIL MAILPATH
26456 do eval test x\${$as_var+set} = xset \
26457   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26458 done
26459 PS1='$ '
26460 PS2='> '
26461 PS4='+ '
26462
26463 # NLS nuisances.
26464 LC_ALL=C
26465 export LC_ALL
26466 LANGUAGE=C
26467 export LANGUAGE
26468
26469 # CDPATH.
26470 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26471
26472
26473 # as_fn_error STATUS ERROR [LINENO LOG_FD]
26474 # ----------------------------------------
26475 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26476 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26477 # script with STATUS, using 1 if that was 0.
26478 as_fn_error ()
26479 {
26480   as_status=$1; test $as_status -eq 0 && as_status=1
26481   if test "$4"; then
26482     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26483     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
26484   fi
26485   $as_echo "$as_me: error: $2" >&2
26486   as_fn_exit $as_status
26487 } # as_fn_error
26488
26489
26490 # as_fn_set_status STATUS
26491 # -----------------------
26492 # Set $? to STATUS, without forking.
26493 as_fn_set_status ()
26494 {
26495   return $1
26496 } # as_fn_set_status
26497
26498 # as_fn_exit STATUS
26499 # -----------------
26500 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26501 as_fn_exit ()
26502 {
26503   set +e
26504   as_fn_set_status $1
26505   exit $1
26506 } # as_fn_exit
26507
26508 # as_fn_unset VAR
26509 # ---------------
26510 # Portably unset VAR.
26511 as_fn_unset ()
26512 {
26513   { eval $1=; unset $1;}
26514 }
26515 as_unset=as_fn_unset
26516 # as_fn_append VAR VALUE
26517 # ----------------------
26518 # Append the text in VALUE to the end of the definition contained in VAR. Take
26519 # advantage of any shell optimizations that allow amortized linear growth over
26520 # repeated appends, instead of the typical quadratic growth present in naive
26521 # implementations.
26522 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
26523   eval 'as_fn_append ()
26524   {
26525     eval $1+=\$2
26526   }'
26527 else
26528   as_fn_append ()
26529   {
26530     eval $1=\$$1\$2
26531   }
26532 fi # as_fn_append
26533
26534 # as_fn_arith ARG...
26535 # ------------------
26536 # Perform arithmetic evaluation on the ARGs, and store the result in the
26537 # global $as_val. Take advantage of shells that can avoid forks. The arguments
26538 # must be portable across $(()) and expr.
26539 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
26540   eval 'as_fn_arith ()
26541   {
26542     as_val=$(( $* ))
26543   }'
26544 else
26545   as_fn_arith ()
26546   {
26547     as_val=`expr "$@" || test $? -eq 1`
26548   }
26549 fi # as_fn_arith
26550
26551
26552 if expr a : '\(a\)' >/dev/null 2>&1 &&
26553    test "X`expr 00001 : '.*\(...\)'`" = X001; then
26554   as_expr=expr
26555 else
26556   as_expr=false
26557 fi
26558
26559 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26560   as_basename=basename
26561 else
26562   as_basename=false
26563 fi
26564
26565 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26566   as_dirname=dirname
26567 else
26568   as_dirname=false
26569 fi
26570
26571 as_me=`$as_basename -- "$0" ||
26572 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26573          X"$0" : 'X\(//\)$' \| \
26574          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26575 $as_echo X/"$0" |
26576     sed '/^.*\/\([^/][^/]*\)\/*$/{
26577             s//\1/
26578             q
26579           }
26580           /^X\/\(\/\/\)$/{
26581             s//\1/
26582             q
26583           }
26584           /^X\/\(\/\).*/{
26585             s//\1/
26586             q
26587           }
26588           s/.*/./; q'`
26589
26590 # Avoid depending upon Character Ranges.
26591 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26592 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26593 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26594 as_cr_digits='0123456789'
26595 as_cr_alnum=$as_cr_Letters$as_cr_digits
26596
26597 ECHO_C= ECHO_N= ECHO_T=
26598 case `echo -n x` in #(((((
26599 -n*)
26600   case `echo 'xy\c'` in
26601   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
26602   xy)  ECHO_C='\c';;
26603   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
26604        ECHO_T=' ';;
26605   esac;;
26606 *)
26607   ECHO_N='-n';;
26608 esac
26609
26610 rm -f conf$$ conf$$.exe conf$$.file
26611 if test -d conf$$.dir; then
26612   rm -f conf$$.dir/conf$$.file
26613 else
26614   rm -f conf$$.dir
26615   mkdir conf$$.dir 2>/dev/null
26616 fi
26617 if (echo >conf$$.file) 2>/dev/null; then
26618   if ln -s conf$$.file conf$$ 2>/dev/null; then
26619     as_ln_s='ln -s'
26620     # ... but there are two gotchas:
26621     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26622     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26623     # In both cases, we have to default to `cp -pR'.
26624     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26625       as_ln_s='cp -pR'
26626   elif ln conf$$.file conf$$ 2>/dev/null; then
26627     as_ln_s=ln
26628   else
26629     as_ln_s='cp -pR'
26630   fi
26631 else
26632   as_ln_s='cp -pR'
26633 fi
26634 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26635 rmdir conf$$.dir 2>/dev/null
26636
26637
26638 # as_fn_mkdir_p
26639 # -------------
26640 # Create "$as_dir" as a directory, including parents if necessary.
26641 as_fn_mkdir_p ()
26642 {
26643
26644   case $as_dir in #(
26645   -*) as_dir=./$as_dir;;
26646   esac
26647   test -d "$as_dir" || eval $as_mkdir_p || {
26648     as_dirs=
26649     while :; do
26650       case $as_dir in #(
26651       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26652       *) as_qdir=$as_dir;;
26653       esac
26654       as_dirs="'$as_qdir' $as_dirs"
26655       as_dir=`$as_dirname -- "$as_dir" ||
26656 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26657          X"$as_dir" : 'X\(//\)[^/]' \| \
26658          X"$as_dir" : 'X\(//\)$' \| \
26659          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26660 $as_echo X"$as_dir" |
26661     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26662             s//\1/
26663             q
26664           }
26665           /^X\(\/\/\)[^/].*/{
26666             s//\1/
26667             q
26668           }
26669           /^X\(\/\/\)$/{
26670             s//\1/
26671             q
26672           }
26673           /^X\(\/\).*/{
26674             s//\1/
26675             q
26676           }
26677           s/.*/./; q'`
26678       test -d "$as_dir" && break
26679     done
26680     test -z "$as_dirs" || eval "mkdir $as_dirs"
26681   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
26682
26683
26684 } # as_fn_mkdir_p
26685 if mkdir -p . 2>/dev/null; then
26686   as_mkdir_p='mkdir -p "$as_dir"'
26687 else
26688   test -d ./-p && rmdir ./-p
26689   as_mkdir_p=false
26690 fi
26691
26692
26693 # as_fn_executable_p FILE
26694 # -----------------------
26695 # Test if FILE is an executable regular file.
26696 as_fn_executable_p ()
26697 {
26698   test -f "$1" && test -x "$1"
26699 } # as_fn_executable_p
26700 as_test_x='test -x'
26701 as_executable_p=as_fn_executable_p
26702
26703 # Sed expression to map a string onto a valid CPP name.
26704 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26705
26706 # Sed expression to map a string onto a valid variable name.
26707 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26708
26709
26710 exec 6>&1
26711 ## ----------------------------------- ##
26712 ## Main body of $CONFIG_STATUS script. ##
26713 ## ----------------------------------- ##
26714 _ASEOF
26715 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
26716
26717 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26718 # Save the log message, to keep $0 and so on meaningful, and to
26719 # report actual input values of CONFIG_FILES etc. instead of their
26720 # values after options handling.
26721 ac_log="
26722 This file was extended by $as_me, which was
26723 generated by GNU Autoconf 2.69.  Invocation command line was
26724
26725   CONFIG_FILES    = $CONFIG_FILES
26726   CONFIG_HEADERS  = $CONFIG_HEADERS
26727   CONFIG_LINKS    = $CONFIG_LINKS
26728   CONFIG_COMMANDS = $CONFIG_COMMANDS
26729   $ $0 $@
26730
26731 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26732 "
26733
26734 _ACEOF
26735
26736 case $ac_config_files in *"
26737 "*) set x $ac_config_files; shift; ac_config_files=$*;;
26738 esac
26739
26740 case $ac_config_headers in *"
26741 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
26742 esac
26743
26744
26745 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26746 # Files that config.status was made for.
26747 config_files="$ac_config_files"
26748 config_headers="$ac_config_headers"
26749 config_commands="$ac_config_commands"
26750
26751 _ACEOF
26752
26753 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26754 ac_cs_usage="\
26755 \`$as_me' instantiates files and other configuration actions
26756 from templates according to the current configuration.  Unless the files
26757 and actions are specified as TAGs, all are instantiated by default.
26758
26759 Usage: $0 [OPTION]... [TAG]...
26760
26761   -h, --help       print this help, then exit
26762   -V, --version    print version number and configuration settings, then exit
26763       --config     print configuration, then exit
26764   -q, --quiet, --silent
26765                    do not print progress messages
26766   -d, --debug      don't remove temporary files
26767       --recheck    update $as_me by reconfiguring in the same conditions
26768       --file=FILE[:TEMPLATE]
26769                    instantiate the configuration file FILE
26770       --header=FILE[:TEMPLATE]
26771                    instantiate the configuration header FILE
26772
26773 Configuration files:
26774 $config_files
26775
26776 Configuration headers:
26777 $config_headers
26778
26779 Configuration commands:
26780 $config_commands
26781
26782 Report bugs to the package provider."
26783
26784 _ACEOF
26785 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26786 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
26787 ac_cs_version="\\
26788 config.status
26789 configured by $0, generated by GNU Autoconf 2.69,
26790   with options \\"\$ac_cs_config\\"
26791
26792 Copyright (C) 2012 Free Software Foundation, Inc.
26793 This config.status script is free software; the Free Software Foundation
26794 gives unlimited permission to copy, distribute and modify it."
26795
26796 ac_pwd='$ac_pwd'
26797 srcdir='$srcdir'
26798 INSTALL='$INSTALL'
26799 AWK='$AWK'
26800 test -n "\$AWK" || AWK=awk
26801 _ACEOF
26802
26803 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26804 # The default lists apply if the user does not specify any file.
26805 ac_need_defaults=:
26806 while test $# != 0
26807 do
26808   case $1 in
26809   --*=?*)
26810     ac_option=`expr "X$1" : 'X\([^=]*\)='`
26811     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26812     ac_shift=:
26813     ;;
26814   --*=)
26815     ac_option=`expr "X$1" : 'X\([^=]*\)='`
26816     ac_optarg=
26817     ac_shift=:
26818     ;;
26819   *)
26820     ac_option=$1
26821     ac_optarg=$2
26822     ac_shift=shift
26823     ;;
26824   esac
26825
26826   case $ac_option in
26827   # Handling of the options.
26828   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26829     ac_cs_recheck=: ;;
26830   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26831     $as_echo "$ac_cs_version"; exit ;;
26832   --config | --confi | --conf | --con | --co | --c )
26833     $as_echo "$ac_cs_config"; exit ;;
26834   --debug | --debu | --deb | --de | --d | -d )
26835     debug=: ;;
26836   --file | --fil | --fi | --f )
26837     $ac_shift
26838     case $ac_optarg in
26839     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26840     '') as_fn_error $? "missing file argument" ;;
26841     esac
26842     as_fn_append CONFIG_FILES " '$ac_optarg'"
26843     ac_need_defaults=false;;
26844   --header | --heade | --head | --hea )
26845     $ac_shift
26846     case $ac_optarg in
26847     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26848     esac
26849     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
26850     ac_need_defaults=false;;
26851   --he | --h)
26852     # Conflict between --help and --header
26853     as_fn_error $? "ambiguous option: \`$1'
26854 Try \`$0 --help' for more information.";;
26855   --help | --hel | -h )
26856     $as_echo "$ac_cs_usage"; exit ;;
26857   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26858   | -silent | --silent | --silen | --sile | --sil | --si | --s)
26859     ac_cs_silent=: ;;
26860
26861   # This is an error.
26862   -*) as_fn_error $? "unrecognized option: \`$1'
26863 Try \`$0 --help' for more information." ;;
26864
26865   *) as_fn_append ac_config_targets " $1"
26866      ac_need_defaults=false ;;
26867
26868   esac
26869   shift
26870 done
26871
26872 ac_configure_extra_args=
26873
26874 if $ac_cs_silent; then
26875   exec 6>/dev/null
26876   ac_configure_extra_args="$ac_configure_extra_args --silent"
26877 fi
26878
26879 _ACEOF
26880 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26881 if \$ac_cs_recheck; then
26882   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26883   shift
26884   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26885   CONFIG_SHELL='$SHELL'
26886   export CONFIG_SHELL
26887   exec "\$@"
26888 fi
26889
26890 _ACEOF
26891 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26892 exec 5>>config.log
26893 {
26894   echo
26895   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26896 ## Running $as_me. ##
26897 _ASBOX
26898   $as_echo "$ac_log"
26899 } >&5
26900
26901 _ACEOF
26902 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26903 #
26904 # INIT-COMMANDS
26905 #
26906
26907
26908 # The HP-UX ksh and POSIX shell print the target directory to stdout
26909 # if CDPATH is set.
26910 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26911
26912 sed_quote_subst='$sed_quote_subst'
26913 double_quote_subst='$double_quote_subst'
26914 delay_variable_subst='$delay_variable_subst'
26915 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
26916 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
26917 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
26918 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
26919 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
26920 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
26921 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
26922 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
26923 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
26924 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
26925 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
26926 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
26927 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
26928 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
26929 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
26930 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
26931 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
26932 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
26933 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
26934 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
26935 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
26936 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
26937 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
26938 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
26939 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
26940 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
26941 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
26942 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
26943 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
26944 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
26945 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
26946 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
26947 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
26948 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
26949 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
26950 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
26951 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
26952 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
26953 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
26954 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
26955 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
26956 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
26957 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
26958 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
26959 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
26960 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
26961 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
26962 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
26963 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
26964 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
26965 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
26966 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
26967 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
26968 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
26969 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
26970 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
26971 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
26972 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"`'
26973 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
26974 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
26975 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
26976 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
26977 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
26978 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
26979 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
26980 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
26981 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
26982 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
26983 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
26984 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
26985 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
26986 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
26987 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
26988 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
26989 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
26990 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
26991 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
26992 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
26993 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
26994 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
26995 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
26996 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
26997 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
26998 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
26999 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
27000 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27001 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
27002 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27003 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
27004 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
27005 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
27006 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
27007 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
27008 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
27009 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
27010 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
27011 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
27012 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
27013 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
27014 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
27015 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
27016 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
27017 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
27018 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
27019 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
27020 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
27021 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
27022 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
27023 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
27024 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
27025 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
27026 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
27027 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
27028 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
27029 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
27030 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
27031 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
27032 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
27033 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27034 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27035 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
27036 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
27037 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
27038 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
27039 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
27040 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
27041 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
27042 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
27043 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
27044 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
27045 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
27046 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
27047 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
27048 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
27049 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
27050 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
27051 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
27052 LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
27053 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
27054 reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
27055 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
27056 reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
27057 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27058 old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
27059 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27060 compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
27061 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
27062 GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
27063 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
27064 lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
27065 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
27066 lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
27067 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
27068 lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
27069 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
27070 lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
27071 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
27072 lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
27073 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
27074 archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
27075 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
27076 enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
27077 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
27078 export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
27079 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
27080 whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
27081 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
27082 compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
27083 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
27084 old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
27085 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27086 old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
27087 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27088 archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
27089 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27090 archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
27091 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27092 module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
27093 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27094 module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
27095 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27096 with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
27097 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
27098 allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
27099 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
27100 no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
27101 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
27102 hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
27103 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
27104 hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
27105 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
27106 hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
27107 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
27108 hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
27109 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
27110 hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
27111 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
27112 hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
27113 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
27114 hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
27115 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
27116 inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
27117 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
27118 link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
27119 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
27120 always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
27121 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
27122 export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
27123 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27124 exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
27125 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
27126 include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
27127 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
27128 prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
27129 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27130 postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
27131 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27132 file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
27133 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
27134 hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
27135 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
27136 compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
27137 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
27138 predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
27139 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
27140 postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
27141 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
27142 predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
27143 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
27144 postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
27145 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
27146 compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
27147 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
27148
27149 LTCC='$LTCC'
27150 LTCFLAGS='$LTCFLAGS'
27151 compiler='$compiler_DEFAULT'
27152
27153 # A function that is used when there is no print builtin or printf.
27154 func_fallback_echo ()
27155 {
27156   eval 'cat <<_LTECHO_EOF
27157 \$1
27158 _LTECHO_EOF'
27159 }
27160
27161 # Quote evaled strings.
27162 for var in AS \
27163 DLLTOOL \
27164 OBJDUMP \
27165 SHELL \
27166 ECHO \
27167 PATH_SEPARATOR \
27168 SED \
27169 GREP \
27170 EGREP \
27171 FGREP \
27172 LD \
27173 NM \
27174 LN_S \
27175 lt_SP2NL \
27176 lt_NL2SP \
27177 reload_flag \
27178 deplibs_check_method \
27179 file_magic_cmd \
27180 file_magic_glob \
27181 want_nocaseglob \
27182 sharedlib_from_linklib_cmd \
27183 AR \
27184 AR_FLAGS \
27185 archiver_list_spec \
27186 STRIP \
27187 RANLIB \
27188 CC \
27189 CFLAGS \
27190 compiler \
27191 lt_cv_sys_global_symbol_pipe \
27192 lt_cv_sys_global_symbol_to_cdecl \
27193 lt_cv_sys_global_symbol_to_c_name_address \
27194 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
27195 nm_file_list_spec \
27196 lt_prog_compiler_no_builtin_flag \
27197 lt_prog_compiler_pic \
27198 lt_prog_compiler_wl \
27199 lt_prog_compiler_static \
27200 lt_cv_prog_compiler_c_o \
27201 need_locks \
27202 MANIFEST_TOOL \
27203 DSYMUTIL \
27204 NMEDIT \
27205 LIPO \
27206 OTOOL \
27207 OTOOL64 \
27208 shrext_cmds \
27209 export_dynamic_flag_spec \
27210 whole_archive_flag_spec \
27211 compiler_needs_object \
27212 with_gnu_ld \
27213 allow_undefined_flag \
27214 no_undefined_flag \
27215 hardcode_libdir_flag_spec \
27216 hardcode_libdir_separator \
27217 exclude_expsyms \
27218 include_expsyms \
27219 file_list_spec \
27220 variables_saved_for_relink \
27221 libname_spec \
27222 library_names_spec \
27223 soname_spec \
27224 install_override_mode \
27225 finish_eval \
27226 old_striplib \
27227 striplib \
27228 compiler_lib_search_dirs \
27229 predep_objects \
27230 postdep_objects \
27231 predeps \
27232 postdeps \
27233 compiler_lib_search_path \
27234 LD_RC \
27235 LD_CXX \
27236 reload_flag_RC \
27237 reload_flag_CXX \
27238 compiler_RC \
27239 compiler_CXX \
27240 lt_prog_compiler_no_builtin_flag_RC \
27241 lt_prog_compiler_no_builtin_flag_CXX \
27242 lt_prog_compiler_pic_RC \
27243 lt_prog_compiler_pic_CXX \
27244 lt_prog_compiler_wl_RC \
27245 lt_prog_compiler_wl_CXX \
27246 lt_prog_compiler_static_RC \
27247 lt_prog_compiler_static_CXX \
27248 lt_cv_prog_compiler_c_o_RC \
27249 lt_cv_prog_compiler_c_o_CXX \
27250 export_dynamic_flag_spec_RC \
27251 export_dynamic_flag_spec_CXX \
27252 whole_archive_flag_spec_RC \
27253 whole_archive_flag_spec_CXX \
27254 compiler_needs_object_RC \
27255 compiler_needs_object_CXX \
27256 with_gnu_ld_RC \
27257 with_gnu_ld_CXX \
27258 allow_undefined_flag_RC \
27259 allow_undefined_flag_CXX \
27260 no_undefined_flag_RC \
27261 no_undefined_flag_CXX \
27262 hardcode_libdir_flag_spec_RC \
27263 hardcode_libdir_flag_spec_CXX \
27264 hardcode_libdir_separator_RC \
27265 hardcode_libdir_separator_CXX \
27266 exclude_expsyms_RC \
27267 exclude_expsyms_CXX \
27268 include_expsyms_RC \
27269 include_expsyms_CXX \
27270 file_list_spec_RC \
27271 file_list_spec_CXX \
27272 compiler_lib_search_dirs_RC \
27273 compiler_lib_search_dirs_CXX \
27274 predep_objects_RC \
27275 predep_objects_CXX \
27276 postdep_objects_RC \
27277 postdep_objects_CXX \
27278 predeps_RC \
27279 predeps_CXX \
27280 postdeps_RC \
27281 postdeps_CXX \
27282 compiler_lib_search_path_RC \
27283 compiler_lib_search_path_CXX; do
27284     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27285     *[\\\\\\\`\\"\\\$]*)
27286       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
27287       ;;
27288     *)
27289       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27290       ;;
27291     esac
27292 done
27293
27294 # Double-quote double-evaled strings.
27295 for var in reload_cmds \
27296 old_postinstall_cmds \
27297 old_postuninstall_cmds \
27298 old_archive_cmds \
27299 extract_expsyms_cmds \
27300 old_archive_from_new_cmds \
27301 old_archive_from_expsyms_cmds \
27302 archive_cmds \
27303 archive_expsym_cmds \
27304 module_cmds \
27305 module_expsym_cmds \
27306 export_symbols_cmds \
27307 prelink_cmds \
27308 postlink_cmds \
27309 postinstall_cmds \
27310 postuninstall_cmds \
27311 finish_cmds \
27312 sys_lib_search_path_spec \
27313 sys_lib_dlsearch_path_spec \
27314 reload_cmds_RC \
27315 reload_cmds_CXX \
27316 old_archive_cmds_RC \
27317 old_archive_cmds_CXX \
27318 old_archive_from_new_cmds_RC \
27319 old_archive_from_new_cmds_CXX \
27320 old_archive_from_expsyms_cmds_RC \
27321 old_archive_from_expsyms_cmds_CXX \
27322 archive_cmds_RC \
27323 archive_cmds_CXX \
27324 archive_expsym_cmds_RC \
27325 archive_expsym_cmds_CXX \
27326 module_cmds_RC \
27327 module_cmds_CXX \
27328 module_expsym_cmds_RC \
27329 module_expsym_cmds_CXX \
27330 export_symbols_cmds_RC \
27331 export_symbols_cmds_CXX \
27332 prelink_cmds_RC \
27333 prelink_cmds_CXX \
27334 postlink_cmds_RC \
27335 postlink_cmds_CXX; do
27336     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27337     *[\\\\\\\`\\"\\\$]*)
27338       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
27339       ;;
27340     *)
27341       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27342       ;;
27343     esac
27344 done
27345
27346 ac_aux_dir='$ac_aux_dir'
27347 xsi_shell='$xsi_shell'
27348 lt_shell_append='$lt_shell_append'
27349
27350 # See if we are running on zsh, and set the options which allow our
27351 # commands through without removal of \ escapes INIT.
27352 if test -n "\${ZSH_VERSION+set}" ; then
27353    setopt NO_GLOB_SUBST
27354 fi
27355
27356
27357     PACKAGE='$PACKAGE'
27358     VERSION='$VERSION'
27359     TIMESTAMP='$TIMESTAMP'
27360     RM='$RM'
27361     ofile='$ofile'
27362
27363
27364
27365
27366
27367
27368
27369 SUMMARY="$SUMMARY"
27370
27371 _ACEOF
27372
27373 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27374
27375 # Handling of arguments.
27376 for ac_config_target in $ac_config_targets
27377 do
27378   case $ac_config_target in
27379     "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
27380     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
27381     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
27382     "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
27383     "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
27384     "sdl2-config-version.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config-version.cmake" ;;
27385     "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
27386     "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
27387     "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
27388     "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
27389
27390   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27391   esac
27392 done
27393
27394
27395 # If the user did not use the arguments to specify the items to instantiate,
27396 # then the envvar interface is used.  Set only those that are not.
27397 # We use the long form for the default assignment because of an extremely
27398 # bizarre bug on SunOS 4.1.3.
27399 if $ac_need_defaults; then
27400   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27401   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27402   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27403 fi
27404
27405 # Have a temporary directory for convenience.  Make it in the build tree
27406 # simply because there is no reason against having it here, and in addition,
27407 # creating and moving files from /tmp can sometimes cause problems.
27408 # Hook for its removal unless debugging.
27409 # Note that there is a small window in which the directory will not be cleaned:
27410 # after its creation but before its name has been assigned to `$tmp'.
27411 $debug ||
27412 {
27413   tmp= ac_tmp=
27414   trap 'exit_status=$?
27415   : "${ac_tmp:=$tmp}"
27416   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
27417 ' 0
27418   trap 'as_fn_exit 1' 1 2 13 15
27419 }
27420 # Create a (secure) tmp directory for tmp files.
27421
27422 {
27423   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27424   test -d "$tmp"
27425 }  ||
27426 {
27427   tmp=./conf$$-$RANDOM
27428   (umask 077 && mkdir "$tmp")
27429 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
27430 ac_tmp=$tmp
27431
27432 # Set up the scripts for CONFIG_FILES section.
27433 # No need to generate them if there are no CONFIG_FILES.
27434 # This happens for instance with `./config.status config.h'.
27435 if test -n "$CONFIG_FILES"; then
27436
27437
27438 ac_cr=`echo X | tr X '\015'`
27439 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27440 # But we know of no other shell where ac_cr would be empty at this
27441 # point, so we can use a bashism as a fallback.
27442 if test "x$ac_cr" = x; then
27443   eval ac_cr=\$\'\\r\'
27444 fi
27445 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27446 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27447   ac_cs_awk_cr='\\r'
27448 else
27449   ac_cs_awk_cr=$ac_cr
27450 fi
27451
27452 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
27453 _ACEOF
27454
27455
27456 {
27457   echo "cat >conf$$subs.awk <<_ACEOF" &&
27458   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27459   echo "_ACEOF"
27460 } >conf$$subs.sh ||
27461   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27462 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
27463 ac_delim='%!_!# '
27464 for ac_last_try in false false false false false :; do
27465   . ./conf$$subs.sh ||
27466     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27467
27468   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27469   if test $ac_delim_n = $ac_delim_num; then
27470     break
27471   elif $ac_last_try; then
27472     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27473   else
27474     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27475   fi
27476 done
27477 rm -f conf$$subs.sh
27478
27479 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27480 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
27481 _ACEOF
27482 sed -n '
27483 h
27484 s/^/S["/; s/!.*/"]=/
27485 p
27486 g
27487 s/^[^!]*!//
27488 :repl
27489 t repl
27490 s/'"$ac_delim"'$//
27491 t delim
27492 :nl
27493 h
27494 s/\(.\{148\}\)..*/\1/
27495 t more1
27496 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27497 p
27498 n
27499 b repl
27500 :more1
27501 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27502 p
27503 g
27504 s/.\{148\}//
27505 t nl
27506 :delim
27507 h
27508 s/\(.\{148\}\)..*/\1/
27509 t more2
27510 s/["\\]/\\&/g; s/^/"/; s/$/"/
27511 p
27512 b
27513 :more2
27514 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27515 p
27516 g
27517 s/.\{148\}//
27518 t delim
27519 ' <conf$$subs.awk | sed '
27520 /^[^""]/{
27521   N
27522   s/\n//
27523 }
27524 ' >>$CONFIG_STATUS || ac_write_fail=1
27525 rm -f conf$$subs.awk
27526 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27527 _ACAWK
27528 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
27529   for (key in S) S_is_set[key] = 1
27530   FS = "\a"
27531
27532 }
27533 {
27534   line = $ 0
27535   nfields = split(line, field, "@")
27536   substed = 0
27537   len = length(field[1])
27538   for (i = 2; i < nfields; i++) {
27539     key = field[i]
27540     keylen = length(key)
27541     if (S_is_set[key]) {
27542       value = S[key]
27543       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27544       len += length(value) + length(field[++i])
27545       substed = 1
27546     } else
27547       len += 1 + keylen
27548   }
27549
27550   print line
27551 }
27552
27553 _ACAWK
27554 _ACEOF
27555 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27556 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27557   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27558 else
27559   cat
27560 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
27561   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
27562 _ACEOF
27563
27564 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
27565 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
27566 # trailing colons and then remove the whole line if VPATH becomes empty
27567 # (actually we leave an empty line to preserve line numbers).
27568 if test "x$srcdir" = x.; then
27569   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
27570 h
27571 s///
27572 s/^/:/
27573 s/[      ]*$/:/
27574 s/:\$(srcdir):/:/g
27575 s/:\${srcdir}:/:/g
27576 s/:@srcdir@:/:/g
27577 s/^:*//
27578 s/:*$//
27579 x
27580 s/\(=[   ]*\).*/\1/
27581 G
27582 s/\n//
27583 s/^[^=]*=[       ]*$//
27584 }'
27585 fi
27586
27587 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27588 fi # test -n "$CONFIG_FILES"
27589
27590 # Set up the scripts for CONFIG_HEADERS section.
27591 # No need to generate them if there are no CONFIG_HEADERS.
27592 # This happens for instance with `./config.status Makefile'.
27593 if test -n "$CONFIG_HEADERS"; then
27594 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
27595 BEGIN {
27596 _ACEOF
27597
27598 # Transform confdefs.h into an awk script `defines.awk', embedded as
27599 # here-document in config.status, that substitutes the proper values into
27600 # config.h.in to produce config.h.
27601
27602 # Create a delimiter string that does not exist in confdefs.h, to ease
27603 # handling of long lines.
27604 ac_delim='%!_!# '
27605 for ac_last_try in false false :; do
27606   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
27607   if test -z "$ac_tt"; then
27608     break
27609   elif $ac_last_try; then
27610     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
27611   else
27612     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27613   fi
27614 done
27615
27616 # For the awk script, D is an array of macro values keyed by name,
27617 # likewise P contains macro parameters if any.  Preserve backslash
27618 # newline sequences.
27619
27620 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27621 sed -n '
27622 s/.\{148\}/&'"$ac_delim"'/g
27623 t rset
27624 :rset
27625 s/^[     ]*#[    ]*define[       ][      ]*/ /
27626 t def
27627 d
27628 :def
27629 s/\\$//
27630 t bsnl
27631 s/["\\]/\\&/g
27632 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
27633 D["\1"]=" \3"/p
27634 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
27635 d
27636 :bsnl
27637 s/["\\]/\\&/g
27638 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
27639 D["\1"]=" \3\\\\\\n"\\/p
27640 t cont
27641 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27642 t cont
27643 d
27644 :cont
27645 n
27646 s/.\{148\}/&'"$ac_delim"'/g
27647 t clear
27648 :clear
27649 s/\\$//
27650 t bsnlc
27651 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27652 d
27653 :bsnlc
27654 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27655 b cont
27656 ' <confdefs.h | sed '
27657 s/'"$ac_delim"'/"\\\
27658 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27659
27660 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27661   for (key in D) D_is_set[key] = 1
27662   FS = "\a"
27663 }
27664 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27665   line = \$ 0
27666   split(line, arg, " ")
27667   if (arg[1] == "#") {
27668     defundef = arg[2]
27669     mac1 = arg[3]
27670   } else {
27671     defundef = substr(arg[1], 2)
27672     mac1 = arg[2]
27673   }
27674   split(mac1, mac2, "(") #)
27675   macro = mac2[1]
27676   prefix = substr(line, 1, index(line, defundef) - 1)
27677   if (D_is_set[macro]) {
27678     # Preserve the white space surrounding the "#".
27679     print prefix "define", macro P[macro] D[macro]
27680     next
27681   } else {
27682     # Replace #undef with comments.  This is necessary, for example,
27683     # in the case of _POSIX_SOURCE, which is predefined and required
27684     # on some systems where configure will not decide to define it.
27685     if (defundef == "undef") {
27686       print "/*", prefix defundef, macro, "*/"
27687       next
27688     }
27689   }
27690 }
27691 { print }
27692 _ACAWK
27693 _ACEOF
27694 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27695   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
27696 fi # test -n "$CONFIG_HEADERS"
27697
27698
27699 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
27700 shift
27701 for ac_tag
27702 do
27703   case $ac_tag in
27704   :[FHLC]) ac_mode=$ac_tag; continue;;
27705   esac
27706   case $ac_mode$ac_tag in
27707   :[FHL]*:*);;
27708   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
27709   :[FH]-) ac_tag=-:-;;
27710   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27711   esac
27712   ac_save_IFS=$IFS
27713   IFS=:
27714   set x $ac_tag
27715   IFS=$ac_save_IFS
27716   shift
27717   ac_file=$1
27718   shift
27719
27720   case $ac_mode in
27721   :L) ac_source=$1;;
27722   :[FH])
27723     ac_file_inputs=
27724     for ac_f
27725     do
27726       case $ac_f in
27727       -) ac_f="$ac_tmp/stdin";;
27728       *) # Look for the file first in the build tree, then in the source tree
27729          # (if the path is not absolute).  The absolute path cannot be DOS-style,
27730          # because $ac_f cannot contain `:'.
27731          test -f "$ac_f" ||
27732            case $ac_f in
27733            [\\/$]*) false;;
27734            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27735            esac ||
27736            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
27737       esac
27738       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27739       as_fn_append ac_file_inputs " '$ac_f'"
27740     done
27741
27742     # Let's still pretend it is `configure' which instantiates (i.e., don't
27743     # use $as_me), people would be surprised to read:
27744     #    /* config.h.  Generated by config.status.  */
27745     configure_input='Generated from '`
27746           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27747         `' by configure.'
27748     if test x"$ac_file" != x-; then
27749       configure_input="$ac_file.  $configure_input"
27750       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
27751 $as_echo "$as_me: creating $ac_file" >&6;}
27752     fi
27753     # Neutralize special characters interpreted by sed in replacement strings.
27754     case $configure_input in #(
27755     *\&* | *\|* | *\\* )
27756        ac_sed_conf_input=`$as_echo "$configure_input" |
27757        sed 's/[\\\\&|]/\\\\&/g'`;; #(
27758     *) ac_sed_conf_input=$configure_input;;
27759     esac
27760
27761     case $ac_tag in
27762     *:-:* | *:-) cat >"$ac_tmp/stdin" \
27763       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
27764     esac
27765     ;;
27766   esac
27767
27768   ac_dir=`$as_dirname -- "$ac_file" ||
27769 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27770          X"$ac_file" : 'X\(//\)[^/]' \| \
27771          X"$ac_file" : 'X\(//\)$' \| \
27772          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27773 $as_echo X"$ac_file" |
27774     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27775             s//\1/
27776             q
27777           }
27778           /^X\(\/\/\)[^/].*/{
27779             s//\1/
27780             q
27781           }
27782           /^X\(\/\/\)$/{
27783             s//\1/
27784             q
27785           }
27786           /^X\(\/\).*/{
27787             s//\1/
27788             q
27789           }
27790           s/.*/./; q'`
27791   as_dir="$ac_dir"; as_fn_mkdir_p
27792   ac_builddir=.
27793
27794 case "$ac_dir" in
27795 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27796 *)
27797   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27798   # A ".." for each directory in $ac_dir_suffix.
27799   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27800   case $ac_top_builddir_sub in
27801   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27802   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27803   esac ;;
27804 esac
27805 ac_abs_top_builddir=$ac_pwd
27806 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27807 # for backward compatibility:
27808 ac_top_builddir=$ac_top_build_prefix
27809
27810 case $srcdir in
27811   .)  # We are building in place.
27812     ac_srcdir=.
27813     ac_top_srcdir=$ac_top_builddir_sub
27814     ac_abs_top_srcdir=$ac_pwd ;;
27815   [\\/]* | ?:[\\/]* )  # Absolute name.
27816     ac_srcdir=$srcdir$ac_dir_suffix;
27817     ac_top_srcdir=$srcdir
27818     ac_abs_top_srcdir=$srcdir ;;
27819   *) # Relative name.
27820     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27821     ac_top_srcdir=$ac_top_build_prefix$srcdir
27822     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27823 esac
27824 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27825
27826
27827   case $ac_mode in
27828   :F)
27829   #
27830   # CONFIG_FILE
27831   #
27832
27833   case $INSTALL in
27834   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27835   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27836   esac
27837 _ACEOF
27838
27839 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27840 # If the template does not know about datarootdir, expand it.
27841 # FIXME: This hack should be removed a few years after 2.60.
27842 ac_datarootdir_hack=; ac_datarootdir_seen=
27843 ac_sed_dataroot='
27844 /datarootdir/ {
27845   p
27846   q
27847 }
27848 /@datadir@/p
27849 /@docdir@/p
27850 /@infodir@/p
27851 /@localedir@/p
27852 /@mandir@/p'
27853 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27854 *datarootdir*) ac_datarootdir_seen=yes;;
27855 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27856   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27857 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27858 _ACEOF
27859 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27860   ac_datarootdir_hack='
27861   s&@datadir@&$datadir&g
27862   s&@docdir@&$docdir&g
27863   s&@infodir@&$infodir&g
27864   s&@localedir@&$localedir&g
27865   s&@mandir@&$mandir&g
27866   s&\\\${datarootdir}&$datarootdir&g' ;;
27867 esac
27868 _ACEOF
27869
27870 # Neutralize VPATH when `$srcdir' = `.'.
27871 # Shell code in configure.ac might set extrasub.
27872 # FIXME: do we really want to maintain this feature?
27873 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27874 ac_sed_extra="$ac_vpsub
27875 $extrasub
27876 _ACEOF
27877 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27878 :t
27879 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27880 s|@configure_input@|$ac_sed_conf_input|;t t
27881 s&@top_builddir@&$ac_top_builddir_sub&;t t
27882 s&@top_build_prefix@&$ac_top_build_prefix&;t t
27883 s&@srcdir@&$ac_srcdir&;t t
27884 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27885 s&@top_srcdir@&$ac_top_srcdir&;t t
27886 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27887 s&@builddir@&$ac_builddir&;t t
27888 s&@abs_builddir@&$ac_abs_builddir&;t t
27889 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27890 s&@INSTALL@&$ac_INSTALL&;t t
27891 $ac_datarootdir_hack
27892 "
27893 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
27894   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27895
27896 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27897   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
27898   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
27899       "$ac_tmp/out"`; test -z "$ac_out"; } &&
27900   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27901 which seems to be undefined.  Please make sure it is defined" >&5
27902 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27903 which seems to be undefined.  Please make sure it is defined" >&2;}
27904
27905   rm -f "$ac_tmp/stdin"
27906   case $ac_file in
27907   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
27908   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
27909   esac \
27910   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27911  ;;
27912   :H)
27913   #
27914   # CONFIG_HEADER
27915   #
27916   if test x"$ac_file" != x-; then
27917     {
27918       $as_echo "/* $configure_input  */" \
27919       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
27920     } >"$ac_tmp/config.h" \
27921       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27922     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
27923       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
27924 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27925     else
27926       rm -f "$ac_file"
27927       mv "$ac_tmp/config.h" "$ac_file" \
27928         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27929     fi
27930   else
27931     $as_echo "/* $configure_input  */" \
27932       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
27933       || as_fn_error $? "could not create -" "$LINENO" 5
27934   fi
27935  ;;
27936
27937   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27938 $as_echo "$as_me: executing $ac_file commands" >&6;}
27939  ;;
27940   esac
27941
27942
27943   case $ac_file$ac_mode in
27944     "libtool":C)
27945
27946     # See if we are running on zsh, and set the options which allow our
27947     # commands through without removal of \ escapes.
27948     if test -n "${ZSH_VERSION+set}" ; then
27949       setopt NO_GLOB_SUBST
27950     fi
27951
27952     cfgfile="${ofile}T"
27953     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
27954     $RM "$cfgfile"
27955
27956     cat <<_LT_EOF >> "$cfgfile"
27957 #! $SHELL
27958
27959 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
27960 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
27961 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
27962 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
27963 #
27964 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
27965 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
27966 #                 Foundation, Inc.
27967 #   Written by Gordon Matzigkeit, 1996
27968 #
27969 #   This file is part of GNU Libtool.
27970 #
27971 # GNU Libtool is free software; you can redistribute it and/or
27972 # modify it under the terms of the GNU General Public License as
27973 # published by the Free Software Foundation; either version 2 of
27974 # the License, or (at your option) any later version.
27975 #
27976 # As a special exception to the GNU General Public License,
27977 # if you distribute this file as part of a program or library that
27978 # is built using GNU Libtool, you may include this file under the
27979 # same distribution terms that you use for the rest of that program.
27980 #
27981 # GNU Libtool is distributed in the hope that it will be useful,
27982 # but WITHOUT ANY WARRANTY; without even the implied warranty of
27983 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
27984 # GNU General Public License for more details.
27985 #
27986 # You should have received a copy of the GNU General Public License
27987 # along with GNU Libtool; see the file COPYING.  If not, a copy
27988 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
27989 # obtained by writing to the Free Software Foundation, Inc.,
27990 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
27991
27992
27993 # The names of the tagged configurations supported by this script.
27994 available_tags="RC CXX "
27995
27996 # ### BEGIN LIBTOOL CONFIG
27997
27998 # Which release of libtool.m4 was used?
27999 macro_version=$macro_version
28000 macro_revision=$macro_revision
28001
28002 # Assembler program.
28003 AS=$lt_AS
28004
28005 # DLL creation program.
28006 DLLTOOL=$lt_DLLTOOL
28007
28008 # Object dumper program.
28009 OBJDUMP=$lt_OBJDUMP
28010
28011 # Whether or not to build shared libraries.
28012 build_libtool_libs=$enable_shared
28013
28014 # Whether or not to build static libraries.
28015 build_old_libs=$enable_static
28016
28017 # What type of objects to build.
28018 pic_mode=$pic_mode
28019
28020 # Whether or not to optimize for fast installation.
28021 fast_install=$enable_fast_install
28022
28023 # Shell to use when invoking shell scripts.
28024 SHELL=$lt_SHELL
28025
28026 # An echo program that protects backslashes.
28027 ECHO=$lt_ECHO
28028
28029 # The PATH separator for the build system.
28030 PATH_SEPARATOR=$lt_PATH_SEPARATOR
28031
28032 # The host system.
28033 host_alias=$host_alias
28034 host=$host
28035 host_os=$host_os
28036
28037 # The build system.
28038 build_alias=$build_alias
28039 build=$build
28040 build_os=$build_os
28041
28042 # A sed program that does not truncate output.
28043 SED=$lt_SED
28044
28045 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
28046 Xsed="\$SED -e 1s/^X//"
28047
28048 # A grep program that handles long lines.
28049 GREP=$lt_GREP
28050
28051 # An ERE matcher.
28052 EGREP=$lt_EGREP
28053
28054 # A literal string matcher.
28055 FGREP=$lt_FGREP
28056
28057 # A BSD- or MS-compatible name lister.
28058 NM=$lt_NM
28059
28060 # Whether we need soft or hard links.
28061 LN_S=$lt_LN_S
28062
28063 # What is the maximum length of a command?
28064 max_cmd_len=$max_cmd_len
28065
28066 # Object file suffix (normally "o").
28067 objext=$ac_objext
28068
28069 # Executable file suffix (normally "").
28070 exeext=$exeext
28071
28072 # whether the shell understands "unset".
28073 lt_unset=$lt_unset
28074
28075 # turn spaces into newlines.
28076 SP2NL=$lt_lt_SP2NL
28077
28078 # turn newlines into spaces.
28079 NL2SP=$lt_lt_NL2SP
28080
28081 # convert \$build file names to \$host format.
28082 to_host_file_cmd=$lt_cv_to_host_file_cmd
28083
28084 # convert \$build files to toolchain format.
28085 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
28086
28087 # Method to check whether dependent libraries are shared objects.
28088 deplibs_check_method=$lt_deplibs_check_method
28089
28090 # Command to use when deplibs_check_method = "file_magic".
28091 file_magic_cmd=$lt_file_magic_cmd
28092
28093 # How to find potential files when deplibs_check_method = "file_magic".
28094 file_magic_glob=$lt_file_magic_glob
28095
28096 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
28097 want_nocaseglob=$lt_want_nocaseglob
28098
28099 # Command to associate shared and link libraries.
28100 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
28101
28102 # The archiver.
28103 AR=$lt_AR
28104
28105 # Flags to create an archive.
28106 AR_FLAGS=$lt_AR_FLAGS
28107
28108 # How to feed a file listing to the archiver.
28109 archiver_list_spec=$lt_archiver_list_spec
28110
28111 # A symbol stripping program.
28112 STRIP=$lt_STRIP
28113
28114 # Commands used to install an old-style archive.
28115 RANLIB=$lt_RANLIB
28116 old_postinstall_cmds=$lt_old_postinstall_cmds
28117 old_postuninstall_cmds=$lt_old_postuninstall_cmds
28118
28119 # Whether to use a lock for old archive extraction.
28120 lock_old_archive_extraction=$lock_old_archive_extraction
28121
28122 # A C compiler.
28123 LTCC=$lt_CC
28124
28125 # LTCC compiler flags.
28126 LTCFLAGS=$lt_CFLAGS
28127
28128 # Take the output of nm and produce a listing of raw symbols and C names.
28129 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
28130
28131 # Transform the output of nm in a proper C declaration.
28132 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
28133
28134 # Transform the output of nm in a C name address pair.
28135 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
28136
28137 # Transform the output of nm in a C name address pair when lib prefix is needed.
28138 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
28139
28140 # Specify filename containing input files for \$NM.
28141 nm_file_list_spec=$lt_nm_file_list_spec
28142
28143 # The root where to search for dependent libraries,and in which our libraries should be installed.
28144 lt_sysroot=$lt_sysroot
28145
28146 # The name of the directory that contains temporary libtool files.
28147 objdir=$objdir
28148
28149 # Used to examine libraries when file_magic_cmd begins with "file".
28150 MAGIC_CMD=$MAGIC_CMD
28151
28152 # Must we lock files when doing compilation?
28153 need_locks=$lt_need_locks
28154
28155 # Manifest tool.
28156 MANIFEST_TOOL=$lt_MANIFEST_TOOL
28157
28158 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
28159 DSYMUTIL=$lt_DSYMUTIL
28160
28161 # Tool to change global to local symbols on Mac OS X.
28162 NMEDIT=$lt_NMEDIT
28163
28164 # Tool to manipulate fat objects and archives on Mac OS X.
28165 LIPO=$lt_LIPO
28166
28167 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
28168 OTOOL=$lt_OTOOL
28169
28170 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
28171 OTOOL64=$lt_OTOOL64
28172
28173 # Old archive suffix (normally "a").
28174 libext=$libext
28175
28176 # Shared library suffix (normally ".so").
28177 shrext_cmds=$lt_shrext_cmds
28178
28179 # The commands to extract the exported symbol list from a shared archive.
28180 extract_expsyms_cmds=$lt_extract_expsyms_cmds
28181
28182 # Variables whose values should be saved in libtool wrapper scripts and
28183 # restored at link time.
28184 variables_saved_for_relink=$lt_variables_saved_for_relink
28185
28186 # Do we need the "lib" prefix for modules?
28187 need_lib_prefix=$need_lib_prefix
28188
28189 # Do we need a version for libraries?
28190 need_version=$need_version
28191
28192 # Library versioning type.
28193 version_type=$version_type
28194
28195 # Shared library runtime path variable.
28196 runpath_var=$runpath_var
28197
28198 # Shared library path variable.
28199 shlibpath_var=$shlibpath_var
28200
28201 # Is shlibpath searched before the hard-coded library search path?
28202 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
28203
28204 # Format of library name prefix.
28205 libname_spec=$lt_libname_spec
28206
28207 # List of archive names.  First name is the real one, the rest are links.
28208 # The last name is the one that the linker finds with -lNAME
28209 library_names_spec=$lt_library_names_spec
28210
28211 # The coded name of the library, if different from the real name.
28212 soname_spec=$lt_soname_spec
28213
28214 # Permission mode override for installation of shared libraries.
28215 install_override_mode=$lt_install_override_mode
28216
28217 # Command to use after installation of a shared archive.
28218 postinstall_cmds=$lt_postinstall_cmds
28219
28220 # Command to use after uninstallation of a shared archive.
28221 postuninstall_cmds=$lt_postuninstall_cmds
28222
28223 # Commands used to finish a libtool library installation in a directory.
28224 finish_cmds=$lt_finish_cmds
28225
28226 # As "finish_cmds", except a single script fragment to be evaled but
28227 # not shown.
28228 finish_eval=$lt_finish_eval
28229
28230 # Whether we should hardcode library paths into libraries.
28231 hardcode_into_libs=$hardcode_into_libs
28232
28233 # Compile-time system search path for libraries.
28234 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
28235
28236 # Run-time system search path for libraries.
28237 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
28238
28239 # Whether dlopen is supported.
28240 dlopen_support=$enable_dlopen
28241
28242 # Whether dlopen of programs is supported.
28243 dlopen_self=$enable_dlopen_self
28244
28245 # Whether dlopen of statically linked programs is supported.
28246 dlopen_self_static=$enable_dlopen_self_static
28247
28248 # Commands to strip libraries.
28249 old_striplib=$lt_old_striplib
28250 striplib=$lt_striplib
28251
28252
28253 # The linker used to build libraries.
28254 LD=$lt_LD
28255
28256 # How to create reloadable object files.
28257 reload_flag=$lt_reload_flag
28258 reload_cmds=$lt_reload_cmds
28259
28260 # Commands used to build an old-style archive.
28261 old_archive_cmds=$lt_old_archive_cmds
28262
28263 # A language specific compiler.
28264 CC=$lt_compiler
28265
28266 # Is the compiler the GNU compiler?
28267 with_gcc=$GCC
28268
28269 # Compiler flag to turn off builtin functions.
28270 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
28271
28272 # Additional compiler flags for building library objects.
28273 pic_flag=$lt_lt_prog_compiler_pic
28274
28275 # How to pass a linker flag through the compiler.
28276 wl=$lt_lt_prog_compiler_wl
28277
28278 # Compiler flag to prevent dynamic linking.
28279 link_static_flag=$lt_lt_prog_compiler_static
28280
28281 # Does compiler simultaneously support -c and -o options?
28282 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
28283
28284 # Whether or not to add -lc for building shared libraries.
28285 build_libtool_need_lc=$archive_cmds_need_lc
28286
28287 # Whether or not to disallow shared libs when runtime libs are static.
28288 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
28289
28290 # Compiler flag to allow reflexive dlopens.
28291 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
28292
28293 # Compiler flag to generate shared objects directly from archives.
28294 whole_archive_flag_spec=$lt_whole_archive_flag_spec
28295
28296 # Whether the compiler copes with passing no objects directly.
28297 compiler_needs_object=$lt_compiler_needs_object
28298
28299 # Create an old-style archive from a shared archive.
28300 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
28301
28302 # Create a temporary old-style archive to link instead of a shared archive.
28303 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
28304
28305 # Commands used to build a shared archive.
28306 archive_cmds=$lt_archive_cmds
28307 archive_expsym_cmds=$lt_archive_expsym_cmds
28308
28309 # Commands used to build a loadable module if different from building
28310 # a shared archive.
28311 module_cmds=$lt_module_cmds
28312 module_expsym_cmds=$lt_module_expsym_cmds
28313
28314 # Whether we are building with GNU ld or not.
28315 with_gnu_ld=$lt_with_gnu_ld
28316
28317 # Flag that allows shared libraries with undefined symbols to be built.
28318 allow_undefined_flag=$lt_allow_undefined_flag
28319
28320 # Flag that enforces no undefined symbols.
28321 no_undefined_flag=$lt_no_undefined_flag
28322
28323 # Flag to hardcode \$libdir into a binary during linking.
28324 # This must work even if \$libdir does not exist
28325 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
28326
28327 # Whether we need a single "-rpath" flag with a separated argument.
28328 hardcode_libdir_separator=$lt_hardcode_libdir_separator
28329
28330 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28331 # DIR into the resulting binary.
28332 hardcode_direct=$hardcode_direct
28333
28334 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28335 # DIR into the resulting binary and the resulting library dependency is
28336 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
28337 # library is relocated.
28338 hardcode_direct_absolute=$hardcode_direct_absolute
28339
28340 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28341 # into the resulting binary.
28342 hardcode_minus_L=$hardcode_minus_L
28343
28344 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28345 # into the resulting binary.
28346 hardcode_shlibpath_var=$hardcode_shlibpath_var
28347
28348 # Set to "yes" if building a shared library automatically hardcodes DIR
28349 # into the library and all subsequent libraries and executables linked
28350 # against it.
28351 hardcode_automatic=$hardcode_automatic
28352
28353 # Set to yes if linker adds runtime paths of dependent libraries
28354 # to runtime path list.
28355 inherit_rpath=$inherit_rpath
28356
28357 # Whether libtool must link a program against all its dependency libraries.
28358 link_all_deplibs=$link_all_deplibs
28359
28360 # Set to "yes" if exported symbols are required.
28361 always_export_symbols=$always_export_symbols
28362
28363 # The commands to list exported symbols.
28364 export_symbols_cmds=$lt_export_symbols_cmds
28365
28366 # Symbols that should not be listed in the preloaded symbols.
28367 exclude_expsyms=$lt_exclude_expsyms
28368
28369 # Symbols that must always be exported.
28370 include_expsyms=$lt_include_expsyms
28371
28372 # Commands necessary for linking programs (against libraries) with templates.
28373 prelink_cmds=$lt_prelink_cmds
28374
28375 # Commands necessary for finishing linking programs.
28376 postlink_cmds=$lt_postlink_cmds
28377
28378 # Specify filename containing input files.
28379 file_list_spec=$lt_file_list_spec
28380
28381 # How to hardcode a shared library path into an executable.
28382 hardcode_action=$hardcode_action
28383
28384 # The directories searched by this compiler when creating a shared library.
28385 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
28386
28387 # Dependencies to place before and after the objects being linked to
28388 # create a shared library.
28389 predep_objects=$lt_predep_objects
28390 postdep_objects=$lt_postdep_objects
28391 predeps=$lt_predeps
28392 postdeps=$lt_postdeps
28393
28394 # The library search path used internally by the compiler when linking
28395 # a shared library.
28396 compiler_lib_search_path=$lt_compiler_lib_search_path
28397
28398 # ### END LIBTOOL CONFIG
28399
28400 _LT_EOF
28401
28402   case $host_os in
28403   aix3*)
28404     cat <<\_LT_EOF >> "$cfgfile"
28405 # AIX sometimes has problems with the GCC collect2 program.  For some
28406 # reason, if we set the COLLECT_NAMES environment variable, the problems
28407 # vanish in a puff of smoke.
28408 if test "X${COLLECT_NAMES+set}" != Xset; then
28409   COLLECT_NAMES=
28410   export COLLECT_NAMES
28411 fi
28412 _LT_EOF
28413     ;;
28414   esac
28415
28416
28417 ltmain="$ac_aux_dir/ltmain.sh"
28418
28419
28420   # We use sed instead of cat because bash on DJGPP gets confused if
28421   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
28422   # text mode, it properly converts lines to CR/LF.  This bash problem
28423   # is reportedly fixed, but why not run on old versions too?
28424   sed '$q' "$ltmain" >> "$cfgfile" \
28425      || (rm -f "$cfgfile"; exit 1)
28426
28427   if test x"$xsi_shell" = xyes; then
28428   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
28429 func_dirname ()\
28430 {\
28431 \    case ${1} in\
28432 \      */*) func_dirname_result="${1%/*}${2}" ;;\
28433 \      *  ) func_dirname_result="${3}" ;;\
28434 \    esac\
28435 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
28436   && mv -f "$cfgfile.tmp" "$cfgfile" \
28437     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28438 test 0 -eq $? || _lt_function_replace_fail=:
28439
28440
28441   sed -e '/^func_basename ()$/,/^} # func_basename /c\
28442 func_basename ()\
28443 {\
28444 \    func_basename_result="${1##*/}"\
28445 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
28446   && mv -f "$cfgfile.tmp" "$cfgfile" \
28447     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28448 test 0 -eq $? || _lt_function_replace_fail=:
28449
28450
28451   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
28452 func_dirname_and_basename ()\
28453 {\
28454 \    case ${1} in\
28455 \      */*) func_dirname_result="${1%/*}${2}" ;;\
28456 \      *  ) func_dirname_result="${3}" ;;\
28457 \    esac\
28458 \    func_basename_result="${1##*/}"\
28459 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
28460   && mv -f "$cfgfile.tmp" "$cfgfile" \
28461     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28462 test 0 -eq $? || _lt_function_replace_fail=:
28463
28464
28465   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
28466 func_stripname ()\
28467 {\
28468 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
28469 \    # positional parameters, so assign one to ordinary parameter first.\
28470 \    func_stripname_result=${3}\
28471 \    func_stripname_result=${func_stripname_result#"${1}"}\
28472 \    func_stripname_result=${func_stripname_result%"${2}"}\
28473 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
28474   && mv -f "$cfgfile.tmp" "$cfgfile" \
28475     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28476 test 0 -eq $? || _lt_function_replace_fail=:
28477
28478
28479   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
28480 func_split_long_opt ()\
28481 {\
28482 \    func_split_long_opt_name=${1%%=*}\
28483 \    func_split_long_opt_arg=${1#*=}\
28484 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
28485   && mv -f "$cfgfile.tmp" "$cfgfile" \
28486     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28487 test 0 -eq $? || _lt_function_replace_fail=:
28488
28489
28490   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
28491 func_split_short_opt ()\
28492 {\
28493 \    func_split_short_opt_arg=${1#??}\
28494 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
28495 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
28496   && mv -f "$cfgfile.tmp" "$cfgfile" \
28497     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28498 test 0 -eq $? || _lt_function_replace_fail=:
28499
28500
28501   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
28502 func_lo2o ()\
28503 {\
28504 \    case ${1} in\
28505 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
28506 \      *)    func_lo2o_result=${1} ;;\
28507 \    esac\
28508 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
28509   && mv -f "$cfgfile.tmp" "$cfgfile" \
28510     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28511 test 0 -eq $? || _lt_function_replace_fail=:
28512
28513
28514   sed -e '/^func_xform ()$/,/^} # func_xform /c\
28515 func_xform ()\
28516 {\
28517     func_xform_result=${1%.*}.lo\
28518 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
28519   && mv -f "$cfgfile.tmp" "$cfgfile" \
28520     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28521 test 0 -eq $? || _lt_function_replace_fail=:
28522
28523
28524   sed -e '/^func_arith ()$/,/^} # func_arith /c\
28525 func_arith ()\
28526 {\
28527     func_arith_result=$(( $* ))\
28528 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
28529   && mv -f "$cfgfile.tmp" "$cfgfile" \
28530     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28531 test 0 -eq $? || _lt_function_replace_fail=:
28532
28533
28534   sed -e '/^func_len ()$/,/^} # func_len /c\
28535 func_len ()\
28536 {\
28537     func_len_result=${#1}\
28538 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
28539   && mv -f "$cfgfile.tmp" "$cfgfile" \
28540     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28541 test 0 -eq $? || _lt_function_replace_fail=:
28542
28543 fi
28544
28545 if test x"$lt_shell_append" = xyes; then
28546   sed -e '/^func_append ()$/,/^} # func_append /c\
28547 func_append ()\
28548 {\
28549     eval "${1}+=\\${2}"\
28550 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
28551   && mv -f "$cfgfile.tmp" "$cfgfile" \
28552     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28553 test 0 -eq $? || _lt_function_replace_fail=:
28554
28555
28556   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
28557 func_append_quoted ()\
28558 {\
28559 \    func_quote_for_eval "${2}"\
28560 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
28561 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
28562   && mv -f "$cfgfile.tmp" "$cfgfile" \
28563     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28564 test 0 -eq $? || _lt_function_replace_fail=:
28565
28566
28567   # Save a `func_append' function call where possible by direct use of '+='
28568   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
28569     && mv -f "$cfgfile.tmp" "$cfgfile" \
28570       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28571   test 0 -eq $? || _lt_function_replace_fail=:
28572 else
28573   # Save a `func_append' function call even when '+=' is not available
28574   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
28575     && mv -f "$cfgfile.tmp" "$cfgfile" \
28576       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28577   test 0 -eq $? || _lt_function_replace_fail=:
28578 fi
28579
28580 if test x"$_lt_function_replace_fail" = x":"; then
28581   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
28582 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
28583 fi
28584
28585
28586    mv -f "$cfgfile" "$ofile" ||
28587     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
28588   chmod +x "$ofile"
28589
28590
28591     cat <<_LT_EOF >> "$ofile"
28592
28593 # ### BEGIN LIBTOOL TAG CONFIG: RC
28594
28595 # The linker used to build libraries.
28596 LD=$lt_LD_RC
28597
28598 # How to create reloadable object files.
28599 reload_flag=$lt_reload_flag_RC
28600 reload_cmds=$lt_reload_cmds_RC
28601
28602 # Commands used to build an old-style archive.
28603 old_archive_cmds=$lt_old_archive_cmds_RC
28604
28605 # A language specific compiler.
28606 CC=$lt_compiler_RC
28607
28608 # Is the compiler the GNU compiler?
28609 with_gcc=$GCC_RC
28610
28611 # Compiler flag to turn off builtin functions.
28612 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
28613
28614 # Additional compiler flags for building library objects.
28615 pic_flag=$lt_lt_prog_compiler_pic_RC
28616
28617 # How to pass a linker flag through the compiler.
28618 wl=$lt_lt_prog_compiler_wl_RC
28619
28620 # Compiler flag to prevent dynamic linking.
28621 link_static_flag=$lt_lt_prog_compiler_static_RC
28622
28623 # Does compiler simultaneously support -c and -o options?
28624 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
28625
28626 # Whether or not to add -lc for building shared libraries.
28627 build_libtool_need_lc=$archive_cmds_need_lc_RC
28628
28629 # Whether or not to disallow shared libs when runtime libs are static.
28630 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
28631
28632 # Compiler flag to allow reflexive dlopens.
28633 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
28634
28635 # Compiler flag to generate shared objects directly from archives.
28636 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
28637
28638 # Whether the compiler copes with passing no objects directly.
28639 compiler_needs_object=$lt_compiler_needs_object_RC
28640
28641 # Create an old-style archive from a shared archive.
28642 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
28643
28644 # Create a temporary old-style archive to link instead of a shared archive.
28645 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
28646
28647 # Commands used to build a shared archive.
28648 archive_cmds=$lt_archive_cmds_RC
28649 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
28650
28651 # Commands used to build a loadable module if different from building
28652 # a shared archive.
28653 module_cmds=$lt_module_cmds_RC
28654 module_expsym_cmds=$lt_module_expsym_cmds_RC
28655
28656 # Whether we are building with GNU ld or not.
28657 with_gnu_ld=$lt_with_gnu_ld_RC
28658
28659 # Flag that allows shared libraries with undefined symbols to be built.
28660 allow_undefined_flag=$lt_allow_undefined_flag_RC
28661
28662 # Flag that enforces no undefined symbols.
28663 no_undefined_flag=$lt_no_undefined_flag_RC
28664
28665 # Flag to hardcode \$libdir into a binary during linking.
28666 # This must work even if \$libdir does not exist
28667 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
28668
28669 # Whether we need a single "-rpath" flag with a separated argument.
28670 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
28671
28672 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28673 # DIR into the resulting binary.
28674 hardcode_direct=$hardcode_direct_RC
28675
28676 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28677 # DIR into the resulting binary and the resulting library dependency is
28678 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
28679 # library is relocated.
28680 hardcode_direct_absolute=$hardcode_direct_absolute_RC
28681
28682 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28683 # into the resulting binary.
28684 hardcode_minus_L=$hardcode_minus_L_RC
28685
28686 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28687 # into the resulting binary.
28688 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
28689
28690 # Set to "yes" if building a shared library automatically hardcodes DIR
28691 # into the library and all subsequent libraries and executables linked
28692 # against it.
28693 hardcode_automatic=$hardcode_automatic_RC
28694
28695 # Set to yes if linker adds runtime paths of dependent libraries
28696 # to runtime path list.
28697 inherit_rpath=$inherit_rpath_RC
28698
28699 # Whether libtool must link a program against all its dependency libraries.
28700 link_all_deplibs=$link_all_deplibs_RC
28701
28702 # Set to "yes" if exported symbols are required.
28703 always_export_symbols=$always_export_symbols_RC
28704
28705 # The commands to list exported symbols.
28706 export_symbols_cmds=$lt_export_symbols_cmds_RC
28707
28708 # Symbols that should not be listed in the preloaded symbols.
28709 exclude_expsyms=$lt_exclude_expsyms_RC
28710
28711 # Symbols that must always be exported.
28712 include_expsyms=$lt_include_expsyms_RC
28713
28714 # Commands necessary for linking programs (against libraries) with templates.
28715 prelink_cmds=$lt_prelink_cmds_RC
28716
28717 # Commands necessary for finishing linking programs.
28718 postlink_cmds=$lt_postlink_cmds_RC
28719
28720 # Specify filename containing input files.
28721 file_list_spec=$lt_file_list_spec_RC
28722
28723 # How to hardcode a shared library path into an executable.
28724 hardcode_action=$hardcode_action_RC
28725
28726 # The directories searched by this compiler when creating a shared library.
28727 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
28728
28729 # Dependencies to place before and after the objects being linked to
28730 # create a shared library.
28731 predep_objects=$lt_predep_objects_RC
28732 postdep_objects=$lt_postdep_objects_RC
28733 predeps=$lt_predeps_RC
28734 postdeps=$lt_postdeps_RC
28735
28736 # The library search path used internally by the compiler when linking
28737 # a shared library.
28738 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
28739
28740 # ### END LIBTOOL TAG CONFIG: RC
28741 _LT_EOF
28742
28743
28744     cat <<_LT_EOF >> "$ofile"
28745
28746 # ### BEGIN LIBTOOL TAG CONFIG: CXX
28747
28748 # The linker used to build libraries.
28749 LD=$lt_LD_CXX
28750
28751 # How to create reloadable object files.
28752 reload_flag=$lt_reload_flag_CXX
28753 reload_cmds=$lt_reload_cmds_CXX
28754
28755 # Commands used to build an old-style archive.
28756 old_archive_cmds=$lt_old_archive_cmds_CXX
28757
28758 # A language specific compiler.
28759 CC=$lt_compiler_CXX
28760
28761 # Is the compiler the GNU compiler?
28762 with_gcc=$GCC_CXX
28763
28764 # Compiler flag to turn off builtin functions.
28765 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
28766
28767 # Additional compiler flags for building library objects.
28768 pic_flag=$lt_lt_prog_compiler_pic_CXX
28769
28770 # How to pass a linker flag through the compiler.
28771 wl=$lt_lt_prog_compiler_wl_CXX
28772
28773 # Compiler flag to prevent dynamic linking.
28774 link_static_flag=$lt_lt_prog_compiler_static_CXX
28775
28776 # Does compiler simultaneously support -c and -o options?
28777 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
28778
28779 # Whether or not to add -lc for building shared libraries.
28780 build_libtool_need_lc=$archive_cmds_need_lc_CXX
28781
28782 # Whether or not to disallow shared libs when runtime libs are static.
28783 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
28784
28785 # Compiler flag to allow reflexive dlopens.
28786 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
28787
28788 # Compiler flag to generate shared objects directly from archives.
28789 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
28790
28791 # Whether the compiler copes with passing no objects directly.
28792 compiler_needs_object=$lt_compiler_needs_object_CXX
28793
28794 # Create an old-style archive from a shared archive.
28795 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
28796
28797 # Create a temporary old-style archive to link instead of a shared archive.
28798 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
28799
28800 # Commands used to build a shared archive.
28801 archive_cmds=$lt_archive_cmds_CXX
28802 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
28803
28804 # Commands used to build a loadable module if different from building
28805 # a shared archive.
28806 module_cmds=$lt_module_cmds_CXX
28807 module_expsym_cmds=$lt_module_expsym_cmds_CXX
28808
28809 # Whether we are building with GNU ld or not.
28810 with_gnu_ld=$lt_with_gnu_ld_CXX
28811
28812 # Flag that allows shared libraries with undefined symbols to be built.
28813 allow_undefined_flag=$lt_allow_undefined_flag_CXX
28814
28815 # Flag that enforces no undefined symbols.
28816 no_undefined_flag=$lt_no_undefined_flag_CXX
28817
28818 # Flag to hardcode \$libdir into a binary during linking.
28819 # This must work even if \$libdir does not exist
28820 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
28821
28822 # Whether we need a single "-rpath" flag with a separated argument.
28823 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
28824
28825 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28826 # DIR into the resulting binary.
28827 hardcode_direct=$hardcode_direct_CXX
28828
28829 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28830 # DIR into the resulting binary and the resulting library dependency is
28831 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
28832 # library is relocated.
28833 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
28834
28835 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28836 # into the resulting binary.
28837 hardcode_minus_L=$hardcode_minus_L_CXX
28838
28839 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28840 # into the resulting binary.
28841 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
28842
28843 # Set to "yes" if building a shared library automatically hardcodes DIR
28844 # into the library and all subsequent libraries and executables linked
28845 # against it.
28846 hardcode_automatic=$hardcode_automatic_CXX
28847
28848 # Set to yes if linker adds runtime paths of dependent libraries
28849 # to runtime path list.
28850 inherit_rpath=$inherit_rpath_CXX
28851
28852 # Whether libtool must link a program against all its dependency libraries.
28853 link_all_deplibs=$link_all_deplibs_CXX
28854
28855 # Set to "yes" if exported symbols are required.
28856 always_export_symbols=$always_export_symbols_CXX
28857
28858 # The commands to list exported symbols.
28859 export_symbols_cmds=$lt_export_symbols_cmds_CXX
28860
28861 # Symbols that should not be listed in the preloaded symbols.
28862 exclude_expsyms=$lt_exclude_expsyms_CXX
28863
28864 # Symbols that must always be exported.
28865 include_expsyms=$lt_include_expsyms_CXX
28866
28867 # Commands necessary for linking programs (against libraries) with templates.
28868 prelink_cmds=$lt_prelink_cmds_CXX
28869
28870 # Commands necessary for finishing linking programs.
28871 postlink_cmds=$lt_postlink_cmds_CXX
28872
28873 # Specify filename containing input files.
28874 file_list_spec=$lt_file_list_spec_CXX
28875
28876 # How to hardcode a shared library path into an executable.
28877 hardcode_action=$hardcode_action_CXX
28878
28879 # The directories searched by this compiler when creating a shared library.
28880 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
28881
28882 # Dependencies to place before and after the objects being linked to
28883 # create a shared library.
28884 predep_objects=$lt_predep_objects_CXX
28885 postdep_objects=$lt_postdep_objects_CXX
28886 predeps=$lt_predeps_CXX
28887 postdeps=$lt_postdeps_CXX
28888
28889 # The library search path used internally by the compiler when linking
28890 # a shared library.
28891 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
28892
28893 # ### END LIBTOOL TAG CONFIG: CXX
28894 _LT_EOF
28895
28896  ;;
28897     "sdl2_config":C) chmod a+x sdl2-config ;;
28898     "summary":C) echo -en "$SUMMARY" ;;
28899
28900   esac
28901 done # for ac_tag
28902
28903
28904 as_fn_exit 0
28905 _ACEOF
28906 ac_clean_files=$ac_clean_files_save
28907
28908 test $ac_write_fail = 0 ||
28909   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
28910
28911
28912 # configure is writing to config.log, and then calls config.status.
28913 # config.status does its own redirection, appending to config.log.
28914 # Unfortunately, on DOS this fails, as config.log is still kept open
28915 # by configure, so config.status won't be able to write to it; its
28916 # output is simply discarded.  So we exec the FD to /dev/null,
28917 # effectively closing config.log, so it can be properly (re)opened and
28918 # appended to by config.status.  When coming back to configure, we
28919 # need to make the FD available again.
28920 if test "$no_create" != yes; then
28921   ac_cs_success=:
28922   ac_config_status_args=
28923   test "$silent" = yes &&
28924     ac_config_status_args="$ac_config_status_args --quiet"
28925   exec 5>/dev/null
28926   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28927   exec 5>>config.log
28928   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28929   # would make configure fail if this is the last instruction.
28930   $ac_cs_success || as_fn_exit 1
28931 fi
28932 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28933   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28934 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
28935 fi
28936