tizen_policy: change version of tizen_policy to 7
[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 EXTRA_LDFLAGS
634 BUILD_LDFLAGS
635 EXTRA_CFLAGS
636 BUILD_CFLAGS
637 SDLTEST_OBJECTS
638 SDLMAIN_OBJECTS
639 VERSION_OBJECTS
640 OBJECTS
641 INCLUDE
642 ac_aux_dir
643 ENABLE_STATIC_FALSE
644 ENABLE_STATIC_TRUE
645 ENABLE_SHARED_FALSE
646 ENABLE_SHARED_TRUE
647 SDL_RLD_FLAGS
648 SDL_STATIC_LIBS
649 SDL_LIBS
650 SDL_CFLAGS
651 DIRECTFBCONFIG
652 X_EXTRA_LIBS
653 X_LIBS
654 X_PRE_LIBS
655 X_CFLAGS
656 XMKMF
657 ARTSCONFIG
658 PKG_CONFIG
659 ESD_LIBS
660 ESD_CFLAGS
661 ESD_CONFIG
662 ALSA_LIBS
663 ALSA_CFLAGS
664 POW_LIB
665 LIBOBJS
666 ALLOCA
667 WINDRES
668 SET_MAKE
669 INSTALL_DATA
670 INSTALL_SCRIPT
671 INSTALL_PROGRAM
672 CXXCPP
673 ac_ct_CXX
674 CXXFLAGS
675 CXX
676 LT_AGE
677 LT_REVISION
678 LT_CURRENT
679 LT_RELEASE
680 CPP
681 OTOOL64
682 OTOOL
683 LIPO
684 NMEDIT
685 DSYMUTIL
686 MANIFEST_TOOL
687 AWK
688 RANLIB
689 STRIP
690 ac_ct_AR
691 AR
692 LN_S
693 NM
694 ac_ct_DUMPBIN
695 DUMPBIN
696 LD
697 FGREP
698 EGREP
699 GREP
700 SED
701 OBJEXT
702 EXEEXT
703 ac_ct_CC
704 CPPFLAGS
705 LDFLAGS
706 CFLAGS
707 CC
708 host_os
709 host_vendor
710 host_cpu
711 host
712 build_os
713 build_vendor
714 build_cpu
715 build
716 LIBTOOL
717 OBJDUMP
718 DLLTOOL
719 AS
720 SDL_VERSION
721 SDL_BINARY_AGE
722 SDL_INTERFACE_AGE
723 SDL_MICRO_VERSION
724 SDL_MINOR_VERSION
725 SDL_MAJOR_VERSION
726 target_alias
727 host_alias
728 build_alias
729 LIBS
730 ECHO_T
731 ECHO_N
732 ECHO_C
733 DEFS
734 mandir
735 localedir
736 libdir
737 psdir
738 pdfdir
739 dvidir
740 htmldir
741 infodir
742 docdir
743 oldincludedir
744 includedir
745 localstatedir
746 sharedstatedir
747 sysconfdir
748 datadir
749 datarootdir
750 libexecdir
751 sbindir
752 bindir
753 program_transform_name
754 prefix
755 exec_prefix
756 PACKAGE_URL
757 PACKAGE_BUGREPORT
758 PACKAGE_STRING
759 PACKAGE_VERSION
760 PACKAGE_TARNAME
761 PACKAGE_NAME
762 PATH_SEPARATOR
763 SHELL'
764 ac_subst_files=''
765 ac_user_opts='
766 enable_option_checking
767 enable_shared
768 enable_static
769 with_pic
770 enable_fast_install
771 with_gnu_ld
772 with_sysroot
773 enable_libtool_lock
774 enable_assertions
775 enable_dependency_tracking
776 enable_libc
777 enable_gcc_atomics
778 enable_atomic
779 enable_audio
780 enable_video
781 enable_render
782 enable_events
783 enable_joystick
784 enable_haptic
785 enable_power
786 enable_filesystem
787 enable_threads
788 enable_timers
789 enable_file
790 enable_loadso
791 enable_cpuinfo
792 enable_assembly
793 enable_ssemath
794 enable_mmx
795 enable_3dnow
796 enable_sse
797 enable_sse2
798 enable_altivec
799 enable_oss
800 enable_alsa
801 with_alsa_prefix
802 with_alsa_inc_prefix
803 enable_alsatest
804 enable_alsa_shared
805 enable_esd
806 with_esd_prefix
807 with_esd_exec_prefix
808 enable_esdtest
809 enable_esd_shared
810 enable_pulseaudio
811 enable_pulseaudio_shared
812 enable_arts
813 enable_arts_shared
814 enable_nas
815 enable_nas_shared
816 enable_sndio
817 enable_sndio_shared
818 enable_diskaudio
819 enable_dummyaudio
820 enable_video_wayland
821 enable_video_wayland_qt_touch
822 enable_wayland_shared
823 enable_video_tizen
824 enable_video_mir
825 enable_mir_shared
826 enable_video_x11
827 with_x
828 enable_x11_shared
829 enable_video_x11_xcursor
830 enable_video_x11_xdbe
831 enable_video_x11_xinerama
832 enable_video_x11_xinput
833 enable_video_x11_xrandr
834 enable_video_x11_scrnsaver
835 enable_video_x11_xshape
836 enable_video_x11_vm
837 enable_video_vivante
838 enable_video_cocoa
839 enable_video_directfb
840 enable_directfb_shared
841 enable_fusionsound
842 enable_fusionsound_shared
843 enable_video_dummy
844 enable_video_opengl
845 enable_video_opengles
846 enable_video_opengles1
847 enable_video_opengles2
848 enable_video_vulkan
849 enable_libudev
850 enable_dbus
851 enable_ibus
852 enable_input_tslib
853 enable_pthreads
854 enable_pthread_sem
855 enable_directx
856 enable_sdl_dlopen
857 enable_clock_gettime
858 enable_rpath
859 enable_render_d3d
860 '
861       ac_precious_vars='build_alias
862 host_alias
863 target_alias
864 CC
865 CFLAGS
866 LDFLAGS
867 LIBS
868 CPPFLAGS
869 CPP
870 CXX
871 CXXFLAGS
872 CCC
873 CXXCPP
874 XMKMF'
875
876
877 # Initialize some variables set by options.
878 ac_init_help=
879 ac_init_version=false
880 ac_unrecognized_opts=
881 ac_unrecognized_sep=
882 # The variables have the same names as the options, with
883 # dashes changed to underlines.
884 cache_file=/dev/null
885 exec_prefix=NONE
886 no_create=
887 no_recursion=
888 prefix=NONE
889 program_prefix=NONE
890 program_suffix=NONE
891 program_transform_name=s,x,x,
892 silent=
893 site=
894 srcdir=
895 verbose=
896 x_includes=NONE
897 x_libraries=NONE
898
899 # Installation directory options.
900 # These are left unexpanded so users can "make install exec_prefix=/foo"
901 # and all the variables that are supposed to be based on exec_prefix
902 # by default will actually change.
903 # Use braces instead of parens because sh, perl, etc. also accept them.
904 # (The list follows the same order as the GNU Coding Standards.)
905 bindir='${exec_prefix}/bin'
906 sbindir='${exec_prefix}/sbin'
907 libexecdir='${exec_prefix}/libexec'
908 datarootdir='${prefix}/share'
909 datadir='${datarootdir}'
910 sysconfdir='${prefix}/etc'
911 sharedstatedir='${prefix}/com'
912 localstatedir='${prefix}/var'
913 includedir='${prefix}/include'
914 oldincludedir='/usr/include'
915 docdir='${datarootdir}/doc/${PACKAGE}'
916 infodir='${datarootdir}/info'
917 htmldir='${docdir}'
918 dvidir='${docdir}'
919 pdfdir='${docdir}'
920 psdir='${docdir}'
921 libdir='${exec_prefix}/lib'
922 localedir='${datarootdir}/locale'
923 mandir='${datarootdir}/man'
924
925 ac_prev=
926 ac_dashdash=
927 for ac_option
928 do
929   # If the previous option needs an argument, assign it.
930   if test -n "$ac_prev"; then
931     eval $ac_prev=\$ac_option
932     ac_prev=
933     continue
934   fi
935
936   case $ac_option in
937   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
938   *=)   ac_optarg= ;;
939   *)    ac_optarg=yes ;;
940   esac
941
942   # Accept the important Cygnus configure options, so we can diagnose typos.
943
944   case $ac_dashdash$ac_option in
945   --)
946     ac_dashdash=yes ;;
947
948   -bindir | --bindir | --bindi | --bind | --bin | --bi)
949     ac_prev=bindir ;;
950   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
951     bindir=$ac_optarg ;;
952
953   -build | --build | --buil | --bui | --bu)
954     ac_prev=build_alias ;;
955   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
956     build_alias=$ac_optarg ;;
957
958   -cache-file | --cache-file | --cache-fil | --cache-fi \
959   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
960     ac_prev=cache_file ;;
961   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
962   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
963     cache_file=$ac_optarg ;;
964
965   --config-cache | -C)
966     cache_file=config.cache ;;
967
968   -datadir | --datadir | --datadi | --datad)
969     ac_prev=datadir ;;
970   -datadir=* | --datadir=* | --datadi=* | --datad=*)
971     datadir=$ac_optarg ;;
972
973   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
974   | --dataroo | --dataro | --datar)
975     ac_prev=datarootdir ;;
976   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
977   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
978     datarootdir=$ac_optarg ;;
979
980   -disable-* | --disable-*)
981     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
982     # Reject names that are not valid shell variable names.
983     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
984       as_fn_error $? "invalid feature name: $ac_useropt"
985     ac_useropt_orig=$ac_useropt
986     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
987     case $ac_user_opts in
988       *"
989 "enable_$ac_useropt"
990 "*) ;;
991       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
992          ac_unrecognized_sep=', ';;
993     esac
994     eval enable_$ac_useropt=no ;;
995
996   -docdir | --docdir | --docdi | --doc | --do)
997     ac_prev=docdir ;;
998   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
999     docdir=$ac_optarg ;;
1000
1001   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1002     ac_prev=dvidir ;;
1003   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1004     dvidir=$ac_optarg ;;
1005
1006   -enable-* | --enable-*)
1007     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1008     # Reject names that are not valid shell variable names.
1009     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1010       as_fn_error $? "invalid feature name: $ac_useropt"
1011     ac_useropt_orig=$ac_useropt
1012     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1013     case $ac_user_opts in
1014       *"
1015 "enable_$ac_useropt"
1016 "*) ;;
1017       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1018          ac_unrecognized_sep=', ';;
1019     esac
1020     eval enable_$ac_useropt=\$ac_optarg ;;
1021
1022   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1023   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1024   | --exec | --exe | --ex)
1025     ac_prev=exec_prefix ;;
1026   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1027   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1028   | --exec=* | --exe=* | --ex=*)
1029     exec_prefix=$ac_optarg ;;
1030
1031   -gas | --gas | --ga | --g)
1032     # Obsolete; use --with-gas.
1033     with_gas=yes ;;
1034
1035   -help | --help | --hel | --he | -h)
1036     ac_init_help=long ;;
1037   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1038     ac_init_help=recursive ;;
1039   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1040     ac_init_help=short ;;
1041
1042   -host | --host | --hos | --ho)
1043     ac_prev=host_alias ;;
1044   -host=* | --host=* | --hos=* | --ho=*)
1045     host_alias=$ac_optarg ;;
1046
1047   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1048     ac_prev=htmldir ;;
1049   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1050   | --ht=*)
1051     htmldir=$ac_optarg ;;
1052
1053   -includedir | --includedir | --includedi | --included | --include \
1054   | --includ | --inclu | --incl | --inc)
1055     ac_prev=includedir ;;
1056   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1057   | --includ=* | --inclu=* | --incl=* | --inc=*)
1058     includedir=$ac_optarg ;;
1059
1060   -infodir | --infodir | --infodi | --infod | --info | --inf)
1061     ac_prev=infodir ;;
1062   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1063     infodir=$ac_optarg ;;
1064
1065   -libdir | --libdir | --libdi | --libd)
1066     ac_prev=libdir ;;
1067   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1068     libdir=$ac_optarg ;;
1069
1070   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1071   | --libexe | --libex | --libe)
1072     ac_prev=libexecdir ;;
1073   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1074   | --libexe=* | --libex=* | --libe=*)
1075     libexecdir=$ac_optarg ;;
1076
1077   -localedir | --localedir | --localedi | --localed | --locale)
1078     ac_prev=localedir ;;
1079   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1080     localedir=$ac_optarg ;;
1081
1082   -localstatedir | --localstatedir | --localstatedi | --localstated \
1083   | --localstate | --localstat | --localsta | --localst | --locals)
1084     ac_prev=localstatedir ;;
1085   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1086   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1087     localstatedir=$ac_optarg ;;
1088
1089   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1090     ac_prev=mandir ;;
1091   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1092     mandir=$ac_optarg ;;
1093
1094   -nfp | --nfp | --nf)
1095     # Obsolete; use --without-fp.
1096     with_fp=no ;;
1097
1098   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1099   | --no-cr | --no-c | -n)
1100     no_create=yes ;;
1101
1102   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1103   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1104     no_recursion=yes ;;
1105
1106   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1107   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1108   | --oldin | --oldi | --old | --ol | --o)
1109     ac_prev=oldincludedir ;;
1110   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1111   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1112   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1113     oldincludedir=$ac_optarg ;;
1114
1115   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1116     ac_prev=prefix ;;
1117   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1118     prefix=$ac_optarg ;;
1119
1120   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1121   | --program-pre | --program-pr | --program-p)
1122     ac_prev=program_prefix ;;
1123   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1124   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1125     program_prefix=$ac_optarg ;;
1126
1127   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1128   | --program-suf | --program-su | --program-s)
1129     ac_prev=program_suffix ;;
1130   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1131   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1132     program_suffix=$ac_optarg ;;
1133
1134   -program-transform-name | --program-transform-name \
1135   | --program-transform-nam | --program-transform-na \
1136   | --program-transform-n | --program-transform- \
1137   | --program-transform | --program-transfor \
1138   | --program-transfo | --program-transf \
1139   | --program-trans | --program-tran \
1140   | --progr-tra | --program-tr | --program-t)
1141     ac_prev=program_transform_name ;;
1142   -program-transform-name=* | --program-transform-name=* \
1143   | --program-transform-nam=* | --program-transform-na=* \
1144   | --program-transform-n=* | --program-transform-=* \
1145   | --program-transform=* | --program-transfor=* \
1146   | --program-transfo=* | --program-transf=* \
1147   | --program-trans=* | --program-tran=* \
1148   | --progr-tra=* | --program-tr=* | --program-t=*)
1149     program_transform_name=$ac_optarg ;;
1150
1151   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1152     ac_prev=pdfdir ;;
1153   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1154     pdfdir=$ac_optarg ;;
1155
1156   -psdir | --psdir | --psdi | --psd | --ps)
1157     ac_prev=psdir ;;
1158   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1159     psdir=$ac_optarg ;;
1160
1161   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1162   | -silent | --silent | --silen | --sile | --sil)
1163     silent=yes ;;
1164
1165   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1166     ac_prev=sbindir ;;
1167   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1168   | --sbi=* | --sb=*)
1169     sbindir=$ac_optarg ;;
1170
1171   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1172   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1173   | --sharedst | --shareds | --shared | --share | --shar \
1174   | --sha | --sh)
1175     ac_prev=sharedstatedir ;;
1176   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1177   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1178   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1179   | --sha=* | --sh=*)
1180     sharedstatedir=$ac_optarg ;;
1181
1182   -site | --site | --sit)
1183     ac_prev=site ;;
1184   -site=* | --site=* | --sit=*)
1185     site=$ac_optarg ;;
1186
1187   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1188     ac_prev=srcdir ;;
1189   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1190     srcdir=$ac_optarg ;;
1191
1192   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1193   | --syscon | --sysco | --sysc | --sys | --sy)
1194     ac_prev=sysconfdir ;;
1195   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1196   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1197     sysconfdir=$ac_optarg ;;
1198
1199   -target | --target | --targe | --targ | --tar | --ta | --t)
1200     ac_prev=target_alias ;;
1201   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1202     target_alias=$ac_optarg ;;
1203
1204   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1205     verbose=yes ;;
1206
1207   -version | --version | --versio | --versi | --vers | -V)
1208     ac_init_version=: ;;
1209
1210   -with-* | --with-*)
1211     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1212     # Reject names that are not valid shell variable names.
1213     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1214       as_fn_error $? "invalid package name: $ac_useropt"
1215     ac_useropt_orig=$ac_useropt
1216     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1217     case $ac_user_opts in
1218       *"
1219 "with_$ac_useropt"
1220 "*) ;;
1221       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1222          ac_unrecognized_sep=', ';;
1223     esac
1224     eval with_$ac_useropt=\$ac_optarg ;;
1225
1226   -without-* | --without-*)
1227     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1228     # Reject names that are not valid shell variable names.
1229     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1230       as_fn_error $? "invalid package name: $ac_useropt"
1231     ac_useropt_orig=$ac_useropt
1232     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1233     case $ac_user_opts in
1234       *"
1235 "with_$ac_useropt"
1236 "*) ;;
1237       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1238          ac_unrecognized_sep=', ';;
1239     esac
1240     eval with_$ac_useropt=no ;;
1241
1242   --x)
1243     # Obsolete; use --with-x.
1244     with_x=yes ;;
1245
1246   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1247   | --x-incl | --x-inc | --x-in | --x-i)
1248     ac_prev=x_includes ;;
1249   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1250   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1251     x_includes=$ac_optarg ;;
1252
1253   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1254   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1255     ac_prev=x_libraries ;;
1256   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1257   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1258     x_libraries=$ac_optarg ;;
1259
1260   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1261 Try \`$0 --help' for more information"
1262     ;;
1263
1264   *=*)
1265     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1266     # Reject names that are not valid shell variable names.
1267     case $ac_envvar in #(
1268       '' | [0-9]* | *[!_$as_cr_alnum]* )
1269       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1270     esac
1271     eval $ac_envvar=\$ac_optarg
1272     export $ac_envvar ;;
1273
1274   *)
1275     # FIXME: should be removed in autoconf 3.0.
1276     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1277     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1278       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1279     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1280     ;;
1281
1282   esac
1283 done
1284
1285 if test -n "$ac_prev"; then
1286   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1287   as_fn_error $? "missing argument to $ac_option"
1288 fi
1289
1290 if test -n "$ac_unrecognized_opts"; then
1291   case $enable_option_checking in
1292     no) ;;
1293     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1294     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1295   esac
1296 fi
1297
1298 # Check all directory arguments for consistency.
1299 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1300                 datadir sysconfdir sharedstatedir localstatedir includedir \
1301                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1302                 libdir localedir mandir
1303 do
1304   eval ac_val=\$$ac_var
1305   # Remove trailing slashes.
1306   case $ac_val in
1307     */ )
1308       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1309       eval $ac_var=\$ac_val;;
1310   esac
1311   # Be sure to have absolute directory names.
1312   case $ac_val in
1313     [\\/$]* | ?:[\\/]* )  continue;;
1314     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1315   esac
1316   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1317 done
1318
1319 # There might be people who depend on the old broken behavior: `$host'
1320 # used to hold the argument of --host etc.
1321 # FIXME: To remove some day.
1322 build=$build_alias
1323 host=$host_alias
1324 target=$target_alias
1325
1326 # FIXME: To remove some day.
1327 if test "x$host_alias" != x; then
1328   if test "x$build_alias" = x; then
1329     cross_compiling=maybe
1330   elif test "x$build_alias" != "x$host_alias"; then
1331     cross_compiling=yes
1332   fi
1333 fi
1334
1335 ac_tool_prefix=
1336 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1337
1338 test "$silent" = yes && exec 6>/dev/null
1339
1340
1341 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1342 ac_ls_di=`ls -di .` &&
1343 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1344   as_fn_error $? "working directory cannot be determined"
1345 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1346   as_fn_error $? "pwd does not report name of working directory"
1347
1348
1349 # Find the source files, if location was not specified.
1350 if test -z "$srcdir"; then
1351   ac_srcdir_defaulted=yes
1352   # Try the directory containing this script, then the parent directory.
1353   ac_confdir=`$as_dirname -- "$as_myself" ||
1354 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1355          X"$as_myself" : 'X\(//\)[^/]' \| \
1356          X"$as_myself" : 'X\(//\)$' \| \
1357          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1358 $as_echo X"$as_myself" |
1359     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1360             s//\1/
1361             q
1362           }
1363           /^X\(\/\/\)[^/].*/{
1364             s//\1/
1365             q
1366           }
1367           /^X\(\/\/\)$/{
1368             s//\1/
1369             q
1370           }
1371           /^X\(\/\).*/{
1372             s//\1/
1373             q
1374           }
1375           s/.*/./; q'`
1376   srcdir=$ac_confdir
1377   if test ! -r "$srcdir/$ac_unique_file"; then
1378     srcdir=..
1379   fi
1380 else
1381   ac_srcdir_defaulted=no
1382 fi
1383 if test ! -r "$srcdir/$ac_unique_file"; then
1384   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1385   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1386 fi
1387 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1388 ac_abs_confdir=`(
1389         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1390         pwd)`
1391 # When building in place, set srcdir=.
1392 if test "$ac_abs_confdir" = "$ac_pwd"; then
1393   srcdir=.
1394 fi
1395 # Remove unnecessary trailing slashes from srcdir.
1396 # Double slashes in file names in object file debugging info
1397 # mess up M-x gdb in Emacs.
1398 case $srcdir in
1399 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1400 esac
1401 for ac_var in $ac_precious_vars; do
1402   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1403   eval ac_env_${ac_var}_value=\$${ac_var}
1404   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1405   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1406 done
1407
1408 #
1409 # Report the --help message.
1410 #
1411 if test "$ac_init_help" = "long"; then
1412   # Omit some internal or obsolete options to make the list less imposing.
1413   # This message is too long to be a string in the A/UX 3.1 sh.
1414   cat <<_ACEOF
1415 \`configure' configures this package to adapt to many kinds of systems.
1416
1417 Usage: $0 [OPTION]... [VAR=VALUE]...
1418
1419 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1420 VAR=VALUE.  See below for descriptions of some of the useful variables.
1421
1422 Defaults for the options are specified in brackets.
1423
1424 Configuration:
1425   -h, --help              display this help and exit
1426       --help=short        display options specific to this package
1427       --help=recursive    display the short help of all the included packages
1428   -V, --version           display version information and exit
1429   -q, --quiet, --silent   do not print \`checking ...' messages
1430       --cache-file=FILE   cache test results in FILE [disabled]
1431   -C, --config-cache      alias for \`--cache-file=config.cache'
1432   -n, --no-create         do not create output files
1433       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1434
1435 Installation directories:
1436   --prefix=PREFIX         install architecture-independent files in PREFIX
1437                           [$ac_default_prefix]
1438   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1439                           [PREFIX]
1440
1441 By default, \`make install' will install all the files in
1442 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1443 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1444 for instance \`--prefix=\$HOME'.
1445
1446 For better control, use the options below.
1447
1448 Fine tuning of the installation directories:
1449   --bindir=DIR            user executables [EPREFIX/bin]
1450   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1451   --libexecdir=DIR        program executables [EPREFIX/libexec]
1452   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1453   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1454   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1455   --libdir=DIR            object code libraries [EPREFIX/lib]
1456   --includedir=DIR        C header files [PREFIX/include]
1457   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1458   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1459   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1460   --infodir=DIR           info documentation [DATAROOTDIR/info]
1461   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1462   --mandir=DIR            man documentation [DATAROOTDIR/man]
1463   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1464   --htmldir=DIR           html documentation [DOCDIR]
1465   --dvidir=DIR            dvi documentation [DOCDIR]
1466   --pdfdir=DIR            pdf documentation [DOCDIR]
1467   --psdir=DIR             ps documentation [DOCDIR]
1468 _ACEOF
1469
1470   cat <<\_ACEOF
1471
1472 X features:
1473   --x-includes=DIR    X include files are in DIR
1474   --x-libraries=DIR   X library files are in DIR
1475
1476 System types:
1477   --build=BUILD     configure for building on BUILD [guessed]
1478   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1479 _ACEOF
1480 fi
1481
1482 if test -n "$ac_init_help"; then
1483
1484   cat <<\_ACEOF
1485
1486 Optional Features:
1487   --disable-option-checking  ignore unrecognized --enable/--with options
1488   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1489   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1490   --enable-shared[=PKGS]  build shared libraries [default=yes]
1491   --enable-static[=PKGS]  build static libraries [default=yes]
1492   --enable-fast-install[=PKGS]
1493                           optimize for fast installation [default=yes]
1494   --disable-libtool-lock  avoid locking (might break parallel builds)
1495   --enable-assertions     Enable internal sanity checks
1496                           (auto/disabled/release/enabled/paranoid)
1497                           [[default=auto]]
1498   --enable-dependency-tracking
1499                           Use gcc -MMD -MT dependency tracking [[default=yes]]
1500   --enable-libc           Use the system C library [[default=yes]]
1501   --enable-gcc-atomics    Use gcc builtin atomics [[default=yes]]
1502   --enable-atomic         Enable the atomic operations subsystem
1503                           [[default=yes]]
1504   --enable-audio          Enable the audio subsystem [[default=yes]]
1505   --enable-video          Enable the video subsystem [[default=yes]]
1506   --enable-render         Enable the render subsystem [[default=yes]]
1507   --enable-events         Enable the events subsystem [[default=yes]]
1508   --enable-joystick       Enable the joystick subsystem [[default=yes]]
1509   --enable-haptic         Enable the haptic (force feedback) subsystem
1510                           [[default=yes]]
1511   --enable-power          Enable the power subsystem [[default=yes]]
1512   --enable-filesystem     Enable the filesystem subsystem [[default=yes]]
1513   --enable-threads        Enable the threading subsystem [[default=yes]]
1514   --enable-timers         Enable the timer subsystem [[default=yes]]
1515   --enable-file           Enable the file subsystem [[default=yes]]
1516   --enable-loadso         Enable the shared object loading subsystem
1517                           [[default=yes]]
1518   --enable-cpuinfo        Enable the cpuinfo subsystem [[default=yes]]
1519   --enable-assembly       Enable assembly routines [[default=yes]]
1520   --enable-ssemath        Allow GCC to use SSE floating point math
1521                           [[default=no]]
1522   --enable-mmx            use MMX assembly routines [[default=yes]]
1523   --enable-3dnow          use 3DNow! assembly routines [[default=yes]]
1524   --enable-sse            use SSE assembly routines [[default=yes]]
1525   --enable-sse2           use SSE2 assembly routines [[default=no]]
1526   --enable-altivec        use Altivec assembly routines [[default=yes]]
1527   --enable-oss            support the OSS audio API [[default=maybe]]
1528   --enable-alsa           support the ALSA audio API [[default=yes]]
1529   --disable-alsatest      Do not try to compile and run a test Alsa program
1530   --enable-alsa-shared    dynamically load ALSA audio support [[default=yes]]
1531   --enable-esd            support the Enlightened Sound Daemon [[default=yes]]
1532   --disable-esdtest       Do not try to compile and run a test ESD program
1533   --enable-esd-shared     dynamically load ESD audio support [[default=yes]]
1534   --enable-pulseaudio     use PulseAudio [[default=yes]]
1535   --enable-pulseaudio-shared
1536                           dynamically load PulseAudio support [[default=yes]]
1537   --enable-arts           support the Analog Real Time Synthesizer
1538                           [[default=yes]]
1539   --enable-arts-shared    dynamically load aRts audio support [[default=yes]]
1540   --enable-nas            support the NAS audio API [[default=yes]]
1541   --enable-nas-shared     dynamically load NAS audio support [[default=yes]]
1542   --enable-sndio          support the sndio audio API [[default=yes]]
1543   --enable-sndio-shared   dynamically load sndio audio support [[default=yes]]
1544   --enable-diskaudio      support the disk writer audio driver [[default=yes]]
1545   --enable-dummyaudio     support the dummy audio driver [[default=yes]]
1546   --enable-video-wayland  use Wayland video driver [[default=yes]]
1547   --enable-video-wayland-qt-touch
1548                           QtWayland server support for Wayland video driver
1549                           [[default=yes]]
1550   --enable-wayland-shared dynamically load Wayland support [[default=maybe]]
1551   --enable-video-tizen    use tizen video driver [[default=yes]]
1552   --enable-video-mir      use Mir video driver [[default=yes]]
1553   --enable-mir-shared     dynamically load Mir support [[default=maybe]]
1554   --enable-video-x11      use X11 video driver [[default=yes]]
1555   --enable-x11-shared     dynamically load X11 support [[default=maybe]]
1556   --enable-video-x11-xcursor
1557                           enable X11 Xcursor support [[default=yes]]
1558   --enable-video-x11-xdbe enable X11 Xdbe support [[default=yes]]
1559   --enable-video-x11-xinerama
1560                           enable X11 Xinerama support [[default=yes]]
1561   --enable-video-x11-xinput
1562                           enable X11 XInput extension for manymouse, tablets,
1563                           etc [[default=yes]]
1564   --enable-video-x11-xrandr
1565                           enable X11 Xrandr extension for fullscreen
1566                           [[default=yes]]
1567   --enable-video-x11-scrnsaver
1568                           enable X11 screensaver extension [[default=yes]]
1569   --enable-video-x11-xshape
1570                           enable X11 XShape support [[default=yes]]
1571   --enable-video-x11-vm   use X11 VM extension for fullscreen [[default=yes]]
1572   --enable-video-vivante  use Vivante EGL video driver [[default=yes]]
1573   --enable-video-cocoa    use Cocoa video driver [[default=yes]]
1574   --enable-video-directfb use DirectFB video driver [[default=no]]
1575   --enable-directfb-shared
1576                           dynamically load directfb support [[default=yes]]
1577   --enable-fusionsound    use FusionSound audio driver [[default=no]]
1578   --enable-fusionsound-shared
1579                           dynamically load fusionsound audio support
1580                           [[default=yes]]
1581   --enable-video-dummy    use dummy video driver [[default=yes]]
1582   --enable-video-opengl   include OpenGL support [[default=yes]]
1583   --enable-video-opengles include OpenGL ES support [[default=yes]]
1584   --enable-video-opengles1
1585                           include OpenGL ES 1.1 support [[default=yes]]
1586   --enable-video-opengles2
1587                           include OpenGL ES 2.0 support [[default=yes]]
1588   --enable-video-vulkan   include Vulkan support [[default=yes]]
1589   --enable-libudev        enable libudev support [[default=yes]]
1590   --enable-dbus           enable D-Bus support [[default=yes]]
1591   --enable-ibus           enable IBus support [[default=yes]]
1592   --enable-input-tslib    use the Touchscreen library for input
1593                           [[default=yes]]
1594   --enable-pthreads       use POSIX threads for multi-threading
1595                           [[default=yes]]
1596   --enable-pthread-sem    use pthread semaphores [[default=yes]]
1597   --enable-directx        use DirectX for Windows audio/video [[default=yes]]
1598   --enable-sdl-dlopen     use dlopen for shared object loading [[default=yes]]
1599   --enable-clock_gettime  use clock_gettime() instead of gettimeofday() on
1600                           UNIX [[default=yes]]
1601   --enable-rpath          use an rpath when linking SDL [[default=yes]]
1602   --enable-render-d3d     enable the Direct3D render driver [[default=yes]]
1603
1604 Optional Packages:
1605   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1606   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1607   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1608                           both]
1609   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1610   --with-sysroot=DIR Search for dependent libraries within DIR
1611                         (or the compiler's sysroot if not specified).
1612   --with-alsa-prefix=PFX  Prefix where Alsa library is installed(optional)
1613   --with-alsa-inc-prefix=PFX  Prefix where include libraries are (optional)
1614   --with-esd-prefix=PFX   Prefix where ESD is installed (optional)
1615   --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
1616   --with-x                use the X Window System
1617
1618 Some influential environment variables:
1619   CC          C compiler command
1620   CFLAGS      C compiler flags
1621   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1622               nonstandard directory <lib dir>
1623   LIBS        libraries to pass to the linker, e.g. -l<library>
1624   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1625               you have headers in a nonstandard directory <include dir>
1626   CPP         C preprocessor
1627   CXX         C++ compiler command
1628   CXXFLAGS    C++ compiler flags
1629   CXXCPP      C++ preprocessor
1630   XMKMF       Path to xmkmf, Makefile generator for X Window System
1631
1632 Use these variables to override the choices made by `configure' or to help
1633 it to find libraries and programs with nonstandard names/locations.
1634
1635 Report bugs to the package provider.
1636 _ACEOF
1637 ac_status=$?
1638 fi
1639
1640 if test "$ac_init_help" = "recursive"; then
1641   # If there are subdirs, report their specific --help.
1642   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1643     test -d "$ac_dir" ||
1644       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1645       continue
1646     ac_builddir=.
1647
1648 case "$ac_dir" in
1649 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1650 *)
1651   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1652   # A ".." for each directory in $ac_dir_suffix.
1653   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1654   case $ac_top_builddir_sub in
1655   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1656   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1657   esac ;;
1658 esac
1659 ac_abs_top_builddir=$ac_pwd
1660 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1661 # for backward compatibility:
1662 ac_top_builddir=$ac_top_build_prefix
1663
1664 case $srcdir in
1665   .)  # We are building in place.
1666     ac_srcdir=.
1667     ac_top_srcdir=$ac_top_builddir_sub
1668     ac_abs_top_srcdir=$ac_pwd ;;
1669   [\\/]* | ?:[\\/]* )  # Absolute name.
1670     ac_srcdir=$srcdir$ac_dir_suffix;
1671     ac_top_srcdir=$srcdir
1672     ac_abs_top_srcdir=$srcdir ;;
1673   *) # Relative name.
1674     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1675     ac_top_srcdir=$ac_top_build_prefix$srcdir
1676     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1677 esac
1678 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1679
1680     cd "$ac_dir" || { ac_status=$?; continue; }
1681     # Check for guested configure.
1682     if test -f "$ac_srcdir/configure.gnu"; then
1683       echo &&
1684       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1685     elif test -f "$ac_srcdir/configure"; then
1686       echo &&
1687       $SHELL "$ac_srcdir/configure" --help=recursive
1688     else
1689       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1690     fi || ac_status=$?
1691     cd "$ac_pwd" || { ac_status=$?; break; }
1692   done
1693 fi
1694
1695 test -n "$ac_init_help" && exit $ac_status
1696 if $ac_init_version; then
1697   cat <<\_ACEOF
1698 configure
1699 generated by GNU Autoconf 2.69
1700
1701 Copyright (C) 2012 Free Software Foundation, Inc.
1702 This configure script is free software; the Free Software Foundation
1703 gives unlimited permission to copy, distribute and modify it.
1704 _ACEOF
1705   exit
1706 fi
1707
1708 ## ------------------------ ##
1709 ## Autoconf initialization. ##
1710 ## ------------------------ ##
1711
1712 # ac_fn_c_try_compile LINENO
1713 # --------------------------
1714 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1715 ac_fn_c_try_compile ()
1716 {
1717   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1718   rm -f conftest.$ac_objext
1719   if { { ac_try="$ac_compile"
1720 case "(($ac_try" in
1721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1722   *) ac_try_echo=$ac_try;;
1723 esac
1724 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725 $as_echo "$ac_try_echo"; } >&5
1726   (eval "$ac_compile") 2>conftest.err
1727   ac_status=$?
1728   if test -s conftest.err; then
1729     grep -v '^ *+' conftest.err >conftest.er1
1730     cat conftest.er1 >&5
1731     mv -f conftest.er1 conftest.err
1732   fi
1733   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734   test $ac_status = 0; } && {
1735          test -z "$ac_c_werror_flag" ||
1736          test ! -s conftest.err
1737        } && test -s conftest.$ac_objext; then :
1738   ac_retval=0
1739 else
1740   $as_echo "$as_me: failed program was:" >&5
1741 sed 's/^/| /' conftest.$ac_ext >&5
1742
1743         ac_retval=1
1744 fi
1745   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1746   as_fn_set_status $ac_retval
1747
1748 } # ac_fn_c_try_compile
1749
1750 # ac_fn_c_try_link LINENO
1751 # -----------------------
1752 # Try to link conftest.$ac_ext, and return whether this succeeded.
1753 ac_fn_c_try_link ()
1754 {
1755   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756   rm -f conftest.$ac_objext conftest$ac_exeext
1757   if { { ac_try="$ac_link"
1758 case "(($ac_try" in
1759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1760   *) ac_try_echo=$ac_try;;
1761 esac
1762 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1763 $as_echo "$ac_try_echo"; } >&5
1764   (eval "$ac_link") 2>conftest.err
1765   ac_status=$?
1766   if test -s conftest.err; then
1767     grep -v '^ *+' conftest.err >conftest.er1
1768     cat conftest.er1 >&5
1769     mv -f conftest.er1 conftest.err
1770   fi
1771   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1772   test $ac_status = 0; } && {
1773          test -z "$ac_c_werror_flag" ||
1774          test ! -s conftest.err
1775        } && test -s conftest$ac_exeext && {
1776          test "$cross_compiling" = yes ||
1777          test -x conftest$ac_exeext
1778        }; then :
1779   ac_retval=0
1780 else
1781   $as_echo "$as_me: failed program was:" >&5
1782 sed 's/^/| /' conftest.$ac_ext >&5
1783
1784         ac_retval=1
1785 fi
1786   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1787   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1788   # interfere with the next link command; also delete a directory that is
1789   # left behind by Apple's compiler.  We do this before executing the actions.
1790   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1791   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1792   as_fn_set_status $ac_retval
1793
1794 } # ac_fn_c_try_link
1795
1796 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1797 # -------------------------------------------------------
1798 # Tests whether HEADER exists and can be compiled using the include files in
1799 # INCLUDES, setting the cache variable VAR accordingly.
1800 ac_fn_c_check_header_compile ()
1801 {
1802   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1804 $as_echo_n "checking for $2... " >&6; }
1805 if eval \${$3+:} false; then :
1806   $as_echo_n "(cached) " >&6
1807 else
1808   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1809 /* end confdefs.h.  */
1810 $4
1811 #include <$2>
1812 _ACEOF
1813 if ac_fn_c_try_compile "$LINENO"; then :
1814   eval "$3=yes"
1815 else
1816   eval "$3=no"
1817 fi
1818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1819 fi
1820 eval ac_res=\$$3
1821                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1822 $as_echo "$ac_res" >&6; }
1823   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1824
1825 } # ac_fn_c_check_header_compile
1826
1827 # ac_fn_c_try_cpp LINENO
1828 # ----------------------
1829 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1830 ac_fn_c_try_cpp ()
1831 {
1832   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1833   if { { ac_try="$ac_cpp conftest.$ac_ext"
1834 case "(($ac_try" in
1835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1836   *) ac_try_echo=$ac_try;;
1837 esac
1838 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1839 $as_echo "$ac_try_echo"; } >&5
1840   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1841   ac_status=$?
1842   if test -s conftest.err; then
1843     grep -v '^ *+' conftest.err >conftest.er1
1844     cat conftest.er1 >&5
1845     mv -f conftest.er1 conftest.err
1846   fi
1847   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1848   test $ac_status = 0; } > conftest.i && {
1849          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1850          test ! -s conftest.err
1851        }; then :
1852   ac_retval=0
1853 else
1854   $as_echo "$as_me: failed program was:" >&5
1855 sed 's/^/| /' conftest.$ac_ext >&5
1856
1857     ac_retval=1
1858 fi
1859   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1860   as_fn_set_status $ac_retval
1861
1862 } # ac_fn_c_try_cpp
1863
1864 # ac_fn_c_try_run LINENO
1865 # ----------------------
1866 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1867 # that executables *can* be run.
1868 ac_fn_c_try_run ()
1869 {
1870   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871   if { { ac_try="$ac_link"
1872 case "(($ac_try" in
1873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1874   *) ac_try_echo=$ac_try;;
1875 esac
1876 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1877 $as_echo "$ac_try_echo"; } >&5
1878   (eval "$ac_link") 2>&5
1879   ac_status=$?
1880   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1881   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1882   { { case "(($ac_try" in
1883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1884   *) ac_try_echo=$ac_try;;
1885 esac
1886 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1887 $as_echo "$ac_try_echo"; } >&5
1888   (eval "$ac_try") 2>&5
1889   ac_status=$?
1890   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1891   test $ac_status = 0; }; }; then :
1892   ac_retval=0
1893 else
1894   $as_echo "$as_me: program exited with status $ac_status" >&5
1895        $as_echo "$as_me: failed program was:" >&5
1896 sed 's/^/| /' conftest.$ac_ext >&5
1897
1898        ac_retval=$ac_status
1899 fi
1900   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1901   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1902   as_fn_set_status $ac_retval
1903
1904 } # ac_fn_c_try_run
1905
1906 # ac_fn_c_check_func LINENO FUNC VAR
1907 # ----------------------------------
1908 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1909 ac_fn_c_check_func ()
1910 {
1911   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1912   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1913 $as_echo_n "checking for $2... " >&6; }
1914 if eval \${$3+:} false; then :
1915   $as_echo_n "(cached) " >&6
1916 else
1917   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1918 /* end confdefs.h.  */
1919 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1920    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1921 #define $2 innocuous_$2
1922
1923 /* System header to define __stub macros and hopefully few prototypes,
1924     which can conflict with char $2 (); below.
1925     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1926     <limits.h> exists even on freestanding compilers.  */
1927
1928 #ifdef __STDC__
1929 # include <limits.h>
1930 #else
1931 # include <assert.h>
1932 #endif
1933
1934 #undef $2
1935
1936 /* Override any GCC internal prototype to avoid an error.
1937    Use char because int might match the return type of a GCC
1938    builtin and then its argument prototype would still apply.  */
1939 #ifdef __cplusplus
1940 extern "C"
1941 #endif
1942 char $2 ();
1943 /* The GNU C library defines this for functions which it implements
1944     to always fail with ENOSYS.  Some functions are actually named
1945     something starting with __ and the normal name is an alias.  */
1946 #if defined __stub_$2 || defined __stub___$2
1947 choke me
1948 #endif
1949
1950 int
1951 main ()
1952 {
1953 return $2 ();
1954   ;
1955   return 0;
1956 }
1957 _ACEOF
1958 if ac_fn_c_try_link "$LINENO"; then :
1959   eval "$3=yes"
1960 else
1961   eval "$3=no"
1962 fi
1963 rm -f core conftest.err conftest.$ac_objext \
1964     conftest$ac_exeext conftest.$ac_ext
1965 fi
1966 eval ac_res=\$$3
1967                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1968 $as_echo "$ac_res" >&6; }
1969   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1970
1971 } # ac_fn_c_check_func
1972
1973 # ac_fn_cxx_try_compile LINENO
1974 # ----------------------------
1975 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1976 ac_fn_cxx_try_compile ()
1977 {
1978   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1979   rm -f conftest.$ac_objext
1980   if { { ac_try="$ac_compile"
1981 case "(($ac_try" in
1982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1983   *) ac_try_echo=$ac_try;;
1984 esac
1985 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1986 $as_echo "$ac_try_echo"; } >&5
1987   (eval "$ac_compile") 2>conftest.err
1988   ac_status=$?
1989   if test -s conftest.err; then
1990     grep -v '^ *+' conftest.err >conftest.er1
1991     cat conftest.er1 >&5
1992     mv -f conftest.er1 conftest.err
1993   fi
1994   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1995   test $ac_status = 0; } && {
1996          test -z "$ac_cxx_werror_flag" ||
1997          test ! -s conftest.err
1998        } && test -s conftest.$ac_objext; then :
1999   ac_retval=0
2000 else
2001   $as_echo "$as_me: failed program was:" >&5
2002 sed 's/^/| /' conftest.$ac_ext >&5
2003
2004         ac_retval=1
2005 fi
2006   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2007   as_fn_set_status $ac_retval
2008
2009 } # ac_fn_cxx_try_compile
2010
2011 # ac_fn_cxx_try_cpp LINENO
2012 # ------------------------
2013 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2014 ac_fn_cxx_try_cpp ()
2015 {
2016   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2017   if { { ac_try="$ac_cpp conftest.$ac_ext"
2018 case "(($ac_try" in
2019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2020   *) ac_try_echo=$ac_try;;
2021 esac
2022 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2023 $as_echo "$ac_try_echo"; } >&5
2024   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2025   ac_status=$?
2026   if test -s conftest.err; then
2027     grep -v '^ *+' conftest.err >conftest.er1
2028     cat conftest.er1 >&5
2029     mv -f conftest.er1 conftest.err
2030   fi
2031   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2032   test $ac_status = 0; } > conftest.i && {
2033          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2034          test ! -s conftest.err
2035        }; then :
2036   ac_retval=0
2037 else
2038   $as_echo "$as_me: failed program was:" >&5
2039 sed 's/^/| /' conftest.$ac_ext >&5
2040
2041     ac_retval=1
2042 fi
2043   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2044   as_fn_set_status $ac_retval
2045
2046 } # ac_fn_cxx_try_cpp
2047
2048 # ac_fn_cxx_try_link LINENO
2049 # -------------------------
2050 # Try to link conftest.$ac_ext, and return whether this succeeded.
2051 ac_fn_cxx_try_link ()
2052 {
2053   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2054   rm -f conftest.$ac_objext conftest$ac_exeext
2055   if { { ac_try="$ac_link"
2056 case "(($ac_try" in
2057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2058   *) ac_try_echo=$ac_try;;
2059 esac
2060 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2061 $as_echo "$ac_try_echo"; } >&5
2062   (eval "$ac_link") 2>conftest.err
2063   ac_status=$?
2064   if test -s conftest.err; then
2065     grep -v '^ *+' conftest.err >conftest.er1
2066     cat conftest.er1 >&5
2067     mv -f conftest.er1 conftest.err
2068   fi
2069   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2070   test $ac_status = 0; } && {
2071          test -z "$ac_cxx_werror_flag" ||
2072          test ! -s conftest.err
2073        } && test -s conftest$ac_exeext && {
2074          test "$cross_compiling" = yes ||
2075          test -x conftest$ac_exeext
2076        }; then :
2077   ac_retval=0
2078 else
2079   $as_echo "$as_me: failed program was:" >&5
2080 sed 's/^/| /' conftest.$ac_ext >&5
2081
2082         ac_retval=1
2083 fi
2084   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2085   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2086   # interfere with the next link command; also delete a directory that is
2087   # left behind by Apple's compiler.  We do this before executing the actions.
2088   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2089   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2090   as_fn_set_status $ac_retval
2091
2092 } # ac_fn_cxx_try_link
2093
2094 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2095 # -------------------------------------------------------
2096 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2097 # the include files in INCLUDES and setting the cache variable VAR
2098 # accordingly.
2099 ac_fn_c_check_header_mongrel ()
2100 {
2101   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2102   if eval \${$3+:} false; then :
2103   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2104 $as_echo_n "checking for $2... " >&6; }
2105 if eval \${$3+:} false; then :
2106   $as_echo_n "(cached) " >&6
2107 fi
2108 eval ac_res=\$$3
2109                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2110 $as_echo "$ac_res" >&6; }
2111 else
2112   # Is the header compilable?
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2114 $as_echo_n "checking $2 usability... " >&6; }
2115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2116 /* end confdefs.h.  */
2117 $4
2118 #include <$2>
2119 _ACEOF
2120 if ac_fn_c_try_compile "$LINENO"; then :
2121   ac_header_compiler=yes
2122 else
2123   ac_header_compiler=no
2124 fi
2125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2127 $as_echo "$ac_header_compiler" >&6; }
2128
2129 # Is the header present?
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2131 $as_echo_n "checking $2 presence... " >&6; }
2132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2133 /* end confdefs.h.  */
2134 #include <$2>
2135 _ACEOF
2136 if ac_fn_c_try_cpp "$LINENO"; then :
2137   ac_header_preproc=yes
2138 else
2139   ac_header_preproc=no
2140 fi
2141 rm -f conftest.err conftest.i conftest.$ac_ext
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2143 $as_echo "$ac_header_preproc" >&6; }
2144
2145 # So?  What about this header?
2146 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2147   yes:no: )
2148     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2149 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2150     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2151 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2152     ;;
2153   no:yes:* )
2154     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2155 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2156     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2157 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2158     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2159 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2160     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2161 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2162     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2163 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2164     ;;
2165 esac
2166   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2167 $as_echo_n "checking for $2... " >&6; }
2168 if eval \${$3+:} false; then :
2169   $as_echo_n "(cached) " >&6
2170 else
2171   eval "$3=\$ac_header_compiler"
2172 fi
2173 eval ac_res=\$$3
2174                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2175 $as_echo "$ac_res" >&6; }
2176 fi
2177   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2178
2179 } # ac_fn_c_check_header_mongrel
2180
2181 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2182 # -------------------------------------------
2183 # Tests whether TYPE exists after having included INCLUDES, setting cache
2184 # variable VAR accordingly.
2185 ac_fn_c_check_type ()
2186 {
2187   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2188   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2189 $as_echo_n "checking for $2... " >&6; }
2190 if eval \${$3+:} false; then :
2191   $as_echo_n "(cached) " >&6
2192 else
2193   eval "$3=no"
2194   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2195 /* end confdefs.h.  */
2196 $4
2197 int
2198 main ()
2199 {
2200 if (sizeof ($2))
2201          return 0;
2202   ;
2203   return 0;
2204 }
2205 _ACEOF
2206 if ac_fn_c_try_compile "$LINENO"; then :
2207   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2208 /* end confdefs.h.  */
2209 $4
2210 int
2211 main ()
2212 {
2213 if (sizeof (($2)))
2214             return 0;
2215   ;
2216   return 0;
2217 }
2218 _ACEOF
2219 if ac_fn_c_try_compile "$LINENO"; then :
2220
2221 else
2222   eval "$3=yes"
2223 fi
2224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2225 fi
2226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2227 fi
2228 eval ac_res=\$$3
2229                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2230 $as_echo "$ac_res" >&6; }
2231   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2232
2233 } # ac_fn_c_check_type
2234
2235 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2236 # ----------------------------------------------------
2237 # Tries to find if the field MEMBER exists in type AGGR, after including
2238 # INCLUDES, setting cache variable VAR accordingly.
2239 ac_fn_c_check_member ()
2240 {
2241   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2242   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2243 $as_echo_n "checking for $2.$3... " >&6; }
2244 if eval \${$4+:} false; then :
2245   $as_echo_n "(cached) " >&6
2246 else
2247   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2248 /* end confdefs.h.  */
2249 $5
2250 int
2251 main ()
2252 {
2253 static $2 ac_aggr;
2254 if (ac_aggr.$3)
2255 return 0;
2256   ;
2257   return 0;
2258 }
2259 _ACEOF
2260 if ac_fn_c_try_compile "$LINENO"; then :
2261   eval "$4=yes"
2262 else
2263   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2264 /* end confdefs.h.  */
2265 $5
2266 int
2267 main ()
2268 {
2269 static $2 ac_aggr;
2270 if (sizeof ac_aggr.$3)
2271 return 0;
2272   ;
2273   return 0;
2274 }
2275 _ACEOF
2276 if ac_fn_c_try_compile "$LINENO"; then :
2277   eval "$4=yes"
2278 else
2279   eval "$4=no"
2280 fi
2281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2282 fi
2283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2284 fi
2285 eval ac_res=\$$4
2286                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2287 $as_echo "$ac_res" >&6; }
2288   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2289
2290 } # ac_fn_c_check_member
2291 cat >config.log <<_ACEOF
2292 This file contains any messages produced by compilers while
2293 running configure, to aid debugging if configure makes a mistake.
2294
2295 It was created by $as_me, which was
2296 generated by GNU Autoconf 2.69.  Invocation command line was
2297
2298   $ $0 $@
2299
2300 _ACEOF
2301 exec 5>>config.log
2302 {
2303 cat <<_ASUNAME
2304 ## --------- ##
2305 ## Platform. ##
2306 ## --------- ##
2307
2308 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2309 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2310 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2311 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2312 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2313
2314 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2315 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2316
2317 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2318 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2319 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2320 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2321 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2322 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2323 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2324
2325 _ASUNAME
2326
2327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2328 for as_dir in $PATH
2329 do
2330   IFS=$as_save_IFS
2331   test -z "$as_dir" && as_dir=.
2332     $as_echo "PATH: $as_dir"
2333   done
2334 IFS=$as_save_IFS
2335
2336 } >&5
2337
2338 cat >&5 <<_ACEOF
2339
2340
2341 ## ----------- ##
2342 ## Core tests. ##
2343 ## ----------- ##
2344
2345 _ACEOF
2346
2347
2348 # Keep a trace of the command line.
2349 # Strip out --no-create and --no-recursion so they do not pile up.
2350 # Strip out --silent because we don't want to record it for future runs.
2351 # Also quote any args containing shell meta-characters.
2352 # Make two passes to allow for proper duplicate-argument suppression.
2353 ac_configure_args=
2354 ac_configure_args0=
2355 ac_configure_args1=
2356 ac_must_keep_next=false
2357 for ac_pass in 1 2
2358 do
2359   for ac_arg
2360   do
2361     case $ac_arg in
2362     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2363     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2364     | -silent | --silent | --silen | --sile | --sil)
2365       continue ;;
2366     *\'*)
2367       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2368     esac
2369     case $ac_pass in
2370     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2371     2)
2372       as_fn_append ac_configure_args1 " '$ac_arg'"
2373       if test $ac_must_keep_next = true; then
2374         ac_must_keep_next=false # Got value, back to normal.
2375       else
2376         case $ac_arg in
2377           *=* | --config-cache | -C | -disable-* | --disable-* \
2378           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2379           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2380           | -with-* | --with-* | -without-* | --without-* | --x)
2381             case "$ac_configure_args0 " in
2382               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2383             esac
2384             ;;
2385           -* ) ac_must_keep_next=true ;;
2386         esac
2387       fi
2388       as_fn_append ac_configure_args " '$ac_arg'"
2389       ;;
2390     esac
2391   done
2392 done
2393 { ac_configure_args0=; unset ac_configure_args0;}
2394 { ac_configure_args1=; unset ac_configure_args1;}
2395
2396 # When interrupted or exit'd, cleanup temporary files, and complete
2397 # config.log.  We remove comments because anyway the quotes in there
2398 # would cause problems or look ugly.
2399 # WARNING: Use '\'' to represent an apostrophe within the trap.
2400 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2401 trap 'exit_status=$?
2402   # Save into config.log some information that might help in debugging.
2403   {
2404     echo
2405
2406     $as_echo "## ---------------- ##
2407 ## Cache variables. ##
2408 ## ---------------- ##"
2409     echo
2410     # The following way of writing the cache mishandles newlines in values,
2411 (
2412   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2413     eval ac_val=\$$ac_var
2414     case $ac_val in #(
2415     *${as_nl}*)
2416       case $ac_var in #(
2417       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2418 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2419       esac
2420       case $ac_var in #(
2421       _ | IFS | as_nl) ;; #(
2422       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2423       *) { eval $ac_var=; unset $ac_var;} ;;
2424       esac ;;
2425     esac
2426   done
2427   (set) 2>&1 |
2428     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2429     *${as_nl}ac_space=\ *)
2430       sed -n \
2431         "s/'\''/'\''\\\\'\'''\''/g;
2432           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2433       ;; #(
2434     *)
2435       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2436       ;;
2437     esac |
2438     sort
2439 )
2440     echo
2441
2442     $as_echo "## ----------------- ##
2443 ## Output variables. ##
2444 ## ----------------- ##"
2445     echo
2446     for ac_var in $ac_subst_vars
2447     do
2448       eval ac_val=\$$ac_var
2449       case $ac_val in
2450       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2451       esac
2452       $as_echo "$ac_var='\''$ac_val'\''"
2453     done | sort
2454     echo
2455
2456     if test -n "$ac_subst_files"; then
2457       $as_echo "## ------------------- ##
2458 ## File substitutions. ##
2459 ## ------------------- ##"
2460       echo
2461       for ac_var in $ac_subst_files
2462       do
2463         eval ac_val=\$$ac_var
2464         case $ac_val in
2465         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2466         esac
2467         $as_echo "$ac_var='\''$ac_val'\''"
2468       done | sort
2469       echo
2470     fi
2471
2472     if test -s confdefs.h; then
2473       $as_echo "## ----------- ##
2474 ## confdefs.h. ##
2475 ## ----------- ##"
2476       echo
2477       cat confdefs.h
2478       echo
2479     fi
2480     test "$ac_signal" != 0 &&
2481       $as_echo "$as_me: caught signal $ac_signal"
2482     $as_echo "$as_me: exit $exit_status"
2483   } >&5
2484   rm -f core *.core core.conftest.* &&
2485     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2486     exit $exit_status
2487 ' 0
2488 for ac_signal in 1 2 13 15; do
2489   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2490 done
2491 ac_signal=0
2492
2493 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2494 rm -f -r conftest* confdefs.h
2495
2496 $as_echo "/* confdefs.h */" > confdefs.h
2497
2498 # Predefined preprocessor variables.
2499
2500 cat >>confdefs.h <<_ACEOF
2501 #define PACKAGE_NAME "$PACKAGE_NAME"
2502 _ACEOF
2503
2504 cat >>confdefs.h <<_ACEOF
2505 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2506 _ACEOF
2507
2508 cat >>confdefs.h <<_ACEOF
2509 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2510 _ACEOF
2511
2512 cat >>confdefs.h <<_ACEOF
2513 #define PACKAGE_STRING "$PACKAGE_STRING"
2514 _ACEOF
2515
2516 cat >>confdefs.h <<_ACEOF
2517 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2518 _ACEOF
2519
2520 cat >>confdefs.h <<_ACEOF
2521 #define PACKAGE_URL "$PACKAGE_URL"
2522 _ACEOF
2523
2524
2525 # Let the site file select an alternate cache file if it wants to.
2526 # Prefer an explicitly selected file to automatically selected ones.
2527 ac_site_file1=NONE
2528 ac_site_file2=NONE
2529 if test -n "$CONFIG_SITE"; then
2530   # We do not want a PATH search for config.site.
2531   case $CONFIG_SITE in #((
2532     -*)  ac_site_file1=./$CONFIG_SITE;;
2533     */*) ac_site_file1=$CONFIG_SITE;;
2534     *)   ac_site_file1=./$CONFIG_SITE;;
2535   esac
2536 elif test "x$prefix" != xNONE; then
2537   ac_site_file1=$prefix/share/config.site
2538   ac_site_file2=$prefix/etc/config.site
2539 else
2540   ac_site_file1=$ac_default_prefix/share/config.site
2541   ac_site_file2=$ac_default_prefix/etc/config.site
2542 fi
2543 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2544 do
2545   test "x$ac_site_file" = xNONE && continue
2546   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2547     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2548 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2549     sed 's/^/| /' "$ac_site_file" >&5
2550     . "$ac_site_file" \
2551       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2552 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2553 as_fn_error $? "failed to load site script $ac_site_file
2554 See \`config.log' for more details" "$LINENO" 5; }
2555   fi
2556 done
2557
2558 if test -r "$cache_file"; then
2559   # Some versions of bash will fail to source /dev/null (special files
2560   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2561   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2562     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2563 $as_echo "$as_me: loading cache $cache_file" >&6;}
2564     case $cache_file in
2565       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2566       *)                      . "./$cache_file";;
2567     esac
2568   fi
2569 else
2570   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2571 $as_echo "$as_me: creating cache $cache_file" >&6;}
2572   >$cache_file
2573 fi
2574
2575 # Check that the precious variables saved in the cache have kept the same
2576 # value.
2577 ac_cache_corrupted=false
2578 for ac_var in $ac_precious_vars; do
2579   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2580   eval ac_new_set=\$ac_env_${ac_var}_set
2581   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2582   eval ac_new_val=\$ac_env_${ac_var}_value
2583   case $ac_old_set,$ac_new_set in
2584     set,)
2585       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2586 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2587       ac_cache_corrupted=: ;;
2588     ,set)
2589       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2590 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2591       ac_cache_corrupted=: ;;
2592     ,);;
2593     *)
2594       if test "x$ac_old_val" != "x$ac_new_val"; then
2595         # differences in whitespace do not lead to failure.
2596         ac_old_val_w=`echo x $ac_old_val`
2597         ac_new_val_w=`echo x $ac_new_val`
2598         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2599           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2600 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2601           ac_cache_corrupted=:
2602         else
2603           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2604 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2605           eval $ac_var=\$ac_old_val
2606         fi
2607         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2608 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2609         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2610 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2611       fi;;
2612   esac
2613   # Pass precious variables to config.status.
2614   if test "$ac_new_set" = set; then
2615     case $ac_new_val in
2616     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2617     *) ac_arg=$ac_var=$ac_new_val ;;
2618     esac
2619     case " $ac_configure_args " in
2620       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2621       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2622     esac
2623   fi
2624 done
2625 if $ac_cache_corrupted; then
2626   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2627 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2628   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2629 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2630   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2631 fi
2632 ## -------------------- ##
2633 ## Main body of script. ##
2634 ## -------------------- ##
2635
2636 ac_ext=c
2637 ac_cpp='$CPP $CPPFLAGS'
2638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2641
2642
2643 ac_config_headers="$ac_config_headers include/SDL_config.h"
2644
2645 ac_aux_dir=
2646 for ac_dir in build-scripts "$srcdir"/build-scripts; do
2647   if test -f "$ac_dir/install-sh"; then
2648     ac_aux_dir=$ac_dir
2649     ac_install_sh="$ac_aux_dir/install-sh -c"
2650     break
2651   elif test -f "$ac_dir/install.sh"; then
2652     ac_aux_dir=$ac_dir
2653     ac_install_sh="$ac_aux_dir/install.sh -c"
2654     break
2655   elif test -f "$ac_dir/shtool"; then
2656     ac_aux_dir=$ac_dir
2657     ac_install_sh="$ac_aux_dir/shtool install -c"
2658     break
2659   fi
2660 done
2661 if test -z "$ac_aux_dir"; then
2662   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5
2663 fi
2664
2665 # These three variables are undocumented and unsupported,
2666 # and are intended to be withdrawn in a future Autoconf release.
2667 # They can cause serious problems if a builder's source tree is in a directory
2668 # whose full name contains unusual characters.
2669 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2670 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2671 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2672
2673
2674
2675
2676 orig_CFLAGS="$CFLAGS"
2677
2678 #
2679 # Making releases:
2680 # Edit include/SDL_version.h and change the version, then:
2681 #   SDL_MICRO_VERSION += 1;
2682 #   SDL_INTERFACE_AGE += 1;
2683 #   SDL_BINARY_AGE += 1;
2684 # if any functions have been added, set SDL_INTERFACE_AGE to 0.
2685 # if backwards compatibility has been broken,
2686 # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
2687 #
2688 SDL_MAJOR_VERSION=2
2689 SDL_MINOR_VERSION=0
2690 SDL_MICRO_VERSION=4
2691 SDL_INTERFACE_AGE=0
2692 SDL_BINARY_AGE=4
2693 SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
2694
2695
2696
2697
2698
2699
2700
2701
2702 # libtool versioning
2703 case `pwd` in
2704   *\ * | *\     *)
2705     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2706 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2707 esac
2708
2709
2710
2711 macro_version='2.4.2'
2712 macro_revision='1.3337'
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726 ltmain="$ac_aux_dir/ltmain.sh"
2727
2728 # Make sure we can run config.sub.
2729 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2730   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2731
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2733 $as_echo_n "checking build system type... " >&6; }
2734 if ${ac_cv_build+:} false; then :
2735   $as_echo_n "(cached) " >&6
2736 else
2737   ac_build_alias=$build_alias
2738 test "x$ac_build_alias" = x &&
2739   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2740 test "x$ac_build_alias" = x &&
2741   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2742 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2743   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2744
2745 fi
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2747 $as_echo "$ac_cv_build" >&6; }
2748 case $ac_cv_build in
2749 *-*-*) ;;
2750 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2751 esac
2752 build=$ac_cv_build
2753 ac_save_IFS=$IFS; IFS='-'
2754 set x $ac_cv_build
2755 shift
2756 build_cpu=$1
2757 build_vendor=$2
2758 shift; shift
2759 # Remember, the first character of IFS is used to create $*,
2760 # except with old shells:
2761 build_os=$*
2762 IFS=$ac_save_IFS
2763 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2764
2765
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2767 $as_echo_n "checking host system type... " >&6; }
2768 if ${ac_cv_host+:} false; then :
2769   $as_echo_n "(cached) " >&6
2770 else
2771   if test "x$host_alias" = x; then
2772   ac_cv_host=$ac_cv_build
2773 else
2774   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2775     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2776 fi
2777
2778 fi
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2780 $as_echo "$ac_cv_host" >&6; }
2781 case $ac_cv_host in
2782 *-*-*) ;;
2783 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2784 esac
2785 host=$ac_cv_host
2786 ac_save_IFS=$IFS; IFS='-'
2787 set x $ac_cv_host
2788 shift
2789 host_cpu=$1
2790 host_vendor=$2
2791 shift; shift
2792 # Remember, the first character of IFS is used to create $*,
2793 # except with old shells:
2794 host_os=$*
2795 IFS=$ac_save_IFS
2796 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2797
2798
2799 # Backslashify metacharacters that are still active within
2800 # double-quoted strings.
2801 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2802
2803 # Same as above, but do not quote variable references.
2804 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2805
2806 # Sed substitution to delay expansion of an escaped shell variable in a
2807 # double_quote_subst'ed string.
2808 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2809
2810 # Sed substitution to delay expansion of an escaped single quote.
2811 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2812
2813 # Sed substitution to avoid accidental globbing in evaled expressions
2814 no_glob_subst='s/\*/\\\*/g'
2815
2816 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2817 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2818 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2819
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2821 $as_echo_n "checking how to print strings... " >&6; }
2822 # Test print first, because it will be a builtin if present.
2823 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2824    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2825   ECHO='print -r --'
2826 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2827   ECHO='printf %s\n'
2828 else
2829   # Use this function as a fallback that always works.
2830   func_fallback_echo ()
2831   {
2832     eval 'cat <<_LTECHO_EOF
2833 $1
2834 _LTECHO_EOF'
2835   }
2836   ECHO='func_fallback_echo'
2837 fi
2838
2839 # func_echo_all arg...
2840 # Invoke $ECHO with all args, space-separated.
2841 func_echo_all ()
2842 {
2843     $ECHO ""
2844 }
2845
2846 case "$ECHO" in
2847   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2848 $as_echo "printf" >&6; } ;;
2849   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2850 $as_echo "print -r" >&6; } ;;
2851   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2852 $as_echo "cat" >&6; } ;;
2853 esac
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868 ac_ext=c
2869 ac_cpp='$CPP $CPPFLAGS'
2870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2873 if test -n "$ac_tool_prefix"; then
2874   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2875 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2877 $as_echo_n "checking for $ac_word... " >&6; }
2878 if ${ac_cv_prog_CC+:} false; then :
2879   $as_echo_n "(cached) " >&6
2880 else
2881   if test -n "$CC"; then
2882   ac_cv_prog_CC="$CC" # Let the user override the test.
2883 else
2884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885 for as_dir in $PATH
2886 do
2887   IFS=$as_save_IFS
2888   test -z "$as_dir" && as_dir=.
2889     for ac_exec_ext in '' $ac_executable_extensions; do
2890   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2891     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2892     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2893     break 2
2894   fi
2895 done
2896   done
2897 IFS=$as_save_IFS
2898
2899 fi
2900 fi
2901 CC=$ac_cv_prog_CC
2902 if test -n "$CC"; then
2903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2904 $as_echo "$CC" >&6; }
2905 else
2906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2907 $as_echo "no" >&6; }
2908 fi
2909
2910
2911 fi
2912 if test -z "$ac_cv_prog_CC"; then
2913   ac_ct_CC=$CC
2914   # Extract the first word of "gcc", so it can be a program name with args.
2915 set dummy gcc; ac_word=$2
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2917 $as_echo_n "checking for $ac_word... " >&6; }
2918 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2919   $as_echo_n "(cached) " >&6
2920 else
2921   if test -n "$ac_ct_CC"; then
2922   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2923 else
2924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2925 for as_dir in $PATH
2926 do
2927   IFS=$as_save_IFS
2928   test -z "$as_dir" && as_dir=.
2929     for ac_exec_ext in '' $ac_executable_extensions; do
2930   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2931     ac_cv_prog_ac_ct_CC="gcc"
2932     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2933     break 2
2934   fi
2935 done
2936   done
2937 IFS=$as_save_IFS
2938
2939 fi
2940 fi
2941 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2942 if test -n "$ac_ct_CC"; then
2943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2944 $as_echo "$ac_ct_CC" >&6; }
2945 else
2946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2947 $as_echo "no" >&6; }
2948 fi
2949
2950   if test "x$ac_ct_CC" = x; then
2951     CC=""
2952   else
2953     case $cross_compiling:$ac_tool_warned in
2954 yes:)
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2956 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2957 ac_tool_warned=yes ;;
2958 esac
2959     CC=$ac_ct_CC
2960   fi
2961 else
2962   CC="$ac_cv_prog_CC"
2963 fi
2964
2965 if test -z "$CC"; then
2966           if test -n "$ac_tool_prefix"; then
2967     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2968 set dummy ${ac_tool_prefix}cc; ac_word=$2
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2970 $as_echo_n "checking for $ac_word... " >&6; }
2971 if ${ac_cv_prog_CC+:} false; then :
2972   $as_echo_n "(cached) " >&6
2973 else
2974   if test -n "$CC"; then
2975   ac_cv_prog_CC="$CC" # Let the user override the test.
2976 else
2977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2978 for as_dir in $PATH
2979 do
2980   IFS=$as_save_IFS
2981   test -z "$as_dir" && as_dir=.
2982     for ac_exec_ext in '' $ac_executable_extensions; do
2983   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2984     ac_cv_prog_CC="${ac_tool_prefix}cc"
2985     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2986     break 2
2987   fi
2988 done
2989   done
2990 IFS=$as_save_IFS
2991
2992 fi
2993 fi
2994 CC=$ac_cv_prog_CC
2995 if test -n "$CC"; then
2996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2997 $as_echo "$CC" >&6; }
2998 else
2999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3000 $as_echo "no" >&6; }
3001 fi
3002
3003
3004   fi
3005 fi
3006 if test -z "$CC"; then
3007   # Extract the first word of "cc", so it can be a program name with args.
3008 set dummy cc; ac_word=$2
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3010 $as_echo_n "checking for $ac_word... " >&6; }
3011 if ${ac_cv_prog_CC+:} false; then :
3012   $as_echo_n "(cached) " >&6
3013 else
3014   if test -n "$CC"; then
3015   ac_cv_prog_CC="$CC" # Let the user override the test.
3016 else
3017   ac_prog_rejected=no
3018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3019 for as_dir in $PATH
3020 do
3021   IFS=$as_save_IFS
3022   test -z "$as_dir" && as_dir=.
3023     for ac_exec_ext in '' $ac_executable_extensions; do
3024   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3025     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3026        ac_prog_rejected=yes
3027        continue
3028      fi
3029     ac_cv_prog_CC="cc"
3030     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3031     break 2
3032   fi
3033 done
3034   done
3035 IFS=$as_save_IFS
3036
3037 if test $ac_prog_rejected = yes; then
3038   # We found a bogon in the path, so make sure we never use it.
3039   set dummy $ac_cv_prog_CC
3040   shift
3041   if test $# != 0; then
3042     # We chose a different compiler from the bogus one.
3043     # However, it has the same basename, so the bogon will be chosen
3044     # first if we set CC to just the basename; use the full file name.
3045     shift
3046     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3047   fi
3048 fi
3049 fi
3050 fi
3051 CC=$ac_cv_prog_CC
3052 if test -n "$CC"; then
3053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3054 $as_echo "$CC" >&6; }
3055 else
3056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3057 $as_echo "no" >&6; }
3058 fi
3059
3060
3061 fi
3062 if test -z "$CC"; then
3063   if test -n "$ac_tool_prefix"; then
3064   for ac_prog in cl.exe
3065   do
3066     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3067 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3069 $as_echo_n "checking for $ac_word... " >&6; }
3070 if ${ac_cv_prog_CC+:} false; then :
3071   $as_echo_n "(cached) " >&6
3072 else
3073   if test -n "$CC"; then
3074   ac_cv_prog_CC="$CC" # Let the user override the test.
3075 else
3076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3077 for as_dir in $PATH
3078 do
3079   IFS=$as_save_IFS
3080   test -z "$as_dir" && as_dir=.
3081     for ac_exec_ext in '' $ac_executable_extensions; do
3082   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3083     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3084     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3085     break 2
3086   fi
3087 done
3088   done
3089 IFS=$as_save_IFS
3090
3091 fi
3092 fi
3093 CC=$ac_cv_prog_CC
3094 if test -n "$CC"; then
3095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3096 $as_echo "$CC" >&6; }
3097 else
3098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3099 $as_echo "no" >&6; }
3100 fi
3101
3102
3103     test -n "$CC" && break
3104   done
3105 fi
3106 if test -z "$CC"; then
3107   ac_ct_CC=$CC
3108   for ac_prog in cl.exe
3109 do
3110   # Extract the first word of "$ac_prog", so it can be a program name with args.
3111 set dummy $ac_prog; ac_word=$2
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3113 $as_echo_n "checking for $ac_word... " >&6; }
3114 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3115   $as_echo_n "(cached) " >&6
3116 else
3117   if test -n "$ac_ct_CC"; then
3118   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3119 else
3120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3121 for as_dir in $PATH
3122 do
3123   IFS=$as_save_IFS
3124   test -z "$as_dir" && as_dir=.
3125     for ac_exec_ext in '' $ac_executable_extensions; do
3126   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3127     ac_cv_prog_ac_ct_CC="$ac_prog"
3128     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3129     break 2
3130   fi
3131 done
3132   done
3133 IFS=$as_save_IFS
3134
3135 fi
3136 fi
3137 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3138 if test -n "$ac_ct_CC"; then
3139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3140 $as_echo "$ac_ct_CC" >&6; }
3141 else
3142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3143 $as_echo "no" >&6; }
3144 fi
3145
3146
3147   test -n "$ac_ct_CC" && break
3148 done
3149
3150   if test "x$ac_ct_CC" = x; then
3151     CC=""
3152   else
3153     case $cross_compiling:$ac_tool_warned in
3154 yes:)
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3156 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3157 ac_tool_warned=yes ;;
3158 esac
3159     CC=$ac_ct_CC
3160   fi
3161 fi
3162
3163 fi
3164
3165
3166 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3167 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3168 as_fn_error $? "no acceptable C compiler found in \$PATH
3169 See \`config.log' for more details" "$LINENO" 5; }
3170
3171 # Provide some information about the compiler.
3172 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3173 set X $ac_compile
3174 ac_compiler=$2
3175 for ac_option in --version -v -V -qversion; do
3176   { { ac_try="$ac_compiler $ac_option >&5"
3177 case "(($ac_try" in
3178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3179   *) ac_try_echo=$ac_try;;
3180 esac
3181 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3182 $as_echo "$ac_try_echo"; } >&5
3183   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3184   ac_status=$?
3185   if test -s conftest.err; then
3186     sed '10a\
3187 ... rest of stderr output deleted ...
3188          10q' conftest.err >conftest.er1
3189     cat conftest.er1 >&5
3190   fi
3191   rm -f conftest.er1 conftest.err
3192   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3193   test $ac_status = 0; }
3194 done
3195
3196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3197 /* end confdefs.h.  */
3198
3199 int
3200 main ()
3201 {
3202
3203   ;
3204   return 0;
3205 }
3206 _ACEOF
3207 ac_clean_files_save=$ac_clean_files
3208 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3209 # Try to create an executable without -o first, disregard a.out.
3210 # It will help us diagnose broken compilers, and finding out an intuition
3211 # of exeext.
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3213 $as_echo_n "checking whether the C compiler works... " >&6; }
3214 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3215
3216 # The possible output files:
3217 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3218
3219 ac_rmfiles=
3220 for ac_file in $ac_files
3221 do
3222   case $ac_file in
3223     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3224     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3225   esac
3226 done
3227 rm -f $ac_rmfiles
3228
3229 if { { ac_try="$ac_link_default"
3230 case "(($ac_try" in
3231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232   *) ac_try_echo=$ac_try;;
3233 esac
3234 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3235 $as_echo "$ac_try_echo"; } >&5
3236   (eval "$ac_link_default") 2>&5
3237   ac_status=$?
3238   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3239   test $ac_status = 0; }; then :
3240   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3241 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3242 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3243 # so that the user can short-circuit this test for compilers unknown to
3244 # Autoconf.
3245 for ac_file in $ac_files ''
3246 do
3247   test -f "$ac_file" || continue
3248   case $ac_file in
3249     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3250         ;;
3251     [ab].out )
3252         # We found the default executable, but exeext='' is most
3253         # certainly right.
3254         break;;
3255     *.* )
3256         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3257         then :; else
3258            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3259         fi
3260         # We set ac_cv_exeext here because the later test for it is not
3261         # safe: cross compilers may not add the suffix if given an `-o'
3262         # argument, so we may need to know it at that point already.
3263         # Even if this section looks crufty: it has the advantage of
3264         # actually working.
3265         break;;
3266     * )
3267         break;;
3268   esac
3269 done
3270 test "$ac_cv_exeext" = no && ac_cv_exeext=
3271
3272 else
3273   ac_file=''
3274 fi
3275 if test -z "$ac_file"; then :
3276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3277 $as_echo "no" >&6; }
3278 $as_echo "$as_me: failed program was:" >&5
3279 sed 's/^/| /' conftest.$ac_ext >&5
3280
3281 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3282 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3283 as_fn_error 77 "C compiler cannot create executables
3284 See \`config.log' for more details" "$LINENO" 5; }
3285 else
3286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3287 $as_echo "yes" >&6; }
3288 fi
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3290 $as_echo_n "checking for C compiler default output file name... " >&6; }
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3292 $as_echo "$ac_file" >&6; }
3293 ac_exeext=$ac_cv_exeext
3294
3295 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3296 ac_clean_files=$ac_clean_files_save
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3298 $as_echo_n "checking for suffix of executables... " >&6; }
3299 if { { ac_try="$ac_link"
3300 case "(($ac_try" in
3301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3302   *) ac_try_echo=$ac_try;;
3303 esac
3304 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3305 $as_echo "$ac_try_echo"; } >&5
3306   (eval "$ac_link") 2>&5
3307   ac_status=$?
3308   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3309   test $ac_status = 0; }; then :
3310   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3311 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3312 # work properly (i.e., refer to `conftest.exe'), while it won't with
3313 # `rm'.
3314 for ac_file in conftest.exe conftest conftest.*; do
3315   test -f "$ac_file" || continue
3316   case $ac_file in
3317     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3318     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3319           break;;
3320     * ) break;;
3321   esac
3322 done
3323 else
3324   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3325 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3326 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3327 See \`config.log' for more details" "$LINENO" 5; }
3328 fi
3329 rm -f conftest conftest$ac_cv_exeext
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3331 $as_echo "$ac_cv_exeext" >&6; }
3332
3333 rm -f conftest.$ac_ext
3334 EXEEXT=$ac_cv_exeext
3335 ac_exeext=$EXEEXT
3336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3337 /* end confdefs.h.  */
3338 #include <stdio.h>
3339 int
3340 main ()
3341 {
3342 FILE *f = fopen ("conftest.out", "w");
3343  return ferror (f) || fclose (f) != 0;
3344
3345   ;
3346   return 0;
3347 }
3348 _ACEOF
3349 ac_clean_files="$ac_clean_files conftest.out"
3350 # Check that the compiler produces executables we can run.  If not, either
3351 # the compiler is broken, or we cross compile.
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3353 $as_echo_n "checking whether we are cross compiling... " >&6; }
3354 if test "$cross_compiling" != yes; then
3355   { { ac_try="$ac_link"
3356 case "(($ac_try" in
3357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3358   *) ac_try_echo=$ac_try;;
3359 esac
3360 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3361 $as_echo "$ac_try_echo"; } >&5
3362   (eval "$ac_link") 2>&5
3363   ac_status=$?
3364   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3365   test $ac_status = 0; }
3366   if { ac_try='./conftest$ac_cv_exeext'
3367   { { case "(($ac_try" in
3368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3369   *) ac_try_echo=$ac_try;;
3370 esac
3371 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3372 $as_echo "$ac_try_echo"; } >&5
3373   (eval "$ac_try") 2>&5
3374   ac_status=$?
3375   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3376   test $ac_status = 0; }; }; then
3377     cross_compiling=no
3378   else
3379     if test "$cross_compiling" = maybe; then
3380         cross_compiling=yes
3381     else
3382         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3383 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3384 as_fn_error $? "cannot run C compiled programs.
3385 If you meant to cross compile, use \`--host'.
3386 See \`config.log' for more details" "$LINENO" 5; }
3387     fi
3388   fi
3389 fi
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3391 $as_echo "$cross_compiling" >&6; }
3392
3393 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3394 ac_clean_files=$ac_clean_files_save
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3396 $as_echo_n "checking for suffix of object files... " >&6; }
3397 if ${ac_cv_objext+:} false; then :
3398   $as_echo_n "(cached) " >&6
3399 else
3400   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3401 /* end confdefs.h.  */
3402
3403 int
3404 main ()
3405 {
3406
3407   ;
3408   return 0;
3409 }
3410 _ACEOF
3411 rm -f conftest.o conftest.obj
3412 if { { ac_try="$ac_compile"
3413 case "(($ac_try" in
3414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3415   *) ac_try_echo=$ac_try;;
3416 esac
3417 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3418 $as_echo "$ac_try_echo"; } >&5
3419   (eval "$ac_compile") 2>&5
3420   ac_status=$?
3421   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3422   test $ac_status = 0; }; then :
3423   for ac_file in conftest.o conftest.obj conftest.*; do
3424   test -f "$ac_file" || continue;
3425   case $ac_file in
3426     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3427     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3428        break;;
3429   esac
3430 done
3431 else
3432   $as_echo "$as_me: failed program was:" >&5
3433 sed 's/^/| /' conftest.$ac_ext >&5
3434
3435 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3436 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3437 as_fn_error $? "cannot compute suffix of object files: cannot compile
3438 See \`config.log' for more details" "$LINENO" 5; }
3439 fi
3440 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3441 fi
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3443 $as_echo "$ac_cv_objext" >&6; }
3444 OBJEXT=$ac_cv_objext
3445 ac_objext=$OBJEXT
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3447 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3448 if ${ac_cv_c_compiler_gnu+:} false; then :
3449   $as_echo_n "(cached) " >&6
3450 else
3451   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3452 /* end confdefs.h.  */
3453
3454 int
3455 main ()
3456 {
3457 #ifndef __GNUC__
3458        choke me
3459 #endif
3460
3461   ;
3462   return 0;
3463 }
3464 _ACEOF
3465 if ac_fn_c_try_compile "$LINENO"; then :
3466   ac_compiler_gnu=yes
3467 else
3468   ac_compiler_gnu=no
3469 fi
3470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3471 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3472
3473 fi
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3475 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3476 if test $ac_compiler_gnu = yes; then
3477   GCC=yes
3478 else
3479   GCC=
3480 fi
3481 ac_test_CFLAGS=${CFLAGS+set}
3482 ac_save_CFLAGS=$CFLAGS
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3484 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3485 if ${ac_cv_prog_cc_g+:} false; then :
3486   $as_echo_n "(cached) " >&6
3487 else
3488   ac_save_c_werror_flag=$ac_c_werror_flag
3489    ac_c_werror_flag=yes
3490    ac_cv_prog_cc_g=no
3491    CFLAGS="-g"
3492    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3493 /* end confdefs.h.  */
3494
3495 int
3496 main ()
3497 {
3498
3499   ;
3500   return 0;
3501 }
3502 _ACEOF
3503 if ac_fn_c_try_compile "$LINENO"; then :
3504   ac_cv_prog_cc_g=yes
3505 else
3506   CFLAGS=""
3507       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3508 /* end confdefs.h.  */
3509
3510 int
3511 main ()
3512 {
3513
3514   ;
3515   return 0;
3516 }
3517 _ACEOF
3518 if ac_fn_c_try_compile "$LINENO"; then :
3519
3520 else
3521   ac_c_werror_flag=$ac_save_c_werror_flag
3522          CFLAGS="-g"
3523          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3524 /* end confdefs.h.  */
3525
3526 int
3527 main ()
3528 {
3529
3530   ;
3531   return 0;
3532 }
3533 _ACEOF
3534 if ac_fn_c_try_compile "$LINENO"; then :
3535   ac_cv_prog_cc_g=yes
3536 fi
3537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3538 fi
3539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3540 fi
3541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3542    ac_c_werror_flag=$ac_save_c_werror_flag
3543 fi
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3545 $as_echo "$ac_cv_prog_cc_g" >&6; }
3546 if test "$ac_test_CFLAGS" = set; then
3547   CFLAGS=$ac_save_CFLAGS
3548 elif test $ac_cv_prog_cc_g = yes; then
3549   if test "$GCC" = yes; then
3550     CFLAGS="-g -O2"
3551   else
3552     CFLAGS="-g"
3553   fi
3554 else
3555   if test "$GCC" = yes; then
3556     CFLAGS="-O2"
3557   else
3558     CFLAGS=
3559   fi
3560 fi
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3562 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3563 if ${ac_cv_prog_cc_c89+:} false; then :
3564   $as_echo_n "(cached) " >&6
3565 else
3566   ac_cv_prog_cc_c89=no
3567 ac_save_CC=$CC
3568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3569 /* end confdefs.h.  */
3570 #include <stdarg.h>
3571 #include <stdio.h>
3572 struct stat;
3573 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3574 struct buf { int x; };
3575 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3576 static char *e (p, i)
3577      char **p;
3578      int i;
3579 {
3580   return p[i];
3581 }
3582 static char *f (char * (*g) (char **, int), char **p, ...)
3583 {
3584   char *s;
3585   va_list v;
3586   va_start (v,p);
3587   s = g (p, va_arg (v,int));
3588   va_end (v);
3589   return s;
3590 }
3591
3592 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3593    function prototypes and stuff, but not '\xHH' hex character constants.
3594    These don't provoke an error unfortunately, instead are silently treated
3595    as 'x'.  The following induces an error, until -std is added to get
3596    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3597    array size at least.  It's necessary to write '\x00'==0 to get something
3598    that's true only with -std.  */
3599 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3600
3601 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3602    inside strings and character constants.  */
3603 #define FOO(x) 'x'
3604 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3605
3606 int test (int i, double x);
3607 struct s1 {int (*f) (int a);};
3608 struct s2 {int (*f) (double a);};
3609 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3610 int argc;
3611 char **argv;
3612 int
3613 main ()
3614 {
3615 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3616   ;
3617   return 0;
3618 }
3619 _ACEOF
3620 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3621         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3622 do
3623   CC="$ac_save_CC $ac_arg"
3624   if ac_fn_c_try_compile "$LINENO"; then :
3625   ac_cv_prog_cc_c89=$ac_arg
3626 fi
3627 rm -f core conftest.err conftest.$ac_objext
3628   test "x$ac_cv_prog_cc_c89" != "xno" && break
3629 done
3630 rm -f conftest.$ac_ext
3631 CC=$ac_save_CC
3632
3633 fi
3634 # AC_CACHE_VAL
3635 case "x$ac_cv_prog_cc_c89" in
3636   x)
3637     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3638 $as_echo "none needed" >&6; } ;;
3639   xno)
3640     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3641 $as_echo "unsupported" >&6; } ;;
3642   *)
3643     CC="$CC $ac_cv_prog_cc_c89"
3644     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3645 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3646 esac
3647 if test "x$ac_cv_prog_cc_c89" != xno; then :
3648
3649 fi
3650
3651 ac_ext=c
3652 ac_cpp='$CPP $CPPFLAGS'
3653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3656
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3658 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3659 if ${ac_cv_path_SED+:} false; then :
3660   $as_echo_n "(cached) " >&6
3661 else
3662             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3663      for ac_i in 1 2 3 4 5 6 7; do
3664        ac_script="$ac_script$as_nl$ac_script"
3665      done
3666      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3667      { ac_script=; unset ac_script;}
3668      if test -z "$SED"; then
3669   ac_path_SED_found=false
3670   # Loop through the user's path and test for each of PROGNAME-LIST
3671   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3672 for as_dir in $PATH
3673 do
3674   IFS=$as_save_IFS
3675   test -z "$as_dir" && as_dir=.
3676     for ac_prog in sed gsed; do
3677     for ac_exec_ext in '' $ac_executable_extensions; do
3678       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3679       as_fn_executable_p "$ac_path_SED" || continue
3680 # Check for GNU ac_path_SED and select it if it is found.
3681   # Check for GNU $ac_path_SED
3682 case `"$ac_path_SED" --version 2>&1` in
3683 *GNU*)
3684   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3685 *)
3686   ac_count=0
3687   $as_echo_n 0123456789 >"conftest.in"
3688   while :
3689   do
3690     cat "conftest.in" "conftest.in" >"conftest.tmp"
3691     mv "conftest.tmp" "conftest.in"
3692     cp "conftest.in" "conftest.nl"
3693     $as_echo '' >> "conftest.nl"
3694     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3695     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3696     as_fn_arith $ac_count + 1 && ac_count=$as_val
3697     if test $ac_count -gt ${ac_path_SED_max-0}; then
3698       # Best one so far, save it but keep looking for a better one
3699       ac_cv_path_SED="$ac_path_SED"
3700       ac_path_SED_max=$ac_count
3701     fi
3702     # 10*(2^10) chars as input seems more than enough
3703     test $ac_count -gt 10 && break
3704   done
3705   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3706 esac
3707
3708       $ac_path_SED_found && break 3
3709     done
3710   done
3711   done
3712 IFS=$as_save_IFS
3713   if test -z "$ac_cv_path_SED"; then
3714     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3715   fi
3716 else
3717   ac_cv_path_SED=$SED
3718 fi
3719
3720 fi
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3722 $as_echo "$ac_cv_path_SED" >&6; }
3723  SED="$ac_cv_path_SED"
3724   rm -f conftest.sed
3725
3726 test -z "$SED" && SED=sed
3727 Xsed="$SED -e 1s/^X//"
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3740 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3741 if ${ac_cv_path_GREP+:} false; then :
3742   $as_echo_n "(cached) " >&6
3743 else
3744   if test -z "$GREP"; then
3745   ac_path_GREP_found=false
3746   # Loop through the user's path and test for each of PROGNAME-LIST
3747   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3748 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3749 do
3750   IFS=$as_save_IFS
3751   test -z "$as_dir" && as_dir=.
3752     for ac_prog in grep ggrep; do
3753     for ac_exec_ext in '' $ac_executable_extensions; do
3754       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3755       as_fn_executable_p "$ac_path_GREP" || continue
3756 # Check for GNU ac_path_GREP and select it if it is found.
3757   # Check for GNU $ac_path_GREP
3758 case `"$ac_path_GREP" --version 2>&1` in
3759 *GNU*)
3760   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3761 *)
3762   ac_count=0
3763   $as_echo_n 0123456789 >"conftest.in"
3764   while :
3765   do
3766     cat "conftest.in" "conftest.in" >"conftest.tmp"
3767     mv "conftest.tmp" "conftest.in"
3768     cp "conftest.in" "conftest.nl"
3769     $as_echo 'GREP' >> "conftest.nl"
3770     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3771     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3772     as_fn_arith $ac_count + 1 && ac_count=$as_val
3773     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3774       # Best one so far, save it but keep looking for a better one
3775       ac_cv_path_GREP="$ac_path_GREP"
3776       ac_path_GREP_max=$ac_count
3777     fi
3778     # 10*(2^10) chars as input seems more than enough
3779     test $ac_count -gt 10 && break
3780   done
3781   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3782 esac
3783
3784       $ac_path_GREP_found && break 3
3785     done
3786   done
3787   done
3788 IFS=$as_save_IFS
3789   if test -z "$ac_cv_path_GREP"; then
3790     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3791   fi
3792 else
3793   ac_cv_path_GREP=$GREP
3794 fi
3795
3796 fi
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3798 $as_echo "$ac_cv_path_GREP" >&6; }
3799  GREP="$ac_cv_path_GREP"
3800
3801
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3803 $as_echo_n "checking for egrep... " >&6; }
3804 if ${ac_cv_path_EGREP+:} false; then :
3805   $as_echo_n "(cached) " >&6
3806 else
3807   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3808    then ac_cv_path_EGREP="$GREP -E"
3809    else
3810      if test -z "$EGREP"; then
3811   ac_path_EGREP_found=false
3812   # Loop through the user's path and test for each of PROGNAME-LIST
3813   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3814 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3815 do
3816   IFS=$as_save_IFS
3817   test -z "$as_dir" && as_dir=.
3818     for ac_prog in egrep; do
3819     for ac_exec_ext in '' $ac_executable_extensions; do
3820       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3821       as_fn_executable_p "$ac_path_EGREP" || continue
3822 # Check for GNU ac_path_EGREP and select it if it is found.
3823   # Check for GNU $ac_path_EGREP
3824 case `"$ac_path_EGREP" --version 2>&1` in
3825 *GNU*)
3826   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3827 *)
3828   ac_count=0
3829   $as_echo_n 0123456789 >"conftest.in"
3830   while :
3831   do
3832     cat "conftest.in" "conftest.in" >"conftest.tmp"
3833     mv "conftest.tmp" "conftest.in"
3834     cp "conftest.in" "conftest.nl"
3835     $as_echo 'EGREP' >> "conftest.nl"
3836     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3837     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3838     as_fn_arith $ac_count + 1 && ac_count=$as_val
3839     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3840       # Best one so far, save it but keep looking for a better one
3841       ac_cv_path_EGREP="$ac_path_EGREP"
3842       ac_path_EGREP_max=$ac_count
3843     fi
3844     # 10*(2^10) chars as input seems more than enough
3845     test $ac_count -gt 10 && break
3846   done
3847   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3848 esac
3849
3850       $ac_path_EGREP_found && break 3
3851     done
3852   done
3853   done
3854 IFS=$as_save_IFS
3855   if test -z "$ac_cv_path_EGREP"; then
3856     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3857   fi
3858 else
3859   ac_cv_path_EGREP=$EGREP
3860 fi
3861
3862    fi
3863 fi
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3865 $as_echo "$ac_cv_path_EGREP" >&6; }
3866  EGREP="$ac_cv_path_EGREP"
3867
3868
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3870 $as_echo_n "checking for fgrep... " >&6; }
3871 if ${ac_cv_path_FGREP+:} false; then :
3872   $as_echo_n "(cached) " >&6
3873 else
3874   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3875    then ac_cv_path_FGREP="$GREP -F"
3876    else
3877      if test -z "$FGREP"; then
3878   ac_path_FGREP_found=false
3879   # Loop through the user's path and test for each of PROGNAME-LIST
3880   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3881 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3882 do
3883   IFS=$as_save_IFS
3884   test -z "$as_dir" && as_dir=.
3885     for ac_prog in fgrep; do
3886     for ac_exec_ext in '' $ac_executable_extensions; do
3887       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3888       as_fn_executable_p "$ac_path_FGREP" || continue
3889 # Check for GNU ac_path_FGREP and select it if it is found.
3890   # Check for GNU $ac_path_FGREP
3891 case `"$ac_path_FGREP" --version 2>&1` in
3892 *GNU*)
3893   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3894 *)
3895   ac_count=0
3896   $as_echo_n 0123456789 >"conftest.in"
3897   while :
3898   do
3899     cat "conftest.in" "conftest.in" >"conftest.tmp"
3900     mv "conftest.tmp" "conftest.in"
3901     cp "conftest.in" "conftest.nl"
3902     $as_echo 'FGREP' >> "conftest.nl"
3903     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3904     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3905     as_fn_arith $ac_count + 1 && ac_count=$as_val
3906     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3907       # Best one so far, save it but keep looking for a better one
3908       ac_cv_path_FGREP="$ac_path_FGREP"
3909       ac_path_FGREP_max=$ac_count
3910     fi
3911     # 10*(2^10) chars as input seems more than enough
3912     test $ac_count -gt 10 && break
3913   done
3914   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3915 esac
3916
3917       $ac_path_FGREP_found && break 3
3918     done
3919   done
3920   done
3921 IFS=$as_save_IFS
3922   if test -z "$ac_cv_path_FGREP"; then
3923     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3924   fi
3925 else
3926   ac_cv_path_FGREP=$FGREP
3927 fi
3928
3929    fi
3930 fi
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3932 $as_echo "$ac_cv_path_FGREP" >&6; }
3933  FGREP="$ac_cv_path_FGREP"
3934
3935
3936 test -z "$GREP" && GREP=grep
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956 # Check whether --with-gnu-ld was given.
3957 if test "${with_gnu_ld+set}" = set; then :
3958   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3959 else
3960   with_gnu_ld=no
3961 fi
3962
3963 ac_prog=ld
3964 if test "$GCC" = yes; then
3965   # Check if gcc -print-prog-name=ld gives a path.
3966   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3967 $as_echo_n "checking for ld used by $CC... " >&6; }
3968   case $host in
3969   *-*-mingw*)
3970     # gcc leaves a trailing carriage return which upsets mingw
3971     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3972   *)
3973     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3974   esac
3975   case $ac_prog in
3976     # Accept absolute paths.
3977     [\\/]* | ?:[\\/]*)
3978       re_direlt='/[^/][^/]*/\.\./'
3979       # Canonicalize the pathname of ld
3980       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3981       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3982         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3983       done
3984       test -z "$LD" && LD="$ac_prog"
3985       ;;
3986   "")
3987     # If it fails, then pretend we aren't using GCC.
3988     ac_prog=ld
3989     ;;
3990   *)
3991     # If it is relative, then search for the first ld in PATH.
3992     with_gnu_ld=unknown
3993     ;;
3994   esac
3995 elif test "$with_gnu_ld" = yes; then
3996   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
3997 $as_echo_n "checking for GNU ld... " >&6; }
3998 else
3999   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4000 $as_echo_n "checking for non-GNU ld... " >&6; }
4001 fi
4002 if ${lt_cv_path_LD+:} false; then :
4003   $as_echo_n "(cached) " >&6
4004 else
4005   if test -z "$LD"; then
4006   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4007   for ac_dir in $PATH; do
4008     IFS="$lt_save_ifs"
4009     test -z "$ac_dir" && ac_dir=.
4010     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4011       lt_cv_path_LD="$ac_dir/$ac_prog"
4012       # Check to see if the program is GNU ld.  I'd rather use --version,
4013       # but apparently some variants of GNU ld only accept -v.
4014       # Break only if it was the GNU/non-GNU ld that we prefer.
4015       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4016       *GNU* | *'with BFD'*)
4017         test "$with_gnu_ld" != no && break
4018         ;;
4019       *)
4020         test "$with_gnu_ld" != yes && break
4021         ;;
4022       esac
4023     fi
4024   done
4025   IFS="$lt_save_ifs"
4026 else
4027   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4028 fi
4029 fi
4030
4031 LD="$lt_cv_path_LD"
4032 if test -n "$LD"; then
4033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4034 $as_echo "$LD" >&6; }
4035 else
4036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4037 $as_echo "no" >&6; }
4038 fi
4039 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4041 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4042 if ${lt_cv_prog_gnu_ld+:} false; then :
4043   $as_echo_n "(cached) " >&6
4044 else
4045   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4046 case `$LD -v 2>&1 </dev/null` in
4047 *GNU* | *'with BFD'*)
4048   lt_cv_prog_gnu_ld=yes
4049   ;;
4050 *)
4051   lt_cv_prog_gnu_ld=no
4052   ;;
4053 esac
4054 fi
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4056 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4057 with_gnu_ld=$lt_cv_prog_gnu_ld
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4068 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4069 if ${lt_cv_path_NM+:} false; then :
4070   $as_echo_n "(cached) " >&6
4071 else
4072   if test -n "$NM"; then
4073   # Let the user override the test.
4074   lt_cv_path_NM="$NM"
4075 else
4076   lt_nm_to_check="${ac_tool_prefix}nm"
4077   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4078     lt_nm_to_check="$lt_nm_to_check nm"
4079   fi
4080   for lt_tmp_nm in $lt_nm_to_check; do
4081     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4082     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4083       IFS="$lt_save_ifs"
4084       test -z "$ac_dir" && ac_dir=.
4085       tmp_nm="$ac_dir/$lt_tmp_nm"
4086       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4087         # Check to see if the nm accepts a BSD-compat flag.
4088         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4089         #   nm: unknown option "B" ignored
4090         # Tru64's nm complains that /dev/null is an invalid object file
4091         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4092         */dev/null* | *'Invalid file or object type'*)
4093           lt_cv_path_NM="$tmp_nm -B"
4094           break
4095           ;;
4096         *)
4097           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4098           */dev/null*)
4099             lt_cv_path_NM="$tmp_nm -p"
4100             break
4101             ;;
4102           *)
4103             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4104             continue # so that we can try to find one that supports BSD flags
4105             ;;
4106           esac
4107           ;;
4108         esac
4109       fi
4110     done
4111     IFS="$lt_save_ifs"
4112   done
4113   : ${lt_cv_path_NM=no}
4114 fi
4115 fi
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4117 $as_echo "$lt_cv_path_NM" >&6; }
4118 if test "$lt_cv_path_NM" != "no"; then
4119   NM="$lt_cv_path_NM"
4120 else
4121   # Didn't find any BSD compatible name lister, look for dumpbin.
4122   if test -n "$DUMPBIN"; then :
4123     # Let the user override the test.
4124   else
4125     if test -n "$ac_tool_prefix"; then
4126   for ac_prog in dumpbin "link -dump"
4127   do
4128     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4129 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4131 $as_echo_n "checking for $ac_word... " >&6; }
4132 if ${ac_cv_prog_DUMPBIN+:} false; then :
4133   $as_echo_n "(cached) " >&6
4134 else
4135   if test -n "$DUMPBIN"; then
4136   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4137 else
4138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4139 for as_dir in $PATH
4140 do
4141   IFS=$as_save_IFS
4142   test -z "$as_dir" && as_dir=.
4143     for ac_exec_ext in '' $ac_executable_extensions; do
4144   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4145     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4146     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4147     break 2
4148   fi
4149 done
4150   done
4151 IFS=$as_save_IFS
4152
4153 fi
4154 fi
4155 DUMPBIN=$ac_cv_prog_DUMPBIN
4156 if test -n "$DUMPBIN"; then
4157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4158 $as_echo "$DUMPBIN" >&6; }
4159 else
4160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4161 $as_echo "no" >&6; }
4162 fi
4163
4164
4165     test -n "$DUMPBIN" && break
4166   done
4167 fi
4168 if test -z "$DUMPBIN"; then
4169   ac_ct_DUMPBIN=$DUMPBIN
4170   for ac_prog in dumpbin "link -dump"
4171 do
4172   # Extract the first word of "$ac_prog", so it can be a program name with args.
4173 set dummy $ac_prog; ac_word=$2
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4175 $as_echo_n "checking for $ac_word... " >&6; }
4176 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4177   $as_echo_n "(cached) " >&6
4178 else
4179   if test -n "$ac_ct_DUMPBIN"; then
4180   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4181 else
4182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4183 for as_dir in $PATH
4184 do
4185   IFS=$as_save_IFS
4186   test -z "$as_dir" && as_dir=.
4187     for ac_exec_ext in '' $ac_executable_extensions; do
4188   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4189     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4190     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4191     break 2
4192   fi
4193 done
4194   done
4195 IFS=$as_save_IFS
4196
4197 fi
4198 fi
4199 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4200 if test -n "$ac_ct_DUMPBIN"; then
4201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4202 $as_echo "$ac_ct_DUMPBIN" >&6; }
4203 else
4204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4205 $as_echo "no" >&6; }
4206 fi
4207
4208
4209   test -n "$ac_ct_DUMPBIN" && break
4210 done
4211
4212   if test "x$ac_ct_DUMPBIN" = x; then
4213     DUMPBIN=":"
4214   else
4215     case $cross_compiling:$ac_tool_warned in
4216 yes:)
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4218 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4219 ac_tool_warned=yes ;;
4220 esac
4221     DUMPBIN=$ac_ct_DUMPBIN
4222   fi
4223 fi
4224
4225     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4226     *COFF*)
4227       DUMPBIN="$DUMPBIN -symbols"
4228       ;;
4229     *)
4230       DUMPBIN=:
4231       ;;
4232     esac
4233   fi
4234
4235   if test "$DUMPBIN" != ":"; then
4236     NM="$DUMPBIN"
4237   fi
4238 fi
4239 test -z "$NM" && NM=nm
4240
4241
4242
4243
4244
4245
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4247 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4248 if ${lt_cv_nm_interface+:} false; then :
4249   $as_echo_n "(cached) " >&6
4250 else
4251   lt_cv_nm_interface="BSD nm"
4252   echo "int some_variable = 0;" > conftest.$ac_ext
4253   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4254   (eval "$ac_compile" 2>conftest.err)
4255   cat conftest.err >&5
4256   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4257   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4258   cat conftest.err >&5
4259   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4260   cat conftest.out >&5
4261   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4262     lt_cv_nm_interface="MS dumpbin"
4263   fi
4264   rm -f conftest*
4265 fi
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4267 $as_echo "$lt_cv_nm_interface" >&6; }
4268
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4270 $as_echo_n "checking whether ln -s works... " >&6; }
4271 LN_S=$as_ln_s
4272 if test "$LN_S" = "ln -s"; then
4273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4274 $as_echo "yes" >&6; }
4275 else
4276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4277 $as_echo "no, using $LN_S" >&6; }
4278 fi
4279
4280 # find the maximum length of command line arguments
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4282 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4283 if ${lt_cv_sys_max_cmd_len+:} false; then :
4284   $as_echo_n "(cached) " >&6
4285 else
4286     i=0
4287   teststring="ABCD"
4288
4289   case $build_os in
4290   msdosdjgpp*)
4291     # On DJGPP, this test can blow up pretty badly due to problems in libc
4292     # (any single argument exceeding 2000 bytes causes a buffer overrun
4293     # during glob expansion).  Even if it were fixed, the result of this
4294     # check would be larger than it should be.
4295     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4296     ;;
4297
4298   gnu*)
4299     # Under GNU Hurd, this test is not required because there is
4300     # no limit to the length of command line arguments.
4301     # Libtool will interpret -1 as no limit whatsoever
4302     lt_cv_sys_max_cmd_len=-1;
4303     ;;
4304
4305   cygwin* | mingw* | cegcc*)
4306     # On Win9x/ME, this test blows up -- it succeeds, but takes
4307     # about 5 minutes as the teststring grows exponentially.
4308     # Worse, since 9x/ME are not pre-emptively multitasking,
4309     # you end up with a "frozen" computer, even though with patience
4310     # the test eventually succeeds (with a max line length of 256k).
4311     # Instead, let's just punt: use the minimum linelength reported by
4312     # all of the supported platforms: 8192 (on NT/2K/XP).
4313     lt_cv_sys_max_cmd_len=8192;
4314     ;;
4315
4316   mint*)
4317     # On MiNT this can take a long time and run out of memory.
4318     lt_cv_sys_max_cmd_len=8192;
4319     ;;
4320
4321   amigaos*)
4322     # On AmigaOS with pdksh, this test takes hours, literally.
4323     # So we just punt and use a minimum line length of 8192.
4324     lt_cv_sys_max_cmd_len=8192;
4325     ;;
4326
4327   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4328     # This has been around since 386BSD, at least.  Likely further.
4329     if test -x /sbin/sysctl; then
4330       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4331     elif test -x /usr/sbin/sysctl; then
4332       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4333     else
4334       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4335     fi
4336     # And add a safety zone
4337     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4338     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4339     ;;
4340
4341   interix*)
4342     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4343     lt_cv_sys_max_cmd_len=196608
4344     ;;
4345
4346   os2*)
4347     # The test takes a long time on OS/2.
4348     lt_cv_sys_max_cmd_len=8192
4349     ;;
4350
4351   osf*)
4352     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4353     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4354     # nice to cause kernel panics so lets avoid the loop below.
4355     # First set a reasonable default.
4356     lt_cv_sys_max_cmd_len=16384
4357     #
4358     if test -x /sbin/sysconfig; then
4359       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4360         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4361       esac
4362     fi
4363     ;;
4364   sco3.2v5*)
4365     lt_cv_sys_max_cmd_len=102400
4366     ;;
4367   sysv5* | sco5v6* | sysv4.2uw2*)
4368     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4369     if test -n "$kargmax"; then
4370       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4371     else
4372       lt_cv_sys_max_cmd_len=32768
4373     fi
4374     ;;
4375   *)
4376     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4377     if test -n "$lt_cv_sys_max_cmd_len"; then
4378       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4379       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4380     else
4381       # Make teststring a little bigger before we do anything with it.
4382       # a 1K string should be a reasonable start.
4383       for i in 1 2 3 4 5 6 7 8 ; do
4384         teststring=$teststring$teststring
4385       done
4386       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4387       # If test is not a shell built-in, we'll probably end up computing a
4388       # maximum length that is only half of the actual maximum length, but
4389       # we can't tell.
4390       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4391                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4392               test $i != 17 # 1/2 MB should be enough
4393       do
4394         i=`expr $i + 1`
4395         teststring=$teststring$teststring
4396       done
4397       # Only check the string length outside the loop.
4398       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4399       teststring=
4400       # Add a significant safety factor because C++ compilers can tack on
4401       # massive amounts of additional arguments before passing them to the
4402       # linker.  It appears as though 1/2 is a usable value.
4403       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4404     fi
4405     ;;
4406   esac
4407
4408 fi
4409
4410 if test -n $lt_cv_sys_max_cmd_len ; then
4411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4412 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4413 else
4414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4415 $as_echo "none" >&6; }
4416 fi
4417 max_cmd_len=$lt_cv_sys_max_cmd_len
4418
4419
4420
4421
4422
4423
4424 : ${CP="cp -f"}
4425 : ${MV="mv -f"}
4426 : ${RM="rm -f"}
4427
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4429 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4430 # Try some XSI features
4431 xsi_shell=no
4432 ( _lt_dummy="a/b/c"
4433   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4434       = c,a/b,b/c, \
4435     && eval 'test $(( 1 + 1 )) -eq 2 \
4436     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4437   && xsi_shell=yes
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4439 $as_echo "$xsi_shell" >&6; }
4440
4441
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4443 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4444 lt_shell_append=no
4445 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4446     >/dev/null 2>&1 \
4447   && lt_shell_append=yes
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4449 $as_echo "$lt_shell_append" >&6; }
4450
4451
4452 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4453   lt_unset=unset
4454 else
4455   lt_unset=false
4456 fi
4457
4458
4459
4460
4461
4462 # test EBCDIC or ASCII
4463 case `echo X|tr X '\101'` in
4464  A) # ASCII based system
4465     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4466   lt_SP2NL='tr \040 \012'
4467   lt_NL2SP='tr \015\012 \040\040'
4468   ;;
4469  *) # EBCDIC based system
4470   lt_SP2NL='tr \100 \n'
4471   lt_NL2SP='tr \r\n \100\100'
4472   ;;
4473 esac
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4484 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4485 if ${lt_cv_to_host_file_cmd+:} false; then :
4486   $as_echo_n "(cached) " >&6
4487 else
4488   case $host in
4489   *-*-mingw* )
4490     case $build in
4491       *-*-mingw* ) # actually msys
4492         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4493         ;;
4494       *-*-cygwin* )
4495         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4496         ;;
4497       * ) # otherwise, assume *nix
4498         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4499         ;;
4500     esac
4501     ;;
4502   *-*-cygwin* )
4503     case $build in
4504       *-*-mingw* ) # actually msys
4505         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4506         ;;
4507       *-*-cygwin* )
4508         lt_cv_to_host_file_cmd=func_convert_file_noop
4509         ;;
4510       * ) # otherwise, assume *nix
4511         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4512         ;;
4513     esac
4514     ;;
4515   * ) # unhandled hosts (and "normal" native builds)
4516     lt_cv_to_host_file_cmd=func_convert_file_noop
4517     ;;
4518 esac
4519
4520 fi
4521
4522 to_host_file_cmd=$lt_cv_to_host_file_cmd
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4524 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4525
4526
4527
4528
4529
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4531 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4532 if ${lt_cv_to_tool_file_cmd+:} false; then :
4533   $as_echo_n "(cached) " >&6
4534 else
4535   #assume ordinary cross tools, or native build.
4536 lt_cv_to_tool_file_cmd=func_convert_file_noop
4537 case $host in
4538   *-*-mingw* )
4539     case $build in
4540       *-*-mingw* ) # actually msys
4541         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4542         ;;
4543     esac
4544     ;;
4545 esac
4546
4547 fi
4548
4549 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4551 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4552
4553
4554
4555
4556
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4558 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4559 if ${lt_cv_ld_reload_flag+:} false; then :
4560   $as_echo_n "(cached) " >&6
4561 else
4562   lt_cv_ld_reload_flag='-r'
4563 fi
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4565 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4566 reload_flag=$lt_cv_ld_reload_flag
4567 case $reload_flag in
4568 "" | " "*) ;;
4569 *) reload_flag=" $reload_flag" ;;
4570 esac
4571 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4572 case $host_os in
4573   cygwin* | mingw* | pw32* | cegcc*)
4574     if test "$GCC" != yes; then
4575       reload_cmds=false
4576     fi
4577     ;;
4578   darwin*)
4579     if test "$GCC" = yes; then
4580       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4581     else
4582       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4583     fi
4584     ;;
4585 esac
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595 if test -n "$ac_tool_prefix"; then
4596   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4597 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4599 $as_echo_n "checking for $ac_word... " >&6; }
4600 if ${ac_cv_prog_OBJDUMP+:} false; then :
4601   $as_echo_n "(cached) " >&6
4602 else
4603   if test -n "$OBJDUMP"; then
4604   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4605 else
4606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4607 for as_dir in $PATH
4608 do
4609   IFS=$as_save_IFS
4610   test -z "$as_dir" && as_dir=.
4611     for ac_exec_ext in '' $ac_executable_extensions; do
4612   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4613     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4614     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4615     break 2
4616   fi
4617 done
4618   done
4619 IFS=$as_save_IFS
4620
4621 fi
4622 fi
4623 OBJDUMP=$ac_cv_prog_OBJDUMP
4624 if test -n "$OBJDUMP"; then
4625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4626 $as_echo "$OBJDUMP" >&6; }
4627 else
4628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4629 $as_echo "no" >&6; }
4630 fi
4631
4632
4633 fi
4634 if test -z "$ac_cv_prog_OBJDUMP"; then
4635   ac_ct_OBJDUMP=$OBJDUMP
4636   # Extract the first word of "objdump", so it can be a program name with args.
4637 set dummy objdump; ac_word=$2
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4639 $as_echo_n "checking for $ac_word... " >&6; }
4640 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4641   $as_echo_n "(cached) " >&6
4642 else
4643   if test -n "$ac_ct_OBJDUMP"; then
4644   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4645 else
4646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4647 for as_dir in $PATH
4648 do
4649   IFS=$as_save_IFS
4650   test -z "$as_dir" && as_dir=.
4651     for ac_exec_ext in '' $ac_executable_extensions; do
4652   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4653     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4654     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4655     break 2
4656   fi
4657 done
4658   done
4659 IFS=$as_save_IFS
4660
4661 fi
4662 fi
4663 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4664 if test -n "$ac_ct_OBJDUMP"; then
4665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4666 $as_echo "$ac_ct_OBJDUMP" >&6; }
4667 else
4668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4669 $as_echo "no" >&6; }
4670 fi
4671
4672   if test "x$ac_ct_OBJDUMP" = x; then
4673     OBJDUMP="false"
4674   else
4675     case $cross_compiling:$ac_tool_warned in
4676 yes:)
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4678 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4679 ac_tool_warned=yes ;;
4680 esac
4681     OBJDUMP=$ac_ct_OBJDUMP
4682   fi
4683 else
4684   OBJDUMP="$ac_cv_prog_OBJDUMP"
4685 fi
4686
4687 test -z "$OBJDUMP" && OBJDUMP=objdump
4688
4689
4690
4691
4692
4693
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4695 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4696 if ${lt_cv_deplibs_check_method+:} false; then :
4697   $as_echo_n "(cached) " >&6
4698 else
4699   lt_cv_file_magic_cmd='$MAGIC_CMD'
4700 lt_cv_file_magic_test_file=
4701 lt_cv_deplibs_check_method='unknown'
4702 # Need to set the preceding variable on all platforms that support
4703 # interlibrary dependencies.
4704 # 'none' -- dependencies not supported.
4705 # `unknown' -- same as none, but documents that we really don't know.
4706 # 'pass_all' -- all dependencies passed with no checks.
4707 # 'test_compile' -- check by making test program.
4708 # 'file_magic [[regex]]' -- check by looking for files in library path
4709 # which responds to the $file_magic_cmd with a given extended regex.
4710 # If you have `file' or equivalent on your system and you're not sure
4711 # whether `pass_all' will *always* work, you probably want this one.
4712
4713 case $host_os in
4714 aix[4-9]*)
4715   lt_cv_deplibs_check_method=pass_all
4716   ;;
4717
4718 beos*)
4719   lt_cv_deplibs_check_method=pass_all
4720   ;;
4721
4722 bsdi[45]*)
4723   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4724   lt_cv_file_magic_cmd='/usr/bin/file -L'
4725   lt_cv_file_magic_test_file=/shlib/libc.so
4726   ;;
4727
4728 cygwin*)
4729   # func_win32_libid is a shell function defined in ltmain.sh
4730   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4731   lt_cv_file_magic_cmd='func_win32_libid'
4732   lt_cv_deplibs_check_method=pass_all
4733   ;;
4734
4735 mingw* | pw32*)
4736   # Base MSYS/MinGW do not provide the 'file' command needed by
4737   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4738   # unless we find 'file', for example because we are cross-compiling.
4739   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4740   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4741     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4742     lt_cv_file_magic_cmd='func_win32_libid'
4743   else
4744     # Keep this pattern in sync with the one in func_win32_libid.
4745     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4746     lt_cv_file_magic_cmd='$OBJDUMP -f'
4747   fi
4748   lt_cv_deplibs_check_method=pass_all
4749   ;;
4750
4751 cegcc*)
4752   # use the weaker test based on 'objdump'. See mingw*.
4753   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4754   lt_cv_file_magic_cmd='$OBJDUMP -f'
4755   ;;
4756
4757 darwin* | rhapsody*)
4758   lt_cv_deplibs_check_method=pass_all
4759   ;;
4760
4761 freebsd* | dragonfly*)
4762   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4763     case $host_cpu in
4764     i*86 )
4765       # Not sure whether the presence of OpenBSD here was a mistake.
4766       # Let's accept both of them until this is cleared up.
4767       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4768       lt_cv_file_magic_cmd=/usr/bin/file
4769       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4770       ;;
4771     esac
4772   else
4773     lt_cv_deplibs_check_method=pass_all
4774   fi
4775   ;;
4776
4777 gnu*)
4778   lt_cv_deplibs_check_method=pass_all
4779   ;;
4780
4781 haiku*)
4782   lt_cv_deplibs_check_method=pass_all
4783   ;;
4784
4785 hpux10.20* | hpux11*)
4786   lt_cv_file_magic_cmd=/usr/bin/file
4787   case $host_cpu in
4788   ia64*)
4789     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4790     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4791     ;;
4792   hppa*64*)
4793     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]'
4794     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4795     ;;
4796   *)
4797     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4798     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4799     ;;
4800   esac
4801   ;;
4802
4803 interix[3-9]*)
4804   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4805   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4806   ;;
4807
4808 irix5* | irix6* | nonstopux*)
4809   case $LD in
4810   *-32|*"-32 ") libmagic=32-bit;;
4811   *-n32|*"-n32 ") libmagic=N32;;
4812   *-64|*"-64 ") libmagic=64-bit;;
4813   *) libmagic=never-match;;
4814   esac
4815   lt_cv_deplibs_check_method=pass_all
4816   ;;
4817
4818 # This must be glibc/ELF.
4819 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4820   lt_cv_deplibs_check_method=pass_all
4821   ;;
4822
4823 netbsd*)
4824   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4825     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4826   else
4827     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4828   fi
4829   ;;
4830
4831 newos6*)
4832   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4833   lt_cv_file_magic_cmd=/usr/bin/file
4834   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4835   ;;
4836
4837 *nto* | *qnx*)
4838   lt_cv_deplibs_check_method=pass_all
4839   ;;
4840
4841 openbsd*)
4842   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4843     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4844   else
4845     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4846   fi
4847   ;;
4848
4849 osf3* | osf4* | osf5*)
4850   lt_cv_deplibs_check_method=pass_all
4851   ;;
4852
4853 rdos*)
4854   lt_cv_deplibs_check_method=pass_all
4855   ;;
4856
4857 solaris*)
4858   lt_cv_deplibs_check_method=pass_all
4859   ;;
4860
4861 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4862   lt_cv_deplibs_check_method=pass_all
4863   ;;
4864
4865 sysv4 | sysv4.3*)
4866   case $host_vendor in
4867   motorola)
4868     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]'
4869     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4870     ;;
4871   ncr)
4872     lt_cv_deplibs_check_method=pass_all
4873     ;;
4874   sequent)
4875     lt_cv_file_magic_cmd='/bin/file'
4876     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4877     ;;
4878   sni)
4879     lt_cv_file_magic_cmd='/bin/file'
4880     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4881     lt_cv_file_magic_test_file=/lib/libc.so
4882     ;;
4883   siemens)
4884     lt_cv_deplibs_check_method=pass_all
4885     ;;
4886   pc)
4887     lt_cv_deplibs_check_method=pass_all
4888     ;;
4889   esac
4890   ;;
4891
4892 tpf*)
4893   lt_cv_deplibs_check_method=pass_all
4894   ;;
4895 esac
4896
4897 fi
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4899 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4900
4901 file_magic_glob=
4902 want_nocaseglob=no
4903 if test "$build" = "$host"; then
4904   case $host_os in
4905   mingw* | pw32*)
4906     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
4907       want_nocaseglob=yes
4908     else
4909       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
4910     fi
4911     ;;
4912   esac
4913 fi
4914
4915 file_magic_cmd=$lt_cv_file_magic_cmd
4916 deplibs_check_method=$lt_cv_deplibs_check_method
4917 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940 if test -n "$ac_tool_prefix"; then
4941   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4942 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4944 $as_echo_n "checking for $ac_word... " >&6; }
4945 if ${ac_cv_prog_DLLTOOL+:} false; then :
4946   $as_echo_n "(cached) " >&6
4947 else
4948   if test -n "$DLLTOOL"; then
4949   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4950 else
4951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4952 for as_dir in $PATH
4953 do
4954   IFS=$as_save_IFS
4955   test -z "$as_dir" && as_dir=.
4956     for ac_exec_ext in '' $ac_executable_extensions; do
4957   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4958     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4959     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4960     break 2
4961   fi
4962 done
4963   done
4964 IFS=$as_save_IFS
4965
4966 fi
4967 fi
4968 DLLTOOL=$ac_cv_prog_DLLTOOL
4969 if test -n "$DLLTOOL"; then
4970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4971 $as_echo "$DLLTOOL" >&6; }
4972 else
4973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4974 $as_echo "no" >&6; }
4975 fi
4976
4977
4978 fi
4979 if test -z "$ac_cv_prog_DLLTOOL"; then
4980   ac_ct_DLLTOOL=$DLLTOOL
4981   # Extract the first word of "dlltool", so it can be a program name with args.
4982 set dummy dlltool; ac_word=$2
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4984 $as_echo_n "checking for $ac_word... " >&6; }
4985 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4986   $as_echo_n "(cached) " >&6
4987 else
4988   if test -n "$ac_ct_DLLTOOL"; then
4989   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4990 else
4991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4992 for as_dir in $PATH
4993 do
4994   IFS=$as_save_IFS
4995   test -z "$as_dir" && as_dir=.
4996     for ac_exec_ext in '' $ac_executable_extensions; do
4997   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4998     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4999     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5000     break 2
5001   fi
5002 done
5003   done
5004 IFS=$as_save_IFS
5005
5006 fi
5007 fi
5008 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5009 if test -n "$ac_ct_DLLTOOL"; then
5010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5011 $as_echo "$ac_ct_DLLTOOL" >&6; }
5012 else
5013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5014 $as_echo "no" >&6; }
5015 fi
5016
5017   if test "x$ac_ct_DLLTOOL" = x; then
5018     DLLTOOL="false"
5019   else
5020     case $cross_compiling:$ac_tool_warned in
5021 yes:)
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5023 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5024 ac_tool_warned=yes ;;
5025 esac
5026     DLLTOOL=$ac_ct_DLLTOOL
5027   fi
5028 else
5029   DLLTOOL="$ac_cv_prog_DLLTOOL"
5030 fi
5031
5032 test -z "$DLLTOOL" && DLLTOOL=dlltool
5033
5034
5035
5036
5037
5038
5039
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5041 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5042 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5043   $as_echo_n "(cached) " >&6
5044 else
5045   lt_cv_sharedlib_from_linklib_cmd='unknown'
5046
5047 case $host_os in
5048 cygwin* | mingw* | pw32* | cegcc*)
5049   # two different shell functions defined in ltmain.sh
5050   # decide which to use based on capabilities of $DLLTOOL
5051   case `$DLLTOOL --help 2>&1` in
5052   *--identify-strict*)
5053     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5054     ;;
5055   *)
5056     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5057     ;;
5058   esac
5059   ;;
5060 *)
5061   # fallback: assume linklib IS sharedlib
5062   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5063   ;;
5064 esac
5065
5066 fi
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5068 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5069 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5070 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5071
5072
5073
5074
5075
5076
5077
5078
5079 if test -n "$ac_tool_prefix"; then
5080   for ac_prog in ar
5081   do
5082     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5083 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5085 $as_echo_n "checking for $ac_word... " >&6; }
5086 if ${ac_cv_prog_AR+:} false; then :
5087   $as_echo_n "(cached) " >&6
5088 else
5089   if test -n "$AR"; then
5090   ac_cv_prog_AR="$AR" # Let the user override the test.
5091 else
5092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5093 for as_dir in $PATH
5094 do
5095   IFS=$as_save_IFS
5096   test -z "$as_dir" && as_dir=.
5097     for ac_exec_ext in '' $ac_executable_extensions; do
5098   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5099     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5100     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5101     break 2
5102   fi
5103 done
5104   done
5105 IFS=$as_save_IFS
5106
5107 fi
5108 fi
5109 AR=$ac_cv_prog_AR
5110 if test -n "$AR"; then
5111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5112 $as_echo "$AR" >&6; }
5113 else
5114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5115 $as_echo "no" >&6; }
5116 fi
5117
5118
5119     test -n "$AR" && break
5120   done
5121 fi
5122 if test -z "$AR"; then
5123   ac_ct_AR=$AR
5124   for ac_prog in ar
5125 do
5126   # Extract the first word of "$ac_prog", so it can be a program name with args.
5127 set dummy $ac_prog; ac_word=$2
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5129 $as_echo_n "checking for $ac_word... " >&6; }
5130 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5131   $as_echo_n "(cached) " >&6
5132 else
5133   if test -n "$ac_ct_AR"; then
5134   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5135 else
5136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5137 for as_dir in $PATH
5138 do
5139   IFS=$as_save_IFS
5140   test -z "$as_dir" && as_dir=.
5141     for ac_exec_ext in '' $ac_executable_extensions; do
5142   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5143     ac_cv_prog_ac_ct_AR="$ac_prog"
5144     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5145     break 2
5146   fi
5147 done
5148   done
5149 IFS=$as_save_IFS
5150
5151 fi
5152 fi
5153 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5154 if test -n "$ac_ct_AR"; then
5155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5156 $as_echo "$ac_ct_AR" >&6; }
5157 else
5158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5159 $as_echo "no" >&6; }
5160 fi
5161
5162
5163   test -n "$ac_ct_AR" && break
5164 done
5165
5166   if test "x$ac_ct_AR" = x; then
5167     AR="false"
5168   else
5169     case $cross_compiling:$ac_tool_warned in
5170 yes:)
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5172 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5173 ac_tool_warned=yes ;;
5174 esac
5175     AR=$ac_ct_AR
5176   fi
5177 fi
5178
5179 : ${AR=ar}
5180 : ${AR_FLAGS=cru}
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5193 $as_echo_n "checking for archiver @FILE support... " >&6; }
5194 if ${lt_cv_ar_at_file+:} false; then :
5195   $as_echo_n "(cached) " >&6
5196 else
5197   lt_cv_ar_at_file=no
5198    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5199 /* end confdefs.h.  */
5200
5201 int
5202 main ()
5203 {
5204
5205   ;
5206   return 0;
5207 }
5208 _ACEOF
5209 if ac_fn_c_try_compile "$LINENO"; then :
5210   echo conftest.$ac_objext > conftest.lst
5211       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5212       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5213   (eval $lt_ar_try) 2>&5
5214   ac_status=$?
5215   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5216   test $ac_status = 0; }
5217       if test "$ac_status" -eq 0; then
5218         # Ensure the archiver fails upon bogus file names.
5219         rm -f conftest.$ac_objext libconftest.a
5220         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5221   (eval $lt_ar_try) 2>&5
5222   ac_status=$?
5223   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5224   test $ac_status = 0; }
5225         if test "$ac_status" -ne 0; then
5226           lt_cv_ar_at_file=@
5227         fi
5228       fi
5229       rm -f conftest.* libconftest.a
5230
5231 fi
5232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5233
5234 fi
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5236 $as_echo "$lt_cv_ar_at_file" >&6; }
5237
5238 if test "x$lt_cv_ar_at_file" = xno; then
5239   archiver_list_spec=
5240 else
5241   archiver_list_spec=$lt_cv_ar_at_file
5242 fi
5243
5244
5245
5246
5247
5248
5249
5250 if test -n "$ac_tool_prefix"; then
5251   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5252 set dummy ${ac_tool_prefix}strip; ac_word=$2
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5254 $as_echo_n "checking for $ac_word... " >&6; }
5255 if ${ac_cv_prog_STRIP+:} false; then :
5256   $as_echo_n "(cached) " >&6
5257 else
5258   if test -n "$STRIP"; then
5259   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5260 else
5261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5262 for as_dir in $PATH
5263 do
5264   IFS=$as_save_IFS
5265   test -z "$as_dir" && as_dir=.
5266     for ac_exec_ext in '' $ac_executable_extensions; do
5267   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5268     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5269     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5270     break 2
5271   fi
5272 done
5273   done
5274 IFS=$as_save_IFS
5275
5276 fi
5277 fi
5278 STRIP=$ac_cv_prog_STRIP
5279 if test -n "$STRIP"; then
5280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5281 $as_echo "$STRIP" >&6; }
5282 else
5283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5284 $as_echo "no" >&6; }
5285 fi
5286
5287
5288 fi
5289 if test -z "$ac_cv_prog_STRIP"; then
5290   ac_ct_STRIP=$STRIP
5291   # Extract the first word of "strip", so it can be a program name with args.
5292 set dummy strip; ac_word=$2
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5294 $as_echo_n "checking for $ac_word... " >&6; }
5295 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5296   $as_echo_n "(cached) " >&6
5297 else
5298   if test -n "$ac_ct_STRIP"; then
5299   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5300 else
5301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5302 for as_dir in $PATH
5303 do
5304   IFS=$as_save_IFS
5305   test -z "$as_dir" && as_dir=.
5306     for ac_exec_ext in '' $ac_executable_extensions; do
5307   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5308     ac_cv_prog_ac_ct_STRIP="strip"
5309     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5310     break 2
5311   fi
5312 done
5313   done
5314 IFS=$as_save_IFS
5315
5316 fi
5317 fi
5318 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5319 if test -n "$ac_ct_STRIP"; then
5320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5321 $as_echo "$ac_ct_STRIP" >&6; }
5322 else
5323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5324 $as_echo "no" >&6; }
5325 fi
5326
5327   if test "x$ac_ct_STRIP" = x; then
5328     STRIP=":"
5329   else
5330     case $cross_compiling:$ac_tool_warned in
5331 yes:)
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5333 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5334 ac_tool_warned=yes ;;
5335 esac
5336     STRIP=$ac_ct_STRIP
5337   fi
5338 else
5339   STRIP="$ac_cv_prog_STRIP"
5340 fi
5341
5342 test -z "$STRIP" && STRIP=:
5343
5344
5345
5346
5347
5348
5349 if test -n "$ac_tool_prefix"; then
5350   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5351 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5353 $as_echo_n "checking for $ac_word... " >&6; }
5354 if ${ac_cv_prog_RANLIB+:} false; then :
5355   $as_echo_n "(cached) " >&6
5356 else
5357   if test -n "$RANLIB"; then
5358   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5359 else
5360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5361 for as_dir in $PATH
5362 do
5363   IFS=$as_save_IFS
5364   test -z "$as_dir" && as_dir=.
5365     for ac_exec_ext in '' $ac_executable_extensions; do
5366   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5367     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5368     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5369     break 2
5370   fi
5371 done
5372   done
5373 IFS=$as_save_IFS
5374
5375 fi
5376 fi
5377 RANLIB=$ac_cv_prog_RANLIB
5378 if test -n "$RANLIB"; then
5379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5380 $as_echo "$RANLIB" >&6; }
5381 else
5382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5383 $as_echo "no" >&6; }
5384 fi
5385
5386
5387 fi
5388 if test -z "$ac_cv_prog_RANLIB"; then
5389   ac_ct_RANLIB=$RANLIB
5390   # Extract the first word of "ranlib", so it can be a program name with args.
5391 set dummy ranlib; ac_word=$2
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5393 $as_echo_n "checking for $ac_word... " >&6; }
5394 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5395   $as_echo_n "(cached) " >&6
5396 else
5397   if test -n "$ac_ct_RANLIB"; then
5398   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5399 else
5400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5401 for as_dir in $PATH
5402 do
5403   IFS=$as_save_IFS
5404   test -z "$as_dir" && as_dir=.
5405     for ac_exec_ext in '' $ac_executable_extensions; do
5406   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5407     ac_cv_prog_ac_ct_RANLIB="ranlib"
5408     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5409     break 2
5410   fi
5411 done
5412   done
5413 IFS=$as_save_IFS
5414
5415 fi
5416 fi
5417 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5418 if test -n "$ac_ct_RANLIB"; then
5419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5420 $as_echo "$ac_ct_RANLIB" >&6; }
5421 else
5422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5423 $as_echo "no" >&6; }
5424 fi
5425
5426   if test "x$ac_ct_RANLIB" = x; then
5427     RANLIB=":"
5428   else
5429     case $cross_compiling:$ac_tool_warned in
5430 yes:)
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5432 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5433 ac_tool_warned=yes ;;
5434 esac
5435     RANLIB=$ac_ct_RANLIB
5436   fi
5437 else
5438   RANLIB="$ac_cv_prog_RANLIB"
5439 fi
5440
5441 test -z "$RANLIB" && RANLIB=:
5442
5443
5444
5445
5446
5447
5448 # Determine commands to create old-style static archives.
5449 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5450 old_postinstall_cmds='chmod 644 $oldlib'
5451 old_postuninstall_cmds=
5452
5453 if test -n "$RANLIB"; then
5454   case $host_os in
5455   openbsd*)
5456     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5457     ;;
5458   *)
5459     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5460     ;;
5461   esac
5462   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5463 fi
5464
5465 case $host_os in
5466   darwin*)
5467     lock_old_archive_extraction=yes ;;
5468   *)
5469     lock_old_archive_extraction=no ;;
5470 esac
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492 for ac_prog in gawk mawk nawk awk
5493 do
5494   # Extract the first word of "$ac_prog", so it can be a program name with args.
5495 set dummy $ac_prog; ac_word=$2
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5497 $as_echo_n "checking for $ac_word... " >&6; }
5498 if ${ac_cv_prog_AWK+:} false; then :
5499   $as_echo_n "(cached) " >&6
5500 else
5501   if test -n "$AWK"; then
5502   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5503 else
5504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5505 for as_dir in $PATH
5506 do
5507   IFS=$as_save_IFS
5508   test -z "$as_dir" && as_dir=.
5509     for ac_exec_ext in '' $ac_executable_extensions; do
5510   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5511     ac_cv_prog_AWK="$ac_prog"
5512     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5513     break 2
5514   fi
5515 done
5516   done
5517 IFS=$as_save_IFS
5518
5519 fi
5520 fi
5521 AWK=$ac_cv_prog_AWK
5522 if test -n "$AWK"; then
5523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5524 $as_echo "$AWK" >&6; }
5525 else
5526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5527 $as_echo "no" >&6; }
5528 fi
5529
5530
5531   test -n "$AWK" && break
5532 done
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552 # If no C compiler was specified, use CC.
5553 LTCC=${LTCC-"$CC"}
5554
5555 # If no C compiler flags were specified, use CFLAGS.
5556 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5557
5558 # Allow CC to be a program name with arguments.
5559 compiler=$CC
5560
5561
5562 # Check for command to grab the raw symbol name followed by C symbol from nm.
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5564 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5565 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5566   $as_echo_n "(cached) " >&6
5567 else
5568
5569 # These are sane defaults that work on at least a few old systems.
5570 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5571
5572 # Character class describing NM global symbol codes.
5573 symcode='[BCDEGRST]'
5574
5575 # Regexp to match symbols that can be accessed directly from C.
5576 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5577
5578 # Define system-specific variables.
5579 case $host_os in
5580 aix*)
5581   symcode='[BCDT]'
5582   ;;
5583 cygwin* | mingw* | pw32* | cegcc*)
5584   symcode='[ABCDGISTW]'
5585   ;;
5586 hpux*)
5587   if test "$host_cpu" = ia64; then
5588     symcode='[ABCDEGRST]'
5589   fi
5590   ;;
5591 irix* | nonstopux*)
5592   symcode='[BCDEGRST]'
5593   ;;
5594 osf*)
5595   symcode='[BCDEGQRST]'
5596   ;;
5597 solaris*)
5598   symcode='[BDRT]'
5599   ;;
5600 sco3.2v5*)
5601   symcode='[DT]'
5602   ;;
5603 sysv4.2uw2*)
5604   symcode='[DT]'
5605   ;;
5606 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5607   symcode='[ABDT]'
5608   ;;
5609 sysv4)
5610   symcode='[DFNSTU]'
5611   ;;
5612 esac
5613
5614 # If we're using GNU nm, then use its standard symbol codes.
5615 case `$NM -V 2>&1` in
5616 *GNU* | *'with BFD'*)
5617   symcode='[ABCDGIRSTW]' ;;
5618 esac
5619
5620 # Transform an extracted symbol line into a proper C declaration.
5621 # Some systems (esp. on ia64) link data and code symbols differently,
5622 # so use this general approach.
5623 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5624
5625 # Transform an extracted symbol line into symbol name and symbol address
5626 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5627 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'"
5628
5629 # Handle CRLF in mingw tool chain
5630 opt_cr=
5631 case $build_os in
5632 mingw*)
5633   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5634   ;;
5635 esac
5636
5637 # Try without a prefix underscore, then with it.
5638 for ac_symprfx in "" "_"; do
5639
5640   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5641   symxfrm="\\1 $ac_symprfx\\2 \\2"
5642
5643   # Write the raw and C identifiers.
5644   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5645     # Fake it for dumpbin and say T for any non-static function
5646     # and D for any global variable.
5647     # Also find C++ and __fastcall symbols from MSVC++,
5648     # which start with @ or ?.
5649     lt_cv_sys_global_symbol_pipe="$AWK '"\
5650 "     {last_section=section; section=\$ 3};"\
5651 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5652 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5653 "     \$ 0!~/External *\|/{next};"\
5654 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5655 "     {if(hide[section]) next};"\
5656 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5657 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5658 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5659 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5660 "     ' prfx=^$ac_symprfx"
5661   else
5662     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5663   fi
5664   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5665
5666   # Check to see that the pipe works correctly.
5667   pipe_works=no
5668
5669   rm -f conftest*
5670   cat > conftest.$ac_ext <<_LT_EOF
5671 #ifdef __cplusplus
5672 extern "C" {
5673 #endif
5674 char nm_test_var;
5675 void nm_test_func(void);
5676 void nm_test_func(void){}
5677 #ifdef __cplusplus
5678 }
5679 #endif
5680 int main(){nm_test_var='a';nm_test_func();return(0);}
5681 _LT_EOF
5682
5683   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5684   (eval $ac_compile) 2>&5
5685   ac_status=$?
5686   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5687   test $ac_status = 0; }; then
5688     # Now try to grab the symbols.
5689     nlist=conftest.nm
5690     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5691   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5692   ac_status=$?
5693   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5694   test $ac_status = 0; } && test -s "$nlist"; then
5695       # Try sorting and uniquifying the output.
5696       if sort "$nlist" | uniq > "$nlist"T; then
5697         mv -f "$nlist"T "$nlist"
5698       else
5699         rm -f "$nlist"T
5700       fi
5701
5702       # Make sure that we snagged all the symbols we need.
5703       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5704         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5705           cat <<_LT_EOF > conftest.$ac_ext
5706 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
5707 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5708 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5709    relocations are performed -- see ld's documentation on pseudo-relocs.  */
5710 # define LT_DLSYM_CONST
5711 #elif defined(__osf__)
5712 /* This system does not cope well with relocations in const data.  */
5713 # define LT_DLSYM_CONST
5714 #else
5715 # define LT_DLSYM_CONST const
5716 #endif
5717
5718 #ifdef __cplusplus
5719 extern "C" {
5720 #endif
5721
5722 _LT_EOF
5723           # Now generate the symbol file.
5724           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5725
5726           cat <<_LT_EOF >> conftest.$ac_ext
5727
5728 /* The mapping between symbol names and symbols.  */
5729 LT_DLSYM_CONST struct {
5730   const char *name;
5731   void       *address;
5732 }
5733 lt__PROGRAM__LTX_preloaded_symbols[] =
5734 {
5735   { "@PROGRAM@", (void *) 0 },
5736 _LT_EOF
5737           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5738           cat <<\_LT_EOF >> conftest.$ac_ext
5739   {0, (void *) 0}
5740 };
5741
5742 /* This works around a problem in FreeBSD linker */
5743 #ifdef FREEBSD_WORKAROUND
5744 static const void *lt_preloaded_setup() {
5745   return lt__PROGRAM__LTX_preloaded_symbols;
5746 }
5747 #endif
5748
5749 #ifdef __cplusplus
5750 }
5751 #endif
5752 _LT_EOF
5753           # Now try linking the two files.
5754           mv conftest.$ac_objext conftstm.$ac_objext
5755           lt_globsym_save_LIBS=$LIBS
5756           lt_globsym_save_CFLAGS=$CFLAGS
5757           LIBS="conftstm.$ac_objext"
5758           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5759           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5760   (eval $ac_link) 2>&5
5761   ac_status=$?
5762   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5763   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5764             pipe_works=yes
5765           fi
5766           LIBS=$lt_globsym_save_LIBS
5767           CFLAGS=$lt_globsym_save_CFLAGS
5768         else
5769           echo "cannot find nm_test_func in $nlist" >&5
5770         fi
5771       else
5772         echo "cannot find nm_test_var in $nlist" >&5
5773       fi
5774     else
5775       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5776     fi
5777   else
5778     echo "$progname: failed program was:" >&5
5779     cat conftest.$ac_ext >&5
5780   fi
5781   rm -rf conftest* conftst*
5782
5783   # Do not use the global_symbol_pipe unless it works.
5784   if test "$pipe_works" = yes; then
5785     break
5786   else
5787     lt_cv_sys_global_symbol_pipe=
5788   fi
5789 done
5790
5791 fi
5792
5793 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5794   lt_cv_sys_global_symbol_to_cdecl=
5795 fi
5796 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5798 $as_echo "failed" >&6; }
5799 else
5800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5801 $as_echo "ok" >&6; }
5802 fi
5803
5804 # Response file support.
5805 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5806   nm_file_list_spec='@'
5807 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5808   nm_file_list_spec='@'
5809 fi
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5838 $as_echo_n "checking for sysroot... " >&6; }
5839
5840 # Check whether --with-sysroot was given.
5841 if test "${with_sysroot+set}" = set; then :
5842   withval=$with_sysroot;
5843 else
5844   with_sysroot=no
5845 fi
5846
5847
5848 lt_sysroot=
5849 case ${with_sysroot} in #(
5850  yes)
5851    if test "$GCC" = yes; then
5852      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5853    fi
5854    ;; #(
5855  /*)
5856    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5857    ;; #(
5858  no|'')
5859    ;; #(
5860  *)
5861    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
5862 $as_echo "${with_sysroot}" >&6; }
5863    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
5864    ;;
5865 esac
5866
5867  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
5868 $as_echo "${lt_sysroot:-no}" >&6; }
5869
5870
5871
5872
5873
5874 # Check whether --enable-libtool-lock was given.
5875 if test "${enable_libtool_lock+set}" = set; then :
5876   enableval=$enable_libtool_lock;
5877 fi
5878
5879 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5880
5881 # Some flags need to be propagated to the compiler or linker for good
5882 # libtool support.
5883 case $host in
5884 ia64-*-hpux*)
5885   # Find out which ABI we are using.
5886   echo 'int i;' > conftest.$ac_ext
5887   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5888   (eval $ac_compile) 2>&5
5889   ac_status=$?
5890   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5891   test $ac_status = 0; }; then
5892     case `/usr/bin/file conftest.$ac_objext` in
5893       *ELF-32*)
5894         HPUX_IA64_MODE="32"
5895         ;;
5896       *ELF-64*)
5897         HPUX_IA64_MODE="64"
5898         ;;
5899     esac
5900   fi
5901   rm -rf conftest*
5902   ;;
5903 *-*-irix6*)
5904   # Find out which ABI we are using.
5905   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5906   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5907   (eval $ac_compile) 2>&5
5908   ac_status=$?
5909   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5910   test $ac_status = 0; }; then
5911     if test "$lt_cv_prog_gnu_ld" = yes; then
5912       case `/usr/bin/file conftest.$ac_objext` in
5913         *32-bit*)
5914           LD="${LD-ld} -melf32bsmip"
5915           ;;
5916         *N32*)
5917           LD="${LD-ld} -melf32bmipn32"
5918           ;;
5919         *64-bit*)
5920           LD="${LD-ld} -melf64bmip"
5921         ;;
5922       esac
5923     else
5924       case `/usr/bin/file conftest.$ac_objext` in
5925         *32-bit*)
5926           LD="${LD-ld} -32"
5927           ;;
5928         *N32*)
5929           LD="${LD-ld} -n32"
5930           ;;
5931         *64-bit*)
5932           LD="${LD-ld} -64"
5933           ;;
5934       esac
5935     fi
5936   fi
5937   rm -rf conftest*
5938   ;;
5939
5940 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5941 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5942   # Find out which ABI we are using.
5943   echo 'int i;' > conftest.$ac_ext
5944   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5945   (eval $ac_compile) 2>&5
5946   ac_status=$?
5947   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5948   test $ac_status = 0; }; then
5949     case `/usr/bin/file conftest.o` in
5950       *32-bit*)
5951         case $host in
5952           x86_64-*kfreebsd*-gnu)
5953             LD="${LD-ld} -m elf_i386_fbsd"
5954             ;;
5955           x86_64-*linux*)
5956             LD="${LD-ld} -m elf_i386"
5957             ;;
5958           ppc64-*linux*|powerpc64-*linux*)
5959             LD="${LD-ld} -m elf32ppclinux"
5960             ;;
5961           s390x-*linux*)
5962             LD="${LD-ld} -m elf_s390"
5963             ;;
5964           sparc64-*linux*)
5965             LD="${LD-ld} -m elf32_sparc"
5966             ;;
5967         esac
5968         ;;
5969       *64-bit*)
5970         case $host in
5971           x86_64-*kfreebsd*-gnu)
5972             LD="${LD-ld} -m elf_x86_64_fbsd"
5973             ;;
5974           x86_64-*linux*)
5975             LD="${LD-ld} -m elf_x86_64"
5976             ;;
5977           ppc*-*linux*|powerpc*-*linux*)
5978             LD="${LD-ld} -m elf64ppc"
5979             ;;
5980           s390*-*linux*|s390*-*tpf*)
5981             LD="${LD-ld} -m elf64_s390"
5982             ;;
5983           sparc*-*linux*)
5984             LD="${LD-ld} -m elf64_sparc"
5985             ;;
5986         esac
5987         ;;
5988     esac
5989   fi
5990   rm -rf conftest*
5991   ;;
5992
5993 *-*-sco3.2v5*)
5994   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5995   SAVE_CFLAGS="$CFLAGS"
5996   CFLAGS="$CFLAGS -belf"
5997   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5998 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5999 if ${lt_cv_cc_needs_belf+:} false; then :
6000   $as_echo_n "(cached) " >&6
6001 else
6002   ac_ext=c
6003 ac_cpp='$CPP $CPPFLAGS'
6004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6007
6008      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6009 /* end confdefs.h.  */
6010
6011 int
6012 main ()
6013 {
6014
6015   ;
6016   return 0;
6017 }
6018 _ACEOF
6019 if ac_fn_c_try_link "$LINENO"; then :
6020   lt_cv_cc_needs_belf=yes
6021 else
6022   lt_cv_cc_needs_belf=no
6023 fi
6024 rm -f core conftest.err conftest.$ac_objext \
6025     conftest$ac_exeext conftest.$ac_ext
6026      ac_ext=c
6027 ac_cpp='$CPP $CPPFLAGS'
6028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6031
6032 fi
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6034 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6035   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6036     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6037     CFLAGS="$SAVE_CFLAGS"
6038   fi
6039   ;;
6040 *-*solaris*)
6041   # Find out which ABI we are using.
6042   echo 'int i;' > conftest.$ac_ext
6043   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6044   (eval $ac_compile) 2>&5
6045   ac_status=$?
6046   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6047   test $ac_status = 0; }; then
6048     case `/usr/bin/file conftest.o` in
6049     *64-bit*)
6050       case $lt_cv_prog_gnu_ld in
6051       yes*)
6052         case $host in
6053         i?86-*-solaris*)
6054           LD="${LD-ld} -m elf_x86_64"
6055           ;;
6056         sparc*-*-solaris*)
6057           LD="${LD-ld} -m elf64_sparc"
6058           ;;
6059         esac
6060         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6061         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6062           LD="${LD-ld}_sol2"
6063         fi
6064         ;;
6065       *)
6066         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6067           LD="${LD-ld} -64"
6068         fi
6069         ;;
6070       esac
6071       ;;
6072     esac
6073   fi
6074   rm -rf conftest*
6075   ;;
6076 esac
6077
6078 need_locks="$enable_libtool_lock"
6079
6080 if test -n "$ac_tool_prefix"; then
6081   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6082 set dummy ${ac_tool_prefix}mt; ac_word=$2
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6084 $as_echo_n "checking for $ac_word... " >&6; }
6085 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6086   $as_echo_n "(cached) " >&6
6087 else
6088   if test -n "$MANIFEST_TOOL"; then
6089   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6090 else
6091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6092 for as_dir in $PATH
6093 do
6094   IFS=$as_save_IFS
6095   test -z "$as_dir" && as_dir=.
6096     for ac_exec_ext in '' $ac_executable_extensions; do
6097   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6098     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6099     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6100     break 2
6101   fi
6102 done
6103   done
6104 IFS=$as_save_IFS
6105
6106 fi
6107 fi
6108 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6109 if test -n "$MANIFEST_TOOL"; then
6110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6111 $as_echo "$MANIFEST_TOOL" >&6; }
6112 else
6113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6114 $as_echo "no" >&6; }
6115 fi
6116
6117
6118 fi
6119 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6120   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6121   # Extract the first word of "mt", so it can be a program name with args.
6122 set dummy mt; ac_word=$2
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6124 $as_echo_n "checking for $ac_word... " >&6; }
6125 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6126   $as_echo_n "(cached) " >&6
6127 else
6128   if test -n "$ac_ct_MANIFEST_TOOL"; then
6129   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6130 else
6131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6132 for as_dir in $PATH
6133 do
6134   IFS=$as_save_IFS
6135   test -z "$as_dir" && as_dir=.
6136     for ac_exec_ext in '' $ac_executable_extensions; do
6137   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6138     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6139     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6140     break 2
6141   fi
6142 done
6143   done
6144 IFS=$as_save_IFS
6145
6146 fi
6147 fi
6148 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6149 if test -n "$ac_ct_MANIFEST_TOOL"; then
6150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6151 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6152 else
6153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6154 $as_echo "no" >&6; }
6155 fi
6156
6157   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6158     MANIFEST_TOOL=":"
6159   else
6160     case $cross_compiling:$ac_tool_warned in
6161 yes:)
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6163 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6164 ac_tool_warned=yes ;;
6165 esac
6166     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6167   fi
6168 else
6169   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6170 fi
6171
6172 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6174 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6175 if ${lt_cv_path_mainfest_tool+:} false; then :
6176   $as_echo_n "(cached) " >&6
6177 else
6178   lt_cv_path_mainfest_tool=no
6179   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6180   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6181   cat conftest.err >&5
6182   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6183     lt_cv_path_mainfest_tool=yes
6184   fi
6185   rm -f conftest*
6186 fi
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6188 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6189 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6190   MANIFEST_TOOL=:
6191 fi
6192
6193
6194
6195
6196
6197
6198   case $host_os in
6199     rhapsody* | darwin*)
6200     if test -n "$ac_tool_prefix"; then
6201   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6202 set dummy ${ac_tool_prefix}dsymutil; 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_DSYMUTIL+:} false; then :
6206   $as_echo_n "(cached) " >&6
6207 else
6208   if test -n "$DSYMUTIL"; then
6209   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # 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_DSYMUTIL="${ac_tool_prefix}dsymutil"
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 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6229 if test -n "$DSYMUTIL"; then
6230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6231 $as_echo "$DSYMUTIL" >&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_DSYMUTIL"; then
6240   ac_ct_DSYMUTIL=$DSYMUTIL
6241   # Extract the first word of "dsymutil", so it can be a program name with args.
6242 set dummy dsymutil; 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_DSYMUTIL+:} false; then :
6246   $as_echo_n "(cached) " >&6
6247 else
6248   if test -n "$ac_ct_DSYMUTIL"; then
6249   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # 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_DSYMUTIL="dsymutil"
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_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6269 if test -n "$ac_ct_DSYMUTIL"; then
6270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6271 $as_echo "$ac_ct_DSYMUTIL" >&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_DSYMUTIL" = x; then
6278     DSYMUTIL=":"
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     DSYMUTIL=$ac_ct_DSYMUTIL
6287   fi
6288 else
6289   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6290 fi
6291
6292     if test -n "$ac_tool_prefix"; then
6293   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6294 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6296 $as_echo_n "checking for $ac_word... " >&6; }
6297 if ${ac_cv_prog_NMEDIT+:} false; then :
6298   $as_echo_n "(cached) " >&6
6299 else
6300   if test -n "$NMEDIT"; then
6301   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6302 else
6303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6304 for as_dir in $PATH
6305 do
6306   IFS=$as_save_IFS
6307   test -z "$as_dir" && as_dir=.
6308     for ac_exec_ext in '' $ac_executable_extensions; do
6309   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6310     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6311     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6312     break 2
6313   fi
6314 done
6315   done
6316 IFS=$as_save_IFS
6317
6318 fi
6319 fi
6320 NMEDIT=$ac_cv_prog_NMEDIT
6321 if test -n "$NMEDIT"; then
6322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6323 $as_echo "$NMEDIT" >&6; }
6324 else
6325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6326 $as_echo "no" >&6; }
6327 fi
6328
6329
6330 fi
6331 if test -z "$ac_cv_prog_NMEDIT"; then
6332   ac_ct_NMEDIT=$NMEDIT
6333   # Extract the first word of "nmedit", so it can be a program name with args.
6334 set dummy nmedit; ac_word=$2
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6336 $as_echo_n "checking for $ac_word... " >&6; }
6337 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6338   $as_echo_n "(cached) " >&6
6339 else
6340   if test -n "$ac_ct_NMEDIT"; then
6341   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6342 else
6343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6344 for as_dir in $PATH
6345 do
6346   IFS=$as_save_IFS
6347   test -z "$as_dir" && as_dir=.
6348     for ac_exec_ext in '' $ac_executable_extensions; do
6349   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6350     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6351     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6352     break 2
6353   fi
6354 done
6355   done
6356 IFS=$as_save_IFS
6357
6358 fi
6359 fi
6360 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6361 if test -n "$ac_ct_NMEDIT"; then
6362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6363 $as_echo "$ac_ct_NMEDIT" >&6; }
6364 else
6365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6366 $as_echo "no" >&6; }
6367 fi
6368
6369   if test "x$ac_ct_NMEDIT" = x; then
6370     NMEDIT=":"
6371   else
6372     case $cross_compiling:$ac_tool_warned in
6373 yes:)
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6375 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6376 ac_tool_warned=yes ;;
6377 esac
6378     NMEDIT=$ac_ct_NMEDIT
6379   fi
6380 else
6381   NMEDIT="$ac_cv_prog_NMEDIT"
6382 fi
6383
6384     if test -n "$ac_tool_prefix"; then
6385   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6386 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6388 $as_echo_n "checking for $ac_word... " >&6; }
6389 if ${ac_cv_prog_LIPO+:} false; then :
6390   $as_echo_n "(cached) " >&6
6391 else
6392   if test -n "$LIPO"; then
6393   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6394 else
6395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6396 for as_dir in $PATH
6397 do
6398   IFS=$as_save_IFS
6399   test -z "$as_dir" && as_dir=.
6400     for ac_exec_ext in '' $ac_executable_extensions; do
6401   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6402     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6403     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6404     break 2
6405   fi
6406 done
6407   done
6408 IFS=$as_save_IFS
6409
6410 fi
6411 fi
6412 LIPO=$ac_cv_prog_LIPO
6413 if test -n "$LIPO"; then
6414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6415 $as_echo "$LIPO" >&6; }
6416 else
6417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6418 $as_echo "no" >&6; }
6419 fi
6420
6421
6422 fi
6423 if test -z "$ac_cv_prog_LIPO"; then
6424   ac_ct_LIPO=$LIPO
6425   # Extract the first word of "lipo", so it can be a program name with args.
6426 set dummy lipo; ac_word=$2
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6428 $as_echo_n "checking for $ac_word... " >&6; }
6429 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6430   $as_echo_n "(cached) " >&6
6431 else
6432   if test -n "$ac_ct_LIPO"; then
6433   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6434 else
6435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6436 for as_dir in $PATH
6437 do
6438   IFS=$as_save_IFS
6439   test -z "$as_dir" && as_dir=.
6440     for ac_exec_ext in '' $ac_executable_extensions; do
6441   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6442     ac_cv_prog_ac_ct_LIPO="lipo"
6443     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6444     break 2
6445   fi
6446 done
6447   done
6448 IFS=$as_save_IFS
6449
6450 fi
6451 fi
6452 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6453 if test -n "$ac_ct_LIPO"; then
6454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6455 $as_echo "$ac_ct_LIPO" >&6; }
6456 else
6457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6458 $as_echo "no" >&6; }
6459 fi
6460
6461   if test "x$ac_ct_LIPO" = x; then
6462     LIPO=":"
6463   else
6464     case $cross_compiling:$ac_tool_warned in
6465 yes:)
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6467 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6468 ac_tool_warned=yes ;;
6469 esac
6470     LIPO=$ac_ct_LIPO
6471   fi
6472 else
6473   LIPO="$ac_cv_prog_LIPO"
6474 fi
6475
6476     if test -n "$ac_tool_prefix"; then
6477   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6478 set dummy ${ac_tool_prefix}otool; ac_word=$2
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6480 $as_echo_n "checking for $ac_word... " >&6; }
6481 if ${ac_cv_prog_OTOOL+:} false; then :
6482   $as_echo_n "(cached) " >&6
6483 else
6484   if test -n "$OTOOL"; then
6485   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6486 else
6487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6488 for as_dir in $PATH
6489 do
6490   IFS=$as_save_IFS
6491   test -z "$as_dir" && as_dir=.
6492     for ac_exec_ext in '' $ac_executable_extensions; do
6493   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6494     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6495     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6496     break 2
6497   fi
6498 done
6499   done
6500 IFS=$as_save_IFS
6501
6502 fi
6503 fi
6504 OTOOL=$ac_cv_prog_OTOOL
6505 if test -n "$OTOOL"; then
6506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6507 $as_echo "$OTOOL" >&6; }
6508 else
6509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6510 $as_echo "no" >&6; }
6511 fi
6512
6513
6514 fi
6515 if test -z "$ac_cv_prog_OTOOL"; then
6516   ac_ct_OTOOL=$OTOOL
6517   # Extract the first word of "otool", so it can be a program name with args.
6518 set dummy otool; ac_word=$2
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6520 $as_echo_n "checking for $ac_word... " >&6; }
6521 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6522   $as_echo_n "(cached) " >&6
6523 else
6524   if test -n "$ac_ct_OTOOL"; then
6525   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6526 else
6527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6528 for as_dir in $PATH
6529 do
6530   IFS=$as_save_IFS
6531   test -z "$as_dir" && as_dir=.
6532     for ac_exec_ext in '' $ac_executable_extensions; do
6533   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6534     ac_cv_prog_ac_ct_OTOOL="otool"
6535     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6536     break 2
6537   fi
6538 done
6539   done
6540 IFS=$as_save_IFS
6541
6542 fi
6543 fi
6544 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6545 if test -n "$ac_ct_OTOOL"; then
6546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6547 $as_echo "$ac_ct_OTOOL" >&6; }
6548 else
6549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6550 $as_echo "no" >&6; }
6551 fi
6552
6553   if test "x$ac_ct_OTOOL" = x; then
6554     OTOOL=":"
6555   else
6556     case $cross_compiling:$ac_tool_warned in
6557 yes:)
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6559 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6560 ac_tool_warned=yes ;;
6561 esac
6562     OTOOL=$ac_ct_OTOOL
6563   fi
6564 else
6565   OTOOL="$ac_cv_prog_OTOOL"
6566 fi
6567
6568     if test -n "$ac_tool_prefix"; then
6569   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6570 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6572 $as_echo_n "checking for $ac_word... " >&6; }
6573 if ${ac_cv_prog_OTOOL64+:} false; then :
6574   $as_echo_n "(cached) " >&6
6575 else
6576   if test -n "$OTOOL64"; then
6577   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6578 else
6579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6580 for as_dir in $PATH
6581 do
6582   IFS=$as_save_IFS
6583   test -z "$as_dir" && as_dir=.
6584     for ac_exec_ext in '' $ac_executable_extensions; do
6585   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6586     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6587     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6588     break 2
6589   fi
6590 done
6591   done
6592 IFS=$as_save_IFS
6593
6594 fi
6595 fi
6596 OTOOL64=$ac_cv_prog_OTOOL64
6597 if test -n "$OTOOL64"; then
6598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6599 $as_echo "$OTOOL64" >&6; }
6600 else
6601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6602 $as_echo "no" >&6; }
6603 fi
6604
6605
6606 fi
6607 if test -z "$ac_cv_prog_OTOOL64"; then
6608   ac_ct_OTOOL64=$OTOOL64
6609   # Extract the first word of "otool64", so it can be a program name with args.
6610 set dummy otool64; ac_word=$2
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6612 $as_echo_n "checking for $ac_word... " >&6; }
6613 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6614   $as_echo_n "(cached) " >&6
6615 else
6616   if test -n "$ac_ct_OTOOL64"; then
6617   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6618 else
6619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6620 for as_dir in $PATH
6621 do
6622   IFS=$as_save_IFS
6623   test -z "$as_dir" && as_dir=.
6624     for ac_exec_ext in '' $ac_executable_extensions; do
6625   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6626     ac_cv_prog_ac_ct_OTOOL64="otool64"
6627     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6628     break 2
6629   fi
6630 done
6631   done
6632 IFS=$as_save_IFS
6633
6634 fi
6635 fi
6636 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6637 if test -n "$ac_ct_OTOOL64"; then
6638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6639 $as_echo "$ac_ct_OTOOL64" >&6; }
6640 else
6641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6642 $as_echo "no" >&6; }
6643 fi
6644
6645   if test "x$ac_ct_OTOOL64" = x; then
6646     OTOOL64=":"
6647   else
6648     case $cross_compiling:$ac_tool_warned in
6649 yes:)
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6651 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6652 ac_tool_warned=yes ;;
6653 esac
6654     OTOOL64=$ac_ct_OTOOL64
6655   fi
6656 else
6657   OTOOL64="$ac_cv_prog_OTOOL64"
6658 fi
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6687 $as_echo_n "checking for -single_module linker flag... " >&6; }
6688 if ${lt_cv_apple_cc_single_mod+:} false; then :
6689   $as_echo_n "(cached) " >&6
6690 else
6691   lt_cv_apple_cc_single_mod=no
6692       if test -z "${LT_MULTI_MODULE}"; then
6693         # By default we will add the -single_module flag. You can override
6694         # by either setting the environment variable LT_MULTI_MODULE
6695         # non-empty at configure time, or by adding -multi_module to the
6696         # link flags.
6697         rm -rf libconftest.dylib*
6698         echo "int foo(void){return 1;}" > conftest.c
6699         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6700 -dynamiclib -Wl,-single_module conftest.c" >&5
6701         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6702           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6703         _lt_result=$?
6704         # If there is a non-empty error log, and "single_module"
6705         # appears in it, assume the flag caused a linker warning
6706         if test -s conftest.err && $GREP single_module conftest.err; then
6707           cat conftest.err >&5
6708         # Otherwise, if the output was created with a 0 exit code from
6709         # the compiler, it worked.
6710         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6711           lt_cv_apple_cc_single_mod=yes
6712         else
6713           cat conftest.err >&5
6714         fi
6715         rm -rf libconftest.dylib*
6716         rm -f conftest.*
6717       fi
6718 fi
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6720 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6721
6722     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6723 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6724 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6725   $as_echo_n "(cached) " >&6
6726 else
6727   lt_cv_ld_exported_symbols_list=no
6728       save_LDFLAGS=$LDFLAGS
6729       echo "_main" > conftest.sym
6730       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6731       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6732 /* end confdefs.h.  */
6733
6734 int
6735 main ()
6736 {
6737
6738   ;
6739   return 0;
6740 }
6741 _ACEOF
6742 if ac_fn_c_try_link "$LINENO"; then :
6743   lt_cv_ld_exported_symbols_list=yes
6744 else
6745   lt_cv_ld_exported_symbols_list=no
6746 fi
6747 rm -f core conftest.err conftest.$ac_objext \
6748     conftest$ac_exeext conftest.$ac_ext
6749         LDFLAGS="$save_LDFLAGS"
6750
6751 fi
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6753 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6754
6755     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6756 $as_echo_n "checking for -force_load linker flag... " >&6; }
6757 if ${lt_cv_ld_force_load+:} false; then :
6758   $as_echo_n "(cached) " >&6
6759 else
6760   lt_cv_ld_force_load=no
6761       cat > conftest.c << _LT_EOF
6762 int forced_loaded() { return 2;}
6763 _LT_EOF
6764       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6765       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6766       echo "$AR cru libconftest.a conftest.o" >&5
6767       $AR cru libconftest.a conftest.o 2>&5
6768       echo "$RANLIB libconftest.a" >&5
6769       $RANLIB libconftest.a 2>&5
6770       cat > conftest.c << _LT_EOF
6771 int main() { return 0;}
6772 _LT_EOF
6773       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6774       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6775       _lt_result=$?
6776       if test -s conftest.err && $GREP force_load conftest.err; then
6777         cat conftest.err >&5
6778       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
6779         lt_cv_ld_force_load=yes
6780       else
6781         cat conftest.err >&5
6782       fi
6783         rm -f conftest.err libconftest.a conftest conftest.c
6784         rm -rf conftest.dSYM
6785
6786 fi
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6788 $as_echo "$lt_cv_ld_force_load" >&6; }
6789     case $host_os in
6790     rhapsody* | darwin1.[012])
6791       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6792     darwin1.*)
6793       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6794     darwin*) # darwin 5.x on
6795       # if running on 10.5 or later, the deployment target defaults
6796       # to the OS version, if on x86, and 10.4, the deployment
6797       # target defaults to 10.4. Don't you love it?
6798       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6799         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6800           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6801         10.[012]*)
6802           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6803         10.*)
6804           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6805       esac
6806     ;;
6807   esac
6808     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6809       _lt_dar_single_mod='$single_module'
6810     fi
6811     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6812       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6813     else
6814       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6815     fi
6816     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6817       _lt_dsymutil='~$DSYMUTIL $lib || :'
6818     else
6819       _lt_dsymutil=
6820     fi
6821     ;;
6822   esac
6823
6824 ac_ext=c
6825 ac_cpp='$CPP $CPPFLAGS'
6826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6830 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6831 # On Suns, sometimes $CPP names a directory.
6832 if test -n "$CPP" && test -d "$CPP"; then
6833   CPP=
6834 fi
6835 if test -z "$CPP"; then
6836   if ${ac_cv_prog_CPP+:} false; then :
6837   $as_echo_n "(cached) " >&6
6838 else
6839       # Double quotes because CPP needs to be expanded
6840     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6841     do
6842       ac_preproc_ok=false
6843 for ac_c_preproc_warn_flag in '' yes
6844 do
6845   # Use a header file that comes with gcc, so configuring glibc
6846   # with a fresh cross-compiler works.
6847   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6848   # <limits.h> exists even on freestanding compilers.
6849   # On the NeXT, cc -E runs the code through the compiler's parser,
6850   # not just through cpp. "Syntax error" is here to catch this case.
6851   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6852 /* end confdefs.h.  */
6853 #ifdef __STDC__
6854 # include <limits.h>
6855 #else
6856 # include <assert.h>
6857 #endif
6858                      Syntax error
6859 _ACEOF
6860 if ac_fn_c_try_cpp "$LINENO"; then :
6861
6862 else
6863   # Broken: fails on valid input.
6864 continue
6865 fi
6866 rm -f conftest.err conftest.i conftest.$ac_ext
6867
6868   # OK, works on sane cases.  Now check whether nonexistent headers
6869   # can be detected and how.
6870   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6871 /* end confdefs.h.  */
6872 #include <ac_nonexistent.h>
6873 _ACEOF
6874 if ac_fn_c_try_cpp "$LINENO"; then :
6875   # Broken: success on invalid input.
6876 continue
6877 else
6878   # Passes both tests.
6879 ac_preproc_ok=:
6880 break
6881 fi
6882 rm -f conftest.err conftest.i conftest.$ac_ext
6883
6884 done
6885 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6886 rm -f conftest.i conftest.err conftest.$ac_ext
6887 if $ac_preproc_ok; then :
6888   break
6889 fi
6890
6891     done
6892     ac_cv_prog_CPP=$CPP
6893
6894 fi
6895   CPP=$ac_cv_prog_CPP
6896 else
6897   ac_cv_prog_CPP=$CPP
6898 fi
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6900 $as_echo "$CPP" >&6; }
6901 ac_preproc_ok=false
6902 for ac_c_preproc_warn_flag in '' yes
6903 do
6904   # Use a header file that comes with gcc, so configuring glibc
6905   # with a fresh cross-compiler works.
6906   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6907   # <limits.h> exists even on freestanding compilers.
6908   # On the NeXT, cc -E runs the code through the compiler's parser,
6909   # not just through cpp. "Syntax error" is here to catch this case.
6910   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6911 /* end confdefs.h.  */
6912 #ifdef __STDC__
6913 # include <limits.h>
6914 #else
6915 # include <assert.h>
6916 #endif
6917                      Syntax error
6918 _ACEOF
6919 if ac_fn_c_try_cpp "$LINENO"; then :
6920
6921 else
6922   # Broken: fails on valid input.
6923 continue
6924 fi
6925 rm -f conftest.err conftest.i conftest.$ac_ext
6926
6927   # OK, works on sane cases.  Now check whether nonexistent headers
6928   # can be detected and how.
6929   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6930 /* end confdefs.h.  */
6931 #include <ac_nonexistent.h>
6932 _ACEOF
6933 if ac_fn_c_try_cpp "$LINENO"; then :
6934   # Broken: success on invalid input.
6935 continue
6936 else
6937   # Passes both tests.
6938 ac_preproc_ok=:
6939 break
6940 fi
6941 rm -f conftest.err conftest.i conftest.$ac_ext
6942
6943 done
6944 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6945 rm -f conftest.i conftest.err conftest.$ac_ext
6946 if $ac_preproc_ok; then :
6947
6948 else
6949   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6950 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6951 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6952 See \`config.log' for more details" "$LINENO" 5; }
6953 fi
6954
6955 ac_ext=c
6956 ac_cpp='$CPP $CPPFLAGS'
6957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6960
6961
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6963 $as_echo_n "checking for ANSI C header files... " >&6; }
6964 if ${ac_cv_header_stdc+:} false; then :
6965   $as_echo_n "(cached) " >&6
6966 else
6967   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6968 /* end confdefs.h.  */
6969 #include <stdlib.h>
6970 #include <stdarg.h>
6971 #include <string.h>
6972 #include <float.h>
6973
6974 int
6975 main ()
6976 {
6977
6978   ;
6979   return 0;
6980 }
6981 _ACEOF
6982 if ac_fn_c_try_compile "$LINENO"; then :
6983   ac_cv_header_stdc=yes
6984 else
6985   ac_cv_header_stdc=no
6986 fi
6987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6988
6989 if test $ac_cv_header_stdc = yes; then
6990   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6991   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6992 /* end confdefs.h.  */
6993 #include <string.h>
6994
6995 _ACEOF
6996 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6997   $EGREP "memchr" >/dev/null 2>&1; then :
6998
6999 else
7000   ac_cv_header_stdc=no
7001 fi
7002 rm -f conftest*
7003
7004 fi
7005
7006 if test $ac_cv_header_stdc = yes; then
7007   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7008   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7009 /* end confdefs.h.  */
7010 #include <stdlib.h>
7011
7012 _ACEOF
7013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7014   $EGREP "free" >/dev/null 2>&1; then :
7015
7016 else
7017   ac_cv_header_stdc=no
7018 fi
7019 rm -f conftest*
7020
7021 fi
7022
7023 if test $ac_cv_header_stdc = yes; then
7024   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7025   if test "$cross_compiling" = yes; then :
7026   :
7027 else
7028   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7029 /* end confdefs.h.  */
7030 #include <ctype.h>
7031 #include <stdlib.h>
7032 #if ((' ' & 0x0FF) == 0x020)
7033 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7034 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7035 #else
7036 # define ISLOWER(c) \
7037                    (('a' <= (c) && (c) <= 'i') \
7038                      || ('j' <= (c) && (c) <= 'r') \
7039                      || ('s' <= (c) && (c) <= 'z'))
7040 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7041 #endif
7042
7043 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7044 int
7045 main ()
7046 {
7047   int i;
7048   for (i = 0; i < 256; i++)
7049     if (XOR (islower (i), ISLOWER (i))
7050         || toupper (i) != TOUPPER (i))
7051       return 2;
7052   return 0;
7053 }
7054 _ACEOF
7055 if ac_fn_c_try_run "$LINENO"; then :
7056
7057 else
7058   ac_cv_header_stdc=no
7059 fi
7060 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7061   conftest.$ac_objext conftest.beam conftest.$ac_ext
7062 fi
7063
7064 fi
7065 fi
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7067 $as_echo "$ac_cv_header_stdc" >&6; }
7068 if test $ac_cv_header_stdc = yes; then
7069
7070 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7071
7072 fi
7073
7074 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7075 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7076                   inttypes.h stdint.h unistd.h
7077 do :
7078   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7079 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7080 "
7081 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7082   cat >>confdefs.h <<_ACEOF
7083 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7084 _ACEOF
7085
7086 fi
7087
7088 done
7089
7090
7091 for ac_header in dlfcn.h
7092 do :
7093   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7094 "
7095 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7096   cat >>confdefs.h <<_ACEOF
7097 #define HAVE_DLFCN_H 1
7098 _ACEOF
7099
7100 fi
7101
7102 done
7103
7104
7105
7106
7107
7108 # Set options
7109 enable_win32_dll=yes
7110
7111 case $host in
7112 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7113   if test -n "$ac_tool_prefix"; then
7114   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7115 set dummy ${ac_tool_prefix}as; ac_word=$2
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7117 $as_echo_n "checking for $ac_word... " >&6; }
7118 if ${ac_cv_prog_AS+:} false; then :
7119   $as_echo_n "(cached) " >&6
7120 else
7121   if test -n "$AS"; then
7122   ac_cv_prog_AS="$AS" # Let the user override the test.
7123 else
7124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7125 for as_dir in $PATH
7126 do
7127   IFS=$as_save_IFS
7128   test -z "$as_dir" && as_dir=.
7129     for ac_exec_ext in '' $ac_executable_extensions; do
7130   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7131     ac_cv_prog_AS="${ac_tool_prefix}as"
7132     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7133     break 2
7134   fi
7135 done
7136   done
7137 IFS=$as_save_IFS
7138
7139 fi
7140 fi
7141 AS=$ac_cv_prog_AS
7142 if test -n "$AS"; then
7143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7144 $as_echo "$AS" >&6; }
7145 else
7146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7147 $as_echo "no" >&6; }
7148 fi
7149
7150
7151 fi
7152 if test -z "$ac_cv_prog_AS"; then
7153   ac_ct_AS=$AS
7154   # Extract the first word of "as", so it can be a program name with args.
7155 set dummy as; ac_word=$2
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7157 $as_echo_n "checking for $ac_word... " >&6; }
7158 if ${ac_cv_prog_ac_ct_AS+:} false; then :
7159   $as_echo_n "(cached) " >&6
7160 else
7161   if test -n "$ac_ct_AS"; then
7162   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7163 else
7164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7165 for as_dir in $PATH
7166 do
7167   IFS=$as_save_IFS
7168   test -z "$as_dir" && as_dir=.
7169     for ac_exec_ext in '' $ac_executable_extensions; do
7170   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7171     ac_cv_prog_ac_ct_AS="as"
7172     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7173     break 2
7174   fi
7175 done
7176   done
7177 IFS=$as_save_IFS
7178
7179 fi
7180 fi
7181 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7182 if test -n "$ac_ct_AS"; then
7183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7184 $as_echo "$ac_ct_AS" >&6; }
7185 else
7186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7187 $as_echo "no" >&6; }
7188 fi
7189
7190   if test "x$ac_ct_AS" = x; then
7191     AS="false"
7192   else
7193     case $cross_compiling:$ac_tool_warned in
7194 yes:)
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7196 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7197 ac_tool_warned=yes ;;
7198 esac
7199     AS=$ac_ct_AS
7200   fi
7201 else
7202   AS="$ac_cv_prog_AS"
7203 fi
7204
7205   if test -n "$ac_tool_prefix"; then
7206   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7207 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7209 $as_echo_n "checking for $ac_word... " >&6; }
7210 if ${ac_cv_prog_DLLTOOL+:} false; then :
7211   $as_echo_n "(cached) " >&6
7212 else
7213   if test -n "$DLLTOOL"; then
7214   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7215 else
7216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7217 for as_dir in $PATH
7218 do
7219   IFS=$as_save_IFS
7220   test -z "$as_dir" && as_dir=.
7221     for ac_exec_ext in '' $ac_executable_extensions; do
7222   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7223     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7224     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7225     break 2
7226   fi
7227 done
7228   done
7229 IFS=$as_save_IFS
7230
7231 fi
7232 fi
7233 DLLTOOL=$ac_cv_prog_DLLTOOL
7234 if test -n "$DLLTOOL"; then
7235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7236 $as_echo "$DLLTOOL" >&6; }
7237 else
7238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7239 $as_echo "no" >&6; }
7240 fi
7241
7242
7243 fi
7244 if test -z "$ac_cv_prog_DLLTOOL"; then
7245   ac_ct_DLLTOOL=$DLLTOOL
7246   # Extract the first word of "dlltool", so it can be a program name with args.
7247 set dummy dlltool; ac_word=$2
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7249 $as_echo_n "checking for $ac_word... " >&6; }
7250 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7251   $as_echo_n "(cached) " >&6
7252 else
7253   if test -n "$ac_ct_DLLTOOL"; then
7254   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7255 else
7256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7257 for as_dir in $PATH
7258 do
7259   IFS=$as_save_IFS
7260   test -z "$as_dir" && as_dir=.
7261     for ac_exec_ext in '' $ac_executable_extensions; do
7262   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7263     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7264     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7265     break 2
7266   fi
7267 done
7268   done
7269 IFS=$as_save_IFS
7270
7271 fi
7272 fi
7273 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7274 if test -n "$ac_ct_DLLTOOL"; then
7275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7276 $as_echo "$ac_ct_DLLTOOL" >&6; }
7277 else
7278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7279 $as_echo "no" >&6; }
7280 fi
7281
7282   if test "x$ac_ct_DLLTOOL" = x; then
7283     DLLTOOL="false"
7284   else
7285     case $cross_compiling:$ac_tool_warned in
7286 yes:)
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7288 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7289 ac_tool_warned=yes ;;
7290 esac
7291     DLLTOOL=$ac_ct_DLLTOOL
7292   fi
7293 else
7294   DLLTOOL="$ac_cv_prog_DLLTOOL"
7295 fi
7296
7297   if test -n "$ac_tool_prefix"; then
7298   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7299 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7301 $as_echo_n "checking for $ac_word... " >&6; }
7302 if ${ac_cv_prog_OBJDUMP+:} false; then :
7303   $as_echo_n "(cached) " >&6
7304 else
7305   if test -n "$OBJDUMP"; then
7306   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7307 else
7308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7309 for as_dir in $PATH
7310 do
7311   IFS=$as_save_IFS
7312   test -z "$as_dir" && as_dir=.
7313     for ac_exec_ext in '' $ac_executable_extensions; do
7314   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7315     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7316     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7317     break 2
7318   fi
7319 done
7320   done
7321 IFS=$as_save_IFS
7322
7323 fi
7324 fi
7325 OBJDUMP=$ac_cv_prog_OBJDUMP
7326 if test -n "$OBJDUMP"; then
7327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7328 $as_echo "$OBJDUMP" >&6; }
7329 else
7330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7331 $as_echo "no" >&6; }
7332 fi
7333
7334
7335 fi
7336 if test -z "$ac_cv_prog_OBJDUMP"; then
7337   ac_ct_OBJDUMP=$OBJDUMP
7338   # Extract the first word of "objdump", so it can be a program name with args.
7339 set dummy objdump; ac_word=$2
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7341 $as_echo_n "checking for $ac_word... " >&6; }
7342 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7343   $as_echo_n "(cached) " >&6
7344 else
7345   if test -n "$ac_ct_OBJDUMP"; then
7346   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7347 else
7348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7349 for as_dir in $PATH
7350 do
7351   IFS=$as_save_IFS
7352   test -z "$as_dir" && as_dir=.
7353     for ac_exec_ext in '' $ac_executable_extensions; do
7354   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7355     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7356     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357     break 2
7358   fi
7359 done
7360   done
7361 IFS=$as_save_IFS
7362
7363 fi
7364 fi
7365 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7366 if test -n "$ac_ct_OBJDUMP"; then
7367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7368 $as_echo "$ac_ct_OBJDUMP" >&6; }
7369 else
7370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7371 $as_echo "no" >&6; }
7372 fi
7373
7374   if test "x$ac_ct_OBJDUMP" = x; then
7375     OBJDUMP="false"
7376   else
7377     case $cross_compiling:$ac_tool_warned in
7378 yes:)
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7380 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7381 ac_tool_warned=yes ;;
7382 esac
7383     OBJDUMP=$ac_ct_OBJDUMP
7384   fi
7385 else
7386   OBJDUMP="$ac_cv_prog_OBJDUMP"
7387 fi
7388
7389   ;;
7390 esac
7391
7392 test -z "$AS" && AS=as
7393
7394
7395
7396
7397
7398 test -z "$DLLTOOL" && DLLTOOL=dlltool
7399
7400
7401
7402
7403
7404 test -z "$OBJDUMP" && OBJDUMP=objdump
7405
7406
7407
7408
7409
7410
7411
7412         enable_dlopen=no
7413
7414
7415
7416             # Check whether --enable-shared was given.
7417 if test "${enable_shared+set}" = set; then :
7418   enableval=$enable_shared; p=${PACKAGE-default}
7419     case $enableval in
7420     yes) enable_shared=yes ;;
7421     no) enable_shared=no ;;
7422     *)
7423       enable_shared=no
7424       # Look at the argument we got.  We use all the common list separators.
7425       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7426       for pkg in $enableval; do
7427         IFS="$lt_save_ifs"
7428         if test "X$pkg" = "X$p"; then
7429           enable_shared=yes
7430         fi
7431       done
7432       IFS="$lt_save_ifs"
7433       ;;
7434     esac
7435 else
7436   enable_shared=yes
7437 fi
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447   # Check whether --enable-static was given.
7448 if test "${enable_static+set}" = set; then :
7449   enableval=$enable_static; p=${PACKAGE-default}
7450     case $enableval in
7451     yes) enable_static=yes ;;
7452     no) enable_static=no ;;
7453     *)
7454      enable_static=no
7455       # Look at the argument we got.  We use all the common list separators.
7456       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7457       for pkg in $enableval; do
7458         IFS="$lt_save_ifs"
7459         if test "X$pkg" = "X$p"; then
7460           enable_static=yes
7461         fi
7462       done
7463       IFS="$lt_save_ifs"
7464       ;;
7465     esac
7466 else
7467   enable_static=yes
7468 fi
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479 # Check whether --with-pic was given.
7480 if test "${with_pic+set}" = set; then :
7481   withval=$with_pic; lt_p=${PACKAGE-default}
7482     case $withval in
7483     yes|no) pic_mode=$withval ;;
7484     *)
7485       pic_mode=default
7486       # Look at the argument we got.  We use all the common list separators.
7487       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7488       for lt_pkg in $withval; do
7489         IFS="$lt_save_ifs"
7490         if test "X$lt_pkg" = "X$lt_p"; then
7491           pic_mode=yes
7492         fi
7493       done
7494       IFS="$lt_save_ifs"
7495       ;;
7496     esac
7497 else
7498   pic_mode=default
7499 fi
7500
7501
7502 test -z "$pic_mode" && pic_mode=default
7503
7504
7505
7506
7507
7508
7509
7510   # Check whether --enable-fast-install was given.
7511 if test "${enable_fast_install+set}" = set; then :
7512   enableval=$enable_fast_install; p=${PACKAGE-default}
7513     case $enableval in
7514     yes) enable_fast_install=yes ;;
7515     no) enable_fast_install=no ;;
7516     *)
7517       enable_fast_install=no
7518       # Look at the argument we got.  We use all the common list separators.
7519       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7520       for pkg in $enableval; do
7521         IFS="$lt_save_ifs"
7522         if test "X$pkg" = "X$p"; then
7523           enable_fast_install=yes
7524         fi
7525       done
7526       IFS="$lt_save_ifs"
7527       ;;
7528     esac
7529 else
7530   enable_fast_install=yes
7531 fi
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543 # This can be used to rebuild libtool when needed
7544 LIBTOOL_DEPS="$ltmain"
7545
7546 # Always use our own libtool.
7547 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578 test -z "$LN_S" && LN_S="ln -s"
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593 if test -n "${ZSH_VERSION+set}" ; then
7594    setopt NO_GLOB_SUBST
7595 fi
7596
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7598 $as_echo_n "checking for objdir... " >&6; }
7599 if ${lt_cv_objdir+:} false; then :
7600   $as_echo_n "(cached) " >&6
7601 else
7602   rm -f .libs 2>/dev/null
7603 mkdir .libs 2>/dev/null
7604 if test -d .libs; then
7605   lt_cv_objdir=.libs
7606 else
7607   # MS-DOS does not allow filenames that begin with a dot.
7608   lt_cv_objdir=_libs
7609 fi
7610 rmdir .libs 2>/dev/null
7611 fi
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7613 $as_echo "$lt_cv_objdir" >&6; }
7614 objdir=$lt_cv_objdir
7615
7616
7617
7618
7619
7620 cat >>confdefs.h <<_ACEOF
7621 #define LT_OBJDIR "$lt_cv_objdir/"
7622 _ACEOF
7623
7624
7625
7626
7627 case $host_os in
7628 aix3*)
7629   # AIX sometimes has problems with the GCC collect2 program.  For some
7630   # reason, if we set the COLLECT_NAMES environment variable, the problems
7631   # vanish in a puff of smoke.
7632   if test "X${COLLECT_NAMES+set}" != Xset; then
7633     COLLECT_NAMES=
7634     export COLLECT_NAMES
7635   fi
7636   ;;
7637 esac
7638
7639 # Global variables:
7640 ofile=libtool
7641 can_build_shared=yes
7642
7643 # All known linkers require a `.a' archive for static linking (except MSVC,
7644 # which needs '.lib').
7645 libext=a
7646
7647 with_gnu_ld="$lt_cv_prog_gnu_ld"
7648
7649 old_CC="$CC"
7650 old_CFLAGS="$CFLAGS"
7651
7652 # Set sane defaults for various variables
7653 test -z "$CC" && CC=cc
7654 test -z "$LTCC" && LTCC=$CC
7655 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7656 test -z "$LD" && LD=ld
7657 test -z "$ac_objext" && ac_objext=o
7658
7659 for cc_temp in $compiler""; do
7660   case $cc_temp in
7661     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7662     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7663     \-*) ;;
7664     *) break;;
7665   esac
7666 done
7667 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7668
7669
7670 # Only perform the check for file, if the check method requires it
7671 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7672 case $deplibs_check_method in
7673 file_magic*)
7674   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7675     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7676 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7677 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7678   $as_echo_n "(cached) " >&6
7679 else
7680   case $MAGIC_CMD in
7681 [\\/*] |  ?:[\\/]*)
7682   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7683   ;;
7684 *)
7685   lt_save_MAGIC_CMD="$MAGIC_CMD"
7686   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7687   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7688   for ac_dir in $ac_dummy; do
7689     IFS="$lt_save_ifs"
7690     test -z "$ac_dir" && ac_dir=.
7691     if test -f $ac_dir/${ac_tool_prefix}file; then
7692       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7693       if test -n "$file_magic_test_file"; then
7694         case $deplibs_check_method in
7695         "file_magic "*)
7696           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7697           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7698           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7699             $EGREP "$file_magic_regex" > /dev/null; then
7700             :
7701           else
7702             cat <<_LT_EOF 1>&2
7703
7704 *** Warning: the command libtool uses to detect shared libraries,
7705 *** $file_magic_cmd, produces output that libtool cannot recognize.
7706 *** The result is that libtool may fail to recognize shared libraries
7707 *** as such.  This will affect the creation of libtool libraries that
7708 *** depend on shared libraries, but programs linked with such libtool
7709 *** libraries will work regardless of this problem.  Nevertheless, you
7710 *** may want to report the problem to your system manager and/or to
7711 *** bug-libtool@gnu.org
7712
7713 _LT_EOF
7714           fi ;;
7715         esac
7716       fi
7717       break
7718     fi
7719   done
7720   IFS="$lt_save_ifs"
7721   MAGIC_CMD="$lt_save_MAGIC_CMD"
7722   ;;
7723 esac
7724 fi
7725
7726 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7727 if test -n "$MAGIC_CMD"; then
7728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7729 $as_echo "$MAGIC_CMD" >&6; }
7730 else
7731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7732 $as_echo "no" >&6; }
7733 fi
7734
7735
7736
7737
7738
7739 if test -z "$lt_cv_path_MAGIC_CMD"; then
7740   if test -n "$ac_tool_prefix"; then
7741     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7742 $as_echo_n "checking for file... " >&6; }
7743 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7744   $as_echo_n "(cached) " >&6
7745 else
7746   case $MAGIC_CMD in
7747 [\\/*] |  ?:[\\/]*)
7748   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7749   ;;
7750 *)
7751   lt_save_MAGIC_CMD="$MAGIC_CMD"
7752   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7753   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7754   for ac_dir in $ac_dummy; do
7755     IFS="$lt_save_ifs"
7756     test -z "$ac_dir" && ac_dir=.
7757     if test -f $ac_dir/file; then
7758       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7759       if test -n "$file_magic_test_file"; then
7760         case $deplibs_check_method in
7761         "file_magic "*)
7762           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7763           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7764           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7765             $EGREP "$file_magic_regex" > /dev/null; then
7766             :
7767           else
7768             cat <<_LT_EOF 1>&2
7769
7770 *** Warning: the command libtool uses to detect shared libraries,
7771 *** $file_magic_cmd, produces output that libtool cannot recognize.
7772 *** The result is that libtool may fail to recognize shared libraries
7773 *** as such.  This will affect the creation of libtool libraries that
7774 *** depend on shared libraries, but programs linked with such libtool
7775 *** libraries will work regardless of this problem.  Nevertheless, you
7776 *** may want to report the problem to your system manager and/or to
7777 *** bug-libtool@gnu.org
7778
7779 _LT_EOF
7780           fi ;;
7781         esac
7782       fi
7783       break
7784     fi
7785   done
7786   IFS="$lt_save_ifs"
7787   MAGIC_CMD="$lt_save_MAGIC_CMD"
7788   ;;
7789 esac
7790 fi
7791
7792 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7793 if test -n "$MAGIC_CMD"; then
7794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7795 $as_echo "$MAGIC_CMD" >&6; }
7796 else
7797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7798 $as_echo "no" >&6; }
7799 fi
7800
7801
7802   else
7803     MAGIC_CMD=:
7804   fi
7805 fi
7806
7807   fi
7808   ;;
7809 esac
7810
7811 # Use C for the default configuration in the libtool script
7812
7813 lt_save_CC="$CC"
7814 ac_ext=c
7815 ac_cpp='$CPP $CPPFLAGS'
7816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7819
7820
7821 # Source file extension for C test sources.
7822 ac_ext=c
7823
7824 # Object file extension for compiled C test sources.
7825 objext=o
7826 objext=$objext
7827
7828 # Code to be used in simple compile tests
7829 lt_simple_compile_test_code="int some_variable = 0;"
7830
7831 # Code to be used in simple link tests
7832 lt_simple_link_test_code='int main(){return(0);}'
7833
7834
7835
7836
7837
7838
7839
7840 # If no C compiler was specified, use CC.
7841 LTCC=${LTCC-"$CC"}
7842
7843 # If no C compiler flags were specified, use CFLAGS.
7844 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7845
7846 # Allow CC to be a program name with arguments.
7847 compiler=$CC
7848
7849 # Save the default compiler, since it gets overwritten when the other
7850 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7851 compiler_DEFAULT=$CC
7852
7853 # save warnings/boilerplate of simple test code
7854 ac_outfile=conftest.$ac_objext
7855 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7856 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7857 _lt_compiler_boilerplate=`cat conftest.err`
7858 $RM conftest*
7859
7860 ac_outfile=conftest.$ac_objext
7861 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7862 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7863 _lt_linker_boilerplate=`cat conftest.err`
7864 $RM -r conftest*
7865
7866
7867 ## CAVEAT EMPTOR:
7868 ## There is no encapsulation within the following macros, do not change
7869 ## the running order or otherwise move them around unless you know exactly
7870 ## what you are doing...
7871 if test -n "$compiler"; then
7872
7873 lt_prog_compiler_no_builtin_flag=
7874
7875 if test "$GCC" = yes; then
7876   case $cc_basename in
7877   nvcc*)
7878     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7879   *)
7880     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7881   esac
7882
7883   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7884 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7885 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7886   $as_echo_n "(cached) " >&6
7887 else
7888   lt_cv_prog_compiler_rtti_exceptions=no
7889    ac_outfile=conftest.$ac_objext
7890    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7891    lt_compiler_flag="-fno-rtti -fno-exceptions"
7892    # Insert the option either (1) after the last *FLAGS variable, or
7893    # (2) before a word containing "conftest.", or (3) at the end.
7894    # Note that $ac_compile itself does not contain backslashes and begins
7895    # with a dollar sign (not a hyphen), so the echo should work correctly.
7896    # The option is referenced via a variable to avoid confusing sed.
7897    lt_compile=`echo "$ac_compile" | $SED \
7898    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7899    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7900    -e 's:$: $lt_compiler_flag:'`
7901    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7902    (eval "$lt_compile" 2>conftest.err)
7903    ac_status=$?
7904    cat conftest.err >&5
7905    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7906    if (exit $ac_status) && test -s "$ac_outfile"; then
7907      # The compiler can only warn and ignore the option if not recognized
7908      # So say no if there are warnings other than the usual output.
7909      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7910      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7911      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7912        lt_cv_prog_compiler_rtti_exceptions=yes
7913      fi
7914    fi
7915    $RM conftest*
7916
7917 fi
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7919 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7920
7921 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7922     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7923 else
7924     :
7925 fi
7926
7927 fi
7928
7929
7930
7931
7932
7933
7934   lt_prog_compiler_wl=
7935 lt_prog_compiler_pic=
7936 lt_prog_compiler_static=
7937
7938
7939   if test "$GCC" = yes; then
7940     lt_prog_compiler_wl='-Wl,'
7941     lt_prog_compiler_static='-static'
7942
7943     case $host_os in
7944       aix*)
7945       # All AIX code is PIC.
7946       if test "$host_cpu" = ia64; then
7947         # AIX 5 now supports IA64 processor
7948         lt_prog_compiler_static='-Bstatic'
7949       fi
7950       ;;
7951
7952     amigaos*)
7953       case $host_cpu in
7954       powerpc)
7955             # see comment about AmigaOS4 .so support
7956             lt_prog_compiler_pic='-fPIC'
7957         ;;
7958       m68k)
7959             # FIXME: we need at least 68020 code to build shared libraries, but
7960             # adding the `-m68020' flag to GCC prevents building anything better,
7961             # like `-m68040'.
7962             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7963         ;;
7964       esac
7965       ;;
7966
7967     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7968       # PIC is the default for these OSes.
7969       ;;
7970
7971     mingw* | cygwin* | pw32* | os2* | cegcc*)
7972       # This hack is so that the source file can tell whether it is being
7973       # built for inclusion in a dll (and should export symbols for example).
7974       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7975       # (--disable-auto-import) libraries
7976       lt_prog_compiler_pic='-DDLL_EXPORT'
7977       ;;
7978
7979     darwin* | rhapsody*)
7980       # PIC is the default on this platform
7981       # Common symbols not allowed in MH_DYLIB files
7982       lt_prog_compiler_pic='-fno-common'
7983       ;;
7984
7985     haiku*)
7986       # PIC is the default for Haiku.
7987       # The "-static" flag exists, but is broken.
7988       lt_prog_compiler_static=
7989       ;;
7990
7991     hpux*)
7992       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7993       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7994       # sets the default TLS model and affects inlining.
7995       case $host_cpu in
7996       hppa*64*)
7997         # +Z the default
7998         ;;
7999       *)
8000         lt_prog_compiler_pic='-fPIC'
8001         ;;
8002       esac
8003       ;;
8004
8005     interix[3-9]*)
8006       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8007       # Instead, we relocate shared libraries at runtime.
8008       ;;
8009
8010     msdosdjgpp*)
8011       # Just because we use GCC doesn't mean we suddenly get shared libraries
8012       # on systems that don't support them.
8013       lt_prog_compiler_can_build_shared=no
8014       enable_shared=no
8015       ;;
8016
8017     *nto* | *qnx*)
8018       # QNX uses GNU C++, but need to define -shared option too, otherwise
8019       # it will coredump.
8020       lt_prog_compiler_pic='-fPIC -shared'
8021       ;;
8022
8023     sysv4*MP*)
8024       if test -d /usr/nec; then
8025         lt_prog_compiler_pic=-Kconform_pic
8026       fi
8027       ;;
8028
8029     *)
8030       lt_prog_compiler_pic='-fPIC'
8031       ;;
8032     esac
8033
8034     case $cc_basename in
8035     nvcc*) # Cuda Compiler Driver 2.2
8036       lt_prog_compiler_wl='-Xlinker '
8037       if test -n "$lt_prog_compiler_pic"; then
8038         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8039       fi
8040       ;;
8041     esac
8042   else
8043     # PORTME Check for flag to pass linker flags through the system compiler.
8044     case $host_os in
8045     aix*)
8046       lt_prog_compiler_wl='-Wl,'
8047       if test "$host_cpu" = ia64; then
8048         # AIX 5 now supports IA64 processor
8049         lt_prog_compiler_static='-Bstatic'
8050       else
8051         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8052       fi
8053       ;;
8054
8055     mingw* | cygwin* | pw32* | os2* | cegcc*)
8056       # This hack is so that the source file can tell whether it is being
8057       # built for inclusion in a dll (and should export symbols for example).
8058       lt_prog_compiler_pic='-DDLL_EXPORT'
8059       ;;
8060
8061     hpux9* | hpux10* | hpux11*)
8062       lt_prog_compiler_wl='-Wl,'
8063       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8064       # not for PA HP-UX.
8065       case $host_cpu in
8066       hppa*64*|ia64*)
8067         # +Z the default
8068         ;;
8069       *)
8070         lt_prog_compiler_pic='+Z'
8071         ;;
8072       esac
8073       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8074       lt_prog_compiler_static='${wl}-a ${wl}archive'
8075       ;;
8076
8077     irix5* | irix6* | nonstopux*)
8078       lt_prog_compiler_wl='-Wl,'
8079       # PIC (with -KPIC) is the default.
8080       lt_prog_compiler_static='-non_shared'
8081       ;;
8082
8083     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8084       case $cc_basename in
8085       # old Intel for x86_64 which still supported -KPIC.
8086       ecc*)
8087         lt_prog_compiler_wl='-Wl,'
8088         lt_prog_compiler_pic='-KPIC'
8089         lt_prog_compiler_static='-static'
8090         ;;
8091       # icc used to be incompatible with GCC.
8092       # ICC 10 doesn't accept -KPIC any more.
8093       icc* | ifort*)
8094         lt_prog_compiler_wl='-Wl,'
8095         lt_prog_compiler_pic='-fPIC'
8096         lt_prog_compiler_static='-static'
8097         ;;
8098       # Lahey Fortran 8.1.
8099       lf95*)
8100         lt_prog_compiler_wl='-Wl,'
8101         lt_prog_compiler_pic='--shared'
8102         lt_prog_compiler_static='--static'
8103         ;;
8104       nagfor*)
8105         # NAG Fortran compiler
8106         lt_prog_compiler_wl='-Wl,-Wl,,'
8107         lt_prog_compiler_pic='-PIC'
8108         lt_prog_compiler_static='-Bstatic'
8109         ;;
8110       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8111         # Portland Group compilers (*not* the Pentium gcc compiler,
8112         # which looks to be a dead project)
8113         lt_prog_compiler_wl='-Wl,'
8114         lt_prog_compiler_pic='-fpic'
8115         lt_prog_compiler_static='-Bstatic'
8116         ;;
8117       ccc*)
8118         lt_prog_compiler_wl='-Wl,'
8119         # All Alpha code is PIC.
8120         lt_prog_compiler_static='-non_shared'
8121         ;;
8122       xl* | bgxl* | bgf* | mpixl*)
8123         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8124         lt_prog_compiler_wl='-Wl,'
8125         lt_prog_compiler_pic='-qpic'
8126         lt_prog_compiler_static='-qstaticlink'
8127         ;;
8128       *)
8129         case `$CC -V 2>&1 | sed 5q` in
8130         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8131           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8132           lt_prog_compiler_pic='-KPIC'
8133           lt_prog_compiler_static='-Bstatic'
8134           lt_prog_compiler_wl=''
8135           ;;
8136         *Sun\ F* | *Sun*Fortran*)
8137           lt_prog_compiler_pic='-KPIC'
8138           lt_prog_compiler_static='-Bstatic'
8139           lt_prog_compiler_wl='-Qoption ld '
8140           ;;
8141         *Sun\ C*)
8142           # Sun C 5.9
8143           lt_prog_compiler_pic='-KPIC'
8144           lt_prog_compiler_static='-Bstatic'
8145           lt_prog_compiler_wl='-Wl,'
8146           ;;
8147         *Intel*\ [CF]*Compiler*)
8148           lt_prog_compiler_wl='-Wl,'
8149           lt_prog_compiler_pic='-fPIC'
8150           lt_prog_compiler_static='-static'
8151           ;;
8152         *Portland\ Group*)
8153           lt_prog_compiler_wl='-Wl,'
8154           lt_prog_compiler_pic='-fpic'
8155           lt_prog_compiler_static='-Bstatic'
8156           ;;
8157         esac
8158         ;;
8159       esac
8160       ;;
8161
8162     newsos6)
8163       lt_prog_compiler_pic='-KPIC'
8164       lt_prog_compiler_static='-Bstatic'
8165       ;;
8166
8167     *nto* | *qnx*)
8168       # QNX uses GNU C++, but need to define -shared option too, otherwise
8169       # it will coredump.
8170       lt_prog_compiler_pic='-fPIC -shared'
8171       ;;
8172
8173     osf3* | osf4* | osf5*)
8174       lt_prog_compiler_wl='-Wl,'
8175       # All OSF/1 code is PIC.
8176       lt_prog_compiler_static='-non_shared'
8177       ;;
8178
8179     rdos*)
8180       lt_prog_compiler_static='-non_shared'
8181       ;;
8182
8183     solaris*)
8184       lt_prog_compiler_pic='-KPIC'
8185       lt_prog_compiler_static='-Bstatic'
8186       case $cc_basename in
8187       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8188         lt_prog_compiler_wl='-Qoption ld ';;
8189       *)
8190         lt_prog_compiler_wl='-Wl,';;
8191       esac
8192       ;;
8193
8194     sunos4*)
8195       lt_prog_compiler_wl='-Qoption ld '
8196       lt_prog_compiler_pic='-PIC'
8197       lt_prog_compiler_static='-Bstatic'
8198       ;;
8199
8200     sysv4 | sysv4.2uw2* | sysv4.3*)
8201       lt_prog_compiler_wl='-Wl,'
8202       lt_prog_compiler_pic='-KPIC'
8203       lt_prog_compiler_static='-Bstatic'
8204       ;;
8205
8206     sysv4*MP*)
8207       if test -d /usr/nec ;then
8208         lt_prog_compiler_pic='-Kconform_pic'
8209         lt_prog_compiler_static='-Bstatic'
8210       fi
8211       ;;
8212
8213     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8214       lt_prog_compiler_wl='-Wl,'
8215       lt_prog_compiler_pic='-KPIC'
8216       lt_prog_compiler_static='-Bstatic'
8217       ;;
8218
8219     unicos*)
8220       lt_prog_compiler_wl='-Wl,'
8221       lt_prog_compiler_can_build_shared=no
8222       ;;
8223
8224     uts4*)
8225       lt_prog_compiler_pic='-pic'
8226       lt_prog_compiler_static='-Bstatic'
8227       ;;
8228
8229     *)
8230       lt_prog_compiler_can_build_shared=no
8231       ;;
8232     esac
8233   fi
8234
8235 case $host_os in
8236   # For platforms which do not support PIC, -DPIC is meaningless:
8237   *djgpp*)
8238     lt_prog_compiler_pic=
8239     ;;
8240   *)
8241     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8242     ;;
8243 esac
8244
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8246 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8247 if ${lt_cv_prog_compiler_pic+:} false; then :
8248   $as_echo_n "(cached) " >&6
8249 else
8250   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8251 fi
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8253 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8254 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8255
8256 #
8257 # Check to make sure the PIC flag actually works.
8258 #
8259 if test -n "$lt_prog_compiler_pic"; then
8260   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8261 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8262 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8263   $as_echo_n "(cached) " >&6
8264 else
8265   lt_cv_prog_compiler_pic_works=no
8266    ac_outfile=conftest.$ac_objext
8267    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8268    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8269    # Insert the option either (1) after the last *FLAGS variable, or
8270    # (2) before a word containing "conftest.", or (3) at the end.
8271    # Note that $ac_compile itself does not contain backslashes and begins
8272    # with a dollar sign (not a hyphen), so the echo should work correctly.
8273    # The option is referenced via a variable to avoid confusing sed.
8274    lt_compile=`echo "$ac_compile" | $SED \
8275    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8276    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8277    -e 's:$: $lt_compiler_flag:'`
8278    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8279    (eval "$lt_compile" 2>conftest.err)
8280    ac_status=$?
8281    cat conftest.err >&5
8282    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283    if (exit $ac_status) && test -s "$ac_outfile"; then
8284      # The compiler can only warn and ignore the option if not recognized
8285      # So say no if there are warnings other than the usual output.
8286      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8287      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8288      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8289        lt_cv_prog_compiler_pic_works=yes
8290      fi
8291    fi
8292    $RM conftest*
8293
8294 fi
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8296 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8297
8298 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8299     case $lt_prog_compiler_pic in
8300      "" | " "*) ;;
8301      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8302      esac
8303 else
8304     lt_prog_compiler_pic=
8305      lt_prog_compiler_can_build_shared=no
8306 fi
8307
8308 fi
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320 #
8321 # Check to make sure the static flag actually works.
8322 #
8323 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8325 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8326 if ${lt_cv_prog_compiler_static_works+:} false; then :
8327   $as_echo_n "(cached) " >&6
8328 else
8329   lt_cv_prog_compiler_static_works=no
8330    save_LDFLAGS="$LDFLAGS"
8331    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8332    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8333    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8334      # The linker can only warn and ignore the option if not recognized
8335      # So say no if there are warnings
8336      if test -s conftest.err; then
8337        # Append any errors to the config.log.
8338        cat conftest.err 1>&5
8339        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8340        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8341        if diff conftest.exp conftest.er2 >/dev/null; then
8342          lt_cv_prog_compiler_static_works=yes
8343        fi
8344      else
8345        lt_cv_prog_compiler_static_works=yes
8346      fi
8347    fi
8348    $RM -r conftest*
8349    LDFLAGS="$save_LDFLAGS"
8350
8351 fi
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8353 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8354
8355 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8356     :
8357 else
8358     lt_prog_compiler_static=
8359 fi
8360
8361
8362
8363
8364
8365
8366
8367   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8368 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8369 if ${lt_cv_prog_compiler_c_o+:} false; then :
8370   $as_echo_n "(cached) " >&6
8371 else
8372   lt_cv_prog_compiler_c_o=no
8373    $RM -r conftest 2>/dev/null
8374    mkdir conftest
8375    cd conftest
8376    mkdir out
8377    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8378
8379    lt_compiler_flag="-o out/conftest2.$ac_objext"
8380    # Insert the option either (1) after the last *FLAGS variable, or
8381    # (2) before a word containing "conftest.", or (3) at the end.
8382    # Note that $ac_compile itself does not contain backslashes and begins
8383    # with a dollar sign (not a hyphen), so the echo should work correctly.
8384    lt_compile=`echo "$ac_compile" | $SED \
8385    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8386    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8387    -e 's:$: $lt_compiler_flag:'`
8388    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8389    (eval "$lt_compile" 2>out/conftest.err)
8390    ac_status=$?
8391    cat out/conftest.err >&5
8392    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8394    then
8395      # The compiler can only warn and ignore the option if not recognized
8396      # So say no if there are warnings
8397      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8398      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8399      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8400        lt_cv_prog_compiler_c_o=yes
8401      fi
8402    fi
8403    chmod u+w . 2>&5
8404    $RM conftest*
8405    # SGI C++ compiler will create directory out/ii_files/ for
8406    # template instantiation
8407    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8408    $RM out/* && rmdir out
8409    cd ..
8410    $RM -r conftest
8411    $RM conftest*
8412
8413 fi
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8415 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8416
8417
8418
8419
8420
8421
8422   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8423 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8424 if ${lt_cv_prog_compiler_c_o+:} false; then :
8425   $as_echo_n "(cached) " >&6
8426 else
8427   lt_cv_prog_compiler_c_o=no
8428    $RM -r conftest 2>/dev/null
8429    mkdir conftest
8430    cd conftest
8431    mkdir out
8432    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8433
8434    lt_compiler_flag="-o out/conftest2.$ac_objext"
8435    # Insert the option either (1) after the last *FLAGS variable, or
8436    # (2) before a word containing "conftest.", or (3) at the end.
8437    # Note that $ac_compile itself does not contain backslashes and begins
8438    # with a dollar sign (not a hyphen), so the echo should work correctly.
8439    lt_compile=`echo "$ac_compile" | $SED \
8440    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8441    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8442    -e 's:$: $lt_compiler_flag:'`
8443    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8444    (eval "$lt_compile" 2>out/conftest.err)
8445    ac_status=$?
8446    cat out/conftest.err >&5
8447    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8449    then
8450      # The compiler can only warn and ignore the option if not recognized
8451      # So say no if there are warnings
8452      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8453      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8454      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8455        lt_cv_prog_compiler_c_o=yes
8456      fi
8457    fi
8458    chmod u+w . 2>&5
8459    $RM conftest*
8460    # SGI C++ compiler will create directory out/ii_files/ for
8461    # template instantiation
8462    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8463    $RM out/* && rmdir out
8464    cd ..
8465    $RM -r conftest
8466    $RM conftest*
8467
8468 fi
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8470 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8471
8472
8473
8474
8475 hard_links="nottested"
8476 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8477   # do not overwrite the value of need_locks provided by the user
8478   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8479 $as_echo_n "checking if we can lock with hard links... " >&6; }
8480   hard_links=yes
8481   $RM conftest*
8482   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8483   touch conftest.a
8484   ln conftest.a conftest.b 2>&5 || hard_links=no
8485   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8487 $as_echo "$hard_links" >&6; }
8488   if test "$hard_links" = no; then
8489     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8490 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8491     need_locks=warn
8492   fi
8493 else
8494   need_locks=no
8495 fi
8496
8497
8498
8499
8500
8501
8502   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8503 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8504
8505   runpath_var=
8506   allow_undefined_flag=
8507   always_export_symbols=no
8508   archive_cmds=
8509   archive_expsym_cmds=
8510   compiler_needs_object=no
8511   enable_shared_with_static_runtimes=no
8512   export_dynamic_flag_spec=
8513   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8514   hardcode_automatic=no
8515   hardcode_direct=no
8516   hardcode_direct_absolute=no
8517   hardcode_libdir_flag_spec=
8518   hardcode_libdir_separator=
8519   hardcode_minus_L=no
8520   hardcode_shlibpath_var=unsupported
8521   inherit_rpath=no
8522   link_all_deplibs=unknown
8523   module_cmds=
8524   module_expsym_cmds=
8525   old_archive_from_new_cmds=
8526   old_archive_from_expsyms_cmds=
8527   thread_safe_flag_spec=
8528   whole_archive_flag_spec=
8529   # include_expsyms should be a list of space-separated symbols to be *always*
8530   # included in the symbol list
8531   include_expsyms=
8532   # exclude_expsyms can be an extended regexp of symbols to exclude
8533   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8534   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8535   # as well as any symbol that contains `d'.
8536   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8537   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8538   # platforms (ab)use it in PIC code, but their linkers get confused if
8539   # the symbol is explicitly referenced.  Since portable code cannot
8540   # rely on this symbol name, it's probably fine to never include it in
8541   # preloaded symbol tables.
8542   # Exclude shared library initialization/finalization symbols.
8543   extract_expsyms_cmds=
8544
8545   case $host_os in
8546   cygwin* | mingw* | pw32* | cegcc*)
8547     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8548     # When not using gcc, we currently assume that we are using
8549     # Microsoft Visual C++.
8550     if test "$GCC" != yes; then
8551       with_gnu_ld=no
8552     fi
8553     ;;
8554   interix*)
8555     # we just hope/assume this is gcc and not c89 (= MSVC++)
8556     with_gnu_ld=yes
8557     ;;
8558   openbsd*)
8559     with_gnu_ld=no
8560     ;;
8561   esac
8562
8563   ld_shlibs=yes
8564
8565   # On some targets, GNU ld is compatible enough with the native linker
8566   # that we're better off using the native interface for both.
8567   lt_use_gnu_ld_interface=no
8568   if test "$with_gnu_ld" = yes; then
8569     case $host_os in
8570       aix*)
8571         # The AIX port of GNU ld has always aspired to compatibility
8572         # with the native linker.  However, as the warning in the GNU ld
8573         # block says, versions before 2.19.5* couldn't really create working
8574         # shared libraries, regardless of the interface used.
8575         case `$LD -v 2>&1` in
8576           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8577           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8578           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8579           *)
8580             lt_use_gnu_ld_interface=yes
8581             ;;
8582         esac
8583         ;;
8584       *)
8585         lt_use_gnu_ld_interface=yes
8586         ;;
8587     esac
8588   fi
8589
8590   if test "$lt_use_gnu_ld_interface" = yes; then
8591     # If archive_cmds runs LD, not CC, wlarc should be empty
8592     wlarc='${wl}'
8593
8594     # Set some defaults for GNU ld with shared library support. These
8595     # are reset later if shared libraries are not supported. Putting them
8596     # here allows them to be overridden if necessary.
8597     runpath_var=LD_RUN_PATH
8598     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8599     export_dynamic_flag_spec='${wl}--export-dynamic'
8600     # ancient GNU ld didn't support --whole-archive et. al.
8601     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8602       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8603     else
8604       whole_archive_flag_spec=
8605     fi
8606     supports_anon_versioning=no
8607     case `$LD -v 2>&1` in
8608       *GNU\ gold*) supports_anon_versioning=yes ;;
8609       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8610       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8611       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8612       *\ 2.11.*) ;; # other 2.11 versions
8613       *) supports_anon_versioning=yes ;;
8614     esac
8615
8616     # See if GNU ld supports shared libraries.
8617     case $host_os in
8618     aix[3-9]*)
8619       # On AIX/PPC, the GNU linker is very broken
8620       if test "$host_cpu" != ia64; then
8621         ld_shlibs=no
8622         cat <<_LT_EOF 1>&2
8623
8624 *** Warning: the GNU linker, at least up to release 2.19, is reported
8625 *** to be unable to reliably create shared libraries on AIX.
8626 *** Therefore, libtool is disabling shared libraries support.  If you
8627 *** really care for shared libraries, you may want to install binutils
8628 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8629 *** You will then need to restart the configuration process.
8630
8631 _LT_EOF
8632       fi
8633       ;;
8634
8635     amigaos*)
8636       case $host_cpu in
8637       powerpc)
8638             # see comment about AmigaOS4 .so support
8639             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8640             archive_expsym_cmds=''
8641         ;;
8642       m68k)
8643             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)'
8644             hardcode_libdir_flag_spec='-L$libdir'
8645             hardcode_minus_L=yes
8646         ;;
8647       esac
8648       ;;
8649
8650     beos*)
8651       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8652         allow_undefined_flag=unsupported
8653         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8654         # support --undefined.  This deserves some investigation.  FIXME
8655         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8656       else
8657         ld_shlibs=no
8658       fi
8659       ;;
8660
8661     cygwin* | mingw* | pw32* | cegcc*)
8662       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8663       # as there is no search path for DLLs.
8664       hardcode_libdir_flag_spec='-L$libdir'
8665       export_dynamic_flag_spec='${wl}--export-all-symbols'
8666       allow_undefined_flag=unsupported
8667       always_export_symbols=no
8668       enable_shared_with_static_runtimes=yes
8669       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'
8670       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8671
8672       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8673         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8674         # If the export-symbols file already is a .def file (1st line
8675         # is EXPORTS), use it as is; otherwise, prepend...
8676         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8677           cp $export_symbols $output_objdir/$soname.def;
8678         else
8679           echo EXPORTS > $output_objdir/$soname.def;
8680           cat $export_symbols >> $output_objdir/$soname.def;
8681         fi~
8682         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8683       else
8684         ld_shlibs=no
8685       fi
8686       ;;
8687
8688     haiku*)
8689       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8690       link_all_deplibs=yes
8691       ;;
8692
8693     interix[3-9]*)
8694       hardcode_direct=no
8695       hardcode_shlibpath_var=no
8696       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8697       export_dynamic_flag_spec='${wl}-E'
8698       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8699       # Instead, shared libraries are loaded at an image base (0x10000000 by
8700       # default) and relocated if they conflict, which is a slow very memory
8701       # consuming and fragmenting process.  To avoid this, we pick a random,
8702       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8703       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8704       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8705       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'
8706       ;;
8707
8708     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8709       tmp_diet=no
8710       if test "$host_os" = linux-dietlibc; then
8711         case $cc_basename in
8712           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8713         esac
8714       fi
8715       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8716          && test "$tmp_diet" = no
8717       then
8718         tmp_addflag=' $pic_flag'
8719         tmp_sharedflag='-shared'
8720         case $cc_basename,$host_cpu in
8721         pgcc*)                          # Portland Group C compiler
8722           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'
8723           tmp_addflag=' $pic_flag'
8724           ;;
8725         pgf77* | pgf90* | pgf95* | pgfortran*)
8726                                         # Portland Group f77 and f90 compilers
8727           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'
8728           tmp_addflag=' $pic_flag -Mnomain' ;;
8729         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8730           tmp_addflag=' -i_dynamic' ;;
8731         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8732           tmp_addflag=' -i_dynamic -nofor_main' ;;
8733         ifc* | ifort*)                  # Intel Fortran compiler
8734           tmp_addflag=' -nofor_main' ;;
8735         lf95*)                          # Lahey Fortran 8.1
8736           whole_archive_flag_spec=
8737           tmp_sharedflag='--shared' ;;
8738         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8739           tmp_sharedflag='-qmkshrobj'
8740           tmp_addflag= ;;
8741         nvcc*)  # Cuda Compiler Driver 2.2
8742           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'
8743           compiler_needs_object=yes
8744           ;;
8745         esac
8746         case `$CC -V 2>&1 | sed 5q` in
8747         *Sun\ C*)                       # Sun C 5.9
8748           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'
8749           compiler_needs_object=yes
8750           tmp_sharedflag='-G' ;;
8751         *Sun\ F*)                       # Sun Fortran 8.3
8752           tmp_sharedflag='-G' ;;
8753         esac
8754         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8755
8756         if test "x$supports_anon_versioning" = xyes; then
8757           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8758             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8759             echo "local: *; };" >> $output_objdir/$libname.ver~
8760             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8761         fi
8762
8763         case $cc_basename in
8764         xlf* | bgf* | bgxlf* | mpixlf*)
8765           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8766           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8767           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8768           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8769           if test "x$supports_anon_versioning" = xyes; then
8770             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8771               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8772               echo "local: *; };" >> $output_objdir/$libname.ver~
8773               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8774           fi
8775           ;;
8776         esac
8777       else
8778         ld_shlibs=no
8779       fi
8780       ;;
8781
8782     netbsd*)
8783       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8784         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8785         wlarc=
8786       else
8787         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8788         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8789       fi
8790       ;;
8791
8792     solaris*)
8793       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8794         ld_shlibs=no
8795         cat <<_LT_EOF 1>&2
8796
8797 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8798 *** create shared libraries on Solaris systems.  Therefore, libtool
8799 *** is disabling shared libraries support.  We urge you to upgrade GNU
8800 *** binutils to release 2.9.1 or newer.  Another option is to modify
8801 *** your PATH or compiler configuration so that the native linker is
8802 *** used, and then restart.
8803
8804 _LT_EOF
8805       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8806         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8807         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8808       else
8809         ld_shlibs=no
8810       fi
8811       ;;
8812
8813     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8814       case `$LD -v 2>&1` in
8815         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8816         ld_shlibs=no
8817         cat <<_LT_EOF 1>&2
8818
8819 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8820 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8821 *** is disabling shared libraries support.  We urge you to upgrade GNU
8822 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8823 *** your PATH or compiler configuration so that the native linker is
8824 *** used, and then restart.
8825
8826 _LT_EOF
8827         ;;
8828         *)
8829           # For security reasons, it is highly recommended that you always
8830           # use absolute paths for naming shared libraries, and exclude the
8831           # DT_RUNPATH tag from executables and libraries.  But doing so
8832           # requires that you compile everything twice, which is a pain.
8833           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8834             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8835             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8836             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8837           else
8838             ld_shlibs=no
8839           fi
8840         ;;
8841       esac
8842       ;;
8843
8844     sunos4*)
8845       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8846       wlarc=
8847       hardcode_direct=yes
8848       hardcode_shlibpath_var=no
8849       ;;
8850
8851     *)
8852       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8853         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8854         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8855       else
8856         ld_shlibs=no
8857       fi
8858       ;;
8859     esac
8860
8861     if test "$ld_shlibs" = no; then
8862       runpath_var=
8863       hardcode_libdir_flag_spec=
8864       export_dynamic_flag_spec=
8865       whole_archive_flag_spec=
8866     fi
8867   else
8868     # PORTME fill in a description of your system's linker (not GNU ld)
8869     case $host_os in
8870     aix3*)
8871       allow_undefined_flag=unsupported
8872       always_export_symbols=yes
8873       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'
8874       # Note: this linker hardcodes the directories in LIBPATH if there
8875       # are no directories specified by -L.
8876       hardcode_minus_L=yes
8877       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8878         # Neither direct hardcoding nor static linking is supported with a
8879         # broken collect2.
8880         hardcode_direct=unsupported
8881       fi
8882       ;;
8883
8884     aix[4-9]*)
8885       if test "$host_cpu" = ia64; then
8886         # On IA64, the linker does run time linking by default, so we don't
8887         # have to do anything special.
8888         aix_use_runtimelinking=no
8889         exp_sym_flag='-Bexport'
8890         no_entry_flag=""
8891       else
8892         # If we're using GNU nm, then we don't want the "-C" option.
8893         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8894         # Also, AIX nm treats weak defined symbols like other global
8895         # defined symbols, whereas GNU nm marks them as "W".
8896         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8897           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'
8898         else
8899           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'
8900         fi
8901         aix_use_runtimelinking=no
8902
8903         # Test if we are trying to use run time linking or normal
8904         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8905         # need to do runtime linking.
8906         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8907           for ld_flag in $LDFLAGS; do
8908           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8909             aix_use_runtimelinking=yes
8910             break
8911           fi
8912           done
8913           ;;
8914         esac
8915
8916         exp_sym_flag='-bexport'
8917         no_entry_flag='-bnoentry'
8918       fi
8919
8920       # When large executables or shared objects are built, AIX ld can
8921       # have problems creating the table of contents.  If linking a library
8922       # or program results in "error TOC overflow" add -mminimal-toc to
8923       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8924       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8925
8926       archive_cmds=''
8927       hardcode_direct=yes
8928       hardcode_direct_absolute=yes
8929       hardcode_libdir_separator=':'
8930       link_all_deplibs=yes
8931       file_list_spec='${wl}-f,'
8932
8933       if test "$GCC" = yes; then
8934         case $host_os in aix4.[012]|aix4.[012].*)
8935         # We only want to do this on AIX 4.2 and lower, the check
8936         # below for broken collect2 doesn't work under 4.3+
8937           collect2name=`${CC} -print-prog-name=collect2`
8938           if test -f "$collect2name" &&
8939            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8940           then
8941           # We have reworked collect2
8942           :
8943           else
8944           # We have old collect2
8945           hardcode_direct=unsupported
8946           # It fails to find uninstalled libraries when the uninstalled
8947           # path is not listed in the libpath.  Setting hardcode_minus_L
8948           # to unsupported forces relinking
8949           hardcode_minus_L=yes
8950           hardcode_libdir_flag_spec='-L$libdir'
8951           hardcode_libdir_separator=
8952           fi
8953           ;;
8954         esac
8955         shared_flag='-shared'
8956         if test "$aix_use_runtimelinking" = yes; then
8957           shared_flag="$shared_flag "'${wl}-G'
8958         fi
8959       else
8960         # not using gcc
8961         if test "$host_cpu" = ia64; then
8962         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8963         # chokes on -Wl,-G. The following line is correct:
8964           shared_flag='-G'
8965         else
8966           if test "$aix_use_runtimelinking" = yes; then
8967             shared_flag='${wl}-G'
8968           else
8969             shared_flag='${wl}-bM:SRE'
8970           fi
8971         fi
8972       fi
8973
8974       export_dynamic_flag_spec='${wl}-bexpall'
8975       # It seems that -bexpall does not export symbols beginning with
8976       # underscore (_), so it is better to generate a list of symbols to export.
8977       always_export_symbols=yes
8978       if test "$aix_use_runtimelinking" = yes; then
8979         # Warning - without using the other runtime loading flags (-brtl),
8980         # -berok will link without error, but may produce a broken library.
8981         allow_undefined_flag='-berok'
8982         # Determine the default libpath from the value encoded in an
8983         # empty executable.
8984         if test "${lt_cv_aix_libpath+set}" = set; then
8985   aix_libpath=$lt_cv_aix_libpath
8986 else
8987   if ${lt_cv_aix_libpath_+:} false; then :
8988   $as_echo_n "(cached) " >&6
8989 else
8990   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8991 /* end confdefs.h.  */
8992
8993 int
8994 main ()
8995 {
8996
8997   ;
8998   return 0;
8999 }
9000 _ACEOF
9001 if ac_fn_c_try_link "$LINENO"; then :
9002
9003   lt_aix_libpath_sed='
9004       /Import File Strings/,/^$/ {
9005           /^0/ {
9006               s/^0  *\([^ ]*\) *$/\1/
9007               p
9008           }
9009       }'
9010   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9011   # Check for a 64-bit object if we didn't find anything.
9012   if test -z "$lt_cv_aix_libpath_"; then
9013     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9014   fi
9015 fi
9016 rm -f core conftest.err conftest.$ac_objext \
9017     conftest$ac_exeext conftest.$ac_ext
9018   if test -z "$lt_cv_aix_libpath_"; then
9019     lt_cv_aix_libpath_="/usr/lib:/lib"
9020   fi
9021
9022 fi
9023
9024   aix_libpath=$lt_cv_aix_libpath_
9025 fi
9026
9027         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9028         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"
9029       else
9030         if test "$host_cpu" = ia64; then
9031           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9032           allow_undefined_flag="-z nodefs"
9033           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"
9034         else
9035          # Determine the default libpath from the value encoded in an
9036          # empty executable.
9037          if test "${lt_cv_aix_libpath+set}" = set; then
9038   aix_libpath=$lt_cv_aix_libpath
9039 else
9040   if ${lt_cv_aix_libpath_+:} false; then :
9041   $as_echo_n "(cached) " >&6
9042 else
9043   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9044 /* end confdefs.h.  */
9045
9046 int
9047 main ()
9048 {
9049
9050   ;
9051   return 0;
9052 }
9053 _ACEOF
9054 if ac_fn_c_try_link "$LINENO"; then :
9055
9056   lt_aix_libpath_sed='
9057       /Import File Strings/,/^$/ {
9058           /^0/ {
9059               s/^0  *\([^ ]*\) *$/\1/
9060               p
9061           }
9062       }'
9063   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9064   # Check for a 64-bit object if we didn't find anything.
9065   if test -z "$lt_cv_aix_libpath_"; then
9066     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9067   fi
9068 fi
9069 rm -f core conftest.err conftest.$ac_objext \
9070     conftest$ac_exeext conftest.$ac_ext
9071   if test -z "$lt_cv_aix_libpath_"; then
9072     lt_cv_aix_libpath_="/usr/lib:/lib"
9073   fi
9074
9075 fi
9076
9077   aix_libpath=$lt_cv_aix_libpath_
9078 fi
9079
9080          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9081           # Warning - without using the other run time loading flags,
9082           # -berok will link without error, but may produce a broken library.
9083           no_undefined_flag=' ${wl}-bernotok'
9084           allow_undefined_flag=' ${wl}-berok'
9085           if test "$with_gnu_ld" = yes; then
9086             # We only use this code for GNU lds that support --whole-archive.
9087             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9088           else
9089             # Exported symbols can be pulled into shared objects from archives
9090             whole_archive_flag_spec='$convenience'
9091           fi
9092           archive_cmds_need_lc=yes
9093           # This is similar to how AIX traditionally builds its shared libraries.
9094           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'
9095         fi
9096       fi
9097       ;;
9098
9099     amigaos*)
9100       case $host_cpu in
9101       powerpc)
9102             # see comment about AmigaOS4 .so support
9103             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9104             archive_expsym_cmds=''
9105         ;;
9106       m68k)
9107             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)'
9108             hardcode_libdir_flag_spec='-L$libdir'
9109             hardcode_minus_L=yes
9110         ;;
9111       esac
9112       ;;
9113
9114     bsdi[45]*)
9115       export_dynamic_flag_spec=-rdynamic
9116       ;;
9117
9118     cygwin* | mingw* | pw32* | cegcc*)
9119       # When not using gcc, we currently assume that we are using
9120       # Microsoft Visual C++.
9121       # hardcode_libdir_flag_spec is actually meaningless, as there is
9122       # no search path for DLLs.
9123       case $cc_basename in
9124       cl*)
9125         # Native MSVC
9126         hardcode_libdir_flag_spec=' '
9127         allow_undefined_flag=unsupported
9128         always_export_symbols=yes
9129         file_list_spec='@'
9130         # Tell ltmain to make .lib files, not .a files.
9131         libext=lib
9132         # Tell ltmain to make .dll files, not .so files.
9133         shrext_cmds=".dll"
9134         # FIXME: Setting linknames here is a bad hack.
9135         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9136         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9137             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9138           else
9139             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9140           fi~
9141           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9142           linknames='
9143         # The linker will not automatically build a static lib if we build a DLL.
9144         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9145         enable_shared_with_static_runtimes=yes
9146         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9147         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9148         # Don't use ranlib
9149         old_postinstall_cmds='chmod 644 $oldlib'
9150         postlink_cmds='lt_outputfile="@OUTPUT@"~
9151           lt_tool_outputfile="@TOOL_OUTPUT@"~
9152           case $lt_outputfile in
9153             *.exe|*.EXE) ;;
9154             *)
9155               lt_outputfile="$lt_outputfile.exe"
9156               lt_tool_outputfile="$lt_tool_outputfile.exe"
9157               ;;
9158           esac~
9159           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9160             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9161             $RM "$lt_outputfile.manifest";
9162           fi'
9163         ;;
9164       *)
9165         # Assume MSVC wrapper
9166         hardcode_libdir_flag_spec=' '
9167         allow_undefined_flag=unsupported
9168         # Tell ltmain to make .lib files, not .a files.
9169         libext=lib
9170         # Tell ltmain to make .dll files, not .so files.
9171         shrext_cmds=".dll"
9172         # FIXME: Setting linknames here is a bad hack.
9173         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9174         # The linker will automatically build a .lib file if we build a DLL.
9175         old_archive_from_new_cmds='true'
9176         # FIXME: Should let the user specify the lib program.
9177         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9178         enable_shared_with_static_runtimes=yes
9179         ;;
9180       esac
9181       ;;
9182
9183     darwin* | rhapsody*)
9184
9185
9186   archive_cmds_need_lc=no
9187   hardcode_direct=no
9188   hardcode_automatic=yes
9189   hardcode_shlibpath_var=unsupported
9190   if test "$lt_cv_ld_force_load" = "yes"; then
9191     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\"`'
9192
9193   else
9194     whole_archive_flag_spec=''
9195   fi
9196   link_all_deplibs=yes
9197   allow_undefined_flag="$_lt_dar_allow_undefined"
9198   case $cc_basename in
9199      ifort*) _lt_dar_can_shared=yes ;;
9200      *) _lt_dar_can_shared=$GCC ;;
9201   esac
9202   if test "$_lt_dar_can_shared" = "yes"; then
9203     output_verbose_link_cmd=func_echo_all
9204     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9205     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9206     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}"
9207     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}"
9208
9209   else
9210   ld_shlibs=no
9211   fi
9212
9213       ;;
9214
9215     dgux*)
9216       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9217       hardcode_libdir_flag_spec='-L$libdir'
9218       hardcode_shlibpath_var=no
9219       ;;
9220
9221     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9222     # support.  Future versions do this automatically, but an explicit c++rt0.o
9223     # does not break anything, and helps significantly (at the cost of a little
9224     # extra space).
9225     freebsd2.2*)
9226       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9227       hardcode_libdir_flag_spec='-R$libdir'
9228       hardcode_direct=yes
9229       hardcode_shlibpath_var=no
9230       ;;
9231
9232     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9233     freebsd2.*)
9234       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9235       hardcode_direct=yes
9236       hardcode_minus_L=yes
9237       hardcode_shlibpath_var=no
9238       ;;
9239
9240     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9241     freebsd* | dragonfly*)
9242       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9243       hardcode_libdir_flag_spec='-R$libdir'
9244       hardcode_direct=yes
9245       hardcode_shlibpath_var=no
9246       ;;
9247
9248     hpux9*)
9249       if test "$GCC" = yes; then
9250         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'
9251       else
9252         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'
9253       fi
9254       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9255       hardcode_libdir_separator=:
9256       hardcode_direct=yes
9257
9258       # hardcode_minus_L: Not really in the search PATH,
9259       # but as the default location of the library.
9260       hardcode_minus_L=yes
9261       export_dynamic_flag_spec='${wl}-E'
9262       ;;
9263
9264     hpux10*)
9265       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9266         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9267       else
9268         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9269       fi
9270       if test "$with_gnu_ld" = no; then
9271         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9272         hardcode_libdir_separator=:
9273         hardcode_direct=yes
9274         hardcode_direct_absolute=yes
9275         export_dynamic_flag_spec='${wl}-E'
9276         # hardcode_minus_L: Not really in the search PATH,
9277         # but as the default location of the library.
9278         hardcode_minus_L=yes
9279       fi
9280       ;;
9281
9282     hpux11*)
9283       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9284         case $host_cpu in
9285         hppa*64*)
9286           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9287           ;;
9288         ia64*)
9289           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9290           ;;
9291         *)
9292           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9293           ;;
9294         esac
9295       else
9296         case $host_cpu in
9297         hppa*64*)
9298           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9299           ;;
9300         ia64*)
9301           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9302           ;;
9303         *)
9304
9305           # Older versions of the 11.00 compiler do not understand -b yet
9306           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9307           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9308 $as_echo_n "checking if $CC understands -b... " >&6; }
9309 if ${lt_cv_prog_compiler__b+:} false; then :
9310   $as_echo_n "(cached) " >&6
9311 else
9312   lt_cv_prog_compiler__b=no
9313    save_LDFLAGS="$LDFLAGS"
9314    LDFLAGS="$LDFLAGS -b"
9315    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9316    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9317      # The linker can only warn and ignore the option if not recognized
9318      # So say no if there are warnings
9319      if test -s conftest.err; then
9320        # Append any errors to the config.log.
9321        cat conftest.err 1>&5
9322        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9323        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9324        if diff conftest.exp conftest.er2 >/dev/null; then
9325          lt_cv_prog_compiler__b=yes
9326        fi
9327      else
9328        lt_cv_prog_compiler__b=yes
9329      fi
9330    fi
9331    $RM -r conftest*
9332    LDFLAGS="$save_LDFLAGS"
9333
9334 fi
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9336 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9337
9338 if test x"$lt_cv_prog_compiler__b" = xyes; then
9339     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9340 else
9341     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9342 fi
9343
9344           ;;
9345         esac
9346       fi
9347       if test "$with_gnu_ld" = no; then
9348         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9349         hardcode_libdir_separator=:
9350
9351         case $host_cpu in
9352         hppa*64*|ia64*)
9353           hardcode_direct=no
9354           hardcode_shlibpath_var=no
9355           ;;
9356         *)
9357           hardcode_direct=yes
9358           hardcode_direct_absolute=yes
9359           export_dynamic_flag_spec='${wl}-E'
9360
9361           # hardcode_minus_L: Not really in the search PATH,
9362           # but as the default location of the library.
9363           hardcode_minus_L=yes
9364           ;;
9365         esac
9366       fi
9367       ;;
9368
9369     irix5* | irix6* | nonstopux*)
9370       if test "$GCC" = yes; then
9371         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'
9372         # Try to use the -exported_symbol ld option, if it does not
9373         # work, assume that -exports_file does not work either and
9374         # implicitly export all symbols.
9375         # This should be the same for all languages, so no per-tag cache variable.
9376         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9377 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9378 if ${lt_cv_irix_exported_symbol+:} false; then :
9379   $as_echo_n "(cached) " >&6
9380 else
9381   save_LDFLAGS="$LDFLAGS"
9382            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9383            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9384 /* end confdefs.h.  */
9385 int foo (void) { return 0; }
9386 _ACEOF
9387 if ac_fn_c_try_link "$LINENO"; then :
9388   lt_cv_irix_exported_symbol=yes
9389 else
9390   lt_cv_irix_exported_symbol=no
9391 fi
9392 rm -f core conftest.err conftest.$ac_objext \
9393     conftest$ac_exeext conftest.$ac_ext
9394            LDFLAGS="$save_LDFLAGS"
9395 fi
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9397 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9398         if test "$lt_cv_irix_exported_symbol" = yes; then
9399           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'
9400         fi
9401       else
9402         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'
9403         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'
9404       fi
9405       archive_cmds_need_lc='no'
9406       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9407       hardcode_libdir_separator=:
9408       inherit_rpath=yes
9409       link_all_deplibs=yes
9410       ;;
9411
9412     netbsd*)
9413       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9414         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9415       else
9416         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9417       fi
9418       hardcode_libdir_flag_spec='-R$libdir'
9419       hardcode_direct=yes
9420       hardcode_shlibpath_var=no
9421       ;;
9422
9423     newsos6)
9424       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9425       hardcode_direct=yes
9426       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9427       hardcode_libdir_separator=:
9428       hardcode_shlibpath_var=no
9429       ;;
9430
9431     *nto* | *qnx*)
9432       ;;
9433
9434     openbsd*)
9435       if test -f /usr/libexec/ld.so; then
9436         hardcode_direct=yes
9437         hardcode_shlibpath_var=no
9438         hardcode_direct_absolute=yes
9439         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9440           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9441           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9442           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9443           export_dynamic_flag_spec='${wl}-E'
9444         else
9445           case $host_os in
9446            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9447              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9448              hardcode_libdir_flag_spec='-R$libdir'
9449              ;;
9450            *)
9451              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9452              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9453              ;;
9454           esac
9455         fi
9456       else
9457         ld_shlibs=no
9458       fi
9459       ;;
9460
9461     os2*)
9462       hardcode_libdir_flag_spec='-L$libdir'
9463       hardcode_minus_L=yes
9464       allow_undefined_flag=unsupported
9465       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'
9466       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9467       ;;
9468
9469     osf3*)
9470       if test "$GCC" = yes; then
9471         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9472         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'
9473       else
9474         allow_undefined_flag=' -expect_unresolved \*'
9475         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'
9476       fi
9477       archive_cmds_need_lc='no'
9478       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9479       hardcode_libdir_separator=:
9480       ;;
9481
9482     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9483       if test "$GCC" = yes; then
9484         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9485         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'
9486         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9487       else
9488         allow_undefined_flag=' -expect_unresolved \*'
9489         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'
9490         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~
9491         $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'
9492
9493         # Both c and cxx compiler support -rpath directly
9494         hardcode_libdir_flag_spec='-rpath $libdir'
9495       fi
9496       archive_cmds_need_lc='no'
9497       hardcode_libdir_separator=:
9498       ;;
9499
9500     solaris*)
9501       no_undefined_flag=' -z defs'
9502       if test "$GCC" = yes; then
9503         wlarc='${wl}'
9504         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9505         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9506           $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'
9507       else
9508         case `$CC -V 2>&1` in
9509         *"Compilers 5.0"*)
9510           wlarc=''
9511           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9512           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9513           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9514           ;;
9515         *)
9516           wlarc='${wl}'
9517           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9518           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9519           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9520           ;;
9521         esac
9522       fi
9523       hardcode_libdir_flag_spec='-R$libdir'
9524       hardcode_shlibpath_var=no
9525       case $host_os in
9526       solaris2.[0-5] | solaris2.[0-5].*) ;;
9527       *)
9528         # The compiler driver will combine and reorder linker options,
9529         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9530         # but is careful enough not to reorder.
9531         # Supported since Solaris 2.6 (maybe 2.5.1?)
9532         if test "$GCC" = yes; then
9533           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9534         else
9535           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9536         fi
9537         ;;
9538       esac
9539       link_all_deplibs=yes
9540       ;;
9541
9542     sunos4*)
9543       if test "x$host_vendor" = xsequent; then
9544         # Use $CC to link under sequent, because it throws in some extra .o
9545         # files that make .init and .fini sections work.
9546         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9547       else
9548         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9549       fi
9550       hardcode_libdir_flag_spec='-L$libdir'
9551       hardcode_direct=yes
9552       hardcode_minus_L=yes
9553       hardcode_shlibpath_var=no
9554       ;;
9555
9556     sysv4)
9557       case $host_vendor in
9558         sni)
9559           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9560           hardcode_direct=yes # is this really true???
9561         ;;
9562         siemens)
9563           ## LD is ld it makes a PLAMLIB
9564           ## CC just makes a GrossModule.
9565           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9566           reload_cmds='$CC -r -o $output$reload_objs'
9567           hardcode_direct=no
9568         ;;
9569         motorola)
9570           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9571           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9572         ;;
9573       esac
9574       runpath_var='LD_RUN_PATH'
9575       hardcode_shlibpath_var=no
9576       ;;
9577
9578     sysv4.3*)
9579       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9580       hardcode_shlibpath_var=no
9581       export_dynamic_flag_spec='-Bexport'
9582       ;;
9583
9584     sysv4*MP*)
9585       if test -d /usr/nec; then
9586         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9587         hardcode_shlibpath_var=no
9588         runpath_var=LD_RUN_PATH
9589         hardcode_runpath_var=yes
9590         ld_shlibs=yes
9591       fi
9592       ;;
9593
9594     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9595       no_undefined_flag='${wl}-z,text'
9596       archive_cmds_need_lc=no
9597       hardcode_shlibpath_var=no
9598       runpath_var='LD_RUN_PATH'
9599
9600       if test "$GCC" = yes; then
9601         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9602         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9603       else
9604         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9605         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9606       fi
9607       ;;
9608
9609     sysv5* | sco3.2v5* | sco5v6*)
9610       # Note: We can NOT use -z defs as we might desire, because we do not
9611       # link with -lc, and that would cause any symbols used from libc to
9612       # always be unresolved, which means just about no library would
9613       # ever link correctly.  If we're not using GNU ld we use -z text
9614       # though, which does catch some bad symbols but isn't as heavy-handed
9615       # as -z defs.
9616       no_undefined_flag='${wl}-z,text'
9617       allow_undefined_flag='${wl}-z,nodefs'
9618       archive_cmds_need_lc=no
9619       hardcode_shlibpath_var=no
9620       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9621       hardcode_libdir_separator=':'
9622       link_all_deplibs=yes
9623       export_dynamic_flag_spec='${wl}-Bexport'
9624       runpath_var='LD_RUN_PATH'
9625
9626       if test "$GCC" = yes; then
9627         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9628         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9629       else
9630         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9631         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9632       fi
9633       ;;
9634
9635     uts4*)
9636       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9637       hardcode_libdir_flag_spec='-L$libdir'
9638       hardcode_shlibpath_var=no
9639       ;;
9640
9641     *)
9642       ld_shlibs=no
9643       ;;
9644     esac
9645
9646     if test x$host_vendor = xsni; then
9647       case $host in
9648       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9649         export_dynamic_flag_spec='${wl}-Blargedynsym'
9650         ;;
9651       esac
9652     fi
9653   fi
9654
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9656 $as_echo "$ld_shlibs" >&6; }
9657 test "$ld_shlibs" = no && can_build_shared=no
9658
9659 with_gnu_ld=$with_gnu_ld
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675 #
9676 # Do we need to explicitly link libc?
9677 #
9678 case "x$archive_cmds_need_lc" in
9679 x|xyes)
9680   # Assume -lc should be added
9681   archive_cmds_need_lc=yes
9682
9683   if test "$enable_shared" = yes && test "$GCC" = yes; then
9684     case $archive_cmds in
9685     *'~'*)
9686       # FIXME: we may have to deal with multi-command sequences.
9687       ;;
9688     '$CC '*)
9689       # Test whether the compiler implicitly links with -lc since on some
9690       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9691       # to ld, don't add -lc before -lgcc.
9692       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9693 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9694 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9695   $as_echo_n "(cached) " >&6
9696 else
9697   $RM conftest*
9698         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9699
9700         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9701   (eval $ac_compile) 2>&5
9702   ac_status=$?
9703   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9704   test $ac_status = 0; } 2>conftest.err; then
9705           soname=conftest
9706           lib=conftest
9707           libobjs=conftest.$ac_objext
9708           deplibs=
9709           wl=$lt_prog_compiler_wl
9710           pic_flag=$lt_prog_compiler_pic
9711           compiler_flags=-v
9712           linker_flags=-v
9713           verstring=
9714           output_objdir=.
9715           libname=conftest
9716           lt_save_allow_undefined_flag=$allow_undefined_flag
9717           allow_undefined_flag=
9718           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9719   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9720   ac_status=$?
9721   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9722   test $ac_status = 0; }
9723           then
9724             lt_cv_archive_cmds_need_lc=no
9725           else
9726             lt_cv_archive_cmds_need_lc=yes
9727           fi
9728           allow_undefined_flag=$lt_save_allow_undefined_flag
9729         else
9730           cat conftest.err 1>&5
9731         fi
9732         $RM conftest*
9733
9734 fi
9735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9736 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9737       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9738       ;;
9739     esac
9740   fi
9741   ;;
9742 esac
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9896 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9897
9898 if test "$GCC" = yes; then
9899   case $host_os in
9900     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9901     *) lt_awk_arg="/^libraries:/" ;;
9902   esac
9903   case $host_os in
9904     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9905     *) lt_sed_strip_eq="s,=/,/,g" ;;
9906   esac
9907   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9908   case $lt_search_path_spec in
9909   *\;*)
9910     # if the path contains ";" then we assume it to be the separator
9911     # otherwise default to the standard path separator (i.e. ":") - it is
9912     # assumed that no part of a normal pathname contains ";" but that should
9913     # okay in the real world where ";" in dirpaths is itself problematic.
9914     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9915     ;;
9916   *)
9917     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9918     ;;
9919   esac
9920   # Ok, now we have the path, separated by spaces, we can step through it
9921   # and add multilib dir if necessary...
9922   lt_tmp_lt_search_path_spec=
9923   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9924   # ...but if some path already ends with the multilib dir we assume
9925   # that all is fine and trust -print-search-dirs as is (GCC 4.2 or newer).
9926   case "$lt_multi_os_dir; $lt_search_path_spec " in
9927   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
9928     lt_multi_os_dir=
9929     ;;
9930   esac
9931   for lt_sys_path in $lt_search_path_spec; do
9932     if test -d "$lt_sys_path$lt_multi_os_dir"; then
9933       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
9934     elif test -n "$lt_multi_os_dir"; then
9935       test -d "$lt_sys_path" && \
9936         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9937     fi
9938   done
9939   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9940 BEGIN {RS=" "; FS="/|\n";} {
9941   lt_foo="";
9942   lt_count=0;
9943   for (lt_i = NF; lt_i > 0; lt_i--) {
9944     if ($lt_i != "" && $lt_i != ".") {
9945       if ($lt_i == "..") {
9946         lt_count++;
9947       } else {
9948         if (lt_count == 0) {
9949           lt_foo="/" $lt_i lt_foo;
9950         } else {
9951           lt_count--;
9952         }
9953       }
9954     }
9955   }
9956   if (lt_foo != "") { lt_freq[lt_foo]++; }
9957   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9958 }'`
9959   # AWK program above erroneously prepends '/' to C:/dos/paths
9960   # for these hosts.
9961   case $host_os in
9962     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9963       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9964   esac
9965   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9966 else
9967   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9968 fi
9969 library_names_spec=
9970 libname_spec='lib$name'
9971 soname_spec=
9972 shrext_cmds=".so"
9973 postinstall_cmds=
9974 postuninstall_cmds=
9975 finish_cmds=
9976 finish_eval=
9977 shlibpath_var=
9978 shlibpath_overrides_runpath=unknown
9979 version_type=none
9980 dynamic_linker="$host_os ld.so"
9981 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9982 need_lib_prefix=unknown
9983 hardcode_into_libs=no
9984
9985 # when you set need_version to no, make sure it does not cause -set_version
9986 # flags to be left without arguments
9987 need_version=unknown
9988
9989 case $host_os in
9990 aix3*)
9991   version_type=linux # correct to gnu/linux during the next big refactor
9992   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9993   shlibpath_var=LIBPATH
9994
9995   # AIX 3 has no versioning support, so we append a major version to the name.
9996   soname_spec='${libname}${release}${shared_ext}$major'
9997   ;;
9998
9999 aix[4-9]*)
10000   version_type=linux # correct to gnu/linux during the next big refactor
10001   need_lib_prefix=no
10002   need_version=no
10003   hardcode_into_libs=yes
10004   if test "$host_cpu" = ia64; then
10005     # AIX 5 supports IA64
10006     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10007     shlibpath_var=LD_LIBRARY_PATH
10008   else
10009     # With GCC up to 2.95.x, collect2 would create an import file
10010     # for dependence libraries.  The import file would start with
10011     # the line `#! .'.  This would cause the generated library to
10012     # depend on `.', always an invalid library.  This was fixed in
10013     # development snapshots of GCC prior to 3.0.
10014     case $host_os in
10015       aix4 | aix4.[01] | aix4.[01].*)
10016       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10017            echo ' yes '
10018            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10019         :
10020       else
10021         can_build_shared=no
10022       fi
10023       ;;
10024     esac
10025     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10026     # soname into executable. Probably we can add versioning support to
10027     # collect2, so additional links can be useful in future.
10028     if test "$aix_use_runtimelinking" = yes; then
10029       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10030       # instead of lib<name>.a to let people know that these are not
10031       # typical AIX shared libraries.
10032       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10033     else
10034       # We preserve .a as extension for shared libraries through AIX4.2
10035       # and later when we are not doing run time linking.
10036       library_names_spec='${libname}${release}.a $libname.a'
10037       soname_spec='${libname}${release}${shared_ext}$major'
10038     fi
10039     shlibpath_var=LIBPATH
10040   fi
10041   ;;
10042
10043 amigaos*)
10044   case $host_cpu in
10045   powerpc)
10046     # Since July 2007 AmigaOS4 officially supports .so libraries.
10047     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10048     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10049     ;;
10050   m68k)
10051     library_names_spec='$libname.ixlibrary $libname.a'
10052     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10053     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'
10054     ;;
10055   esac
10056   ;;
10057
10058 beos*)
10059   library_names_spec='${libname}${shared_ext}'
10060   dynamic_linker="$host_os ld.so"
10061   shlibpath_var=LIBRARY_PATH
10062   ;;
10063
10064 bsdi[45]*)
10065   version_type=linux # correct to gnu/linux during the next big refactor
10066   need_version=no
10067   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10068   soname_spec='${libname}${release}${shared_ext}$major'
10069   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10070   shlibpath_var=LD_LIBRARY_PATH
10071   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10072   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10073   # the default ld.so.conf also contains /usr/contrib/lib and
10074   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10075   # libtool to hard-code these into programs
10076   ;;
10077
10078 cygwin* | mingw* | pw32* | cegcc*)
10079   version_type=windows
10080   shrext_cmds=".dll"
10081   need_version=no
10082   need_lib_prefix=no
10083
10084   case $GCC,$cc_basename in
10085   yes,*)
10086     # gcc
10087     library_names_spec='$libname.dll.a'
10088     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10089     postinstall_cmds='base_file=`basename \${file}`~
10090       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10091       dldir=$destdir/`dirname \$dlpath`~
10092       test -d \$dldir || mkdir -p \$dldir~
10093       $install_prog $dir/$dlname \$dldir/$dlname~
10094       chmod a+x \$dldir/$dlname~
10095       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10096         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10097       fi'
10098     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10099       dlpath=$dir/\$dldll~
10100        $RM \$dlpath'
10101     shlibpath_overrides_runpath=yes
10102
10103     case $host_os in
10104     cygwin*)
10105       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10106       #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
10107       soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
10108
10109       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10110       ;;
10111     mingw* | cegcc*)
10112       # MinGW DLLs use traditional 'lib' prefix
10113       #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
10114       soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
10115       ;;
10116     pw32*)
10117       # pw32 DLLs use 'pw' prefix rather than 'lib'
10118       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10119       ;;
10120     esac
10121     dynamic_linker='Win32 ld.exe'
10122     ;;
10123
10124   *,cl*)
10125     # Native MSVC
10126     libname_spec='$name'
10127     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10128     library_names_spec='${libname}.dll.lib'
10129
10130     case $build_os in
10131     mingw*)
10132       sys_lib_search_path_spec=
10133       lt_save_ifs=$IFS
10134       IFS=';'
10135       for lt_path in $LIB
10136       do
10137         IFS=$lt_save_ifs
10138         # Let DOS variable expansion print the short 8.3 style file name.
10139         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10140         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10141       done
10142       IFS=$lt_save_ifs
10143       # Convert to MSYS style.
10144       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10145       ;;
10146     cygwin*)
10147       # Convert to unix form, then to dos form, then back to unix form
10148       # but this time dos style (no spaces!) so that the unix form looks
10149       # like /cygdrive/c/PROGRA~1:/cygdr...
10150       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10151       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10152       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10153       ;;
10154     *)
10155       sys_lib_search_path_spec="$LIB"
10156       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10157         # It is most probably a Windows format PATH.
10158         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10159       else
10160         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10161       fi
10162       # FIXME: find the short name or the path components, as spaces are
10163       # common. (e.g. "Program Files" -> "PROGRA~1")
10164       ;;
10165     esac
10166
10167     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10168     postinstall_cmds='base_file=`basename \${file}`~
10169       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10170       dldir=$destdir/`dirname \$dlpath`~
10171       test -d \$dldir || mkdir -p \$dldir~
10172       $install_prog $dir/$dlname \$dldir/$dlname'
10173     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10174       dlpath=$dir/\$dldll~
10175        $RM \$dlpath'
10176     shlibpath_overrides_runpath=yes
10177     dynamic_linker='Win32 link.exe'
10178     ;;
10179
10180   *)
10181     # Assume MSVC wrapper
10182     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10183     dynamic_linker='Win32 ld.exe'
10184     ;;
10185   esac
10186   # FIXME: first we should search . and the directory the executable is in
10187   shlibpath_var=PATH
10188   ;;
10189
10190 darwin* | rhapsody*)
10191   dynamic_linker="$host_os dyld"
10192   version_type=darwin
10193   need_lib_prefix=no
10194   need_version=no
10195   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10196   soname_spec='${libname}${release}${major}$shared_ext'
10197   shlibpath_overrides_runpath=yes
10198   shlibpath_var=DYLD_LIBRARY_PATH
10199   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10200
10201   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10202   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10203   ;;
10204
10205 dgux*)
10206   version_type=linux # correct to gnu/linux during the next big refactor
10207   need_lib_prefix=no
10208   need_version=no
10209   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10210   soname_spec='${libname}${release}${shared_ext}$major'
10211   shlibpath_var=LD_LIBRARY_PATH
10212   ;;
10213
10214 freebsd* | dragonfly*)
10215   # DragonFly does not have aout.  When/if they implement a new
10216   # versioning mechanism, adjust this.
10217   if test -x /usr/bin/objformat; then
10218     objformat=`/usr/bin/objformat`
10219   else
10220     case $host_os in
10221     freebsd[23].*) objformat=aout ;;
10222     *) objformat=elf ;;
10223     esac
10224   fi
10225   version_type=freebsd-$objformat
10226   case $version_type in
10227     freebsd-elf*)
10228       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10229       need_version=no
10230       need_lib_prefix=no
10231       ;;
10232     freebsd-*)
10233       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10234       need_version=yes
10235       ;;
10236   esac
10237   shlibpath_var=LD_LIBRARY_PATH
10238   case $host_os in
10239   freebsd2.*)
10240     shlibpath_overrides_runpath=yes
10241     ;;
10242   freebsd3.[01]* | freebsdelf3.[01]*)
10243     shlibpath_overrides_runpath=yes
10244     hardcode_into_libs=yes
10245     ;;
10246   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10247   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10248     shlibpath_overrides_runpath=no
10249     hardcode_into_libs=yes
10250     ;;
10251   *) # from 4.6 on, and DragonFly
10252     shlibpath_overrides_runpath=yes
10253     hardcode_into_libs=yes
10254     ;;
10255   esac
10256   ;;
10257
10258 gnu*)
10259   version_type=linux # correct to gnu/linux during the next big refactor
10260   need_lib_prefix=no
10261   need_version=no
10262   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10263   soname_spec='${libname}${release}${shared_ext}$major'
10264   shlibpath_var=LD_LIBRARY_PATH
10265   shlibpath_overrides_runpath=no
10266   hardcode_into_libs=yes
10267   ;;
10268
10269 haiku*)
10270   version_type=linux # correct to gnu/linux during the next big refactor
10271   need_lib_prefix=no
10272   need_version=no
10273   dynamic_linker="$host_os runtime_loader"
10274   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10275   soname_spec='${libname}${release}${shared_ext}$major'
10276   shlibpath_var=LIBRARY_PATH
10277   shlibpath_overrides_runpath=yes
10278   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10279   hardcode_into_libs=yes
10280   ;;
10281
10282 hpux9* | hpux10* | hpux11*)
10283   # Give a soname corresponding to the major version so that dld.sl refuses to
10284   # link against other versions.
10285   version_type=sunos
10286   need_lib_prefix=no
10287   need_version=no
10288   case $host_cpu in
10289   ia64*)
10290     shrext_cmds='.so'
10291     hardcode_into_libs=yes
10292     dynamic_linker="$host_os dld.so"
10293     shlibpath_var=LD_LIBRARY_PATH
10294     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10295     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10296     soname_spec='${libname}${release}${shared_ext}$major'
10297     if test "X$HPUX_IA64_MODE" = X32; then
10298       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10299     else
10300       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10301     fi
10302     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10303     ;;
10304   hppa*64*)
10305     shrext_cmds='.sl'
10306     hardcode_into_libs=yes
10307     dynamic_linker="$host_os dld.sl"
10308     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10309     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10310     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10311     soname_spec='${libname}${release}${shared_ext}$major'
10312     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10313     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10314     ;;
10315   *)
10316     shrext_cmds='.sl'
10317     dynamic_linker="$host_os dld.sl"
10318     shlibpath_var=SHLIB_PATH
10319     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10320     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10321     soname_spec='${libname}${release}${shared_ext}$major'
10322     ;;
10323   esac
10324   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10325   postinstall_cmds='chmod 555 $lib'
10326   # or fails outright, so override atomically:
10327   install_override_mode=555
10328   ;;
10329
10330 interix[3-9]*)
10331   version_type=linux # correct to gnu/linux during the next big refactor
10332   need_lib_prefix=no
10333   need_version=no
10334   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10335   soname_spec='${libname}${release}${shared_ext}$major'
10336   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10337   shlibpath_var=LD_LIBRARY_PATH
10338   shlibpath_overrides_runpath=no
10339   hardcode_into_libs=yes
10340   ;;
10341
10342 irix5* | irix6* | nonstopux*)
10343   case $host_os in
10344     nonstopux*) version_type=nonstopux ;;
10345     *)
10346         if test "$lt_cv_prog_gnu_ld" = yes; then
10347                 version_type=linux # correct to gnu/linux during the next big refactor
10348         else
10349                 version_type=irix
10350         fi ;;
10351   esac
10352   need_lib_prefix=no
10353   need_version=no
10354   soname_spec='${libname}${release}${shared_ext}$major'
10355   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10356   case $host_os in
10357   irix5* | nonstopux*)
10358     libsuff= shlibsuff=
10359     ;;
10360   *)
10361     case $LD in # libtool.m4 will add one of these switches to LD
10362     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10363       libsuff= shlibsuff= libmagic=32-bit;;
10364     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10365       libsuff=32 shlibsuff=N32 libmagic=N32;;
10366     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10367       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10368     *) libsuff= shlibsuff= libmagic=never-match;;
10369     esac
10370     ;;
10371   esac
10372   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10373   shlibpath_overrides_runpath=no
10374   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10375   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10376   hardcode_into_libs=yes
10377   ;;
10378
10379 # No shared lib support for Linux oldld, aout, or coff.
10380 linux*oldld* | linux*aout* | linux*coff*)
10381   dynamic_linker=no
10382   ;;
10383
10384 # This must be glibc/ELF.
10385 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10386   version_type=linux # correct to gnu/linux during the next big refactor
10387   need_lib_prefix=no
10388   need_version=no
10389   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10390   soname_spec='${libname}${release}${shared_ext}$major'
10391   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10392   shlibpath_var=LD_LIBRARY_PATH
10393   shlibpath_overrides_runpath=no
10394
10395   # Some binutils ld are patched to set DT_RUNPATH
10396   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10397   $as_echo_n "(cached) " >&6
10398 else
10399   lt_cv_shlibpath_overrides_runpath=no
10400     save_LDFLAGS=$LDFLAGS
10401     save_libdir=$libdir
10402     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10403          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10404     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10405 /* end confdefs.h.  */
10406
10407 int
10408 main ()
10409 {
10410
10411   ;
10412   return 0;
10413 }
10414 _ACEOF
10415 if ac_fn_c_try_link "$LINENO"; then :
10416   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10417   lt_cv_shlibpath_overrides_runpath=yes
10418 fi
10419 fi
10420 rm -f core conftest.err conftest.$ac_objext \
10421     conftest$ac_exeext conftest.$ac_ext
10422     LDFLAGS=$save_LDFLAGS
10423     libdir=$save_libdir
10424
10425 fi
10426
10427   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10428
10429   # This implies no fast_install, which is unacceptable.
10430   # Some rework will be needed to allow for fast_install
10431   # before this can be enabled.
10432   hardcode_into_libs=yes
10433
10434   # Append ld.so.conf contents to the search path
10435   if test -f /etc/ld.so.conf; then
10436     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' ' '`
10437     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10438   fi
10439
10440   # We used to test for /lib/ld.so.1 and disable shared libraries on
10441   # powerpc, because MkLinux only supported shared libraries with the
10442   # GNU dynamic linker.  Since this was broken with cross compilers,
10443   # most powerpc-linux boxes support dynamic linking these days and
10444   # people can always --disable-shared, the test was removed, and we
10445   # assume the GNU/Linux dynamic linker is in use.
10446   dynamic_linker='GNU/Linux ld.so'
10447   ;;
10448
10449 netbsd*)
10450   version_type=sunos
10451   need_lib_prefix=no
10452   need_version=no
10453   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10454     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10455     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10456     dynamic_linker='NetBSD (a.out) ld.so'
10457   else
10458     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10459     soname_spec='${libname}${release}${shared_ext}$major'
10460     dynamic_linker='NetBSD ld.elf_so'
10461   fi
10462   shlibpath_var=LD_LIBRARY_PATH
10463   shlibpath_overrides_runpath=yes
10464   hardcode_into_libs=yes
10465   ;;
10466
10467 newsos6)
10468   version_type=linux # correct to gnu/linux during the next big refactor
10469   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10470   shlibpath_var=LD_LIBRARY_PATH
10471   shlibpath_overrides_runpath=yes
10472   ;;
10473
10474 *nto* | *qnx*)
10475   version_type=qnx
10476   need_lib_prefix=no
10477   need_version=no
10478   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10479   soname_spec='${libname}${release}${shared_ext}$major'
10480   shlibpath_var=LD_LIBRARY_PATH
10481   shlibpath_overrides_runpath=no
10482   hardcode_into_libs=yes
10483   dynamic_linker='ldqnx.so'
10484   ;;
10485
10486 openbsd*)
10487   version_type=sunos
10488   sys_lib_dlsearch_path_spec="/usr/lib"
10489   need_lib_prefix=no
10490   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10491   case $host_os in
10492     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10493     *)                          need_version=no  ;;
10494   esac
10495   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10496   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10497   shlibpath_var=LD_LIBRARY_PATH
10498   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10499     case $host_os in
10500       openbsd2.[89] | openbsd2.[89].*)
10501         shlibpath_overrides_runpath=no
10502         ;;
10503       *)
10504         shlibpath_overrides_runpath=yes
10505         ;;
10506       esac
10507   else
10508     shlibpath_overrides_runpath=yes
10509   fi
10510   ;;
10511
10512 os2*)
10513   libname_spec='$name'
10514   shrext_cmds=".dll"
10515   need_lib_prefix=no
10516   library_names_spec='$libname${shared_ext} $libname.a'
10517   dynamic_linker='OS/2 ld.exe'
10518   shlibpath_var=LIBPATH
10519   ;;
10520
10521 osf3* | osf4* | osf5*)
10522   version_type=osf
10523   need_lib_prefix=no
10524   need_version=no
10525   soname_spec='${libname}${release}${shared_ext}$major'
10526   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10527   shlibpath_var=LD_LIBRARY_PATH
10528   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10529   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10530   ;;
10531
10532 rdos*)
10533   dynamic_linker=no
10534   ;;
10535
10536 solaris*)
10537   version_type=linux # correct to gnu/linux during the next big refactor
10538   need_lib_prefix=no
10539   need_version=no
10540   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10541   soname_spec='${libname}${release}${shared_ext}$major'
10542   shlibpath_var=LD_LIBRARY_PATH
10543   shlibpath_overrides_runpath=yes
10544   hardcode_into_libs=yes
10545   # ldd complains unless libraries are executable
10546   postinstall_cmds='chmod +x $lib'
10547   ;;
10548
10549 sunos4*)
10550   version_type=sunos
10551   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10552   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10553   shlibpath_var=LD_LIBRARY_PATH
10554   shlibpath_overrides_runpath=yes
10555   if test "$with_gnu_ld" = yes; then
10556     need_lib_prefix=no
10557   fi
10558   need_version=yes
10559   ;;
10560
10561 sysv4 | sysv4.3*)
10562   version_type=linux # correct to gnu/linux during the next big refactor
10563   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10564   soname_spec='${libname}${release}${shared_ext}$major'
10565   shlibpath_var=LD_LIBRARY_PATH
10566   case $host_vendor in
10567     sni)
10568       shlibpath_overrides_runpath=no
10569       need_lib_prefix=no
10570       runpath_var=LD_RUN_PATH
10571       ;;
10572     siemens)
10573       need_lib_prefix=no
10574       ;;
10575     motorola)
10576       need_lib_prefix=no
10577       need_version=no
10578       shlibpath_overrides_runpath=no
10579       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10580       ;;
10581   esac
10582   ;;
10583
10584 sysv4*MP*)
10585   if test -d /usr/nec ;then
10586     version_type=linux # correct to gnu/linux during the next big refactor
10587     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10588     soname_spec='$libname${shared_ext}.$major'
10589     shlibpath_var=LD_LIBRARY_PATH
10590   fi
10591   ;;
10592
10593 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10594   version_type=freebsd-elf
10595   need_lib_prefix=no
10596   need_version=no
10597   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10598   soname_spec='${libname}${release}${shared_ext}$major'
10599   shlibpath_var=LD_LIBRARY_PATH
10600   shlibpath_overrides_runpath=yes
10601   hardcode_into_libs=yes
10602   if test "$with_gnu_ld" = yes; then
10603     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10604   else
10605     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10606     case $host_os in
10607       sco3.2v5*)
10608         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10609         ;;
10610     esac
10611   fi
10612   sys_lib_dlsearch_path_spec='/usr/lib'
10613   ;;
10614
10615 tpf*)
10616   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10617   version_type=linux # correct to gnu/linux during the next big refactor
10618   need_lib_prefix=no
10619   need_version=no
10620   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10621   shlibpath_var=LD_LIBRARY_PATH
10622   shlibpath_overrides_runpath=no
10623   hardcode_into_libs=yes
10624   ;;
10625
10626 uts4*)
10627   version_type=linux # correct to gnu/linux during the next big refactor
10628   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10629   soname_spec='${libname}${release}${shared_ext}$major'
10630   shlibpath_var=LD_LIBRARY_PATH
10631   ;;
10632
10633 *)
10634   dynamic_linker=no
10635   ;;
10636 esac
10637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10638 $as_echo "$dynamic_linker" >&6; }
10639 test "$dynamic_linker" = no && can_build_shared=no
10640
10641 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10642 if test "$GCC" = yes; then
10643   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10644 fi
10645
10646 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10647   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10648 fi
10649 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10650   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10651 fi
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10745 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10746 hardcode_action=
10747 if test -n "$hardcode_libdir_flag_spec" ||
10748    test -n "$runpath_var" ||
10749    test "X$hardcode_automatic" = "Xyes" ; then
10750
10751   # We can hardcode non-existent directories.
10752   if test "$hardcode_direct" != no &&
10753      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10754      # have to relink, otherwise we might link with an installed library
10755      # when we should be linking with a yet-to-be-installed one
10756      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10757      test "$hardcode_minus_L" != no; then
10758     # Linking always hardcodes the temporary library directory.
10759     hardcode_action=relink
10760   else
10761     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10762     hardcode_action=immediate
10763   fi
10764 else
10765   # We cannot hardcode anything, or else we can only hardcode existing
10766   # directories.
10767   hardcode_action=unsupported
10768 fi
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10770 $as_echo "$hardcode_action" >&6; }
10771
10772 if test "$hardcode_action" = relink ||
10773    test "$inherit_rpath" = yes; then
10774   # Fast installation is not supported
10775   enable_fast_install=no
10776 elif test "$shlibpath_overrides_runpath" = yes ||
10777      test "$enable_shared" = no; then
10778   # Fast installation is not necessary
10779   enable_fast_install=needless
10780 fi
10781
10782
10783
10784
10785
10786
10787   if test "x$enable_dlopen" != xyes; then
10788   enable_dlopen=unknown
10789   enable_dlopen_self=unknown
10790   enable_dlopen_self_static=unknown
10791 else
10792   lt_cv_dlopen=no
10793   lt_cv_dlopen_libs=
10794
10795   case $host_os in
10796   beos*)
10797     lt_cv_dlopen="load_add_on"
10798     lt_cv_dlopen_libs=
10799     lt_cv_dlopen_self=yes
10800     ;;
10801
10802   mingw* | pw32* | cegcc*)
10803     lt_cv_dlopen="LoadLibrary"
10804     lt_cv_dlopen_libs=
10805     ;;
10806
10807   cygwin*)
10808     lt_cv_dlopen="dlopen"
10809     lt_cv_dlopen_libs=
10810     ;;
10811
10812   darwin*)
10813   # if libdl is installed we need to link against it
10814     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10815 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10816 if ${ac_cv_lib_dl_dlopen+:} false; then :
10817   $as_echo_n "(cached) " >&6
10818 else
10819   ac_check_lib_save_LIBS=$LIBS
10820 LIBS="-ldl  $LIBS"
10821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10822 /* end confdefs.h.  */
10823
10824 /* Override any GCC internal prototype to avoid an error.
10825    Use char because int might match the return type of a GCC
10826    builtin and then its argument prototype would still apply.  */
10827 #ifdef __cplusplus
10828 extern "C"
10829 #endif
10830 char dlopen ();
10831 int
10832 main ()
10833 {
10834 return dlopen ();
10835   ;
10836   return 0;
10837 }
10838 _ACEOF
10839 if ac_fn_c_try_link "$LINENO"; then :
10840   ac_cv_lib_dl_dlopen=yes
10841 else
10842   ac_cv_lib_dl_dlopen=no
10843 fi
10844 rm -f core conftest.err conftest.$ac_objext \
10845     conftest$ac_exeext conftest.$ac_ext
10846 LIBS=$ac_check_lib_save_LIBS
10847 fi
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10849 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10850 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10851   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10852 else
10853
10854     lt_cv_dlopen="dyld"
10855     lt_cv_dlopen_libs=
10856     lt_cv_dlopen_self=yes
10857
10858 fi
10859
10860     ;;
10861
10862   *)
10863     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10864 if test "x$ac_cv_func_shl_load" = xyes; then :
10865   lt_cv_dlopen="shl_load"
10866 else
10867   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10868 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10869 if ${ac_cv_lib_dld_shl_load+:} false; then :
10870   $as_echo_n "(cached) " >&6
10871 else
10872   ac_check_lib_save_LIBS=$LIBS
10873 LIBS="-ldld  $LIBS"
10874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10875 /* end confdefs.h.  */
10876
10877 /* Override any GCC internal prototype to avoid an error.
10878    Use char because int might match the return type of a GCC
10879    builtin and then its argument prototype would still apply.  */
10880 #ifdef __cplusplus
10881 extern "C"
10882 #endif
10883 char shl_load ();
10884 int
10885 main ()
10886 {
10887 return shl_load ();
10888   ;
10889   return 0;
10890 }
10891 _ACEOF
10892 if ac_fn_c_try_link "$LINENO"; then :
10893   ac_cv_lib_dld_shl_load=yes
10894 else
10895   ac_cv_lib_dld_shl_load=no
10896 fi
10897 rm -f core conftest.err conftest.$ac_objext \
10898     conftest$ac_exeext conftest.$ac_ext
10899 LIBS=$ac_check_lib_save_LIBS
10900 fi
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10902 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10903 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10904   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10905 else
10906   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10907 if test "x$ac_cv_func_dlopen" = xyes; then :
10908   lt_cv_dlopen="dlopen"
10909 else
10910   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10911 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10912 if ${ac_cv_lib_dl_dlopen+:} false; then :
10913   $as_echo_n "(cached) " >&6
10914 else
10915   ac_check_lib_save_LIBS=$LIBS
10916 LIBS="-ldl  $LIBS"
10917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10918 /* end confdefs.h.  */
10919
10920 /* Override any GCC internal prototype to avoid an error.
10921    Use char because int might match the return type of a GCC
10922    builtin and then its argument prototype would still apply.  */
10923 #ifdef __cplusplus
10924 extern "C"
10925 #endif
10926 char dlopen ();
10927 int
10928 main ()
10929 {
10930 return dlopen ();
10931   ;
10932   return 0;
10933 }
10934 _ACEOF
10935 if ac_fn_c_try_link "$LINENO"; then :
10936   ac_cv_lib_dl_dlopen=yes
10937 else
10938   ac_cv_lib_dl_dlopen=no
10939 fi
10940 rm -f core conftest.err conftest.$ac_objext \
10941     conftest$ac_exeext conftest.$ac_ext
10942 LIBS=$ac_check_lib_save_LIBS
10943 fi
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10945 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10946 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10947   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10948 else
10949   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10950 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10951 if ${ac_cv_lib_svld_dlopen+:} false; then :
10952   $as_echo_n "(cached) " >&6
10953 else
10954   ac_check_lib_save_LIBS=$LIBS
10955 LIBS="-lsvld  $LIBS"
10956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10957 /* end confdefs.h.  */
10958
10959 /* Override any GCC internal prototype to avoid an error.
10960    Use char because int might match the return type of a GCC
10961    builtin and then its argument prototype would still apply.  */
10962 #ifdef __cplusplus
10963 extern "C"
10964 #endif
10965 char dlopen ();
10966 int
10967 main ()
10968 {
10969 return dlopen ();
10970   ;
10971   return 0;
10972 }
10973 _ACEOF
10974 if ac_fn_c_try_link "$LINENO"; then :
10975   ac_cv_lib_svld_dlopen=yes
10976 else
10977   ac_cv_lib_svld_dlopen=no
10978 fi
10979 rm -f core conftest.err conftest.$ac_objext \
10980     conftest$ac_exeext conftest.$ac_ext
10981 LIBS=$ac_check_lib_save_LIBS
10982 fi
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10984 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10985 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10986   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10987 else
10988   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10989 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10990 if ${ac_cv_lib_dld_dld_link+:} false; then :
10991   $as_echo_n "(cached) " >&6
10992 else
10993   ac_check_lib_save_LIBS=$LIBS
10994 LIBS="-ldld  $LIBS"
10995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10996 /* end confdefs.h.  */
10997
10998 /* Override any GCC internal prototype to avoid an error.
10999    Use char because int might match the return type of a GCC
11000    builtin and then its argument prototype would still apply.  */
11001 #ifdef __cplusplus
11002 extern "C"
11003 #endif
11004 char dld_link ();
11005 int
11006 main ()
11007 {
11008 return dld_link ();
11009   ;
11010   return 0;
11011 }
11012 _ACEOF
11013 if ac_fn_c_try_link "$LINENO"; then :
11014   ac_cv_lib_dld_dld_link=yes
11015 else
11016   ac_cv_lib_dld_dld_link=no
11017 fi
11018 rm -f core conftest.err conftest.$ac_objext \
11019     conftest$ac_exeext conftest.$ac_ext
11020 LIBS=$ac_check_lib_save_LIBS
11021 fi
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11023 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11024 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11025   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11026 fi
11027
11028
11029 fi
11030
11031
11032 fi
11033
11034
11035 fi
11036
11037
11038 fi
11039
11040
11041 fi
11042
11043     ;;
11044   esac
11045
11046   if test "x$lt_cv_dlopen" != xno; then
11047     enable_dlopen=yes
11048   else
11049     enable_dlopen=no
11050   fi
11051
11052   case $lt_cv_dlopen in
11053   dlopen)
11054     save_CPPFLAGS="$CPPFLAGS"
11055     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11056
11057     save_LDFLAGS="$LDFLAGS"
11058     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11059
11060     save_LIBS="$LIBS"
11061     LIBS="$lt_cv_dlopen_libs $LIBS"
11062
11063     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11064 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11065 if ${lt_cv_dlopen_self+:} false; then :
11066   $as_echo_n "(cached) " >&6
11067 else
11068           if test "$cross_compiling" = yes; then :
11069   lt_cv_dlopen_self=cross
11070 else
11071   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11072   lt_status=$lt_dlunknown
11073   cat > conftest.$ac_ext <<_LT_EOF
11074 #line $LINENO "configure"
11075 #include "confdefs.h"
11076
11077 #if HAVE_DLFCN_H
11078 #include <dlfcn.h>
11079 #endif
11080
11081 #include <stdio.h>
11082
11083 #ifdef RTLD_GLOBAL
11084 #  define LT_DLGLOBAL           RTLD_GLOBAL
11085 #else
11086 #  ifdef DL_GLOBAL
11087 #    define LT_DLGLOBAL         DL_GLOBAL
11088 #  else
11089 #    define LT_DLGLOBAL         0
11090 #  endif
11091 #endif
11092
11093 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11094    find out it does not work in some platform. */
11095 #ifndef LT_DLLAZY_OR_NOW
11096 #  ifdef RTLD_LAZY
11097 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11098 #  else
11099 #    ifdef DL_LAZY
11100 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11101 #    else
11102 #      ifdef RTLD_NOW
11103 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11104 #      else
11105 #        ifdef DL_NOW
11106 #          define LT_DLLAZY_OR_NOW      DL_NOW
11107 #        else
11108 #          define LT_DLLAZY_OR_NOW      0
11109 #        endif
11110 #      endif
11111 #    endif
11112 #  endif
11113 #endif
11114
11115 /* When -fvisbility=hidden is used, assume the code has been annotated
11116    correspondingly for the symbols needed.  */
11117 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11118 int fnord () __attribute__((visibility("default")));
11119 #endif
11120
11121 int fnord () { return 42; }
11122 int main ()
11123 {
11124   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11125   int status = $lt_dlunknown;
11126
11127   if (self)
11128     {
11129       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11130       else
11131         {
11132           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11133           else puts (dlerror ());
11134         }
11135       /* dlclose (self); */
11136     }
11137   else
11138     puts (dlerror ());
11139
11140   return status;
11141 }
11142 _LT_EOF
11143   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11144   (eval $ac_link) 2>&5
11145   ac_status=$?
11146   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11147   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11148     (./conftest; exit; ) >&5 2>/dev/null
11149     lt_status=$?
11150     case x$lt_status in
11151       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11152       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11153       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11154     esac
11155   else :
11156     # compilation failed
11157     lt_cv_dlopen_self=no
11158   fi
11159 fi
11160 rm -fr conftest*
11161
11162
11163 fi
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11165 $as_echo "$lt_cv_dlopen_self" >&6; }
11166
11167     if test "x$lt_cv_dlopen_self" = xyes; then
11168       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11169       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11170 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11171 if ${lt_cv_dlopen_self_static+:} false; then :
11172   $as_echo_n "(cached) " >&6
11173 else
11174           if test "$cross_compiling" = yes; then :
11175   lt_cv_dlopen_self_static=cross
11176 else
11177   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11178   lt_status=$lt_dlunknown
11179   cat > conftest.$ac_ext <<_LT_EOF
11180 #line $LINENO "configure"
11181 #include "confdefs.h"
11182
11183 #if HAVE_DLFCN_H
11184 #include <dlfcn.h>
11185 #endif
11186
11187 #include <stdio.h>
11188
11189 #ifdef RTLD_GLOBAL
11190 #  define LT_DLGLOBAL           RTLD_GLOBAL
11191 #else
11192 #  ifdef DL_GLOBAL
11193 #    define LT_DLGLOBAL         DL_GLOBAL
11194 #  else
11195 #    define LT_DLGLOBAL         0
11196 #  endif
11197 #endif
11198
11199 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11200    find out it does not work in some platform. */
11201 #ifndef LT_DLLAZY_OR_NOW
11202 #  ifdef RTLD_LAZY
11203 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11204 #  else
11205 #    ifdef DL_LAZY
11206 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11207 #    else
11208 #      ifdef RTLD_NOW
11209 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11210 #      else
11211 #        ifdef DL_NOW
11212 #          define LT_DLLAZY_OR_NOW      DL_NOW
11213 #        else
11214 #          define LT_DLLAZY_OR_NOW      0
11215 #        endif
11216 #      endif
11217 #    endif
11218 #  endif
11219 #endif
11220
11221 /* When -fvisbility=hidden is used, assume the code has been annotated
11222    correspondingly for the symbols needed.  */
11223 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11224 int fnord () __attribute__((visibility("default")));
11225 #endif
11226
11227 int fnord () { return 42; }
11228 int main ()
11229 {
11230   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11231   int status = $lt_dlunknown;
11232
11233   if (self)
11234     {
11235       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11236       else
11237         {
11238           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11239           else puts (dlerror ());
11240         }
11241       /* dlclose (self); */
11242     }
11243   else
11244     puts (dlerror ());
11245
11246   return status;
11247 }
11248 _LT_EOF
11249   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11250   (eval $ac_link) 2>&5
11251   ac_status=$?
11252   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11253   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11254     (./conftest; exit; ) >&5 2>/dev/null
11255     lt_status=$?
11256     case x$lt_status in
11257       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11258       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11259       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11260     esac
11261   else :
11262     # compilation failed
11263     lt_cv_dlopen_self_static=no
11264   fi
11265 fi
11266 rm -fr conftest*
11267
11268
11269 fi
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11271 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11272     fi
11273
11274     CPPFLAGS="$save_CPPFLAGS"
11275     LDFLAGS="$save_LDFLAGS"
11276     LIBS="$save_LIBS"
11277     ;;
11278   esac
11279
11280   case $lt_cv_dlopen_self in
11281   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11282   *) enable_dlopen_self=unknown ;;
11283   esac
11284
11285   case $lt_cv_dlopen_self_static in
11286   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11287   *) enable_dlopen_self_static=unknown ;;
11288   esac
11289 fi
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307 striplib=
11308 old_striplib=
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11310 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11311 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11312   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11313   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11315 $as_echo "yes" >&6; }
11316 else
11317 # FIXME - insert some real tests, host_os isn't really good enough
11318   case $host_os in
11319   darwin*)
11320     if test -n "$STRIP" ; then
11321       striplib="$STRIP -x"
11322       old_striplib="$STRIP -S"
11323       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11324 $as_echo "yes" >&6; }
11325     else
11326       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11327 $as_echo "no" >&6; }
11328     fi
11329     ;;
11330   *)
11331     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11332 $as_echo "no" >&6; }
11333     ;;
11334   esac
11335 fi
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348   # Report which library types will actually be built
11349   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11350 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11352 $as_echo "$can_build_shared" >&6; }
11353
11354   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11355 $as_echo_n "checking whether to build shared libraries... " >&6; }
11356   test "$can_build_shared" = "no" && enable_shared=no
11357
11358   # On AIX, shared libraries and static libraries use the same namespace, and
11359   # are all built from PIC.
11360   case $host_os in
11361   aix3*)
11362     test "$enable_shared" = yes && enable_static=no
11363     if test -n "$RANLIB"; then
11364       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11365       postinstall_cmds='$RANLIB $lib'
11366     fi
11367     ;;
11368
11369   aix[4-9]*)
11370     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11371       test "$enable_shared" = yes && enable_static=no
11372     fi
11373     ;;
11374   esac
11375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11376 $as_echo "$enable_shared" >&6; }
11377
11378   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11379 $as_echo_n "checking whether to build static libraries... " >&6; }
11380   # Make sure either enable_shared or enable_static is yes.
11381   test "$enable_shared" = yes || enable_static=yes
11382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11383 $as_echo "$enable_static" >&6; }
11384
11385
11386
11387
11388 fi
11389 ac_ext=c
11390 ac_cpp='$CPP $CPPFLAGS'
11391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11394
11395 CC="$lt_save_CC"
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411         ac_config_commands="$ac_config_commands libtool"
11412
11413
11414
11415
11416 # Only expand once:
11417
11418
11419
11420 LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
11421 LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
11422 LT_REVISION=$SDL_INTERFACE_AGE
11423 LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433 ac_ext=c
11434 ac_cpp='$CPP $CPPFLAGS'
11435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11438 if test -n "$ac_tool_prefix"; then
11439   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11440 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11442 $as_echo_n "checking for $ac_word... " >&6; }
11443 if ${ac_cv_prog_CC+:} false; then :
11444   $as_echo_n "(cached) " >&6
11445 else
11446   if test -n "$CC"; then
11447   ac_cv_prog_CC="$CC" # Let the user override the test.
11448 else
11449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11450 for as_dir in $PATH
11451 do
11452   IFS=$as_save_IFS
11453   test -z "$as_dir" && as_dir=.
11454     for ac_exec_ext in '' $ac_executable_extensions; do
11455   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11456     ac_cv_prog_CC="${ac_tool_prefix}gcc"
11457     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11458     break 2
11459   fi
11460 done
11461   done
11462 IFS=$as_save_IFS
11463
11464 fi
11465 fi
11466 CC=$ac_cv_prog_CC
11467 if test -n "$CC"; then
11468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11469 $as_echo "$CC" >&6; }
11470 else
11471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11472 $as_echo "no" >&6; }
11473 fi
11474
11475
11476 fi
11477 if test -z "$ac_cv_prog_CC"; then
11478   ac_ct_CC=$CC
11479   # Extract the first word of "gcc", so it can be a program name with args.
11480 set dummy gcc; ac_word=$2
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11482 $as_echo_n "checking for $ac_word... " >&6; }
11483 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11484   $as_echo_n "(cached) " >&6
11485 else
11486   if test -n "$ac_ct_CC"; then
11487   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11488 else
11489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11490 for as_dir in $PATH
11491 do
11492   IFS=$as_save_IFS
11493   test -z "$as_dir" && as_dir=.
11494     for ac_exec_ext in '' $ac_executable_extensions; do
11495   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11496     ac_cv_prog_ac_ct_CC="gcc"
11497     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11498     break 2
11499   fi
11500 done
11501   done
11502 IFS=$as_save_IFS
11503
11504 fi
11505 fi
11506 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11507 if test -n "$ac_ct_CC"; then
11508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11509 $as_echo "$ac_ct_CC" >&6; }
11510 else
11511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11512 $as_echo "no" >&6; }
11513 fi
11514
11515   if test "x$ac_ct_CC" = x; then
11516     CC=""
11517   else
11518     case $cross_compiling:$ac_tool_warned in
11519 yes:)
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11521 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11522 ac_tool_warned=yes ;;
11523 esac
11524     CC=$ac_ct_CC
11525   fi
11526 else
11527   CC="$ac_cv_prog_CC"
11528 fi
11529
11530 if test -z "$CC"; then
11531           if test -n "$ac_tool_prefix"; then
11532     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11533 set dummy ${ac_tool_prefix}cc; ac_word=$2
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11535 $as_echo_n "checking for $ac_word... " >&6; }
11536 if ${ac_cv_prog_CC+:} false; then :
11537   $as_echo_n "(cached) " >&6
11538 else
11539   if test -n "$CC"; then
11540   ac_cv_prog_CC="$CC" # Let the user override the test.
11541 else
11542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11543 for as_dir in $PATH
11544 do
11545   IFS=$as_save_IFS
11546   test -z "$as_dir" && as_dir=.
11547     for ac_exec_ext in '' $ac_executable_extensions; do
11548   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11549     ac_cv_prog_CC="${ac_tool_prefix}cc"
11550     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11551     break 2
11552   fi
11553 done
11554   done
11555 IFS=$as_save_IFS
11556
11557 fi
11558 fi
11559 CC=$ac_cv_prog_CC
11560 if test -n "$CC"; then
11561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11562 $as_echo "$CC" >&6; }
11563 else
11564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11565 $as_echo "no" >&6; }
11566 fi
11567
11568
11569   fi
11570 fi
11571 if test -z "$CC"; then
11572   # Extract the first word of "cc", so it can be a program name with args.
11573 set dummy cc; ac_word=$2
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11575 $as_echo_n "checking for $ac_word... " >&6; }
11576 if ${ac_cv_prog_CC+:} false; then :
11577   $as_echo_n "(cached) " >&6
11578 else
11579   if test -n "$CC"; then
11580   ac_cv_prog_CC="$CC" # Let the user override the test.
11581 else
11582   ac_prog_rejected=no
11583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11584 for as_dir in $PATH
11585 do
11586   IFS=$as_save_IFS
11587   test -z "$as_dir" && as_dir=.
11588     for ac_exec_ext in '' $ac_executable_extensions; do
11589   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11590     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11591        ac_prog_rejected=yes
11592        continue
11593      fi
11594     ac_cv_prog_CC="cc"
11595     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11596     break 2
11597   fi
11598 done
11599   done
11600 IFS=$as_save_IFS
11601
11602 if test $ac_prog_rejected = yes; then
11603   # We found a bogon in the path, so make sure we never use it.
11604   set dummy $ac_cv_prog_CC
11605   shift
11606   if test $# != 0; then
11607     # We chose a different compiler from the bogus one.
11608     # However, it has the same basename, so the bogon will be chosen
11609     # first if we set CC to just the basename; use the full file name.
11610     shift
11611     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11612   fi
11613 fi
11614 fi
11615 fi
11616 CC=$ac_cv_prog_CC
11617 if test -n "$CC"; then
11618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11619 $as_echo "$CC" >&6; }
11620 else
11621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11622 $as_echo "no" >&6; }
11623 fi
11624
11625
11626 fi
11627 if test -z "$CC"; then
11628   if test -n "$ac_tool_prefix"; then
11629   for ac_prog in cl.exe
11630   do
11631     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11632 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11634 $as_echo_n "checking for $ac_word... " >&6; }
11635 if ${ac_cv_prog_CC+:} false; then :
11636   $as_echo_n "(cached) " >&6
11637 else
11638   if test -n "$CC"; then
11639   ac_cv_prog_CC="$CC" # Let the user override the test.
11640 else
11641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11642 for as_dir in $PATH
11643 do
11644   IFS=$as_save_IFS
11645   test -z "$as_dir" && as_dir=.
11646     for ac_exec_ext in '' $ac_executable_extensions; do
11647   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11648     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11649     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11650     break 2
11651   fi
11652 done
11653   done
11654 IFS=$as_save_IFS
11655
11656 fi
11657 fi
11658 CC=$ac_cv_prog_CC
11659 if test -n "$CC"; then
11660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11661 $as_echo "$CC" >&6; }
11662 else
11663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11664 $as_echo "no" >&6; }
11665 fi
11666
11667
11668     test -n "$CC" && break
11669   done
11670 fi
11671 if test -z "$CC"; then
11672   ac_ct_CC=$CC
11673   for ac_prog in cl.exe
11674 do
11675   # Extract the first word of "$ac_prog", so it can be a program name with args.
11676 set dummy $ac_prog; ac_word=$2
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11678 $as_echo_n "checking for $ac_word... " >&6; }
11679 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11680   $as_echo_n "(cached) " >&6
11681 else
11682   if test -n "$ac_ct_CC"; then
11683   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11684 else
11685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11686 for as_dir in $PATH
11687 do
11688   IFS=$as_save_IFS
11689   test -z "$as_dir" && as_dir=.
11690     for ac_exec_ext in '' $ac_executable_extensions; do
11691   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11692     ac_cv_prog_ac_ct_CC="$ac_prog"
11693     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11694     break 2
11695   fi
11696 done
11697   done
11698 IFS=$as_save_IFS
11699
11700 fi
11701 fi
11702 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11703 if test -n "$ac_ct_CC"; then
11704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11705 $as_echo "$ac_ct_CC" >&6; }
11706 else
11707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11708 $as_echo "no" >&6; }
11709 fi
11710
11711
11712   test -n "$ac_ct_CC" && break
11713 done
11714
11715   if test "x$ac_ct_CC" = x; then
11716     CC=""
11717   else
11718     case $cross_compiling:$ac_tool_warned in
11719 yes:)
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11721 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11722 ac_tool_warned=yes ;;
11723 esac
11724     CC=$ac_ct_CC
11725   fi
11726 fi
11727
11728 fi
11729
11730
11731 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11732 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11733 as_fn_error $? "no acceptable C compiler found in \$PATH
11734 See \`config.log' for more details" "$LINENO" 5; }
11735
11736 # Provide some information about the compiler.
11737 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11738 set X $ac_compile
11739 ac_compiler=$2
11740 for ac_option in --version -v -V -qversion; do
11741   { { ac_try="$ac_compiler $ac_option >&5"
11742 case "(($ac_try" in
11743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11744   *) ac_try_echo=$ac_try;;
11745 esac
11746 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11747 $as_echo "$ac_try_echo"; } >&5
11748   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11749   ac_status=$?
11750   if test -s conftest.err; then
11751     sed '10a\
11752 ... rest of stderr output deleted ...
11753          10q' conftest.err >conftest.er1
11754     cat conftest.er1 >&5
11755   fi
11756   rm -f conftest.er1 conftest.err
11757   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11758   test $ac_status = 0; }
11759 done
11760
11761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11762 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11763 if ${ac_cv_c_compiler_gnu+:} false; then :
11764   $as_echo_n "(cached) " >&6
11765 else
11766   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11767 /* end confdefs.h.  */
11768
11769 int
11770 main ()
11771 {
11772 #ifndef __GNUC__
11773        choke me
11774 #endif
11775
11776   ;
11777   return 0;
11778 }
11779 _ACEOF
11780 if ac_fn_c_try_compile "$LINENO"; then :
11781   ac_compiler_gnu=yes
11782 else
11783   ac_compiler_gnu=no
11784 fi
11785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11786 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11787
11788 fi
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11790 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11791 if test $ac_compiler_gnu = yes; then
11792   GCC=yes
11793 else
11794   GCC=
11795 fi
11796 ac_test_CFLAGS=${CFLAGS+set}
11797 ac_save_CFLAGS=$CFLAGS
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11799 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11800 if ${ac_cv_prog_cc_g+:} false; then :
11801   $as_echo_n "(cached) " >&6
11802 else
11803   ac_save_c_werror_flag=$ac_c_werror_flag
11804    ac_c_werror_flag=yes
11805    ac_cv_prog_cc_g=no
11806    CFLAGS="-g"
11807    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11808 /* end confdefs.h.  */
11809
11810 int
11811 main ()
11812 {
11813
11814   ;
11815   return 0;
11816 }
11817 _ACEOF
11818 if ac_fn_c_try_compile "$LINENO"; then :
11819   ac_cv_prog_cc_g=yes
11820 else
11821   CFLAGS=""
11822       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11823 /* end confdefs.h.  */
11824
11825 int
11826 main ()
11827 {
11828
11829   ;
11830   return 0;
11831 }
11832 _ACEOF
11833 if ac_fn_c_try_compile "$LINENO"; then :
11834
11835 else
11836   ac_c_werror_flag=$ac_save_c_werror_flag
11837          CFLAGS="-g"
11838          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11839 /* end confdefs.h.  */
11840
11841 int
11842 main ()
11843 {
11844
11845   ;
11846   return 0;
11847 }
11848 _ACEOF
11849 if ac_fn_c_try_compile "$LINENO"; then :
11850   ac_cv_prog_cc_g=yes
11851 fi
11852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11853 fi
11854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11855 fi
11856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11857    ac_c_werror_flag=$ac_save_c_werror_flag
11858 fi
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11860 $as_echo "$ac_cv_prog_cc_g" >&6; }
11861 if test "$ac_test_CFLAGS" = set; then
11862   CFLAGS=$ac_save_CFLAGS
11863 elif test $ac_cv_prog_cc_g = yes; then
11864   if test "$GCC" = yes; then
11865     CFLAGS="-g -O2"
11866   else
11867     CFLAGS="-g"
11868   fi
11869 else
11870   if test "$GCC" = yes; then
11871     CFLAGS="-O2"
11872   else
11873     CFLAGS=
11874   fi
11875 fi
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11877 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11878 if ${ac_cv_prog_cc_c89+:} false; then :
11879   $as_echo_n "(cached) " >&6
11880 else
11881   ac_cv_prog_cc_c89=no
11882 ac_save_CC=$CC
11883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11884 /* end confdefs.h.  */
11885 #include <stdarg.h>
11886 #include <stdio.h>
11887 struct stat;
11888 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
11889 struct buf { int x; };
11890 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11891 static char *e (p, i)
11892      char **p;
11893      int i;
11894 {
11895   return p[i];
11896 }
11897 static char *f (char * (*g) (char **, int), char **p, ...)
11898 {
11899   char *s;
11900   va_list v;
11901   va_start (v,p);
11902   s = g (p, va_arg (v,int));
11903   va_end (v);
11904   return s;
11905 }
11906
11907 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
11908    function prototypes and stuff, but not '\xHH' hex character constants.
11909    These don't provoke an error unfortunately, instead are silently treated
11910    as 'x'.  The following induces an error, until -std is added to get
11911    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
11912    array size at least.  It's necessary to write '\x00'==0 to get something
11913    that's true only with -std.  */
11914 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11915
11916 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11917    inside strings and character constants.  */
11918 #define FOO(x) 'x'
11919 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11920
11921 int test (int i, double x);
11922 struct s1 {int (*f) (int a);};
11923 struct s2 {int (*f) (double a);};
11924 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11925 int argc;
11926 char **argv;
11927 int
11928 main ()
11929 {
11930 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
11931   ;
11932   return 0;
11933 }
11934 _ACEOF
11935 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11936         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11937 do
11938   CC="$ac_save_CC $ac_arg"
11939   if ac_fn_c_try_compile "$LINENO"; then :
11940   ac_cv_prog_cc_c89=$ac_arg
11941 fi
11942 rm -f core conftest.err conftest.$ac_objext
11943   test "x$ac_cv_prog_cc_c89" != "xno" && break
11944 done
11945 rm -f conftest.$ac_ext
11946 CC=$ac_save_CC
11947
11948 fi
11949 # AC_CACHE_VAL
11950 case "x$ac_cv_prog_cc_c89" in
11951   x)
11952     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11953 $as_echo "none needed" >&6; } ;;
11954   xno)
11955     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11956 $as_echo "unsupported" >&6; } ;;
11957   *)
11958     CC="$CC $ac_cv_prog_cc_c89"
11959     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11960 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11961 esac
11962 if test "x$ac_cv_prog_cc_c89" != xno; then :
11963
11964 fi
11965
11966 ac_ext=c
11967 ac_cpp='$CPP $CPPFLAGS'
11968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11971
11972 ac_ext=cpp
11973 ac_cpp='$CXXCPP $CPPFLAGS'
11974 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11975 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11976 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11977 if test -z "$CXX"; then
11978   if test -n "$CCC"; then
11979     CXX=$CCC
11980   else
11981     if test -n "$ac_tool_prefix"; then
11982   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11983   do
11984     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11985 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11987 $as_echo_n "checking for $ac_word... " >&6; }
11988 if ${ac_cv_prog_CXX+:} false; then :
11989   $as_echo_n "(cached) " >&6
11990 else
11991   if test -n "$CXX"; then
11992   ac_cv_prog_CXX="$CXX" # Let the user override the test.
11993 else
11994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11995 for as_dir in $PATH
11996 do
11997   IFS=$as_save_IFS
11998   test -z "$as_dir" && as_dir=.
11999     for ac_exec_ext in '' $ac_executable_extensions; do
12000   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12001     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12002     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12003     break 2
12004   fi
12005 done
12006   done
12007 IFS=$as_save_IFS
12008
12009 fi
12010 fi
12011 CXX=$ac_cv_prog_CXX
12012 if test -n "$CXX"; then
12013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
12014 $as_echo "$CXX" >&6; }
12015 else
12016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12017 $as_echo "no" >&6; }
12018 fi
12019
12020
12021     test -n "$CXX" && break
12022   done
12023 fi
12024 if test -z "$CXX"; then
12025   ac_ct_CXX=$CXX
12026   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12027 do
12028   # Extract the first word of "$ac_prog", so it can be a program name with args.
12029 set dummy $ac_prog; ac_word=$2
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12031 $as_echo_n "checking for $ac_word... " >&6; }
12032 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
12033   $as_echo_n "(cached) " >&6
12034 else
12035   if test -n "$ac_ct_CXX"; then
12036   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12037 else
12038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12039 for as_dir in $PATH
12040 do
12041   IFS=$as_save_IFS
12042   test -z "$as_dir" && as_dir=.
12043     for ac_exec_ext in '' $ac_executable_extensions; do
12044   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12045     ac_cv_prog_ac_ct_CXX="$ac_prog"
12046     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12047     break 2
12048   fi
12049 done
12050   done
12051 IFS=$as_save_IFS
12052
12053 fi
12054 fi
12055 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12056 if test -n "$ac_ct_CXX"; then
12057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
12058 $as_echo "$ac_ct_CXX" >&6; }
12059 else
12060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12061 $as_echo "no" >&6; }
12062 fi
12063
12064
12065   test -n "$ac_ct_CXX" && break
12066 done
12067
12068   if test "x$ac_ct_CXX" = x; then
12069     CXX="g++"
12070   else
12071     case $cross_compiling:$ac_tool_warned in
12072 yes:)
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12074 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12075 ac_tool_warned=yes ;;
12076 esac
12077     CXX=$ac_ct_CXX
12078   fi
12079 fi
12080
12081   fi
12082 fi
12083 # Provide some information about the compiler.
12084 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
12085 set X $ac_compile
12086 ac_compiler=$2
12087 for ac_option in --version -v -V -qversion; do
12088   { { ac_try="$ac_compiler $ac_option >&5"
12089 case "(($ac_try" in
12090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12091   *) ac_try_echo=$ac_try;;
12092 esac
12093 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12094 $as_echo "$ac_try_echo"; } >&5
12095   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12096   ac_status=$?
12097   if test -s conftest.err; then
12098     sed '10a\
12099 ... rest of stderr output deleted ...
12100          10q' conftest.err >conftest.er1
12101     cat conftest.er1 >&5
12102   fi
12103   rm -f conftest.er1 conftest.err
12104   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12105   test $ac_status = 0; }
12106 done
12107
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
12109 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12110 if ${ac_cv_cxx_compiler_gnu+:} false; then :
12111   $as_echo_n "(cached) " >&6
12112 else
12113   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12114 /* end confdefs.h.  */
12115
12116 int
12117 main ()
12118 {
12119 #ifndef __GNUC__
12120        choke me
12121 #endif
12122
12123   ;
12124   return 0;
12125 }
12126 _ACEOF
12127 if ac_fn_cxx_try_compile "$LINENO"; then :
12128   ac_compiler_gnu=yes
12129 else
12130   ac_compiler_gnu=no
12131 fi
12132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12133 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12134
12135 fi
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
12137 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12138 if test $ac_compiler_gnu = yes; then
12139   GXX=yes
12140 else
12141   GXX=
12142 fi
12143 ac_test_CXXFLAGS=${CXXFLAGS+set}
12144 ac_save_CXXFLAGS=$CXXFLAGS
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
12146 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
12147 if ${ac_cv_prog_cxx_g+:} false; then :
12148   $as_echo_n "(cached) " >&6
12149 else
12150   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12151    ac_cxx_werror_flag=yes
12152    ac_cv_prog_cxx_g=no
12153    CXXFLAGS="-g"
12154    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12155 /* end confdefs.h.  */
12156
12157 int
12158 main ()
12159 {
12160
12161   ;
12162   return 0;
12163 }
12164 _ACEOF
12165 if ac_fn_cxx_try_compile "$LINENO"; then :
12166   ac_cv_prog_cxx_g=yes
12167 else
12168   CXXFLAGS=""
12169       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12170 /* end confdefs.h.  */
12171
12172 int
12173 main ()
12174 {
12175
12176   ;
12177   return 0;
12178 }
12179 _ACEOF
12180 if ac_fn_cxx_try_compile "$LINENO"; then :
12181
12182 else
12183   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12184          CXXFLAGS="-g"
12185          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12186 /* end confdefs.h.  */
12187
12188 int
12189 main ()
12190 {
12191
12192   ;
12193   return 0;
12194 }
12195 _ACEOF
12196 if ac_fn_cxx_try_compile "$LINENO"; then :
12197   ac_cv_prog_cxx_g=yes
12198 fi
12199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12200 fi
12201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12202 fi
12203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12204    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12205 fi
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
12207 $as_echo "$ac_cv_prog_cxx_g" >&6; }
12208 if test "$ac_test_CXXFLAGS" = set; then
12209   CXXFLAGS=$ac_save_CXXFLAGS
12210 elif test $ac_cv_prog_cxx_g = yes; then
12211   if test "$GXX" = yes; then
12212     CXXFLAGS="-g -O2"
12213   else
12214     CXXFLAGS="-g"
12215   fi
12216 else
12217   if test "$GXX" = yes; then
12218     CXXFLAGS="-O2"
12219   else
12220     CXXFLAGS=
12221   fi
12222 fi
12223 ac_ext=c
12224 ac_cpp='$CPP $CPPFLAGS'
12225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12228
12229
12230
12231 func_stripname_cnf ()
12232 {
12233   case ${2} in
12234   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12235   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12236   esac
12237 } # func_stripname_cnf
12238
12239       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12240     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12241     (test "X$CXX" != "Xg++"))) ; then
12242   ac_ext=cpp
12243 ac_cpp='$CXXCPP $CPPFLAGS'
12244 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12245 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12246 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12248 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12249 if test -z "$CXXCPP"; then
12250   if ${ac_cv_prog_CXXCPP+:} false; then :
12251   $as_echo_n "(cached) " >&6
12252 else
12253       # Double quotes because CXXCPP needs to be expanded
12254     for CXXCPP in "$CXX -E" "/lib/cpp"
12255     do
12256       ac_preproc_ok=false
12257 for ac_cxx_preproc_warn_flag in '' yes
12258 do
12259   # Use a header file that comes with gcc, so configuring glibc
12260   # with a fresh cross-compiler works.
12261   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12262   # <limits.h> exists even on freestanding compilers.
12263   # On the NeXT, cc -E runs the code through the compiler's parser,
12264   # not just through cpp. "Syntax error" is here to catch this case.
12265   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12266 /* end confdefs.h.  */
12267 #ifdef __STDC__
12268 # include <limits.h>
12269 #else
12270 # include <assert.h>
12271 #endif
12272                      Syntax error
12273 _ACEOF
12274 if ac_fn_cxx_try_cpp "$LINENO"; then :
12275
12276 else
12277   # Broken: fails on valid input.
12278 continue
12279 fi
12280 rm -f conftest.err conftest.i conftest.$ac_ext
12281
12282   # OK, works on sane cases.  Now check whether nonexistent headers
12283   # can be detected and how.
12284   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12285 /* end confdefs.h.  */
12286 #include <ac_nonexistent.h>
12287 _ACEOF
12288 if ac_fn_cxx_try_cpp "$LINENO"; then :
12289   # Broken: success on invalid input.
12290 continue
12291 else
12292   # Passes both tests.
12293 ac_preproc_ok=:
12294 break
12295 fi
12296 rm -f conftest.err conftest.i conftest.$ac_ext
12297
12298 done
12299 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12300 rm -f conftest.i conftest.err conftest.$ac_ext
12301 if $ac_preproc_ok; then :
12302   break
12303 fi
12304
12305     done
12306     ac_cv_prog_CXXCPP=$CXXCPP
12307
12308 fi
12309   CXXCPP=$ac_cv_prog_CXXCPP
12310 else
12311   ac_cv_prog_CXXCPP=$CXXCPP
12312 fi
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12314 $as_echo "$CXXCPP" >&6; }
12315 ac_preproc_ok=false
12316 for ac_cxx_preproc_warn_flag in '' yes
12317 do
12318   # Use a header file that comes with gcc, so configuring glibc
12319   # with a fresh cross-compiler works.
12320   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12321   # <limits.h> exists even on freestanding compilers.
12322   # On the NeXT, cc -E runs the code through the compiler's parser,
12323   # not just through cpp. "Syntax error" is here to catch this case.
12324   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12325 /* end confdefs.h.  */
12326 #ifdef __STDC__
12327 # include <limits.h>
12328 #else
12329 # include <assert.h>
12330 #endif
12331                      Syntax error
12332 _ACEOF
12333 if ac_fn_cxx_try_cpp "$LINENO"; then :
12334
12335 else
12336   # Broken: fails on valid input.
12337 continue
12338 fi
12339 rm -f conftest.err conftest.i conftest.$ac_ext
12340
12341   # OK, works on sane cases.  Now check whether nonexistent headers
12342   # can be detected and how.
12343   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12344 /* end confdefs.h.  */
12345 #include <ac_nonexistent.h>
12346 _ACEOF
12347 if ac_fn_cxx_try_cpp "$LINENO"; then :
12348   # Broken: success on invalid input.
12349 continue
12350 else
12351   # Passes both tests.
12352 ac_preproc_ok=:
12353 break
12354 fi
12355 rm -f conftest.err conftest.i conftest.$ac_ext
12356
12357 done
12358 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12359 rm -f conftest.i conftest.err conftest.$ac_ext
12360 if $ac_preproc_ok; then :
12361
12362 else
12363   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12364 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12365 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12366 See \`config.log' for more details" "$LINENO" 5; }
12367 fi
12368
12369 ac_ext=c
12370 ac_cpp='$CPP $CPPFLAGS'
12371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12374
12375 else
12376   _lt_caught_CXX_error=yes
12377 fi
12378
12379 ac_ext=cpp
12380 ac_cpp='$CXXCPP $CPPFLAGS'
12381 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12382 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12383 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12384
12385 archive_cmds_need_lc_CXX=no
12386 allow_undefined_flag_CXX=
12387 always_export_symbols_CXX=no
12388 archive_expsym_cmds_CXX=
12389 compiler_needs_object_CXX=no
12390 export_dynamic_flag_spec_CXX=
12391 hardcode_direct_CXX=no
12392 hardcode_direct_absolute_CXX=no
12393 hardcode_libdir_flag_spec_CXX=
12394 hardcode_libdir_separator_CXX=
12395 hardcode_minus_L_CXX=no
12396 hardcode_shlibpath_var_CXX=unsupported
12397 hardcode_automatic_CXX=no
12398 inherit_rpath_CXX=no
12399 module_cmds_CXX=
12400 module_expsym_cmds_CXX=
12401 link_all_deplibs_CXX=unknown
12402 old_archive_cmds_CXX=$old_archive_cmds
12403 reload_flag_CXX=$reload_flag
12404 reload_cmds_CXX=$reload_cmds
12405 no_undefined_flag_CXX=
12406 whole_archive_flag_spec_CXX=
12407 enable_shared_with_static_runtimes_CXX=no
12408
12409 # Source file extension for C++ test sources.
12410 ac_ext=cpp
12411
12412 # Object file extension for compiled C++ test sources.
12413 objext=o
12414 objext_CXX=$objext
12415
12416 # No sense in running all these tests if we already determined that
12417 # the CXX compiler isn't working.  Some variables (like enable_shared)
12418 # are currently assumed to apply to all compilers on this platform,
12419 # and will be corrupted by setting them based on a non-working compiler.
12420 if test "$_lt_caught_CXX_error" != yes; then
12421   # Code to be used in simple compile tests
12422   lt_simple_compile_test_code="int some_variable = 0;"
12423
12424   # Code to be used in simple link tests
12425   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12426
12427   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12428
12429
12430
12431
12432
12433
12434 # If no C compiler was specified, use CC.
12435 LTCC=${LTCC-"$CC"}
12436
12437 # If no C compiler flags were specified, use CFLAGS.
12438 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12439
12440 # Allow CC to be a program name with arguments.
12441 compiler=$CC
12442
12443
12444   # save warnings/boilerplate of simple test code
12445   ac_outfile=conftest.$ac_objext
12446 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12447 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12448 _lt_compiler_boilerplate=`cat conftest.err`
12449 $RM conftest*
12450
12451   ac_outfile=conftest.$ac_objext
12452 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12453 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12454 _lt_linker_boilerplate=`cat conftest.err`
12455 $RM -r conftest*
12456
12457
12458   # Allow CC to be a program name with arguments.
12459   lt_save_CC=$CC
12460   lt_save_CFLAGS=$CFLAGS
12461   lt_save_LD=$LD
12462   lt_save_GCC=$GCC
12463   GCC=$GXX
12464   lt_save_with_gnu_ld=$with_gnu_ld
12465   lt_save_path_LD=$lt_cv_path_LD
12466   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12467     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12468   else
12469     $as_unset lt_cv_prog_gnu_ld
12470   fi
12471   if test -n "${lt_cv_path_LDCXX+set}"; then
12472     lt_cv_path_LD=$lt_cv_path_LDCXX
12473   else
12474     $as_unset lt_cv_path_LD
12475   fi
12476   test -z "${LDCXX+set}" || LD=$LDCXX
12477   CC=${CXX-"c++"}
12478   CFLAGS=$CXXFLAGS
12479   compiler=$CC
12480   compiler_CXX=$CC
12481   for cc_temp in $compiler""; do
12482   case $cc_temp in
12483     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12484     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12485     \-*) ;;
12486     *) break;;
12487   esac
12488 done
12489 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12490
12491
12492   if test -n "$compiler"; then
12493     # We don't want -fno-exception when compiling C++ code, so set the
12494     # no_builtin_flag separately
12495     if test "$GXX" = yes; then
12496       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12497     else
12498       lt_prog_compiler_no_builtin_flag_CXX=
12499     fi
12500
12501     if test "$GXX" = yes; then
12502       # Set up default GNU C++ configuration
12503
12504
12505
12506 # Check whether --with-gnu-ld was given.
12507 if test "${with_gnu_ld+set}" = set; then :
12508   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12509 else
12510   with_gnu_ld=no
12511 fi
12512
12513 ac_prog=ld
12514 if test "$GCC" = yes; then
12515   # Check if gcc -print-prog-name=ld gives a path.
12516   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12517 $as_echo_n "checking for ld used by $CC... " >&6; }
12518   case $host in
12519   *-*-mingw*)
12520     # gcc leaves a trailing carriage return which upsets mingw
12521     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12522   *)
12523     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12524   esac
12525   case $ac_prog in
12526     # Accept absolute paths.
12527     [\\/]* | ?:[\\/]*)
12528       re_direlt='/[^/][^/]*/\.\./'
12529       # Canonicalize the pathname of ld
12530       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12531       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12532         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12533       done
12534       test -z "$LD" && LD="$ac_prog"
12535       ;;
12536   "")
12537     # If it fails, then pretend we aren't using GCC.
12538     ac_prog=ld
12539     ;;
12540   *)
12541     # If it is relative, then search for the first ld in PATH.
12542     with_gnu_ld=unknown
12543     ;;
12544   esac
12545 elif test "$with_gnu_ld" = yes; then
12546   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12547 $as_echo_n "checking for GNU ld... " >&6; }
12548 else
12549   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12550 $as_echo_n "checking for non-GNU ld... " >&6; }
12551 fi
12552 if ${lt_cv_path_LD+:} false; then :
12553   $as_echo_n "(cached) " >&6
12554 else
12555   if test -z "$LD"; then
12556   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12557   for ac_dir in $PATH; do
12558     IFS="$lt_save_ifs"
12559     test -z "$ac_dir" && ac_dir=.
12560     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12561       lt_cv_path_LD="$ac_dir/$ac_prog"
12562       # Check to see if the program is GNU ld.  I'd rather use --version,
12563       # but apparently some variants of GNU ld only accept -v.
12564       # Break only if it was the GNU/non-GNU ld that we prefer.
12565       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12566       *GNU* | *'with BFD'*)
12567         test "$with_gnu_ld" != no && break
12568         ;;
12569       *)
12570         test "$with_gnu_ld" != yes && break
12571         ;;
12572       esac
12573     fi
12574   done
12575   IFS="$lt_save_ifs"
12576 else
12577   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12578 fi
12579 fi
12580
12581 LD="$lt_cv_path_LD"
12582 if test -n "$LD"; then
12583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12584 $as_echo "$LD" >&6; }
12585 else
12586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12587 $as_echo "no" >&6; }
12588 fi
12589 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12591 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12592 if ${lt_cv_prog_gnu_ld+:} false; then :
12593   $as_echo_n "(cached) " >&6
12594 else
12595   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12596 case `$LD -v 2>&1 </dev/null` in
12597 *GNU* | *'with BFD'*)
12598   lt_cv_prog_gnu_ld=yes
12599   ;;
12600 *)
12601   lt_cv_prog_gnu_ld=no
12602   ;;
12603 esac
12604 fi
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12606 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12607 with_gnu_ld=$lt_cv_prog_gnu_ld
12608
12609
12610
12611
12612
12613
12614
12615       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12616       # archiving commands below assume that GNU ld is being used.
12617       if test "$with_gnu_ld" = yes; then
12618         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12619         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'
12620
12621         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12622         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12623
12624         # If archive_cmds runs LD, not CC, wlarc should be empty
12625         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12626         #     investigate it a little bit more. (MM)
12627         wlarc='${wl}'
12628
12629         # ancient GNU ld didn't support --whole-archive et. al.
12630         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12631           $GREP 'no-whole-archive' > /dev/null; then
12632           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12633         else
12634           whole_archive_flag_spec_CXX=
12635         fi
12636       else
12637         with_gnu_ld=no
12638         wlarc=
12639
12640         # A generic and very simple default shared library creation
12641         # command for GNU C++ for the case where it uses the native
12642         # linker, instead of GNU ld.  If possible, this setting should
12643         # overridden to take advantage of the native linker features on
12644         # the platform it is being used on.
12645         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12646       fi
12647
12648       # Commands to make compiler produce verbose output that lists
12649       # what "hidden" libraries, object files and flags are used when
12650       # linking a shared library.
12651       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12652
12653     else
12654       GXX=no
12655       with_gnu_ld=no
12656       wlarc=
12657     fi
12658
12659     # PORTME: fill in a description of your system's C++ link characteristics
12660     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12661 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12662     ld_shlibs_CXX=yes
12663     case $host_os in
12664       aix3*)
12665         # FIXME: insert proper C++ library support
12666         ld_shlibs_CXX=no
12667         ;;
12668       aix[4-9]*)
12669         if test "$host_cpu" = ia64; then
12670           # On IA64, the linker does run time linking by default, so we don't
12671           # have to do anything special.
12672           aix_use_runtimelinking=no
12673           exp_sym_flag='-Bexport'
12674           no_entry_flag=""
12675         else
12676           aix_use_runtimelinking=no
12677
12678           # Test if we are trying to use run time linking or normal
12679           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12680           # need to do runtime linking.
12681           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12682             for ld_flag in $LDFLAGS; do
12683               case $ld_flag in
12684               *-brtl*)
12685                 aix_use_runtimelinking=yes
12686                 break
12687                 ;;
12688               esac
12689             done
12690             ;;
12691           esac
12692
12693           exp_sym_flag='-bexport'
12694           no_entry_flag='-bnoentry'
12695         fi
12696
12697         # When large executables or shared objects are built, AIX ld can
12698         # have problems creating the table of contents.  If linking a library
12699         # or program results in "error TOC overflow" add -mminimal-toc to
12700         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12701         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12702
12703         archive_cmds_CXX=''
12704         hardcode_direct_CXX=yes
12705         hardcode_direct_absolute_CXX=yes
12706         hardcode_libdir_separator_CXX=':'
12707         link_all_deplibs_CXX=yes
12708         file_list_spec_CXX='${wl}-f,'
12709
12710         if test "$GXX" = yes; then
12711           case $host_os in aix4.[012]|aix4.[012].*)
12712           # We only want to do this on AIX 4.2 and lower, the check
12713           # below for broken collect2 doesn't work under 4.3+
12714           collect2name=`${CC} -print-prog-name=collect2`
12715           if test -f "$collect2name" &&
12716              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12717           then
12718             # We have reworked collect2
12719             :
12720           else
12721             # We have old collect2
12722             hardcode_direct_CXX=unsupported
12723             # It fails to find uninstalled libraries when the uninstalled
12724             # path is not listed in the libpath.  Setting hardcode_minus_L
12725             # to unsupported forces relinking
12726             hardcode_minus_L_CXX=yes
12727             hardcode_libdir_flag_spec_CXX='-L$libdir'
12728             hardcode_libdir_separator_CXX=
12729           fi
12730           esac
12731           shared_flag='-shared'
12732           if test "$aix_use_runtimelinking" = yes; then
12733             shared_flag="$shared_flag "'${wl}-G'
12734           fi
12735         else
12736           # not using gcc
12737           if test "$host_cpu" = ia64; then
12738           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12739           # chokes on -Wl,-G. The following line is correct:
12740           shared_flag='-G'
12741           else
12742             if test "$aix_use_runtimelinking" = yes; then
12743               shared_flag='${wl}-G'
12744             else
12745               shared_flag='${wl}-bM:SRE'
12746             fi
12747           fi
12748         fi
12749
12750         export_dynamic_flag_spec_CXX='${wl}-bexpall'
12751         # It seems that -bexpall does not export symbols beginning with
12752         # underscore (_), so it is better to generate a list of symbols to
12753         # export.
12754         always_export_symbols_CXX=yes
12755         if test "$aix_use_runtimelinking" = yes; then
12756           # Warning - without using the other runtime loading flags (-brtl),
12757           # -berok will link without error, but may produce a broken library.
12758           allow_undefined_flag_CXX='-berok'
12759           # Determine the default libpath from the value encoded in an empty
12760           # executable.
12761           if test "${lt_cv_aix_libpath+set}" = set; then
12762   aix_libpath=$lt_cv_aix_libpath
12763 else
12764   if ${lt_cv_aix_libpath__CXX+:} false; then :
12765   $as_echo_n "(cached) " >&6
12766 else
12767   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12768 /* end confdefs.h.  */
12769
12770 int
12771 main ()
12772 {
12773
12774   ;
12775   return 0;
12776 }
12777 _ACEOF
12778 if ac_fn_cxx_try_link "$LINENO"; then :
12779
12780   lt_aix_libpath_sed='
12781       /Import File Strings/,/^$/ {
12782           /^0/ {
12783               s/^0  *\([^ ]*\) *$/\1/
12784               p
12785           }
12786       }'
12787   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12788   # Check for a 64-bit object if we didn't find anything.
12789   if test -z "$lt_cv_aix_libpath__CXX"; then
12790     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12791   fi
12792 fi
12793 rm -f core conftest.err conftest.$ac_objext \
12794     conftest$ac_exeext conftest.$ac_ext
12795   if test -z "$lt_cv_aix_libpath__CXX"; then
12796     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12797   fi
12798
12799 fi
12800
12801   aix_libpath=$lt_cv_aix_libpath__CXX
12802 fi
12803
12804           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12805
12806           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"
12807         else
12808           if test "$host_cpu" = ia64; then
12809             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12810             allow_undefined_flag_CXX="-z nodefs"
12811             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"
12812           else
12813             # Determine the default libpath from the value encoded in an
12814             # empty executable.
12815             if test "${lt_cv_aix_libpath+set}" = set; then
12816   aix_libpath=$lt_cv_aix_libpath
12817 else
12818   if ${lt_cv_aix_libpath__CXX+:} false; then :
12819   $as_echo_n "(cached) " >&6
12820 else
12821   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12822 /* end confdefs.h.  */
12823
12824 int
12825 main ()
12826 {
12827
12828   ;
12829   return 0;
12830 }
12831 _ACEOF
12832 if ac_fn_cxx_try_link "$LINENO"; then :
12833
12834   lt_aix_libpath_sed='
12835       /Import File Strings/,/^$/ {
12836           /^0/ {
12837               s/^0  *\([^ ]*\) *$/\1/
12838               p
12839           }
12840       }'
12841   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12842   # Check for a 64-bit object if we didn't find anything.
12843   if test -z "$lt_cv_aix_libpath__CXX"; then
12844     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12845   fi
12846 fi
12847 rm -f core conftest.err conftest.$ac_objext \
12848     conftest$ac_exeext conftest.$ac_ext
12849   if test -z "$lt_cv_aix_libpath__CXX"; then
12850     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12851   fi
12852
12853 fi
12854
12855   aix_libpath=$lt_cv_aix_libpath__CXX
12856 fi
12857
12858             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12859             # Warning - without using the other run time loading flags,
12860             # -berok will link without error, but may produce a broken library.
12861             no_undefined_flag_CXX=' ${wl}-bernotok'
12862             allow_undefined_flag_CXX=' ${wl}-berok'
12863             if test "$with_gnu_ld" = yes; then
12864               # We only use this code for GNU lds that support --whole-archive.
12865               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12866             else
12867               # Exported symbols can be pulled into shared objects from archives
12868               whole_archive_flag_spec_CXX='$convenience'
12869             fi
12870             archive_cmds_need_lc_CXX=yes
12871             # This is similar to how AIX traditionally builds its shared
12872             # libraries.
12873             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'
12874           fi
12875         fi
12876         ;;
12877
12878       beos*)
12879         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12880           allow_undefined_flag_CXX=unsupported
12881           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12882           # support --undefined.  This deserves some investigation.  FIXME
12883           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12884         else
12885           ld_shlibs_CXX=no
12886         fi
12887         ;;
12888
12889       chorus*)
12890         case $cc_basename in
12891           *)
12892           # FIXME: insert proper C++ library support
12893           ld_shlibs_CXX=no
12894           ;;
12895         esac
12896         ;;
12897
12898       cygwin* | mingw* | pw32* | cegcc*)
12899         case $GXX,$cc_basename in
12900         ,cl* | no,cl*)
12901           # Native MSVC
12902           # hardcode_libdir_flag_spec is actually meaningless, as there is
12903           # no search path for DLLs.
12904           hardcode_libdir_flag_spec_CXX=' '
12905           allow_undefined_flag_CXX=unsupported
12906           always_export_symbols_CXX=yes
12907           file_list_spec_CXX='@'
12908           # Tell ltmain to make .lib files, not .a files.
12909           libext=lib
12910           # Tell ltmain to make .dll files, not .so files.
12911           shrext_cmds=".dll"
12912           # FIXME: Setting linknames here is a bad hack.
12913           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12914           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12915               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12916             else
12917               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12918             fi~
12919             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12920             linknames='
12921           # The linker will not automatically build a static lib if we build a DLL.
12922           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12923           enable_shared_with_static_runtimes_CXX=yes
12924           # Don't use ranlib
12925           old_postinstall_cmds_CXX='chmod 644 $oldlib'
12926           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12927             lt_tool_outputfile="@TOOL_OUTPUT@"~
12928             case $lt_outputfile in
12929               *.exe|*.EXE) ;;
12930               *)
12931                 lt_outputfile="$lt_outputfile.exe"
12932                 lt_tool_outputfile="$lt_tool_outputfile.exe"
12933                 ;;
12934             esac~
12935             func_to_tool_file "$lt_outputfile"~
12936             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12937               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12938               $RM "$lt_outputfile.manifest";
12939             fi'
12940           ;;
12941         *)
12942           # g++
12943           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12944           # as there is no search path for DLLs.
12945           hardcode_libdir_flag_spec_CXX='-L$libdir'
12946           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12947           allow_undefined_flag_CXX=unsupported
12948           always_export_symbols_CXX=no
12949           enable_shared_with_static_runtimes_CXX=yes
12950
12951           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12952             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'
12953             # If the export-symbols file already is a .def file (1st line
12954             # is EXPORTS), use it as is; otherwise, prepend...
12955             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12956               cp $export_symbols $output_objdir/$soname.def;
12957             else
12958               echo EXPORTS > $output_objdir/$soname.def;
12959               cat $export_symbols >> $output_objdir/$soname.def;
12960             fi~
12961             $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'
12962           else
12963             ld_shlibs_CXX=no
12964           fi
12965           ;;
12966         esac
12967         ;;
12968       darwin* | rhapsody*)
12969
12970
12971   archive_cmds_need_lc_CXX=no
12972   hardcode_direct_CXX=no
12973   hardcode_automatic_CXX=yes
12974   hardcode_shlibpath_var_CXX=unsupported
12975   if test "$lt_cv_ld_force_load" = "yes"; then
12976     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\"`'
12977
12978   else
12979     whole_archive_flag_spec_CXX=''
12980   fi
12981   link_all_deplibs_CXX=yes
12982   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12983   case $cc_basename in
12984      ifort*) _lt_dar_can_shared=yes ;;
12985      *) _lt_dar_can_shared=$GCC ;;
12986   esac
12987   if test "$_lt_dar_can_shared" = "yes"; then
12988     output_verbose_link_cmd=func_echo_all
12989     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}"
12990     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12991     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}"
12992     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}"
12993        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12994       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}"
12995       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}"
12996     fi
12997
12998   else
12999   ld_shlibs_CXX=no
13000   fi
13001
13002         ;;
13003
13004       dgux*)
13005         case $cc_basename in
13006           ec++*)
13007             # FIXME: insert proper C++ library support
13008             ld_shlibs_CXX=no
13009             ;;
13010           ghcx*)
13011             # Green Hills C++ Compiler
13012             # FIXME: insert proper C++ library support
13013             ld_shlibs_CXX=no
13014             ;;
13015           *)
13016             # FIXME: insert proper C++ library support
13017             ld_shlibs_CXX=no
13018             ;;
13019         esac
13020         ;;
13021
13022       freebsd2.*)
13023         # C++ shared libraries reported to be fairly broken before
13024         # switch to ELF
13025         ld_shlibs_CXX=no
13026         ;;
13027
13028       freebsd-elf*)
13029         archive_cmds_need_lc_CXX=no
13030         ;;
13031
13032       freebsd* | dragonfly*)
13033         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13034         # conventions
13035         ld_shlibs_CXX=yes
13036         ;;
13037
13038       gnu*)
13039         ;;
13040
13041       haiku*)
13042         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13043         link_all_deplibs_CXX=yes
13044         ;;
13045
13046       hpux9*)
13047         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13048         hardcode_libdir_separator_CXX=:
13049         export_dynamic_flag_spec_CXX='${wl}-E'
13050         hardcode_direct_CXX=yes
13051         hardcode_minus_L_CXX=yes # Not in the search PATH,
13052                                              # but as the default
13053                                              # location of the library.
13054
13055         case $cc_basename in
13056           CC*)
13057             # FIXME: insert proper C++ library support
13058             ld_shlibs_CXX=no
13059             ;;
13060           aCC*)
13061             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'
13062             # Commands to make compiler produce verbose output that lists
13063             # what "hidden" libraries, object files and flags are used when
13064             # linking a shared library.
13065             #
13066             # There doesn't appear to be a way to prevent this compiler from
13067             # explicitly linking system object files so we need to strip them
13068             # from the output so that they don't get included in the library
13069             # dependencies.
13070             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"'
13071             ;;
13072           *)
13073             if test "$GXX" = yes; then
13074               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'
13075             else
13076               # FIXME: insert proper C++ library support
13077               ld_shlibs_CXX=no
13078             fi
13079             ;;
13080         esac
13081         ;;
13082
13083       hpux10*|hpux11*)
13084         if test $with_gnu_ld = no; then
13085           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13086           hardcode_libdir_separator_CXX=:
13087
13088           case $host_cpu in
13089             hppa*64*|ia64*)
13090               ;;
13091             *)
13092               export_dynamic_flag_spec_CXX='${wl}-E'
13093               ;;
13094           esac
13095         fi
13096         case $host_cpu in
13097           hppa*64*|ia64*)
13098             hardcode_direct_CXX=no
13099             hardcode_shlibpath_var_CXX=no
13100             ;;
13101           *)
13102             hardcode_direct_CXX=yes
13103             hardcode_direct_absolute_CXX=yes
13104             hardcode_minus_L_CXX=yes # Not in the search PATH,
13105                                                  # but as the default
13106                                                  # location of the library.
13107             ;;
13108         esac
13109
13110         case $cc_basename in
13111           CC*)
13112             # FIXME: insert proper C++ library support
13113             ld_shlibs_CXX=no
13114             ;;
13115           aCC*)
13116             case $host_cpu in
13117               hppa*64*)
13118                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13119                 ;;
13120               ia64*)
13121                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13122                 ;;
13123               *)
13124                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13125                 ;;
13126             esac
13127             # Commands to make compiler produce verbose output that lists
13128             # what "hidden" libraries, object files and flags are used when
13129             # linking a shared library.
13130             #
13131             # There doesn't appear to be a way to prevent this compiler from
13132             # explicitly linking system object files so we need to strip them
13133             # from the output so that they don't get included in the library
13134             # dependencies.
13135             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"'
13136             ;;
13137           *)
13138             if test "$GXX" = yes; then
13139               if test $with_gnu_ld = no; then
13140                 case $host_cpu in
13141                   hppa*64*)
13142                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13143                     ;;
13144                   ia64*)
13145                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13146                     ;;
13147                   *)
13148                     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'
13149                     ;;
13150                 esac
13151               fi
13152             else
13153               # FIXME: insert proper C++ library support
13154               ld_shlibs_CXX=no
13155             fi
13156             ;;
13157         esac
13158         ;;
13159
13160       interix[3-9]*)
13161         hardcode_direct_CXX=no
13162         hardcode_shlibpath_var_CXX=no
13163         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13164         export_dynamic_flag_spec_CXX='${wl}-E'
13165         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13166         # Instead, shared libraries are loaded at an image base (0x10000000 by
13167         # default) and relocated if they conflict, which is a slow very memory
13168         # consuming and fragmenting process.  To avoid this, we pick a random,
13169         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13170         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13171         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'
13172         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'
13173         ;;
13174       irix5* | irix6*)
13175         case $cc_basename in
13176           CC*)
13177             # SGI C++
13178             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'
13179
13180             # Archives containing C++ object files must be created using
13181             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13182             # necessary to make sure instantiated templates are included
13183             # in the archive.
13184             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13185             ;;
13186           *)
13187             if test "$GXX" = yes; then
13188               if test "$with_gnu_ld" = no; then
13189                 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'
13190               else
13191                 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'
13192               fi
13193             fi
13194             link_all_deplibs_CXX=yes
13195             ;;
13196         esac
13197         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13198         hardcode_libdir_separator_CXX=:
13199         inherit_rpath_CXX=yes
13200         ;;
13201
13202       linux* | k*bsd*-gnu | kopensolaris*-gnu)
13203         case $cc_basename in
13204           KCC*)
13205             # Kuck and Associates, Inc. (KAI) C++ Compiler
13206
13207             # KCC will only create a shared library if the output file
13208             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13209             # to its proper name (with version) after linking.
13210             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'
13211             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'
13212             # Commands to make compiler produce verbose output that lists
13213             # what "hidden" libraries, object files and flags are used when
13214             # linking a shared library.
13215             #
13216             # There doesn't appear to be a way to prevent this compiler from
13217             # explicitly linking system object files so we need to strip them
13218             # from the output so that they don't get included in the library
13219             # dependencies.
13220             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"'
13221
13222             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13223             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13224
13225             # Archives containing C++ object files must be created using
13226             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13227             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13228             ;;
13229           icpc* | ecpc* )
13230             # Intel C++
13231             with_gnu_ld=yes
13232             # version 8.0 and above of icpc choke on multiply defined symbols
13233             # if we add $predep_objects and $postdep_objects, however 7.1 and
13234             # earlier do not add the objects themselves.
13235             case `$CC -V 2>&1` in
13236               *"Version 7."*)
13237                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13238                 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'
13239                 ;;
13240               *)  # Version 8.0 or newer
13241                 tmp_idyn=
13242                 case $host_cpu in
13243                   ia64*) tmp_idyn=' -i_dynamic';;
13244                 esac
13245                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13246                 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'
13247                 ;;
13248             esac
13249             archive_cmds_need_lc_CXX=no
13250             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13251             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13252             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13253             ;;
13254           pgCC* | pgcpp*)
13255             # Portland Group C++ compiler
13256             case `$CC -V` in
13257             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13258               prelink_cmds_CXX='tpldir=Template.dir~
13259                 rm -rf $tpldir~
13260                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13261                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13262               old_archive_cmds_CXX='tpldir=Template.dir~
13263                 rm -rf $tpldir~
13264                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13265                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13266                 $RANLIB $oldlib'
13267               archive_cmds_CXX='tpldir=Template.dir~
13268                 rm -rf $tpldir~
13269                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13270                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13271               archive_expsym_cmds_CXX='tpldir=Template.dir~
13272                 rm -rf $tpldir~
13273                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13274                 $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'
13275               ;;
13276             *) # Version 6 and above use weak symbols
13277               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13278               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'
13279               ;;
13280             esac
13281
13282             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13283             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13284             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'
13285             ;;
13286           cxx*)
13287             # Compaq C++
13288             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13289             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'
13290
13291             runpath_var=LD_RUN_PATH
13292             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13293             hardcode_libdir_separator_CXX=:
13294
13295             # Commands to make compiler produce verbose output that lists
13296             # what "hidden" libraries, object files and flags are used when
13297             # linking a shared library.
13298             #
13299             # There doesn't appear to be a way to prevent this compiler from
13300             # explicitly linking system object files so we need to strip them
13301             # from the output so that they don't get included in the library
13302             # dependencies.
13303             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'
13304             ;;
13305           xl* | mpixl* | bgxl*)
13306             # IBM XL 8.0 on PPC, with GNU ld
13307             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13308             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13309             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13310             if test "x$supports_anon_versioning" = xyes; then
13311               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13312                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13313                 echo "local: *; };" >> $output_objdir/$libname.ver~
13314                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13315             fi
13316             ;;
13317           *)
13318             case `$CC -V 2>&1 | sed 5q` in
13319             *Sun\ C*)
13320               # Sun C++ 5.9
13321               no_undefined_flag_CXX=' -zdefs'
13322               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13323               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'
13324               hardcode_libdir_flag_spec_CXX='-R$libdir'
13325               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'
13326               compiler_needs_object_CXX=yes
13327
13328               # Not sure whether something based on
13329               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13330               # would be better.
13331               output_verbose_link_cmd='func_echo_all'
13332
13333               # Archives containing C++ object files must be created using
13334               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13335               # necessary to make sure instantiated templates are included
13336               # in the archive.
13337               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13338               ;;
13339             esac
13340             ;;
13341         esac
13342         ;;
13343
13344       lynxos*)
13345         # FIXME: insert proper C++ library support
13346         ld_shlibs_CXX=no
13347         ;;
13348
13349       m88k*)
13350         # FIXME: insert proper C++ library support
13351         ld_shlibs_CXX=no
13352         ;;
13353
13354       mvs*)
13355         case $cc_basename in
13356           cxx*)
13357             # FIXME: insert proper C++ library support
13358             ld_shlibs_CXX=no
13359             ;;
13360           *)
13361             # FIXME: insert proper C++ library support
13362             ld_shlibs_CXX=no
13363             ;;
13364         esac
13365         ;;
13366
13367       netbsd*)
13368         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13369           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13370           wlarc=
13371           hardcode_libdir_flag_spec_CXX='-R$libdir'
13372           hardcode_direct_CXX=yes
13373           hardcode_shlibpath_var_CXX=no
13374         fi
13375         # Workaround some broken pre-1.5 toolchains
13376         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13377         ;;
13378
13379       *nto* | *qnx*)
13380         ld_shlibs_CXX=yes
13381         ;;
13382
13383       openbsd2*)
13384         # C++ shared libraries are fairly broken
13385         ld_shlibs_CXX=no
13386         ;;
13387
13388       openbsd*)
13389         if test -f /usr/libexec/ld.so; then
13390           hardcode_direct_CXX=yes
13391           hardcode_shlibpath_var_CXX=no
13392           hardcode_direct_absolute_CXX=yes
13393           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13394           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13395           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13396             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13397             export_dynamic_flag_spec_CXX='${wl}-E'
13398             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13399           fi
13400           output_verbose_link_cmd=func_echo_all
13401         else
13402           ld_shlibs_CXX=no
13403         fi
13404         ;;
13405
13406       osf3* | osf4* | osf5*)
13407         case $cc_basename in
13408           KCC*)
13409             # Kuck and Associates, Inc. (KAI) C++ Compiler
13410
13411             # KCC will only create a shared library if the output file
13412             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13413             # to its proper name (with version) after linking.
13414             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'
13415
13416             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13417             hardcode_libdir_separator_CXX=:
13418
13419             # Archives containing C++ object files must be created using
13420             # the KAI C++ compiler.
13421             case $host in
13422               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13423               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13424             esac
13425             ;;
13426           RCC*)
13427             # Rational C++ 2.4.1
13428             # FIXME: insert proper C++ library support
13429             ld_shlibs_CXX=no
13430             ;;
13431           cxx*)
13432             case $host in
13433               osf3*)
13434                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13435                 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'
13436                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13437                 ;;
13438               *)
13439                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13440                 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'
13441                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13442                   echo "-hidden">> $lib.exp~
13443                   $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~
13444                   $RM $lib.exp'
13445                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13446                 ;;
13447             esac
13448
13449             hardcode_libdir_separator_CXX=:
13450
13451             # Commands to make compiler produce verbose output that lists
13452             # what "hidden" libraries, object files and flags are used when
13453             # linking a shared library.
13454             #
13455             # There doesn't appear to be a way to prevent this compiler from
13456             # explicitly linking system object files so we need to strip them
13457             # from the output so that they don't get included in the library
13458             # dependencies.
13459             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"'
13460             ;;
13461           *)
13462             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13463               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13464               case $host in
13465                 osf3*)
13466                   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'
13467                   ;;
13468                 *)
13469                   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'
13470                   ;;
13471               esac
13472
13473               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13474               hardcode_libdir_separator_CXX=:
13475
13476               # Commands to make compiler produce verbose output that lists
13477               # what "hidden" libraries, object files and flags are used when
13478               # linking a shared library.
13479               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13480
13481             else
13482               # FIXME: insert proper C++ library support
13483               ld_shlibs_CXX=no
13484             fi
13485             ;;
13486         esac
13487         ;;
13488
13489       psos*)
13490         # FIXME: insert proper C++ library support
13491         ld_shlibs_CXX=no
13492         ;;
13493
13494       sunos4*)
13495         case $cc_basename in
13496           CC*)
13497             # Sun C++ 4.x
13498             # FIXME: insert proper C++ library support
13499             ld_shlibs_CXX=no
13500             ;;
13501           lcc*)
13502             # Lucid
13503             # FIXME: insert proper C++ library support
13504             ld_shlibs_CXX=no
13505             ;;
13506           *)
13507             # FIXME: insert proper C++ library support
13508             ld_shlibs_CXX=no
13509             ;;
13510         esac
13511         ;;
13512
13513       solaris*)
13514         case $cc_basename in
13515           CC* | sunCC*)
13516             # Sun C++ 4.2, 5.x and Centerline C++
13517             archive_cmds_need_lc_CXX=yes
13518             no_undefined_flag_CXX=' -zdefs'
13519             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13520             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13521               $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'
13522
13523             hardcode_libdir_flag_spec_CXX='-R$libdir'
13524             hardcode_shlibpath_var_CXX=no
13525             case $host_os in
13526               solaris2.[0-5] | solaris2.[0-5].*) ;;
13527               *)
13528                 # The compiler driver will combine and reorder linker options,
13529                 # but understands `-z linker_flag'.
13530                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13531                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13532                 ;;
13533             esac
13534             link_all_deplibs_CXX=yes
13535
13536             output_verbose_link_cmd='func_echo_all'
13537
13538             # Archives containing C++ object files must be created using
13539             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13540             # necessary to make sure instantiated templates are included
13541             # in the archive.
13542             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13543             ;;
13544           gcx*)
13545             # Green Hills C++ Compiler
13546             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13547
13548             # The C++ compiler must be used to create the archive.
13549             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13550             ;;
13551           *)
13552             # GNU C++ compiler with Solaris linker
13553             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13554               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13555               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13556                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13557                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13558                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13559
13560                 # Commands to make compiler produce verbose output that lists
13561                 # what "hidden" libraries, object files and flags are used when
13562                 # linking a shared library.
13563                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13564               else
13565                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13566                 # platform.
13567                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13568                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13569                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13570
13571                 # Commands to make compiler produce verbose output that lists
13572                 # what "hidden" libraries, object files and flags are used when
13573                 # linking a shared library.
13574                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13575               fi
13576
13577               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13578               case $host_os in
13579                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13580                 *)
13581                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13582                   ;;
13583               esac
13584             fi
13585             ;;
13586         esac
13587         ;;
13588
13589     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13590       no_undefined_flag_CXX='${wl}-z,text'
13591       archive_cmds_need_lc_CXX=no
13592       hardcode_shlibpath_var_CXX=no
13593       runpath_var='LD_RUN_PATH'
13594
13595       case $cc_basename in
13596         CC*)
13597           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13598           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13599           ;;
13600         *)
13601           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13602           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13603           ;;
13604       esac
13605       ;;
13606
13607       sysv5* | sco3.2v5* | sco5v6*)
13608         # Note: We can NOT use -z defs as we might desire, because we do not
13609         # link with -lc, and that would cause any symbols used from libc to
13610         # always be unresolved, which means just about no library would
13611         # ever link correctly.  If we're not using GNU ld we use -z text
13612         # though, which does catch some bad symbols but isn't as heavy-handed
13613         # as -z defs.
13614         no_undefined_flag_CXX='${wl}-z,text'
13615         allow_undefined_flag_CXX='${wl}-z,nodefs'
13616         archive_cmds_need_lc_CXX=no
13617         hardcode_shlibpath_var_CXX=no
13618         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13619         hardcode_libdir_separator_CXX=':'
13620         link_all_deplibs_CXX=yes
13621         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13622         runpath_var='LD_RUN_PATH'
13623
13624         case $cc_basename in
13625           CC*)
13626             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13627             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13628             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13629               '"$old_archive_cmds_CXX"
13630             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13631               '"$reload_cmds_CXX"
13632             ;;
13633           *)
13634             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13635             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13636             ;;
13637         esac
13638       ;;
13639
13640       tandem*)
13641         case $cc_basename in
13642           NCC*)
13643             # NonStop-UX NCC 3.20
13644             # FIXME: insert proper C++ library support
13645             ld_shlibs_CXX=no
13646             ;;
13647           *)
13648             # FIXME: insert proper C++ library support
13649             ld_shlibs_CXX=no
13650             ;;
13651         esac
13652         ;;
13653
13654       vxworks*)
13655         # FIXME: insert proper C++ library support
13656         ld_shlibs_CXX=no
13657         ;;
13658
13659       *)
13660         # FIXME: insert proper C++ library support
13661         ld_shlibs_CXX=no
13662         ;;
13663     esac
13664
13665     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13666 $as_echo "$ld_shlibs_CXX" >&6; }
13667     test "$ld_shlibs_CXX" = no && can_build_shared=no
13668
13669     GCC_CXX="$GXX"
13670     LD_CXX="$LD"
13671
13672     ## CAVEAT EMPTOR:
13673     ## There is no encapsulation within the following macros, do not change
13674     ## the running order or otherwise move them around unless you know exactly
13675     ## what you are doing...
13676     # Dependencies to place before and after the object being linked:
13677 predep_objects_CXX=
13678 postdep_objects_CXX=
13679 predeps_CXX=
13680 postdeps_CXX=
13681 compiler_lib_search_path_CXX=
13682
13683 cat > conftest.$ac_ext <<_LT_EOF
13684 class Foo
13685 {
13686 public:
13687   Foo (void) { a = 0; }
13688 private:
13689   int a;
13690 };
13691 _LT_EOF
13692
13693
13694 _lt_libdeps_save_CFLAGS=$CFLAGS
13695 case "$CC $CFLAGS " in #(
13696 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13697 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13698 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13699 esac
13700
13701 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13702   (eval $ac_compile) 2>&5
13703   ac_status=$?
13704   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13705   test $ac_status = 0; }; then
13706   # Parse the compiler output and extract the necessary
13707   # objects, libraries and library flags.
13708
13709   # Sentinel used to keep track of whether or not we are before
13710   # the conftest object file.
13711   pre_test_object_deps_done=no
13712
13713   for p in `eval "$output_verbose_link_cmd"`; do
13714     case ${prev}${p} in
13715
13716     -L* | -R* | -l*)
13717        # Some compilers place space between "-{L,R}" and the path.
13718        # Remove the space.
13719        if test $p = "-L" ||
13720           test $p = "-R"; then
13721          prev=$p
13722          continue
13723        fi
13724
13725        # Expand the sysroot to ease extracting the directories later.
13726        if test -z "$prev"; then
13727          case $p in
13728          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13729          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13730          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13731          esac
13732        fi
13733        case $p in
13734        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13735        esac
13736        if test "$pre_test_object_deps_done" = no; then
13737          case ${prev} in
13738          -L | -R)
13739            # Internal compiler library paths should come after those
13740            # provided the user.  The postdeps already come after the
13741            # user supplied libs so there is no need to process them.
13742            if test -z "$compiler_lib_search_path_CXX"; then
13743              compiler_lib_search_path_CXX="${prev}${p}"
13744            else
13745              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13746            fi
13747            ;;
13748          # The "-l" case would never come before the object being
13749          # linked, so don't bother handling this case.
13750          esac
13751        else
13752          if test -z "$postdeps_CXX"; then
13753            postdeps_CXX="${prev}${p}"
13754          else
13755            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13756          fi
13757        fi
13758        prev=
13759        ;;
13760
13761     *.lto.$objext) ;; # Ignore GCC LTO objects
13762     *.$objext)
13763        # This assumes that the test object file only shows up
13764        # once in the compiler output.
13765        if test "$p" = "conftest.$objext"; then
13766          pre_test_object_deps_done=yes
13767          continue
13768        fi
13769
13770        if test "$pre_test_object_deps_done" = no; then
13771          if test -z "$predep_objects_CXX"; then
13772            predep_objects_CXX="$p"
13773          else
13774            predep_objects_CXX="$predep_objects_CXX $p"
13775          fi
13776        else
13777          if test -z "$postdep_objects_CXX"; then
13778            postdep_objects_CXX="$p"
13779          else
13780            postdep_objects_CXX="$postdep_objects_CXX $p"
13781          fi
13782        fi
13783        ;;
13784
13785     *) ;; # Ignore the rest.
13786
13787     esac
13788   done
13789
13790   # Clean up.
13791   rm -f a.out a.exe
13792 else
13793   echo "libtool.m4: error: problem compiling CXX test program"
13794 fi
13795
13796 $RM -f confest.$objext
13797 CFLAGS=$_lt_libdeps_save_CFLAGS
13798
13799 # PORTME: override above test on systems where it is broken
13800 case $host_os in
13801 interix[3-9]*)
13802   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13803   # hack all around it, let's just trust "g++" to DTRT.
13804   predep_objects_CXX=
13805   postdep_objects_CXX=
13806   postdeps_CXX=
13807   ;;
13808
13809 linux*)
13810   case `$CC -V 2>&1 | sed 5q` in
13811   *Sun\ C*)
13812     # Sun C++ 5.9
13813
13814     # The more standards-conforming stlport4 library is
13815     # incompatible with the Cstd library. Avoid specifying
13816     # it if it's in CXXFLAGS. Ignore libCrun as
13817     # -library=stlport4 depends on it.
13818     case " $CXX $CXXFLAGS " in
13819     *" -library=stlport4 "*)
13820       solaris_use_stlport4=yes
13821       ;;
13822     esac
13823
13824     if test "$solaris_use_stlport4" != yes; then
13825       postdeps_CXX='-library=Cstd -library=Crun'
13826     fi
13827     ;;
13828   esac
13829   ;;
13830
13831 solaris*)
13832   case $cc_basename in
13833   CC* | sunCC*)
13834     # The more standards-conforming stlport4 library is
13835     # incompatible with the Cstd library. Avoid specifying
13836     # it if it's in CXXFLAGS. Ignore libCrun as
13837     # -library=stlport4 depends on it.
13838     case " $CXX $CXXFLAGS " in
13839     *" -library=stlport4 "*)
13840       solaris_use_stlport4=yes
13841       ;;
13842     esac
13843
13844     # Adding this requires a known-good setup of shared libraries for
13845     # Sun compiler versions before 5.6, else PIC objects from an old
13846     # archive will be linked into the output, leading to subtle bugs.
13847     if test "$solaris_use_stlport4" != yes; then
13848       postdeps_CXX='-library=Cstd -library=Crun'
13849     fi
13850     ;;
13851   esac
13852   ;;
13853 esac
13854
13855
13856 case " $postdeps_CXX " in
13857 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13858 esac
13859  compiler_lib_search_dirs_CXX=
13860 if test -n "${compiler_lib_search_path_CXX}"; then
13861  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13862 fi
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894     lt_prog_compiler_wl_CXX=
13895 lt_prog_compiler_pic_CXX=
13896 lt_prog_compiler_static_CXX=
13897
13898
13899   # C++ specific cases for pic, static, wl, etc.
13900   if test "$GXX" = yes; then
13901     lt_prog_compiler_wl_CXX='-Wl,'
13902     lt_prog_compiler_static_CXX='-static'
13903
13904     case $host_os in
13905     aix*)
13906       # All AIX code is PIC.
13907       if test "$host_cpu" = ia64; then
13908         # AIX 5 now supports IA64 processor
13909         lt_prog_compiler_static_CXX='-Bstatic'
13910       fi
13911       ;;
13912
13913     amigaos*)
13914       case $host_cpu in
13915       powerpc)
13916             # see comment about AmigaOS4 .so support
13917             lt_prog_compiler_pic_CXX='-fPIC'
13918         ;;
13919       m68k)
13920             # FIXME: we need at least 68020 code to build shared libraries, but
13921             # adding the `-m68020' flag to GCC prevents building anything better,
13922             # like `-m68040'.
13923             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13924         ;;
13925       esac
13926       ;;
13927
13928     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13929       # PIC is the default for these OSes.
13930       ;;
13931     mingw* | cygwin* | os2* | pw32* | cegcc*)
13932       # This hack is so that the source file can tell whether it is being
13933       # built for inclusion in a dll (and should export symbols for example).
13934       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13935       # (--disable-auto-import) libraries
13936       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13937       ;;
13938     darwin* | rhapsody*)
13939       # PIC is the default on this platform
13940       # Common symbols not allowed in MH_DYLIB files
13941       lt_prog_compiler_pic_CXX='-fno-common'
13942       ;;
13943     *djgpp*)
13944       # DJGPP does not support shared libraries at all
13945       lt_prog_compiler_pic_CXX=
13946       ;;
13947     haiku*)
13948       # PIC is the default for Haiku.
13949       # The "-static" flag exists, but is broken.
13950       lt_prog_compiler_static_CXX=
13951       ;;
13952     interix[3-9]*)
13953       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13954       # Instead, we relocate shared libraries at runtime.
13955       ;;
13956     sysv4*MP*)
13957       if test -d /usr/nec; then
13958         lt_prog_compiler_pic_CXX=-Kconform_pic
13959       fi
13960       ;;
13961     hpux*)
13962       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13963       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13964       # sets the default TLS model and affects inlining.
13965       case $host_cpu in
13966       hppa*64*)
13967         ;;
13968       *)
13969         lt_prog_compiler_pic_CXX='-fPIC'
13970         ;;
13971       esac
13972       ;;
13973     *qnx* | *nto*)
13974       # QNX uses GNU C++, but need to define -shared option too, otherwise
13975       # it will coredump.
13976       lt_prog_compiler_pic_CXX='-fPIC -shared'
13977       ;;
13978     *)
13979       lt_prog_compiler_pic_CXX='-fPIC'
13980       ;;
13981     esac
13982   else
13983     case $host_os in
13984       aix[4-9]*)
13985         # All AIX code is PIC.
13986         if test "$host_cpu" = ia64; then
13987           # AIX 5 now supports IA64 processor
13988           lt_prog_compiler_static_CXX='-Bstatic'
13989         else
13990           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13991         fi
13992         ;;
13993       chorus*)
13994         case $cc_basename in
13995         cxch68*)
13996           # Green Hills C++ Compiler
13997           # _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"
13998           ;;
13999         esac
14000         ;;
14001       mingw* | cygwin* | os2* | pw32* | cegcc*)
14002         # This hack is so that the source file can tell whether it is being
14003         # built for inclusion in a dll (and should export symbols for example).
14004         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14005         ;;
14006       dgux*)
14007         case $cc_basename in
14008           ec++*)
14009             lt_prog_compiler_pic_CXX='-KPIC'
14010             ;;
14011           ghcx*)
14012             # Green Hills C++ Compiler
14013             lt_prog_compiler_pic_CXX='-pic'
14014             ;;
14015           *)
14016             ;;
14017         esac
14018         ;;
14019       freebsd* | dragonfly*)
14020         # FreeBSD uses GNU C++
14021         ;;
14022       hpux9* | hpux10* | hpux11*)
14023         case $cc_basename in
14024           CC*)
14025             lt_prog_compiler_wl_CXX='-Wl,'
14026             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14027             if test "$host_cpu" != ia64; then
14028               lt_prog_compiler_pic_CXX='+Z'
14029             fi
14030             ;;
14031           aCC*)
14032             lt_prog_compiler_wl_CXX='-Wl,'
14033             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14034             case $host_cpu in
14035             hppa*64*|ia64*)
14036               # +Z the default
14037               ;;
14038             *)
14039               lt_prog_compiler_pic_CXX='+Z'
14040               ;;
14041             esac
14042             ;;
14043           *)
14044             ;;
14045         esac
14046         ;;
14047       interix*)
14048         # This is c89, which is MS Visual C++ (no shared libs)
14049         # Anyone wants to do a port?
14050         ;;
14051       irix5* | irix6* | nonstopux*)
14052         case $cc_basename in
14053           CC*)
14054             lt_prog_compiler_wl_CXX='-Wl,'
14055             lt_prog_compiler_static_CXX='-non_shared'
14056             # CC pic flag -KPIC is the default.
14057             ;;
14058           *)
14059             ;;
14060         esac
14061         ;;
14062       linux* | k*bsd*-gnu | kopensolaris*-gnu)
14063         case $cc_basename in
14064           KCC*)
14065             # KAI C++ Compiler
14066             lt_prog_compiler_wl_CXX='--backend -Wl,'
14067             lt_prog_compiler_pic_CXX='-fPIC'
14068             ;;
14069           ecpc* )
14070             # old Intel C++ for x86_64 which still supported -KPIC.
14071             lt_prog_compiler_wl_CXX='-Wl,'
14072             lt_prog_compiler_pic_CXX='-KPIC'
14073             lt_prog_compiler_static_CXX='-static'
14074             ;;
14075           icpc* )
14076             # Intel C++, used to be incompatible with GCC.
14077             # ICC 10 doesn't accept -KPIC any more.
14078             lt_prog_compiler_wl_CXX='-Wl,'
14079             lt_prog_compiler_pic_CXX='-fPIC'
14080             lt_prog_compiler_static_CXX='-static'
14081             ;;
14082           pgCC* | pgcpp*)
14083             # Portland Group C++ compiler
14084             lt_prog_compiler_wl_CXX='-Wl,'
14085             lt_prog_compiler_pic_CXX='-fpic'
14086             lt_prog_compiler_static_CXX='-Bstatic'
14087             ;;
14088           cxx*)
14089             # Compaq C++
14090             # Make sure the PIC flag is empty.  It appears that all Alpha
14091             # Linux and Compaq Tru64 Unix objects are PIC.
14092             lt_prog_compiler_pic_CXX=
14093             lt_prog_compiler_static_CXX='-non_shared'
14094             ;;
14095           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14096             # IBM XL 8.0, 9.0 on PPC and BlueGene
14097             lt_prog_compiler_wl_CXX='-Wl,'
14098             lt_prog_compiler_pic_CXX='-qpic'
14099             lt_prog_compiler_static_CXX='-qstaticlink'
14100             ;;
14101           *)
14102             case `$CC -V 2>&1 | sed 5q` in
14103             *Sun\ C*)
14104               # Sun C++ 5.9
14105               lt_prog_compiler_pic_CXX='-KPIC'
14106               lt_prog_compiler_static_CXX='-Bstatic'
14107               lt_prog_compiler_wl_CXX='-Qoption ld '
14108               ;;
14109             esac
14110             ;;
14111         esac
14112         ;;
14113       lynxos*)
14114         ;;
14115       m88k*)
14116         ;;
14117       mvs*)
14118         case $cc_basename in
14119           cxx*)
14120             lt_prog_compiler_pic_CXX='-W c,exportall'
14121             ;;
14122           *)
14123             ;;
14124         esac
14125         ;;
14126       netbsd*)
14127         ;;
14128       *qnx* | *nto*)
14129         # QNX uses GNU C++, but need to define -shared option too, otherwise
14130         # it will coredump.
14131         lt_prog_compiler_pic_CXX='-fPIC -shared'
14132         ;;
14133       osf3* | osf4* | osf5*)
14134         case $cc_basename in
14135           KCC*)
14136             lt_prog_compiler_wl_CXX='--backend -Wl,'
14137             ;;
14138           RCC*)
14139             # Rational C++ 2.4.1
14140             lt_prog_compiler_pic_CXX='-pic'
14141             ;;
14142           cxx*)
14143             # Digital/Compaq C++
14144             lt_prog_compiler_wl_CXX='-Wl,'
14145             # Make sure the PIC flag is empty.  It appears that all Alpha
14146             # Linux and Compaq Tru64 Unix objects are PIC.
14147             lt_prog_compiler_pic_CXX=
14148             lt_prog_compiler_static_CXX='-non_shared'
14149             ;;
14150           *)
14151             ;;
14152         esac
14153         ;;
14154       psos*)
14155         ;;
14156       solaris*)
14157         case $cc_basename in
14158           CC* | sunCC*)
14159             # Sun C++ 4.2, 5.x and Centerline C++
14160             lt_prog_compiler_pic_CXX='-KPIC'
14161             lt_prog_compiler_static_CXX='-Bstatic'
14162             lt_prog_compiler_wl_CXX='-Qoption ld '
14163             ;;
14164           gcx*)
14165             # Green Hills C++ Compiler
14166             lt_prog_compiler_pic_CXX='-PIC'
14167             ;;
14168           *)
14169             ;;
14170         esac
14171         ;;
14172       sunos4*)
14173         case $cc_basename in
14174           CC*)
14175             # Sun C++ 4.x
14176             lt_prog_compiler_pic_CXX='-pic'
14177             lt_prog_compiler_static_CXX='-Bstatic'
14178             ;;
14179           lcc*)
14180             # Lucid
14181             lt_prog_compiler_pic_CXX='-pic'
14182             ;;
14183           *)
14184             ;;
14185         esac
14186         ;;
14187       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14188         case $cc_basename in
14189           CC*)
14190             lt_prog_compiler_wl_CXX='-Wl,'
14191             lt_prog_compiler_pic_CXX='-KPIC'
14192             lt_prog_compiler_static_CXX='-Bstatic'
14193             ;;
14194         esac
14195         ;;
14196       tandem*)
14197         case $cc_basename in
14198           NCC*)
14199             # NonStop-UX NCC 3.20
14200             lt_prog_compiler_pic_CXX='-KPIC'
14201             ;;
14202           *)
14203             ;;
14204         esac
14205         ;;
14206       vxworks*)
14207         ;;
14208       *)
14209         lt_prog_compiler_can_build_shared_CXX=no
14210         ;;
14211     esac
14212   fi
14213
14214 case $host_os in
14215   # For platforms which do not support PIC, -DPIC is meaningless:
14216   *djgpp*)
14217     lt_prog_compiler_pic_CXX=
14218     ;;
14219   *)
14220     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14221     ;;
14222 esac
14223
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14225 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14226 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14227   $as_echo_n "(cached) " >&6
14228 else
14229   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14230 fi
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14232 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14233 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14234
14235 #
14236 # Check to make sure the PIC flag actually works.
14237 #
14238 if test -n "$lt_prog_compiler_pic_CXX"; then
14239   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14240 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14241 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14242   $as_echo_n "(cached) " >&6
14243 else
14244   lt_cv_prog_compiler_pic_works_CXX=no
14245    ac_outfile=conftest.$ac_objext
14246    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14247    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14248    # Insert the option either (1) after the last *FLAGS variable, or
14249    # (2) before a word containing "conftest.", or (3) at the end.
14250    # Note that $ac_compile itself does not contain backslashes and begins
14251    # with a dollar sign (not a hyphen), so the echo should work correctly.
14252    # The option is referenced via a variable to avoid confusing sed.
14253    lt_compile=`echo "$ac_compile" | $SED \
14254    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14255    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14256    -e 's:$: $lt_compiler_flag:'`
14257    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14258    (eval "$lt_compile" 2>conftest.err)
14259    ac_status=$?
14260    cat conftest.err >&5
14261    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14262    if (exit $ac_status) && test -s "$ac_outfile"; then
14263      # The compiler can only warn and ignore the option if not recognized
14264      # So say no if there are warnings other than the usual output.
14265      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14266      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14267      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14268        lt_cv_prog_compiler_pic_works_CXX=yes
14269      fi
14270    fi
14271    $RM conftest*
14272
14273 fi
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14275 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14276
14277 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14278     case $lt_prog_compiler_pic_CXX in
14279      "" | " "*) ;;
14280      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14281      esac
14282 else
14283     lt_prog_compiler_pic_CXX=
14284      lt_prog_compiler_can_build_shared_CXX=no
14285 fi
14286
14287 fi
14288
14289
14290
14291
14292
14293 #
14294 # Check to make sure the static flag actually works.
14295 #
14296 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14298 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14299 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14300   $as_echo_n "(cached) " >&6
14301 else
14302   lt_cv_prog_compiler_static_works_CXX=no
14303    save_LDFLAGS="$LDFLAGS"
14304    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14305    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14306    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14307      # The linker can only warn and ignore the option if not recognized
14308      # So say no if there are warnings
14309      if test -s conftest.err; then
14310        # Append any errors to the config.log.
14311        cat conftest.err 1>&5
14312        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14313        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14314        if diff conftest.exp conftest.er2 >/dev/null; then
14315          lt_cv_prog_compiler_static_works_CXX=yes
14316        fi
14317      else
14318        lt_cv_prog_compiler_static_works_CXX=yes
14319      fi
14320    fi
14321    $RM -r conftest*
14322    LDFLAGS="$save_LDFLAGS"
14323
14324 fi
14325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14326 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14327
14328 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14329     :
14330 else
14331     lt_prog_compiler_static_CXX=
14332 fi
14333
14334
14335
14336
14337     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14338 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14339 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14340   $as_echo_n "(cached) " >&6
14341 else
14342   lt_cv_prog_compiler_c_o_CXX=no
14343    $RM -r conftest 2>/dev/null
14344    mkdir conftest
14345    cd conftest
14346    mkdir out
14347    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14348
14349    lt_compiler_flag="-o out/conftest2.$ac_objext"
14350    # Insert the option either (1) after the last *FLAGS variable, or
14351    # (2) before a word containing "conftest.", or (3) at the end.
14352    # Note that $ac_compile itself does not contain backslashes and begins
14353    # with a dollar sign (not a hyphen), so the echo should work correctly.
14354    lt_compile=`echo "$ac_compile" | $SED \
14355    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14356    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14357    -e 's:$: $lt_compiler_flag:'`
14358    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14359    (eval "$lt_compile" 2>out/conftest.err)
14360    ac_status=$?
14361    cat out/conftest.err >&5
14362    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14363    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14364    then
14365      # The compiler can only warn and ignore the option if not recognized
14366      # So say no if there are warnings
14367      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14368      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14369      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14370        lt_cv_prog_compiler_c_o_CXX=yes
14371      fi
14372    fi
14373    chmod u+w . 2>&5
14374    $RM conftest*
14375    # SGI C++ compiler will create directory out/ii_files/ for
14376    # template instantiation
14377    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14378    $RM out/* && rmdir out
14379    cd ..
14380    $RM -r conftest
14381    $RM conftest*
14382
14383 fi
14384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14385 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14386
14387
14388
14389     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14390 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14391 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14392   $as_echo_n "(cached) " >&6
14393 else
14394   lt_cv_prog_compiler_c_o_CXX=no
14395    $RM -r conftest 2>/dev/null
14396    mkdir conftest
14397    cd conftest
14398    mkdir out
14399    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14400
14401    lt_compiler_flag="-o out/conftest2.$ac_objext"
14402    # Insert the option either (1) after the last *FLAGS variable, or
14403    # (2) before a word containing "conftest.", or (3) at the end.
14404    # Note that $ac_compile itself does not contain backslashes and begins
14405    # with a dollar sign (not a hyphen), so the echo should work correctly.
14406    lt_compile=`echo "$ac_compile" | $SED \
14407    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14408    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14409    -e 's:$: $lt_compiler_flag:'`
14410    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14411    (eval "$lt_compile" 2>out/conftest.err)
14412    ac_status=$?
14413    cat out/conftest.err >&5
14414    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14415    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14416    then
14417      # The compiler can only warn and ignore the option if not recognized
14418      # So say no if there are warnings
14419      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14420      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14421      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14422        lt_cv_prog_compiler_c_o_CXX=yes
14423      fi
14424    fi
14425    chmod u+w . 2>&5
14426    $RM conftest*
14427    # SGI C++ compiler will create directory out/ii_files/ for
14428    # template instantiation
14429    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14430    $RM out/* && rmdir out
14431    cd ..
14432    $RM -r conftest
14433    $RM conftest*
14434
14435 fi
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14437 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14438
14439
14440
14441
14442 hard_links="nottested"
14443 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14444   # do not overwrite the value of need_locks provided by the user
14445   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14446 $as_echo_n "checking if we can lock with hard links... " >&6; }
14447   hard_links=yes
14448   $RM conftest*
14449   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14450   touch conftest.a
14451   ln conftest.a conftest.b 2>&5 || hard_links=no
14452   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14454 $as_echo "$hard_links" >&6; }
14455   if test "$hard_links" = no; then
14456     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14457 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14458     need_locks=warn
14459   fi
14460 else
14461   need_locks=no
14462 fi
14463
14464
14465
14466     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14467 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14468
14469   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14470   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14471   case $host_os in
14472   aix[4-9]*)
14473     # If we're using GNU nm, then we don't want the "-C" option.
14474     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14475     # Also, AIX nm treats weak defined symbols like other global defined
14476     # symbols, whereas GNU nm marks them as "W".
14477     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14478       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'
14479     else
14480       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'
14481     fi
14482     ;;
14483   pw32*)
14484     export_symbols_cmds_CXX="$ltdll_cmds"
14485     ;;
14486   cygwin* | mingw* | cegcc*)
14487     case $cc_basename in
14488     cl*)
14489       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14490       ;;
14491     *)
14492       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'
14493       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14494       ;;
14495     esac
14496     ;;
14497   *)
14498     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14499     ;;
14500   esac
14501
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14503 $as_echo "$ld_shlibs_CXX" >&6; }
14504 test "$ld_shlibs_CXX" = no && can_build_shared=no
14505
14506 with_gnu_ld_CXX=$with_gnu_ld
14507
14508
14509
14510
14511
14512
14513 #
14514 # Do we need to explicitly link libc?
14515 #
14516 case "x$archive_cmds_need_lc_CXX" in
14517 x|xyes)
14518   # Assume -lc should be added
14519   archive_cmds_need_lc_CXX=yes
14520
14521   if test "$enable_shared" = yes && test "$GCC" = yes; then
14522     case $archive_cmds_CXX in
14523     *'~'*)
14524       # FIXME: we may have to deal with multi-command sequences.
14525       ;;
14526     '$CC '*)
14527       # Test whether the compiler implicitly links with -lc since on some
14528       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14529       # to ld, don't add -lc before -lgcc.
14530       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14531 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14532 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14533   $as_echo_n "(cached) " >&6
14534 else
14535   $RM conftest*
14536         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14537
14538         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14539   (eval $ac_compile) 2>&5
14540   ac_status=$?
14541   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14542   test $ac_status = 0; } 2>conftest.err; then
14543           soname=conftest
14544           lib=conftest
14545           libobjs=conftest.$ac_objext
14546           deplibs=
14547           wl=$lt_prog_compiler_wl_CXX
14548           pic_flag=$lt_prog_compiler_pic_CXX
14549           compiler_flags=-v
14550           linker_flags=-v
14551           verstring=
14552           output_objdir=.
14553           libname=conftest
14554           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14555           allow_undefined_flag_CXX=
14556           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14557   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14558   ac_status=$?
14559   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14560   test $ac_status = 0; }
14561           then
14562             lt_cv_archive_cmds_need_lc_CXX=no
14563           else
14564             lt_cv_archive_cmds_need_lc_CXX=yes
14565           fi
14566           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14567         else
14568           cat conftest.err 1>&5
14569         fi
14570         $RM conftest*
14571
14572 fi
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14574 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14575       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14576       ;;
14577     esac
14578   fi
14579   ;;
14580 esac
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14644 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14645
14646 library_names_spec=
14647 libname_spec='lib$name'
14648 soname_spec=
14649 shrext_cmds=".so"
14650 postinstall_cmds=
14651 postuninstall_cmds=
14652 finish_cmds=
14653 finish_eval=
14654 shlibpath_var=
14655 shlibpath_overrides_runpath=unknown
14656 version_type=none
14657 dynamic_linker="$host_os ld.so"
14658 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14659 need_lib_prefix=unknown
14660 hardcode_into_libs=no
14661
14662 # when you set need_version to no, make sure it does not cause -set_version
14663 # flags to be left without arguments
14664 need_version=unknown
14665
14666 case $host_os in
14667 aix3*)
14668   version_type=linux # correct to gnu/linux during the next big refactor
14669   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14670   shlibpath_var=LIBPATH
14671
14672   # AIX 3 has no versioning support, so we append a major version to the name.
14673   soname_spec='${libname}${release}${shared_ext}$major'
14674   ;;
14675
14676 aix[4-9]*)
14677   version_type=linux # correct to gnu/linux during the next big refactor
14678   need_lib_prefix=no
14679   need_version=no
14680   hardcode_into_libs=yes
14681   if test "$host_cpu" = ia64; then
14682     # AIX 5 supports IA64
14683     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14684     shlibpath_var=LD_LIBRARY_PATH
14685   else
14686     # With GCC up to 2.95.x, collect2 would create an import file
14687     # for dependence libraries.  The import file would start with
14688     # the line `#! .'.  This would cause the generated library to
14689     # depend on `.', always an invalid library.  This was fixed in
14690     # development snapshots of GCC prior to 3.0.
14691     case $host_os in
14692       aix4 | aix4.[01] | aix4.[01].*)
14693       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14694            echo ' yes '
14695            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14696         :
14697       else
14698         can_build_shared=no
14699       fi
14700       ;;
14701     esac
14702     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14703     # soname into executable. Probably we can add versioning support to
14704     # collect2, so additional links can be useful in future.
14705     if test "$aix_use_runtimelinking" = yes; then
14706       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14707       # instead of lib<name>.a to let people know that these are not
14708       # typical AIX shared libraries.
14709       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14710     else
14711       # We preserve .a as extension for shared libraries through AIX4.2
14712       # and later when we are not doing run time linking.
14713       library_names_spec='${libname}${release}.a $libname.a'
14714       soname_spec='${libname}${release}${shared_ext}$major'
14715     fi
14716     shlibpath_var=LIBPATH
14717   fi
14718   ;;
14719
14720 amigaos*)
14721   case $host_cpu in
14722   powerpc)
14723     # Since July 2007 AmigaOS4 officially supports .so libraries.
14724     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14725     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14726     ;;
14727   m68k)
14728     library_names_spec='$libname.ixlibrary $libname.a'
14729     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14730     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'
14731     ;;
14732   esac
14733   ;;
14734
14735 beos*)
14736   library_names_spec='${libname}${shared_ext}'
14737   dynamic_linker="$host_os ld.so"
14738   shlibpath_var=LIBRARY_PATH
14739   ;;
14740
14741 bsdi[45]*)
14742   version_type=linux # correct to gnu/linux during the next big refactor
14743   need_version=no
14744   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14745   soname_spec='${libname}${release}${shared_ext}$major'
14746   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14747   shlibpath_var=LD_LIBRARY_PATH
14748   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14749   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14750   # the default ld.so.conf also contains /usr/contrib/lib and
14751   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14752   # libtool to hard-code these into programs
14753   ;;
14754
14755 cygwin* | mingw* | pw32* | cegcc*)
14756   version_type=windows
14757   shrext_cmds=".dll"
14758   need_version=no
14759   need_lib_prefix=no
14760
14761   case $GCC,$cc_basename in
14762   yes,*)
14763     # gcc
14764     library_names_spec='$libname.dll.a'
14765     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14766     postinstall_cmds='base_file=`basename \${file}`~
14767       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14768       dldir=$destdir/`dirname \$dlpath`~
14769       test -d \$dldir || mkdir -p \$dldir~
14770       $install_prog $dir/$dlname \$dldir/$dlname~
14771       chmod a+x \$dldir/$dlname~
14772       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14773         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14774       fi'
14775     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14776       dlpath=$dir/\$dldll~
14777        $RM \$dlpath'
14778     shlibpath_overrides_runpath=yes
14779
14780     case $host_os in
14781     cygwin*)
14782       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14783       #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
14784       soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
14785
14786       ;;
14787     mingw* | cegcc*)
14788       # MinGW DLLs use traditional 'lib' prefix
14789       #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
14790       soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
14791       ;;
14792     pw32*)
14793       # pw32 DLLs use 'pw' prefix rather than 'lib'
14794       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14795       ;;
14796     esac
14797     dynamic_linker='Win32 ld.exe'
14798     ;;
14799
14800   *,cl*)
14801     # Native MSVC
14802     libname_spec='$name'
14803     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14804     library_names_spec='${libname}.dll.lib'
14805
14806     case $build_os in
14807     mingw*)
14808       sys_lib_search_path_spec=
14809       lt_save_ifs=$IFS
14810       IFS=';'
14811       for lt_path in $LIB
14812       do
14813         IFS=$lt_save_ifs
14814         # Let DOS variable expansion print the short 8.3 style file name.
14815         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14816         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14817       done
14818       IFS=$lt_save_ifs
14819       # Convert to MSYS style.
14820       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14821       ;;
14822     cygwin*)
14823       # Convert to unix form, then to dos form, then back to unix form
14824       # but this time dos style (no spaces!) so that the unix form looks
14825       # like /cygdrive/c/PROGRA~1:/cygdr...
14826       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14827       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14828       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14829       ;;
14830     *)
14831       sys_lib_search_path_spec="$LIB"
14832       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14833         # It is most probably a Windows format PATH.
14834         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14835       else
14836         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14837       fi
14838       # FIXME: find the short name or the path components, as spaces are
14839       # common. (e.g. "Program Files" -> "PROGRA~1")
14840       ;;
14841     esac
14842
14843     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14844     postinstall_cmds='base_file=`basename \${file}`~
14845       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14846       dldir=$destdir/`dirname \$dlpath`~
14847       test -d \$dldir || mkdir -p \$dldir~
14848       $install_prog $dir/$dlname \$dldir/$dlname'
14849     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14850       dlpath=$dir/\$dldll~
14851        $RM \$dlpath'
14852     shlibpath_overrides_runpath=yes
14853     dynamic_linker='Win32 link.exe'
14854     ;;
14855
14856   *)
14857     # Assume MSVC wrapper
14858     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14859     dynamic_linker='Win32 ld.exe'
14860     ;;
14861   esac
14862   # FIXME: first we should search . and the directory the executable is in
14863   shlibpath_var=PATH
14864   ;;
14865
14866 darwin* | rhapsody*)
14867   dynamic_linker="$host_os dyld"
14868   version_type=darwin
14869   need_lib_prefix=no
14870   need_version=no
14871   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14872   soname_spec='${libname}${release}${major}$shared_ext'
14873   shlibpath_overrides_runpath=yes
14874   shlibpath_var=DYLD_LIBRARY_PATH
14875   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14876
14877   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14878   ;;
14879
14880 dgux*)
14881   version_type=linux # correct to gnu/linux during the next big refactor
14882   need_lib_prefix=no
14883   need_version=no
14884   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14885   soname_spec='${libname}${release}${shared_ext}$major'
14886   shlibpath_var=LD_LIBRARY_PATH
14887   ;;
14888
14889 freebsd* | dragonfly*)
14890   # DragonFly does not have aout.  When/if they implement a new
14891   # versioning mechanism, adjust this.
14892   if test -x /usr/bin/objformat; then
14893     objformat=`/usr/bin/objformat`
14894   else
14895     case $host_os in
14896     freebsd[23].*) objformat=aout ;;
14897     *) objformat=elf ;;
14898     esac
14899   fi
14900   version_type=freebsd-$objformat
14901   case $version_type in
14902     freebsd-elf*)
14903       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14904       need_version=no
14905       need_lib_prefix=no
14906       ;;
14907     freebsd-*)
14908       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14909       need_version=yes
14910       ;;
14911   esac
14912   shlibpath_var=LD_LIBRARY_PATH
14913   case $host_os in
14914   freebsd2.*)
14915     shlibpath_overrides_runpath=yes
14916     ;;
14917   freebsd3.[01]* | freebsdelf3.[01]*)
14918     shlibpath_overrides_runpath=yes
14919     hardcode_into_libs=yes
14920     ;;
14921   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14922   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14923     shlibpath_overrides_runpath=no
14924     hardcode_into_libs=yes
14925     ;;
14926   *) # from 4.6 on, and DragonFly
14927     shlibpath_overrides_runpath=yes
14928     hardcode_into_libs=yes
14929     ;;
14930   esac
14931   ;;
14932
14933 gnu*)
14934   version_type=linux # correct to gnu/linux during the next big refactor
14935   need_lib_prefix=no
14936   need_version=no
14937   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14938   soname_spec='${libname}${release}${shared_ext}$major'
14939   shlibpath_var=LD_LIBRARY_PATH
14940   shlibpath_overrides_runpath=no
14941   hardcode_into_libs=yes
14942   ;;
14943
14944 haiku*)
14945   version_type=linux # correct to gnu/linux during the next big refactor
14946   need_lib_prefix=no
14947   need_version=no
14948   dynamic_linker="$host_os runtime_loader"
14949   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14950   soname_spec='${libname}${release}${shared_ext}$major'
14951   shlibpath_var=LIBRARY_PATH
14952   shlibpath_overrides_runpath=yes
14953   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14954   hardcode_into_libs=yes
14955   ;;
14956
14957 hpux9* | hpux10* | hpux11*)
14958   # Give a soname corresponding to the major version so that dld.sl refuses to
14959   # link against other versions.
14960   version_type=sunos
14961   need_lib_prefix=no
14962   need_version=no
14963   case $host_cpu in
14964   ia64*)
14965     shrext_cmds='.so'
14966     hardcode_into_libs=yes
14967     dynamic_linker="$host_os dld.so"
14968     shlibpath_var=LD_LIBRARY_PATH
14969     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14970     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14971     soname_spec='${libname}${release}${shared_ext}$major'
14972     if test "X$HPUX_IA64_MODE" = X32; then
14973       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14974     else
14975       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14976     fi
14977     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14978     ;;
14979   hppa*64*)
14980     shrext_cmds='.sl'
14981     hardcode_into_libs=yes
14982     dynamic_linker="$host_os dld.sl"
14983     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14984     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14985     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14986     soname_spec='${libname}${release}${shared_ext}$major'
14987     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14988     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14989     ;;
14990   *)
14991     shrext_cmds='.sl'
14992     dynamic_linker="$host_os dld.sl"
14993     shlibpath_var=SHLIB_PATH
14994     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14995     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14996     soname_spec='${libname}${release}${shared_ext}$major'
14997     ;;
14998   esac
14999   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15000   postinstall_cmds='chmod 555 $lib'
15001   # or fails outright, so override atomically:
15002   install_override_mode=555
15003   ;;
15004
15005 interix[3-9]*)
15006   version_type=linux # correct to gnu/linux during the next big refactor
15007   need_lib_prefix=no
15008   need_version=no
15009   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15010   soname_spec='${libname}${release}${shared_ext}$major'
15011   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15012   shlibpath_var=LD_LIBRARY_PATH
15013   shlibpath_overrides_runpath=no
15014   hardcode_into_libs=yes
15015   ;;
15016
15017 irix5* | irix6* | nonstopux*)
15018   case $host_os in
15019     nonstopux*) version_type=nonstopux ;;
15020     *)
15021         if test "$lt_cv_prog_gnu_ld" = yes; then
15022                 version_type=linux # correct to gnu/linux during the next big refactor
15023         else
15024                 version_type=irix
15025         fi ;;
15026   esac
15027   need_lib_prefix=no
15028   need_version=no
15029   soname_spec='${libname}${release}${shared_ext}$major'
15030   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15031   case $host_os in
15032   irix5* | nonstopux*)
15033     libsuff= shlibsuff=
15034     ;;
15035   *)
15036     case $LD in # libtool.m4 will add one of these switches to LD
15037     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15038       libsuff= shlibsuff= libmagic=32-bit;;
15039     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15040       libsuff=32 shlibsuff=N32 libmagic=N32;;
15041     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15042       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15043     *) libsuff= shlibsuff= libmagic=never-match;;
15044     esac
15045     ;;
15046   esac
15047   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15048   shlibpath_overrides_runpath=no
15049   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15050   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15051   hardcode_into_libs=yes
15052   ;;
15053
15054 # No shared lib support for Linux oldld, aout, or coff.
15055 linux*oldld* | linux*aout* | linux*coff*)
15056   dynamic_linker=no
15057   ;;
15058
15059 # This must be glibc/ELF.
15060 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15061   version_type=linux # correct to gnu/linux during the next big refactor
15062   need_lib_prefix=no
15063   need_version=no
15064   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15065   soname_spec='${libname}${release}${shared_ext}$major'
15066   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15067   shlibpath_var=LD_LIBRARY_PATH
15068   shlibpath_overrides_runpath=no
15069
15070   # Some binutils ld are patched to set DT_RUNPATH
15071   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15072   $as_echo_n "(cached) " >&6
15073 else
15074   lt_cv_shlibpath_overrides_runpath=no
15075     save_LDFLAGS=$LDFLAGS
15076     save_libdir=$libdir
15077     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15078          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15079     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15080 /* end confdefs.h.  */
15081
15082 int
15083 main ()
15084 {
15085
15086   ;
15087   return 0;
15088 }
15089 _ACEOF
15090 if ac_fn_cxx_try_link "$LINENO"; then :
15091   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15092   lt_cv_shlibpath_overrides_runpath=yes
15093 fi
15094 fi
15095 rm -f core conftest.err conftest.$ac_objext \
15096     conftest$ac_exeext conftest.$ac_ext
15097     LDFLAGS=$save_LDFLAGS
15098     libdir=$save_libdir
15099
15100 fi
15101
15102   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15103
15104   # This implies no fast_install, which is unacceptable.
15105   # Some rework will be needed to allow for fast_install
15106   # before this can be enabled.
15107   hardcode_into_libs=yes
15108
15109   # Append ld.so.conf contents to the search path
15110   if test -f /etc/ld.so.conf; then
15111     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' ' '`
15112     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15113   fi
15114
15115   # We used to test for /lib/ld.so.1 and disable shared libraries on
15116   # powerpc, because MkLinux only supported shared libraries with the
15117   # GNU dynamic linker.  Since this was broken with cross compilers,
15118   # most powerpc-linux boxes support dynamic linking these days and
15119   # people can always --disable-shared, the test was removed, and we
15120   # assume the GNU/Linux dynamic linker is in use.
15121   dynamic_linker='GNU/Linux ld.so'
15122   ;;
15123
15124 netbsd*)
15125   version_type=sunos
15126   need_lib_prefix=no
15127   need_version=no
15128   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15129     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15130     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15131     dynamic_linker='NetBSD (a.out) ld.so'
15132   else
15133     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15134     soname_spec='${libname}${release}${shared_ext}$major'
15135     dynamic_linker='NetBSD ld.elf_so'
15136   fi
15137   shlibpath_var=LD_LIBRARY_PATH
15138   shlibpath_overrides_runpath=yes
15139   hardcode_into_libs=yes
15140   ;;
15141
15142 newsos6)
15143   version_type=linux # correct to gnu/linux during the next big refactor
15144   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15145   shlibpath_var=LD_LIBRARY_PATH
15146   shlibpath_overrides_runpath=yes
15147   ;;
15148
15149 *nto* | *qnx*)
15150   version_type=qnx
15151   need_lib_prefix=no
15152   need_version=no
15153   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15154   soname_spec='${libname}${release}${shared_ext}$major'
15155   shlibpath_var=LD_LIBRARY_PATH
15156   shlibpath_overrides_runpath=no
15157   hardcode_into_libs=yes
15158   dynamic_linker='ldqnx.so'
15159   ;;
15160
15161 openbsd*)
15162   version_type=sunos
15163   sys_lib_dlsearch_path_spec="/usr/lib"
15164   need_lib_prefix=no
15165   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15166   case $host_os in
15167     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15168     *)                          need_version=no  ;;
15169   esac
15170   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15171   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15172   shlibpath_var=LD_LIBRARY_PATH
15173   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15174     case $host_os in
15175       openbsd2.[89] | openbsd2.[89].*)
15176         shlibpath_overrides_runpath=no
15177         ;;
15178       *)
15179         shlibpath_overrides_runpath=yes
15180         ;;
15181       esac
15182   else
15183     shlibpath_overrides_runpath=yes
15184   fi
15185   ;;
15186
15187 os2*)
15188   libname_spec='$name'
15189   shrext_cmds=".dll"
15190   need_lib_prefix=no
15191   library_names_spec='$libname${shared_ext} $libname.a'
15192   dynamic_linker='OS/2 ld.exe'
15193   shlibpath_var=LIBPATH
15194   ;;
15195
15196 osf3* | osf4* | osf5*)
15197   version_type=osf
15198   need_lib_prefix=no
15199   need_version=no
15200   soname_spec='${libname}${release}${shared_ext}$major'
15201   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15202   shlibpath_var=LD_LIBRARY_PATH
15203   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15204   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15205   ;;
15206
15207 rdos*)
15208   dynamic_linker=no
15209   ;;
15210
15211 solaris*)
15212   version_type=linux # correct to gnu/linux during the next big refactor
15213   need_lib_prefix=no
15214   need_version=no
15215   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15216   soname_spec='${libname}${release}${shared_ext}$major'
15217   shlibpath_var=LD_LIBRARY_PATH
15218   shlibpath_overrides_runpath=yes
15219   hardcode_into_libs=yes
15220   # ldd complains unless libraries are executable
15221   postinstall_cmds='chmod +x $lib'
15222   ;;
15223
15224 sunos4*)
15225   version_type=sunos
15226   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15227   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15228   shlibpath_var=LD_LIBRARY_PATH
15229   shlibpath_overrides_runpath=yes
15230   if test "$with_gnu_ld" = yes; then
15231     need_lib_prefix=no
15232   fi
15233   need_version=yes
15234   ;;
15235
15236 sysv4 | sysv4.3*)
15237   version_type=linux # correct to gnu/linux during the next big refactor
15238   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15239   soname_spec='${libname}${release}${shared_ext}$major'
15240   shlibpath_var=LD_LIBRARY_PATH
15241   case $host_vendor in
15242     sni)
15243       shlibpath_overrides_runpath=no
15244       need_lib_prefix=no
15245       runpath_var=LD_RUN_PATH
15246       ;;
15247     siemens)
15248       need_lib_prefix=no
15249       ;;
15250     motorola)
15251       need_lib_prefix=no
15252       need_version=no
15253       shlibpath_overrides_runpath=no
15254       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15255       ;;
15256   esac
15257   ;;
15258
15259 sysv4*MP*)
15260   if test -d /usr/nec ;then
15261     version_type=linux # correct to gnu/linux during the next big refactor
15262     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15263     soname_spec='$libname${shared_ext}.$major'
15264     shlibpath_var=LD_LIBRARY_PATH
15265   fi
15266   ;;
15267
15268 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15269   version_type=freebsd-elf
15270   need_lib_prefix=no
15271   need_version=no
15272   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15273   soname_spec='${libname}${release}${shared_ext}$major'
15274   shlibpath_var=LD_LIBRARY_PATH
15275   shlibpath_overrides_runpath=yes
15276   hardcode_into_libs=yes
15277   if test "$with_gnu_ld" = yes; then
15278     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15279   else
15280     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15281     case $host_os in
15282       sco3.2v5*)
15283         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15284         ;;
15285     esac
15286   fi
15287   sys_lib_dlsearch_path_spec='/usr/lib'
15288   ;;
15289
15290 tpf*)
15291   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15292   version_type=linux # correct to gnu/linux during the next big refactor
15293   need_lib_prefix=no
15294   need_version=no
15295   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15296   shlibpath_var=LD_LIBRARY_PATH
15297   shlibpath_overrides_runpath=no
15298   hardcode_into_libs=yes
15299   ;;
15300
15301 uts4*)
15302   version_type=linux # correct to gnu/linux during the next big refactor
15303   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15304   soname_spec='${libname}${release}${shared_ext}$major'
15305   shlibpath_var=LD_LIBRARY_PATH
15306   ;;
15307
15308 *)
15309   dynamic_linker=no
15310   ;;
15311 esac
15312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15313 $as_echo "$dynamic_linker" >&6; }
15314 test "$dynamic_linker" = no && can_build_shared=no
15315
15316 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15317 if test "$GCC" = yes; then
15318   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15319 fi
15320
15321 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15322   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15323 fi
15324 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15325   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15326 fi
15327
15328
15329
15330
15331
15332
15333
15334
15335
15336
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15366 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15367 hardcode_action_CXX=
15368 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15369    test -n "$runpath_var_CXX" ||
15370    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15371
15372   # We can hardcode non-existent directories.
15373   if test "$hardcode_direct_CXX" != no &&
15374      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15375      # have to relink, otherwise we might link with an installed library
15376      # when we should be linking with a yet-to-be-installed one
15377      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15378      test "$hardcode_minus_L_CXX" != no; then
15379     # Linking always hardcodes the temporary library directory.
15380     hardcode_action_CXX=relink
15381   else
15382     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15383     hardcode_action_CXX=immediate
15384   fi
15385 else
15386   # We cannot hardcode anything, or else we can only hardcode existing
15387   # directories.
15388   hardcode_action_CXX=unsupported
15389 fi
15390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15391 $as_echo "$hardcode_action_CXX" >&6; }
15392
15393 if test "$hardcode_action_CXX" = relink ||
15394    test "$inherit_rpath_CXX" = yes; then
15395   # Fast installation is not supported
15396   enable_fast_install=no
15397 elif test "$shlibpath_overrides_runpath" = yes ||
15398      test "$enable_shared" = no; then
15399   # Fast installation is not necessary
15400   enable_fast_install=needless
15401 fi
15402
15403
15404
15405
15406
15407
15408
15409   fi # test -n "$compiler"
15410
15411   CC=$lt_save_CC
15412   CFLAGS=$lt_save_CFLAGS
15413   LDCXX=$LD
15414   LD=$lt_save_LD
15415   GCC=$lt_save_GCC
15416   with_gnu_ld=$lt_save_with_gnu_ld
15417   lt_cv_path_LDCXX=$lt_cv_path_LD
15418   lt_cv_path_LD=$lt_save_path_LD
15419   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15420   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15421 fi # test "$_lt_caught_CXX_error" != yes
15422
15423 ac_ext=c
15424 ac_cpp='$CPP $CPPFLAGS'
15425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15428
15429
15430 # Find a good install program.  We prefer a C program (faster),
15431 # so one script is as good as another.  But avoid the broken or
15432 # incompatible versions:
15433 # SysV /etc/install, /usr/sbin/install
15434 # SunOS /usr/etc/install
15435 # IRIX /sbin/install
15436 # AIX /bin/install
15437 # AmigaOS /C/install, which installs bootblocks on floppy discs
15438 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
15439 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
15440 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
15441 # OS/2's system install, which has a completely different semantic
15442 # ./install, which can be erroneously created by make from ./install.sh.
15443 # Reject install programs that cannot install multiple files.
15444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
15445 $as_echo_n "checking for a BSD-compatible install... " >&6; }
15446 if test -z "$INSTALL"; then
15447 if ${ac_cv_path_install+:} false; then :
15448   $as_echo_n "(cached) " >&6
15449 else
15450   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15451 for as_dir in $PATH
15452 do
15453   IFS=$as_save_IFS
15454   test -z "$as_dir" && as_dir=.
15455     # Account for people who put trailing slashes in PATH elements.
15456 case $as_dir/ in #((
15457   ./ | .// | /[cC]/* | \
15458   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
15459   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
15460   /usr/ucb/* ) ;;
15461   *)
15462     # OSF1 and SCO ODT 3.0 have their own names for install.
15463     # Don't use installbsd from OSF since it installs stuff as root
15464     # by default.
15465     for ac_prog in ginstall scoinst install; do
15466       for ac_exec_ext in '' $ac_executable_extensions; do
15467         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
15468           if test $ac_prog = install &&
15469             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15470             # AIX install.  It has an incompatible calling convention.
15471             :
15472           elif test $ac_prog = install &&
15473             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15474             # program-specific install script used by HP pwplus--don't use.
15475             :
15476           else
15477             rm -rf conftest.one conftest.two conftest.dir
15478             echo one > conftest.one
15479             echo two > conftest.two
15480             mkdir conftest.dir
15481             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
15482               test -s conftest.one && test -s conftest.two &&
15483               test -s conftest.dir/conftest.one &&
15484               test -s conftest.dir/conftest.two
15485             then
15486               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
15487               break 3
15488             fi
15489           fi
15490         fi
15491       done
15492     done
15493     ;;
15494 esac
15495
15496   done
15497 IFS=$as_save_IFS
15498
15499 rm -rf conftest.one conftest.two conftest.dir
15500
15501 fi
15502   if test "${ac_cv_path_install+set}" = set; then
15503     INSTALL=$ac_cv_path_install
15504   else
15505     # As a last resort, use the slow shell script.  Don't cache a
15506     # value for INSTALL within a source directory, because that will
15507     # break other packages using the cache if that directory is
15508     # removed, or if the value is a relative name.
15509     INSTALL=$ac_install_sh
15510   fi
15511 fi
15512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
15513 $as_echo "$INSTALL" >&6; }
15514
15515 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
15516 # It thinks the first close brace ends the variable substitution.
15517 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
15518
15519 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
15520
15521 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
15522
15523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
15524 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
15525 set x ${MAKE-make}
15526 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
15527 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
15528   $as_echo_n "(cached) " >&6
15529 else
15530   cat >conftest.make <<\_ACEOF
15531 SHELL = /bin/sh
15532 all:
15533         @echo '@@@%%%=$(MAKE)=@@@%%%'
15534 _ACEOF
15535 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
15536 case `${MAKE-make} -f conftest.make 2>/dev/null` in
15537   *@@@%%%=?*=@@@%%%*)
15538     eval ac_cv_prog_make_${ac_make}_set=yes;;
15539   *)
15540     eval ac_cv_prog_make_${ac_make}_set=no;;
15541 esac
15542 rm -f conftest.make
15543 fi
15544 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
15545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15546 $as_echo "yes" >&6; }
15547   SET_MAKE=
15548 else
15549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15550 $as_echo "no" >&6; }
15551   SET_MAKE="MAKE=${MAKE-make}"
15552 fi
15553
15554 if test -n "$ac_tool_prefix"; then
15555   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
15556 set dummy ${ac_tool_prefix}windres; ac_word=$2
15557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15558 $as_echo_n "checking for $ac_word... " >&6; }
15559 if ${ac_cv_prog_WINDRES+:} false; then :
15560   $as_echo_n "(cached) " >&6
15561 else
15562   if test -n "$WINDRES"; then
15563   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
15564 else
15565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15566 for as_dir in $PATH
15567 do
15568   IFS=$as_save_IFS
15569   test -z "$as_dir" && as_dir=.
15570     for ac_exec_ext in '' $ac_executable_extensions; do
15571   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15572     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
15573     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15574     break 2
15575   fi
15576 done
15577   done
15578 IFS=$as_save_IFS
15579
15580 fi
15581 fi
15582 WINDRES=$ac_cv_prog_WINDRES
15583 if test -n "$WINDRES"; then
15584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
15585 $as_echo "$WINDRES" >&6; }
15586 else
15587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15588 $as_echo "no" >&6; }
15589 fi
15590
15591
15592 fi
15593 if test -z "$ac_cv_prog_WINDRES"; then
15594   ac_ct_WINDRES=$WINDRES
15595   # Extract the first word of "windres", so it can be a program name with args.
15596 set dummy windres; ac_word=$2
15597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15598 $as_echo_n "checking for $ac_word... " >&6; }
15599 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
15600   $as_echo_n "(cached) " >&6
15601 else
15602   if test -n "$ac_ct_WINDRES"; then
15603   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
15604 else
15605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15606 for as_dir in $PATH
15607 do
15608   IFS=$as_save_IFS
15609   test -z "$as_dir" && as_dir=.
15610     for ac_exec_ext in '' $ac_executable_extensions; do
15611   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15612     ac_cv_prog_ac_ct_WINDRES="windres"
15613     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15614     break 2
15615   fi
15616 done
15617   done
15618 IFS=$as_save_IFS
15619
15620 fi
15621 fi
15622 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
15623 if test -n "$ac_ct_WINDRES"; then
15624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
15625 $as_echo "$ac_ct_WINDRES" >&6; }
15626 else
15627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15628 $as_echo "no" >&6; }
15629 fi
15630
15631   if test "x$ac_ct_WINDRES" = x; then
15632     WINDRES=":"
15633   else
15634     case $cross_compiling:$ac_tool_warned in
15635 yes:)
15636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15637 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15638 ac_tool_warned=yes ;;
15639 esac
15640     WINDRES=$ac_ct_WINDRES
15641   fi
15642 else
15643   WINDRES="$ac_cv_prog_WINDRES"
15644 fi
15645
15646
15647 case "$host" in
15648     *-*-mingw32*)
15649         # Except on msys, where make can't handle full pathnames (bug 1972)
15650         ;;
15651     *)
15652         srcdir=`cd $srcdir && pwd`
15653         ;;
15654 esac
15655
15656 INCLUDE="-I$srcdir/include"
15657 if test x$srcdir != x.; then
15658     INCLUDE="-Iinclude $INCLUDE"
15659 elif test -d .hg; then
15660     as_fn_error $? "
15661 *** When building from Mercurial you should configure and build in a
15662     separate directory so you don't clobber SDL_config.h, SDL_revision.h
15663 " "$LINENO" 5
15664 fi
15665 BASE_CFLAGS=""
15666 BASE_LDFLAGS=""
15667 case "$host" in
15668     *-*-cygwin*)
15669         # We build SDL on cygwin without the UNIX emulation layer
15670         save_CFLAGS="$CFLAGS"
15671         have_no_cygwin=no
15672         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
15673 $as_echo_n "checking for GCC -mno-cygwin option... " >&6; }
15674         CFLAGS="$save_CFLAGS -mno-cygwin"
15675
15676         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15677 /* end confdefs.h.  */
15678
15679
15680 int
15681 main ()
15682 {
15683
15684
15685   ;
15686   return 0;
15687 }
15688 _ACEOF
15689 if ac_fn_c_try_compile "$LINENO"; then :
15690
15691         have_no_cygwin=yes
15692
15693 fi
15694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15695         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
15696 $as_echo "$have_no_cygwin" >&6; }
15697         CFLAGS="$save_CFLAGS"
15698
15699         if test x$have_no_cygwin = xyes; then
15700             BASE_CFLAGS="-mno-cygwin"
15701             BASE_LDFLAGS="-mno-cygwin"
15702         fi
15703         BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
15704         ;;
15705 esac
15706 # Uncomment the following line if you want to force SDL and applications
15707 # built with it to be compiled for a particular architecture.
15708 #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
15709 BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
15710 # The default optimization for SDL is -O3 (Bug #31)
15711 if test "x$orig_CFLAGS" = x; then
15712     BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
15713 fi
15714 EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
15715 BUILD_LDFLAGS="$LDFLAGS"
15716 EXTRA_LDFLAGS="$BASE_LDFLAGS"
15717 ## These are common directories to find software packages
15718 #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
15719 #    if test -d $path/include; then
15720 #        EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
15721 #    fi
15722 #    if test -d $path/lib; then
15723 #        EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
15724 #    fi
15725 #done
15726 SDL_CFLAGS="$BASE_CFLAGS"
15727 SDL_LIBS="-lSDL2 $BASE_LDFLAGS"
15728 CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
15729 CFLAGS="$CFLAGS $EXTRA_CFLAGS"
15730 LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
15731
15732 base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
15733
15734 find_lib()
15735 {
15736     gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
15737     gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
15738     env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
15739     if test "$cross_compiling" = yes; then
15740         host_lib_path=""
15741     else
15742         host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
15743     fi
15744     for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
15745         lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`
15746         if test x$lib != x; then
15747             echo $lib
15748             return
15749         fi
15750     done
15751 }
15752
15753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
15754 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
15755 if ${ac_cv_c_const+:} false; then :
15756   $as_echo_n "(cached) " >&6
15757 else
15758   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15759 /* end confdefs.h.  */
15760
15761 int
15762 main ()
15763 {
15764
15765 #ifndef __cplusplus
15766   /* Ultrix mips cc rejects this sort of thing.  */
15767   typedef int charset[2];
15768   const charset cs = { 0, 0 };
15769   /* SunOS 4.1.1 cc rejects this.  */
15770   char const *const *pcpcc;
15771   char **ppc;
15772   /* NEC SVR4.0.2 mips cc rejects this.  */
15773   struct point {int x, y;};
15774   static struct point const zero = {0,0};
15775   /* AIX XL C 1.02.0.0 rejects this.
15776      It does not let you subtract one const X* pointer from another in
15777      an arm of an if-expression whose if-part is not a constant
15778      expression */
15779   const char *g = "string";
15780   pcpcc = &g + (g ? g-g : 0);
15781   /* HPUX 7.0 cc rejects these. */
15782   ++pcpcc;
15783   ppc = (char**) pcpcc;
15784   pcpcc = (char const *const *) ppc;
15785   { /* SCO 3.2v4 cc rejects this sort of thing.  */
15786     char tx;
15787     char *t = &tx;
15788     char const *s = 0 ? (char *) 0 : (char const *) 0;
15789
15790     *t++ = 0;
15791     if (s) return 0;
15792   }
15793   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
15794     int x[] = {25, 17};
15795     const int *foo = &x[0];
15796     ++foo;
15797   }
15798   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15799     typedef const int *iptr;
15800     iptr p = 0;
15801     ++p;
15802   }
15803   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
15804        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15805     struct s { int j; const int *ap[3]; } bx;
15806     struct s *b = &bx; b->j = 5;
15807   }
15808   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15809     const int foo = 10;
15810     if (!foo) return 0;
15811   }
15812   return !cs[0] && !zero.x;
15813 #endif
15814
15815   ;
15816   return 0;
15817 }
15818 _ACEOF
15819 if ac_fn_c_try_compile "$LINENO"; then :
15820   ac_cv_c_const=yes
15821 else
15822   ac_cv_c_const=no
15823 fi
15824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15825 fi
15826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
15827 $as_echo "$ac_cv_c_const" >&6; }
15828 if test $ac_cv_c_const = no; then
15829
15830 $as_echo "#define const /**/" >>confdefs.h
15831
15832 fi
15833
15834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15835 $as_echo_n "checking for inline... " >&6; }
15836 if ${ac_cv_c_inline+:} false; then :
15837   $as_echo_n "(cached) " >&6
15838 else
15839   ac_cv_c_inline=no
15840 for ac_kw in inline __inline__ __inline; do
15841   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15842 /* end confdefs.h.  */
15843 #ifndef __cplusplus
15844 typedef int foo_t;
15845 static $ac_kw foo_t static_foo () {return 0; }
15846 $ac_kw foo_t foo () {return 0; }
15847 #endif
15848
15849 _ACEOF
15850 if ac_fn_c_try_compile "$LINENO"; then :
15851   ac_cv_c_inline=$ac_kw
15852 fi
15853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15854   test "$ac_cv_c_inline" != no && break
15855 done
15856
15857 fi
15858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15859 $as_echo "$ac_cv_c_inline" >&6; }
15860
15861 case $ac_cv_c_inline in
15862   inline | yes) ;;
15863   *)
15864     case $ac_cv_c_inline in
15865       no) ac_val=;;
15866       *) ac_val=$ac_cv_c_inline;;
15867     esac
15868     cat >>confdefs.h <<_ACEOF
15869 #ifndef __cplusplus
15870 #define inline $ac_val
15871 #endif
15872 _ACEOF
15873     ;;
15874 esac
15875
15876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
15877 $as_echo_n "checking for working volatile... " >&6; }
15878 if ${ac_cv_c_volatile+:} false; then :
15879   $as_echo_n "(cached) " >&6
15880 else
15881   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15882 /* end confdefs.h.  */
15883
15884 int
15885 main ()
15886 {
15887
15888 volatile int x;
15889 int * volatile y = (int *) 0;
15890 return !x && !y;
15891   ;
15892   return 0;
15893 }
15894 _ACEOF
15895 if ac_fn_c_try_compile "$LINENO"; then :
15896   ac_cv_c_volatile=yes
15897 else
15898   ac_cv_c_volatile=no
15899 fi
15900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15901 fi
15902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
15903 $as_echo "$ac_cv_c_volatile" >&6; }
15904 if test $ac_cv_c_volatile = no; then
15905
15906 $as_echo "#define volatile /**/" >>confdefs.h
15907
15908 fi
15909
15910
15911 # Check whether --enable-assertions was given.
15912 if test "${enable_assertions+set}" = set; then :
15913   enableval=$enable_assertions;
15914 else
15915   enable_assertions=auto
15916 fi
15917
15918 case "$enable_assertions" in
15919     auto) # Use optimization settings to determine assertion level
15920         ;;
15921     disabled)
15922
15923 $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
15924
15925         ;;
15926     release)
15927
15928 $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
15929
15930         ;;
15931     enabled)
15932
15933 $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
15934
15935         ;;
15936     paranoid)
15937
15938 $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
15939
15940         ;;
15941     *)
15942         as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
15943         ;;
15944 esac
15945
15946 # Check whether --enable-dependency-tracking was given.
15947 if test "${enable_dependency_tracking+set}" = set; then :
15948   enableval=$enable_dependency_tracking;
15949 else
15950   enable_dependency_tracking=yes
15951 fi
15952
15953 if test x$enable_dependency_tracking = xyes; then
15954     have_gcc_mmd_mt=no
15955     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
15956 $as_echo_n "checking for GCC -MMD -MT option... " >&6; }
15957     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15958 /* end confdefs.h.  */
15959
15960     #if !defined(__GNUC__) || __GNUC__ < 3
15961     #error Dependency tracking requires GCC 3.0 or newer
15962     #endif
15963
15964 int
15965 main ()
15966 {
15967
15968
15969   ;
15970   return 0;
15971 }
15972 _ACEOF
15973 if ac_fn_c_try_compile "$LINENO"; then :
15974
15975     have_gcc_mmd_mt=yes
15976
15977 fi
15978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15979     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
15980 $as_echo "$have_gcc_mmd_mt" >&6; }
15981
15982     if test x$have_gcc_mmd_mt = xyes; then
15983         DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
15984     fi
15985 fi
15986
15987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
15988 $as_echo_n "checking for linker option --no-undefined... " >&6; }
15989 have_no_undefined=no
15990 case "$host" in
15991         *-*-openbsd*)
15992         ;;
15993
15994     *)
15995         save_LDFLAGS="$LDFLAGS"
15996         LDFLAGS="$LDFLAGS -Wl,--no-undefined"
15997         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15998 /* end confdefs.h.  */
15999
16000
16001 int
16002 main ()
16003 {
16004
16005
16006   ;
16007   return 0;
16008 }
16009 _ACEOF
16010 if ac_fn_c_try_link "$LINENO"; then :
16011
16012         have_no_undefined=yes
16013         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--no-undefined"
16014
16015 fi
16016 rm -f core conftest.err conftest.$ac_objext \
16017     conftest$ac_exeext conftest.$ac_ext
16018         LDFLAGS="$save_LDFLAGS"
16019         ;;
16020 esac
16021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
16022 $as_echo "$have_no_undefined" >&6; }
16023
16024 # Check whether --enable-libc was given.
16025 if test "${enable_libc+set}" = set; then :
16026   enableval=$enable_libc;
16027 else
16028   enable_libc=yes
16029 fi
16030
16031 if test x$enable_libc = xyes; then
16032
16033 $as_echo "#define HAVE_LIBC 1" >>confdefs.h
16034
16035
16036         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
16037 $as_echo_n "checking for ANSI C header files... " >&6; }
16038 if ${ac_cv_header_stdc+:} false; then :
16039   $as_echo_n "(cached) " >&6
16040 else
16041   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16042 /* end confdefs.h.  */
16043 #include <stdlib.h>
16044 #include <stdarg.h>
16045 #include <string.h>
16046 #include <float.h>
16047
16048 int
16049 main ()
16050 {
16051
16052   ;
16053   return 0;
16054 }
16055 _ACEOF
16056 if ac_fn_c_try_compile "$LINENO"; then :
16057   ac_cv_header_stdc=yes
16058 else
16059   ac_cv_header_stdc=no
16060 fi
16061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16062
16063 if test $ac_cv_header_stdc = yes; then
16064   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16065   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16066 /* end confdefs.h.  */
16067 #include <string.h>
16068
16069 _ACEOF
16070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16071   $EGREP "memchr" >/dev/null 2>&1; then :
16072
16073 else
16074   ac_cv_header_stdc=no
16075 fi
16076 rm -f conftest*
16077
16078 fi
16079
16080 if test $ac_cv_header_stdc = yes; then
16081   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16082   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16083 /* end confdefs.h.  */
16084 #include <stdlib.h>
16085
16086 _ACEOF
16087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16088   $EGREP "free" >/dev/null 2>&1; then :
16089
16090 else
16091   ac_cv_header_stdc=no
16092 fi
16093 rm -f conftest*
16094
16095 fi
16096
16097 if test $ac_cv_header_stdc = yes; then
16098   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16099   if test "$cross_compiling" = yes; then :
16100   :
16101 else
16102   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16103 /* end confdefs.h.  */
16104 #include <ctype.h>
16105 #include <stdlib.h>
16106 #if ((' ' & 0x0FF) == 0x020)
16107 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16108 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16109 #else
16110 # define ISLOWER(c) \
16111                    (('a' <= (c) && (c) <= 'i') \
16112                      || ('j' <= (c) && (c) <= 'r') \
16113                      || ('s' <= (c) && (c) <= 'z'))
16114 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16115 #endif
16116
16117 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16118 int
16119 main ()
16120 {
16121   int i;
16122   for (i = 0; i < 256; i++)
16123     if (XOR (islower (i), ISLOWER (i))
16124         || toupper (i) != TOUPPER (i))
16125       return 2;
16126   return 0;
16127 }
16128 _ACEOF
16129 if ac_fn_c_try_run "$LINENO"; then :
16130
16131 else
16132   ac_cv_header_stdc=no
16133 fi
16134 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16135   conftest.$ac_objext conftest.beam conftest.$ac_ext
16136 fi
16137
16138 fi
16139 fi
16140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
16141 $as_echo "$ac_cv_header_stdc" >&6; }
16142 if test $ac_cv_header_stdc = yes; then
16143
16144 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
16145
16146 fi
16147
16148     for ac_header in sys/types.h stdio.h stdlib.h stddef.h stdarg.h malloc.h memory.h string.h strings.h inttypes.h stdint.h ctype.h math.h iconv.h signal.h
16149 do :
16150   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16151 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16152 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16153   cat >>confdefs.h <<_ACEOF
16154 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16155 _ACEOF
16156
16157 fi
16158
16159 done
16160
16161
16162         ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16163 if test "x$ac_cv_type_size_t" = xyes; then :
16164
16165 else
16166
16167 cat >>confdefs.h <<_ACEOF
16168 #define size_t unsigned int
16169 _ACEOF
16170
16171 fi
16172
16173
16174           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
16175 $as_echo_n "checking for M_PI in math.h... " >&6; }
16176 if ${ac_cv_define_M_PI+:} false; then :
16177   $as_echo_n "(cached) " >&6
16178 else
16179   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16180 /* end confdefs.h.  */
16181
16182 #include <math.h>
16183 #ifdef M_PI
16184 YES_IS_DEFINED
16185 #endif
16186
16187 _ACEOF
16188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16189   $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
16190   ac_cv_define_M_PI=yes
16191 else
16192   ac_cv_define_M_PI=no
16193 fi
16194 rm -f conftest*
16195
16196
16197 fi
16198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
16199 $as_echo "$ac_cv_define_M_PI" >&6; }
16200   if test "$ac_cv_define_M_PI" = "yes" ; then
16201
16202 $as_echo "#define HAVE_M_PI /**/" >>confdefs.h
16203
16204   fi
16205
16206
16207         case "$host" in
16208     *-*-cygwin* | *-*-mingw32*)
16209         ;;
16210     *)
16211         # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16212 # for constant arguments.  Useless!
16213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
16214 $as_echo_n "checking for working alloca.h... " >&6; }
16215 if ${ac_cv_working_alloca_h+:} false; then :
16216   $as_echo_n "(cached) " >&6
16217 else
16218   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16219 /* end confdefs.h.  */
16220 #include <alloca.h>
16221 int
16222 main ()
16223 {
16224 char *p = (char *) alloca (2 * sizeof (int));
16225                           if (p) return 0;
16226   ;
16227   return 0;
16228 }
16229 _ACEOF
16230 if ac_fn_c_try_link "$LINENO"; then :
16231   ac_cv_working_alloca_h=yes
16232 else
16233   ac_cv_working_alloca_h=no
16234 fi
16235 rm -f core conftest.err conftest.$ac_objext \
16236     conftest$ac_exeext conftest.$ac_ext
16237 fi
16238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
16239 $as_echo "$ac_cv_working_alloca_h" >&6; }
16240 if test $ac_cv_working_alloca_h = yes; then
16241
16242 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
16243
16244 fi
16245
16246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16247 $as_echo_n "checking for alloca... " >&6; }
16248 if ${ac_cv_func_alloca_works+:} false; then :
16249   $as_echo_n "(cached) " >&6
16250 else
16251   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16252 /* end confdefs.h.  */
16253 #ifdef __GNUC__
16254 # define alloca __builtin_alloca
16255 #else
16256 # ifdef _MSC_VER
16257 #  include <malloc.h>
16258 #  define alloca _alloca
16259 # else
16260 #  ifdef HAVE_ALLOCA_H
16261 #   include <alloca.h>
16262 #  else
16263 #   ifdef _AIX
16264  #pragma alloca
16265 #   else
16266 #    ifndef alloca /* predefined by HP cc +Olibcalls */
16267 void *alloca (size_t);
16268 #    endif
16269 #   endif
16270 #  endif
16271 # endif
16272 #endif
16273
16274 int
16275 main ()
16276 {
16277 char *p = (char *) alloca (1);
16278                                     if (p) return 0;
16279   ;
16280   return 0;
16281 }
16282 _ACEOF
16283 if ac_fn_c_try_link "$LINENO"; then :
16284   ac_cv_func_alloca_works=yes
16285 else
16286   ac_cv_func_alloca_works=no
16287 fi
16288 rm -f core conftest.err conftest.$ac_objext \
16289     conftest$ac_exeext conftest.$ac_ext
16290 fi
16291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16292 $as_echo "$ac_cv_func_alloca_works" >&6; }
16293
16294 if test $ac_cv_func_alloca_works = yes; then
16295
16296 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16297
16298 else
16299   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16300 # that cause trouble.  Some versions do not even contain alloca or
16301 # contain a buggy version.  If you still want to use their alloca,
16302 # use ar to extract alloca.o from them instead of compiling alloca.c.
16303
16304 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16305
16306 $as_echo "#define C_ALLOCA 1" >>confdefs.h
16307
16308
16309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
16310 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
16311 if ${ac_cv_os_cray+:} false; then :
16312   $as_echo_n "(cached) " >&6
16313 else
16314   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16315 /* end confdefs.h.  */
16316 #if defined CRAY && ! defined CRAY2
16317 webecray
16318 #else
16319 wenotbecray
16320 #endif
16321
16322 _ACEOF
16323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16324   $EGREP "webecray" >/dev/null 2>&1; then :
16325   ac_cv_os_cray=yes
16326 else
16327   ac_cv_os_cray=no
16328 fi
16329 rm -f conftest*
16330
16331 fi
16332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16333 $as_echo "$ac_cv_os_cray" >&6; }
16334 if test $ac_cv_os_cray = yes; then
16335   for ac_func in _getb67 GETB67 getb67; do
16336     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16337 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16338 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16339
16340 cat >>confdefs.h <<_ACEOF
16341 #define CRAY_STACKSEG_END $ac_func
16342 _ACEOF
16343
16344     break
16345 fi
16346
16347   done
16348 fi
16349
16350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16351 $as_echo_n "checking stack direction for C alloca... " >&6; }
16352 if ${ac_cv_c_stack_direction+:} false; then :
16353   $as_echo_n "(cached) " >&6
16354 else
16355   if test "$cross_compiling" = yes; then :
16356   ac_cv_c_stack_direction=0
16357 else
16358   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16359 /* end confdefs.h.  */
16360 $ac_includes_default
16361 int
16362 find_stack_direction (int *addr, int depth)
16363 {
16364   int dir, dummy = 0;
16365   if (! addr)
16366     addr = &dummy;
16367   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16368   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16369   return dir + dummy;
16370 }
16371
16372 int
16373 main (int argc, char **argv)
16374 {
16375   return find_stack_direction (0, argc + !argv + 20) < 0;
16376 }
16377 _ACEOF
16378 if ac_fn_c_try_run "$LINENO"; then :
16379   ac_cv_c_stack_direction=1
16380 else
16381   ac_cv_c_stack_direction=-1
16382 fi
16383 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16384   conftest.$ac_objext conftest.beam conftest.$ac_ext
16385 fi
16386
16387 fi
16388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16389 $as_echo "$ac_cv_c_stack_direction" >&6; }
16390 cat >>confdefs.h <<_ACEOF
16391 #define STACK_DIRECTION $ac_cv_c_stack_direction
16392 _ACEOF
16393
16394
16395 fi
16396
16397         ;;
16398     esac
16399
16400     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
16401 $as_echo_n "checking for working memcmp... " >&6; }
16402 if ${ac_cv_func_memcmp_working+:} false; then :
16403   $as_echo_n "(cached) " >&6
16404 else
16405   if test "$cross_compiling" = yes; then :
16406   ac_cv_func_memcmp_working=no
16407 else
16408   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16409 /* end confdefs.h.  */
16410 $ac_includes_default
16411 int
16412 main ()
16413 {
16414
16415   /* Some versions of memcmp are not 8-bit clean.  */
16416   char c0 = '\100', c1 = '\200', c2 = '\201';
16417   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
16418     return 1;
16419
16420   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
16421      or more and with at least one buffer not starting on a 4-byte boundary.
16422      William Lewis provided this test program.   */
16423   {
16424     char foo[21];
16425     char bar[21];
16426     int i;
16427     for (i = 0; i < 4; i++)
16428       {
16429         char *a = foo + i;
16430         char *b = bar + i;
16431         strcpy (a, "--------01111111");
16432         strcpy (b, "--------10000000");
16433         if (memcmp (a, b, 16) >= 0)
16434           return 1;
16435       }
16436     return 0;
16437   }
16438
16439   ;
16440   return 0;
16441 }
16442 _ACEOF
16443 if ac_fn_c_try_run "$LINENO"; then :
16444   ac_cv_func_memcmp_working=yes
16445 else
16446   ac_cv_func_memcmp_working=no
16447 fi
16448 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16449   conftest.$ac_objext conftest.beam conftest.$ac_ext
16450 fi
16451
16452 fi
16453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
16454 $as_echo "$ac_cv_func_memcmp_working" >&6; }
16455 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
16456   *" memcmp.$ac_objext "* ) ;;
16457   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
16458  ;;
16459 esac
16460
16461
16462     if test x$ac_cv_func_memcmp_working = xyes; then
16463
16464 $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h
16465
16466     fi
16467     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
16468 $as_echo_n "checking for working strtod... " >&6; }
16469 if ${ac_cv_func_strtod+:} false; then :
16470   $as_echo_n "(cached) " >&6
16471 else
16472   if test "$cross_compiling" = yes; then :
16473   ac_cv_func_strtod=no
16474 else
16475   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16476 /* end confdefs.h.  */
16477
16478 $ac_includes_default
16479 #ifndef strtod
16480 double strtod ();
16481 #endif
16482 int
16483 main()
16484 {
16485   {
16486     /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
16487     char *string = " +69";
16488     char *term;
16489     double value;
16490     value = strtod (string, &term);
16491     if (value != 69 || term != (string + 4))
16492       return 1;
16493   }
16494
16495   {
16496     /* Under Solaris 2.4, strtod returns the wrong value for the
16497        terminating character under some conditions.  */
16498     char *string = "NaN";
16499     char *term;
16500     strtod (string, &term);
16501     if (term != string && *(term - 1) == 0)
16502       return 1;
16503   }
16504   return 0;
16505 }
16506
16507 _ACEOF
16508 if ac_fn_c_try_run "$LINENO"; then :
16509   ac_cv_func_strtod=yes
16510 else
16511   ac_cv_func_strtod=no
16512 fi
16513 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16514   conftest.$ac_objext conftest.beam conftest.$ac_ext
16515 fi
16516
16517 fi
16518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
16519 $as_echo "$ac_cv_func_strtod" >&6; }
16520 if test $ac_cv_func_strtod = no; then
16521   case " $LIBOBJS " in
16522   *" strtod.$ac_objext "* ) ;;
16523   *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
16524  ;;
16525 esac
16526
16527 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
16528 if test "x$ac_cv_func_pow" = xyes; then :
16529
16530 fi
16531
16532 if test $ac_cv_func_pow = no; then
16533   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
16534 $as_echo_n "checking for pow in -lm... " >&6; }
16535 if ${ac_cv_lib_m_pow+:} false; then :
16536   $as_echo_n "(cached) " >&6
16537 else
16538   ac_check_lib_save_LIBS=$LIBS
16539 LIBS="-lm  $LIBS"
16540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16541 /* end confdefs.h.  */
16542
16543 /* Override any GCC internal prototype to avoid an error.
16544    Use char because int might match the return type of a GCC
16545    builtin and then its argument prototype would still apply.  */
16546 #ifdef __cplusplus
16547 extern "C"
16548 #endif
16549 char pow ();
16550 int
16551 main ()
16552 {
16553 return pow ();
16554   ;
16555   return 0;
16556 }
16557 _ACEOF
16558 if ac_fn_c_try_link "$LINENO"; then :
16559   ac_cv_lib_m_pow=yes
16560 else
16561   ac_cv_lib_m_pow=no
16562 fi
16563 rm -f core conftest.err conftest.$ac_objext \
16564     conftest$ac_exeext conftest.$ac_ext
16565 LIBS=$ac_check_lib_save_LIBS
16566 fi
16567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
16568 $as_echo "$ac_cv_lib_m_pow" >&6; }
16569 if test "x$ac_cv_lib_m_pow" = xyes; then :
16570   POW_LIB=-lm
16571 else
16572   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
16573 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
16574 fi
16575
16576 fi
16577
16578 fi
16579
16580     if test x$ac_cv_func_strtod = xyes; then
16581
16582 $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
16583
16584     fi
16585     ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
16586 if test "x$ac_cv_func_mprotect" = xyes; then :
16587   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16588 /* end confdefs.h.  */
16589
16590           #include <sys/types.h>
16591           #include <sys/mman.h>
16592
16593 int
16594 main ()
16595 {
16596
16597
16598   ;
16599   return 0;
16600 }
16601 _ACEOF
16602 if ac_fn_c_try_compile "$LINENO"; then :
16603
16604
16605 $as_echo "#define HAVE_MPROTECT 1" >>confdefs.h
16606
16607
16608 fi
16609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16610 fi
16611
16612     for ac_func in malloc calloc realloc free getenv setenv putenv unsetenv qsort abs bcopy memset memcpy memmove strlen strlcpy strlcat strdup _strrev _strupr _strlwr strchr strrchr strstr itoa _ltoa _uitoa _ultoa strtol strtoul _i64toa _ui64toa strtoll strtoull atoi atof strcmp strncmp _stricmp strcasecmp _strnicmp strncasecmp vsscanf vsnprintf fseeko fseeko64 sigaction setjmp nanosleep sysconf sysctlbyname
16613 do :
16614   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16615 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16616 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16617   cat >>confdefs.h <<_ACEOF
16618 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16619 _ACEOF
16620
16621 fi
16622 done
16623
16624
16625     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
16626 $as_echo_n "checking for pow in -lm... " >&6; }
16627 if ${ac_cv_lib_m_pow+:} false; then :
16628   $as_echo_n "(cached) " >&6
16629 else
16630   ac_check_lib_save_LIBS=$LIBS
16631 LIBS="-lm  $LIBS"
16632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16633 /* end confdefs.h.  */
16634
16635 /* Override any GCC internal prototype to avoid an error.
16636    Use char because int might match the return type of a GCC
16637    builtin and then its argument prototype would still apply.  */
16638 #ifdef __cplusplus
16639 extern "C"
16640 #endif
16641 char pow ();
16642 int
16643 main ()
16644 {
16645 return pow ();
16646   ;
16647   return 0;
16648 }
16649 _ACEOF
16650 if ac_fn_c_try_link "$LINENO"; then :
16651   ac_cv_lib_m_pow=yes
16652 else
16653   ac_cv_lib_m_pow=no
16654 fi
16655 rm -f core conftest.err conftest.$ac_objext \
16656     conftest$ac_exeext conftest.$ac_ext
16657 LIBS=$ac_check_lib_save_LIBS
16658 fi
16659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
16660 $as_echo "$ac_cv_lib_m_pow" >&6; }
16661 if test "x$ac_cv_lib_m_pow" = xyes; then :
16662   LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
16663 fi
16664
16665     for ac_func in atan atan2 acos asin ceil copysign cos cosf fabs floor log pow scalbn sin sinf sqrt sqrtf tan tanf
16666 do :
16667   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16668 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16669 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16670   cat >>confdefs.h <<_ACEOF
16671 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16672 _ACEOF
16673
16674 fi
16675 done
16676
16677
16678     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
16679 $as_echo_n "checking for iconv_open in -liconv... " >&6; }
16680 if ${ac_cv_lib_iconv_iconv_open+:} false; then :
16681   $as_echo_n "(cached) " >&6
16682 else
16683   ac_check_lib_save_LIBS=$LIBS
16684 LIBS="-liconv  $LIBS"
16685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16686 /* end confdefs.h.  */
16687
16688 /* Override any GCC internal prototype to avoid an error.
16689    Use char because int might match the return type of a GCC
16690    builtin and then its argument prototype would still apply.  */
16691 #ifdef __cplusplus
16692 extern "C"
16693 #endif
16694 char iconv_open ();
16695 int
16696 main ()
16697 {
16698 return iconv_open ();
16699   ;
16700   return 0;
16701 }
16702 _ACEOF
16703 if ac_fn_c_try_link "$LINENO"; then :
16704   ac_cv_lib_iconv_iconv_open=yes
16705 else
16706   ac_cv_lib_iconv_iconv_open=no
16707 fi
16708 rm -f core conftest.err conftest.$ac_objext \
16709     conftest$ac_exeext conftest.$ac_ext
16710 LIBS=$ac_check_lib_save_LIBS
16711 fi
16712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
16713 $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
16714 if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
16715   LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
16716 fi
16717
16718     for ac_func in iconv
16719 do :
16720   ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
16721 if test "x$ac_cv_func_iconv" = xyes; then :
16722   cat >>confdefs.h <<_ACEOF
16723 #define HAVE_ICONV 1
16724 _ACEOF
16725
16726 fi
16727 done
16728
16729
16730     ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
16731 "
16732 if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
16733   $as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h
16734
16735 fi
16736
16737 fi
16738
16739
16740 # Check whether --enable-gcc-atomics was given.
16741 if test "${enable_gcc_atomics+set}" = set; then :
16742   enableval=$enable_gcc_atomics;
16743 else
16744   enable_gcc_atomics=yes
16745 fi
16746
16747 if test x$enable_gcc_atomics = xyes; then
16748     have_gcc_atomics=no
16749     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
16750 $as_echo_n "checking for GCC builtin atomic operations... " >&6; }
16751     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16752 /* end confdefs.h.  */
16753
16754
16755 int
16756 main ()
16757 {
16758
16759     int a;
16760     void *x, *y, *z;
16761     __sync_lock_test_and_set(&a, 4);
16762     __sync_lock_test_and_set(&x, y);
16763     __sync_fetch_and_add(&a, 1);
16764     __sync_bool_compare_and_swap(&a, 5, 10);
16765     __sync_bool_compare_and_swap(&x, y, z);
16766
16767   ;
16768   return 0;
16769 }
16770 _ACEOF
16771 if ac_fn_c_try_link "$LINENO"; then :
16772
16773     have_gcc_atomics=yes
16774
16775 fi
16776 rm -f core conftest.err conftest.$ac_objext \
16777     conftest$ac_exeext conftest.$ac_ext
16778     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
16779 $as_echo "$have_gcc_atomics" >&6; }
16780
16781     if test x$have_gcc_atomics = xyes; then
16782
16783 $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
16784
16785     else
16786         # See if we have the minimum operation needed for GCC atomics
16787         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16788 /* end confdefs.h.  */
16789
16790
16791 int
16792 main ()
16793 {
16794
16795         int a;
16796         __sync_lock_test_and_set(&a, 1);
16797         __sync_lock_release(&a);
16798
16799   ;
16800   return 0;
16801 }
16802 _ACEOF
16803 if ac_fn_c_try_link "$LINENO"; then :
16804
16805         have_gcc_sync_lock_test_and_set=yes
16806
16807 fi
16808 rm -f core conftest.err conftest.$ac_objext \
16809     conftest$ac_exeext conftest.$ac_ext
16810         if test x$have_gcc_sync_lock_test_and_set = xyes; then
16811
16812 $as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
16813
16814         fi
16815     fi
16816 fi
16817
16818 # Standard C sources
16819 SOURCES="$SOURCES $srcdir/src/*.c"
16820 SOURCES="$SOURCES $srcdir/src/atomic/*.c"
16821 SOURCES="$SOURCES $srcdir/src/audio/*.c"
16822 SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
16823 SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
16824 SOURCES="$SOURCES $srcdir/src/events/*.c"
16825 SOURCES="$SOURCES $srcdir/src/file/*.c"
16826 SOURCES="$SOURCES $srcdir/src/haptic/*.c"
16827 SOURCES="$SOURCES $srcdir/src/joystick/*.c"
16828 SOURCES="$SOURCES $srcdir/src/libm/*.c"
16829 SOURCES="$SOURCES $srcdir/src/power/*.c"
16830 #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
16831 SOURCES="$SOURCES $srcdir/src/render/*.c"
16832 SOURCES="$SOURCES $srcdir/src/render/*/*.c"
16833 SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
16834 SOURCES="$SOURCES $srcdir/src/thread/*.c"
16835 SOURCES="$SOURCES $srcdir/src/timer/*.c"
16836 SOURCES="$SOURCES $srcdir/src/video/*.c"
16837
16838
16839 # Check whether --enable-atomic was given.
16840 if test "${enable_atomic+set}" = set; then :
16841   enableval=$enable_atomic;
16842 else
16843   enable_atomic=yes
16844 fi
16845
16846 if test x$enable_atomic != xyes; then
16847
16848 $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
16849
16850 else
16851     SUMMARY_modules="${SUMMARY_modules} atomic"
16852 fi
16853 # Check whether --enable-audio was given.
16854 if test "${enable_audio+set}" = set; then :
16855   enableval=$enable_audio;
16856 else
16857   enable_audio=yes
16858 fi
16859
16860 if test x$enable_audio != xyes; then
16861
16862 $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
16863
16864 else
16865     SUMMARY_modules="${SUMMARY_modules} audio"
16866 fi
16867 # Check whether --enable-video was given.
16868 if test "${enable_video+set}" = set; then :
16869   enableval=$enable_video;
16870 else
16871   enable_video=yes
16872 fi
16873
16874 if test x$enable_video != xyes; then
16875
16876 $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
16877
16878 else
16879     SUMMARY_modules="${SUMMARY_modules} video"
16880 fi
16881 # Check whether --enable-render was given.
16882 if test "${enable_render+set}" = set; then :
16883   enableval=$enable_render;
16884 else
16885   enable_render=yes
16886 fi
16887
16888 if test x$enable_render != xyes; then
16889
16890 $as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h
16891
16892 else
16893     SUMMARY_modules="${SUMMARY_modules} render"
16894 fi
16895 # Check whether --enable-events was given.
16896 if test "${enable_events+set}" = set; then :
16897   enableval=$enable_events;
16898 else
16899   enable_events=yes
16900 fi
16901
16902 if test x$enable_events != xyes; then
16903
16904 $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
16905
16906 else
16907     SUMMARY_modules="${SUMMARY_modules} events"
16908 fi
16909 # Check whether --enable-joystick was given.
16910 if test "${enable_joystick+set}" = set; then :
16911   enableval=$enable_joystick;
16912 else
16913   enable_joystick=yes
16914 fi
16915
16916 if test x$enable_joystick != xyes; then
16917
16918 $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
16919
16920 else
16921     SUMMARY_modules="${SUMMARY_modules} joystick"
16922 fi
16923 # Check whether --enable-haptic was given.
16924 if test "${enable_haptic+set}" = set; then :
16925   enableval=$enable_haptic;
16926 else
16927   enable_haptic=yes
16928 fi
16929
16930 if test x$enable_haptic != xyes; then
16931
16932 $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
16933
16934 else
16935     SUMMARY_modules="${SUMMARY_modules} haptic"
16936 fi
16937 # Check whether --enable-power was given.
16938 if test "${enable_power+set}" = set; then :
16939   enableval=$enable_power;
16940 else
16941   enable_power=yes
16942 fi
16943
16944 if test x$enable_power != xyes; then
16945
16946 $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
16947
16948 else
16949     SUMMARY_modules="${SUMMARY_modules} power"
16950 fi
16951 # Check whether --enable-filesystem was given.
16952 if test "${enable_filesystem+set}" = set; then :
16953   enableval=$enable_filesystem;
16954 else
16955   enable_filesystem=yes
16956 fi
16957
16958 if test x$enable_filesystem != xyes; then
16959
16960 $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
16961
16962 else
16963     SUMMARY_modules="${SUMMARY_modules} filesystem"
16964 fi
16965 # Check whether --enable-threads was given.
16966 if test "${enable_threads+set}" = set; then :
16967   enableval=$enable_threads;
16968 else
16969   enable_threads=yes
16970 fi
16971
16972 if test x$enable_threads != xyes; then
16973
16974 $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
16975
16976 else
16977     SUMMARY_modules="${SUMMARY_modules} threads"
16978 fi
16979 # Check whether --enable-timers was given.
16980 if test "${enable_timers+set}" = set; then :
16981   enableval=$enable_timers;
16982 else
16983   enable_timers=yes
16984 fi
16985
16986 if test x$enable_timers != xyes; then
16987
16988 $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
16989
16990 else
16991     SUMMARY_modules="${SUMMARY_modules} timers"
16992 fi
16993 # Check whether --enable-file was given.
16994 if test "${enable_file+set}" = set; then :
16995   enableval=$enable_file;
16996 else
16997   enable_file=yes
16998 fi
16999
17000 if test x$enable_file != xyes; then
17001
17002 $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h
17003
17004 else
17005     SUMMARY_modules="${SUMMARY_modules} file"
17006 fi
17007 # Check whether --enable-loadso was given.
17008 if test "${enable_loadso+set}" = set; then :
17009   enableval=$enable_loadso;
17010 else
17011   enable_loadso=yes
17012 fi
17013
17014 if test x$enable_loadso != xyes; then
17015
17016 $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
17017
17018 else
17019     SUMMARY_modules="${SUMMARY_modules} loadso"
17020 fi
17021 # Check whether --enable-cpuinfo was given.
17022 if test "${enable_cpuinfo+set}" = set; then :
17023   enableval=$enable_cpuinfo;
17024 else
17025   enable_cpuinfo=yes
17026 fi
17027
17028 if test x$enable_cpuinfo != xyes; then
17029
17030 $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
17031
17032 else
17033     SUMMARY_modules="${SUMMARY_modules} cpuinfo"
17034 fi
17035 # Check whether --enable-assembly was given.
17036 if test "${enable_assembly+set}" = set; then :
17037   enableval=$enable_assembly;
17038 else
17039   enable_assembly=yes
17040 fi
17041
17042 if test x$enable_assembly = xyes; then
17043     SUMMARY_modules="${SUMMARY_modules} assembly"
17044
17045
17046 $as_echo "#define SDL_ASSEMBLY_ROUTINES 1" >>confdefs.h
17047
17048
17049     # Make sure that we don't generate floating point code that would
17050     # cause illegal instruction exceptions on older processors
17051     case "$host" in
17052         *-*-darwin*)
17053             # Don't need to worry about Apple hardware, it's all SSE capable
17054             default_ssemath=yes
17055             ;;
17056         *64-*-*)
17057             # x86 64-bit architectures all have SSE instructions
17058             default_ssemath=yes
17059             ;;
17060         *)
17061             default_ssemath=no
17062             ;;
17063     esac
17064     # Check whether --enable-ssemath was given.
17065 if test "${enable_ssemath+set}" = set; then :
17066   enableval=$enable_ssemath;
17067 else
17068   enable_ssemath=$default_ssemath
17069 fi
17070
17071     if test x$enable_ssemath = xno; then
17072         if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes; then
17073             EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
17074         fi
17075     fi
17076
17077         # Check whether --enable-mmx was given.
17078 if test "${enable_mmx+set}" = set; then :
17079   enableval=$enable_mmx;
17080 else
17081   enable_mmx=yes
17082 fi
17083
17084     if test x$enable_mmx = xyes; then
17085         save_CFLAGS="$CFLAGS"
17086         have_gcc_mmx=no
17087         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
17088 $as_echo_n "checking for GCC -mmmx option... " >&6; }
17089         mmx_CFLAGS="-mmmx"
17090         CFLAGS="$save_CFLAGS $mmx_CFLAGS"
17091
17092         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17093 /* end confdefs.h.  */
17094
17095         #ifdef __MINGW32__
17096         #include <_mingw.h>
17097         #ifdef __MINGW64_VERSION_MAJOR
17098         #include <intrin.h>
17099         #else
17100         #include <mmintrin.h>
17101         #endif
17102         #else
17103         #include <mmintrin.h>
17104         #endif
17105         #ifndef __MMX__
17106         #error Assembler CPP flag not enabled
17107         #endif
17108
17109 int
17110 main ()
17111 {
17112
17113
17114   ;
17115   return 0;
17116 }
17117 _ACEOF
17118 if ac_fn_c_try_compile "$LINENO"; then :
17119
17120         have_gcc_mmx=yes
17121
17122 fi
17123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17124         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
17125 $as_echo "$have_gcc_mmx" >&6; }
17126         CFLAGS="$save_CFLAGS"
17127
17128         if test x$have_gcc_mmx = xyes; then
17129             EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
17130             SUMMARY_math="${SUMMARY_math} mmx"
17131         fi
17132     fi
17133
17134     # Check whether --enable-3dnow was given.
17135 if test "${enable_3dnow+set}" = set; then :
17136   enableval=$enable_3dnow;
17137 else
17138   enable_3dnow=yes
17139 fi
17140
17141     if test x$enable_3dnow = xyes; then
17142         save_CFLAGS="$CFLAGS"
17143         have_gcc_3dnow=no
17144         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
17145 $as_echo_n "checking for GCC -m3dnow option... " >&6; }
17146         amd3dnow_CFLAGS="-m3dnow"
17147         CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
17148
17149         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17150 /* end confdefs.h.  */
17151
17152         #include <mm3dnow.h>
17153         #ifndef __3dNOW__
17154         #error Assembler CPP flag not enabled
17155         #endif
17156
17157 int
17158 main ()
17159 {
17160
17161         void *p = 0;
17162         _m_prefetch(p);
17163
17164   ;
17165   return 0;
17166 }
17167 _ACEOF
17168 if ac_fn_c_try_link "$LINENO"; then :
17169
17170         have_gcc_3dnow=yes
17171
17172 fi
17173 rm -f core conftest.err conftest.$ac_objext \
17174     conftest$ac_exeext conftest.$ac_ext
17175         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
17176 $as_echo "$have_gcc_3dnow" >&6; }
17177         CFLAGS="$save_CFLAGS"
17178
17179         if test x$have_gcc_3dnow = xyes; then
17180             EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
17181             SUMMARY_math="${SUMMARY_math} 3dnow"
17182         fi
17183     fi
17184
17185     # Check whether --enable-sse was given.
17186 if test "${enable_sse+set}" = set; then :
17187   enableval=$enable_sse;
17188 else
17189   enable_sse=yes
17190 fi
17191
17192     if test x$enable_sse = xyes; then
17193         save_CFLAGS="$CFLAGS"
17194         have_gcc_sse=no
17195         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
17196 $as_echo_n "checking for GCC -msse option... " >&6; }
17197         sse_CFLAGS="-msse"
17198         CFLAGS="$save_CFLAGS $sse_CFLAGS"
17199
17200         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17201 /* end confdefs.h.  */
17202
17203         #ifdef __MINGW32__
17204         #include <_mingw.h>
17205         #ifdef __MINGW64_VERSION_MAJOR
17206         #include <intrin.h>
17207         #else
17208         #include <xmmintrin.h>
17209         #endif
17210         #else
17211         #include <xmmintrin.h>
17212         #endif
17213         #ifndef __SSE__
17214         #error Assembler CPP flag not enabled
17215         #endif
17216
17217 int
17218 main ()
17219 {
17220
17221
17222   ;
17223   return 0;
17224 }
17225 _ACEOF
17226 if ac_fn_c_try_compile "$LINENO"; then :
17227
17228         have_gcc_sse=yes
17229
17230 fi
17231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17232         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
17233 $as_echo "$have_gcc_sse" >&6; }
17234         CFLAGS="$save_CFLAGS"
17235
17236         if test x$have_gcc_sse = xyes; then
17237             EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
17238             SUMMARY_math="${SUMMARY_math} sse"
17239         fi
17240     fi
17241
17242     # Check whether --enable-sse2 was given.
17243 if test "${enable_sse2+set}" = set; then :
17244   enableval=$enable_sse2;
17245 else
17246   enable_sse2=$default_ssemath
17247 fi
17248
17249     if test x$enable_sse2 = xyes; then
17250         save_CFLAGS="$CFLAGS"
17251         have_gcc_sse2=no
17252         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
17253 $as_echo_n "checking for GCC -msse2 option... " >&6; }
17254         sse2_CFLAGS="-msse2"
17255         CFLAGS="$save_CFLAGS $sse2_CFLAGS"
17256
17257         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17258 /* end confdefs.h.  */
17259
17260         #ifdef __MINGW32__
17261         #include <_mingw.h>
17262         #ifdef __MINGW64_VERSION_MAJOR
17263         #include <intrin.h>
17264         #else
17265         #include <emmintrin.h>
17266         #endif
17267         #else
17268         #include <emmintrin.h>
17269         #endif
17270         #ifndef __SSE2__
17271         #error Assembler CPP flag not enabled
17272         #endif
17273
17274 int
17275 main ()
17276 {
17277
17278
17279   ;
17280   return 0;
17281 }
17282 _ACEOF
17283 if ac_fn_c_try_compile "$LINENO"; then :
17284
17285         have_gcc_sse2=yes
17286
17287 fi
17288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17289         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
17290 $as_echo "$have_gcc_sse2" >&6; }
17291         CFLAGS="$save_CFLAGS"
17292
17293         if test x$have_gcc_sse2 = xyes; then
17294             EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
17295             SUMMARY_math="${SUMMARY_math} sse2"
17296         fi
17297     fi
17298
17299     # Check whether --enable-altivec was given.
17300 if test "${enable_altivec+set}" = set; then :
17301   enableval=$enable_altivec;
17302 else
17303   enable_altivec=yes
17304 fi
17305
17306     if test x$enable_altivec = xyes; then
17307         save_CFLAGS="$CFLAGS"
17308         have_gcc_altivec=no
17309         have_altivec_h_hdr=no
17310         altivec_CFLAGS="-maltivec"
17311         CFLAGS="$save_CFLAGS $altivec_CFLAGS"
17312
17313         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
17314 $as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
17315         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17316 /* end confdefs.h.  */
17317
17318         #include <altivec.h>
17319         vector unsigned int vzero() {
17320             return vec_splat_u32(0);
17321         }
17322
17323 int
17324 main ()
17325 {
17326
17327
17328   ;
17329   return 0;
17330 }
17331 _ACEOF
17332 if ac_fn_c_try_compile "$LINENO"; then :
17333
17334         have_gcc_altivec=yes
17335         have_altivec_h_hdr=yes
17336
17337 fi
17338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17339         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
17340 $as_echo "$have_gcc_altivec" >&6; }
17341
17342         if test x$have_gcc_altivec = xno; then
17343             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
17344 $as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; }
17345             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17346 /* end confdefs.h.  */
17347
17348             vector unsigned int vzero() {
17349                 return vec_splat_u32(0);
17350             }
17351
17352 int
17353 main ()
17354 {
17355
17356
17357   ;
17358   return 0;
17359 }
17360 _ACEOF
17361 if ac_fn_c_try_compile "$LINENO"; then :
17362
17363             have_gcc_altivec=yes
17364
17365 fi
17366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17367             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
17368 $as_echo "$have_gcc_altivec" >&6; }
17369         fi
17370
17371         if test x$have_gcc_altivec = xno; then
17372             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
17373 $as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
17374             altivec_CFLAGS="-faltivec"
17375             CFLAGS="$save_CFLAGS $altivec_CFLAGS"
17376             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17377 /* end confdefs.h.  */
17378
17379             #include <altivec.h>
17380             vector unsigned int vzero() {
17381                 return vec_splat_u32(0);
17382             }
17383
17384 int
17385 main ()
17386 {
17387
17388
17389   ;
17390   return 0;
17391 }
17392 _ACEOF
17393 if ac_fn_c_try_compile "$LINENO"; then :
17394
17395             have_gcc_altivec=yes
17396             have_altivec_h_hdr=yes
17397
17398 fi
17399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17400             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
17401 $as_echo "$have_gcc_altivec" >&6; }
17402         fi
17403
17404         if test x$have_gcc_altivec = xno; then
17405             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
17406 $as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; }
17407             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17408 /* end confdefs.h.  */
17409
17410             vector unsigned int vzero() {
17411                 return vec_splat_u32(0);
17412             }
17413
17414 int
17415 main ()
17416 {
17417
17418
17419   ;
17420   return 0;
17421 }
17422 _ACEOF
17423 if ac_fn_c_try_compile "$LINENO"; then :
17424
17425             have_gcc_altivec=yes
17426
17427 fi
17428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17429             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
17430 $as_echo "$have_gcc_altivec" >&6; }
17431         fi
17432         CFLAGS="$save_CFLAGS"
17433
17434         if test x$have_gcc_altivec = xyes; then
17435
17436 $as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
17437
17438             if test x$have_altivec_h_hdr = xyes; then
17439
17440 $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h
17441
17442             fi
17443             EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
17444             SUMMARY_math="${SUMMARY_math} altivec"
17445         fi
17446     fi
17447 fi
17448
17449 CheckOSS()
17450 {
17451     # Check whether --enable-oss was given.
17452 if test "${enable_oss+set}" = set; then :
17453   enableval=$enable_oss;
17454 else
17455   enable_oss=maybe
17456 fi
17457
17458
17459     # OpenBSD "has" OSS, but it's not really for app use. They want you to
17460     #  use sndio instead. So on there, we default to disabled. You can force
17461     #  it on if you really want, though.
17462     if test x$enable_oss = xmaybe; then
17463         enable_oss=yes
17464         case "$host" in
17465             *-*-openbsd*)
17466                 enable_oss=no;;
17467         esac
17468     fi
17469
17470     if test x$enable_audio = xyes -a x$enable_oss = xyes; then
17471         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
17472 $as_echo_n "checking for OSS audio support... " >&6; }
17473         have_oss=no
17474         if test x$have_oss != xyes; then
17475             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17476 /* end confdefs.h.  */
17477
17478               #include <sys/soundcard.h>
17479
17480 int
17481 main ()
17482 {
17483
17484               int arg = SNDCTL_DSP_SETFRAGMENT;
17485
17486   ;
17487   return 0;
17488 }
17489 _ACEOF
17490 if ac_fn_c_try_compile "$LINENO"; then :
17491
17492             have_oss=yes
17493
17494 fi
17495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17496         fi
17497         if test x$have_oss != xyes; then
17498             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17499 /* end confdefs.h.  */
17500
17501               #include <soundcard.h>
17502
17503 int
17504 main ()
17505 {
17506
17507               int arg = SNDCTL_DSP_SETFRAGMENT;
17508
17509   ;
17510   return 0;
17511 }
17512 _ACEOF
17513 if ac_fn_c_try_compile "$LINENO"; then :
17514
17515             have_oss=yes
17516
17517 $as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
17518
17519
17520 fi
17521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17522         fi
17523         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
17524 $as_echo "$have_oss" >&6; }
17525         if test x$have_oss = xyes; then
17526             SUMMARY_audio="${SUMMARY_audio} oss"
17527
17528 $as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
17529
17530             SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
17531             have_audio=yes
17532
17533             # We may need to link with ossaudio emulation library
17534             case "$host" in
17535                 *-*-openbsd*|*-*-netbsd*)
17536                     EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
17537             esac
17538         fi
17539     fi
17540 }
17541
17542 CheckALSA()
17543 {
17544     # Check whether --enable-alsa was given.
17545 if test "${enable_alsa+set}" = set; then :
17546   enableval=$enable_alsa;
17547 else
17548   enable_alsa=yes
17549 fi
17550
17551     if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
17552         alsa_save_CFLAGS="$CFLAGS"
17553 alsa_save_LDFLAGS="$LDFLAGS"
17554 alsa_save_LIBS="$LIBS"
17555 alsa_found=yes
17556
17557
17558 # Check whether --with-alsa-prefix was given.
17559 if test "${with_alsa_prefix+set}" = set; then :
17560   withval=$with_alsa_prefix; alsa_prefix="$withval"
17561 else
17562   alsa_prefix=""
17563 fi
17564
17565
17566
17567 # Check whether --with-alsa-inc-prefix was given.
17568 if test "${with_alsa_inc_prefix+set}" = set; then :
17569   withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
17570 else
17571   alsa_inc_prefix=""
17572 fi
17573
17574
17575 # Check whether --enable-alsatest was given.
17576 if test "${enable_alsatest+set}" = set; then :
17577   enableval=$enable_alsatest; enable_alsatest="$enableval"
17578 else
17579   enable_alsatest=yes
17580 fi
17581
17582
17583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
17584 $as_echo_n "checking for ALSA CFLAGS... " >&6; }
17585 if test "$alsa_inc_prefix" != "" ; then
17586         ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
17587         CFLAGS="$CFLAGS -I$alsa_inc_prefix"
17588 fi
17589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
17590 $as_echo "$ALSA_CFLAGS" >&6; }
17591
17592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
17593 $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
17594 if test "$alsa_prefix" != "" ; then
17595         ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
17596         LDFLAGS="$LDFLAGS $ALSA_LIBS"
17597 fi
17598
17599 ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
17600 LIBS=`echo $LIBS | sed 's/-lm//'`
17601 LIBS=`echo $LIBS | sed 's/-ldl//'`
17602 LIBS=`echo $LIBS | sed 's/-lpthread//'`
17603 LIBS=`echo $LIBS | sed 's/  //'`
17604 LIBS="$ALSA_LIBS $LIBS"
17605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
17606 $as_echo "$ALSA_LIBS" >&6; }
17607
17608 min_alsa_version=0.9.0
17609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
17610 $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
17611 no_alsa=""
17612     alsa_min_major_version=`echo $min_alsa_version | \
17613            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
17614     alsa_min_minor_version=`echo $min_alsa_version | \
17615            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
17616     alsa_min_micro_version=`echo $min_alsa_version | \
17617            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
17618
17619
17620 ac_ext=c
17621 ac_cpp='$CPP $CPPFLAGS'
17622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17625
17626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17627 /* end confdefs.h.  */
17628
17629 #include <alsa/asoundlib.h>
17630
17631 int
17632 main ()
17633 {
17634
17635 /* ensure backward compatibility */
17636 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
17637 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
17638 #endif
17639 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
17640 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
17641 #endif
17642 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
17643 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
17644 #endif
17645
17646 #  if(SND_LIB_MAJOR > $alsa_min_major_version)
17647   exit(0);
17648 #  else
17649 #    if(SND_LIB_MAJOR < $alsa_min_major_version)
17650 #       error not present
17651 #    endif
17652
17653 #   if(SND_LIB_MINOR > $alsa_min_minor_version)
17654   exit(0);
17655 #   else
17656 #     if(SND_LIB_MINOR < $alsa_min_minor_version)
17657 #          error not present
17658 #      endif
17659
17660 #      if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
17661 #        error not present
17662 #      endif
17663 #    endif
17664 #  endif
17665 exit(0);
17666
17667   ;
17668   return 0;
17669 }
17670 _ACEOF
17671 if ac_fn_c_try_compile "$LINENO"; then :
17672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
17673 $as_echo "found." >&6; }
17674 else
17675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
17676 $as_echo "not present." >&6; }
17677
17678    alsa_found=no
17679
17680 fi
17681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17682 ac_ext=c
17683 ac_cpp='$CPP $CPPFLAGS'
17684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17687
17688
17689 if test "x$enable_alsatest" = "xyes"; then
17690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
17691 $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
17692 if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
17693   $as_echo_n "(cached) " >&6
17694 else
17695   ac_check_lib_save_LIBS=$LIBS
17696 LIBS="-lasound  $LIBS"
17697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17698 /* end confdefs.h.  */
17699
17700 /* Override any GCC internal prototype to avoid an error.
17701    Use char because int might match the return type of a GCC
17702    builtin and then its argument prototype would still apply.  */
17703 #ifdef __cplusplus
17704 extern "C"
17705 #endif
17706 char snd_ctl_open ();
17707 int
17708 main ()
17709 {
17710 return snd_ctl_open ();
17711   ;
17712   return 0;
17713 }
17714 _ACEOF
17715 if ac_fn_c_try_link "$LINENO"; then :
17716   ac_cv_lib_asound_snd_ctl_open=yes
17717 else
17718   ac_cv_lib_asound_snd_ctl_open=no
17719 fi
17720 rm -f core conftest.err conftest.$ac_objext \
17721     conftest$ac_exeext conftest.$ac_ext
17722 LIBS=$ac_check_lib_save_LIBS
17723 fi
17724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
17725 $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
17726 if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
17727   cat >>confdefs.h <<_ACEOF
17728 #define HAVE_LIBASOUND 1
17729 _ACEOF
17730
17731   LIBS="-lasound $LIBS"
17732
17733 else
17734
17735          alsa_found=no
17736
17737 fi
17738
17739 fi
17740
17741 if test "x$alsa_found" = "xyes" ; then
17742    have_alsa=yes
17743    LIBS=`echo $LIBS | sed 's/-lasound//g'`
17744    LIBS=`echo $LIBS | sed 's/  //'`
17745    LIBS="-lasound $LIBS"
17746 fi
17747 if test "x$alsa_found" = "xno" ; then
17748    have_alsa=no
17749    CFLAGS="$alsa_save_CFLAGS"
17750    LDFLAGS="$alsa_save_LDFLAGS"
17751    LIBS="$alsa_save_LIBS"
17752    ALSA_CFLAGS=""
17753    ALSA_LIBS=""
17754 fi
17755
17756
17757
17758
17759         # Restore all flags from before the ALSA detection runs
17760         CFLAGS="$alsa_save_CFLAGS"
17761         LDFLAGS="$alsa_save_LDFLAGS"
17762         LIBS="$alsa_save_LIBS"
17763         if test x$have_alsa = xyes; then
17764             # Check whether --enable-alsa-shared was given.
17765 if test "${enable_alsa_shared+set}" = set; then :
17766   enableval=$enable_alsa_shared;
17767 else
17768   enable_alsa_shared=yes
17769 fi
17770
17771             alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
17772
17773
17774 $as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
17775
17776             SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
17777             EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
17778             if test x$have_loadso != xyes && \
17779                test x$enable_alsa_shared = xyes; then
17780                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
17781 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
17782             fi
17783             if test x$have_loadso = xyes && \
17784                test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
17785                 echo "-- dynamic libasound -> $alsa_lib"
17786
17787 cat >>confdefs.h <<_ACEOF
17788 #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
17789 _ACEOF
17790
17791                 SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
17792             else
17793                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
17794                 SUMMARY_audio="${SUMMARY_audio} alsa"
17795             fi
17796             have_audio=yes
17797         fi
17798     fi
17799 }
17800
17801 CheckESD()
17802 {
17803     # Check whether --enable-esd was given.
17804 if test "${enable_esd+set}" = set; then :
17805   enableval=$enable_esd;
17806 else
17807   enable_esd=yes
17808 fi
17809
17810     if test x$enable_audio = xyes -a x$enable_esd = xyes; then
17811
17812 # Check whether --with-esd-prefix was given.
17813 if test "${with_esd_prefix+set}" = set; then :
17814   withval=$with_esd_prefix; esd_prefix="$withval"
17815 else
17816   esd_prefix=""
17817 fi
17818
17819
17820 # Check whether --with-esd-exec-prefix was given.
17821 if test "${with_esd_exec_prefix+set}" = set; then :
17822   withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
17823 else
17824   esd_exec_prefix=""
17825 fi
17826
17827 # Check whether --enable-esdtest was given.
17828 if test "${enable_esdtest+set}" = set; then :
17829   enableval=$enable_esdtest;
17830 else
17831   enable_esdtest=yes
17832 fi
17833
17834
17835   if test x$esd_exec_prefix != x ; then
17836      esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
17837      if test x${ESD_CONFIG+set} != xset ; then
17838         ESD_CONFIG=$esd_exec_prefix/bin/esd-config
17839      fi
17840   fi
17841   if test x$esd_prefix != x ; then
17842      esd_args="$esd_args --prefix=$esd_prefix"
17843      if test x${ESD_CONFIG+set} != xset ; then
17844         ESD_CONFIG=$esd_prefix/bin/esd-config
17845      fi
17846   fi
17847
17848   # Extract the first word of "esd-config", so it can be a program name with args.
17849 set dummy esd-config; ac_word=$2
17850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17851 $as_echo_n "checking for $ac_word... " >&6; }
17852 if ${ac_cv_path_ESD_CONFIG+:} false; then :
17853   $as_echo_n "(cached) " >&6
17854 else
17855   case $ESD_CONFIG in
17856   [\\/]* | ?:[\\/]*)
17857   ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
17858   ;;
17859   *)
17860   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17861 for as_dir in $PATH
17862 do
17863   IFS=$as_save_IFS
17864   test -z "$as_dir" && as_dir=.
17865     for ac_exec_ext in '' $ac_executable_extensions; do
17866   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17867     ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17868     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17869     break 2
17870   fi
17871 done
17872   done
17873 IFS=$as_save_IFS
17874
17875   test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
17876   ;;
17877 esac
17878 fi
17879 ESD_CONFIG=$ac_cv_path_ESD_CONFIG
17880 if test -n "$ESD_CONFIG"; then
17881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
17882 $as_echo "$ESD_CONFIG" >&6; }
17883 else
17884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17885 $as_echo "no" >&6; }
17886 fi
17887
17888
17889   min_esd_version=0.2.8
17890   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
17891 $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
17892   no_esd=""
17893   if test "$ESD_CONFIG" = "no" ; then
17894     no_esd=yes
17895   else
17896     ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
17897     ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
17898
17899     esd_major_version=`$ESD_CONFIG $esd_args --version | \
17900            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
17901     esd_minor_version=`$ESD_CONFIG $esd_args --version | \
17902            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
17903     esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
17904            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
17905     if test "x$enable_esdtest" = "xyes" ; then
17906       ac_save_CFLAGS="$CFLAGS"
17907       ac_save_LIBS="$LIBS"
17908       CFLAGS="$CFLAGS $ESD_CFLAGS"
17909       LIBS="$LIBS $ESD_LIBS"
17910       rm -f conf.esdtest
17911       if test "$cross_compiling" = yes; then :
17912   echo $ac_n "cross compiling; assumed OK... $ac_c"
17913 else
17914   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17915 /* end confdefs.h.  */
17916
17917 #include <stdio.h>
17918 #include <stdlib.h>
17919 #include <string.h>
17920 #include <esd.h>
17921
17922 char*
17923 my_strdup (char *str)
17924 {
17925   char *new_str;
17926
17927   if (str)
17928     {
17929       new_str = malloc ((strlen (str) + 1) * sizeof(char));
17930       strcpy (new_str, str);
17931     }
17932   else
17933     new_str = NULL;
17934
17935   return new_str;
17936 }
17937
17938 int main ()
17939 {
17940   int major, minor, micro;
17941   char *tmp_version;
17942
17943   system ("touch conf.esdtest");
17944
17945   /* HP/UX 9 (%@#!) writes to sscanf strings */
17946   tmp_version = my_strdup("$min_esd_version");
17947   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
17948      printf("%s, bad version string\n", "$min_esd_version");
17949      exit(1);
17950    }
17951
17952    if (($esd_major_version > major) ||
17953       (($esd_major_version == major) && ($esd_minor_version > minor)) ||
17954       (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
17955     {
17956       return 0;
17957     }
17958   else
17959     {
17960       printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
17961       printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
17962       printf("*** best to upgrade to the required version.\n");
17963       printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
17964       printf("*** to point to the correct copy of esd-config, and remove the file\n");
17965       printf("*** config.cache before re-running configure\n");
17966       return 1;
17967     }
17968 }
17969
17970
17971 _ACEOF
17972 if ac_fn_c_try_run "$LINENO"; then :
17973
17974 else
17975   no_esd=yes
17976 fi
17977 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17978   conftest.$ac_objext conftest.beam conftest.$ac_ext
17979 fi
17980
17981        CFLAGS="$ac_save_CFLAGS"
17982        LIBS="$ac_save_LIBS"
17983      fi
17984   fi
17985   if test "x$no_esd" = x ; then
17986      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17987 $as_echo "yes" >&6; }
17988      have_esd=yes
17989   else
17990      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17991 $as_echo "no" >&6; }
17992      if test "$ESD_CONFIG" = "no" ; then
17993        echo "*** The esd-config script installed by ESD could not be found"
17994        echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
17995        echo "*** your path, or set the ESD_CONFIG environment variable to the"
17996        echo "*** full path to esd-config."
17997      else
17998        if test -f conf.esdtest ; then
17999         :
18000        else
18001           echo "*** Could not run ESD test program, checking why..."
18002           CFLAGS="$CFLAGS $ESD_CFLAGS"
18003           LIBS="$LIBS $ESD_LIBS"
18004           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18005 /* end confdefs.h.  */
18006
18007 #include <stdio.h>
18008 #include <esd.h>
18009
18010 int
18011 main ()
18012 {
18013  return 0;
18014   ;
18015   return 0;
18016 }
18017 _ACEOF
18018 if ac_fn_c_try_link "$LINENO"; then :
18019    echo "*** The test program compiled, but did not run. This usually means"
18020           echo "*** that the run-time linker is not finding ESD or finding the wrong"
18021           echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
18022           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
18023           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
18024           echo "*** is required on your system"
18025           echo "***"
18026           echo "*** If you have an old version installed, it is best to remove it, although"
18027           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
18028 else
18029    echo "*** The test program failed to compile or link. See the file config.log for the"
18030           echo "*** exact error that occured. This usually means ESD was incorrectly installed"
18031           echo "*** or that you have moved ESD since it was installed. In the latter case, you"
18032           echo "*** may want to edit the esd-config script: $ESD_CONFIG"
18033 fi
18034 rm -f core conftest.err conftest.$ac_objext \
18035     conftest$ac_exeext conftest.$ac_ext
18036           CFLAGS="$ac_save_CFLAGS"
18037           LIBS="$ac_save_LIBS"
18038        fi
18039      fi
18040      ESD_CFLAGS=""
18041      ESD_LIBS=""
18042      have_esd=no
18043   fi
18044
18045
18046   rm -f conf.esdtest
18047
18048         if test x$have_esd = xyes; then
18049             # Check whether --enable-esd-shared was given.
18050 if test "${enable_esd_shared+set}" = set; then :
18051   enableval=$enable_esd_shared;
18052 else
18053   enable_esd_shared=yes
18054 fi
18055
18056             esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
18057
18058
18059 $as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
18060
18061             SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
18062             EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
18063             if test x$have_loadso != xyes && \
18064                test x$enable_esd_shared = xyes; then
18065                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
18066 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
18067             fi
18068             if test x$have_loadso = xyes && \
18069                test x$enable_esd_shared = xyes && test x$esd_lib != x; then
18070                 echo "-- dynamic libesd -> $esd_lib"
18071
18072 cat >>confdefs.h <<_ACEOF
18073 #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
18074 _ACEOF
18075
18076                 SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
18077             else
18078                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
18079                 SUMMARY_audio="${SUMMARY_audio} esd"
18080             fi
18081             have_audio=yes
18082         fi
18083     fi
18084 }
18085
18086 CheckPulseAudio()
18087 {
18088     # Check whether --enable-pulseaudio was given.
18089 if test "${enable_pulseaudio+set}" = set; then :
18090   enableval=$enable_pulseaudio;
18091 else
18092   enable_pulseaudio=yes
18093 fi
18094
18095     if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
18096         audio_pulseaudio=no
18097
18098         PULSEAUDIO_REQUIRED_VERSION=0.9
18099
18100         # Extract the first word of "pkg-config", so it can be a program name with args.
18101 set dummy pkg-config; ac_word=$2
18102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18103 $as_echo_n "checking for $ac_word... " >&6; }
18104 if ${ac_cv_path_PKG_CONFIG+:} false; then :
18105   $as_echo_n "(cached) " >&6
18106 else
18107   case $PKG_CONFIG in
18108   [\\/]* | ?:[\\/]*)
18109   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18110   ;;
18111   *)
18112   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18113 for as_dir in $PATH
18114 do
18115   IFS=$as_save_IFS
18116   test -z "$as_dir" && as_dir=.
18117     for ac_exec_ext in '' $ac_executable_extensions; do
18118   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18119     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18120     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18121     break 2
18122   fi
18123 done
18124   done
18125 IFS=$as_save_IFS
18126
18127   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
18128   ;;
18129 esac
18130 fi
18131 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18132 if test -n "$PKG_CONFIG"; then
18133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18134 $as_echo "$PKG_CONFIG" >&6; }
18135 else
18136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18137 $as_echo "no" >&6; }
18138 fi
18139
18140
18141         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support" >&5
18142 $as_echo_n "checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support... " >&6; }
18143         if test x$PKG_CONFIG != xno; then
18144         if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $PULSEAUDIO_REQUIRED_VERSION libpulse-simple; then
18145                 PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags libpulse-simple`
18146                 PULSEAUDIO_LIBS=`$PKG_CONFIG --libs libpulse-simple`
18147                 audio_pulseaudio=yes
18148             fi
18149         fi
18150         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_pulseaudio" >&5
18151 $as_echo "$audio_pulseaudio" >&6; }
18152
18153         if test x$audio_pulseaudio = xyes; then
18154             # Check whether --enable-pulseaudio-shared was given.
18155 if test "${enable_pulseaudio_shared+set}" = set; then :
18156   enableval=$enable_pulseaudio_shared;
18157 else
18158   enable_pulseaudio_shared=yes
18159 fi
18160
18161             pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
18162
18163
18164 $as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
18165
18166             SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
18167             EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
18168             if test x$have_loadso != xyes && \
18169                test x$enable_pulseaudio_shared = xyes; then
18170                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
18171 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
18172             fi
18173             if test x$have_loadso = xyes && \
18174                test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
18175                 echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
18176
18177 cat >>confdefs.h <<_ACEOF
18178 #define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib"
18179 _ACEOF
18180
18181                 SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
18182
18183                 case "$host" in
18184                     # On Solaris, pulseaudio must be linked deferred explicitly
18185                     # to prevent undefined symbol failures.
18186                     *-*-solaris*)
18187                         PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
18188                         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
18189                 esac
18190             else
18191                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
18192                 SUMMARY_audio="${SUMMARY_audio} pulse"
18193             fi
18194             have_audio=yes
18195         fi
18196     fi
18197 }
18198
18199 CheckARTSC()
18200 {
18201     # Check whether --enable-arts was given.
18202 if test "${enable_arts+set}" = set; then :
18203   enableval=$enable_arts;
18204 else
18205   enable_arts=yes
18206 fi
18207
18208     if test x$enable_audio = xyes -a x$enable_arts = xyes; then
18209         # Extract the first word of "artsc-config", so it can be a program name with args.
18210 set dummy artsc-config; ac_word=$2
18211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18212 $as_echo_n "checking for $ac_word... " >&6; }
18213 if ${ac_cv_path_ARTSCONFIG+:} false; then :
18214   $as_echo_n "(cached) " >&6
18215 else
18216   case $ARTSCONFIG in
18217   [\\/]* | ?:[\\/]*)
18218   ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
18219   ;;
18220   *)
18221   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18222 for as_dir in $PATH
18223 do
18224   IFS=$as_save_IFS
18225   test -z "$as_dir" && as_dir=.
18226     for ac_exec_ext in '' $ac_executable_extensions; do
18227   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18228     ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
18229     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18230     break 2
18231   fi
18232 done
18233   done
18234 IFS=$as_save_IFS
18235
18236   ;;
18237 esac
18238 fi
18239 ARTSCONFIG=$ac_cv_path_ARTSCONFIG
18240 if test -n "$ARTSCONFIG"; then
18241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
18242 $as_echo "$ARTSCONFIG" >&6; }
18243 else
18244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18245 $as_echo "no" >&6; }
18246 fi
18247
18248
18249         if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
18250             : # arts isn't installed
18251         else
18252             ARTS_CFLAGS=`$ARTSCONFIG --cflags`
18253             ARTS_LIBS=`$ARTSCONFIG --libs`
18254             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
18255 $as_echo_n "checking for aRts development environment... " >&6; }
18256             audio_arts=no
18257             save_CFLAGS="$CFLAGS"
18258             CFLAGS="$CFLAGS $ARTS_CFLAGS"
18259             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18260 /* end confdefs.h.  */
18261
18262              #include <artsc.h>
18263
18264 int
18265 main ()
18266 {
18267
18268              arts_stream_t stream;
18269
18270   ;
18271   return 0;
18272 }
18273 _ACEOF
18274 if ac_fn_c_try_compile "$LINENO"; then :
18275
18276             audio_arts=yes
18277
18278 fi
18279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18280             CFLAGS="$save_CFLAGS"
18281             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
18282 $as_echo "$audio_arts" >&6; }
18283             if test x$audio_arts = xyes; then
18284                 # Check whether --enable-arts-shared was given.
18285 if test "${enable_arts_shared+set}" = set; then :
18286   enableval=$enable_arts_shared;
18287 else
18288   enable_arts_shared=yes
18289 fi
18290
18291                 arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
18292
18293
18294 $as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
18295
18296                 SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
18297                 EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
18298                 if test x$have_loadso != xyes && \
18299                    test x$enable_arts_shared = xyes; then
18300                     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
18301 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
18302                 fi
18303                 if test x$have_loadso = xyes && \
18304                    test x$enable_arts_shared = xyes && test x$arts_lib != x; then
18305                     echo "-- dynamic libartsc -> $arts_lib"
18306
18307 cat >>confdefs.h <<_ACEOF
18308 #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
18309 _ACEOF
18310
18311                     SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
18312                 else
18313                     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
18314                     SUMMARY_audio="${SUMMARY_audio} arts"
18315                 fi
18316                 have_audio=yes
18317             fi
18318         fi
18319     fi
18320 }
18321
18322 CheckNAS()
18323 {
18324     # Check whether --enable-nas was given.
18325 if test "${enable_nas+set}" = set; then :
18326   enableval=$enable_nas;
18327 else
18328   enable_nas=yes
18329 fi
18330
18331     if test x$enable_audio = xyes -a x$enable_nas = xyes; then
18332         ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
18333 if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
18334   have_nas_hdr=yes
18335 fi
18336
18337
18338         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
18339 $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
18340 if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
18341   $as_echo_n "(cached) " >&6
18342 else
18343   ac_check_lib_save_LIBS=$LIBS
18344 LIBS="-laudio  $LIBS"
18345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18346 /* end confdefs.h.  */
18347
18348 /* Override any GCC internal prototype to avoid an error.
18349    Use char because int might match the return type of a GCC
18350    builtin and then its argument prototype would still apply.  */
18351 #ifdef __cplusplus
18352 extern "C"
18353 #endif
18354 char AuOpenServer ();
18355 int
18356 main ()
18357 {
18358 return AuOpenServer ();
18359   ;
18360   return 0;
18361 }
18362 _ACEOF
18363 if ac_fn_c_try_link "$LINENO"; then :
18364   ac_cv_lib_audio_AuOpenServer=yes
18365 else
18366   ac_cv_lib_audio_AuOpenServer=no
18367 fi
18368 rm -f core conftest.err conftest.$ac_objext \
18369     conftest$ac_exeext conftest.$ac_ext
18370 LIBS=$ac_check_lib_save_LIBS
18371 fi
18372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
18373 $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
18374 if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
18375   have_nas_lib=yes
18376 fi
18377
18378
18379         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
18380 $as_echo_n "checking for NAS audio support... " >&6; }
18381         have_nas=no
18382
18383         if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
18384             have_nas=yes
18385             NAS_LIBS="-laudio"
18386
18387         elif test -r /usr/X11R6/include/audio/audiolib.h; then
18388             have_nas=yes
18389             NAS_CFLAGS="-I/usr/X11R6/include/"
18390             NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
18391
18392         fi
18393
18394         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
18395 $as_echo "$have_nas" >&6; }
18396
18397         if test x$have_nas = xyes; then
18398             # Check whether --enable-nas-shared was given.
18399 if test "${enable_nas_shared+set}" = set; then :
18400   enableval=$enable_nas_shared;
18401 else
18402   enable_nas_shared=yes
18403 fi
18404
18405             nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
18406
18407             if test x$have_loadso != xyes && \
18408                test x$enable_nas_shared = xyes; then
18409                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
18410 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
18411             fi
18412             if test x$have_loadso = xyes && \
18413                test x$enable_nas_shared = xyes && test x$nas_lib != x; then
18414                 echo "-- dynamic libaudio -> $nas_lib"
18415
18416 cat >>confdefs.h <<_ACEOF
18417 #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
18418 _ACEOF
18419
18420                 SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
18421             else
18422                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
18423                 SUMMARY_audio="${SUMMARY_audio} nas"
18424             fi
18425
18426
18427 $as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
18428
18429             SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
18430             EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
18431             have_audio=yes
18432         fi
18433     fi
18434 }
18435
18436 CheckSNDIO()
18437 {
18438     # Check whether --enable-sndio was given.
18439 if test "${enable_sndio+set}" = set; then :
18440   enableval=$enable_sndio;
18441 else
18442   enable_sndio=yes
18443 fi
18444
18445     if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
18446         ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
18447 if test "x$ac_cv_header_sndio_h" = xyes; then :
18448   have_sndio_hdr=yes
18449 fi
18450
18451
18452         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
18453 $as_echo_n "checking for sio_open in -lsndio... " >&6; }
18454 if ${ac_cv_lib_sndio_sio_open+:} false; then :
18455   $as_echo_n "(cached) " >&6
18456 else
18457   ac_check_lib_save_LIBS=$LIBS
18458 LIBS="-lsndio  $LIBS"
18459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18460 /* end confdefs.h.  */
18461
18462 /* Override any GCC internal prototype to avoid an error.
18463    Use char because int might match the return type of a GCC
18464    builtin and then its argument prototype would still apply.  */
18465 #ifdef __cplusplus
18466 extern "C"
18467 #endif
18468 char sio_open ();
18469 int
18470 main ()
18471 {
18472 return sio_open ();
18473   ;
18474   return 0;
18475 }
18476 _ACEOF
18477 if ac_fn_c_try_link "$LINENO"; then :
18478   ac_cv_lib_sndio_sio_open=yes
18479 else
18480   ac_cv_lib_sndio_sio_open=no
18481 fi
18482 rm -f core conftest.err conftest.$ac_objext \
18483     conftest$ac_exeext conftest.$ac_ext
18484 LIBS=$ac_check_lib_save_LIBS
18485 fi
18486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
18487 $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
18488 if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
18489   have_sndio_lib=yes
18490 fi
18491
18492
18493         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
18494 $as_echo_n "checking for sndio audio support... " >&6; }
18495         have_sndio=no
18496
18497         if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
18498             have_sndio=yes
18499             SNDIO_LIBS="-lsndio"
18500         fi
18501
18502         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
18503 $as_echo "$have_sndio" >&6; }
18504
18505         if test x$have_sndio = xyes; then
18506             # Check whether --enable-sndio-shared was given.
18507 if test "${enable_sndio_shared+set}" = set; then :
18508   enableval=$enable_sndio_shared;
18509 else
18510   enable_sndio_shared=yes
18511 fi
18512
18513             sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
18514
18515             if test x$have_loadso != xyes && \
18516                test x$enable_sndio_shared = xyes; then
18517                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
18518 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
18519             fi
18520             if test x$have_loadso = xyes && \
18521                test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
18522                 echo "-- dynamic libsndio -> $sndio_lib"
18523
18524 cat >>confdefs.h <<_ACEOF
18525 #define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib"
18526 _ACEOF
18527
18528                 SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
18529             else
18530                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
18531                 SUMMARY_audio="${SUMMARY_audio} sndio"
18532             fi
18533
18534
18535 $as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
18536
18537             SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
18538             EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
18539             have_audio=yes
18540         fi
18541     fi
18542 }
18543
18544 CheckDiskAudio()
18545 {
18546     # Check whether --enable-diskaudio was given.
18547 if test "${enable_diskaudio+set}" = set; then :
18548   enableval=$enable_diskaudio;
18549 else
18550   enable_diskaudio=yes
18551 fi
18552
18553     if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
18554
18555 $as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
18556
18557         SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
18558         SUMMARY_audio="${SUMMARY_audio} disk"
18559     fi
18560 }
18561
18562 CheckDummyAudio()
18563 {
18564     # Check whether --enable-dummyaudio was given.
18565 if test "${enable_dummyaudio+set}" = set; then :
18566   enableval=$enable_dummyaudio;
18567 else
18568   enable_dummyaudio=yes
18569 fi
18570
18571     if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
18572
18573 $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
18574
18575         SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
18576         SUMMARY_audio="${SUMMARY_audio} dummy"
18577     fi
18578 }
18579
18580 CheckVisibilityHidden()
18581 {
18582     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
18583 $as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; }
18584     have_gcc_fvisibility=no
18585
18586     visibility_CFLAGS="-fvisibility=hidden"
18587     save_CFLAGS="$CFLAGS"
18588     CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
18589     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18590 /* end confdefs.h.  */
18591
18592     #if !defined(__GNUC__) || __GNUC__ < 4
18593     #error SDL only uses visibility attributes in GCC 4 or newer
18594     #endif
18595
18596 int
18597 main ()
18598 {
18599
18600
18601   ;
18602   return 0;
18603 }
18604 _ACEOF
18605 if ac_fn_c_try_compile "$LINENO"; then :
18606
18607     have_gcc_fvisibility=yes
18608
18609 fi
18610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18611     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
18612 $as_echo "$have_gcc_fvisibility" >&6; }
18613     CFLAGS="$save_CFLAGS"
18614
18615     if test x$have_gcc_fvisibility = xyes; then
18616         EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
18617     fi
18618 }
18619
18620 CheckStackBoundary()
18621 {
18622     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
18623 $as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; }
18624     have_gcc_preferred_stack_boundary=no
18625
18626     save_CFLAGS="$CFLAGS"
18627     CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
18628     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18629 /* end confdefs.h.  */
18630
18631     int x = 0;
18632
18633 int
18634 main ()
18635 {
18636
18637
18638   ;
18639   return 0;
18640 }
18641 _ACEOF
18642 if ac_fn_c_try_compile "$LINENO"; then :
18643
18644     have_gcc_preferred_stack_boundary=yes
18645
18646 fi
18647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18648     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
18649 $as_echo "$have_gcc_preferred_stack_boundary" >&6; }
18650     CFLAGS="$save_CFLAGS"
18651
18652     if test x$have_gcc_preferred_stack_boundary = xyes; then
18653         EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
18654     fi
18655 }
18656
18657 CheckWarnAll()
18658 {
18659     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
18660 $as_echo_n "checking for GCC -Wall option... " >&6; }
18661     have_gcc_Wall=no
18662
18663     save_CFLAGS="$CFLAGS"
18664     CFLAGS="$save_CFLAGS -Wall"
18665     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18666 /* end confdefs.h.  */
18667
18668     int x = 0;
18669
18670 int
18671 main ()
18672 {
18673
18674
18675   ;
18676   return 0;
18677 }
18678 _ACEOF
18679 if ac_fn_c_try_compile "$LINENO"; then :
18680
18681     have_gcc_Wall=yes
18682
18683 fi
18684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18685     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
18686 $as_echo "$have_gcc_Wall" >&6; }
18687     CFLAGS="$save_CFLAGS"
18688
18689     if test x$have_gcc_Wall = xyes; then
18690         EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
18691
18692                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
18693 $as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; }
18694         need_gcc_Wno_multichar=no
18695         case "$host" in
18696             *-*-haiku*)
18697                 need_gcc_Wno_multichar=yes
18698                 ;;
18699         esac
18700         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
18701 $as_echo "$need_gcc_Wno_multichar" >&6; }
18702         if test x$need_gcc_Wno_multichar = xyes; then
18703             EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
18704         fi
18705     fi
18706 }
18707
18708 CheckWayland()
18709 {
18710     # Check whether --enable-video-wayland was given.
18711 if test "${enable_video_wayland+set}" = set; then :
18712   enableval=$enable_video_wayland;
18713 else
18714   enable_video_wayland=yes
18715 fi
18716
18717
18718     # Check whether --enable-video-wayland-qt-touch was given.
18719 if test "${enable_video_wayland_qt_touch+set}" = set; then :
18720   enableval=$enable_video_wayland_qt_touch;
18721 else
18722   enable_video_wayland_qt_touch=yes
18723 fi
18724
18725
18726     if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
18727         # Extract the first word of "pkg-config", so it can be a program name with args.
18728 set dummy pkg-config; ac_word=$2
18729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18730 $as_echo_n "checking for $ac_word... " >&6; }
18731 if ${ac_cv_path_PKG_CONFIG+:} false; then :
18732   $as_echo_n "(cached) " >&6
18733 else
18734   case $PKG_CONFIG in
18735   [\\/]* | ?:[\\/]*)
18736   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18737   ;;
18738   *)
18739   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18740 for as_dir in $PATH
18741 do
18742   IFS=$as_save_IFS
18743   test -z "$as_dir" && as_dir=.
18744     for ac_exec_ext in '' $ac_executable_extensions; do
18745   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18746     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18747     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18748     break 2
18749   fi
18750 done
18751   done
18752 IFS=$as_save_IFS
18753
18754   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
18755   ;;
18756 esac
18757 fi
18758 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18759 if test -n "$PKG_CONFIG"; then
18760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18761 $as_echo "$PKG_CONFIG" >&6; }
18762 else
18763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18764 $as_echo "no" >&6; }
18765 fi
18766
18767
18768         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
18769 $as_echo_n "checking for Wayland support... " >&6; }
18770         video_wayland=no
18771         if  test x$PKG_CONFIG != xno && \
18772             test x$video_opengl_egl = xyes && \
18773             test x$video_opengles_v2 = xyes; then
18774             if $PKG_CONFIG --exists wayland-client wayland-egl wayland-cursor egl xkbcommon xdg-shell-client text-client tizen-extension-client; then
18775                 WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon xdg-shell-client text-client tizen-extension-client`
18776                 WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon xdg-shell-client text-client tizen-extension-client`
18777                 video_wayland=yes
18778             fi
18779         fi
18780         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
18781 $as_echo "$video_wayland" >&6; }
18782
18783         if test x$video_wayland = xyes; then
18784
18785 $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
18786
18787             if test x$enable_video_wayland_qt_touch = xyes; then
18788
18789 $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
18790
18791             fi
18792             SOURCES="$SOURCES $srcdir/src/video/wayland/*.c"
18793             EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS"
18794             # Check whether --enable-wayland-shared was given.
18795 if test "${enable_wayland_shared+set}" = set; then :
18796   enableval=$enable_wayland_shared;
18797 else
18798   enable_wayland_shared=maybe
18799 fi
18800
18801
18802                         case "$host" in
18803                 *)
18804                     wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
18805                     wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
18806                     if test x$wayland_egl_lib = x; then
18807                                                 wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
18808                     fi
18809                     wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
18810                     xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
18811                     xdg_shell_client_lib=`find_lib "libxdg-shell-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
18812                     text_client_lib=`find_lib "libtext-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
18813                     tizen_extension_client_lib=`find_lib "libtizen-extension-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
18814                     ;;
18815             esac
18816
18817             if test x$enable_wayland_shared = xmaybe; then
18818                 enable_wayland_shared=yes
18819             fi
18820             if test x$have_loadso != xyes && \
18821                test x$enable_wayland_shared = xyes; then
18822                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
18823 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
18824                 enable_wayland_shared=no
18825             fi
18826             if test x$have_loadso = xyes && \
18827                test x$enable_wayland_shared = xyes && \
18828                test x$wayland_client_lib != x && \
18829                test x$wayland_egl_lib != x && \
18830                test x$wayland_cursor_lib != x && \
18831                test x$xdg_shell_client_lib != x && \
18832                test x$text_client_lib != x && \
18833                test x$tizen_extension_client_lib != x && \
18834                test x$xkbcommon_lib != x; then
18835                 echo "-- dynamic libwayland-client -> $wayland_client_lib"
18836                 echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
18837                 echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
18838                 echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
18839                 echo "-- dynamic libxdg_shell_client -> $xdg_shell_client_lib"
18840                 echo "-- dynamic libtext_client -> $xtext_client_lib"
18841                 echo "-- dynamic libtizen_extension_client -> $xtizen_extension_client_lib"
18842
18843 cat >>confdefs.h <<_ACEOF
18844 #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC "$wayland_client_lib"
18845 _ACEOF
18846
18847
18848 cat >>confdefs.h <<_ACEOF
18849 #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL "$wayland_egl_lib"
18850 _ACEOF
18851
18852
18853 cat >>confdefs.h <<_ACEOF
18854 #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR "$wayland_cursor_lib"
18855 _ACEOF
18856
18857
18858 cat >>confdefs.h <<_ACEOF
18859 #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
18860 _ACEOF
18861
18862
18863 cat >>confdefs.h <<_ACEOF
18864 #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XDGSHELLCLIENT "$xdg_shell_client_lib"
18865 _ACEOF
18866
18867
18868 cat >>confdefs.h <<_ACEOF
18869 #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_TEXTCLIENT "$text_client_lib"
18870 _ACEOF
18871
18872
18873 cat >>confdefs.h <<_ACEOF
18874 #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_TIZENEXTENSIONCLIENT "$tizen_extension_client_lib"
18875 _ACEOF
18876
18877                 SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
18878             else
18879                 enable_wayland_shared=no
18880                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
18881                 SUMMARY_video="${SUMMARY_video} wayland"
18882             fi
18883             have_video=yes
18884         fi
18885     fi
18886 }
18887
18888 CheckTizen()
18889 {
18890     # Check whether --enable-video-tizen was given.
18891 if test "${enable_video_tizen+set}" = set; then :
18892   enableval=$enable_video_tizen;
18893 else
18894   enable_video_tizen=yes
18895 fi
18896
18897
18898     if test x$enable_video = xyes -a x$enable_video_tizen = xyes; then
18899         # Extract the first word of "pkg-config", so it can be a program name with args.
18900 set dummy pkg-config; ac_word=$2
18901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18902 $as_echo_n "checking for $ac_word... " >&6; }
18903 if ${ac_cv_path_PKG_CONFIG+:} false; then :
18904   $as_echo_n "(cached) " >&6
18905 else
18906   case $PKG_CONFIG in
18907   [\\/]* | ?:[\\/]*)
18908   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18909   ;;
18910   *)
18911   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18912 for as_dir in $PATH
18913 do
18914   IFS=$as_save_IFS
18915   test -z "$as_dir" && as_dir=.
18916     for ac_exec_ext in '' $ac_executable_extensions; do
18917   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18918     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18919     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18920     break 2
18921   fi
18922 done
18923   done
18924 IFS=$as_save_IFS
18925
18926   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
18927   ;;
18928 esac
18929 fi
18930 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18931 if test -n "$PKG_CONFIG"; then
18932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18933 $as_echo "$PKG_CONFIG" >&6; }
18934 else
18935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18936 $as_echo "no" >&6; }
18937 fi
18938
18939
18940         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tizen support" >&5
18941 $as_echo_n "checking for Tizen support... " >&6; }
18942         video_tizen=no
18943         if  test x$PKG_CONFIG != xno && \
18944             test x$video_opengl_egl = xyes && \
18945             test x$video_opengles_v2 = xyes; then
18946             if $PKG_CONFIG --exists wayland-client wayland-egl ecore ecore-wayland xdg-shell-client text-client tizen-extension-client eina elementary capi-appfw-application capi-system-system-settings ecore-input dlog ecore-imf libdrm ecore-ipc; then
18947                 TIZEN_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl ecore ecore-wayland 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`
18948                 TIZEN_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl ecore ecore-wayland 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`
18949                 video_tizen=yes
18950             fi
18951         fi
18952
18953         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_tizen" >&5
18954 $as_echo "$video_tizen" >&6; }
18955
18956         if test x$video_tizen = xyes; then
18957
18958 $as_echo "#define SDL_VIDEO_DRIVER_TIZEN 1" >>confdefs.h
18959
18960             SOURCES="$SOURCES $srcdir/src/video/tizen/*.c"
18961             SOURCES="$SOURCES $srcdir/src/core/tizen/*.c"
18962             SDLMAIN_SOURCES="$srcdir/src/main/tizen/*.c"
18963
18964             SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
18965             SDL_LIBS="-lSDL2main $SDL_LIBS"
18966
18967             EXTRA_CFLAGS="$EXTRA_CFLAGS $TIZEN_CFLAGS -DTIZEN"
18968             EXTRA_LDFLAGS="$EXTRA_LDFLAGS $TIZEN_LIBS"
18969             SUMMARY_video="${SUMMARY_video} tizen"
18970             have_video=yes
18971         fi
18972     fi
18973
18974     if test x$enable_joystick = xyes; then
18975         SUMMARY="${SUMMARY}SDL2 tizen joystick in:\n"
18976
18977 $as_echo "#define SDL_JOYSTICK_TIZEN 1" >>confdefs.h
18978
18979         SOURCES="$SOURCES $srcdir/src/joystick/tizen/*.c"
18980         have_joystick=yes
18981     fi
18982 }
18983
18984 CheckMir()
18985 {
18986     # Check whether --enable-video-mir was given.
18987 if test "${enable_video_mir+set}" = set; then :
18988   enableval=$enable_video_mir;
18989 else
18990   enable_video_mir=yes
18991 fi
18992
18993
18994     if test x$enable_video = xyes -a x$enable_video_mir = xyes; then
18995         # Extract the first word of "pkg-config", so it can be a program name with args.
18996 set dummy pkg-config; ac_word=$2
18997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18998 $as_echo_n "checking for $ac_word... " >&6; }
18999 if ${ac_cv_path_PKG_CONFIG+:} false; then :
19000   $as_echo_n "(cached) " >&6
19001 else
19002   case $PKG_CONFIG in
19003   [\\/]* | ?:[\\/]*)
19004   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19005   ;;
19006   *)
19007   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19008 for as_dir in $PATH
19009 do
19010   IFS=$as_save_IFS
19011   test -z "$as_dir" && as_dir=.
19012     for ac_exec_ext in '' $ac_executable_extensions; do
19013   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19014     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19015     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19016     break 2
19017   fi
19018 done
19019   done
19020 IFS=$as_save_IFS
19021
19022   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19023   ;;
19024 esac
19025 fi
19026 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19027 if test -n "$PKG_CONFIG"; then
19028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19029 $as_echo "$PKG_CONFIG" >&6; }
19030 else
19031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19032 $as_echo "no" >&6; }
19033 fi
19034
19035
19036         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mir support" >&5
19037 $as_echo_n "checking for Mir support... " >&6; }
19038         video_mir=no
19039         if test x$PKG_CONFIG != xno; then
19040             if $PKG_CONFIG --exists mirclient egl xkbcommon ; then
19041                 MIR_CFLAGS=`$PKG_CONFIG --cflags mirclient egl xkbcommon`
19042                 MIR_LIBS=`$PKG_CONFIG --libs mirclient egl xkbcommon`
19043                 save_CFLAGS="$CFLAGS"
19044                 CFLAGS="$save_CFLAGS $MIR_CFLAGS"
19045
19046                                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19047 /* end confdefs.h.  */
19048
19049                 #include <mir_toolkit/mir_client_library.h>
19050
19051 int
19052 main ()
19053 {
19054
19055                     MirMotionToolType tool = mir_motion_tool_type_mouse;
19056
19057   ;
19058   return 0;
19059 }
19060 _ACEOF
19061 if ac_fn_c_try_compile "$LINENO"; then :
19062
19063                 video_mir=yes
19064
19065 fi
19066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19067                 CFLAGS="$save_CFLAGS"
19068             fi
19069         fi
19070         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_mir" >&5
19071 $as_echo "$video_mir" >&6; }
19072
19073         if test x$video_mir = xyes; then
19074
19075 $as_echo "#define SDL_VIDEO_DRIVER_MIR 1" >>confdefs.h
19076
19077             SOURCES="$SOURCES $srcdir/src/video/mir/*.c"
19078             EXTRA_CFLAGS="$EXTRA_CFLAGS $MIR_CFLAGS"
19079             # Check whether --enable-mir-shared was given.
19080 if test "${enable_mir_shared+set}" = set; then :
19081   enableval=$enable_mir_shared;
19082 else
19083   enable_mir_shared=maybe
19084 fi
19085
19086
19087                         case "$host" in
19088                 *)
19089                     mirclient_lib=`find_lib "libmirclient.so.*" "$MIR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
19090                     xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$MIR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
19091                     ;;
19092             esac
19093
19094             if test x$enable_mir_shared = xmaybe; then
19095                 enable_mir_shared=yes
19096             fi
19097             if test x$have_loadso != xyes && \
19098                test x$enable_mir_shared = xyes; then
19099                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Mir loading" >&5
19100 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Mir loading" >&2;}
19101                 enable_mir_shared=no
19102             fi
19103             if test x$have_loadso = xyes && \
19104                test x$enable_mir_shared = xyes && \
19105                test x$mirclient_lib != x && \
19106                test x$xkbcommon_lib != x; then
19107                 echo "-- dynamic libmirclient -> $mirclient_lib"
19108                 echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
19109
19110 cat >>confdefs.h <<_ACEOF
19111 #define SDL_VIDEO_DRIVER_MIR_DYNAMIC "$mirclient_lib"
19112 _ACEOF
19113
19114
19115 cat >>confdefs.h <<_ACEOF
19116 #define SDL_VIDEO_DRIVER_MIR_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
19117 _ACEOF
19118
19119                 SUMMARY_video="${SUMMARY_video} mir(dynamic)"
19120             else
19121                 enable_mir_shared=no
19122                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $MIR_LIBS"
19123                 SUMMARY_video="${SUMMARY_video} mir"
19124             fi
19125             have_video=yes
19126         fi
19127     fi
19128 }
19129
19130 CheckNativeClient()
19131 {
19132         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19133 /* end confdefs.h.  */
19134
19135           #if !defined(__native_client__)
19136           #error "NO NACL"
19137           #endif
19138
19139 int
19140 main ()
19141 {
19142
19143
19144   ;
19145   return 0;
19146 }
19147 _ACEOF
19148 if ac_fn_c_try_compile "$LINENO"; then :
19149
19150         $as_echo "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
19151
19152         $as_echo "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
19153
19154
19155 $as_echo "#define HAVE_POW 1" >>confdefs.h
19156
19157
19158 $as_echo "#define HAVE_OPENGLES2 1" >>confdefs.h
19159
19160
19161 $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
19162
19163
19164 $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
19165
19166
19167         SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
19168
19169         SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
19170         SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
19171         SUMMARY_audio="${SUMMARY_audio} nacl"
19172         SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
19173         SUMMARY_video="${SUMMARY_video} nacl opengles2"
19174
19175 fi
19176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19177 }
19178
19179
19180 CheckX11()
19181 {
19182
19183
19184     # Check whether --enable-video-x11 was given.
19185 if test "${enable_video_x11+set}" = set; then :
19186   enableval=$enable_video_x11;
19187 else
19188   enable_video_x11=yes
19189 fi
19190
19191     if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
19192         case "$host" in
19193             *-*-darwin*)
19194                 # This isn't necessary for X11, but fixes GLX detection
19195                 if test "x$x_includes" = xNONE && \
19196                    test "x$x_libraries" = xNONE && \
19197                    test -d /usr/X11R6/include && \
19198                    test -d /usr/X11R6/lib; then
19199                     x_includes="/usr/X11R6/include"
19200                     x_libraries="/usr/X11R6/lib"
19201                 fi
19202                 ;;
19203         esac
19204         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
19205 $as_echo_n "checking for X... " >&6; }
19206
19207
19208 # Check whether --with-x was given.
19209 if test "${with_x+set}" = set; then :
19210   withval=$with_x;
19211 fi
19212
19213 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19214 if test "x$with_x" = xno; then
19215   # The user explicitly disabled X.
19216   have_x=disabled
19217 else
19218   case $x_includes,$x_libraries in #(
19219     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
19220     *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
19221   $as_echo_n "(cached) " >&6
19222 else
19223   # One or both of the vars are not set, and there is no cached value.
19224 ac_x_includes=no ac_x_libraries=no
19225 rm -f -r conftest.dir
19226 if mkdir conftest.dir; then
19227   cd conftest.dir
19228   cat >Imakefile <<'_ACEOF'
19229 incroot:
19230         @echo incroot='${INCROOT}'
19231 usrlibdir:
19232         @echo usrlibdir='${USRLIBDIR}'
19233 libdir:
19234         @echo libdir='${LIBDIR}'
19235 _ACEOF
19236   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
19237     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
19238     for ac_var in incroot usrlibdir libdir; do
19239       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
19240     done
19241     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19242     for ac_extension in a so sl dylib la dll; do
19243       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
19244          test -f "$ac_im_libdir/libX11.$ac_extension"; then
19245         ac_im_usrlibdir=$ac_im_libdir; break
19246       fi
19247     done
19248     # Screen out bogus values from the imake configuration.  They are
19249     # bogus both because they are the default anyway, and because
19250     # using them would break gcc on systems where it needs fixed includes.
19251     case $ac_im_incroot in
19252         /usr/include) ac_x_includes= ;;
19253         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19254     esac
19255     case $ac_im_usrlibdir in
19256         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
19257         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19258     esac
19259   fi
19260   cd ..
19261   rm -f -r conftest.dir
19262 fi
19263
19264 # Standard set of common directories for X headers.
19265 # Check X11 before X11Rn because it is often a symlink to the current release.
19266 ac_x_header_dirs='
19267 /usr/X11/include
19268 /usr/X11R7/include
19269 /usr/X11R6/include
19270 /usr/X11R5/include
19271 /usr/X11R4/include
19272
19273 /usr/include/X11
19274 /usr/include/X11R7
19275 /usr/include/X11R6
19276 /usr/include/X11R5
19277 /usr/include/X11R4
19278
19279 /usr/local/X11/include
19280 /usr/local/X11R7/include
19281 /usr/local/X11R6/include
19282 /usr/local/X11R5/include
19283 /usr/local/X11R4/include
19284
19285 /usr/local/include/X11
19286 /usr/local/include/X11R7
19287 /usr/local/include/X11R6
19288 /usr/local/include/X11R5
19289 /usr/local/include/X11R4
19290
19291 /usr/X386/include
19292 /usr/x386/include
19293 /usr/XFree86/include/X11
19294
19295 /usr/include
19296 /usr/local/include
19297 /usr/unsupported/include
19298 /usr/athena/include
19299 /usr/local/x11r5/include
19300 /usr/lpp/Xamples/include
19301
19302 /usr/openwin/include
19303 /usr/openwin/share/include'
19304
19305 if test "$ac_x_includes" = no; then
19306   # Guess where to find include files, by looking for Xlib.h.
19307   # First, try using that file with no special directory specified.
19308   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19309 /* end confdefs.h.  */
19310 #include <X11/Xlib.h>
19311 _ACEOF
19312 if ac_fn_c_try_cpp "$LINENO"; then :
19313   # We can compile using X headers with no special include directory.
19314 ac_x_includes=
19315 else
19316   for ac_dir in $ac_x_header_dirs; do
19317   if test -r "$ac_dir/X11/Xlib.h"; then
19318     ac_x_includes=$ac_dir
19319     break
19320   fi
19321 done
19322 fi
19323 rm -f conftest.err conftest.i conftest.$ac_ext
19324 fi # $ac_x_includes = no
19325
19326 if test "$ac_x_libraries" = no; then
19327   # Check for the libraries.
19328   # See if we find them without any special options.
19329   # Don't add to $LIBS permanently.
19330   ac_save_LIBS=$LIBS
19331   LIBS="-lX11 $LIBS"
19332   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19333 /* end confdefs.h.  */
19334 #include <X11/Xlib.h>
19335 int
19336 main ()
19337 {
19338 XrmInitialize ()
19339   ;
19340   return 0;
19341 }
19342 _ACEOF
19343 if ac_fn_c_try_link "$LINENO"; then :
19344   LIBS=$ac_save_LIBS
19345 # We can link X programs with no special library path.
19346 ac_x_libraries=
19347 else
19348   LIBS=$ac_save_LIBS
19349 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19350 do
19351   # Don't even attempt the hair of trying to link an X program!
19352   for ac_extension in a so sl dylib la dll; do
19353     if test -r "$ac_dir/libX11.$ac_extension"; then
19354       ac_x_libraries=$ac_dir
19355       break 2
19356     fi
19357   done
19358 done
19359 fi
19360 rm -f core conftest.err conftest.$ac_objext \
19361     conftest$ac_exeext conftest.$ac_ext
19362 fi # $ac_x_libraries = no
19363
19364 case $ac_x_includes,$ac_x_libraries in #(
19365   no,* | *,no | *\'*)
19366     # Didn't find X, or a directory has "'" in its name.
19367     ac_cv_have_x="have_x=no";; #(
19368   *)
19369     # Record where we found X for the cache.
19370     ac_cv_have_x="have_x=yes\
19371         ac_x_includes='$ac_x_includes'\
19372         ac_x_libraries='$ac_x_libraries'"
19373 esac
19374 fi
19375 ;; #(
19376     *) have_x=yes;;
19377   esac
19378   eval "$ac_cv_have_x"
19379 fi # $with_x != no
19380
19381 if test "$have_x" != yes; then
19382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
19383 $as_echo "$have_x" >&6; }
19384   no_x=yes
19385 else
19386   # If each of the values was on the command line, it overrides each guess.
19387   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19388   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19389   # Update the cache value to reflect the command line values.
19390   ac_cv_have_x="have_x=yes\
19391         ac_x_includes='$x_includes'\
19392         ac_x_libraries='$x_libraries'"
19393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
19394 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
19395 fi
19396
19397         if test "$no_x" = yes; then
19398   # Not all programs may use this symbol, but it does not hurt to define it.
19399
19400 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
19401
19402   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
19403 else
19404   if test -n "$x_includes"; then
19405     X_CFLAGS="$X_CFLAGS -I$x_includes"
19406   fi
19407
19408   # It would also be nice to do this for all -L options, not just this one.
19409   if test -n "$x_libraries"; then
19410     X_LIBS="$X_LIBS -L$x_libraries"
19411     # For Solaris; some versions of Sun CC require a space after -R and
19412     # others require no space.  Words are not sufficient . . . .
19413     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
19414 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
19415     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
19416     ac_xsave_c_werror_flag=$ac_c_werror_flag
19417     ac_c_werror_flag=yes
19418     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19419 /* end confdefs.h.  */
19420
19421 int
19422 main ()
19423 {
19424
19425   ;
19426   return 0;
19427 }
19428 _ACEOF
19429 if ac_fn_c_try_link "$LINENO"; then :
19430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19431 $as_echo "no" >&6; }
19432        X_LIBS="$X_LIBS -R$x_libraries"
19433 else
19434   LIBS="$ac_xsave_LIBS -R $x_libraries"
19435        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19436 /* end confdefs.h.  */
19437
19438 int
19439 main ()
19440 {
19441
19442   ;
19443   return 0;
19444 }
19445 _ACEOF
19446 if ac_fn_c_try_link "$LINENO"; then :
19447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19448 $as_echo "yes" >&6; }
19449           X_LIBS="$X_LIBS -R $x_libraries"
19450 else
19451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
19452 $as_echo "neither works" >&6; }
19453 fi
19454 rm -f core conftest.err conftest.$ac_objext \
19455     conftest$ac_exeext conftest.$ac_ext
19456 fi
19457 rm -f core conftest.err conftest.$ac_objext \
19458     conftest$ac_exeext conftest.$ac_ext
19459     ac_c_werror_flag=$ac_xsave_c_werror_flag
19460     LIBS=$ac_xsave_LIBS
19461   fi
19462
19463   # Check for system-dependent libraries X programs must link with.
19464   # Do this before checking for the system-independent R6 libraries
19465   # (-lICE), since we may need -lsocket or whatever for X linking.
19466
19467   if test "$ISC" = yes; then
19468     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
19469   else
19470     # Martyn Johnson says this is needed for Ultrix, if the X
19471     # libraries were built with DECnet support.  And Karl Berry says
19472     # the Alpha needs dnet_stub (dnet does not exist).
19473     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
19474     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19475 /* end confdefs.h.  */
19476
19477 /* Override any GCC internal prototype to avoid an error.
19478    Use char because int might match the return type of a GCC
19479    builtin and then its argument prototype would still apply.  */
19480 #ifdef __cplusplus
19481 extern "C"
19482 #endif
19483 char XOpenDisplay ();
19484 int
19485 main ()
19486 {
19487 return XOpenDisplay ();
19488   ;
19489   return 0;
19490 }
19491 _ACEOF
19492 if ac_fn_c_try_link "$LINENO"; then :
19493
19494 else
19495   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
19496 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
19497 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
19498   $as_echo_n "(cached) " >&6
19499 else
19500   ac_check_lib_save_LIBS=$LIBS
19501 LIBS="-ldnet  $LIBS"
19502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19503 /* end confdefs.h.  */
19504
19505 /* Override any GCC internal prototype to avoid an error.
19506    Use char because int might match the return type of a GCC
19507    builtin and then its argument prototype would still apply.  */
19508 #ifdef __cplusplus
19509 extern "C"
19510 #endif
19511 char dnet_ntoa ();
19512 int
19513 main ()
19514 {
19515 return dnet_ntoa ();
19516   ;
19517   return 0;
19518 }
19519 _ACEOF
19520 if ac_fn_c_try_link "$LINENO"; then :
19521   ac_cv_lib_dnet_dnet_ntoa=yes
19522 else
19523   ac_cv_lib_dnet_dnet_ntoa=no
19524 fi
19525 rm -f core conftest.err conftest.$ac_objext \
19526     conftest$ac_exeext conftest.$ac_ext
19527 LIBS=$ac_check_lib_save_LIBS
19528 fi
19529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
19530 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
19531 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
19532   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
19533 fi
19534
19535     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
19536       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
19537 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
19538 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
19539   $as_echo_n "(cached) " >&6
19540 else
19541   ac_check_lib_save_LIBS=$LIBS
19542 LIBS="-ldnet_stub  $LIBS"
19543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19544 /* end confdefs.h.  */
19545
19546 /* Override any GCC internal prototype to avoid an error.
19547    Use char because int might match the return type of a GCC
19548    builtin and then its argument prototype would still apply.  */
19549 #ifdef __cplusplus
19550 extern "C"
19551 #endif
19552 char dnet_ntoa ();
19553 int
19554 main ()
19555 {
19556 return dnet_ntoa ();
19557   ;
19558   return 0;
19559 }
19560 _ACEOF
19561 if ac_fn_c_try_link "$LINENO"; then :
19562   ac_cv_lib_dnet_stub_dnet_ntoa=yes
19563 else
19564   ac_cv_lib_dnet_stub_dnet_ntoa=no
19565 fi
19566 rm -f core conftest.err conftest.$ac_objext \
19567     conftest$ac_exeext conftest.$ac_ext
19568 LIBS=$ac_check_lib_save_LIBS
19569 fi
19570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
19571 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
19572 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
19573   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
19574 fi
19575
19576     fi
19577 fi
19578 rm -f core conftest.err conftest.$ac_objext \
19579     conftest$ac_exeext conftest.$ac_ext
19580     LIBS="$ac_xsave_LIBS"
19581
19582     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
19583     # to get the SysV transport functions.
19584     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
19585     # needs -lnsl.
19586     # The nsl library prevents programs from opening the X display
19587     # on Irix 5.2, according to T.E. Dickey.
19588     # The functions gethostbyname, getservbyname, and inet_addr are
19589     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
19590     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
19591 if test "x$ac_cv_func_gethostbyname" = xyes; then :
19592
19593 fi
19594
19595     if test $ac_cv_func_gethostbyname = no; then
19596       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
19597 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
19598 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
19599   $as_echo_n "(cached) " >&6
19600 else
19601   ac_check_lib_save_LIBS=$LIBS
19602 LIBS="-lnsl  $LIBS"
19603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19604 /* end confdefs.h.  */
19605
19606 /* Override any GCC internal prototype to avoid an error.
19607    Use char because int might match the return type of a GCC
19608    builtin and then its argument prototype would still apply.  */
19609 #ifdef __cplusplus
19610 extern "C"
19611 #endif
19612 char gethostbyname ();
19613 int
19614 main ()
19615 {
19616 return gethostbyname ();
19617   ;
19618   return 0;
19619 }
19620 _ACEOF
19621 if ac_fn_c_try_link "$LINENO"; then :
19622   ac_cv_lib_nsl_gethostbyname=yes
19623 else
19624   ac_cv_lib_nsl_gethostbyname=no
19625 fi
19626 rm -f core conftest.err conftest.$ac_objext \
19627     conftest$ac_exeext conftest.$ac_ext
19628 LIBS=$ac_check_lib_save_LIBS
19629 fi
19630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
19631 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
19632 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
19633   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
19634 fi
19635
19636       if test $ac_cv_lib_nsl_gethostbyname = no; then
19637         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
19638 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
19639 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
19640   $as_echo_n "(cached) " >&6
19641 else
19642   ac_check_lib_save_LIBS=$LIBS
19643 LIBS="-lbsd  $LIBS"
19644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19645 /* end confdefs.h.  */
19646
19647 /* Override any GCC internal prototype to avoid an error.
19648    Use char because int might match the return type of a GCC
19649    builtin and then its argument prototype would still apply.  */
19650 #ifdef __cplusplus
19651 extern "C"
19652 #endif
19653 char gethostbyname ();
19654 int
19655 main ()
19656 {
19657 return gethostbyname ();
19658   ;
19659   return 0;
19660 }
19661 _ACEOF
19662 if ac_fn_c_try_link "$LINENO"; then :
19663   ac_cv_lib_bsd_gethostbyname=yes
19664 else
19665   ac_cv_lib_bsd_gethostbyname=no
19666 fi
19667 rm -f core conftest.err conftest.$ac_objext \
19668     conftest$ac_exeext conftest.$ac_ext
19669 LIBS=$ac_check_lib_save_LIBS
19670 fi
19671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
19672 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
19673 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
19674   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
19675 fi
19676
19677       fi
19678     fi
19679
19680     # lieder@skyler.mavd.honeywell.com says without -lsocket,
19681     # socket/setsockopt and other routines are undefined under SCO ODT
19682     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
19683     # on later versions), says Simon Leinen: it contains gethostby*
19684     # variants that don't use the name server (or something).  -lsocket
19685     # must be given before -lnsl if both are needed.  We assume that
19686     # if connect needs -lnsl, so does gethostbyname.
19687     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
19688 if test "x$ac_cv_func_connect" = xyes; then :
19689
19690 fi
19691
19692     if test $ac_cv_func_connect = no; then
19693       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
19694 $as_echo_n "checking for connect in -lsocket... " >&6; }
19695 if ${ac_cv_lib_socket_connect+:} false; then :
19696   $as_echo_n "(cached) " >&6
19697 else
19698   ac_check_lib_save_LIBS=$LIBS
19699 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
19700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19701 /* end confdefs.h.  */
19702
19703 /* Override any GCC internal prototype to avoid an error.
19704    Use char because int might match the return type of a GCC
19705    builtin and then its argument prototype would still apply.  */
19706 #ifdef __cplusplus
19707 extern "C"
19708 #endif
19709 char connect ();
19710 int
19711 main ()
19712 {
19713 return connect ();
19714   ;
19715   return 0;
19716 }
19717 _ACEOF
19718 if ac_fn_c_try_link "$LINENO"; then :
19719   ac_cv_lib_socket_connect=yes
19720 else
19721   ac_cv_lib_socket_connect=no
19722 fi
19723 rm -f core conftest.err conftest.$ac_objext \
19724     conftest$ac_exeext conftest.$ac_ext
19725 LIBS=$ac_check_lib_save_LIBS
19726 fi
19727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
19728 $as_echo "$ac_cv_lib_socket_connect" >&6; }
19729 if test "x$ac_cv_lib_socket_connect" = xyes; then :
19730   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
19731 fi
19732
19733     fi
19734
19735     # Guillermo Gomez says -lposix is necessary on A/UX.
19736     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
19737 if test "x$ac_cv_func_remove" = xyes; then :
19738
19739 fi
19740
19741     if test $ac_cv_func_remove = no; then
19742       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
19743 $as_echo_n "checking for remove in -lposix... " >&6; }
19744 if ${ac_cv_lib_posix_remove+:} false; then :
19745   $as_echo_n "(cached) " >&6
19746 else
19747   ac_check_lib_save_LIBS=$LIBS
19748 LIBS="-lposix  $LIBS"
19749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19750 /* end confdefs.h.  */
19751
19752 /* Override any GCC internal prototype to avoid an error.
19753    Use char because int might match the return type of a GCC
19754    builtin and then its argument prototype would still apply.  */
19755 #ifdef __cplusplus
19756 extern "C"
19757 #endif
19758 char remove ();
19759 int
19760 main ()
19761 {
19762 return remove ();
19763   ;
19764   return 0;
19765 }
19766 _ACEOF
19767 if ac_fn_c_try_link "$LINENO"; then :
19768   ac_cv_lib_posix_remove=yes
19769 else
19770   ac_cv_lib_posix_remove=no
19771 fi
19772 rm -f core conftest.err conftest.$ac_objext \
19773     conftest$ac_exeext conftest.$ac_ext
19774 LIBS=$ac_check_lib_save_LIBS
19775 fi
19776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
19777 $as_echo "$ac_cv_lib_posix_remove" >&6; }
19778 if test "x$ac_cv_lib_posix_remove" = xyes; then :
19779   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
19780 fi
19781
19782     fi
19783
19784     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
19785     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
19786 if test "x$ac_cv_func_shmat" = xyes; then :
19787
19788 fi
19789
19790     if test $ac_cv_func_shmat = no; then
19791       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
19792 $as_echo_n "checking for shmat in -lipc... " >&6; }
19793 if ${ac_cv_lib_ipc_shmat+:} false; then :
19794   $as_echo_n "(cached) " >&6
19795 else
19796   ac_check_lib_save_LIBS=$LIBS
19797 LIBS="-lipc  $LIBS"
19798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19799 /* end confdefs.h.  */
19800
19801 /* Override any GCC internal prototype to avoid an error.
19802    Use char because int might match the return type of a GCC
19803    builtin and then its argument prototype would still apply.  */
19804 #ifdef __cplusplus
19805 extern "C"
19806 #endif
19807 char shmat ();
19808 int
19809 main ()
19810 {
19811 return shmat ();
19812   ;
19813   return 0;
19814 }
19815 _ACEOF
19816 if ac_fn_c_try_link "$LINENO"; then :
19817   ac_cv_lib_ipc_shmat=yes
19818 else
19819   ac_cv_lib_ipc_shmat=no
19820 fi
19821 rm -f core conftest.err conftest.$ac_objext \
19822     conftest$ac_exeext conftest.$ac_ext
19823 LIBS=$ac_check_lib_save_LIBS
19824 fi
19825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
19826 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
19827 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
19828   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
19829 fi
19830
19831     fi
19832   fi
19833
19834   # Check for libraries that X11R6 Xt/Xaw programs need.
19835   ac_save_LDFLAGS=$LDFLAGS
19836   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
19837   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
19838   # check for ICE first), but we must link in the order -lSM -lICE or
19839   # we get undefined symbols.  So assume we have SM if we have ICE.
19840   # These have to be linked with before -lX11, unlike the other
19841   # libraries we check for below, so use a different variable.
19842   # John Interrante, Karl Berry
19843   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
19844 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
19845 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
19846   $as_echo_n "(cached) " >&6
19847 else
19848   ac_check_lib_save_LIBS=$LIBS
19849 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
19850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19851 /* end confdefs.h.  */
19852
19853 /* Override any GCC internal prototype to avoid an error.
19854    Use char because int might match the return type of a GCC
19855    builtin and then its argument prototype would still apply.  */
19856 #ifdef __cplusplus
19857 extern "C"
19858 #endif
19859 char IceConnectionNumber ();
19860 int
19861 main ()
19862 {
19863 return IceConnectionNumber ();
19864   ;
19865   return 0;
19866 }
19867 _ACEOF
19868 if ac_fn_c_try_link "$LINENO"; then :
19869   ac_cv_lib_ICE_IceConnectionNumber=yes
19870 else
19871   ac_cv_lib_ICE_IceConnectionNumber=no
19872 fi
19873 rm -f core conftest.err conftest.$ac_objext \
19874     conftest$ac_exeext conftest.$ac_ext
19875 LIBS=$ac_check_lib_save_LIBS
19876 fi
19877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
19878 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
19879 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
19880   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
19881 fi
19882
19883   LDFLAGS=$ac_save_LDFLAGS
19884
19885 fi
19886
19887         if test x$have_x = xyes; then
19888             # Check whether --enable-x11-shared was given.
19889 if test "${enable_x11_shared+set}" = set; then :
19890   enableval=$enable_x11_shared;
19891 else
19892   enable_x11_shared=maybe
19893 fi
19894
19895
19896             case "$host" in
19897                 *-*-darwin*)
19898                     x11_lib='/usr/X11R6/lib/libX11.6.dylib'
19899                     x11ext_lib='/usr/X11R6/lib/libXext.6.dylib'
19900                     xcursor_lib='/usr/X11R6/lib/libXcursor.1.dylib'
19901                     xinerama_lib='/usr/X11R6/lib/libXinerama.1.dylib'
19902                     xinput_lib='/usr/X11R6/lib/libXi.6.dylib'
19903                     xrandr_lib='/usr/X11R6/lib/libXrandr.2.dylib'
19904                     xrender_lib='/usr/X11R6/lib/libXrender.1.dylib'
19905                     xss_lib='/usr/X11R6/lib/libXss.1.dylib'
19906                     xvidmode_lib='/usr/X11R6/lib/libXxf86vm.1.dylib'
19907                     ;;
19908                 *-*-openbsd*)
19909                     x11_lib='libX11.so'
19910                     x11ext_lib='libXext.so'
19911                     xcursor_lib='libXcursor.so'
19912                     xinerama_lib='libXinerama.so'
19913                     xinput_lib='libXi.so'
19914                     xrandr_lib='libXrandr.so'
19915                     xrender_lib='libXrender.so'
19916                     xss_lib='libXss.so'
19917                     xvidmode_lib='libXxf86vm.so'
19918                     ;;
19919                 *)
19920                     x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
19921                     x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
19922                     xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
19923                     xinerama_lib=`find_lib "libXinerama.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
19924                     xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
19925                     xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
19926                     xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
19927                     xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
19928                     xvidmode_lib=`find_lib "libXxf86vm.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
19929                     ;;
19930             esac
19931
19932             if test x$ac_cv_func_shmat != xyes; then
19933                 X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
19934             fi
19935             CFLAGS="$CFLAGS $X_CFLAGS"
19936             LDFLAGS="$LDFLAGS $X_LIBS"
19937
19938             ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
19939                              #include <X11/Xproto.h>
19940
19941 "
19942 if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then :
19943   have_xext_h_hdr=yes
19944 else
19945   have_xext_h_hdr=no
19946 fi
19947
19948
19949             if test x$have_xext_h_hdr != xyes; then
19950                as_fn_error $? "
19951 *** Missing Xext.h, maybe you need to install the libxext-dev package?
19952                " "$LINENO" 5
19953             fi
19954
19955
19956 $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
19957
19958             SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
19959             EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
19960
19961             # Needed so SDL applications can include SDL_syswm.h
19962             SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
19963
19964             if test x$enable_x11_shared = xmaybe; then
19965                 enable_x11_shared=yes
19966             fi
19967             if test x$have_loadso != xyes && \
19968                test x$enable_x11_shared = xyes; then
19969                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
19970 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
19971                 enable_x11_shared=no
19972             fi
19973             if test x$have_loadso = xyes && \
19974                test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
19975                 echo "-- dynamic libX11 -> $x11_lib"
19976                 echo "-- dynamic libX11ext -> $x11ext_lib"
19977
19978 cat >>confdefs.h <<_ACEOF
19979 #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
19980 _ACEOF
19981
19982
19983 cat >>confdefs.h <<_ACEOF
19984 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
19985 _ACEOF
19986
19987                 SUMMARY_video="${SUMMARY_video} x11(dynamic)"
19988             else
19989                 enable_x11_shared=no
19990                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
19991                 SUMMARY_video="${SUMMARY_video} x11"
19992             fi
19993             have_video=yes
19994
19995             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const parameter to XextAddDisplay" >&5
19996 $as_echo_n "checking for const parameter to XextAddDisplay... " >&6; }
19997             have_const_param_XextAddDisplay=no
19998             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19999 /* end confdefs.h.  */
20000
20001               #include <X11/Xlib.h>
20002               #include <X11/Xproto.h>
20003               #include <X11/extensions/Xext.h>
20004               #include <X11/extensions/extutil.h>
20005               extern XExtDisplayInfo* XextAddDisplay(XExtensionInfo* a,Display* b,_Xconst char* c,XExtensionHooks* d,int e,XPointer f);
20006
20007 int
20008 main ()
20009 {
20010
20011
20012   ;
20013   return 0;
20014 }
20015 _ACEOF
20016 if ac_fn_c_try_compile "$LINENO"; then :
20017
20018             have_const_param_XextAddDisplay=yes
20019             $as_echo "#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY 1" >>confdefs.h
20020
20021
20022 fi
20023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20024             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_const_param_XextAddDisplay" >&5
20025 $as_echo "$have_const_param_XextAddDisplay" >&6; }
20026
20027                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
20028 $as_echo_n "checking for XGenericEvent... " >&6; }
20029             have_XGenericEvent=no
20030             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20031 /* end confdefs.h.  */
20032
20033                 #include <X11/Xlib.h>
20034
20035 int
20036 main ()
20037 {
20038
20039 Display *display;
20040 XEvent event;
20041 XGenericEventCookie *cookie = &event.xcookie;
20042 XNextEvent(display, &event);
20043 XGetEventData(display, cookie);
20044 XFreeEventData(display, cookie);
20045
20046   ;
20047   return 0;
20048 }
20049 _ACEOF
20050 if ac_fn_c_try_compile "$LINENO"; then :
20051
20052                 have_XGenericEvent=yes
20053                 $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
20054
20055
20056 fi
20057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20058             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
20059 $as_echo "$have_XGenericEvent" >&6; }
20060
20061             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
20062 $as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
20063 if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then :
20064   $as_echo_n "(cached) " >&6
20065 else
20066   ac_check_lib_save_LIBS=$LIBS
20067 LIBS="-lX11  $LIBS"
20068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20069 /* end confdefs.h.  */
20070
20071 /* Override any GCC internal prototype to avoid an error.
20072    Use char because int might match the return type of a GCC
20073    builtin and then its argument prototype would still apply.  */
20074 #ifdef __cplusplus
20075 extern "C"
20076 #endif
20077 char XkbKeycodeToKeysym ();
20078 int
20079 main ()
20080 {
20081 return XkbKeycodeToKeysym ();
20082   ;
20083   return 0;
20084 }
20085 _ACEOF
20086 if ac_fn_c_try_link "$LINENO"; then :
20087   ac_cv_lib_X11_XkbKeycodeToKeysym=yes
20088 else
20089   ac_cv_lib_X11_XkbKeycodeToKeysym=no
20090 fi
20091 rm -f core conftest.err conftest.$ac_objext \
20092     conftest$ac_exeext conftest.$ac_ext
20093 LIBS=$ac_check_lib_save_LIBS
20094 fi
20095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
20096 $as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
20097 if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then :
20098
20099 $as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
20100
20101 fi
20102
20103
20104             # Check whether --enable-video-x11-xcursor was given.
20105 if test "${enable_video_x11_xcursor+set}" = set; then :
20106   enableval=$enable_video_x11_xcursor;
20107 else
20108   enable_video_x11_xcursor=yes
20109 fi
20110
20111             if test x$enable_video_x11_xcursor = xyes; then
20112                 definitely_enable_video_x11_xcursor=no
20113                 ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
20114
20115 "
20116 if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
20117   have_xcursor_h_hdr=yes
20118 else
20119   have_xcursor_h_hdr=no
20120 fi
20121
20122
20123                 if test x$have_xcursor_h_hdr = xyes; then
20124                     if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
20125                         echo "-- dynamic libXcursor -> $xcursor_lib"
20126
20127 cat >>confdefs.h <<_ACEOF
20128 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib"
20129 _ACEOF
20130
20131                         definitely_enable_video_x11_xcursor=yes
20132                     else
20133                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
20134 $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
20135 if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
20136   $as_echo_n "(cached) " >&6
20137 else
20138   ac_check_lib_save_LIBS=$LIBS
20139 LIBS="-lXcursor  $LIBS"
20140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20141 /* end confdefs.h.  */
20142
20143 /* Override any GCC internal prototype to avoid an error.
20144    Use char because int might match the return type of a GCC
20145    builtin and then its argument prototype would still apply.  */
20146 #ifdef __cplusplus
20147 extern "C"
20148 #endif
20149 char XcursorImageCreate ();
20150 int
20151 main ()
20152 {
20153 return XcursorImageCreate ();
20154   ;
20155   return 0;
20156 }
20157 _ACEOF
20158 if ac_fn_c_try_link "$LINENO"; then :
20159   ac_cv_lib_Xcursor_XcursorImageCreate=yes
20160 else
20161   ac_cv_lib_Xcursor_XcursorImageCreate=no
20162 fi
20163 rm -f core conftest.err conftest.$ac_objext \
20164     conftest$ac_exeext conftest.$ac_ext
20165 LIBS=$ac_check_lib_save_LIBS
20166 fi
20167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
20168 $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
20169 if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
20170   have_xcursor_lib=yes
20171 fi
20172
20173                         if test x$have_xcursor_lib = xyes ; then
20174                             EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
20175                             definitely_enable_video_x11_xcursor=yes
20176                         fi
20177                     fi
20178                 fi
20179             fi
20180             if test x$definitely_enable_video_x11_xcursor = xyes; then
20181
20182 $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
20183
20184                 SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
20185             fi
20186             # Check whether --enable-video-x11-xdbe was given.
20187 if test "${enable_video_x11_xdbe+set}" = set; then :
20188   enableval=$enable_video_x11_xdbe;
20189 else
20190   enable_video_x11_xdbe=yes
20191 fi
20192
20193             if test x$enable_video_x11_xdbe = xyes; then
20194                 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
20195
20196 "
20197 if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes; then :
20198   have_dbe_h_hdr=yes
20199 else
20200   have_dbe_h_hdr=no
20201 fi
20202
20203
20204                 if test x$have_dbe_h_hdr = xyes; then
20205
20206 $as_echo "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
20207
20208                     SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
20209                 fi
20210             fi
20211             # Check whether --enable-video-x11-xinerama was given.
20212 if test "${enable_video_x11_xinerama+set}" = set; then :
20213   enableval=$enable_video_x11_xinerama;
20214 else
20215   enable_video_x11_xinerama=yes
20216 fi
20217
20218             if test x$enable_video_x11_xinerama = xyes; then
20219                 definitely_enable_video_x11_xinerama=no
20220                 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h>
20221
20222 "
20223 if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
20224   have_xinerama_h_hdr=yes
20225 else
20226   have_xinerama_h_hdr=no
20227 fi
20228
20229
20230                 if test x$have_xinerama_h_hdr = xyes; then
20231                     if test x$enable_x11_shared = xyes && test x$xinerama_lib != x ; then
20232                         echo "-- dynamic libXinerama -> $xinerama_lib"
20233
20234 cat >>confdefs.h <<_ACEOF
20235 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "$xinerama_lib"
20236 _ACEOF
20237
20238                         definitely_enable_video_x11_xinerama=yes
20239                     else
20240                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
20241 $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
20242 if ${ac_cv_lib_Xinerama_XineramaQueryExtension+:} false; then :
20243   $as_echo_n "(cached) " >&6
20244 else
20245   ac_check_lib_save_LIBS=$LIBS
20246 LIBS="-lXinerama  $LIBS"
20247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20248 /* end confdefs.h.  */
20249
20250 /* Override any GCC internal prototype to avoid an error.
20251    Use char because int might match the return type of a GCC
20252    builtin and then its argument prototype would still apply.  */
20253 #ifdef __cplusplus
20254 extern "C"
20255 #endif
20256 char XineramaQueryExtension ();
20257 int
20258 main ()
20259 {
20260 return XineramaQueryExtension ();
20261   ;
20262   return 0;
20263 }
20264 _ACEOF
20265 if ac_fn_c_try_link "$LINENO"; then :
20266   ac_cv_lib_Xinerama_XineramaQueryExtension=yes
20267 else
20268   ac_cv_lib_Xinerama_XineramaQueryExtension=no
20269 fi
20270 rm -f core conftest.err conftest.$ac_objext \
20271     conftest$ac_exeext conftest.$ac_ext
20272 LIBS=$ac_check_lib_save_LIBS
20273 fi
20274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
20275 $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
20276 if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = xyes; then :
20277   have_xinerama_lib=yes
20278 fi
20279
20280                         if test x$have_xinerama_lib = xyes ; then
20281                             EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXinerama"
20282                             definitely_enable_video_x11_xinerama=yes
20283                         fi
20284                     fi
20285                 fi
20286             fi
20287             if test x$definitely_enable_video_x11_xinerama = xyes; then
20288
20289 $as_echo "#define SDL_VIDEO_DRIVER_X11_XINERAMA 1" >>confdefs.h
20290
20291                 SUMMARY_video_x11="${SUMMARY_video_x11} xinerama"
20292             fi
20293             # Check whether --enable-video-x11-xinput was given.
20294 if test "${enable_video_x11_xinput+set}" = set; then :
20295   enableval=$enable_video_x11_xinput;
20296 else
20297   enable_video_x11_xinput=yes
20298 fi
20299
20300             if test x$enable_video_x11_xinput = xyes; then
20301                 definitely_enable_video_x11_xinput=no
20302                 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
20303
20304 "
20305 if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
20306   have_xinput_h_hdr=yes
20307 else
20308   have_xinput_h_hdr=no
20309 fi
20310
20311
20312                 if test x$have_xinput_h_hdr = xyes; then
20313                     if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
20314                         echo "-- dynamic libXi -> $xinput_lib"
20315
20316 cat >>confdefs.h <<_ACEOF
20317 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib"
20318 _ACEOF
20319
20320                         definitely_enable_video_x11_xinput=yes
20321                     else
20322                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
20323 $as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
20324 if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
20325   $as_echo_n "(cached) " >&6
20326 else
20327   ac_check_lib_save_LIBS=$LIBS
20328 LIBS="-lXi  $LIBS"
20329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20330 /* end confdefs.h.  */
20331
20332 /* Override any GCC internal prototype to avoid an error.
20333    Use char because int might match the return type of a GCC
20334    builtin and then its argument prototype would still apply.  */
20335 #ifdef __cplusplus
20336 extern "C"
20337 #endif
20338 char XOpenDevice ();
20339 int
20340 main ()
20341 {
20342 return XOpenDevice ();
20343   ;
20344   return 0;
20345 }
20346 _ACEOF
20347 if ac_fn_c_try_link "$LINENO"; then :
20348   ac_cv_lib_Xi_XOpenDevice=yes
20349 else
20350   ac_cv_lib_Xi_XOpenDevice=no
20351 fi
20352 rm -f core conftest.err conftest.$ac_objext \
20353     conftest$ac_exeext conftest.$ac_ext
20354 LIBS=$ac_check_lib_save_LIBS
20355 fi
20356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
20357 $as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
20358 if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
20359   have_xinput_lib=yes
20360 fi
20361
20362                         if test x$have_xinput_lib = xyes ; then
20363                             EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
20364                             definitely_enable_video_x11_xinput=yes
20365                         fi
20366                     fi
20367                 fi
20368             fi
20369             if test x$definitely_enable_video_x11_xinput = xyes; then
20370                 SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
20371
20372 $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
20373
20374                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
20375 $as_echo_n "checking for xinput2 multitouch... " >&6; }
20376                 have_xinput2_multitouch=no
20377                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20378 /* end confdefs.h.  */
20379
20380                         #include <X11/Xlib.h>
20381                         #include <X11/Xproto.h>
20382                         #include <X11/extensions/XInput2.h>
20383
20384 int
20385 main ()
20386 {
20387
20388 int event_type = XI_TouchBegin;
20389 XITouchClassInfo *t;
20390
20391   ;
20392   return 0;
20393 }
20394 _ACEOF
20395 if ac_fn_c_try_compile "$LINENO"; then :
20396
20397                 have_xinput2_multitouch=yes
20398                 $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
20399
20400                 SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
20401
20402 fi
20403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20404                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
20405 $as_echo "$have_xinput2_multitouch" >&6; }
20406             fi
20407             # Check whether --enable-video-x11-xrandr was given.
20408 if test "${enable_video_x11_xrandr+set}" = set; then :
20409   enableval=$enable_video_x11_xrandr;
20410 else
20411   enable_video_x11_xrandr=yes
20412 fi
20413
20414             if test x$enable_video_x11_xrandr = xyes; then
20415                                 definitely_enable_video_x11_xrandr=no
20416                 have_xrandr_h_hdr=no
20417                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20418 /* end confdefs.h.  */
20419
20420                 #include <X11/Xlib.h>
20421                 #include <X11/extensions/Xrandr.h>
20422
20423 int
20424 main ()
20425 {
20426
20427                 XRRScreenResources *res = NULL;
20428
20429   ;
20430   return 0;
20431 }
20432 _ACEOF
20433 if ac_fn_c_try_compile "$LINENO"; then :
20434
20435                 have_xrandr_h_hdr=yes
20436
20437 fi
20438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20439                 if test x$have_xrandr_h_hdr = xyes; then
20440                     if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
20441                         echo "-- dynamic libXrandr -> $xrandr_lib"
20442
20443 cat >>confdefs.h <<_ACEOF
20444 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
20445 _ACEOF
20446
20447                         definitely_enable_video_x11_xrandr=yes
20448                     else
20449                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
20450 $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
20451 if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
20452   $as_echo_n "(cached) " >&6
20453 else
20454   ac_check_lib_save_LIBS=$LIBS
20455 LIBS="-lXrandr  $LIBS"
20456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20457 /* end confdefs.h.  */
20458
20459 /* Override any GCC internal prototype to avoid an error.
20460    Use char because int might match the return type of a GCC
20461    builtin and then its argument prototype would still apply.  */
20462 #ifdef __cplusplus
20463 extern "C"
20464 #endif
20465 char XRRQueryExtension ();
20466 int
20467 main ()
20468 {
20469 return XRRQueryExtension ();
20470   ;
20471   return 0;
20472 }
20473 _ACEOF
20474 if ac_fn_c_try_link "$LINENO"; then :
20475   ac_cv_lib_Xrandr_XRRQueryExtension=yes
20476 else
20477   ac_cv_lib_Xrandr_XRRQueryExtension=no
20478 fi
20479 rm -f core conftest.err conftest.$ac_objext \
20480     conftest$ac_exeext conftest.$ac_ext
20481 LIBS=$ac_check_lib_save_LIBS
20482 fi
20483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
20484 $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
20485 if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
20486   have_xrandr_lib=yes
20487 fi
20488
20489                         if test x$have_xrandr_lib = xyes ; then
20490                             EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
20491                             definitely_enable_video_x11_xrandr=yes
20492                         fi
20493                     fi
20494                 fi
20495             fi
20496             if test x$definitely_enable_video_x11_xrandr = xyes; then
20497
20498 $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
20499
20500                 SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
20501             fi
20502             # Check whether --enable-video-x11-scrnsaver was given.
20503 if test "${enable_video_x11_scrnsaver+set}" = set; then :
20504   enableval=$enable_video_x11_scrnsaver;
20505 else
20506   enable_video_x11_scrnsaver=yes
20507 fi
20508
20509             if test x$enable_video_x11_scrnsaver = xyes; then
20510                 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
20511
20512 "
20513 if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
20514   have_scrnsaver_h_hdr=yes
20515 else
20516   have_scrnsaver_h_hdr=no
20517 fi
20518
20519
20520                 if test x$have_scrnsaver_h_hdr = xyes; then
20521                     if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
20522                         echo "-- dynamic libXss -> $xss_lib"
20523
20524 cat >>confdefs.h <<_ACEOF
20525 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib"
20526 _ACEOF
20527
20528                         definitely_enable_video_x11_scrnsaver=yes
20529                     else
20530                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
20531 $as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; }
20532 if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then :
20533   $as_echo_n "(cached) " >&6
20534 else
20535   ac_check_lib_save_LIBS=$LIBS
20536 LIBS="-lXss  $LIBS"
20537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20538 /* end confdefs.h.  */
20539
20540 /* Override any GCC internal prototype to avoid an error.
20541    Use char because int might match the return type of a GCC
20542    builtin and then its argument prototype would still apply.  */
20543 #ifdef __cplusplus
20544 extern "C"
20545 #endif
20546 char XScreenSaverSuspend ();
20547 int
20548 main ()
20549 {
20550 return XScreenSaverSuspend ();
20551   ;
20552   return 0;
20553 }
20554 _ACEOF
20555 if ac_fn_c_try_link "$LINENO"; then :
20556   ac_cv_lib_Xss_XScreenSaverSuspend=yes
20557 else
20558   ac_cv_lib_Xss_XScreenSaverSuspend=no
20559 fi
20560 rm -f core conftest.err conftest.$ac_objext \
20561     conftest$ac_exeext conftest.$ac_ext
20562 LIBS=$ac_check_lib_save_LIBS
20563 fi
20564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
20565 $as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
20566 if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then :
20567   have_xss_lib=yes
20568 fi
20569
20570                         if test x$have_xss_lib = xyes ; then
20571                             EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
20572                             definitely_enable_video_x11_scrnsaver=yes
20573                         fi
20574                     fi
20575                 fi
20576             fi
20577             if test x$definitely_enable_video_x11_scrnsaver = xyes; then
20578
20579 $as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
20580
20581                 SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
20582             fi
20583             # Check whether --enable-video-x11-xshape was given.
20584 if test "${enable_video_x11_xshape+set}" = set; then :
20585   enableval=$enable_video_x11_xshape;
20586 else
20587   enable_video_x11_xshape=yes
20588 fi
20589
20590             if test x$enable_video_x11_xshape = xyes; then
20591                 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
20592
20593 "
20594 if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
20595   have_shape_h_hdr=yes
20596 else
20597   have_shape_h_hdr=no
20598 fi
20599
20600
20601                 if test x$have_shape_h_hdr = xyes; then
20602
20603 $as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
20604
20605                     SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
20606                 fi
20607             fi
20608             # Check whether --enable-video-x11-vm was given.
20609 if test "${enable_video_x11_vm+set}" = set; then :
20610   enableval=$enable_video_x11_vm;
20611 else
20612   enable_video_x11_vm=yes
20613 fi
20614
20615             if test x$enable_video_x11_vm = xyes; then
20616                 definitely_enable_video_x11_vm=no
20617                 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
20618
20619 "
20620 if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then :
20621   have_vm_h_hdr=yes
20622 else
20623   have_vm_h_hdr=no
20624 fi
20625
20626
20627                 if test x$have_vm_h_hdr = xyes; then
20628                     if test x$enable_x11_shared = xyes && test x$xvidmode_lib != x ; then
20629                         echo "-- dynamic libXxf86vm -> $xvidmode_lib"
20630
20631 cat >>confdefs.h <<_ACEOF
20632 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "$xvidmode_lib"
20633 _ACEOF
20634
20635                         definitely_enable_video_x11_vm=yes
20636                     else
20637                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryVersion in -lXxf86vm" >&5
20638 $as_echo_n "checking for XF86VidModeQueryVersion in -lXxf86vm... " >&6; }
20639 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion+:} false; then :
20640   $as_echo_n "(cached) " >&6
20641 else
20642   ac_check_lib_save_LIBS=$LIBS
20643 LIBS="-lXxf86vm  $LIBS"
20644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20645 /* end confdefs.h.  */
20646
20647 /* Override any GCC internal prototype to avoid an error.
20648    Use char because int might match the return type of a GCC
20649    builtin and then its argument prototype would still apply.  */
20650 #ifdef __cplusplus
20651 extern "C"
20652 #endif
20653 char XF86VidModeQueryVersion ();
20654 int
20655 main ()
20656 {
20657 return XF86VidModeQueryVersion ();
20658   ;
20659   return 0;
20660 }
20661 _ACEOF
20662 if ac_fn_c_try_link "$LINENO"; then :
20663   ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=yes
20664 else
20665   ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=no
20666 fi
20667 rm -f core conftest.err conftest.$ac_objext \
20668     conftest$ac_exeext conftest.$ac_ext
20669 LIBS=$ac_check_lib_save_LIBS
20670 fi
20671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&5
20672 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&6; }
20673 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" = xyes; then :
20674   have_vm_lib=yes
20675 fi
20676
20677                         if test x$have_vm_lib = xyes ; then
20678                             EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXxf86vm"
20679                             definitely_enable_video_x11_vm=yes
20680                         fi
20681                     fi
20682                 fi
20683             fi
20684             if test x$definitely_enable_video_x11_vm = xyes; then
20685
20686 $as_echo "#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1" >>confdefs.h
20687
20688                 SUMMARY_video_x11="${SUMMARY_video_x11} xvidmode"
20689             fi
20690         fi
20691     fi
20692 }
20693
20694 CheckVivanteVideo()
20695 {
20696     # Check whether --enable-video-vivante was given.
20697 if test "${enable_video_vivante+set}" = set; then :
20698   enableval=$enable_video_vivante;
20699 else
20700   enable_video_vivante=yes
20701 fi
20702
20703     if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
20704         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
20705 $as_echo_n "checking for Vivante VDK API... " >&6; }
20706         have_vivante_vdk=no
20707         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20708 /* end confdefs.h.  */
20709
20710           #define LINUX
20711           #define EGL_API_FB
20712           #include <gc_vdk.h>
20713
20714 int
20715 main ()
20716 {
20717
20718
20719   ;
20720   return 0;
20721 }
20722 _ACEOF
20723 if ac_fn_c_try_compile "$LINENO"; then :
20724
20725         have_vivante_vdk=yes
20726
20727 fi
20728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20729         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
20730 $as_echo "$have_vivante_vdk" >&6; }
20731
20732         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
20733 $as_echo_n "checking for Vivante FB API... " >&6; }
20734         have_vivante_egl=no
20735         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20736 /* end confdefs.h.  */
20737
20738           #define LINUX
20739           #define EGL_API_FB
20740           #include <EGL/eglvivante.h>
20741
20742 int
20743 main ()
20744 {
20745
20746
20747   ;
20748   return 0;
20749 }
20750 _ACEOF
20751 if ac_fn_c_try_compile "$LINENO"; then :
20752
20753         have_vivante_egl=yes
20754
20755 fi
20756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20757         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
20758 $as_echo "$have_vivante_egl" >&6; }
20759
20760         if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
20761
20762 $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
20763
20764             EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
20765             if test x$have_vivante_vdk = xyes; then
20766
20767 $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
20768
20769                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
20770             fi
20771             SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
20772             SUMMARY_video="${SUMMARY_video} vivante"
20773             have_video=yes
20774         fi
20775     fi
20776 }
20777
20778 CheckHaikuVideo()
20779 {
20780     if test x$enable_video = xyes; then
20781
20782 $as_echo "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
20783
20784         SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
20785         have_video=yes
20786         SUMMARY_video="${SUMMARY_video} haiku"
20787     fi
20788 }
20789
20790 CheckCOCOA()
20791 {
20792     # Check whether --enable-video-cocoa was given.
20793 if test "${enable_video_cocoa+set}" = set; then :
20794   enableval=$enable_video_cocoa;
20795 else
20796   enable_video_cocoa=yes
20797 fi
20798
20799     if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
20800         save_CFLAGS="$CFLAGS"
20801                 CFLAGS="$CFLAGS -x objective-c"
20802         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
20803 $as_echo_n "checking for Cocoa framework... " >&6; }
20804         have_cocoa=no
20805         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20806 /* end confdefs.h.  */
20807
20808           #import <Cocoa/Cocoa.h>
20809
20810 int
20811 main ()
20812 {
20813
20814
20815   ;
20816   return 0;
20817 }
20818 _ACEOF
20819 if ac_fn_c_try_compile "$LINENO"; then :
20820
20821         have_cocoa=yes
20822
20823 fi
20824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20825         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
20826 $as_echo "$have_cocoa" >&6; }
20827         CFLAGS="$save_CFLAGS"
20828         if test x$have_cocoa = xyes; then
20829
20830 $as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
20831
20832             SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
20833             SUMMARY_video="${SUMMARY_video} cocoa"
20834             have_video=yes
20835         fi
20836     fi
20837 }
20838
20839 CheckDirectFB()
20840 {
20841     # Check whether --enable-video-directfb was given.
20842 if test "${enable_video_directfb+set}" = set; then :
20843   enableval=$enable_video_directfb;
20844 else
20845   enable_video_directfb=no
20846 fi
20847
20848     if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
20849         video_directfb=no
20850
20851         DIRECTFB_REQUIRED_VERSION=1.0.0
20852         for ac_prog in directfb-config
20853 do
20854   # Extract the first word of "$ac_prog", so it can be a program name with args.
20855 set dummy $ac_prog; ac_word=$2
20856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20857 $as_echo_n "checking for $ac_word... " >&6; }
20858 if ${ac_cv_path_DIRECTFBCONFIG+:} false; then :
20859   $as_echo_n "(cached) " >&6
20860 else
20861   case $DIRECTFBCONFIG in
20862   [\\/]* | ?:[\\/]*)
20863   ac_cv_path_DIRECTFBCONFIG="$DIRECTFBCONFIG" # Let the user override the test with a path.
20864   ;;
20865   *)
20866   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20867 as_dummy="$prefix/bin:$PATH"
20868 for as_dir in $as_dummy
20869 do
20870   IFS=$as_save_IFS
20871   test -z "$as_dir" && as_dir=.
20872     for ac_exec_ext in '' $ac_executable_extensions; do
20873   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20874     ac_cv_path_DIRECTFBCONFIG="$as_dir/$ac_word$ac_exec_ext"
20875     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20876     break 2
20877   fi
20878 done
20879   done
20880 IFS=$as_save_IFS
20881
20882   ;;
20883 esac
20884 fi
20885 DIRECTFBCONFIG=$ac_cv_path_DIRECTFBCONFIG
20886 if test -n "$DIRECTFBCONFIG"; then
20887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRECTFBCONFIG" >&5
20888 $as_echo "$DIRECTFBCONFIG" >&6; }
20889 else
20890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20891 $as_echo "no" >&6; }
20892 fi
20893
20894
20895   test -n "$DIRECTFBCONFIG" && break
20896 done
20897 test -n "$DIRECTFBCONFIG" || DIRECTFBCONFIG="no"
20898
20899         if test x$DIRECTFBCONFIG = xno; then
20900             # Extract the first word of "pkg-config", so it can be a program name with args.
20901 set dummy pkg-config; ac_word=$2
20902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20903 $as_echo_n "checking for $ac_word... " >&6; }
20904 if ${ac_cv_path_PKG_CONFIG+:} false; then :
20905   $as_echo_n "(cached) " >&6
20906 else
20907   case $PKG_CONFIG in
20908   [\\/]* | ?:[\\/]*)
20909   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20910   ;;
20911   *)
20912   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20913 for as_dir in $PATH
20914 do
20915   IFS=$as_save_IFS
20916   test -z "$as_dir" && as_dir=.
20917     for ac_exec_ext in '' $ac_executable_extensions; do
20918   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20919     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20920     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20921     break 2
20922   fi
20923 done
20924   done
20925 IFS=$as_save_IFS
20926
20927   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20928   ;;
20929 esac
20930 fi
20931 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20932 if test -n "$PKG_CONFIG"; then
20933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20934 $as_echo "$PKG_CONFIG" >&6; }
20935 else
20936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20937 $as_echo "no" >&6; }
20938 fi
20939
20940
20941             if test x$PKG_CONFIG != xno; then
20942                 if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $DIRECTFB_REQUIRED_VERSION directfb; then
20943                     DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags directfb`
20944                     DIRECTFB_LIBS=`$PKG_CONFIG --libs directfb`
20945                     DIRECTFB_PREFIX=`$PKG_CONFIG --variable=prefix directfb`
20946                     video_directfb=yes
20947                 fi
20948             fi
20949         else
20950             set -- `echo $DIRECTFB_REQUIRED_VERSION | sed 's/\./ /g'`
20951             NEED_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
20952             set -- `$DIRECTFBCONFIG --version | sed 's/\./ /g'`
20953             HAVE_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
20954             if test $HAVE_VERSION -ge $NEED_VERSION; then
20955                 DIRECTFB_CFLAGS=`$DIRECTFBCONFIG --cflags`
20956                 DIRECTFB_LIBS=`$DIRECTFBCONFIG --libs`
20957                 DIRECTFB_PREFIX=`$DIRECTFBCONFIG --prefix`
20958                 video_directfb=yes
20959             fi
20960         fi
20961         if test x$video_directfb = xyes; then
20962             # SuSE 11.1 installs directfb-config without directfb-devel
20963             save_CPPFLAGS="$CPPFLAGS"
20964             CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
20965             ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
20966 if test "x$ac_cv_header_directfb_h" = xyes; then :
20967   have_directfb_hdr=yes
20968 else
20969   have_directfb_hdr=no
20970 fi
20971
20972
20973             CPPFLAGS="$save_CPPFLAGS"
20974             video_directfb=$have_directfb_hdr
20975         fi
20976         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DirectFB $DIRECTFB_REQUIRED_VERSION support" >&5
20977 $as_echo_n "checking for DirectFB $DIRECTFB_REQUIRED_VERSION support... " >&6; }
20978         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_directfb" >&5
20979 $as_echo "$video_directfb" >&6; }
20980
20981         if test x$video_directfb = xyes; then
20982             # Check whether --enable-directfb-shared was given.
20983 if test "${enable_directfb_shared+set}" = set; then :
20984   enableval=$enable_directfb_shared;
20985 else
20986   enable_directfb_shared=yes
20987 fi
20988
20989
20990
20991 $as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
20992
20993
20994 $as_echo "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
20995
20996             SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
20997             EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
20998
20999             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb dynamic loading support" >&5
21000 $as_echo_n "checking for directfb dynamic loading support... " >&6; }
21001             directfb_shared=no
21002             directfb_lib=`find_lib "libdirectfb.so.*" "$DIRECTFB_LIBS"`
21003             # | sed 's/.*\/\(.*\)/\1/; q'`]
21004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"directfb $directfb_lib\"" >&5
21005 $as_echo "$as_me: WARNING: \"directfb $directfb_lib\"" >&2;}
21006             if test x$have_loadso != xyes && \
21007                test x$enable_directfb_shared = xyes; then
21008                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
21009 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
21010             fi
21011             if test x$have_loadso = xyes && \
21012                test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
21013                 directfb_shared=yes
21014                 echo "-- $directfb_lib_spec -> $directfb_lib"
21015
21016 cat >>confdefs.h <<_ACEOF
21017 #define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
21018 _ACEOF
21019
21020                 SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
21021             else
21022                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
21023                 SUMMARY_video="${SUMMARY_video} directfb"
21024             fi
21025             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $directfb_shared" >&5
21026 $as_echo "$directfb_shared" >&6; }
21027             SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
21028             have_video=yes
21029         fi
21030     fi
21031 }
21032
21033 CheckFusionSound()
21034 {
21035     # Check whether --enable-fusionsound was given.
21036 if test "${enable_fusionsound+set}" = set; then :
21037   enableval=$enable_fusionsound;
21038 else
21039   enable_fusionsound=no
21040 fi
21041
21042     if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
21043         fusionsound=no
21044
21045         FUSIONSOUND_REQUIRED_VERSION=1.1.1
21046
21047         # Extract the first word of "pkg-config", so it can be a program name with args.
21048 set dummy pkg-config; ac_word=$2
21049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21050 $as_echo_n "checking for $ac_word... " >&6; }
21051 if ${ac_cv_path_PKG_CONFIG+:} false; then :
21052   $as_echo_n "(cached) " >&6
21053 else
21054   case $PKG_CONFIG in
21055   [\\/]* | ?:[\\/]*)
21056   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21057   ;;
21058   *)
21059   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21060 for as_dir in $PATH
21061 do
21062   IFS=$as_save_IFS
21063   test -z "$as_dir" && as_dir=.
21064     for ac_exec_ext in '' $ac_executable_extensions; do
21065   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21066     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21067     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21068     break 2
21069   fi
21070 done
21071   done
21072 IFS=$as_save_IFS
21073
21074   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21075   ;;
21076 esac
21077 fi
21078 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21079 if test -n "$PKG_CONFIG"; then
21080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21081 $as_echo "$PKG_CONFIG" >&6; }
21082 else
21083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21084 $as_echo "no" >&6; }
21085 fi
21086
21087
21088         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support" >&5
21089 $as_echo_n "checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support... " >&6; }
21090         if test x$PKG_CONFIG != xno; then
21091             if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $FUSIONSOUND_REQUIRED_VERSION fusionsound; then
21092                 FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags fusionsound`
21093                 FUSIONSOUND_LIBS=`$PKG_CONFIG --libs fusionsound`
21094                 fusionsound=yes
21095             fi
21096         fi
21097         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound" >&5
21098 $as_echo "$fusionsound" >&6; }
21099
21100         if test x$fusionsound = xyes; then
21101
21102 $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
21103
21104             SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
21105             EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
21106
21107             # Check whether --enable-fusionsound-shared was given.
21108 if test "${enable_fusionsound_shared+set}" = set; then :
21109   enableval=$enable_fusionsound_shared;
21110 else
21111   enable_fusionsound_shared=yes
21112 fi
21113
21114             fusionsound_shared=no
21115             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
21116 $as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
21117             if test x$have_loadso != xyes && \
21118                test x$enable_fusionsound_shared = xyes; then
21119                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
21120 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
21121             fi
21122             if test x$have_loadso = xyes && \
21123                test x$enable_fusionsound_shared = xyes; then
21124
21125 cat >>confdefs.h <<_ACEOF
21126 #define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
21127 _ACEOF
21128
21129                 fusionsound_shared=yes
21130                 SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
21131             else
21132                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
21133                 SUMMARY_audio="${SUMMARY_audio} fusionsound"
21134             fi
21135             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
21136 $as_echo "$fusionsound_shared" >&6; }
21137
21138             have_audio=yes
21139         fi
21140     fi
21141 }
21142
21143 CheckDummyVideo()
21144 {
21145     # Check whether --enable-video-dummy was given.
21146 if test "${enable_video_dummy+set}" = set; then :
21147   enableval=$enable_video_dummy;
21148 else
21149   enable_video_dummy=yes
21150 fi
21151
21152     if test x$enable_video_dummy = xyes; then
21153
21154 $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
21155
21156         SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
21157         have_video=yes
21158         SUMMARY_video="${SUMMARY_video} dummy"
21159     fi
21160 }
21161
21162 # Check whether --enable-video-opengl was given.
21163 if test "${enable_video_opengl+set}" = set; then :
21164   enableval=$enable_video_opengl;
21165 else
21166   enable_video_opengl=yes
21167 fi
21168
21169
21170 CheckOpenGLX11()
21171 {
21172     if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
21173         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL (GLX) support" >&5
21174 $as_echo_n "checking for OpenGL (GLX) support... " >&6; }
21175         video_opengl=no
21176         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21177 /* end confdefs.h.  */
21178
21179          #include <GL/gl.h>
21180          #include <GL/glx.h>
21181
21182 int
21183 main ()
21184 {
21185
21186
21187   ;
21188   return 0;
21189 }
21190 _ACEOF
21191 if ac_fn_c_try_compile "$LINENO"; then :
21192
21193         video_opengl=yes
21194
21195 fi
21196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21197         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
21198 $as_echo "$video_opengl" >&6; }
21199         if test x$video_opengl = xyes; then
21200
21201 $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
21202
21203
21204 $as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
21205
21206
21207 $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
21208
21209             SUMMARY_video="${SUMMARY_video} opengl"
21210         fi
21211     fi
21212 }
21213
21214 # Check whether --enable-video-opengles was given.
21215 if test "${enable_video_opengles+set}" = set; then :
21216   enableval=$enable_video_opengles;
21217 else
21218   enable_video_opengles=yes
21219 fi
21220
21221 # Check whether --enable-video-opengles1 was given.
21222 if test "${enable_video_opengles1+set}" = set; then :
21223   enableval=$enable_video_opengles1;
21224 else
21225   enable_video_opengles1=yes
21226 fi
21227
21228 # Check whether --enable-video-opengles2 was given.
21229 if test "${enable_video_opengles2+set}" = set; then :
21230   enableval=$enable_video_opengles2;
21231 else
21232   enable_video_opengles2=yes
21233 fi
21234
21235 # Check whether --enable-video-vulkan was given.
21236 if test "${enable_video_vulkan+set}" = set; then :
21237   enableval=$enable_video_vulkan;
21238 else
21239   enable_video_vulkan=yes
21240 fi
21241
21242
21243
21244 CheckOpenGLESX11()
21245 {
21246     if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
21247         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
21248 $as_echo_n "checking for EGL support... " >&6; }
21249         video_opengl_egl=no
21250         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21251 /* end confdefs.h.  */
21252
21253           #define LINUX
21254           #define EGL_API_FB
21255           #include <EGL/egl.h>
21256           #include <EGL/eglext.h>
21257
21258 int
21259 main ()
21260 {
21261
21262
21263   ;
21264   return 0;
21265 }
21266 _ACEOF
21267 if ac_fn_c_try_compile "$LINENO"; then :
21268
21269         video_opengl_egl=yes
21270
21271 fi
21272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21273         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
21274 $as_echo "$video_opengl_egl" >&6; }
21275         if test x$video_opengl_egl = xyes; then
21276
21277 $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
21278
21279         fi
21280
21281         if test x$enable_video_opengles1 = xyes; then
21282             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
21283 $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
21284             video_opengles_v1=no
21285             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21286 /* end confdefs.h.  */
21287
21288              #include <GLES/gl.h>
21289              #include <GLES/glext.h>
21290
21291 int
21292 main ()
21293 {
21294
21295
21296   ;
21297   return 0;
21298 }
21299 _ACEOF
21300 if ac_fn_c_try_compile "$LINENO"; then :
21301
21302             video_opengles_v1=yes
21303
21304 fi
21305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21306             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
21307 $as_echo "$video_opengles_v1" >&6; }
21308             if test x$video_opengles_v1 = xyes; then
21309
21310 $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
21311
21312
21313 $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
21314
21315                 SUMMARY_video="${SUMMARY_video} opengl_es1"
21316             fi
21317         fi
21318
21319         if test x$enable_video_opengles2 = xyes; then
21320             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
21321 $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
21322             video_opengles_v2=no
21323             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21324 /* end confdefs.h.  */
21325
21326              #include <GLES2/gl2.h>
21327              #include <GLES2/gl2ext.h>
21328
21329 int
21330 main ()
21331 {
21332
21333
21334   ;
21335   return 0;
21336 }
21337 _ACEOF
21338 if ac_fn_c_try_compile "$LINENO"; then :
21339
21340             video_opengles_v2=yes
21341
21342 fi
21343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21344             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
21345 $as_echo "$video_opengles_v2" >&6; }
21346             if test x$video_opengles_v2 = xyes; then
21347
21348 $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
21349
21350
21351 $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
21352
21353                 SUMMARY_video="${SUMMARY_video} opengl_es2"
21354             fi
21355         fi
21356     fi
21357 }
21358
21359 CheckWINDOWSGL()
21360 {
21361     if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
21362
21363 $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
21364
21365
21366 $as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
21367
21368
21369 $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
21370
21371         SUMMARY_video="${SUMMARY_video} opengl"
21372     fi
21373 }
21374
21375 CheckWINDOWSGLES()
21376 {
21377     if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
21378
21379         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
21380 $as_echo_n "checking for EGL support... " >&6; }
21381         video_opengl_egl=no
21382         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21383 /* end confdefs.h.  */
21384
21385          #include <EGL/egl.h>
21386
21387 int
21388 main ()
21389 {
21390
21391
21392   ;
21393   return 0;
21394 }
21395 _ACEOF
21396 if ac_fn_c_try_compile "$LINENO"; then :
21397
21398         video_opengl_egl=yes
21399
21400 fi
21401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21402         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
21403 $as_echo "$video_opengl_egl" >&6; }
21404         if test x$video_opengl_egl = xyes; then
21405
21406 $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
21407
21408
21409 $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
21410
21411             SUMMARY_video="${SUMMARY_video} opengl_es1"
21412         fi
21413
21414         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
21415 $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
21416         video_opengles_v2=no
21417         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21418 /* end confdefs.h.  */
21419
21420          #include <GLES2/gl2.h>
21421          #include <GLES2/gl2ext.h>
21422
21423 int
21424 main ()
21425 {
21426
21427
21428   ;
21429   return 0;
21430 }
21431 _ACEOF
21432 if ac_fn_c_try_compile "$LINENO"; then :
21433
21434         video_opengles_v2=yes
21435
21436 fi
21437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21438         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
21439 $as_echo "$video_opengles_v2" >&6; }
21440         if test x$video_opengles_v2 = xyes; then
21441
21442 $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
21443
21444
21445 $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
21446
21447
21448 $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
21449
21450             SUMMARY_video="${SUMMARY_video} opengl_es2"
21451         fi
21452     fi
21453 }
21454
21455 CheckHaikuGL()
21456 {
21457     if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
21458
21459 $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
21460
21461
21462 $as_echo "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
21463
21464
21465 $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
21466
21467         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
21468         SUMMARY_video="${SUMMARY_video} opengl"
21469     fi
21470 }
21471
21472 CheckMacGL()
21473 {
21474     if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
21475
21476 $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
21477
21478
21479 $as_echo "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
21480
21481
21482 $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
21483
21484         SUMMARY_video="${SUMMARY_video} opengl"
21485     fi
21486 }
21487
21488 CheckEmscriptenGLES()
21489 {
21490     if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
21491         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
21492 $as_echo_n "checking for EGL support... " >&6; }
21493         video_opengl_egl=no
21494         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21495 /* end confdefs.h.  */
21496
21497          #include <EGL/egl.h>
21498
21499 int
21500 main ()
21501 {
21502
21503
21504   ;
21505   return 0;
21506 }
21507 _ACEOF
21508 if ac_fn_c_try_compile "$LINENO"; then :
21509
21510         video_opengl_egl=yes
21511
21512 fi
21513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21514         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
21515 $as_echo "$video_opengl_egl" >&6; }
21516         if test x$video_opengl_egl = xyes; then
21517
21518 $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
21519
21520         fi
21521
21522         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
21523 $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
21524         video_opengles_v2=no
21525         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21526 /* end confdefs.h.  */
21527
21528          #include <GLES2/gl2.h>
21529          #include <GLES2/gl2ext.h>
21530
21531 int
21532 main ()
21533 {
21534
21535
21536   ;
21537   return 0;
21538 }
21539 _ACEOF
21540 if ac_fn_c_try_compile "$LINENO"; then :
21541
21542         video_opengles_v2=yes
21543
21544 fi
21545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21546         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
21547 $as_echo "$video_opengles_v2" >&6; }
21548         if test x$video_opengles_v2 = xyes; then
21549
21550 $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
21551
21552
21553 $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
21554
21555             SUMMARY_video="${SUMMARY_video} opengl_es2"
21556         fi
21557     fi
21558 }
21559
21560 CheckVulkanTizen()
21561 {
21562     if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
21563         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vulkan support" >&5
21564 $as_echo_n "checking for Vulkan support... " >&6; }
21565         video_vulkan=no
21566         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21567 /* end confdefs.h.  */
21568
21569          #include <vulkan/vulkan.h>
21570
21571 int
21572 main ()
21573 {
21574
21575           uint32_t instance_layer_count = 0;
21576           vkEnumerateInstanceLayerProperties(&instance_layer_count, NULL);
21577
21578   ;
21579   return 0;
21580 }
21581 _ACEOF
21582 if ac_fn_c_try_compile "$LINENO"; then :
21583
21584         video_vulkan=yes
21585
21586 fi
21587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21588         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_vulkan" >&5
21589 $as_echo "$video_vulkan" >&6; }
21590         if test x$video_vulkan = xyes; then
21591
21592 $as_echo "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
21593
21594             SUMMARY_video="${SUMMARY_video} vulkan"
21595         fi
21596     fi
21597 }
21598
21599 CheckInputEvents()
21600 {
21601             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
21602 $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
21603         use_input_events=no
21604         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21605 /* end confdefs.h.  */
21606
21607           #include <linux/input.h>
21608
21609 int
21610 main ()
21611 {
21612
21613           #ifndef EVIOCGNAME
21614           #error EVIOCGNAME() ioctl not available
21615           #endif
21616
21617   ;
21618   return 0;
21619 }
21620 _ACEOF
21621 if ac_fn_c_try_compile "$LINENO"; then :
21622
21623         use_input_events=yes
21624
21625 fi
21626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21627         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
21628 $as_echo "$use_input_events" >&6; }
21629         if test x$use_input_events = xyes; then
21630
21631 $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
21632
21633             SUMMARY_input="${SUMMARY_input} linuxev"
21634         fi
21635 }
21636
21637 CheckInputKD()
21638 {
21639
21640     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
21641 $as_echo_n "checking for Linux kd.h... " >&6; }
21642     use_input_kd=no
21643     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21644 /* end confdefs.h.  */
21645
21646       #include <linux/kd.h>
21647       #include <linux/keyboard.h>
21648
21649 int
21650 main ()
21651 {
21652
21653         struct kbentry kbe;
21654         kbe.kb_table = KG_CTRL;
21655         ioctl(0, KDGKBENT, &kbe);
21656
21657   ;
21658   return 0;
21659 }
21660 _ACEOF
21661 if ac_fn_c_try_compile "$LINENO"; then :
21662
21663     use_input_kd=yes
21664
21665 fi
21666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21667     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
21668 $as_echo "$use_input_kd" >&6; }
21669     if test x$use_input_kd = xyes; then
21670
21671 $as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
21672
21673         SUMMARY_input="${SUMMARY_input} linuxkd"
21674     fi
21675 }
21676
21677 CheckLibUDev()
21678 {
21679     # Check whether --enable-libudev was given.
21680 if test "${enable_libudev+set}" = set; then :
21681   enableval=$enable_libudev;
21682 else
21683   enable_libudev=yes
21684 fi
21685
21686     if test x$enable_libudev = xyes; then
21687         ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
21688 if test "x$ac_cv_header_libudev_h" = xyes; then :
21689   have_libudev_h_hdr=yes
21690 else
21691   have_libudev_h_hdr=no
21692 fi
21693
21694
21695         if test x$have_libudev_h_hdr = xyes; then
21696
21697 $as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
21698
21699         fi
21700     fi
21701 }
21702
21703 CheckDBus()
21704 {
21705     # Check whether --enable-dbus was given.
21706 if test "${enable_dbus+set}" = set; then :
21707   enableval=$enable_dbus;
21708 else
21709   enable_dbus=yes
21710 fi
21711
21712     if test x$enable_dbus = xyes; then
21713         # Extract the first word of "pkg-config", so it can be a program name with args.
21714 set dummy pkg-config; ac_word=$2
21715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21716 $as_echo_n "checking for $ac_word... " >&6; }
21717 if ${ac_cv_path_PKG_CONFIG+:} false; then :
21718   $as_echo_n "(cached) " >&6
21719 else
21720   case $PKG_CONFIG in
21721   [\\/]* | ?:[\\/]*)
21722   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21723   ;;
21724   *)
21725   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21726 for as_dir in $PATH
21727 do
21728   IFS=$as_save_IFS
21729   test -z "$as_dir" && as_dir=.
21730     for ac_exec_ext in '' $ac_executable_extensions; do
21731   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21732     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21733     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21734     break 2
21735   fi
21736 done
21737   done
21738 IFS=$as_save_IFS
21739
21740   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21741   ;;
21742 esac
21743 fi
21744 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21745 if test -n "$PKG_CONFIG"; then
21746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21747 $as_echo "$PKG_CONFIG" >&6; }
21748 else
21749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21750 $as_echo "no" >&6; }
21751 fi
21752
21753
21754         if test x$PKG_CONFIG != xno; then
21755             DBUS_CFLAGS=`$PKG_CONFIG --cflags dbus-1`
21756             save_CFLAGS="$CFLAGS"
21757             CFLAGS="$save_CFLAGS $DBUS_CFLAGS"
21758             ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
21759 if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
21760   have_dbus_dbus_h_hdr=yes
21761 else
21762   have_dbus_dbus_h_hdr=no
21763 fi
21764
21765
21766             CFLAGS="$save_CFLAGS"
21767             if test x$have_dbus_dbus_h_hdr = xyes; then
21768
21769 $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
21770
21771                 EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
21772                 SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
21773             fi
21774         fi
21775     fi
21776 }
21777
21778 CheckIBus()
21779 {
21780     # Check whether --enable-ibus was given.
21781 if test "${enable_ibus+set}" = set; then :
21782   enableval=$enable_ibus;
21783 else
21784   enable_ibus=yes
21785 fi
21786
21787     if test x$enable_ibus = xyes; then
21788         # Extract the first word of "pkg-config", so it can be a program name with args.
21789 set dummy pkg-config; ac_word=$2
21790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21791 $as_echo_n "checking for $ac_word... " >&6; }
21792 if ${ac_cv_path_PKG_CONFIG+:} false; then :
21793   $as_echo_n "(cached) " >&6
21794 else
21795   case $PKG_CONFIG in
21796   [\\/]* | ?:[\\/]*)
21797   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21798   ;;
21799   *)
21800   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21801 for as_dir in $PATH
21802 do
21803   IFS=$as_save_IFS
21804   test -z "$as_dir" && as_dir=.
21805     for ac_exec_ext in '' $ac_executable_extensions; do
21806   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21807     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21808     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21809     break 2
21810   fi
21811 done
21812   done
21813 IFS=$as_save_IFS
21814
21815   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21816   ;;
21817 esac
21818 fi
21819 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21820 if test -n "$PKG_CONFIG"; then
21821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21822 $as_echo "$PKG_CONFIG" >&6; }
21823 else
21824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21825 $as_echo "no" >&6; }
21826 fi
21827
21828
21829         if test x$PKG_CONFIG != xno; then
21830             IBUS_CFLAGS=`$PKG_CONFIG --cflags ibus-1.0`
21831             save_CFLAGS="$CFLAGS"
21832             CFLAGS="$save_CFLAGS $IBUS_CFLAGS"
21833             ac_fn_c_check_header_mongrel "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
21834 if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes; then :
21835   have_ibus_ibus_h_hdr=yes
21836 else
21837   have_ibus_ibus_h_hdr=no
21838 fi
21839
21840
21841             ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
21842 if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
21843   have_inotify_inotify_h_hdr=yes
21844 else
21845   have_inotify_inotify_h_hdr=no
21846 fi
21847
21848
21849             CFLAGS="$save_CFLAGS"
21850             if test x$have_ibus_ibus_h_hdr = xyes; then
21851                 if test x$enable_dbus != xyes; then
21852                     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
21853 $as_echo "$as_me: WARNING: DBus support is required for IBus." >&2;}
21854                     have_ibus_ibus_h_hdr=no
21855                 elif test x$have_inotify_inotify_h_hdr != xyes; then
21856                     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
21857 $as_echo "$as_me: WARNING: INotify support is required for IBus." >&2;}
21858                     have_ibus_ibus_h_hdr=no
21859                 else
21860
21861 $as_echo "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
21862
21863                     EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
21864                     SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
21865                fi
21866             fi
21867         fi
21868     fi
21869 }
21870
21871 CheckTslib()
21872 {
21873     # Check whether --enable-input-tslib was given.
21874 if test "${enable_input_tslib+set}" = set; then :
21875   enableval=$enable_input_tslib;
21876 else
21877   enable_input_tslib=yes
21878 fi
21879
21880     if test x$enable_input_tslib = xyes; then
21881         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Touchscreen library support" >&5
21882 $as_echo_n "checking for Touchscreen library support... " >&6; }
21883         enable_input_tslib=no
21884         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21885 /* end confdefs.h.  */
21886
21887           #include "tslib.h"
21888
21889 int
21890 main ()
21891 {
21892
21893
21894   ;
21895   return 0;
21896 }
21897 _ACEOF
21898 if ac_fn_c_try_compile "$LINENO"; then :
21899
21900         enable_input_tslib=yes
21901
21902 fi
21903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21904         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_input_tslib" >&5
21905 $as_echo "$enable_input_tslib" >&6; }
21906         if test x$enable_input_tslib = xyes; then
21907
21908 $as_echo "#define SDL_INPUT_TSLIB 1" >>confdefs.h
21909
21910             EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lts"
21911             SUMMARY_input="${SUMMARY_input} ts"
21912         fi
21913     fi
21914 }
21915
21916 CheckPTHREAD()
21917 {
21918         # Check whether --enable-pthreads was given.
21919 if test "${enable_pthreads+set}" = set; then :
21920   enableval=$enable_pthreads;
21921 else
21922   enable_pthreads=yes
21923 fi
21924
21925         # Check whether --enable-pthread-sem was given.
21926 if test "${enable_pthread_sem+set}" = set; then :
21927   enableval=$enable_pthread_sem;
21928 else
21929   enable_pthread_sem=yes
21930 fi
21931
21932     case "$host" in
21933          *-*-androideabi*)
21934             pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
21935             pthread_lib=""
21936             ;;
21937         *-*-linux*|*-*-uclinux*)
21938             pthread_cflags="-D_REENTRANT"
21939             pthread_lib="-lpthread"
21940             ;;
21941         *-*-bsdi*)
21942             pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
21943             pthread_lib=""
21944             ;;
21945         *-*-darwin*)
21946             pthread_cflags="-D_THREAD_SAFE"
21947 # causes Carbon.p complaints?
21948 #            pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
21949             ;;
21950         *-*-freebsd*|*-*-dragonfly*)
21951             pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
21952             pthread_lib="-pthread"
21953             ;;
21954         *-*-netbsd*)
21955             pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
21956             pthread_lib="-lpthread"
21957             ;;
21958         *-*-openbsd*)
21959             pthread_cflags="-D_REENTRANT"
21960             pthread_lib="-pthread"
21961             ;;
21962         *-*-solaris2.9)
21963             # From Solaris 9+, posix4's preferred name is rt.
21964             pthread_cflags="-D_REENTRANT"
21965             pthread_lib="-lpthread -lrt"
21966             ;;
21967         *-*-solaris2.10)
21968             # Solaris 10+ merged pthread into libc.
21969             pthread_cflags="-D_REENTRANT"
21970             pthread_lib="-lrt"
21971             ;;
21972         *-*-solaris*)
21973             # Solaris 11+ merged rt into libc.
21974             pthread_cflags="-D_REENTRANT"
21975             pthread_lib=""
21976             ;;
21977         *-*-sysv5*)
21978             pthread_cflags="-D_REENTRANT -Kthread"
21979             pthread_lib=""
21980             ;;
21981         *-*-aix*)
21982             pthread_cflags="-D_REENTRANT -mthreads"
21983             pthread_lib="-lpthread"
21984             ;;
21985         *-*-hpux11*)
21986             pthread_cflags="-D_REENTRANT"
21987             pthread_lib="-L/usr/lib -lpthread"
21988             ;;
21989         *-*-haiku*)
21990             pthread_cflags="-D_REENTRANT"
21991             pthread_lib=""
21992             ;;
21993         *)
21994             pthread_cflags="-D_REENTRANT"
21995             pthread_lib="-lpthread"
21996             ;;
21997     esac
21998     if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
21999         # Save the original compiler flags and libraries
22000         ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
22001         # Add the pthread compiler flags and libraries
22002         CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
22003         # Check to see if we have pthread support on this system
22004         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
22005 $as_echo_n "checking for pthreads... " >&6; }
22006         use_pthreads=no
22007         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22008 /* end confdefs.h.  */
22009
22010          #include <pthread.h>
22011
22012 int
22013 main ()
22014 {
22015
22016          pthread_attr_t type;
22017          pthread_attr_init(&type);
22018
22019   ;
22020   return 0;
22021 }
22022 _ACEOF
22023 if ac_fn_c_try_link "$LINENO"; then :
22024
22025         use_pthreads=yes
22026
22027 fi
22028 rm -f core conftest.err conftest.$ac_objext \
22029     conftest$ac_exeext conftest.$ac_ext
22030         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
22031 $as_echo "$use_pthreads" >&6; }
22032         # Restore the compiler flags and libraries
22033         CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
22034
22035         # Do futher testing if we have pthread support...
22036         if test x$use_pthreads = xyes; then
22037
22038 $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
22039
22040             EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
22041             EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
22042             SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
22043
22044             # Save the original compiler flags and libraries
22045             ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
22046             # Add the pthread compiler flags and libraries
22047             CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
22048
22049             # Check to see if recursive mutexes are available
22050             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
22051 $as_echo_n "checking for recursive mutexes... " >&6; }
22052             has_recursive_mutexes=no
22053             if test x$has_recursive_mutexes = xno; then
22054                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22055 /* end confdefs.h.  */
22056
22057                   #define _GNU_SOURCE 1
22058                   #include <pthread.h>
22059
22060 int
22061 main ()
22062 {
22063
22064                   pthread_mutexattr_t attr;
22065                   pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
22066
22067   ;
22068   return 0;
22069 }
22070 _ACEOF
22071 if ac_fn_c_try_link "$LINENO"; then :
22072
22073                 has_recursive_mutexes=yes
22074
22075 $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
22076
22077
22078 fi
22079 rm -f core conftest.err conftest.$ac_objext \
22080     conftest$ac_exeext conftest.$ac_ext
22081             fi
22082             if test x$has_recursive_mutexes = xno; then
22083                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22084 /* end confdefs.h.  */
22085
22086                   #define _GNU_SOURCE 1
22087                   #include <pthread.h>
22088
22089 int
22090 main ()
22091 {
22092
22093                   pthread_mutexattr_t attr;
22094                   pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
22095
22096   ;
22097   return 0;
22098 }
22099 _ACEOF
22100 if ac_fn_c_try_link "$LINENO"; then :
22101
22102                 has_recursive_mutexes=yes
22103
22104 $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
22105
22106
22107 fi
22108 rm -f core conftest.err conftest.$ac_objext \
22109     conftest$ac_exeext conftest.$ac_ext
22110             fi
22111             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
22112 $as_echo "$has_recursive_mutexes" >&6; }
22113
22114             # Check to see if pthread semaphore support is missing
22115             if test x$enable_pthread_sem = xyes; then
22116                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
22117 $as_echo_n "checking for pthread semaphores... " >&6; }
22118                 have_pthread_sem=no
22119                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22120 /* end confdefs.h.  */
22121
22122                   #include <pthread.h>
22123                   #include <semaphore.h>
22124
22125 int
22126 main ()
22127 {
22128
22129
22130   ;
22131   return 0;
22132 }
22133 _ACEOF
22134 if ac_fn_c_try_compile "$LINENO"; then :
22135
22136                 have_pthread_sem=yes
22137
22138 fi
22139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22140                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
22141 $as_echo "$have_pthread_sem" >&6; }
22142             fi
22143             if test x$have_pthread_sem = xyes; then
22144                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
22145 $as_echo_n "checking for sem_timedwait... " >&6; }
22146                 have_sem_timedwait=no
22147                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22148 /* end confdefs.h.  */
22149
22150                   #include <pthread.h>
22151                   #include <semaphore.h>
22152
22153 int
22154 main ()
22155 {
22156
22157                   sem_timedwait(NULL, NULL);
22158
22159   ;
22160   return 0;
22161 }
22162 _ACEOF
22163 if ac_fn_c_try_link "$LINENO"; then :
22164
22165                 have_sem_timedwait=yes
22166                 $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
22167
22168
22169 fi
22170 rm -f core conftest.err conftest.$ac_objext \
22171     conftest$ac_exeext conftest.$ac_ext
22172                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
22173 $as_echo "$have_sem_timedwait" >&6; }
22174             fi
22175
22176             ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
22177 "
22178 if test "x$ac_cv_header_pthread_np_h" = xyes; then :
22179   have_pthread_np_h=yes
22180 else
22181   have_pthread_np_h=no
22182 fi
22183
22184
22185             if test x$have_pthread_np_h = xyes; then
22186
22187 $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
22188
22189             fi
22190
22191             # Check to see if pthread naming is available
22192             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
22193 $as_echo_n "checking for pthread_setname_np... " >&6; }
22194             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22195 /* end confdefs.h.  */
22196
22197 /* Override any GCC internal prototype to avoid an error.
22198    Use char because int might match the return type of a GCC
22199    builtin and then its argument prototype would still apply.  */
22200 #ifdef __cplusplus
22201 extern "C"
22202 #endif
22203 char pthread_setname_np ();
22204 int
22205 main ()
22206 {
22207 return pthread_setname_np ();
22208   ;
22209   return 0;
22210 }
22211 _ACEOF
22212 if ac_fn_c_try_link "$LINENO"; then :
22213
22214               has_pthread_setname_np=yes
22215
22216 $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
22217
22218
22219 else
22220
22221               has_pthread_setname_np=no
22222
22223 fi
22224 rm -f core conftest.err conftest.$ac_objext \
22225     conftest$ac_exeext conftest.$ac_ext
22226             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
22227 $as_echo "$has_pthread_setname_np" >&6; }
22228
22229             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
22230 $as_echo_n "checking for pthread_set_name_np... " >&6; }
22231             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22232 /* end confdefs.h.  */
22233
22234 /* Override any GCC internal prototype to avoid an error.
22235    Use char because int might match the return type of a GCC
22236    builtin and then its argument prototype would still apply.  */
22237 #ifdef __cplusplus
22238 extern "C"
22239 #endif
22240 char pthread_set_name_np ();
22241 int
22242 main ()
22243 {
22244 return pthread_set_name_np ();
22245   ;
22246   return 0;
22247 }
22248 _ACEOF
22249 if ac_fn_c_try_link "$LINENO"; then :
22250
22251               has_pthread_set_name_np=yes
22252
22253 $as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
22254
22255
22256 else
22257
22258               has_pthread_set_name_np=no
22259
22260 fi
22261 rm -f core conftest.err conftest.$ac_objext \
22262     conftest$ac_exeext conftest.$ac_ext
22263             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
22264 $as_echo "$has_pthread_set_name_np" >&6; }
22265
22266             # Restore the compiler flags and libraries
22267             CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
22268
22269             # Basic thread creation functions
22270             SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
22271
22272             # Semaphores
22273             # We can fake these with mutexes and condition variables if necessary
22274             if test x$have_pthread_sem = xyes; then
22275                 SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
22276             else
22277                 SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
22278             fi
22279
22280             # Mutexes
22281             # We can fake these with semaphores if necessary
22282             SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
22283
22284             # Condition variables
22285             # We can fake these with semaphores and mutexes if necessary
22286             SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
22287
22288             # Thread local storage
22289             SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
22290
22291             have_threads=yes
22292         fi
22293     fi
22294 }
22295
22296 CheckWINDOWS()
22297 {
22298     { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
22299 $as_echo_n "checking Windows compiler... " >&6; }
22300     have_win32_gcc=no
22301     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22302 /* end confdefs.h.  */
22303
22304      #include <windows.h>
22305
22306 int
22307 main ()
22308 {
22309
22310
22311   ;
22312   return 0;
22313 }
22314 _ACEOF
22315 if ac_fn_c_try_compile "$LINENO"; then :
22316
22317     have_win32_gcc=yes
22318
22319 fi
22320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22321     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
22322 $as_echo "$have_win32_gcc" >&6; }
22323     if test x$have_win32_gcc != xyes; then
22324        as_fn_error $? "
22325 *** Your compiler ($CC) does not produce Windows executables!
22326        " "$LINENO" 5
22327     fi
22328
22329     { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
22330 $as_echo_n "checking Windows CE... " >&6; }
22331     have_wince=no
22332     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22333 /* end confdefs.h.  */
22334
22335 #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
22336 #error This is not Windows CE
22337 #endif
22338
22339 int
22340 main ()
22341 {
22342
22343
22344   ;
22345   return 0;
22346 }
22347 _ACEOF
22348 if ac_fn_c_try_compile "$LINENO"; then :
22349
22350     have_wince=yes
22351        as_fn_error $? "
22352 *** Sorry, Windows CE is no longer supported.
22353        " "$LINENO" 5
22354
22355 fi
22356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22357     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
22358 $as_echo "$have_wince" >&6; }
22359
22360     # This fixes Windows stack alignment with newer GCC
22361     CheckStackBoundary
22362 }
22363
22364 CheckDIRECTX()
22365 {
22366     # Check whether --enable-directx was given.
22367 if test "${enable_directx+set}" = set; then :
22368   enableval=$enable_directx;
22369 else
22370   enable_directx=yes
22371 fi
22372
22373     if test x$enable_directx = xyes; then
22374         ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
22375 if test "x$ac_cv_header_d3d9_h" = xyes; then :
22376   have_d3d=yes
22377 fi
22378
22379
22380         ac_fn_c_check_header_mongrel "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
22381 if test "x$ac_cv_header_d3d11_1_h" = xyes; then :
22382   have_d3d11=yes
22383 fi
22384
22385
22386         ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
22387 if test "x$ac_cv_header_ddraw_h" = xyes; then :
22388   have_ddraw=yes
22389 fi
22390
22391
22392         ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
22393 if test "x$ac_cv_header_dsound_h" = xyes; then :
22394   have_dsound=yes
22395 fi
22396
22397
22398         ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
22399 if test "x$ac_cv_header_dinput_h" = xyes; then :
22400   have_dinput=yes
22401 fi
22402
22403
22404         ac_fn_c_check_header_mongrel "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
22405 if test "x$ac_cv_header_dxgi_h" = xyes; then :
22406   have_dxgi=yes
22407 fi
22408
22409
22410         ac_fn_c_check_header_mongrel "$LINENO" "xaudio2.h" "ac_cv_header_xaudio2_h" "$ac_includes_default"
22411 if test "x$ac_cv_header_xaudio2_h" = xyes; then :
22412   have_xaudio2=yes
22413 fi
22414
22415
22416         ac_fn_c_check_header_mongrel "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
22417 if test "x$ac_cv_header_xinput_h" = xyes; then :
22418   have_xinput=yes
22419 fi
22420
22421
22422
22423         if test x$have_ddraw = xyes; then
22424
22425 $as_echo "#define HAVE_DDRAW_H 1" >>confdefs.h
22426
22427         fi
22428         if test x$have_dinput = xyes; then
22429
22430 $as_echo "#define HAVE_DINPUT_H 1" >>confdefs.h
22431
22432         fi
22433         if test x$have_dsound = xyes; then
22434
22435 $as_echo "#define HAVE_DSOUND_H 1" >>confdefs.h
22436
22437         fi
22438         if test x$have_dxgi = xyes; then
22439
22440 $as_echo "#define HAVE_DXGI_H 1" >>confdefs.h
22441
22442         fi
22443         if test x$have_xinput = xyes; then
22444
22445 $as_echo "#define HAVE_XINPUT_H 1" >>confdefs.h
22446
22447         fi
22448
22449         SUMMARY_video="${SUMMARY_video} directx"
22450         SUMMARY_audio="${SUMMARY_audio} directx"
22451
22452         # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
22453         # FIXME:  ...so force it off for now.
22454         case "$host" in
22455             *-*-cygwin*)
22456             have_dinput=false
22457             ;;
22458         esac
22459     fi
22460 }
22461
22462 CheckDLOPEN()
22463 {
22464     # Check whether --enable-sdl-dlopen was given.
22465 if test "${enable_sdl_dlopen+set}" = set; then :
22466   enableval=$enable_sdl_dlopen;
22467 else
22468   enable_sdl_dlopen=yes
22469 fi
22470
22471     if test x$enable_sdl_dlopen = xyes; then
22472         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
22473 $as_echo_n "checking for dlopen... " >&6; }
22474         have_dlopen=no
22475         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22476 /* end confdefs.h.  */
22477
22478          #include <dlfcn.h>
22479
22480 int
22481 main ()
22482 {
22483
22484          void *handle = dlopen("", RTLD_NOW);
22485          const char *loaderror = (char *) dlerror();
22486
22487   ;
22488   return 0;
22489 }
22490 _ACEOF
22491 if ac_fn_c_try_compile "$LINENO"; then :
22492
22493         have_dlopen=yes
22494
22495 fi
22496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22497         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
22498 $as_echo "$have_dlopen" >&6; }
22499
22500         if test x$have_dlopen = xyes; then
22501             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
22502 $as_echo_n "checking for dlopen in -lc... " >&6; }
22503 if ${ac_cv_lib_c_dlopen+:} false; then :
22504   $as_echo_n "(cached) " >&6
22505 else
22506   ac_check_lib_save_LIBS=$LIBS
22507 LIBS="-lc  $LIBS"
22508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22509 /* end confdefs.h.  */
22510
22511 /* Override any GCC internal prototype to avoid an error.
22512    Use char because int might match the return type of a GCC
22513    builtin and then its argument prototype would still apply.  */
22514 #ifdef __cplusplus
22515 extern "C"
22516 #endif
22517 char dlopen ();
22518 int
22519 main ()
22520 {
22521 return dlopen ();
22522   ;
22523   return 0;
22524 }
22525 _ACEOF
22526 if ac_fn_c_try_link "$LINENO"; then :
22527   ac_cv_lib_c_dlopen=yes
22528 else
22529   ac_cv_lib_c_dlopen=no
22530 fi
22531 rm -f core conftest.err conftest.$ac_objext \
22532     conftest$ac_exeext conftest.$ac_ext
22533 LIBS=$ac_check_lib_save_LIBS
22534 fi
22535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
22536 $as_echo "$ac_cv_lib_c_dlopen" >&6; }
22537 if test "x$ac_cv_lib_c_dlopen" = xyes; then :
22538   EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
22539 else
22540   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
22541 $as_echo_n "checking for dlopen in -ldl... " >&6; }
22542 if ${ac_cv_lib_dl_dlopen+:} false; then :
22543   $as_echo_n "(cached) " >&6
22544 else
22545   ac_check_lib_save_LIBS=$LIBS
22546 LIBS="-ldl  $LIBS"
22547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22548 /* end confdefs.h.  */
22549
22550 /* Override any GCC internal prototype to avoid an error.
22551    Use char because int might match the return type of a GCC
22552    builtin and then its argument prototype would still apply.  */
22553 #ifdef __cplusplus
22554 extern "C"
22555 #endif
22556 char dlopen ();
22557 int
22558 main ()
22559 {
22560 return dlopen ();
22561   ;
22562   return 0;
22563 }
22564 _ACEOF
22565 if ac_fn_c_try_link "$LINENO"; then :
22566   ac_cv_lib_dl_dlopen=yes
22567 else
22568   ac_cv_lib_dl_dlopen=no
22569 fi
22570 rm -f core conftest.err conftest.$ac_objext \
22571     conftest$ac_exeext conftest.$ac_ext
22572 LIBS=$ac_check_lib_save_LIBS
22573 fi
22574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
22575 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22576 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
22577   EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
22578 else
22579   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lltdl" >&5
22580 $as_echo_n "checking for dlopen in -lltdl... " >&6; }
22581 if ${ac_cv_lib_ltdl_dlopen+:} false; then :
22582   $as_echo_n "(cached) " >&6
22583 else
22584   ac_check_lib_save_LIBS=$LIBS
22585 LIBS="-lltdl  $LIBS"
22586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22587 /* end confdefs.h.  */
22588
22589 /* Override any GCC internal prototype to avoid an error.
22590    Use char because int might match the return type of a GCC
22591    builtin and then its argument prototype would still apply.  */
22592 #ifdef __cplusplus
22593 extern "C"
22594 #endif
22595 char dlopen ();
22596 int
22597 main ()
22598 {
22599 return dlopen ();
22600   ;
22601   return 0;
22602 }
22603 _ACEOF
22604 if ac_fn_c_try_link "$LINENO"; then :
22605   ac_cv_lib_ltdl_dlopen=yes
22606 else
22607   ac_cv_lib_ltdl_dlopen=no
22608 fi
22609 rm -f core conftest.err conftest.$ac_objext \
22610     conftest$ac_exeext conftest.$ac_ext
22611 LIBS=$ac_check_lib_save_LIBS
22612 fi
22613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_dlopen" >&5
22614 $as_echo "$ac_cv_lib_ltdl_dlopen" >&6; }
22615 if test "x$ac_cv_lib_ltdl_dlopen" = xyes; then :
22616   EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lltdl"
22617 fi
22618
22619 fi
22620
22621 fi
22622
22623
22624 $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
22625
22626             SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
22627             have_loadso=yes
22628         fi
22629     fi
22630 }
22631
22632 CheckUSBHID()
22633 {
22634     case "$host" in
22635         *-*-*bsd*)
22636             if test x$enable_joystick = xyes; then
22637                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
22638 $as_echo_n "checking for hid_init in -lusbhid... " >&6; }
22639 if ${ac_cv_lib_usbhid_hid_init+:} false; then :
22640   $as_echo_n "(cached) " >&6
22641 else
22642   ac_check_lib_save_LIBS=$LIBS
22643 LIBS="-lusbhid  $LIBS"
22644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22645 /* end confdefs.h.  */
22646
22647 /* Override any GCC internal prototype to avoid an error.
22648    Use char because int might match the return type of a GCC
22649    builtin and then its argument prototype would still apply.  */
22650 #ifdef __cplusplus
22651 extern "C"
22652 #endif
22653 char hid_init ();
22654 int
22655 main ()
22656 {
22657 return hid_init ();
22658   ;
22659   return 0;
22660 }
22661 _ACEOF
22662 if ac_fn_c_try_link "$LINENO"; then :
22663   ac_cv_lib_usbhid_hid_init=yes
22664 else
22665   ac_cv_lib_usbhid_hid_init=no
22666 fi
22667 rm -f core conftest.err conftest.$ac_objext \
22668     conftest$ac_exeext conftest.$ac_ext
22669 LIBS=$ac_check_lib_save_LIBS
22670 fi
22671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
22672 $as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
22673 if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then :
22674   have_libusbhid=yes
22675 fi
22676
22677                 if test x$have_libusbhid = xyes; then
22678                     ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
22679 if test "x$ac_cv_header_usbhid_h" = xyes; then :
22680   USB_CFLAGS="-DHAVE_USBHID_H"
22681 fi
22682
22683
22684                     ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
22685 if test "x$ac_cv_header_libusbhid_h" = xyes; then :
22686   USB_CFLAGS="-DHAVE_LIBUSBHID_H"
22687 fi
22688
22689
22690                     USB_LIBS="$USB_LIBS -lusbhid"
22691                 else
22692                     ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
22693 if test "x$ac_cv_header_usb_h" = xyes; then :
22694   USB_CFLAGS="-DHAVE_USB_H"
22695 fi
22696
22697
22698                     ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
22699 if test "x$ac_cv_header_libusb_h" = xyes; then :
22700   USB_CFLAGS="-DHAVE_LIBUSB_H"
22701 fi
22702
22703
22704                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
22705 $as_echo_n "checking for hid_init in -lusb... " >&6; }
22706 if ${ac_cv_lib_usb_hid_init+:} false; then :
22707   $as_echo_n "(cached) " >&6
22708 else
22709   ac_check_lib_save_LIBS=$LIBS
22710 LIBS="-lusb  $LIBS"
22711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22712 /* end confdefs.h.  */
22713
22714 /* Override any GCC internal prototype to avoid an error.
22715    Use char because int might match the return type of a GCC
22716    builtin and then its argument prototype would still apply.  */
22717 #ifdef __cplusplus
22718 extern "C"
22719 #endif
22720 char hid_init ();
22721 int
22722 main ()
22723 {
22724 return hid_init ();
22725   ;
22726   return 0;
22727 }
22728 _ACEOF
22729 if ac_fn_c_try_link "$LINENO"; then :
22730   ac_cv_lib_usb_hid_init=yes
22731 else
22732   ac_cv_lib_usb_hid_init=no
22733 fi
22734 rm -f core conftest.err conftest.$ac_objext \
22735     conftest$ac_exeext conftest.$ac_ext
22736 LIBS=$ac_check_lib_save_LIBS
22737 fi
22738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
22739 $as_echo "$ac_cv_lib_usb_hid_init" >&6; }
22740 if test "x$ac_cv_lib_usb_hid_init" = xyes; then :
22741   USB_LIBS="$USB_LIBS -lusb"
22742 fi
22743
22744                 fi
22745
22746                 save_CFLAGS="$CFLAGS"
22747                 CFLAGS="$CFLAGS $USB_CFLAGS"
22748
22749                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
22750 $as_echo_n "checking for usbhid... " >&6; }
22751                 have_usbhid=no
22752                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22753 /* end confdefs.h.  */
22754
22755                   #include <sys/types.h>
22756                   #if defined(HAVE_USB_H)
22757                   #include <usb.h>
22758                   #endif
22759                   #ifdef __DragonFly__
22760                   # include <bus/usb/usb.h>
22761                   # include <bus/usb/usbhid.h>
22762                   #else
22763                   # include <dev/usb/usb.h>
22764                   # include <dev/usb/usbhid.h>
22765                   #endif
22766                   #if defined(HAVE_USBHID_H)
22767                   #include <usbhid.h>
22768                   #elif defined(HAVE_LIBUSB_H)
22769                   #include <libusb.h>
22770                   #elif defined(HAVE_LIBUSBHID_H)
22771                   #include <libusbhid.h>
22772                   #endif
22773
22774 int
22775 main ()
22776 {
22777
22778                   struct report_desc *repdesc;
22779                   struct usb_ctl_report *repbuf;
22780                   hid_kind_t hidkind;
22781
22782   ;
22783   return 0;
22784 }
22785 _ACEOF
22786 if ac_fn_c_try_compile "$LINENO"; then :
22787
22788                 have_usbhid=yes
22789
22790 fi
22791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22792                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
22793 $as_echo "$have_usbhid" >&6; }
22794
22795                 if test x$have_usbhid = xyes; then
22796                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
22797 $as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
22798                     have_usbhid_ucr_data=no
22799                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22800 /* end confdefs.h.  */
22801
22802                       #include <sys/types.h>
22803                       #if defined(HAVE_USB_H)
22804                       #include <usb.h>
22805                       #endif
22806                       #ifdef __DragonFly__
22807                       # include <bus/usb/usb.h>
22808                       # include <bus/usb/usbhid.h>
22809                       #else
22810                       # include <dev/usb/usb.h>
22811                       # include <dev/usb/usbhid.h>
22812                       #endif
22813                       #if defined(HAVE_USBHID_H)
22814                       #include <usbhid.h>
22815                       #elif defined(HAVE_LIBUSB_H)
22816                       #include <libusb.h>
22817                       #elif defined(HAVE_LIBUSBHID_H)
22818                       #include <libusbhid.h>
22819                       #endif
22820
22821 int
22822 main ()
22823 {
22824
22825                       struct usb_ctl_report buf;
22826                       if (buf.ucr_data) { }
22827
22828   ;
22829   return 0;
22830 }
22831 _ACEOF
22832 if ac_fn_c_try_compile "$LINENO"; then :
22833
22834                     have_usbhid_ucr_data=yes
22835
22836 fi
22837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22838                     if test x$have_usbhid_ucr_data = xyes; then
22839                         USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
22840                     fi
22841                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
22842 $as_echo "$have_usbhid_ucr_data" >&6; }
22843
22844                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
22845 $as_echo_n "checking for new usbhid API... " >&6; }
22846                     have_usbhid_new=no
22847                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22848 /* end confdefs.h.  */
22849
22850                       #include <sys/types.h>
22851                       #if defined(HAVE_USB_H)
22852                       #include <usb.h>
22853                       #endif
22854                       #ifdef __DragonFly__
22855                       #include <bus/usb/usb.h>
22856                       #include <bus/usb/usbhid.h>
22857                       #else
22858                       #include <dev/usb/usb.h>
22859                       #include <dev/usb/usbhid.h>
22860                       #endif
22861                       #if defined(HAVE_USBHID_H)
22862                       #include <usbhid.h>
22863                       #elif defined(HAVE_LIBUSB_H)
22864                       #include <libusb.h>
22865                       #elif defined(HAVE_LIBUSBHID_H)
22866                       #include <libusbhid.h>
22867                       #endif
22868
22869 int
22870 main ()
22871 {
22872
22873                       report_desc_t d;
22874                       hid_start_parse(d, 1, 1);
22875
22876   ;
22877   return 0;
22878 }
22879 _ACEOF
22880 if ac_fn_c_try_compile "$LINENO"; then :
22881
22882                     have_usbhid_new=yes
22883
22884 fi
22885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22886                     if test x$have_usbhid_new = xyes; then
22887                         USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
22888                     fi
22889                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
22890 $as_echo "$have_usbhid_new" >&6; }
22891
22892                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
22893 $as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; }
22894                     have_machine_joystick=no
22895                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22896 /* end confdefs.h.  */
22897
22898                       #include <machine/joystick.h>
22899
22900 int
22901 main ()
22902 {
22903
22904                       struct joystick t;
22905
22906   ;
22907   return 0;
22908 }
22909 _ACEOF
22910 if ac_fn_c_try_compile "$LINENO"; then :
22911
22912                     have_machine_joystick=yes
22913
22914 fi
22915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22916                     if test x$have_machine_joystick = xyes; then
22917
22918 $as_echo "#define SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H 1" >>confdefs.h
22919
22920                     fi
22921                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
22922 $as_echo "$have_machine_joystick" >&6; }
22923
22924
22925 $as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
22926
22927                     SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
22928                     EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
22929                     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
22930                     have_joystick=yes
22931                 fi
22932                 CFLAGS="$save_CFLAGS"
22933             fi
22934         ;;
22935     esac
22936 }
22937
22938 CheckClockGettime()
22939 {
22940     # Check whether --enable-clock_gettime was given.
22941 if test "${enable_clock_gettime+set}" = set; then :
22942   enableval=$enable_clock_gettime;
22943 else
22944   enable_clock_gettime=yes
22945 fi
22946
22947     if test x$enable_clock_gettime = xyes; then
22948         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
22949 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
22950 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
22951   $as_echo_n "(cached) " >&6
22952 else
22953   ac_check_lib_save_LIBS=$LIBS
22954 LIBS="-lrt  $LIBS"
22955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22956 /* end confdefs.h.  */
22957
22958 /* Override any GCC internal prototype to avoid an error.
22959    Use char because int might match the return type of a GCC
22960    builtin and then its argument prototype would still apply.  */
22961 #ifdef __cplusplus
22962 extern "C"
22963 #endif
22964 char clock_gettime ();
22965 int
22966 main ()
22967 {
22968 return clock_gettime ();
22969   ;
22970   return 0;
22971 }
22972 _ACEOF
22973 if ac_fn_c_try_link "$LINENO"; then :
22974   ac_cv_lib_rt_clock_gettime=yes
22975 else
22976   ac_cv_lib_rt_clock_gettime=no
22977 fi
22978 rm -f core conftest.err conftest.$ac_objext \
22979     conftest$ac_exeext conftest.$ac_ext
22980 LIBS=$ac_check_lib_save_LIBS
22981 fi
22982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
22983 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
22984 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
22985   have_clock_gettime=yes
22986 fi
22987
22988         if test x$have_clock_gettime = xyes; then
22989
22990 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
22991
22992             EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
22993         else
22994             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
22995 $as_echo_n "checking for clock_gettime in -lc... " >&6; }
22996 if ${ac_cv_lib_c_clock_gettime+:} false; then :
22997   $as_echo_n "(cached) " >&6
22998 else
22999   ac_check_lib_save_LIBS=$LIBS
23000 LIBS="-lc  $LIBS"
23001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23002 /* end confdefs.h.  */
23003
23004 /* Override any GCC internal prototype to avoid an error.
23005    Use char because int might match the return type of a GCC
23006    builtin and then its argument prototype would still apply.  */
23007 #ifdef __cplusplus
23008 extern "C"
23009 #endif
23010 char clock_gettime ();
23011 int
23012 main ()
23013 {
23014 return clock_gettime ();
23015   ;
23016   return 0;
23017 }
23018 _ACEOF
23019 if ac_fn_c_try_link "$LINENO"; then :
23020   ac_cv_lib_c_clock_gettime=yes
23021 else
23022   ac_cv_lib_c_clock_gettime=no
23023 fi
23024 rm -f core conftest.err conftest.$ac_objext \
23025     conftest$ac_exeext conftest.$ac_ext
23026 LIBS=$ac_check_lib_save_LIBS
23027 fi
23028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
23029 $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
23030 if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
23031   have_clock_gettime=yes
23032 fi
23033
23034             if test x$have_clock_gettime = xyes; then
23035
23036 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
23037
23038                EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
23039             fi
23040         fi
23041     fi
23042 }
23043
23044 CheckLinuxVersion()
23045 {
23046     ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
23047 if test "x$ac_cv_header_linux_version_h" = xyes; then :
23048   have_linux_version_h=yes
23049 fi
23050
23051
23052     if test x$have_linux_version_h = xyes; then
23053         EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
23054     fi
23055 }
23056
23057 CheckRPATH()
23058 {
23059     # Check whether --enable-rpath was given.
23060 if test "${enable_rpath+set}" = set; then :
23061   enableval=$enable_rpath;
23062 else
23063   enable_rpath=yes
23064 fi
23065
23066 }
23067
23068 case "$host" in
23069     *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*)
23070         case "$host" in
23071             *-raspberry-linux*)
23072                 # Raspberry Pi
23073                 ARCH=linux
23074                 RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
23075                 CFLAGS="$CFLAGS $RPI_CFLAGS"
23076                 SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
23077                 EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
23078                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L/opt/vc/lib -lbcm_host -ldl"
23079
23080                 if test x$enable_video = xyes; then
23081                     SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
23082                     # FIXME: confdefs? Not AC_DEFINE?
23083                     $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
23084                     SUMMARY_video="${SUMMARY_video} rpi"
23085                 fi
23086                 ;;
23087             *-*-androideabi*)
23088                 # Android
23089                 ARCH=android
23090                 ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
23091                 CFLAGS="$CFLAGS $ANDROID_CFLAGS"
23092                 SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
23093                 EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
23094                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
23095
23096                 if test x$enable_video = xyes; then
23097                     SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
23098                     # FIXME: confdefs? Not AC_DEFINE?
23099                     $as_echo "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
23100                     SUMMARY_video="${SUMMARY_video} android"
23101                 fi
23102                 ;;
23103             *-*-linux*)         ARCH=linux ;;
23104             *-*-uclinux*)       ARCH=linux ;;
23105             *-*-kfreebsd*-gnu)  ARCH=kfreebsd-gnu ;;
23106             *-*-knetbsd*-gnu)   ARCH=knetbsd-gnu ;;
23107             *-*-kopenbsd*-gnu)  ARCH=kopenbsd-gnu ;;
23108             *-*-gnu*)           ARCH=gnu ;; # must be last of the gnu variants
23109             *-*-bsdi*)          ARCH=bsdi ;;
23110             *-*-freebsd*)       ARCH=freebsd ;;
23111             *-*-dragonfly*)     ARCH=freebsd ;;
23112             *-raspberry-netbsd*)
23113                 # Raspberry Pi
23114                 ARCH=netbsd
23115                 RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
23116                 CFLAGS="$CFLAGS $RPI_CFLAGS"
23117                 SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
23118                 EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
23119                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host -ldl"
23120
23121                 if test x$enable_video = xyes; then
23122                     SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
23123                     $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
23124                     SUMMARY_video="${SUMMARY_video} raspberry"
23125                 fi
23126                 ;;
23127             *-*-netbsd*)        ARCH=netbsd ;;
23128             *-*-openbsd*)       ARCH=openbsd ;;
23129             *-*-sysv5*)         ARCH=sysv5 ;;
23130             *-*-solaris*)       ARCH=solaris ;;
23131             *-*-hpux*)          ARCH=hpux ;;
23132             *-*-aix*)           ARCH=aix ;;
23133             *-*-minix*)         ARCH=minix ;;
23134         esac
23135         CheckVisibilityHidden
23136         CheckDummyVideo
23137         CheckDiskAudio
23138         CheckDummyAudio
23139         CheckDLOPEN
23140         CheckOSS
23141         CheckALSA
23142         CheckPulseAudio
23143         CheckARTSC
23144         CheckESD
23145         CheckNAS
23146         CheckSNDIO
23147         CheckX11
23148         CheckDirectFB
23149         CheckFusionSound
23150         CheckOpenGLX11
23151         CheckOpenGLESX11
23152         CheckVulkanTizen
23153         CheckMir
23154         CheckWayland
23155         CheckTizen
23156         CheckLibUDev
23157         CheckDBus
23158         CheckIBus
23159         case $ARCH in
23160           linux)
23161               CheckInputEvents
23162               CheckInputKD
23163           ;;
23164         esac
23165         CheckTslib
23166         CheckUSBHID
23167         CheckPTHREAD
23168         CheckClockGettime
23169         CheckLinuxVersion
23170         CheckRPATH
23171         CheckVivanteVideo
23172         # Set up files for the audio library
23173         if test x$enable_audio = xyes; then
23174           case $ARCH in
23175             sysv5|solaris|hpux)
23176
23177 $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
23178
23179                 SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
23180                 have_audio=yes
23181             ;;
23182             netbsd)  # Don't use this on OpenBSD, it's busted.
23183
23184 $as_echo "#define SDL_AUDIO_DRIVER_BSD 1" >>confdefs.h
23185
23186                 SOURCES="$SOURCES $srcdir/src/audio/bsd/*.c"
23187                 have_audio=yes
23188             ;;
23189             aix)
23190
23191 $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
23192
23193                 SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
23194                 have_audio=yes
23195             ;;
23196             android)
23197
23198 $as_echo "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
23199
23200                 SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
23201                 SUMMARY_audio="${SUMMARY_audio} android"
23202                 have_audio=yes
23203             ;;
23204           esac
23205         fi
23206         # Set up files for the joystick library
23207         if test x$have_joystick != xyes; then
23208             if test x$enable_joystick = xyes; then
23209               case $ARCH in
23210                 linux)
23211
23212 $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
23213
23214                     SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
23215                     have_joystick=yes
23216                 ;;
23217                 android)
23218
23219 $as_echo "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
23220
23221                     SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
23222                     have_joystick=yes
23223                 ;;
23224               esac
23225             fi
23226         fi
23227         # Set up files for the haptic library
23228         if test x$enable_haptic = xyes; then
23229            if test x$use_input_events = xyes; then
23230              case $ARCH in
23231                linux)
23232
23233 $as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
23234
23235                    SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
23236                    have_haptic=yes
23237                ;;
23238              esac
23239            fi
23240         fi
23241         # Set up files for the power library
23242         if test x$enable_power = xyes; then
23243              case $ARCH in
23244                linux)
23245
23246 $as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h
23247
23248                    SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
23249                    have_power=yes
23250                ;;
23251                android)
23252
23253 $as_echo "#define SDL_POWER_ANDROID 1" >>confdefs.h
23254
23255                    SOURCES="$SOURCES $srcdir/src/power/android/*.c"
23256                    have_power=yes
23257                ;;
23258              esac
23259         fi
23260         # Set up files for the filesystem library
23261         if test x$enable_filesystem = xyes; then
23262              case $ARCH in
23263                android)
23264
23265 $as_echo "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
23266
23267                    SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
23268                    have_filesystem=yes
23269                ;;
23270                *)
23271
23272 $as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
23273
23274                    SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
23275                    have_filesystem=yes
23276                ;;
23277              esac
23278         fi
23279         # Set up files for the timer library
23280         if test x$enable_timers = xyes; then
23281
23282 $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
23283
23284             SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
23285             have_timers=yes
23286         fi
23287         # Set up files for udev hotplugging support
23288         if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
23289             SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
23290         fi
23291         # Set up files for evdev input
23292         if test x$use_input_events = xyes; then
23293             SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
23294         fi
23295         ;;
23296     *-*-cygwin* | *-*-mingw32*)
23297         ARCH=win32
23298         if test "$build" != "$host"; then # cross-compiling
23299             # Default cross-compile location
23300             ac_default_prefix=/usr/local/cross-tools/$host
23301         else
23302             # Look for the location of the tools and install there
23303             if test "$BUILD_PREFIX" != ""; then
23304                 ac_default_prefix=$BUILD_PREFIX
23305             fi
23306         fi
23307         CheckDummyVideo
23308         CheckDiskAudio
23309         CheckDummyAudio
23310         CheckWINDOWS
23311         CheckWINDOWSGL
23312         CheckWINDOWSGLES
23313         CheckDIRECTX
23314
23315         # Set up the core platform files
23316         SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
23317
23318         # Set up files for the video library
23319         if test x$enable_video = xyes; then
23320
23321 $as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
23322
23323             SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
23324             have_video=yes
23325             # Check whether --enable-render-d3d was given.
23326 if test "${enable_render_d3d+set}" = set; then :
23327   enableval=$enable_render_d3d;
23328 else
23329   enable_render_d3d=yes
23330 fi
23331
23332             if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
23333
23334 $as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
23335
23336             fi
23337             if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
23338
23339 $as_echo "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
23340
23341             fi
23342         fi
23343         # Set up files for the audio library
23344         if test x$enable_audio = xyes; then
23345
23346 $as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
23347
23348             SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
23349             if test x$have_dsound = xyes; then
23350
23351 $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
23352
23353                 SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
23354             fi
23355             if test x$have_xaudio2 = xyes; then
23356
23357 $as_echo "#define SDL_AUDIO_DRIVER_XAUDIO2 1" >>confdefs.h
23358
23359                 SOURCES="$SOURCES $srcdir/src/audio/xaudio2/*.c"
23360             fi
23361             have_audio=yes
23362         fi
23363         # Set up files for the joystick library
23364         if test x$enable_joystick = xyes; then
23365             if test x$have_dinput = xyes -o x$have_xinput = xyes; then
23366                 if test x$have_xinput = xyes; then
23367
23368 $as_echo "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
23369
23370                 fi
23371                 if test x$have_dinput = xyes; then
23372
23373 $as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
23374
23375                     EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
23376                 fi
23377             else
23378
23379 $as_echo "#define SDL_JOYSTICK_WINMM 1" >>confdefs.h
23380
23381             fi
23382             SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
23383             have_joystick=yes
23384         fi
23385         if test x$enable_haptic = xyes; then
23386             if test x$have_dinput = xyes -o x$have_xinput = xyes; then
23387                 if test x$have_xinput = xyes; then
23388
23389 $as_echo "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
23390
23391                 fi
23392                 if test x$have_dinput = xyes; then
23393
23394 $as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
23395
23396                 fi
23397                 SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
23398                 have_haptic=yes
23399             fi
23400         fi
23401         if test x$enable_power = xyes; then
23402
23403 $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
23404
23405             SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
23406             have_power=yes
23407         fi
23408         if test x$enable_filesystem = xyes; then
23409
23410 $as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
23411
23412             SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
23413             have_filesystem=yes
23414         fi
23415         # Set up files for the thread library
23416         if test x$enable_threads = xyes; then
23417
23418 $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
23419
23420             SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
23421             SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
23422             have_threads=yes
23423         fi
23424         # Set up files for the timer library
23425         if test x$enable_timers = xyes; then
23426
23427 $as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
23428
23429             SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
23430             have_timers=yes
23431         fi
23432         # Set up files for the shared object loading library
23433         if test x$enable_loadso = xyes; then
23434
23435 $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
23436
23437             SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
23438             have_loadso=yes
23439         fi
23440         # Set up the system libraries we need
23441         if test -f /lib/w32api/libuuid.a; then
23442             LIBUUID=/lib/w32api/libuuid.a
23443         else
23444             LIBUUID=-luuid
23445         fi
23446         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lversion $LIBUUID -static-libgcc"
23447         # The Windows platform requires special setup
23448         VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
23449         SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
23450         SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
23451         SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
23452
23453         # Check to see if this is a mingw or cygwin build
23454         have_mingw32=
23455         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
23456 $as_echo_n "checking for main in -lmingw32... " >&6; }
23457 if ${ac_cv_lib_mingw32_main+:} false; then :
23458   $as_echo_n "(cached) " >&6
23459 else
23460   ac_check_lib_save_LIBS=$LIBS
23461 LIBS="-lmingw32  $LIBS"
23462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23463 /* end confdefs.h.  */
23464
23465
23466 int
23467 main ()
23468 {
23469 return main ();
23470   ;
23471   return 0;
23472 }
23473 _ACEOF
23474 if ac_fn_c_try_link "$LINENO"; then :
23475   ac_cv_lib_mingw32_main=yes
23476 else
23477   ac_cv_lib_mingw32_main=no
23478 fi
23479 rm -f core conftest.err conftest.$ac_objext \
23480     conftest$ac_exeext conftest.$ac_ext
23481 LIBS=$ac_check_lib_save_LIBS
23482 fi
23483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
23484 $as_echo "$ac_cv_lib_mingw32_main" >&6; }
23485 if test "x$ac_cv_lib_mingw32_main" = xyes; then :
23486   have_mingw32=yes
23487 fi
23488
23489         if test x$have_mingw32 = xyes; then
23490             SDL_LIBS="-lmingw32 $SDL_LIBS"
23491         else
23492             SDL_LIBS="-lcygwin $SDL_LIBS"
23493         fi
23494         ;;
23495
23496         *-*-beos*)
23497         as_fn_error $? "
23498 *** BeOS support has been removed as of SDL 2.0.2.
23499         " "$LINENO" 5
23500         ;;
23501
23502     *-*-haiku*)
23503         ARCH=haiku
23504         ac_default_prefix=/boot/system
23505         CheckDummyVideo
23506         CheckDiskAudio
23507         CheckDummyAudio
23508         CheckHaikuVideo
23509         CheckHaikuGL
23510         CheckPTHREAD
23511
23512         # Set up files for the audio library
23513         if test x$enable_audio = xyes; then
23514
23515 $as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
23516
23517             SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
23518             have_audio=yes
23519         fi
23520         # Set up files for the joystick library
23521         if test x$enable_joystick = xyes; then
23522
23523 $as_echo "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
23524
23525             SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
23526             have_joystick=yes
23527         fi
23528         # Set up files for the timer library
23529         if test x$enable_timers = xyes; then
23530
23531 $as_echo "#define SDL_TIMER_HAIKU 1" >>confdefs.h
23532
23533             SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
23534             have_timers=yes
23535         fi
23536         # Set up files for the shared object loading library
23537         if test x$enable_loadso = xyes; then
23538
23539 $as_echo "#define SDL_LOADSO_HAIKU 1" >>confdefs.h
23540
23541             SOURCES="$SOURCES $srcdir/src/loadso/haiku/*.c"
23542             have_loadso=yes
23543         fi
23544         # Set up files for the system power library
23545         if test x$enable_power = xyes; then
23546
23547 $as_echo "#define SDL_POWER_HAIKU 1" >>confdefs.h
23548
23549             SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
23550             have_power=yes
23551         fi
23552         # Set up files for the system filesystem library
23553         if test x$enable_filesystem = xyes; then
23554
23555 $as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
23556
23557             SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
23558             have_filesystem=yes
23559         fi
23560         # The Haiku platform requires special setup.
23561         SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
23562         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
23563         ;;
23564     arm*-apple-darwin*)
23565         # iOS - We are not writing anything to confdefs.h because you have to replace
23566         # SDL_config.h for SDL_config_iphoneos.h anyway
23567         ARCH=ios
23568
23569         CheckVisibilityHidden
23570         CheckDummyVideo
23571         CheckDiskAudio
23572         CheckDummyAudio
23573         CheckDLOPEN
23574         CheckCOCOA
23575         CheckPTHREAD
23576
23577
23578         # Set up files for the audio library
23579         if test x$enable_audio = xyes; then
23580             SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.c"
23581             SUMMARY_audio="${SUMMARY_audio} coreaudio"
23582             have_audio=yes
23583         fi
23584         # Set up files for the joystick library
23585         if test x$enable_joystick = xyes; then
23586             SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
23587             have_joystick=yes
23588         fi
23589         # Set up files for the haptic library
23590         #if test x$enable_haptic = xyes; then
23591         #    SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
23592         #    have_haptic=yes
23593         #    EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
23594         #fi
23595         # Set up files for the power library
23596         if test x$enable_power = xyes; then
23597             SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
23598             have_power=yes
23599         fi
23600         # Set up files for the filesystem library
23601         if test x$enable_filesystem = xyes; then
23602             SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
23603             have_filesystem=yes
23604         fi
23605         # Set up files for the timer library
23606         if test x$enable_timers = xyes; then
23607             SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
23608             have_timers=yes
23609         fi
23610         # Set up additional files for the file library
23611         if test x$enable_file = xyes; then
23612             SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
23613         fi
23614         # The iOS platform requires special setup.
23615         SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
23616         EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings"
23617         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
23618         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
23619         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
23620         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
23621         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
23622         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
23623         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
23624         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
23625         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
23626         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
23627         ;;
23628     *-*-darwin* )
23629         # This could be either full "Mac OS X", or plain "Darwin" which is
23630         # just the OS X kernel sans upper layers like Carbon and Cocoa.
23631         # Next line is broken, and a few files below require Mac OS X (full)
23632         ARCH=macosx
23633
23634         # Mac OS X builds with both the Carbon and OSX APIs at the moment
23635         EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
23636         EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
23637
23638         CheckVisibilityHidden
23639         CheckDummyVideo
23640         CheckDiskAudio
23641         CheckDummyAudio
23642         CheckDLOPEN
23643         CheckCOCOA
23644         CheckX11
23645         CheckMacGL
23646         CheckOpenGLX11
23647         CheckPTHREAD
23648
23649         # Set up files for the audio library
23650         if test x$enable_audio = xyes; then
23651
23652 $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
23653
23654             SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.c"
23655             SUMMARY_audio="${SUMMARY_audio} coreaudio"
23656             have_audio=yes
23657         fi
23658         # Set up files for the joystick library
23659         if test x$enable_joystick = xyes; then
23660
23661 $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
23662
23663             SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
23664             have_joystick=yes
23665         fi
23666         # Set up files for the haptic library
23667         if test x$enable_haptic = xyes; then
23668
23669 $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
23670
23671             SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
23672             have_haptic=yes
23673             EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
23674         fi
23675         # Set up files for the power library
23676         if test x$enable_power = xyes; then
23677
23678 $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
23679
23680             SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
23681             have_power=yes
23682         fi
23683         # Set up files for the filesystem library
23684         if test x$enable_filesystem = xyes; then
23685
23686 $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
23687
23688             SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
23689             have_filesystem=yes
23690         fi
23691         # Set up files for the timer library
23692         if test x$enable_timers = xyes; then
23693
23694 $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
23695
23696             SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
23697             have_timers=yes
23698         fi
23699         # Set up additional files for the file library
23700         if test x$enable_file = xyes; then
23701             SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
23702         fi
23703         # The Mac OS X platform requires special setup.
23704         EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings"
23705         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
23706         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
23707         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
23708         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
23709         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
23710         # If audio is used, add the AudioUnit framework
23711         if test x$enable_audio = xyes; then
23712             EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit"
23713         fi
23714         ;;
23715     *-nacl|*-pnacl)
23716         ARCH=nacl
23717         CheckNativeClient
23718         CheckDummyAudio
23719         CheckDummyVideo
23720         CheckInputEvents
23721         CheckPTHREAD
23722
23723         # Set up files for the timer library
23724         if test x$enable_timers = xyes; then
23725             $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
23726
23727             SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
23728             have_timers=yes
23729         fi
23730
23731         if test x$enable_filesystem = xyes; then
23732
23733 $as_echo "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
23734
23735             SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
23736             have_filesystem=yes
23737         fi
23738         ;;
23739     *-*-emscripten* )
23740         if test x$enable_video = xyes; then
23741
23742 $as_echo "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
23743
23744             SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
23745             have_video=yes
23746             SUMMARY_video="${SUMMARY_video} emscripten"
23747         fi
23748
23749         if test x$enable_audio = xyes; then
23750
23751 $as_echo "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
23752
23753             SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
23754             have_audio=yes
23755             SUMMARY_audio="${SUMMARY_audio} emscripten"
23756         fi
23757
23758         CheckVisibilityHidden
23759         CheckDummyVideo
23760         CheckDiskAudio
23761         CheckDummyAudio
23762         CheckDLOPEN
23763         CheckClockGettime
23764         CheckEmscriptenGLES
23765
23766          # Set up files for the power library
23767         if test x$enable_power = xyes; then
23768
23769 $as_echo "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
23770
23771             SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
23772             have_power=yes
23773         fi
23774
23775         # Set up files for the power library
23776         if test x$enable_joystick = xyes; then
23777
23778 $as_echo "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
23779
23780             SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
23781             have_joystick=yes
23782         fi
23783
23784         # Set up files for the filesystem library
23785         if test x$enable_filesystem = xyes; then
23786
23787 $as_echo "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
23788
23789             SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
23790             have_filesystem=yes
23791         fi
23792         # Set up files for the timer library
23793         if test x$enable_timers = xyes; then
23794
23795 $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
23796
23797             SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
23798             have_timers=yes
23799         fi
23800         ;;
23801     *)
23802         as_fn_error $? "
23803 *** Unsupported host:  Please add to configure.in
23804         " "$LINENO" 5
23805         ;;
23806 esac
23807
23808 CheckWarnAll
23809
23810 # Verify that we have all the platform specific files we need
23811
23812 if test x$have_joystick != xyes; then
23813     if test x$enable_joystick = xyes; then
23814
23815 $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
23816
23817     fi
23818     SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
23819 fi
23820 if test x$have_haptic != xyes; then
23821     if test x$enable_haptic = xyes; then
23822
23823 $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
23824
23825     fi
23826     SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
23827 fi
23828 if test x$have_threads != xyes; then
23829     if test x$enable_threads = xyes; then
23830
23831 $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
23832
23833     fi
23834     SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
23835 fi
23836 if test x$have_timers != xyes; then
23837     if test x$enable_timers = xyes; then
23838
23839 $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
23840
23841     fi
23842     SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
23843 fi
23844 if test x$have_filesystem != xyes; then
23845     if test x$enable_filesystem = xyes; then
23846
23847 $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
23848
23849     fi
23850     SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
23851 fi
23852 if test x$have_loadso != xyes; then
23853     if test x$enable_loadso = xyes; then
23854
23855 $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
23856
23857     fi
23858     SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
23859 fi
23860 if test x$SDLMAIN_SOURCES = x; then
23861     SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
23862 fi
23863 SDLTEST_SOURCES="$srcdir/src/test/*.c"
23864
23865 OBJECTS=`echo $SOURCES`
23866 DEPENDS=`echo $SOURCES | tr ' ' '\n'`
23867 for EXT in asm cc m c S; do
23868     OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
23869     DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
23870 \\$(objects)/\\2.lo: \\1/\\2.$EXT\\\\
23871         \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
23872 done
23873
23874 VERSION_OBJECTS=`echo $VERSION_SOURCES`
23875 VERSION_DEPENDS=`echo $VERSION_SOURCES`
23876 VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.o,g'`
23877 VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
23878 \\$(objects)/\\2.o: \\1/\\2.rc\\\\
23879         \\$(WINDRES) \\$< \\$@,g"`
23880
23881 SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
23882 SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
23883 SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.o,g'`
23884 SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
23885 \\$(objects)/\\2.o: \\1/\\2.c\\\\
23886         \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
23887
23888 SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
23889 SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
23890 SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.o,g'`
23891 SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
23892 \\$(objects)/\\2.o: \\1/\\2.c\\\\
23893         \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
23894
23895 # Set runtime shared library paths as needed
23896
23897 if test "x$enable_rpath" = "xyes"; then
23898   if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
23899     SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
23900   fi
23901   if test $ARCH = solaris; then
23902     SDL_RLD_FLAGS="-R\${libdir}"
23903   fi
23904 else
23905   SDL_RLD_FLAGS=""
23906 fi
23907
23908 SDL_STATIC_LIBS="$SDL_LIBS $EXTRA_LDFLAGS"
23909
23910
23911
23912
23913
23914 if test x$enable_shared = xyes; then
23915     ENABLE_SHARED_TRUE=
23916     ENABLE_SHARED_FALSE="#"
23917 else
23918     ENABLE_SHARED_TRUE="#"
23919     ENABLE_SHARED_FALSE=
23920 fi
23921 if test x$enable_static = xyes; then
23922     ENABLE_STATIC_TRUE=
23923     ENABLE_STATIC_FALSE="#"
23924 else
23925     ENABLE_STATIC_TRUE="#"
23926     ENABLE_STATIC_FALSE=
23927 fi
23928
23929
23930
23931
23932
23933
23934
23935
23936
23937
23938
23939
23940
23941
23942
23943
23944
23945 cat >Makefile.rules <<__EOF__
23946
23947 # Build rules for objects
23948 -include \$(OBJECTS:.lo=.d)
23949
23950 # Special dependency for SDL.c, since it depends on SDL_revision.h
23951 $srcdir/src/SDL.c: update-revision
23952 $DEPENDS
23953 $VERSION_DEPENDS
23954 $SDLMAIN_DEPENDS
23955 $SDLTEST_DEPENDS
23956 __EOF__
23957
23958 ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake SDL2.spec sdl2.pc"
23959
23960 ac_config_commands="$ac_config_commands sdl2_config"
23961
23962
23963 SUMMARY="${SUMMARY}SDL2 Configure Summary:\n"
23964 if test x$enable_shared = xyes; then
23965     SUMMARY="${SUMMARY}Building Shared Libraries\n"
23966 fi
23967 if test x$enable_static = xyes; then
23968     SUMMARY="${SUMMARY}Building Static Libraries\n"
23969 fi
23970 SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
23971 SUMMARY="${SUMMARY}Assembly Math   :${SUMMARY_math}\n"
23972 SUMMARY="${SUMMARY}Audio drivers   :${SUMMARY_audio}\n"
23973 SUMMARY="${SUMMARY}Video drivers   :${SUMMARY_video}\n"
23974 if test x$have_x = xyes; then
23975     SUMMARY="${SUMMARY}X11 libraries   :${SUMMARY_video_x11}\n"
23976 fi
23977 SUMMARY="${SUMMARY}Input drivers   :${SUMMARY_input}\n"
23978 if test x$enable_libudev = xyes; then
23979     SUMMARY="${SUMMARY}Using libudev   : YES\n"
23980 else
23981     SUMMARY="${SUMMARY}Using libudev   : NO\n"
23982 fi
23983 if test x$have_dbus_dbus_h_hdr = xyes; then
23984     SUMMARY="${SUMMARY}Using dbus      : YES\n"
23985 else
23986     SUMMARY="${SUMMARY}Using dbus      : NO\n"
23987 fi
23988 if test x$have_ibus_ibus_h_hdr = xyes; then
23989     SUMMARY="${SUMMARY}Using ibus      : YES\n"
23990 else
23991     SUMMARY="${SUMMARY}Using ibus      : NO\n"
23992 fi
23993 ac_config_commands="$ac_config_commands summary"
23994
23995
23996 cat >confcache <<\_ACEOF
23997 # This file is a shell script that caches the results of configure
23998 # tests run on this system so they can be shared between configure
23999 # scripts and configure runs, see configure's option --config-cache.
24000 # It is not useful on other systems.  If it contains results you don't
24001 # want to keep, you may remove or edit it.
24002 #
24003 # config.status only pays attention to the cache file if you give it
24004 # the --recheck option to rerun configure.
24005 #
24006 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24007 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24008 # following values.
24009
24010 _ACEOF
24011
24012 # The following way of writing the cache mishandles newlines in values,
24013 # but we know of no workaround that is simple, portable, and efficient.
24014 # So, we kill variables containing newlines.
24015 # Ultrix sh set writes to stderr and can't be redirected directly,
24016 # and sets the high bit in the cache file unless we assign to the vars.
24017 (
24018   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24019     eval ac_val=\$$ac_var
24020     case $ac_val in #(
24021     *${as_nl}*)
24022       case $ac_var in #(
24023       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24024 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24025       esac
24026       case $ac_var in #(
24027       _ | IFS | as_nl) ;; #(
24028       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24029       *) { eval $ac_var=; unset $ac_var;} ;;
24030       esac ;;
24031     esac
24032   done
24033
24034   (set) 2>&1 |
24035     case $as_nl`(ac_space=' '; set) 2>&1` in #(
24036     *${as_nl}ac_space=\ *)
24037       # `set' does not quote correctly, so add quotes: double-quote
24038       # substitution turns \\\\ into \\, and sed turns \\ into \.
24039       sed -n \
24040         "s/'/'\\\\''/g;
24041           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24042       ;; #(
24043     *)
24044       # `set' quotes correctly as required by POSIX, so do not add quotes.
24045       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24046       ;;
24047     esac |
24048     sort
24049 ) |
24050   sed '
24051      /^ac_cv_env_/b end
24052      t clear
24053      :clear
24054      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24055      t end
24056      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24057      :end' >>confcache
24058 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24059   if test -w "$cache_file"; then
24060     if test "x$cache_file" != "x/dev/null"; then
24061       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24062 $as_echo "$as_me: updating cache $cache_file" >&6;}
24063       if test ! -f "$cache_file" || test -h "$cache_file"; then
24064         cat confcache >"$cache_file"
24065       else
24066         case $cache_file in #(
24067         */* | ?:*)
24068           mv -f confcache "$cache_file"$$ &&
24069           mv -f "$cache_file"$$ "$cache_file" ;; #(
24070         *)
24071           mv -f confcache "$cache_file" ;;
24072         esac
24073       fi
24074     fi
24075   else
24076     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24077 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24078   fi
24079 fi
24080 rm -f confcache
24081
24082 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24083 # Let make expand exec_prefix.
24084 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24085
24086 DEFS=-DHAVE_CONFIG_H
24087
24088 ac_libobjs=
24089 ac_ltlibobjs=
24090 U=
24091 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24092   # 1. Remove the extension, and $U if already installed.
24093   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24094   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24095   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
24096   #    will be set to the directory where LIBOBJS objects are built.
24097   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24098   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
24099 done
24100 LIBOBJS=$ac_libobjs
24101
24102 LTLIBOBJS=$ac_ltlibobjs
24103
24104
24105
24106 : "${CONFIG_STATUS=./config.status}"
24107 ac_write_fail=0
24108 ac_clean_files_save=$ac_clean_files
24109 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24110 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
24111 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24112 as_write_fail=0
24113 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
24114 #! $SHELL
24115 # Generated by $as_me.
24116 # Run this file to recreate the current configuration.
24117 # Compiler output produced by configure, useful for debugging
24118 # configure, is in config.log if it exists.
24119
24120 debug=false
24121 ac_cs_recheck=false
24122 ac_cs_silent=false
24123
24124 SHELL=\${CONFIG_SHELL-$SHELL}
24125 export SHELL
24126 _ASEOF
24127 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
24128 ## -------------------- ##
24129 ## M4sh Initialization. ##
24130 ## -------------------- ##
24131
24132 # Be more Bourne compatible
24133 DUALCASE=1; export DUALCASE # for MKS sh
24134 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24135   emulate sh
24136   NULLCMD=:
24137   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24138   # is contrary to our usage.  Disable this feature.
24139   alias -g '${1+"$@"}'='"$@"'
24140   setopt NO_GLOB_SUBST
24141 else
24142   case `(set -o) 2>/dev/null` in #(
24143   *posix*) :
24144     set -o posix ;; #(
24145   *) :
24146      ;;
24147 esac
24148 fi
24149
24150
24151 as_nl='
24152 '
24153 export as_nl
24154 # Printing a long string crashes Solaris 7 /usr/bin/printf.
24155 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24156 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24157 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24158 # Prefer a ksh shell builtin over an external printf program on Solaris,
24159 # but without wasting forks for bash or zsh.
24160 if test -z "$BASH_VERSION$ZSH_VERSION" \
24161     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
24162   as_echo='print -r --'
24163   as_echo_n='print -rn --'
24164 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24165   as_echo='printf %s\n'
24166   as_echo_n='printf %s'
24167 else
24168   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24169     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
24170     as_echo_n='/usr/ucb/echo -n'
24171   else
24172     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24173     as_echo_n_body='eval
24174       arg=$1;
24175       case $arg in #(
24176       *"$as_nl"*)
24177         expr "X$arg" : "X\\(.*\\)$as_nl";
24178         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24179       esac;
24180       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
24181     '
24182     export as_echo_n_body
24183     as_echo_n='sh -c $as_echo_n_body as_echo'
24184   fi
24185   export as_echo_body
24186   as_echo='sh -c $as_echo_body as_echo'
24187 fi
24188
24189 # The user is always right.
24190 if test "${PATH_SEPARATOR+set}" != set; then
24191   PATH_SEPARATOR=:
24192   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24193     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24194       PATH_SEPARATOR=';'
24195   }
24196 fi
24197
24198
24199 # IFS
24200 # We need space, tab and new line, in precisely that order.  Quoting is
24201 # there to prevent editors from complaining about space-tab.
24202 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24203 # splitting by setting IFS to empty value.)
24204 IFS=" ""        $as_nl"
24205
24206 # Find who we are.  Look in the path if we contain no directory separator.
24207 as_myself=
24208 case $0 in #((
24209   *[\\/]* ) as_myself=$0 ;;
24210   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24211 for as_dir in $PATH
24212 do
24213   IFS=$as_save_IFS
24214   test -z "$as_dir" && as_dir=.
24215     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24216   done
24217 IFS=$as_save_IFS
24218
24219      ;;
24220 esac
24221 # We did not find ourselves, most probably we were run as `sh COMMAND'
24222 # in which case we are not to be found in the path.
24223 if test "x$as_myself" = x; then
24224   as_myself=$0
24225 fi
24226 if test ! -f "$as_myself"; then
24227   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24228   exit 1
24229 fi
24230
24231 # Unset variables that we do not need and which cause bugs (e.g. in
24232 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
24233 # suppresses any "Segmentation fault" message there.  '((' could
24234 # trigger a bug in pdksh 5.2.14.
24235 for as_var in BASH_ENV ENV MAIL MAILPATH
24236 do eval test x\${$as_var+set} = xset \
24237   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
24238 done
24239 PS1='$ '
24240 PS2='> '
24241 PS4='+ '
24242
24243 # NLS nuisances.
24244 LC_ALL=C
24245 export LC_ALL
24246 LANGUAGE=C
24247 export LANGUAGE
24248
24249 # CDPATH.
24250 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24251
24252
24253 # as_fn_error STATUS ERROR [LINENO LOG_FD]
24254 # ----------------------------------------
24255 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
24256 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
24257 # script with STATUS, using 1 if that was 0.
24258 as_fn_error ()
24259 {
24260   as_status=$1; test $as_status -eq 0 && as_status=1
24261   if test "$4"; then
24262     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
24263     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
24264   fi
24265   $as_echo "$as_me: error: $2" >&2
24266   as_fn_exit $as_status
24267 } # as_fn_error
24268
24269
24270 # as_fn_set_status STATUS
24271 # -----------------------
24272 # Set $? to STATUS, without forking.
24273 as_fn_set_status ()
24274 {
24275   return $1
24276 } # as_fn_set_status
24277
24278 # as_fn_exit STATUS
24279 # -----------------
24280 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
24281 as_fn_exit ()
24282 {
24283   set +e
24284   as_fn_set_status $1
24285   exit $1
24286 } # as_fn_exit
24287
24288 # as_fn_unset VAR
24289 # ---------------
24290 # Portably unset VAR.
24291 as_fn_unset ()
24292 {
24293   { eval $1=; unset $1;}
24294 }
24295 as_unset=as_fn_unset
24296 # as_fn_append VAR VALUE
24297 # ----------------------
24298 # Append the text in VALUE to the end of the definition contained in VAR. Take
24299 # advantage of any shell optimizations that allow amortized linear growth over
24300 # repeated appends, instead of the typical quadratic growth present in naive
24301 # implementations.
24302 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
24303   eval 'as_fn_append ()
24304   {
24305     eval $1+=\$2
24306   }'
24307 else
24308   as_fn_append ()
24309   {
24310     eval $1=\$$1\$2
24311   }
24312 fi # as_fn_append
24313
24314 # as_fn_arith ARG...
24315 # ------------------
24316 # Perform arithmetic evaluation on the ARGs, and store the result in the
24317 # global $as_val. Take advantage of shells that can avoid forks. The arguments
24318 # must be portable across $(()) and expr.
24319 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
24320   eval 'as_fn_arith ()
24321   {
24322     as_val=$(( $* ))
24323   }'
24324 else
24325   as_fn_arith ()
24326   {
24327     as_val=`expr "$@" || test $? -eq 1`
24328   }
24329 fi # as_fn_arith
24330
24331
24332 if expr a : '\(a\)' >/dev/null 2>&1 &&
24333    test "X`expr 00001 : '.*\(...\)'`" = X001; then
24334   as_expr=expr
24335 else
24336   as_expr=false
24337 fi
24338
24339 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24340   as_basename=basename
24341 else
24342   as_basename=false
24343 fi
24344
24345 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24346   as_dirname=dirname
24347 else
24348   as_dirname=false
24349 fi
24350
24351 as_me=`$as_basename -- "$0" ||
24352 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24353          X"$0" : 'X\(//\)$' \| \
24354          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24355 $as_echo X/"$0" |
24356     sed '/^.*\/\([^/][^/]*\)\/*$/{
24357             s//\1/
24358             q
24359           }
24360           /^X\/\(\/\/\)$/{
24361             s//\1/
24362             q
24363           }
24364           /^X\/\(\/\).*/{
24365             s//\1/
24366             q
24367           }
24368           s/.*/./; q'`
24369
24370 # Avoid depending upon Character Ranges.
24371 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24372 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24373 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24374 as_cr_digits='0123456789'
24375 as_cr_alnum=$as_cr_Letters$as_cr_digits
24376
24377 ECHO_C= ECHO_N= ECHO_T=
24378 case `echo -n x` in #(((((
24379 -n*)
24380   case `echo 'xy\c'` in
24381   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
24382   xy)  ECHO_C='\c';;
24383   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
24384        ECHO_T=' ';;
24385   esac;;
24386 *)
24387   ECHO_N='-n';;
24388 esac
24389
24390 rm -f conf$$ conf$$.exe conf$$.file
24391 if test -d conf$$.dir; then
24392   rm -f conf$$.dir/conf$$.file
24393 else
24394   rm -f conf$$.dir
24395   mkdir conf$$.dir 2>/dev/null
24396 fi
24397 if (echo >conf$$.file) 2>/dev/null; then
24398   if ln -s conf$$.file conf$$ 2>/dev/null; then
24399     as_ln_s='ln -s'
24400     # ... but there are two gotchas:
24401     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24402     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24403     # In both cases, we have to default to `cp -pR'.
24404     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24405       as_ln_s='cp -pR'
24406   elif ln conf$$.file conf$$ 2>/dev/null; then
24407     as_ln_s=ln
24408   else
24409     as_ln_s='cp -pR'
24410   fi
24411 else
24412   as_ln_s='cp -pR'
24413 fi
24414 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24415 rmdir conf$$.dir 2>/dev/null
24416
24417
24418 # as_fn_mkdir_p
24419 # -------------
24420 # Create "$as_dir" as a directory, including parents if necessary.
24421 as_fn_mkdir_p ()
24422 {
24423
24424   case $as_dir in #(
24425   -*) as_dir=./$as_dir;;
24426   esac
24427   test -d "$as_dir" || eval $as_mkdir_p || {
24428     as_dirs=
24429     while :; do
24430       case $as_dir in #(
24431       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24432       *) as_qdir=$as_dir;;
24433       esac
24434       as_dirs="'$as_qdir' $as_dirs"
24435       as_dir=`$as_dirname -- "$as_dir" ||
24436 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24437          X"$as_dir" : 'X\(//\)[^/]' \| \
24438          X"$as_dir" : 'X\(//\)$' \| \
24439          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24440 $as_echo X"$as_dir" |
24441     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24442             s//\1/
24443             q
24444           }
24445           /^X\(\/\/\)[^/].*/{
24446             s//\1/
24447             q
24448           }
24449           /^X\(\/\/\)$/{
24450             s//\1/
24451             q
24452           }
24453           /^X\(\/\).*/{
24454             s//\1/
24455             q
24456           }
24457           s/.*/./; q'`
24458       test -d "$as_dir" && break
24459     done
24460     test -z "$as_dirs" || eval "mkdir $as_dirs"
24461   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
24462
24463
24464 } # as_fn_mkdir_p
24465 if mkdir -p . 2>/dev/null; then
24466   as_mkdir_p='mkdir -p "$as_dir"'
24467 else
24468   test -d ./-p && rmdir ./-p
24469   as_mkdir_p=false
24470 fi
24471
24472
24473 # as_fn_executable_p FILE
24474 # -----------------------
24475 # Test if FILE is an executable regular file.
24476 as_fn_executable_p ()
24477 {
24478   test -f "$1" && test -x "$1"
24479 } # as_fn_executable_p
24480 as_test_x='test -x'
24481 as_executable_p=as_fn_executable_p
24482
24483 # Sed expression to map a string onto a valid CPP name.
24484 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24485
24486 # Sed expression to map a string onto a valid variable name.
24487 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24488
24489
24490 exec 6>&1
24491 ## ----------------------------------- ##
24492 ## Main body of $CONFIG_STATUS script. ##
24493 ## ----------------------------------- ##
24494 _ASEOF
24495 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
24496
24497 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24498 # Save the log message, to keep $0 and so on meaningful, and to
24499 # report actual input values of CONFIG_FILES etc. instead of their
24500 # values after options handling.
24501 ac_log="
24502 This file was extended by $as_me, which was
24503 generated by GNU Autoconf 2.69.  Invocation command line was
24504
24505   CONFIG_FILES    = $CONFIG_FILES
24506   CONFIG_HEADERS  = $CONFIG_HEADERS
24507   CONFIG_LINKS    = $CONFIG_LINKS
24508   CONFIG_COMMANDS = $CONFIG_COMMANDS
24509   $ $0 $@
24510
24511 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24512 "
24513
24514 _ACEOF
24515
24516 case $ac_config_files in *"
24517 "*) set x $ac_config_files; shift; ac_config_files=$*;;
24518 esac
24519
24520 case $ac_config_headers in *"
24521 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
24522 esac
24523
24524
24525 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24526 # Files that config.status was made for.
24527 config_files="$ac_config_files"
24528 config_headers="$ac_config_headers"
24529 config_commands="$ac_config_commands"
24530
24531 _ACEOF
24532
24533 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24534 ac_cs_usage="\
24535 \`$as_me' instantiates files and other configuration actions
24536 from templates according to the current configuration.  Unless the files
24537 and actions are specified as TAGs, all are instantiated by default.
24538
24539 Usage: $0 [OPTION]... [TAG]...
24540
24541   -h, --help       print this help, then exit
24542   -V, --version    print version number and configuration settings, then exit
24543       --config     print configuration, then exit
24544   -q, --quiet, --silent
24545                    do not print progress messages
24546   -d, --debug      don't remove temporary files
24547       --recheck    update $as_me by reconfiguring in the same conditions
24548       --file=FILE[:TEMPLATE]
24549                    instantiate the configuration file FILE
24550       --header=FILE[:TEMPLATE]
24551                    instantiate the configuration header FILE
24552
24553 Configuration files:
24554 $config_files
24555
24556 Configuration headers:
24557 $config_headers
24558
24559 Configuration commands:
24560 $config_commands
24561
24562 Report bugs to the package provider."
24563
24564 _ACEOF
24565 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24566 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
24567 ac_cs_version="\\
24568 config.status
24569 configured by $0, generated by GNU Autoconf 2.69,
24570   with options \\"\$ac_cs_config\\"
24571
24572 Copyright (C) 2012 Free Software Foundation, Inc.
24573 This config.status script is free software; the Free Software Foundation
24574 gives unlimited permission to copy, distribute and modify it."
24575
24576 ac_pwd='$ac_pwd'
24577 srcdir='$srcdir'
24578 INSTALL='$INSTALL'
24579 AWK='$AWK'
24580 test -n "\$AWK" || AWK=awk
24581 _ACEOF
24582
24583 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24584 # The default lists apply if the user does not specify any file.
24585 ac_need_defaults=:
24586 while test $# != 0
24587 do
24588   case $1 in
24589   --*=?*)
24590     ac_option=`expr "X$1" : 'X\([^=]*\)='`
24591     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24592     ac_shift=:
24593     ;;
24594   --*=)
24595     ac_option=`expr "X$1" : 'X\([^=]*\)='`
24596     ac_optarg=
24597     ac_shift=:
24598     ;;
24599   *)
24600     ac_option=$1
24601     ac_optarg=$2
24602     ac_shift=shift
24603     ;;
24604   esac
24605
24606   case $ac_option in
24607   # Handling of the options.
24608   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24609     ac_cs_recheck=: ;;
24610   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24611     $as_echo "$ac_cs_version"; exit ;;
24612   --config | --confi | --conf | --con | --co | --c )
24613     $as_echo "$ac_cs_config"; exit ;;
24614   --debug | --debu | --deb | --de | --d | -d )
24615     debug=: ;;
24616   --file | --fil | --fi | --f )
24617     $ac_shift
24618     case $ac_optarg in
24619     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24620     '') as_fn_error $? "missing file argument" ;;
24621     esac
24622     as_fn_append CONFIG_FILES " '$ac_optarg'"
24623     ac_need_defaults=false;;
24624   --header | --heade | --head | --hea )
24625     $ac_shift
24626     case $ac_optarg in
24627     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24628     esac
24629     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
24630     ac_need_defaults=false;;
24631   --he | --h)
24632     # Conflict between --help and --header
24633     as_fn_error $? "ambiguous option: \`$1'
24634 Try \`$0 --help' for more information.";;
24635   --help | --hel | -h )
24636     $as_echo "$ac_cs_usage"; exit ;;
24637   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24638   | -silent | --silent | --silen | --sile | --sil | --si | --s)
24639     ac_cs_silent=: ;;
24640
24641   # This is an error.
24642   -*) as_fn_error $? "unrecognized option: \`$1'
24643 Try \`$0 --help' for more information." ;;
24644
24645   *) as_fn_append ac_config_targets " $1"
24646      ac_need_defaults=false ;;
24647
24648   esac
24649   shift
24650 done
24651
24652 ac_configure_extra_args=
24653
24654 if $ac_cs_silent; then
24655   exec 6>/dev/null
24656   ac_configure_extra_args="$ac_configure_extra_args --silent"
24657 fi
24658
24659 _ACEOF
24660 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24661 if \$ac_cs_recheck; then
24662   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24663   shift
24664   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
24665   CONFIG_SHELL='$SHELL'
24666   export CONFIG_SHELL
24667   exec "\$@"
24668 fi
24669
24670 _ACEOF
24671 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24672 exec 5>>config.log
24673 {
24674   echo
24675   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24676 ## Running $as_me. ##
24677 _ASBOX
24678   $as_echo "$ac_log"
24679 } >&5
24680
24681 _ACEOF
24682 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24683 #
24684 # INIT-COMMANDS
24685 #
24686
24687
24688 # The HP-UX ksh and POSIX shell print the target directory to stdout
24689 # if CDPATH is set.
24690 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24691
24692 sed_quote_subst='$sed_quote_subst'
24693 double_quote_subst='$double_quote_subst'
24694 delay_variable_subst='$delay_variable_subst'
24695 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
24696 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
24697 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
24698 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
24699 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
24700 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
24701 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
24702 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
24703 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
24704 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
24705 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
24706 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
24707 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
24708 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
24709 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
24710 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
24711 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
24712 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
24713 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
24714 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
24715 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
24716 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
24717 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
24718 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
24719 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
24720 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
24721 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
24722 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
24723 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
24724 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
24725 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
24726 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
24727 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
24728 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
24729 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
24730 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
24731 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
24732 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
24733 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
24734 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
24735 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
24736 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
24737 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
24738 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
24739 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
24740 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
24741 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
24742 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
24743 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
24744 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
24745 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
24746 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
24747 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
24748 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
24749 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
24750 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
24751 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
24752 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"`'
24753 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
24754 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
24755 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
24756 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
24757 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
24758 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
24759 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
24760 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
24761 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
24762 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
24763 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
24764 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
24765 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
24766 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
24767 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
24768 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
24769 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
24770 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
24771 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
24772 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
24773 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
24774 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
24775 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
24776 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
24777 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
24778 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
24779 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
24780 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
24781 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
24782 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
24783 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
24784 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
24785 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
24786 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
24787 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
24788 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
24789 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
24790 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
24791 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
24792 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
24793 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
24794 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
24795 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
24796 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
24797 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
24798 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
24799 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
24800 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
24801 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
24802 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
24803 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
24804 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
24805 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
24806 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
24807 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
24808 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
24809 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
24810 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
24811 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
24812 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
24813 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
24814 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
24815 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
24816 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
24817 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
24818 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
24819 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
24820 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
24821 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
24822 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
24823 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
24824 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
24825 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
24826 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
24827 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
24828 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
24829 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
24830 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
24831 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
24832 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
24833 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
24834 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24835 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24836 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
24837 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
24838 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
24839 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
24840 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
24841 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
24842 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
24843 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
24844 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
24845 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
24846 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
24847 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
24848 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24849 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24850 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24851 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24852 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24853 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24854 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
24855 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
24856 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
24857 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
24858 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
24859 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
24860 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
24861 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
24862 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
24863 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
24864 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
24865 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
24866 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
24867 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24868 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
24869 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
24870 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24871 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24872 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
24873 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
24874 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
24875 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
24876 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
24877 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
24878 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
24879 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
24880
24881 LTCC='$LTCC'
24882 LTCFLAGS='$LTCFLAGS'
24883 compiler='$compiler_DEFAULT'
24884
24885 # A function that is used when there is no print builtin or printf.
24886 func_fallback_echo ()
24887 {
24888   eval 'cat <<_LTECHO_EOF
24889 \$1
24890 _LTECHO_EOF'
24891 }
24892
24893 # Quote evaled strings.
24894 for var in AS \
24895 DLLTOOL \
24896 OBJDUMP \
24897 SHELL \
24898 ECHO \
24899 PATH_SEPARATOR \
24900 SED \
24901 GREP \
24902 EGREP \
24903 FGREP \
24904 LD \
24905 NM \
24906 LN_S \
24907 lt_SP2NL \
24908 lt_NL2SP \
24909 reload_flag \
24910 deplibs_check_method \
24911 file_magic_cmd \
24912 file_magic_glob \
24913 want_nocaseglob \
24914 sharedlib_from_linklib_cmd \
24915 AR \
24916 AR_FLAGS \
24917 archiver_list_spec \
24918 STRIP \
24919 RANLIB \
24920 CC \
24921 CFLAGS \
24922 compiler \
24923 lt_cv_sys_global_symbol_pipe \
24924 lt_cv_sys_global_symbol_to_cdecl \
24925 lt_cv_sys_global_symbol_to_c_name_address \
24926 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
24927 nm_file_list_spec \
24928 lt_prog_compiler_no_builtin_flag \
24929 lt_prog_compiler_pic \
24930 lt_prog_compiler_wl \
24931 lt_prog_compiler_static \
24932 lt_cv_prog_compiler_c_o \
24933 need_locks \
24934 MANIFEST_TOOL \
24935 DSYMUTIL \
24936 NMEDIT \
24937 LIPO \
24938 OTOOL \
24939 OTOOL64 \
24940 shrext_cmds \
24941 export_dynamic_flag_spec \
24942 whole_archive_flag_spec \
24943 compiler_needs_object \
24944 with_gnu_ld \
24945 allow_undefined_flag \
24946 no_undefined_flag \
24947 hardcode_libdir_flag_spec \
24948 hardcode_libdir_separator \
24949 exclude_expsyms \
24950 include_expsyms \
24951 file_list_spec \
24952 variables_saved_for_relink \
24953 libname_spec \
24954 library_names_spec \
24955 soname_spec \
24956 install_override_mode \
24957 finish_eval \
24958 old_striplib \
24959 striplib \
24960 compiler_lib_search_dirs \
24961 predep_objects \
24962 postdep_objects \
24963 predeps \
24964 postdeps \
24965 compiler_lib_search_path \
24966 LD_CXX \
24967 reload_flag_CXX \
24968 compiler_CXX \
24969 lt_prog_compiler_no_builtin_flag_CXX \
24970 lt_prog_compiler_pic_CXX \
24971 lt_prog_compiler_wl_CXX \
24972 lt_prog_compiler_static_CXX \
24973 lt_cv_prog_compiler_c_o_CXX \
24974 export_dynamic_flag_spec_CXX \
24975 whole_archive_flag_spec_CXX \
24976 compiler_needs_object_CXX \
24977 with_gnu_ld_CXX \
24978 allow_undefined_flag_CXX \
24979 no_undefined_flag_CXX \
24980 hardcode_libdir_flag_spec_CXX \
24981 hardcode_libdir_separator_CXX \
24982 exclude_expsyms_CXX \
24983 include_expsyms_CXX \
24984 file_list_spec_CXX \
24985 compiler_lib_search_dirs_CXX \
24986 predep_objects_CXX \
24987 postdep_objects_CXX \
24988 predeps_CXX \
24989 postdeps_CXX \
24990 compiler_lib_search_path_CXX; do
24991     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
24992     *[\\\\\\\`\\"\\\$]*)
24993       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
24994       ;;
24995     *)
24996       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24997       ;;
24998     esac
24999 done
25000
25001 # Double-quote double-evaled strings.
25002 for var in reload_cmds \
25003 old_postinstall_cmds \
25004 old_postuninstall_cmds \
25005 old_archive_cmds \
25006 extract_expsyms_cmds \
25007 old_archive_from_new_cmds \
25008 old_archive_from_expsyms_cmds \
25009 archive_cmds \
25010 archive_expsym_cmds \
25011 module_cmds \
25012 module_expsym_cmds \
25013 export_symbols_cmds \
25014 prelink_cmds \
25015 postlink_cmds \
25016 postinstall_cmds \
25017 postuninstall_cmds \
25018 finish_cmds \
25019 sys_lib_search_path_spec \
25020 sys_lib_dlsearch_path_spec \
25021 reload_cmds_CXX \
25022 old_archive_cmds_CXX \
25023 old_archive_from_new_cmds_CXX \
25024 old_archive_from_expsyms_cmds_CXX \
25025 archive_cmds_CXX \
25026 archive_expsym_cmds_CXX \
25027 module_cmds_CXX \
25028 module_expsym_cmds_CXX \
25029 export_symbols_cmds_CXX \
25030 prelink_cmds_CXX \
25031 postlink_cmds_CXX; do
25032     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
25033     *[\\\\\\\`\\"\\\$]*)
25034       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
25035       ;;
25036     *)
25037       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25038       ;;
25039     esac
25040 done
25041
25042 ac_aux_dir='$ac_aux_dir'
25043 xsi_shell='$xsi_shell'
25044 lt_shell_append='$lt_shell_append'
25045
25046 # See if we are running on zsh, and set the options which allow our
25047 # commands through without removal of \ escapes INIT.
25048 if test -n "\${ZSH_VERSION+set}" ; then
25049    setopt NO_GLOB_SUBST
25050 fi
25051
25052
25053     PACKAGE='$PACKAGE'
25054     VERSION='$VERSION'
25055     TIMESTAMP='$TIMESTAMP'
25056     RM='$RM'
25057     ofile='$ofile'
25058
25059
25060
25061
25062
25063 SUMMARY="$SUMMARY"
25064
25065 _ACEOF
25066
25067 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25068
25069 # Handling of arguments.
25070 for ac_config_target in $ac_config_targets
25071 do
25072   case $ac_config_target in
25073     "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
25074     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
25075     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
25076     "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
25077     "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
25078     "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
25079     "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
25080     "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
25081     "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
25082
25083   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
25084   esac
25085 done
25086
25087
25088 # If the user did not use the arguments to specify the items to instantiate,
25089 # then the envvar interface is used.  Set only those that are not.
25090 # We use the long form for the default assignment because of an extremely
25091 # bizarre bug on SunOS 4.1.3.
25092 if $ac_need_defaults; then
25093   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25094   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25095   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25096 fi
25097
25098 # Have a temporary directory for convenience.  Make it in the build tree
25099 # simply because there is no reason against having it here, and in addition,
25100 # creating and moving files from /tmp can sometimes cause problems.
25101 # Hook for its removal unless debugging.
25102 # Note that there is a small window in which the directory will not be cleaned:
25103 # after its creation but before its name has been assigned to `$tmp'.
25104 $debug ||
25105 {
25106   tmp= ac_tmp=
25107   trap 'exit_status=$?
25108   : "${ac_tmp:=$tmp}"
25109   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
25110 ' 0
25111   trap 'as_fn_exit 1' 1 2 13 15
25112 }
25113 # Create a (secure) tmp directory for tmp files.
25114
25115 {
25116   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25117   test -d "$tmp"
25118 }  ||
25119 {
25120   tmp=./conf$$-$RANDOM
25121   (umask 077 && mkdir "$tmp")
25122 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
25123 ac_tmp=$tmp
25124
25125 # Set up the scripts for CONFIG_FILES section.
25126 # No need to generate them if there are no CONFIG_FILES.
25127 # This happens for instance with `./config.status config.h'.
25128 if test -n "$CONFIG_FILES"; then
25129
25130
25131 ac_cr=`echo X | tr X '\015'`
25132 # On cygwin, bash can eat \r inside `` if the user requested igncr.
25133 # But we know of no other shell where ac_cr would be empty at this
25134 # point, so we can use a bashism as a fallback.
25135 if test "x$ac_cr" = x; then
25136   eval ac_cr=\$\'\\r\'
25137 fi
25138 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25139 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25140   ac_cs_awk_cr='\\r'
25141 else
25142   ac_cs_awk_cr=$ac_cr
25143 fi
25144
25145 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
25146 _ACEOF
25147
25148
25149 {
25150   echo "cat >conf$$subs.awk <<_ACEOF" &&
25151   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25152   echo "_ACEOF"
25153 } >conf$$subs.sh ||
25154   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25155 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
25156 ac_delim='%!_!# '
25157 for ac_last_try in false false false false false :; do
25158   . ./conf$$subs.sh ||
25159     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25160
25161   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
25162   if test $ac_delim_n = $ac_delim_num; then
25163     break
25164   elif $ac_last_try; then
25165     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25166   else
25167     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25168   fi
25169 done
25170 rm -f conf$$subs.sh
25171
25172 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25173 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
25174 _ACEOF
25175 sed -n '
25176 h
25177 s/^/S["/; s/!.*/"]=/
25178 p
25179 g
25180 s/^[^!]*!//
25181 :repl
25182 t repl
25183 s/'"$ac_delim"'$//
25184 t delim
25185 :nl
25186 h
25187 s/\(.\{148\}\)..*/\1/
25188 t more1
25189 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
25190 p
25191 n
25192 b repl
25193 :more1
25194 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25195 p
25196 g
25197 s/.\{148\}//
25198 t nl
25199 :delim
25200 h
25201 s/\(.\{148\}\)..*/\1/
25202 t more2
25203 s/["\\]/\\&/g; s/^/"/; s/$/"/
25204 p
25205 b
25206 :more2
25207 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25208 p
25209 g
25210 s/.\{148\}//
25211 t delim
25212 ' <conf$$subs.awk | sed '
25213 /^[^""]/{
25214   N
25215   s/\n//
25216 }
25217 ' >>$CONFIG_STATUS || ac_write_fail=1
25218 rm -f conf$$subs.awk
25219 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25220 _ACAWK
25221 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
25222   for (key in S) S_is_set[key] = 1
25223   FS = "\a"
25224
25225 }
25226 {
25227   line = $ 0
25228   nfields = split(line, field, "@")
25229   substed = 0
25230   len = length(field[1])
25231   for (i = 2; i < nfields; i++) {
25232     key = field[i]
25233     keylen = length(key)
25234     if (S_is_set[key]) {
25235       value = S[key]
25236       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25237       len += length(value) + length(field[++i])
25238       substed = 1
25239     } else
25240       len += 1 + keylen
25241   }
25242
25243   print line
25244 }
25245
25246 _ACAWK
25247 _ACEOF
25248 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25249 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
25250   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
25251 else
25252   cat
25253 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
25254   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
25255 _ACEOF
25256
25257 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
25258 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
25259 # trailing colons and then remove the whole line if VPATH becomes empty
25260 # (actually we leave an empty line to preserve line numbers).
25261 if test "x$srcdir" = x.; then
25262   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
25263 h
25264 s///
25265 s/^/:/
25266 s/[      ]*$/:/
25267 s/:\$(srcdir):/:/g
25268 s/:\${srcdir}:/:/g
25269 s/:@srcdir@:/:/g
25270 s/^:*//
25271 s/:*$//
25272 x
25273 s/\(=[   ]*\).*/\1/
25274 G
25275 s/\n//
25276 s/^[^=]*=[       ]*$//
25277 }'
25278 fi
25279
25280 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25281 fi # test -n "$CONFIG_FILES"
25282
25283 # Set up the scripts for CONFIG_HEADERS section.
25284 # No need to generate them if there are no CONFIG_HEADERS.
25285 # This happens for instance with `./config.status Makefile'.
25286 if test -n "$CONFIG_HEADERS"; then
25287 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
25288 BEGIN {
25289 _ACEOF
25290
25291 # Transform confdefs.h into an awk script `defines.awk', embedded as
25292 # here-document in config.status, that substitutes the proper values into
25293 # config.h.in to produce config.h.
25294
25295 # Create a delimiter string that does not exist in confdefs.h, to ease
25296 # handling of long lines.
25297 ac_delim='%!_!# '
25298 for ac_last_try in false false :; do
25299   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
25300   if test -z "$ac_tt"; then
25301     break
25302   elif $ac_last_try; then
25303     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
25304   else
25305     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25306   fi
25307 done
25308
25309 # For the awk script, D is an array of macro values keyed by name,
25310 # likewise P contains macro parameters if any.  Preserve backslash
25311 # newline sequences.
25312
25313 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25314 sed -n '
25315 s/.\{148\}/&'"$ac_delim"'/g
25316 t rset
25317 :rset
25318 s/^[     ]*#[    ]*define[       ][      ]*/ /
25319 t def
25320 d
25321 :def
25322 s/\\$//
25323 t bsnl
25324 s/["\\]/\\&/g
25325 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
25326 D["\1"]=" \3"/p
25327 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
25328 d
25329 :bsnl
25330 s/["\\]/\\&/g
25331 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
25332 D["\1"]=" \3\\\\\\n"\\/p
25333 t cont
25334 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
25335 t cont
25336 d
25337 :cont
25338 n
25339 s/.\{148\}/&'"$ac_delim"'/g
25340 t clear
25341 :clear
25342 s/\\$//
25343 t bsnlc
25344 s/["\\]/\\&/g; s/^/"/; s/$/"/p
25345 d
25346 :bsnlc
25347 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
25348 b cont
25349 ' <confdefs.h | sed '
25350 s/'"$ac_delim"'/"\\\
25351 "/g' >>$CONFIG_STATUS || ac_write_fail=1
25352
25353 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25354   for (key in D) D_is_set[key] = 1
25355   FS = "\a"
25356 }
25357 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
25358   line = \$ 0
25359   split(line, arg, " ")
25360   if (arg[1] == "#") {
25361     defundef = arg[2]
25362     mac1 = arg[3]
25363   } else {
25364     defundef = substr(arg[1], 2)
25365     mac1 = arg[2]
25366   }
25367   split(mac1, mac2, "(") #)
25368   macro = mac2[1]
25369   prefix = substr(line, 1, index(line, defundef) - 1)
25370   if (D_is_set[macro]) {
25371     # Preserve the white space surrounding the "#".
25372     print prefix "define", macro P[macro] D[macro]
25373     next
25374   } else {
25375     # Replace #undef with comments.  This is necessary, for example,
25376     # in the case of _POSIX_SOURCE, which is predefined and required
25377     # on some systems where configure will not decide to define it.
25378     if (defundef == "undef") {
25379       print "/*", prefix defundef, macro, "*/"
25380       next
25381     }
25382   }
25383 }
25384 { print }
25385 _ACAWK
25386 _ACEOF
25387 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25388   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
25389 fi # test -n "$CONFIG_HEADERS"
25390
25391
25392 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
25393 shift
25394 for ac_tag
25395 do
25396   case $ac_tag in
25397   :[FHLC]) ac_mode=$ac_tag; continue;;
25398   esac
25399   case $ac_mode$ac_tag in
25400   :[FHL]*:*);;
25401   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
25402   :[FH]-) ac_tag=-:-;;
25403   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25404   esac
25405   ac_save_IFS=$IFS
25406   IFS=:
25407   set x $ac_tag
25408   IFS=$ac_save_IFS
25409   shift
25410   ac_file=$1
25411   shift
25412
25413   case $ac_mode in
25414   :L) ac_source=$1;;
25415   :[FH])
25416     ac_file_inputs=
25417     for ac_f
25418     do
25419       case $ac_f in
25420       -) ac_f="$ac_tmp/stdin";;
25421       *) # Look for the file first in the build tree, then in the source tree
25422          # (if the path is not absolute).  The absolute path cannot be DOS-style,
25423          # because $ac_f cannot contain `:'.
25424          test -f "$ac_f" ||
25425            case $ac_f in
25426            [\\/$]*) false;;
25427            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25428            esac ||
25429            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
25430       esac
25431       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
25432       as_fn_append ac_file_inputs " '$ac_f'"
25433     done
25434
25435     # Let's still pretend it is `configure' which instantiates (i.e., don't
25436     # use $as_me), people would be surprised to read:
25437     #    /* config.h.  Generated by config.status.  */
25438     configure_input='Generated from '`
25439           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
25440         `' by configure.'
25441     if test x"$ac_file" != x-; then
25442       configure_input="$ac_file.  $configure_input"
25443       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
25444 $as_echo "$as_me: creating $ac_file" >&6;}
25445     fi
25446     # Neutralize special characters interpreted by sed in replacement strings.
25447     case $configure_input in #(
25448     *\&* | *\|* | *\\* )
25449        ac_sed_conf_input=`$as_echo "$configure_input" |
25450        sed 's/[\\\\&|]/\\\\&/g'`;; #(
25451     *) ac_sed_conf_input=$configure_input;;
25452     esac
25453
25454     case $ac_tag in
25455     *:-:* | *:-) cat >"$ac_tmp/stdin" \
25456       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
25457     esac
25458     ;;
25459   esac
25460
25461   ac_dir=`$as_dirname -- "$ac_file" ||
25462 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25463          X"$ac_file" : 'X\(//\)[^/]' \| \
25464          X"$ac_file" : 'X\(//\)$' \| \
25465          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25466 $as_echo X"$ac_file" |
25467     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25468             s//\1/
25469             q
25470           }
25471           /^X\(\/\/\)[^/].*/{
25472             s//\1/
25473             q
25474           }
25475           /^X\(\/\/\)$/{
25476             s//\1/
25477             q
25478           }
25479           /^X\(\/\).*/{
25480             s//\1/
25481             q
25482           }
25483           s/.*/./; q'`
25484   as_dir="$ac_dir"; as_fn_mkdir_p
25485   ac_builddir=.
25486
25487 case "$ac_dir" in
25488 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25489 *)
25490   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
25491   # A ".." for each directory in $ac_dir_suffix.
25492   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
25493   case $ac_top_builddir_sub in
25494   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25495   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25496   esac ;;
25497 esac
25498 ac_abs_top_builddir=$ac_pwd
25499 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25500 # for backward compatibility:
25501 ac_top_builddir=$ac_top_build_prefix
25502
25503 case $srcdir in
25504   .)  # We are building in place.
25505     ac_srcdir=.
25506     ac_top_srcdir=$ac_top_builddir_sub
25507     ac_abs_top_srcdir=$ac_pwd ;;
25508   [\\/]* | ?:[\\/]* )  # Absolute name.
25509     ac_srcdir=$srcdir$ac_dir_suffix;
25510     ac_top_srcdir=$srcdir
25511     ac_abs_top_srcdir=$srcdir ;;
25512   *) # Relative name.
25513     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25514     ac_top_srcdir=$ac_top_build_prefix$srcdir
25515     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25516 esac
25517 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25518
25519
25520   case $ac_mode in
25521   :F)
25522   #
25523   # CONFIG_FILE
25524   #
25525
25526   case $INSTALL in
25527   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25528   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25529   esac
25530 _ACEOF
25531
25532 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25533 # If the template does not know about datarootdir, expand it.
25534 # FIXME: This hack should be removed a few years after 2.60.
25535 ac_datarootdir_hack=; ac_datarootdir_seen=
25536 ac_sed_dataroot='
25537 /datarootdir/ {
25538   p
25539   q
25540 }
25541 /@datadir@/p
25542 /@docdir@/p
25543 /@infodir@/p
25544 /@localedir@/p
25545 /@mandir@/p'
25546 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
25547 *datarootdir*) ac_datarootdir_seen=yes;;
25548 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25549   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25550 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25551 _ACEOF
25552 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25553   ac_datarootdir_hack='
25554   s&@datadir@&$datadir&g
25555   s&@docdir@&$docdir&g
25556   s&@infodir@&$infodir&g
25557   s&@localedir@&$localedir&g
25558   s&@mandir@&$mandir&g
25559   s&\\\${datarootdir}&$datarootdir&g' ;;
25560 esac
25561 _ACEOF
25562
25563 # Neutralize VPATH when `$srcdir' = `.'.
25564 # Shell code in configure.ac might set extrasub.
25565 # FIXME: do we really want to maintain this feature?
25566 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25567 ac_sed_extra="$ac_vpsub
25568 $extrasub
25569 _ACEOF
25570 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25571 :t
25572 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25573 s|@configure_input@|$ac_sed_conf_input|;t t
25574 s&@top_builddir@&$ac_top_builddir_sub&;t t
25575 s&@top_build_prefix@&$ac_top_build_prefix&;t t
25576 s&@srcdir@&$ac_srcdir&;t t
25577 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25578 s&@top_srcdir@&$ac_top_srcdir&;t t
25579 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25580 s&@builddir@&$ac_builddir&;t t
25581 s&@abs_builddir@&$ac_abs_builddir&;t t
25582 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25583 s&@INSTALL@&$ac_INSTALL&;t t
25584 $ac_datarootdir_hack
25585 "
25586 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
25587   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25588
25589 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25590   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
25591   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
25592       "$ac_tmp/out"`; test -z "$ac_out"; } &&
25593   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25594 which seems to be undefined.  Please make sure it is defined" >&5
25595 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25596 which seems to be undefined.  Please make sure it is defined" >&2;}
25597
25598   rm -f "$ac_tmp/stdin"
25599   case $ac_file in
25600   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
25601   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
25602   esac \
25603   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25604  ;;
25605   :H)
25606   #
25607   # CONFIG_HEADER
25608   #
25609   if test x"$ac_file" != x-; then
25610     {
25611       $as_echo "/* $configure_input  */" \
25612       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
25613     } >"$ac_tmp/config.h" \
25614       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25615     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
25616       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
25617 $as_echo "$as_me: $ac_file is unchanged" >&6;}
25618     else
25619       rm -f "$ac_file"
25620       mv "$ac_tmp/config.h" "$ac_file" \
25621         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25622     fi
25623   else
25624     $as_echo "/* $configure_input  */" \
25625       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
25626       || as_fn_error $? "could not create -" "$LINENO" 5
25627   fi
25628  ;;
25629
25630   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
25631 $as_echo "$as_me: executing $ac_file commands" >&6;}
25632  ;;
25633   esac
25634
25635
25636   case $ac_file$ac_mode in
25637     "libtool":C)
25638
25639     # See if we are running on zsh, and set the options which allow our
25640     # commands through without removal of \ escapes.
25641     if test -n "${ZSH_VERSION+set}" ; then
25642       setopt NO_GLOB_SUBST
25643     fi
25644
25645     cfgfile="${ofile}T"
25646     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
25647     $RM "$cfgfile"
25648
25649     cat <<_LT_EOF >> "$cfgfile"
25650 #! $SHELL
25651
25652 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
25653 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
25654 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25655 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
25656 #
25657 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
25658 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
25659 #                 Foundation, Inc.
25660 #   Written by Gordon Matzigkeit, 1996
25661 #
25662 #   This file is part of GNU Libtool.
25663 #
25664 # GNU Libtool is free software; you can redistribute it and/or
25665 # modify it under the terms of the GNU General Public License as
25666 # published by the Free Software Foundation; either version 2 of
25667 # the License, or (at your option) any later version.
25668 #
25669 # As a special exception to the GNU General Public License,
25670 # if you distribute this file as part of a program or library that
25671 # is built using GNU Libtool, you may include this file under the
25672 # same distribution terms that you use for the rest of that program.
25673 #
25674 # GNU Libtool is distributed in the hope that it will be useful,
25675 # but WITHOUT ANY WARRANTY; without even the implied warranty of
25676 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
25677 # GNU General Public License for more details.
25678 #
25679 # You should have received a copy of the GNU General Public License
25680 # along with GNU Libtool; see the file COPYING.  If not, a copy
25681 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
25682 # obtained by writing to the Free Software Foundation, Inc.,
25683 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
25684
25685
25686 # The names of the tagged configurations supported by this script.
25687 available_tags="CXX "
25688
25689 # ### BEGIN LIBTOOL CONFIG
25690
25691 # Which release of libtool.m4 was used?
25692 macro_version=$macro_version
25693 macro_revision=$macro_revision
25694
25695 # Assembler program.
25696 AS=$lt_AS
25697
25698 # DLL creation program.
25699 DLLTOOL=$lt_DLLTOOL
25700
25701 # Object dumper program.
25702 OBJDUMP=$lt_OBJDUMP
25703
25704 # Whether or not to build shared libraries.
25705 build_libtool_libs=$enable_shared
25706
25707 # Whether or not to build static libraries.
25708 build_old_libs=$enable_static
25709
25710 # What type of objects to build.
25711 pic_mode=$pic_mode
25712
25713 # Whether or not to optimize for fast installation.
25714 fast_install=$enable_fast_install
25715
25716 # Shell to use when invoking shell scripts.
25717 SHELL=$lt_SHELL
25718
25719 # An echo program that protects backslashes.
25720 ECHO=$lt_ECHO
25721
25722 # The PATH separator for the build system.
25723 PATH_SEPARATOR=$lt_PATH_SEPARATOR
25724
25725 # The host system.
25726 host_alias=$host_alias
25727 host=$host
25728 host_os=$host_os
25729
25730 # The build system.
25731 build_alias=$build_alias
25732 build=$build
25733 build_os=$build_os
25734
25735 # A sed program that does not truncate output.
25736 SED=$lt_SED
25737
25738 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
25739 Xsed="\$SED -e 1s/^X//"
25740
25741 # A grep program that handles long lines.
25742 GREP=$lt_GREP
25743
25744 # An ERE matcher.
25745 EGREP=$lt_EGREP
25746
25747 # A literal string matcher.
25748 FGREP=$lt_FGREP
25749
25750 # A BSD- or MS-compatible name lister.
25751 NM=$lt_NM
25752
25753 # Whether we need soft or hard links.
25754 LN_S=$lt_LN_S
25755
25756 # What is the maximum length of a command?
25757 max_cmd_len=$max_cmd_len
25758
25759 # Object file suffix (normally "o").
25760 objext=$ac_objext
25761
25762 # Executable file suffix (normally "").
25763 exeext=$exeext
25764
25765 # whether the shell understands "unset".
25766 lt_unset=$lt_unset
25767
25768 # turn spaces into newlines.
25769 SP2NL=$lt_lt_SP2NL
25770
25771 # turn newlines into spaces.
25772 NL2SP=$lt_lt_NL2SP
25773
25774 # convert \$build file names to \$host format.
25775 to_host_file_cmd=$lt_cv_to_host_file_cmd
25776
25777 # convert \$build files to toolchain format.
25778 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
25779
25780 # Method to check whether dependent libraries are shared objects.
25781 deplibs_check_method=$lt_deplibs_check_method
25782
25783 # Command to use when deplibs_check_method = "file_magic".
25784 file_magic_cmd=$lt_file_magic_cmd
25785
25786 # How to find potential files when deplibs_check_method = "file_magic".
25787 file_magic_glob=$lt_file_magic_glob
25788
25789 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
25790 want_nocaseglob=$lt_want_nocaseglob
25791
25792 # Command to associate shared and link libraries.
25793 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
25794
25795 # The archiver.
25796 AR=$lt_AR
25797
25798 # Flags to create an archive.
25799 AR_FLAGS=$lt_AR_FLAGS
25800
25801 # How to feed a file listing to the archiver.
25802 archiver_list_spec=$lt_archiver_list_spec
25803
25804 # A symbol stripping program.
25805 STRIP=$lt_STRIP
25806
25807 # Commands used to install an old-style archive.
25808 RANLIB=$lt_RANLIB
25809 old_postinstall_cmds=$lt_old_postinstall_cmds
25810 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25811
25812 # Whether to use a lock for old archive extraction.
25813 lock_old_archive_extraction=$lock_old_archive_extraction
25814
25815 # A C compiler.
25816 LTCC=$lt_CC
25817
25818 # LTCC compiler flags.
25819 LTCFLAGS=$lt_CFLAGS
25820
25821 # Take the output of nm and produce a listing of raw symbols and C names.
25822 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25823
25824 # Transform the output of nm in a proper C declaration.
25825 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25826
25827 # Transform the output of nm in a C name address pair.
25828 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25829
25830 # Transform the output of nm in a C name address pair when lib prefix is needed.
25831 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
25832
25833 # Specify filename containing input files for \$NM.
25834 nm_file_list_spec=$lt_nm_file_list_spec
25835
25836 # The root where to search for dependent libraries,and in which our libraries should be installed.
25837 lt_sysroot=$lt_sysroot
25838
25839 # The name of the directory that contains temporary libtool files.
25840 objdir=$objdir
25841
25842 # Used to examine libraries when file_magic_cmd begins with "file".
25843 MAGIC_CMD=$MAGIC_CMD
25844
25845 # Must we lock files when doing compilation?
25846 need_locks=$lt_need_locks
25847
25848 # Manifest tool.
25849 MANIFEST_TOOL=$lt_MANIFEST_TOOL
25850
25851 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
25852 DSYMUTIL=$lt_DSYMUTIL
25853
25854 # Tool to change global to local symbols on Mac OS X.
25855 NMEDIT=$lt_NMEDIT
25856
25857 # Tool to manipulate fat objects and archives on Mac OS X.
25858 LIPO=$lt_LIPO
25859
25860 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
25861 OTOOL=$lt_OTOOL
25862
25863 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
25864 OTOOL64=$lt_OTOOL64
25865
25866 # Old archive suffix (normally "a").
25867 libext=$libext
25868
25869 # Shared library suffix (normally ".so").
25870 shrext_cmds=$lt_shrext_cmds
25871
25872 # The commands to extract the exported symbol list from a shared archive.
25873 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25874
25875 # Variables whose values should be saved in libtool wrapper scripts and
25876 # restored at link time.
25877 variables_saved_for_relink=$lt_variables_saved_for_relink
25878
25879 # Do we need the "lib" prefix for modules?
25880 need_lib_prefix=$need_lib_prefix
25881
25882 # Do we need a version for libraries?
25883 need_version=$need_version
25884
25885 # Library versioning type.
25886 version_type=$version_type
25887
25888 # Shared library runtime path variable.
25889 runpath_var=$runpath_var
25890
25891 # Shared library path variable.
25892 shlibpath_var=$shlibpath_var
25893
25894 # Is shlibpath searched before the hard-coded library search path?
25895 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25896
25897 # Format of library name prefix.
25898 libname_spec=$lt_libname_spec
25899
25900 # List of archive names.  First name is the real one, the rest are links.
25901 # The last name is the one that the linker finds with -lNAME
25902 library_names_spec=$lt_library_names_spec
25903
25904 # The coded name of the library, if different from the real name.
25905 soname_spec=$lt_soname_spec
25906
25907 # Permission mode override for installation of shared libraries.
25908 install_override_mode=$lt_install_override_mode
25909
25910 # Command to use after installation of a shared archive.
25911 postinstall_cmds=$lt_postinstall_cmds
25912
25913 # Command to use after uninstallation of a shared archive.
25914 postuninstall_cmds=$lt_postuninstall_cmds
25915
25916 # Commands used to finish a libtool library installation in a directory.
25917 finish_cmds=$lt_finish_cmds
25918
25919 # As "finish_cmds", except a single script fragment to be evaled but
25920 # not shown.
25921 finish_eval=$lt_finish_eval
25922
25923 # Whether we should hardcode library paths into libraries.
25924 hardcode_into_libs=$hardcode_into_libs
25925
25926 # Compile-time system search path for libraries.
25927 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25928
25929 # Run-time system search path for libraries.
25930 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25931
25932 # Whether dlopen is supported.
25933 dlopen_support=$enable_dlopen
25934
25935 # Whether dlopen of programs is supported.
25936 dlopen_self=$enable_dlopen_self
25937
25938 # Whether dlopen of statically linked programs is supported.
25939 dlopen_self_static=$enable_dlopen_self_static
25940
25941 # Commands to strip libraries.
25942 old_striplib=$lt_old_striplib
25943 striplib=$lt_striplib
25944
25945
25946 # The linker used to build libraries.
25947 LD=$lt_LD
25948
25949 # How to create reloadable object files.
25950 reload_flag=$lt_reload_flag
25951 reload_cmds=$lt_reload_cmds
25952
25953 # Commands used to build an old-style archive.
25954 old_archive_cmds=$lt_old_archive_cmds
25955
25956 # A language specific compiler.
25957 CC=$lt_compiler
25958
25959 # Is the compiler the GNU compiler?
25960 with_gcc=$GCC
25961
25962 # Compiler flag to turn off builtin functions.
25963 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
25964
25965 # Additional compiler flags for building library objects.
25966 pic_flag=$lt_lt_prog_compiler_pic
25967
25968 # How to pass a linker flag through the compiler.
25969 wl=$lt_lt_prog_compiler_wl
25970
25971 # Compiler flag to prevent dynamic linking.
25972 link_static_flag=$lt_lt_prog_compiler_static
25973
25974 # Does compiler simultaneously support -c and -o options?
25975 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
25976
25977 # Whether or not to add -lc for building shared libraries.
25978 build_libtool_need_lc=$archive_cmds_need_lc
25979
25980 # Whether or not to disallow shared libs when runtime libs are static.
25981 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
25982
25983 # Compiler flag to allow reflexive dlopens.
25984 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
25985
25986 # Compiler flag to generate shared objects directly from archives.
25987 whole_archive_flag_spec=$lt_whole_archive_flag_spec
25988
25989 # Whether the compiler copes with passing no objects directly.
25990 compiler_needs_object=$lt_compiler_needs_object
25991
25992 # Create an old-style archive from a shared archive.
25993 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
25994
25995 # Create a temporary old-style archive to link instead of a shared archive.
25996 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
25997
25998 # Commands used to build a shared archive.
25999 archive_cmds=$lt_archive_cmds
26000 archive_expsym_cmds=$lt_archive_expsym_cmds
26001
26002 # Commands used to build a loadable module if different from building
26003 # a shared archive.
26004 module_cmds=$lt_module_cmds
26005 module_expsym_cmds=$lt_module_expsym_cmds
26006
26007 # Whether we are building with GNU ld or not.
26008 with_gnu_ld=$lt_with_gnu_ld
26009
26010 # Flag that allows shared libraries with undefined symbols to be built.
26011 allow_undefined_flag=$lt_allow_undefined_flag
26012
26013 # Flag that enforces no undefined symbols.
26014 no_undefined_flag=$lt_no_undefined_flag
26015
26016 # Flag to hardcode \$libdir into a binary during linking.
26017 # This must work even if \$libdir does not exist
26018 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
26019
26020 # Whether we need a single "-rpath" flag with a separated argument.
26021 hardcode_libdir_separator=$lt_hardcode_libdir_separator
26022
26023 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
26024 # DIR into the resulting binary.
26025 hardcode_direct=$hardcode_direct
26026
26027 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
26028 # DIR into the resulting binary and the resulting library dependency is
26029 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
26030 # library is relocated.
26031 hardcode_direct_absolute=$hardcode_direct_absolute
26032
26033 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
26034 # into the resulting binary.
26035 hardcode_minus_L=$hardcode_minus_L
26036
26037 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
26038 # into the resulting binary.
26039 hardcode_shlibpath_var=$hardcode_shlibpath_var
26040
26041 # Set to "yes" if building a shared library automatically hardcodes DIR
26042 # into the library and all subsequent libraries and executables linked
26043 # against it.
26044 hardcode_automatic=$hardcode_automatic
26045
26046 # Set to yes if linker adds runtime paths of dependent libraries
26047 # to runtime path list.
26048 inherit_rpath=$inherit_rpath
26049
26050 # Whether libtool must link a program against all its dependency libraries.
26051 link_all_deplibs=$link_all_deplibs
26052
26053 # Set to "yes" if exported symbols are required.
26054 always_export_symbols=$always_export_symbols
26055
26056 # The commands to list exported symbols.
26057 export_symbols_cmds=$lt_export_symbols_cmds
26058
26059 # Symbols that should not be listed in the preloaded symbols.
26060 exclude_expsyms=$lt_exclude_expsyms
26061
26062 # Symbols that must always be exported.
26063 include_expsyms=$lt_include_expsyms
26064
26065 # Commands necessary for linking programs (against libraries) with templates.
26066 prelink_cmds=$lt_prelink_cmds
26067
26068 # Commands necessary for finishing linking programs.
26069 postlink_cmds=$lt_postlink_cmds
26070
26071 # Specify filename containing input files.
26072 file_list_spec=$lt_file_list_spec
26073
26074 # How to hardcode a shared library path into an executable.
26075 hardcode_action=$hardcode_action
26076
26077 # The directories searched by this compiler when creating a shared library.
26078 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
26079
26080 # Dependencies to place before and after the objects being linked to
26081 # create a shared library.
26082 predep_objects=$lt_predep_objects
26083 postdep_objects=$lt_postdep_objects
26084 predeps=$lt_predeps
26085 postdeps=$lt_postdeps
26086
26087 # The library search path used internally by the compiler when linking
26088 # a shared library.
26089 compiler_lib_search_path=$lt_compiler_lib_search_path
26090
26091 # ### END LIBTOOL CONFIG
26092
26093 _LT_EOF
26094
26095   case $host_os in
26096   aix3*)
26097     cat <<\_LT_EOF >> "$cfgfile"
26098 # AIX sometimes has problems with the GCC collect2 program.  For some
26099 # reason, if we set the COLLECT_NAMES environment variable, the problems
26100 # vanish in a puff of smoke.
26101 if test "X${COLLECT_NAMES+set}" != Xset; then
26102   COLLECT_NAMES=
26103   export COLLECT_NAMES
26104 fi
26105 _LT_EOF
26106     ;;
26107   esac
26108
26109
26110 ltmain="$ac_aux_dir/ltmain.sh"
26111
26112
26113   # We use sed instead of cat because bash on DJGPP gets confused if
26114   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
26115   # text mode, it properly converts lines to CR/LF.  This bash problem
26116   # is reportedly fixed, but why not run on old versions too?
26117   sed '$q' "$ltmain" >> "$cfgfile" \
26118      || (rm -f "$cfgfile"; exit 1)
26119
26120   if test x"$xsi_shell" = xyes; then
26121   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
26122 func_dirname ()\
26123 {\
26124 \    case ${1} in\
26125 \      */*) func_dirname_result="${1%/*}${2}" ;;\
26126 \      *  ) func_dirname_result="${3}" ;;\
26127 \    esac\
26128 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
26129   && mv -f "$cfgfile.tmp" "$cfgfile" \
26130     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
26131 test 0 -eq $? || _lt_function_replace_fail=:
26132
26133
26134   sed -e '/^func_basename ()$/,/^} # func_basename /c\
26135 func_basename ()\
26136 {\
26137 \    func_basename_result="${1##*/}"\
26138 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
26139   && mv -f "$cfgfile.tmp" "$cfgfile" \
26140     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
26141 test 0 -eq $? || _lt_function_replace_fail=:
26142
26143
26144   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
26145 func_dirname_and_basename ()\
26146 {\
26147 \    case ${1} in\
26148 \      */*) func_dirname_result="${1%/*}${2}" ;;\
26149 \      *  ) func_dirname_result="${3}" ;;\
26150 \    esac\
26151 \    func_basename_result="${1##*/}"\
26152 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
26153   && mv -f "$cfgfile.tmp" "$cfgfile" \
26154     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
26155 test 0 -eq $? || _lt_function_replace_fail=:
26156
26157
26158   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
26159 func_stripname ()\
26160 {\
26161 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
26162 \    # positional parameters, so assign one to ordinary parameter first.\
26163 \    func_stripname_result=${3}\
26164 \    func_stripname_result=${func_stripname_result#"${1}"}\
26165 \    func_stripname_result=${func_stripname_result%"${2}"}\
26166 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
26167   && mv -f "$cfgfile.tmp" "$cfgfile" \
26168     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
26169 test 0 -eq $? || _lt_function_replace_fail=:
26170
26171
26172   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
26173 func_split_long_opt ()\
26174 {\
26175 \    func_split_long_opt_name=${1%%=*}\
26176 \    func_split_long_opt_arg=${1#*=}\
26177 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
26178   && mv -f "$cfgfile.tmp" "$cfgfile" \
26179     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
26180 test 0 -eq $? || _lt_function_replace_fail=:
26181
26182
26183   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
26184 func_split_short_opt ()\
26185 {\
26186 \    func_split_short_opt_arg=${1#??}\
26187 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
26188 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
26189   && mv -f "$cfgfile.tmp" "$cfgfile" \
26190     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
26191 test 0 -eq $? || _lt_function_replace_fail=:
26192
26193
26194   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
26195 func_lo2o ()\
26196 {\
26197 \    case ${1} in\
26198 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
26199 \      *)    func_lo2o_result=${1} ;;\
26200 \    esac\
26201 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
26202   && mv -f "$cfgfile.tmp" "$cfgfile" \
26203     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
26204 test 0 -eq $? || _lt_function_replace_fail=:
26205
26206
26207   sed -e '/^func_xform ()$/,/^} # func_xform /c\
26208 func_xform ()\
26209 {\
26210     func_xform_result=${1%.*}.lo\
26211 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
26212   && mv -f "$cfgfile.tmp" "$cfgfile" \
26213     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
26214 test 0 -eq $? || _lt_function_replace_fail=:
26215
26216
26217   sed -e '/^func_arith ()$/,/^} # func_arith /c\
26218 func_arith ()\
26219 {\
26220     func_arith_result=$(( $* ))\
26221 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
26222   && mv -f "$cfgfile.tmp" "$cfgfile" \
26223     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
26224 test 0 -eq $? || _lt_function_replace_fail=:
26225
26226
26227   sed -e '/^func_len ()$/,/^} # func_len /c\
26228 func_len ()\
26229 {\
26230     func_len_result=${#1}\
26231 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
26232   && mv -f "$cfgfile.tmp" "$cfgfile" \
26233     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
26234 test 0 -eq $? || _lt_function_replace_fail=:
26235
26236 fi
26237
26238 if test x"$lt_shell_append" = xyes; then
26239   sed -e '/^func_append ()$/,/^} # func_append /c\
26240 func_append ()\
26241 {\
26242     eval "${1}+=\\${2}"\
26243 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
26244   && mv -f "$cfgfile.tmp" "$cfgfile" \
26245     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
26246 test 0 -eq $? || _lt_function_replace_fail=:
26247
26248
26249   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
26250 func_append_quoted ()\
26251 {\
26252 \    func_quote_for_eval "${2}"\
26253 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
26254 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
26255   && mv -f "$cfgfile.tmp" "$cfgfile" \
26256     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
26257 test 0 -eq $? || _lt_function_replace_fail=:
26258
26259
26260   # Save a `func_append' function call where possible by direct use of '+='
26261   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
26262     && mv -f "$cfgfile.tmp" "$cfgfile" \
26263       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
26264   test 0 -eq $? || _lt_function_replace_fail=:
26265 else
26266   # Save a `func_append' function call even when '+=' is not available
26267   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
26268     && mv -f "$cfgfile.tmp" "$cfgfile" \
26269       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
26270   test 0 -eq $? || _lt_function_replace_fail=:
26271 fi
26272
26273 if test x"$_lt_function_replace_fail" = x":"; then
26274   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
26275 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
26276 fi
26277
26278
26279    mv -f "$cfgfile" "$ofile" ||
26280     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
26281   chmod +x "$ofile"
26282
26283
26284     cat <<_LT_EOF >> "$ofile"
26285
26286 # ### BEGIN LIBTOOL TAG CONFIG: CXX
26287
26288 # The linker used to build libraries.
26289 LD=$lt_LD_CXX
26290
26291 # How to create reloadable object files.
26292 reload_flag=$lt_reload_flag_CXX
26293 reload_cmds=$lt_reload_cmds_CXX
26294
26295 # Commands used to build an old-style archive.
26296 old_archive_cmds=$lt_old_archive_cmds_CXX
26297
26298 # A language specific compiler.
26299 CC=$lt_compiler_CXX
26300
26301 # Is the compiler the GNU compiler?
26302 with_gcc=$GCC_CXX
26303
26304 # Compiler flag to turn off builtin functions.
26305 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
26306
26307 # Additional compiler flags for building library objects.
26308 pic_flag=$lt_lt_prog_compiler_pic_CXX
26309
26310 # How to pass a linker flag through the compiler.
26311 wl=$lt_lt_prog_compiler_wl_CXX
26312
26313 # Compiler flag to prevent dynamic linking.
26314 link_static_flag=$lt_lt_prog_compiler_static_CXX
26315
26316 # Does compiler simultaneously support -c and -o options?
26317 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
26318
26319 # Whether or not to add -lc for building shared libraries.
26320 build_libtool_need_lc=$archive_cmds_need_lc_CXX
26321
26322 # Whether or not to disallow shared libs when runtime libs are static.
26323 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
26324
26325 # Compiler flag to allow reflexive dlopens.
26326 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
26327
26328 # Compiler flag to generate shared objects directly from archives.
26329 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
26330
26331 # Whether the compiler copes with passing no objects directly.
26332 compiler_needs_object=$lt_compiler_needs_object_CXX
26333
26334 # Create an old-style archive from a shared archive.
26335 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
26336
26337 # Create a temporary old-style archive to link instead of a shared archive.
26338 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
26339
26340 # Commands used to build a shared archive.
26341 archive_cmds=$lt_archive_cmds_CXX
26342 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
26343
26344 # Commands used to build a loadable module if different from building
26345 # a shared archive.
26346 module_cmds=$lt_module_cmds_CXX
26347 module_expsym_cmds=$lt_module_expsym_cmds_CXX
26348
26349 # Whether we are building with GNU ld or not.
26350 with_gnu_ld=$lt_with_gnu_ld_CXX
26351
26352 # Flag that allows shared libraries with undefined symbols to be built.
26353 allow_undefined_flag=$lt_allow_undefined_flag_CXX
26354
26355 # Flag that enforces no undefined symbols.
26356 no_undefined_flag=$lt_no_undefined_flag_CXX
26357
26358 # Flag to hardcode \$libdir into a binary during linking.
26359 # This must work even if \$libdir does not exist
26360 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
26361
26362 # Whether we need a single "-rpath" flag with a separated argument.
26363 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
26364
26365 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
26366 # DIR into the resulting binary.
26367 hardcode_direct=$hardcode_direct_CXX
26368
26369 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
26370 # DIR into the resulting binary and the resulting library dependency is
26371 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
26372 # library is relocated.
26373 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
26374
26375 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
26376 # into the resulting binary.
26377 hardcode_minus_L=$hardcode_minus_L_CXX
26378
26379 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
26380 # into the resulting binary.
26381 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
26382
26383 # Set to "yes" if building a shared library automatically hardcodes DIR
26384 # into the library and all subsequent libraries and executables linked
26385 # against it.
26386 hardcode_automatic=$hardcode_automatic_CXX
26387
26388 # Set to yes if linker adds runtime paths of dependent libraries
26389 # to runtime path list.
26390 inherit_rpath=$inherit_rpath_CXX
26391
26392 # Whether libtool must link a program against all its dependency libraries.
26393 link_all_deplibs=$link_all_deplibs_CXX
26394
26395 # Set to "yes" if exported symbols are required.
26396 always_export_symbols=$always_export_symbols_CXX
26397
26398 # The commands to list exported symbols.
26399 export_symbols_cmds=$lt_export_symbols_cmds_CXX
26400
26401 # Symbols that should not be listed in the preloaded symbols.
26402 exclude_expsyms=$lt_exclude_expsyms_CXX
26403
26404 # Symbols that must always be exported.
26405 include_expsyms=$lt_include_expsyms_CXX
26406
26407 # Commands necessary for linking programs (against libraries) with templates.
26408 prelink_cmds=$lt_prelink_cmds_CXX
26409
26410 # Commands necessary for finishing linking programs.
26411 postlink_cmds=$lt_postlink_cmds_CXX
26412
26413 # Specify filename containing input files.
26414 file_list_spec=$lt_file_list_spec_CXX
26415
26416 # How to hardcode a shared library path into an executable.
26417 hardcode_action=$hardcode_action_CXX
26418
26419 # The directories searched by this compiler when creating a shared library.
26420 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
26421
26422 # Dependencies to place before and after the objects being linked to
26423 # create a shared library.
26424 predep_objects=$lt_predep_objects_CXX
26425 postdep_objects=$lt_postdep_objects_CXX
26426 predeps=$lt_predeps_CXX
26427 postdeps=$lt_postdeps_CXX
26428
26429 # The library search path used internally by the compiler when linking
26430 # a shared library.
26431 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
26432
26433 # ### END LIBTOOL TAG CONFIG: CXX
26434 _LT_EOF
26435
26436  ;;
26437     "sdl2_config":C) chmod a+x sdl2-config ;;
26438     "summary":C) echo -en "$SUMMARY" ;;
26439
26440   esac
26441 done # for ac_tag
26442
26443
26444 as_fn_exit 0
26445 _ACEOF
26446 ac_clean_files=$ac_clean_files_save
26447
26448 test $ac_write_fail = 0 ||
26449   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
26450
26451
26452 # configure is writing to config.log, and then calls config.status.
26453 # config.status does its own redirection, appending to config.log.
26454 # Unfortunately, on DOS this fails, as config.log is still kept open
26455 # by configure, so config.status won't be able to write to it; its
26456 # output is simply discarded.  So we exec the FD to /dev/null,
26457 # effectively closing config.log, so it can be properly (re)opened and
26458 # appended to by config.status.  When coming back to configure, we
26459 # need to make the FD available again.
26460 if test "$no_create" != yes; then
26461   ac_cs_success=:
26462   ac_config_status_args=
26463   test "$silent" = yes &&
26464     ac_config_status_args="$ac_config_status_args --quiet"
26465   exec 5>/dev/null
26466   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26467   exec 5>>config.log
26468   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26469   # would make configure fail if this is the last instruction.
26470   $ac_cs_success || as_fn_exit 1
26471 fi
26472 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
26473   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
26474 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
26475 fi
26476