cscg22-gearboy

CSCG 2022 Challenge 'Gearboy'
git clone https://git.sinitax.com/sinitax/cscg22-gearboy
Log | Files | Refs | sfeed.txt

configure (783484B)


      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
     16DUALCASE=1; export DUALCASE # for MKS sh
     17if 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
     24else
     25  case `(set -o) 2>/dev/null` in #(
     26  *posix*) :
     27    set -o posix ;; #(
     28  *) :
     29     ;;
     30esac
     31fi
     32
     33
     34as_nl='
     35'
     36export as_nl
     37# Printing a long string crashes Solaris 7 /usr/bin/printf.
     38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
     39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
     40as_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.
     43if 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 --'
     47elif (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'
     50else
     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'
     70fi
     71
     72# The user is always right.
     73if 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  }
     79fi
     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.)
     87IFS=" ""	$as_nl"
     88
     89# Find who we are.  Look in the path if we contain no directory separator.
     90as_myself=
     91case $0 in #((
     92  *[\\/]* ) as_myself=$0 ;;
     93  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     94for as_dir in $PATH
     95do
     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
    100IFS=$as_save_IFS
    101
    102     ;;
    103esac
    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.
    106if test "x$as_myself" = x; then
    107  as_myself=$0
    108fi
    109if test ! -f "$as_myself"; then
    110  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
    111  exit 1
    112fi
    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.
    118for as_var in BASH_ENV ENV MAIL MAILPATH
    119do eval test x\${$as_var+set} = xset \
    120  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
    121done
    122PS1='$ '
    123PS2='> '
    124PS4='+ '
    125
    126# NLS nuisances.
    127LC_ALL=C
    128export LC_ALL
    129LANGUAGE=C
    130export 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.
    143BASH_ENV=/dev/null
    144ENV=/dev/null
    145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
    146case $- in # ((((
    147  *v*x* | *x*v* ) as_opts=-vx ;;
    148  *v* ) as_opts=-v ;;
    149  *x* ) as_opts=-x ;;
    150  * ) as_opts= ;;
    151esac
    152exec $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
    156as_fn_exit 255
    157  fi
    158  # We don't want this to propagate to other subprocesses.
    159          { _as_can_reexec=; unset _as_can_reexec;}
    160if 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
    168else
    169  case \`(set -o) 2>/dev/null\` in #(
    170  *posix*) :
    171    set -o posix ;; #(
    172  *) :
    173     ;;
    174esac
    175fi
    176"
    177  as_required="as_fn_return () { (exit \$1); }
    178as_fn_success () { as_fn_return 0; }
    179as_fn_failure () { as_fn_return 1; }
    180as_fn_ret_success () { return 0; }
    181as_fn_ret_failure () { return 1; }
    182
    183exitcode=0
    184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
    185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
    186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
    187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
    188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
    189
    190else
    191  exitcode=1; echo positional parameters were not saved.
    192fi
    193test x\$exitcode = x0 || exit 1
    194test -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
    207test \$(( 1 + 1 )) = 2 || exit 1"
    208  if (eval "$as_required") 2>/dev/null; then :
    209  as_have_required=yes
    210else
    211  as_have_required=no
    212fi
    213  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
    214
    215else
    216  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    217as_found=false
    218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
    219do
    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
    233fi
    234fi
    235	   done;;
    236       esac
    237  as_found=false
    238done
    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
    242fi; }
    243IFS=$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.
    252BASH_ENV=/dev/null
    253ENV=/dev/null
    254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
    255case $- in # ((((
    256  *v*x* | *x*v* ) as_opts=-vx ;;
    257  *v* ) as_opts=-v ;;
    258  *x* ) as_opts=-x ;;
    259  * ) as_opts= ;;
    260esac
    261exec $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
    265exit 255
    266fi
    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
    281fi
    282fi
    283fi
    284SHELL=${CONFIG_SHELL-/bin/sh}
    285export SHELL
    286# Unset more variables known to interfere with behavior of common tools.
    287CLICOLOR_FORCE= GREP_OPTIONS=
    288unset CLICOLOR_FORCE GREP_OPTIONS
    289
    290## --------------------- ##
    291## M4sh Shell Functions. ##
    292## --------------------- ##
    293# as_fn_unset VAR
    294# ---------------
    295# Portably unset VAR.
    296as_fn_unset ()
    297{
    298  { eval $1=; unset $1;}
    299}
    300as_unset=as_fn_unset
    301
    302# as_fn_set_status STATUS
    303# -----------------------
    304# Set $? to STATUS, without forking.
    305as_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.
    313as_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.
    323as_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.
    371as_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.
    381if (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  }'
    386else
    387  as_fn_append ()
    388  {
    389    eval $1=\$$1\$2
    390  }
    391fi # 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.
    398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
    399  eval 'as_fn_arith ()
    400  {
    401    as_val=$(( $* ))
    402  }'
    403else
    404  as_fn_arith ()
    405  {
    406    as_val=`expr "$@" || test $? -eq 1`
    407  }
    408fi # 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.
    416as_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
    427if expr a : '\(a\)' >/dev/null 2>&1 &&
    428   test "X`expr 00001 : '.*\(...\)'`" = X001; then
    429  as_expr=expr
    430else
    431  as_expr=false
    432fi
    433
    434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
    435  as_basename=basename
    436else
    437  as_basename=false
    438fi
    439
    440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
    441  as_dirname=dirname
    442else
    443  as_dirname=false
    444fi
    445
    446as_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.
    466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
    467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
    468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
    469as_cr_digits='0123456789'
    470as_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
    508ECHO_C= ECHO_N= ECHO_T=
    509case `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';;
    519esac
    520
    521rm -f conf$$ conf$$.exe conf$$.file
    522if test -d conf$$.dir; then
    523  rm -f conf$$.dir/conf$$.file
    524else
    525  rm -f conf$$.dir
    526  mkdir conf$$.dir 2>/dev/null
    527fi
    528if (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
    542else
    543  as_ln_s='cp -pR'
    544fi
    545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
    546rmdir conf$$.dir 2>/dev/null
    547
    548if mkdir -p . 2>/dev/null; then
    549  as_mkdir_p='mkdir -p "$as_dir"'
    550else
    551  test -d ./-p && rmdir ./-p
    552  as_mkdir_p=false
    553fi
    554
    555as_test_x='test -x'
    556as_executable_p=as_fn_executable_p
    557
    558# Sed expression to map a string onto a valid CPP name.
    559as_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.
    562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
    563
    564SHELL=${CONFIG_SHELL-/bin/sh}
    565
    566
    567test -n "$DJDIR" || exec 7<&0 </dev/null
    568exec 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.
    573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
    574
    575#
    576# Initializations.
    577#
    578ac_default_prefix=/usr/local
    579ac_clean_files=
    580ac_config_libobj_dir=.
    581LIBOBJS=
    582cross_compiling=no
    583subdirs=
    584MFLAGS=
    585MAKEFLAGS=
    586
    587# Identity of this package.
    588PACKAGE_NAME=
    589PACKAGE_TARNAME=
    590PACKAGE_VERSION=
    591PACKAGE_STRING=
    592PACKAGE_BUGREPORT=
    593PACKAGE_URL=
    594
    595ac_unique_file="README.txt"
    596# Factoring default headers for most tests.
    597ac_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
    632ac_subst_vars='LTLIBOBJS
    633EXTRA_LDFLAGS
    634BUILD_LDFLAGS
    635EXTRA_CFLAGS
    636BUILD_CFLAGS
    637SDLTEST_OBJECTS
    638SDLMAIN_OBJECTS
    639VERSION_OBJECTS
    640OBJECTS
    641INCLUDE
    642ac_aux_dir
    643ENABLE_STATIC_FALSE
    644ENABLE_STATIC_TRUE
    645ENABLE_SHARED_FALSE
    646ENABLE_SHARED_TRUE
    647SDL_RLD_FLAGS
    648SDL_STATIC_LIBS
    649SDL_LIBS
    650SDL_CFLAGS
    651DIRECTFBCONFIG
    652X_EXTRA_LIBS
    653X_LIBS
    654X_PRE_LIBS
    655X_CFLAGS
    656XMKMF
    657ARTSCONFIG
    658PKG_CONFIG
    659ESD_LIBS
    660ESD_CFLAGS
    661ESD_CONFIG
    662ALSA_LIBS
    663ALSA_CFLAGS
    664POW_LIB
    665LIBOBJS
    666ALLOCA
    667WINDRES
    668SET_MAKE
    669INSTALL_DATA
    670INSTALL_SCRIPT
    671INSTALL_PROGRAM
    672CXXCPP
    673ac_ct_CXX
    674CXXFLAGS
    675CXX
    676LT_AGE
    677LT_REVISION
    678LT_CURRENT
    679LT_RELEASE
    680CPP
    681OTOOL64
    682OTOOL
    683LIPO
    684NMEDIT
    685DSYMUTIL
    686MANIFEST_TOOL
    687AWK
    688RANLIB
    689STRIP
    690ac_ct_AR
    691AR
    692LN_S
    693NM
    694ac_ct_DUMPBIN
    695DUMPBIN
    696LD
    697FGREP
    698EGREP
    699GREP
    700SED
    701OBJEXT
    702EXEEXT
    703ac_ct_CC
    704CPPFLAGS
    705LDFLAGS
    706CFLAGS
    707CC
    708host_os
    709host_vendor
    710host_cpu
    711host
    712build_os
    713build_vendor
    714build_cpu
    715build
    716LIBTOOL
    717OBJDUMP
    718DLLTOOL
    719AS
    720SDL_VERSION
    721SDL_BINARY_AGE
    722SDL_INTERFACE_AGE
    723SDL_MICRO_VERSION
    724SDL_MINOR_VERSION
    725SDL_MAJOR_VERSION
    726target_alias
    727host_alias
    728build_alias
    729LIBS
    730ECHO_T
    731ECHO_N
    732ECHO_C
    733DEFS
    734mandir
    735localedir
    736libdir
    737psdir
    738pdfdir
    739dvidir
    740htmldir
    741infodir
    742docdir
    743oldincludedir
    744includedir
    745localstatedir
    746sharedstatedir
    747sysconfdir
    748datadir
    749datarootdir
    750libexecdir
    751sbindir
    752bindir
    753program_transform_name
    754prefix
    755exec_prefix
    756PACKAGE_URL
    757PACKAGE_BUGREPORT
    758PACKAGE_STRING
    759PACKAGE_VERSION
    760PACKAGE_TARNAME
    761PACKAGE_NAME
    762PATH_SEPARATOR
    763SHELL'
    764ac_subst_files=''
    765ac_user_opts='
    766enable_option_checking
    767enable_shared
    768enable_static
    769with_pic
    770enable_fast_install
    771with_gnu_ld
    772with_sysroot
    773enable_libtool_lock
    774enable_assertions
    775enable_dependency_tracking
    776enable_libc
    777enable_gcc_atomics
    778enable_atomic
    779enable_audio
    780enable_video
    781enable_render
    782enable_events
    783enable_joystick
    784enable_haptic
    785enable_power
    786enable_filesystem
    787enable_threads
    788enable_timers
    789enable_file
    790enable_loadso
    791enable_cpuinfo
    792enable_assembly
    793enable_ssemath
    794enable_mmx
    795enable_3dnow
    796enable_sse
    797enable_sse2
    798enable_altivec
    799enable_oss
    800enable_alsa
    801with_alsa_prefix
    802with_alsa_inc_prefix
    803enable_alsatest
    804enable_alsa_shared
    805enable_esd
    806with_esd_prefix
    807with_esd_exec_prefix
    808enable_esdtest
    809enable_esd_shared
    810enable_pulseaudio
    811enable_pulseaudio_shared
    812enable_arts
    813enable_arts_shared
    814enable_nas
    815enable_nas_shared
    816enable_sndio
    817enable_sndio_shared
    818enable_diskaudio
    819enable_dummyaudio
    820enable_video_wayland
    821enable_video_wayland_qt_touch
    822enable_wayland_shared
    823enable_video_mir
    824enable_mir_shared
    825enable_video_x11
    826with_x
    827enable_x11_shared
    828enable_video_x11_xcursor
    829enable_video_x11_xinerama
    830enable_video_x11_xinput
    831enable_video_x11_xrandr
    832enable_video_x11_scrnsaver
    833enable_video_x11_xshape
    834enable_video_x11_vm
    835enable_video_vivante
    836enable_video_cocoa
    837enable_video_directfb
    838enable_directfb_shared
    839enable_fusionsound
    840enable_fusionsound_shared
    841enable_video_dummy
    842enable_video_opengl
    843enable_video_opengles
    844enable_video_opengles1
    845enable_video_opengles2
    846enable_libudev
    847enable_dbus
    848enable_ibus
    849enable_input_tslib
    850enable_pthreads
    851enable_pthread_sem
    852enable_directx
    853enable_sdl_dlopen
    854enable_clock_gettime
    855enable_rpath
    856enable_render_d3d
    857'
    858      ac_precious_vars='build_alias
    859host_alias
    860target_alias
    861CC
    862CFLAGS
    863LDFLAGS
    864LIBS
    865CPPFLAGS
    866CPP
    867CXX
    868CXXFLAGS
    869CCC
    870CXXCPP
    871XMKMF'
    872
    873
    874# Initialize some variables set by options.
    875ac_init_help=
    876ac_init_version=false
    877ac_unrecognized_opts=
    878ac_unrecognized_sep=
    879# The variables have the same names as the options, with
    880# dashes changed to underlines.
    881cache_file=/dev/null
    882exec_prefix=NONE
    883no_create=
    884no_recursion=
    885prefix=NONE
    886program_prefix=NONE
    887program_suffix=NONE
    888program_transform_name=s,x,x,
    889silent=
    890site=
    891srcdir=
    892verbose=
    893x_includes=NONE
    894x_libraries=NONE
    895
    896# Installation directory options.
    897# These are left unexpanded so users can "make install exec_prefix=/foo"
    898# and all the variables that are supposed to be based on exec_prefix
    899# by default will actually change.
    900# Use braces instead of parens because sh, perl, etc. also accept them.
    901# (The list follows the same order as the GNU Coding Standards.)
    902bindir='${exec_prefix}/bin'
    903sbindir='${exec_prefix}/sbin'
    904libexecdir='${exec_prefix}/libexec'
    905datarootdir='${prefix}/share'
    906datadir='${datarootdir}'
    907sysconfdir='${prefix}/etc'
    908sharedstatedir='${prefix}/com'
    909localstatedir='${prefix}/var'
    910includedir='${prefix}/include'
    911oldincludedir='/usr/include'
    912docdir='${datarootdir}/doc/${PACKAGE}'
    913infodir='${datarootdir}/info'
    914htmldir='${docdir}'
    915dvidir='${docdir}'
    916pdfdir='${docdir}'
    917psdir='${docdir}'
    918libdir='${exec_prefix}/lib'
    919localedir='${datarootdir}/locale'
    920mandir='${datarootdir}/man'
    921
    922ac_prev=
    923ac_dashdash=
    924for ac_option
    925do
    926  # If the previous option needs an argument, assign it.
    927  if test -n "$ac_prev"; then
    928    eval $ac_prev=\$ac_option
    929    ac_prev=
    930    continue
    931  fi
    932
    933  case $ac_option in
    934  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
    935  *=)   ac_optarg= ;;
    936  *)    ac_optarg=yes ;;
    937  esac
    938
    939  # Accept the important Cygnus configure options, so we can diagnose typos.
    940
    941  case $ac_dashdash$ac_option in
    942  --)
    943    ac_dashdash=yes ;;
    944
    945  -bindir | --bindir | --bindi | --bind | --bin | --bi)
    946    ac_prev=bindir ;;
    947  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    948    bindir=$ac_optarg ;;
    949
    950  -build | --build | --buil | --bui | --bu)
    951    ac_prev=build_alias ;;
    952  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    953    build_alias=$ac_optarg ;;
    954
    955  -cache-file | --cache-file | --cache-fil | --cache-fi \
    956  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    957    ac_prev=cache_file ;;
    958  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
    959  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    960    cache_file=$ac_optarg ;;
    961
    962  --config-cache | -C)
    963    cache_file=config.cache ;;
    964
    965  -datadir | --datadir | --datadi | --datad)
    966    ac_prev=datadir ;;
    967  -datadir=* | --datadir=* | --datadi=* | --datad=*)
    968    datadir=$ac_optarg ;;
    969
    970  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
    971  | --dataroo | --dataro | --datar)
    972    ac_prev=datarootdir ;;
    973  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
    974  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
    975    datarootdir=$ac_optarg ;;
    976
    977  -disable-* | --disable-*)
    978    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    979    # Reject names that are not valid shell variable names.
    980    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
    981      as_fn_error $? "invalid feature name: $ac_useropt"
    982    ac_useropt_orig=$ac_useropt
    983    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    984    case $ac_user_opts in
    985      *"
    986"enable_$ac_useropt"
    987"*) ;;
    988      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
    989	 ac_unrecognized_sep=', ';;
    990    esac
    991    eval enable_$ac_useropt=no ;;
    992
    993  -docdir | --docdir | --docdi | --doc | --do)
    994    ac_prev=docdir ;;
    995  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
    996    docdir=$ac_optarg ;;
    997
    998  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
    999    ac_prev=dvidir ;;
   1000  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
   1001    dvidir=$ac_optarg ;;
   1002
   1003  -enable-* | --enable-*)
   1004    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
   1005    # Reject names that are not valid shell variable names.
   1006    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1007      as_fn_error $? "invalid feature name: $ac_useropt"
   1008    ac_useropt_orig=$ac_useropt
   1009    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1010    case $ac_user_opts in
   1011      *"
   1012"enable_$ac_useropt"
   1013"*) ;;
   1014      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
   1015	 ac_unrecognized_sep=', ';;
   1016    esac
   1017    eval enable_$ac_useropt=\$ac_optarg ;;
   1018
   1019  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
   1020  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
   1021  | --exec | --exe | --ex)
   1022    ac_prev=exec_prefix ;;
   1023  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
   1024  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
   1025  | --exec=* | --exe=* | --ex=*)
   1026    exec_prefix=$ac_optarg ;;
   1027
   1028  -gas | --gas | --ga | --g)
   1029    # Obsolete; use --with-gas.
   1030    with_gas=yes ;;
   1031
   1032  -help | --help | --hel | --he | -h)
   1033    ac_init_help=long ;;
   1034  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
   1035    ac_init_help=recursive ;;
   1036  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
   1037    ac_init_help=short ;;
   1038
   1039  -host | --host | --hos | --ho)
   1040    ac_prev=host_alias ;;
   1041  -host=* | --host=* | --hos=* | --ho=*)
   1042    host_alias=$ac_optarg ;;
   1043
   1044  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
   1045    ac_prev=htmldir ;;
   1046  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
   1047  | --ht=*)
   1048    htmldir=$ac_optarg ;;
   1049
   1050  -includedir | --includedir | --includedi | --included | --include \
   1051  | --includ | --inclu | --incl | --inc)
   1052    ac_prev=includedir ;;
   1053  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
   1054  | --includ=* | --inclu=* | --incl=* | --inc=*)
   1055    includedir=$ac_optarg ;;
   1056
   1057  -infodir | --infodir | --infodi | --infod | --info | --inf)
   1058    ac_prev=infodir ;;
   1059  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
   1060    infodir=$ac_optarg ;;
   1061
   1062  -libdir | --libdir | --libdi | --libd)
   1063    ac_prev=libdir ;;
   1064  -libdir=* | --libdir=* | --libdi=* | --libd=*)
   1065    libdir=$ac_optarg ;;
   1066
   1067  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
   1068  | --libexe | --libex | --libe)
   1069    ac_prev=libexecdir ;;
   1070  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
   1071  | --libexe=* | --libex=* | --libe=*)
   1072    libexecdir=$ac_optarg ;;
   1073
   1074  -localedir | --localedir | --localedi | --localed | --locale)
   1075    ac_prev=localedir ;;
   1076  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
   1077    localedir=$ac_optarg ;;
   1078
   1079  -localstatedir | --localstatedir | --localstatedi | --localstated \
   1080  | --localstate | --localstat | --localsta | --localst | --locals)
   1081    ac_prev=localstatedir ;;
   1082  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
   1083  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
   1084    localstatedir=$ac_optarg ;;
   1085
   1086  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
   1087    ac_prev=mandir ;;
   1088  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
   1089    mandir=$ac_optarg ;;
   1090
   1091  -nfp | --nfp | --nf)
   1092    # Obsolete; use --without-fp.
   1093    with_fp=no ;;
   1094
   1095  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
   1096  | --no-cr | --no-c | -n)
   1097    no_create=yes ;;
   1098
   1099  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
   1100  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
   1101    no_recursion=yes ;;
   1102
   1103  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
   1104  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
   1105  | --oldin | --oldi | --old | --ol | --o)
   1106    ac_prev=oldincludedir ;;
   1107  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
   1108  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
   1109  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
   1110    oldincludedir=$ac_optarg ;;
   1111
   1112  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
   1113    ac_prev=prefix ;;
   1114  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
   1115    prefix=$ac_optarg ;;
   1116
   1117  -program-prefix | --program-prefix | --program-prefi | --program-pref \
   1118  | --program-pre | --program-pr | --program-p)
   1119    ac_prev=program_prefix ;;
   1120  -program-prefix=* | --program-prefix=* | --program-prefi=* \
   1121  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
   1122    program_prefix=$ac_optarg ;;
   1123
   1124  -program-suffix | --program-suffix | --program-suffi | --program-suff \
   1125  | --program-suf | --program-su | --program-s)
   1126    ac_prev=program_suffix ;;
   1127  -program-suffix=* | --program-suffix=* | --program-suffi=* \
   1128  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
   1129    program_suffix=$ac_optarg ;;
   1130
   1131  -program-transform-name | --program-transform-name \
   1132  | --program-transform-nam | --program-transform-na \
   1133  | --program-transform-n | --program-transform- \
   1134  | --program-transform | --program-transfor \
   1135  | --program-transfo | --program-transf \
   1136  | --program-trans | --program-tran \
   1137  | --progr-tra | --program-tr | --program-t)
   1138    ac_prev=program_transform_name ;;
   1139  -program-transform-name=* | --program-transform-name=* \
   1140  | --program-transform-nam=* | --program-transform-na=* \
   1141  | --program-transform-n=* | --program-transform-=* \
   1142  | --program-transform=* | --program-transfor=* \
   1143  | --program-transfo=* | --program-transf=* \
   1144  | --program-trans=* | --program-tran=* \
   1145  | --progr-tra=* | --program-tr=* | --program-t=*)
   1146    program_transform_name=$ac_optarg ;;
   1147
   1148  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
   1149    ac_prev=pdfdir ;;
   1150  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
   1151    pdfdir=$ac_optarg ;;
   1152
   1153  -psdir | --psdir | --psdi | --psd | --ps)
   1154    ac_prev=psdir ;;
   1155  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
   1156    psdir=$ac_optarg ;;
   1157
   1158  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   1159  | -silent | --silent | --silen | --sile | --sil)
   1160    silent=yes ;;
   1161
   1162  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
   1163    ac_prev=sbindir ;;
   1164  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
   1165  | --sbi=* | --sb=*)
   1166    sbindir=$ac_optarg ;;
   1167
   1168  -sharedstatedir | --sharedstatedir | --sharedstatedi \
   1169  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
   1170  | --sharedst | --shareds | --shared | --share | --shar \
   1171  | --sha | --sh)
   1172    ac_prev=sharedstatedir ;;
   1173  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
   1174  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
   1175  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
   1176  | --sha=* | --sh=*)
   1177    sharedstatedir=$ac_optarg ;;
   1178
   1179  -site | --site | --sit)
   1180    ac_prev=site ;;
   1181  -site=* | --site=* | --sit=*)
   1182    site=$ac_optarg ;;
   1183
   1184  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
   1185    ac_prev=srcdir ;;
   1186  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
   1187    srcdir=$ac_optarg ;;
   1188
   1189  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
   1190  | --syscon | --sysco | --sysc | --sys | --sy)
   1191    ac_prev=sysconfdir ;;
   1192  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
   1193  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
   1194    sysconfdir=$ac_optarg ;;
   1195
   1196  -target | --target | --targe | --targ | --tar | --ta | --t)
   1197    ac_prev=target_alias ;;
   1198  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
   1199    target_alias=$ac_optarg ;;
   1200
   1201  -v | -verbose | --verbose | --verbos | --verbo | --verb)
   1202    verbose=yes ;;
   1203
   1204  -version | --version | --versio | --versi | --vers | -V)
   1205    ac_init_version=: ;;
   1206
   1207  -with-* | --with-*)
   1208    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
   1209    # Reject names that are not valid shell variable names.
   1210    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1211      as_fn_error $? "invalid package name: $ac_useropt"
   1212    ac_useropt_orig=$ac_useropt
   1213    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1214    case $ac_user_opts in
   1215      *"
   1216"with_$ac_useropt"
   1217"*) ;;
   1218      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
   1219	 ac_unrecognized_sep=', ';;
   1220    esac
   1221    eval with_$ac_useropt=\$ac_optarg ;;
   1222
   1223  -without-* | --without-*)
   1224    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
   1225    # Reject names that are not valid shell variable names.
   1226    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1227      as_fn_error $? "invalid package name: $ac_useropt"
   1228    ac_useropt_orig=$ac_useropt
   1229    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1230    case $ac_user_opts in
   1231      *"
   1232"with_$ac_useropt"
   1233"*) ;;
   1234      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
   1235	 ac_unrecognized_sep=', ';;
   1236    esac
   1237    eval with_$ac_useropt=no ;;
   1238
   1239  --x)
   1240    # Obsolete; use --with-x.
   1241    with_x=yes ;;
   1242
   1243  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
   1244  | --x-incl | --x-inc | --x-in | --x-i)
   1245    ac_prev=x_includes ;;
   1246  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
   1247  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
   1248    x_includes=$ac_optarg ;;
   1249
   1250  -x-libraries | --x-libraries | --x-librarie | --x-librari \
   1251  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
   1252    ac_prev=x_libraries ;;
   1253  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
   1254  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
   1255    x_libraries=$ac_optarg ;;
   1256
   1257  -*) as_fn_error $? "unrecognized option: \`$ac_option'
   1258Try \`$0 --help' for more information"
   1259    ;;
   1260
   1261  *=*)
   1262    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
   1263    # Reject names that are not valid shell variable names.
   1264    case $ac_envvar in #(
   1265      '' | [0-9]* | *[!_$as_cr_alnum]* )
   1266      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
   1267    esac
   1268    eval $ac_envvar=\$ac_optarg
   1269    export $ac_envvar ;;
   1270
   1271  *)
   1272    # FIXME: should be removed in autoconf 3.0.
   1273    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
   1274    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   1275      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
   1276    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
   1277    ;;
   1278
   1279  esac
   1280done
   1281
   1282if test -n "$ac_prev"; then
   1283  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
   1284  as_fn_error $? "missing argument to $ac_option"
   1285fi
   1286
   1287if test -n "$ac_unrecognized_opts"; then
   1288  case $enable_option_checking in
   1289    no) ;;
   1290    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
   1291    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
   1292  esac
   1293fi
   1294
   1295# Check all directory arguments for consistency.
   1296for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
   1297		datadir sysconfdir sharedstatedir localstatedir includedir \
   1298		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
   1299		libdir localedir mandir
   1300do
   1301  eval ac_val=\$$ac_var
   1302  # Remove trailing slashes.
   1303  case $ac_val in
   1304    */ )
   1305      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
   1306      eval $ac_var=\$ac_val;;
   1307  esac
   1308  # Be sure to have absolute directory names.
   1309  case $ac_val in
   1310    [\\/$]* | ?:[\\/]* )  continue;;
   1311    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
   1312  esac
   1313  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
   1314done
   1315
   1316# There might be people who depend on the old broken behavior: `$host'
   1317# used to hold the argument of --host etc.
   1318# FIXME: To remove some day.
   1319build=$build_alias
   1320host=$host_alias
   1321target=$target_alias
   1322
   1323# FIXME: To remove some day.
   1324if test "x$host_alias" != x; then
   1325  if test "x$build_alias" = x; then
   1326    cross_compiling=maybe
   1327  elif test "x$build_alias" != "x$host_alias"; then
   1328    cross_compiling=yes
   1329  fi
   1330fi
   1331
   1332ac_tool_prefix=
   1333test -n "$host_alias" && ac_tool_prefix=$host_alias-
   1334
   1335test "$silent" = yes && exec 6>/dev/null
   1336
   1337
   1338ac_pwd=`pwd` && test -n "$ac_pwd" &&
   1339ac_ls_di=`ls -di .` &&
   1340ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
   1341  as_fn_error $? "working directory cannot be determined"
   1342test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
   1343  as_fn_error $? "pwd does not report name of working directory"
   1344
   1345
   1346# Find the source files, if location was not specified.
   1347if test -z "$srcdir"; then
   1348  ac_srcdir_defaulted=yes
   1349  # Try the directory containing this script, then the parent directory.
   1350  ac_confdir=`$as_dirname -- "$as_myself" ||
   1351$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   1352	 X"$as_myself" : 'X\(//\)[^/]' \| \
   1353	 X"$as_myself" : 'X\(//\)$' \| \
   1354	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
   1355$as_echo X"$as_myself" |
   1356    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   1357	    s//\1/
   1358	    q
   1359	  }
   1360	  /^X\(\/\/\)[^/].*/{
   1361	    s//\1/
   1362	    q
   1363	  }
   1364	  /^X\(\/\/\)$/{
   1365	    s//\1/
   1366	    q
   1367	  }
   1368	  /^X\(\/\).*/{
   1369	    s//\1/
   1370	    q
   1371	  }
   1372	  s/.*/./; q'`
   1373  srcdir=$ac_confdir
   1374  if test ! -r "$srcdir/$ac_unique_file"; then
   1375    srcdir=..
   1376  fi
   1377else
   1378  ac_srcdir_defaulted=no
   1379fi
   1380if test ! -r "$srcdir/$ac_unique_file"; then
   1381  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
   1382  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
   1383fi
   1384ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
   1385ac_abs_confdir=`(
   1386	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
   1387	pwd)`
   1388# When building in place, set srcdir=.
   1389if test "$ac_abs_confdir" = "$ac_pwd"; then
   1390  srcdir=.
   1391fi
   1392# Remove unnecessary trailing slashes from srcdir.
   1393# Double slashes in file names in object file debugging info
   1394# mess up M-x gdb in Emacs.
   1395case $srcdir in
   1396*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
   1397esac
   1398for ac_var in $ac_precious_vars; do
   1399  eval ac_env_${ac_var}_set=\${${ac_var}+set}
   1400  eval ac_env_${ac_var}_value=\$${ac_var}
   1401  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
   1402  eval ac_cv_env_${ac_var}_value=\$${ac_var}
   1403done
   1404
   1405#
   1406# Report the --help message.
   1407#
   1408if test "$ac_init_help" = "long"; then
   1409  # Omit some internal or obsolete options to make the list less imposing.
   1410  # This message is too long to be a string in the A/UX 3.1 sh.
   1411  cat <<_ACEOF
   1412\`configure' configures this package to adapt to many kinds of systems.
   1413
   1414Usage: $0 [OPTION]... [VAR=VALUE]...
   1415
   1416To assign environment variables (e.g., CC, CFLAGS...), specify them as
   1417VAR=VALUE.  See below for descriptions of some of the useful variables.
   1418
   1419Defaults for the options are specified in brackets.
   1420
   1421Configuration:
   1422  -h, --help              display this help and exit
   1423      --help=short        display options specific to this package
   1424      --help=recursive    display the short help of all the included packages
   1425  -V, --version           display version information and exit
   1426  -q, --quiet, --silent   do not print \`checking ...' messages
   1427      --cache-file=FILE   cache test results in FILE [disabled]
   1428  -C, --config-cache      alias for \`--cache-file=config.cache'
   1429  -n, --no-create         do not create output files
   1430      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
   1431
   1432Installation directories:
   1433  --prefix=PREFIX         install architecture-independent files in PREFIX
   1434                          [$ac_default_prefix]
   1435  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
   1436                          [PREFIX]
   1437
   1438By default, \`make install' will install all the files in
   1439\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
   1440an installation prefix other than \`$ac_default_prefix' using \`--prefix',
   1441for instance \`--prefix=\$HOME'.
   1442
   1443For better control, use the options below.
   1444
   1445Fine tuning of the installation directories:
   1446  --bindir=DIR            user executables [EPREFIX/bin]
   1447  --sbindir=DIR           system admin executables [EPREFIX/sbin]
   1448  --libexecdir=DIR        program executables [EPREFIX/libexec]
   1449  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
   1450  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
   1451  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
   1452  --libdir=DIR            object code libraries [EPREFIX/lib]
   1453  --includedir=DIR        C header files [PREFIX/include]
   1454  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
   1455  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
   1456  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
   1457  --infodir=DIR           info documentation [DATAROOTDIR/info]
   1458  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
   1459  --mandir=DIR            man documentation [DATAROOTDIR/man]
   1460  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
   1461  --htmldir=DIR           html documentation [DOCDIR]
   1462  --dvidir=DIR            dvi documentation [DOCDIR]
   1463  --pdfdir=DIR            pdf documentation [DOCDIR]
   1464  --psdir=DIR             ps documentation [DOCDIR]
   1465_ACEOF
   1466
   1467  cat <<\_ACEOF
   1468
   1469X features:
   1470  --x-includes=DIR    X include files are in DIR
   1471  --x-libraries=DIR   X library files are in DIR
   1472
   1473System types:
   1474  --build=BUILD     configure for building on BUILD [guessed]
   1475  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
   1476_ACEOF
   1477fi
   1478
   1479if test -n "$ac_init_help"; then
   1480
   1481  cat <<\_ACEOF
   1482
   1483Optional Features:
   1484  --disable-option-checking  ignore unrecognized --enable/--with options
   1485  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
   1486  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
   1487  --enable-shared[=PKGS]  build shared libraries [default=yes]
   1488  --enable-static[=PKGS]  build static libraries [default=yes]
   1489  --enable-fast-install[=PKGS]
   1490                          optimize for fast installation [default=yes]
   1491  --disable-libtool-lock  avoid locking (might break parallel builds)
   1492  --enable-assertions     Enable internal sanity checks
   1493                          (auto/disabled/release/enabled/paranoid)
   1494                          [[default=auto]]
   1495  --enable-dependency-tracking
   1496                          Use gcc -MMD -MT dependency tracking [[default=yes]]
   1497  --enable-libc           Use the system C library [[default=yes]]
   1498  --enable-gcc-atomics    Use gcc builtin atomics [[default=yes]]
   1499  --enable-atomic         Enable the atomic operations subsystem
   1500                          [[default=yes]]
   1501  --enable-audio          Enable the audio subsystem [[default=yes]]
   1502  --enable-video          Enable the video subsystem [[default=yes]]
   1503  --enable-render         Enable the render subsystem [[default=yes]]
   1504  --enable-events         Enable the events subsystem [[default=yes]]
   1505  --enable-joystick       Enable the joystick subsystem [[default=yes]]
   1506  --enable-haptic         Enable the haptic (force feedback) subsystem
   1507                          [[default=yes]]
   1508  --enable-power          Enable the power subsystem [[default=yes]]
   1509  --enable-filesystem     Enable the filesystem subsystem [[default=yes]]
   1510  --enable-threads        Enable the threading subsystem [[default=yes]]
   1511  --enable-timers         Enable the timer subsystem [[default=yes]]
   1512  --enable-file           Enable the file subsystem [[default=yes]]
   1513  --enable-loadso         Enable the shared object loading subsystem
   1514                          [[default=yes]]
   1515  --enable-cpuinfo        Enable the cpuinfo subsystem [[default=yes]]
   1516  --enable-assembly       Enable assembly routines [[default=yes]]
   1517  --enable-ssemath        Allow GCC to use SSE floating point math
   1518                          [[default=no]]
   1519  --enable-mmx            use MMX assembly routines [[default=yes]]
   1520  --enable-3dnow          use 3DNow! assembly routines [[default=yes]]
   1521  --enable-sse            use SSE assembly routines [[default=yes]]
   1522  --enable-sse2           use SSE2 assembly routines [[default=no]]
   1523  --enable-altivec        use Altivec assembly routines [[default=yes]]
   1524  --enable-oss            support the OSS audio API [[default=maybe]]
   1525  --enable-alsa           support the ALSA audio API [[default=yes]]
   1526  --disable-alsatest      Do not try to compile and run a test Alsa program
   1527  --enable-alsa-shared    dynamically load ALSA audio support [[default=yes]]
   1528  --enable-esd            support the Enlightened Sound Daemon [[default=yes]]
   1529  --disable-esdtest       Do not try to compile and run a test ESD program
   1530  --enable-esd-shared     dynamically load ESD audio support [[default=yes]]
   1531  --enable-pulseaudio     use PulseAudio [[default=yes]]
   1532  --enable-pulseaudio-shared
   1533                          dynamically load PulseAudio support [[default=yes]]
   1534  --enable-arts           support the Analog Real Time Synthesizer
   1535                          [[default=yes]]
   1536  --enable-arts-shared    dynamically load aRts audio support [[default=yes]]
   1537  --enable-nas            support the NAS audio API [[default=yes]]
   1538  --enable-nas-shared     dynamically load NAS audio support [[default=yes]]
   1539  --enable-sndio          support the sndio audio API [[default=yes]]
   1540  --enable-sndio-shared   dynamically load sndio audio support [[default=yes]]
   1541  --enable-diskaudio      support the disk writer audio driver [[default=yes]]
   1542  --enable-dummyaudio     support the dummy audio driver [[default=yes]]
   1543  --enable-video-wayland  use Wayland video driver [[default=yes]]
   1544  --enable-video-wayland-qt-touch
   1545                          QtWayland server support for Wayland video driver
   1546                          [[default=yes]]
   1547  --enable-wayland-shared dynamically load Wayland support [[default=maybe]]
   1548  --enable-video-mir      use Mir video driver [[default=yes]]
   1549  --enable-mir-shared     dynamically load Mir support [[default=maybe]]
   1550  --enable-video-x11      use X11 video driver [[default=yes]]
   1551  --enable-x11-shared     dynamically load X11 support [[default=maybe]]
   1552  --enable-video-x11-xcursor
   1553                          enable X11 Xcursor support [[default=yes]]
   1554  --enable-video-x11-xinerama
   1555                          enable X11 Xinerama support [[default=yes]]
   1556  --enable-video-x11-xinput
   1557                          enable X11 XInput extension for manymouse, tablets,
   1558                          etc [[default=yes]]
   1559  --enable-video-x11-xrandr
   1560                          enable X11 Xrandr extension for fullscreen
   1561                          [[default=yes]]
   1562  --enable-video-x11-scrnsaver
   1563                          enable X11 screensaver extension [[default=yes]]
   1564  --enable-video-x11-xshape
   1565                          enable X11 XShape support [[default=yes]]
   1566  --enable-video-x11-vm   use X11 VM extension for fullscreen [[default=yes]]
   1567  --enable-video-vivante  use Vivante EGL video driver [[default=yes]]
   1568  --enable-video-cocoa    use Cocoa video driver [[default=yes]]
   1569  --enable-video-directfb use DirectFB video driver [[default=no]]
   1570  --enable-directfb-shared
   1571                          dynamically load directfb support [[default=yes]]
   1572  --enable-fusionsound    use FusionSound audio driver [[default=no]]
   1573  --enable-fusionsound-shared
   1574                          dynamically load fusionsound audio support
   1575                          [[default=yes]]
   1576  --enable-video-dummy    use dummy video driver [[default=yes]]
   1577  --enable-video-opengl   include OpenGL support [[default=yes]]
   1578  --enable-video-opengles include OpenGL ES support [[default=yes]]
   1579  --enable-video-opengles1
   1580                          include OpenGL ES 1.1 support [[default=yes]]
   1581  --enable-video-opengles2
   1582                          include OpenGL ES 2.0 support [[default=yes]]
   1583  --enable-libudev        enable libudev support [[default=yes]]
   1584  --enable-dbus           enable D-Bus support [[default=yes]]
   1585  --enable-ibus           enable IBus support [[default=yes]]
   1586  --enable-input-tslib    use the Touchscreen library for input
   1587                          [[default=yes]]
   1588  --enable-pthreads       use POSIX threads for multi-threading
   1589                          [[default=yes]]
   1590  --enable-pthread-sem    use pthread semaphores [[default=yes]]
   1591  --enable-directx        use DirectX for Windows audio/video [[default=yes]]
   1592  --enable-sdl-dlopen     use dlopen for shared object loading [[default=yes]]
   1593  --enable-clock_gettime  use clock_gettime() instead of gettimeofday() on
   1594                          UNIX [[default=yes]]
   1595  --enable-rpath          use an rpath when linking SDL [[default=yes]]
   1596  --enable-render-d3d     enable the Direct3D render driver [[default=yes]]
   1597
   1598Optional Packages:
   1599  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
   1600  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
   1601  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
   1602                          both]
   1603  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
   1604  --with-sysroot=DIR Search for dependent libraries within DIR
   1605                        (or the compiler's sysroot if not specified).
   1606  --with-alsa-prefix=PFX  Prefix where Alsa library is installed(optional)
   1607  --with-alsa-inc-prefix=PFX  Prefix where include libraries are (optional)
   1608  --with-esd-prefix=PFX   Prefix where ESD is installed (optional)
   1609  --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
   1610  --with-x                use the X Window System
   1611
   1612Some influential environment variables:
   1613  CC          C compiler command
   1614  CFLAGS      C compiler flags
   1615  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
   1616              nonstandard directory <lib dir>
   1617  LIBS        libraries to pass to the linker, e.g. -l<library>
   1618  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
   1619              you have headers in a nonstandard directory <include dir>
   1620  CPP         C preprocessor
   1621  CXX         C++ compiler command
   1622  CXXFLAGS    C++ compiler flags
   1623  CXXCPP      C++ preprocessor
   1624  XMKMF       Path to xmkmf, Makefile generator for X Window System
   1625
   1626Use these variables to override the choices made by `configure' or to help
   1627it to find libraries and programs with nonstandard names/locations.
   1628
   1629Report bugs to the package provider.
   1630_ACEOF
   1631ac_status=$?
   1632fi
   1633
   1634if test "$ac_init_help" = "recursive"; then
   1635  # If there are subdirs, report their specific --help.
   1636  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
   1637    test -d "$ac_dir" ||
   1638      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
   1639      continue
   1640    ac_builddir=.
   1641
   1642case "$ac_dir" in
   1643.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1644*)
   1645  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
   1646  # A ".." for each directory in $ac_dir_suffix.
   1647  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   1648  case $ac_top_builddir_sub in
   1649  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1650  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   1651  esac ;;
   1652esac
   1653ac_abs_top_builddir=$ac_pwd
   1654ac_abs_builddir=$ac_pwd$ac_dir_suffix
   1655# for backward compatibility:
   1656ac_top_builddir=$ac_top_build_prefix
   1657
   1658case $srcdir in
   1659  .)  # We are building in place.
   1660    ac_srcdir=.
   1661    ac_top_srcdir=$ac_top_builddir_sub
   1662    ac_abs_top_srcdir=$ac_pwd ;;
   1663  [\\/]* | ?:[\\/]* )  # Absolute name.
   1664    ac_srcdir=$srcdir$ac_dir_suffix;
   1665    ac_top_srcdir=$srcdir
   1666    ac_abs_top_srcdir=$srcdir ;;
   1667  *) # Relative name.
   1668    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   1669    ac_top_srcdir=$ac_top_build_prefix$srcdir
   1670    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   1671esac
   1672ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   1673
   1674    cd "$ac_dir" || { ac_status=$?; continue; }
   1675    # Check for guested configure.
   1676    if test -f "$ac_srcdir/configure.gnu"; then
   1677      echo &&
   1678      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
   1679    elif test -f "$ac_srcdir/configure"; then
   1680      echo &&
   1681      $SHELL "$ac_srcdir/configure" --help=recursive
   1682    else
   1683      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
   1684    fi || ac_status=$?
   1685    cd "$ac_pwd" || { ac_status=$?; break; }
   1686  done
   1687fi
   1688
   1689test -n "$ac_init_help" && exit $ac_status
   1690if $ac_init_version; then
   1691  cat <<\_ACEOF
   1692configure
   1693generated by GNU Autoconf 2.69
   1694
   1695Copyright (C) 2012 Free Software Foundation, Inc.
   1696This configure script is free software; the Free Software Foundation
   1697gives unlimited permission to copy, distribute and modify it.
   1698_ACEOF
   1699  exit
   1700fi
   1701
   1702## ------------------------ ##
   1703## Autoconf initialization. ##
   1704## ------------------------ ##
   1705
   1706# ac_fn_c_try_compile LINENO
   1707# --------------------------
   1708# Try to compile conftest.$ac_ext, and return whether this succeeded.
   1709ac_fn_c_try_compile ()
   1710{
   1711  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1712  rm -f conftest.$ac_objext
   1713  if { { ac_try="$ac_compile"
   1714case "(($ac_try" in
   1715  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1716  *) ac_try_echo=$ac_try;;
   1717esac
   1718eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1719$as_echo "$ac_try_echo"; } >&5
   1720  (eval "$ac_compile") 2>conftest.err
   1721  ac_status=$?
   1722  if test -s conftest.err; then
   1723    grep -v '^ *+' conftest.err >conftest.er1
   1724    cat conftest.er1 >&5
   1725    mv -f conftest.er1 conftest.err
   1726  fi
   1727  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1728  test $ac_status = 0; } && {
   1729	 test -z "$ac_c_werror_flag" ||
   1730	 test ! -s conftest.err
   1731       } && test -s conftest.$ac_objext; then :
   1732  ac_retval=0
   1733else
   1734  $as_echo "$as_me: failed program was:" >&5
   1735sed 's/^/| /' conftest.$ac_ext >&5
   1736
   1737	ac_retval=1
   1738fi
   1739  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1740  as_fn_set_status $ac_retval
   1741
   1742} # ac_fn_c_try_compile
   1743
   1744# ac_fn_c_try_link LINENO
   1745# -----------------------
   1746# Try to link conftest.$ac_ext, and return whether this succeeded.
   1747ac_fn_c_try_link ()
   1748{
   1749  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1750  rm -f conftest.$ac_objext conftest$ac_exeext
   1751  if { { ac_try="$ac_link"
   1752case "(($ac_try" in
   1753  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1754  *) ac_try_echo=$ac_try;;
   1755esac
   1756eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1757$as_echo "$ac_try_echo"; } >&5
   1758  (eval "$ac_link") 2>conftest.err
   1759  ac_status=$?
   1760  if test -s conftest.err; then
   1761    grep -v '^ *+' conftest.err >conftest.er1
   1762    cat conftest.er1 >&5
   1763    mv -f conftest.er1 conftest.err
   1764  fi
   1765  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1766  test $ac_status = 0; } && {
   1767	 test -z "$ac_c_werror_flag" ||
   1768	 test ! -s conftest.err
   1769       } && test -s conftest$ac_exeext && {
   1770	 test "$cross_compiling" = yes ||
   1771	 test -x conftest$ac_exeext
   1772       }; then :
   1773  ac_retval=0
   1774else
   1775  $as_echo "$as_me: failed program was:" >&5
   1776sed 's/^/| /' conftest.$ac_ext >&5
   1777
   1778	ac_retval=1
   1779fi
   1780  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
   1781  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
   1782  # interfere with the next link command; also delete a directory that is
   1783  # left behind by Apple's compiler.  We do this before executing the actions.
   1784  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   1785  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1786  as_fn_set_status $ac_retval
   1787
   1788} # ac_fn_c_try_link
   1789
   1790# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
   1791# -------------------------------------------------------
   1792# Tests whether HEADER exists and can be compiled using the include files in
   1793# INCLUDES, setting the cache variable VAR accordingly.
   1794ac_fn_c_check_header_compile ()
   1795{
   1796  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1797  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1798$as_echo_n "checking for $2... " >&6; }
   1799if eval \${$3+:} false; then :
   1800  $as_echo_n "(cached) " >&6
   1801else
   1802  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1803/* end confdefs.h.  */
   1804$4
   1805#include <$2>
   1806_ACEOF
   1807if ac_fn_c_try_compile "$LINENO"; then :
   1808  eval "$3=yes"
   1809else
   1810  eval "$3=no"
   1811fi
   1812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1813fi
   1814eval ac_res=\$$3
   1815	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1816$as_echo "$ac_res" >&6; }
   1817  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1818
   1819} # ac_fn_c_check_header_compile
   1820
   1821# ac_fn_c_try_cpp LINENO
   1822# ----------------------
   1823# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
   1824ac_fn_c_try_cpp ()
   1825{
   1826  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1827  if { { ac_try="$ac_cpp conftest.$ac_ext"
   1828case "(($ac_try" in
   1829  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1830  *) ac_try_echo=$ac_try;;
   1831esac
   1832eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1833$as_echo "$ac_try_echo"; } >&5
   1834  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
   1835  ac_status=$?
   1836  if test -s conftest.err; then
   1837    grep -v '^ *+' conftest.err >conftest.er1
   1838    cat conftest.er1 >&5
   1839    mv -f conftest.er1 conftest.err
   1840  fi
   1841  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1842  test $ac_status = 0; } > conftest.i && {
   1843	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   1844	 test ! -s conftest.err
   1845       }; then :
   1846  ac_retval=0
   1847else
   1848  $as_echo "$as_me: failed program was:" >&5
   1849sed 's/^/| /' conftest.$ac_ext >&5
   1850
   1851    ac_retval=1
   1852fi
   1853  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1854  as_fn_set_status $ac_retval
   1855
   1856} # ac_fn_c_try_cpp
   1857
   1858# ac_fn_c_try_run LINENO
   1859# ----------------------
   1860# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
   1861# that executables *can* be run.
   1862ac_fn_c_try_run ()
   1863{
   1864  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1865  if { { ac_try="$ac_link"
   1866case "(($ac_try" in
   1867  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1868  *) ac_try_echo=$ac_try;;
   1869esac
   1870eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1871$as_echo "$ac_try_echo"; } >&5
   1872  (eval "$ac_link") 2>&5
   1873  ac_status=$?
   1874  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1875  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
   1876  { { case "(($ac_try" in
   1877  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1878  *) ac_try_echo=$ac_try;;
   1879esac
   1880eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1881$as_echo "$ac_try_echo"; } >&5
   1882  (eval "$ac_try") 2>&5
   1883  ac_status=$?
   1884  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1885  test $ac_status = 0; }; }; then :
   1886  ac_retval=0
   1887else
   1888  $as_echo "$as_me: program exited with status $ac_status" >&5
   1889       $as_echo "$as_me: failed program was:" >&5
   1890sed 's/^/| /' conftest.$ac_ext >&5
   1891
   1892       ac_retval=$ac_status
   1893fi
   1894  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   1895  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1896  as_fn_set_status $ac_retval
   1897
   1898} # ac_fn_c_try_run
   1899
   1900# ac_fn_c_check_func LINENO FUNC VAR
   1901# ----------------------------------
   1902# Tests whether FUNC exists, setting the cache variable VAR accordingly
   1903ac_fn_c_check_func ()
   1904{
   1905  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1906  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1907$as_echo_n "checking for $2... " >&6; }
   1908if eval \${$3+:} false; then :
   1909  $as_echo_n "(cached) " >&6
   1910else
   1911  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1912/* end confdefs.h.  */
   1913/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
   1914   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   1915#define $2 innocuous_$2
   1916
   1917/* System header to define __stub macros and hopefully few prototypes,
   1918    which can conflict with char $2 (); below.
   1919    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   1920    <limits.h> exists even on freestanding compilers.  */
   1921
   1922#ifdef __STDC__
   1923# include <limits.h>
   1924#else
   1925# include <assert.h>
   1926#endif
   1927
   1928#undef $2
   1929
   1930/* Override any GCC internal prototype to avoid an error.
   1931   Use char because int might match the return type of a GCC
   1932   builtin and then its argument prototype would still apply.  */
   1933#ifdef __cplusplus
   1934extern "C"
   1935#endif
   1936char $2 ();
   1937/* The GNU C library defines this for functions which it implements
   1938    to always fail with ENOSYS.  Some functions are actually named
   1939    something starting with __ and the normal name is an alias.  */
   1940#if defined __stub_$2 || defined __stub___$2
   1941choke me
   1942#endif
   1943
   1944int
   1945main ()
   1946{
   1947return $2 ();
   1948  ;
   1949  return 0;
   1950}
   1951_ACEOF
   1952if ac_fn_c_try_link "$LINENO"; then :
   1953  eval "$3=yes"
   1954else
   1955  eval "$3=no"
   1956fi
   1957rm -f core conftest.err conftest.$ac_objext \
   1958    conftest$ac_exeext conftest.$ac_ext
   1959fi
   1960eval ac_res=\$$3
   1961	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1962$as_echo "$ac_res" >&6; }
   1963  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1964
   1965} # ac_fn_c_check_func
   1966
   1967# ac_fn_cxx_try_compile LINENO
   1968# ----------------------------
   1969# Try to compile conftest.$ac_ext, and return whether this succeeded.
   1970ac_fn_cxx_try_compile ()
   1971{
   1972  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1973  rm -f conftest.$ac_objext
   1974  if { { ac_try="$ac_compile"
   1975case "(($ac_try" in
   1976  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1977  *) ac_try_echo=$ac_try;;
   1978esac
   1979eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1980$as_echo "$ac_try_echo"; } >&5
   1981  (eval "$ac_compile") 2>conftest.err
   1982  ac_status=$?
   1983  if test -s conftest.err; then
   1984    grep -v '^ *+' conftest.err >conftest.er1
   1985    cat conftest.er1 >&5
   1986    mv -f conftest.er1 conftest.err
   1987  fi
   1988  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1989  test $ac_status = 0; } && {
   1990	 test -z "$ac_cxx_werror_flag" ||
   1991	 test ! -s conftest.err
   1992       } && test -s conftest.$ac_objext; then :
   1993  ac_retval=0
   1994else
   1995  $as_echo "$as_me: failed program was:" >&5
   1996sed 's/^/| /' conftest.$ac_ext >&5
   1997
   1998	ac_retval=1
   1999fi
   2000  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2001  as_fn_set_status $ac_retval
   2002
   2003} # ac_fn_cxx_try_compile
   2004
   2005# ac_fn_cxx_try_cpp LINENO
   2006# ------------------------
   2007# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
   2008ac_fn_cxx_try_cpp ()
   2009{
   2010  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2011  if { { ac_try="$ac_cpp conftest.$ac_ext"
   2012case "(($ac_try" in
   2013  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2014  *) ac_try_echo=$ac_try;;
   2015esac
   2016eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   2017$as_echo "$ac_try_echo"; } >&5
   2018  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
   2019  ac_status=$?
   2020  if test -s conftest.err; then
   2021    grep -v '^ *+' conftest.err >conftest.er1
   2022    cat conftest.er1 >&5
   2023    mv -f conftest.er1 conftest.err
   2024  fi
   2025  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   2026  test $ac_status = 0; } > conftest.i && {
   2027	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
   2028	 test ! -s conftest.err
   2029       }; then :
   2030  ac_retval=0
   2031else
   2032  $as_echo "$as_me: failed program was:" >&5
   2033sed 's/^/| /' conftest.$ac_ext >&5
   2034
   2035    ac_retval=1
   2036fi
   2037  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2038  as_fn_set_status $ac_retval
   2039
   2040} # ac_fn_cxx_try_cpp
   2041
   2042# ac_fn_cxx_try_link LINENO
   2043# -------------------------
   2044# Try to link conftest.$ac_ext, and return whether this succeeded.
   2045ac_fn_cxx_try_link ()
   2046{
   2047  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2048  rm -f conftest.$ac_objext conftest$ac_exeext
   2049  if { { ac_try="$ac_link"
   2050case "(($ac_try" in
   2051  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2052  *) ac_try_echo=$ac_try;;
   2053esac
   2054eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   2055$as_echo "$ac_try_echo"; } >&5
   2056  (eval "$ac_link") 2>conftest.err
   2057  ac_status=$?
   2058  if test -s conftest.err; then
   2059    grep -v '^ *+' conftest.err >conftest.er1
   2060    cat conftest.er1 >&5
   2061    mv -f conftest.er1 conftest.err
   2062  fi
   2063  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   2064  test $ac_status = 0; } && {
   2065	 test -z "$ac_cxx_werror_flag" ||
   2066	 test ! -s conftest.err
   2067       } && test -s conftest$ac_exeext && {
   2068	 test "$cross_compiling" = yes ||
   2069	 test -x conftest$ac_exeext
   2070       }; then :
   2071  ac_retval=0
   2072else
   2073  $as_echo "$as_me: failed program was:" >&5
   2074sed 's/^/| /' conftest.$ac_ext >&5
   2075
   2076	ac_retval=1
   2077fi
   2078  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
   2079  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
   2080  # interfere with the next link command; also delete a directory that is
   2081  # left behind by Apple's compiler.  We do this before executing the actions.
   2082  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   2083  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2084  as_fn_set_status $ac_retval
   2085
   2086} # ac_fn_cxx_try_link
   2087
   2088# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
   2089# -------------------------------------------------------
   2090# Tests whether HEADER exists, giving a warning if it cannot be compiled using
   2091# the include files in INCLUDES and setting the cache variable VAR
   2092# accordingly.
   2093ac_fn_c_check_header_mongrel ()
   2094{
   2095  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2096  if eval \${$3+:} false; then :
   2097  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   2098$as_echo_n "checking for $2... " >&6; }
   2099if eval \${$3+:} false; then :
   2100  $as_echo_n "(cached) " >&6
   2101fi
   2102eval ac_res=\$$3
   2103	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2104$as_echo "$ac_res" >&6; }
   2105else
   2106  # Is the header compilable?
   2107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
   2108$as_echo_n "checking $2 usability... " >&6; }
   2109cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2110/* end confdefs.h.  */
   2111$4
   2112#include <$2>
   2113_ACEOF
   2114if ac_fn_c_try_compile "$LINENO"; then :
   2115  ac_header_compiler=yes
   2116else
   2117  ac_header_compiler=no
   2118fi
   2119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
   2121$as_echo "$ac_header_compiler" >&6; }
   2122
   2123# Is the header present?
   2124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
   2125$as_echo_n "checking $2 presence... " >&6; }
   2126cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2127/* end confdefs.h.  */
   2128#include <$2>
   2129_ACEOF
   2130if ac_fn_c_try_cpp "$LINENO"; then :
   2131  ac_header_preproc=yes
   2132else
   2133  ac_header_preproc=no
   2134fi
   2135rm -f conftest.err conftest.i conftest.$ac_ext
   2136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
   2137$as_echo "$ac_header_preproc" >&6; }
   2138
   2139# So?  What about this header?
   2140case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
   2141  yes:no: )
   2142    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
   2143$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
   2144    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
   2145$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
   2146    ;;
   2147  no:yes:* )
   2148    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
   2149$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
   2150    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
   2151$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
   2152    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
   2153$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
   2154    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
   2155$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
   2156    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
   2157$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
   2158    ;;
   2159esac
   2160  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   2161$as_echo_n "checking for $2... " >&6; }
   2162if eval \${$3+:} false; then :
   2163  $as_echo_n "(cached) " >&6
   2164else
   2165  eval "$3=\$ac_header_compiler"
   2166fi
   2167eval ac_res=\$$3
   2168	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2169$as_echo "$ac_res" >&6; }
   2170fi
   2171  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2172
   2173} # ac_fn_c_check_header_mongrel
   2174
   2175# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
   2176# -------------------------------------------
   2177# Tests whether TYPE exists after having included INCLUDES, setting cache
   2178# variable VAR accordingly.
   2179ac_fn_c_check_type ()
   2180{
   2181  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2182  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   2183$as_echo_n "checking for $2... " >&6; }
   2184if eval \${$3+:} false; then :
   2185  $as_echo_n "(cached) " >&6
   2186else
   2187  eval "$3=no"
   2188  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2189/* end confdefs.h.  */
   2190$4
   2191int
   2192main ()
   2193{
   2194if (sizeof ($2))
   2195	 return 0;
   2196  ;
   2197  return 0;
   2198}
   2199_ACEOF
   2200if ac_fn_c_try_compile "$LINENO"; then :
   2201  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2202/* end confdefs.h.  */
   2203$4
   2204int
   2205main ()
   2206{
   2207if (sizeof (($2)))
   2208	    return 0;
   2209  ;
   2210  return 0;
   2211}
   2212_ACEOF
   2213if ac_fn_c_try_compile "$LINENO"; then :
   2214
   2215else
   2216  eval "$3=yes"
   2217fi
   2218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2219fi
   2220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2221fi
   2222eval ac_res=\$$3
   2223	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2224$as_echo "$ac_res" >&6; }
   2225  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2226
   2227} # ac_fn_c_check_type
   2228
   2229# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
   2230# ----------------------------------------------------
   2231# Tries to find if the field MEMBER exists in type AGGR, after including
   2232# INCLUDES, setting cache variable VAR accordingly.
   2233ac_fn_c_check_member ()
   2234{
   2235  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2236  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
   2237$as_echo_n "checking for $2.$3... " >&6; }
   2238if eval \${$4+:} false; then :
   2239  $as_echo_n "(cached) " >&6
   2240else
   2241  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2242/* end confdefs.h.  */
   2243$5
   2244int
   2245main ()
   2246{
   2247static $2 ac_aggr;
   2248if (ac_aggr.$3)
   2249return 0;
   2250  ;
   2251  return 0;
   2252}
   2253_ACEOF
   2254if ac_fn_c_try_compile "$LINENO"; then :
   2255  eval "$4=yes"
   2256else
   2257  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2258/* end confdefs.h.  */
   2259$5
   2260int
   2261main ()
   2262{
   2263static $2 ac_aggr;
   2264if (sizeof ac_aggr.$3)
   2265return 0;
   2266  ;
   2267  return 0;
   2268}
   2269_ACEOF
   2270if ac_fn_c_try_compile "$LINENO"; then :
   2271  eval "$4=yes"
   2272else
   2273  eval "$4=no"
   2274fi
   2275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2276fi
   2277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2278fi
   2279eval ac_res=\$$4
   2280	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2281$as_echo "$ac_res" >&6; }
   2282  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2283
   2284} # ac_fn_c_check_member
   2285cat >config.log <<_ACEOF
   2286This file contains any messages produced by compilers while
   2287running configure, to aid debugging if configure makes a mistake.
   2288
   2289It was created by $as_me, which was
   2290generated by GNU Autoconf 2.69.  Invocation command line was
   2291
   2292  $ $0 $@
   2293
   2294_ACEOF
   2295exec 5>>config.log
   2296{
   2297cat <<_ASUNAME
   2298## --------- ##
   2299## Platform. ##
   2300## --------- ##
   2301
   2302hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
   2303uname -m = `(uname -m) 2>/dev/null || echo unknown`
   2304uname -r = `(uname -r) 2>/dev/null || echo unknown`
   2305uname -s = `(uname -s) 2>/dev/null || echo unknown`
   2306uname -v = `(uname -v) 2>/dev/null || echo unknown`
   2307
   2308/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
   2309/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
   2310
   2311/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
   2312/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
   2313/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
   2314/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
   2315/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
   2316/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
   2317/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
   2318
   2319_ASUNAME
   2320
   2321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2322for as_dir in $PATH
   2323do
   2324  IFS=$as_save_IFS
   2325  test -z "$as_dir" && as_dir=.
   2326    $as_echo "PATH: $as_dir"
   2327  done
   2328IFS=$as_save_IFS
   2329
   2330} >&5
   2331
   2332cat >&5 <<_ACEOF
   2333
   2334
   2335## ----------- ##
   2336## Core tests. ##
   2337## ----------- ##
   2338
   2339_ACEOF
   2340
   2341
   2342# Keep a trace of the command line.
   2343# Strip out --no-create and --no-recursion so they do not pile up.
   2344# Strip out --silent because we don't want to record it for future runs.
   2345# Also quote any args containing shell meta-characters.
   2346# Make two passes to allow for proper duplicate-argument suppression.
   2347ac_configure_args=
   2348ac_configure_args0=
   2349ac_configure_args1=
   2350ac_must_keep_next=false
   2351for ac_pass in 1 2
   2352do
   2353  for ac_arg
   2354  do
   2355    case $ac_arg in
   2356    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
   2357    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   2358    | -silent | --silent | --silen | --sile | --sil)
   2359      continue ;;
   2360    *\'*)
   2361      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   2362    esac
   2363    case $ac_pass in
   2364    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
   2365    2)
   2366      as_fn_append ac_configure_args1 " '$ac_arg'"
   2367      if test $ac_must_keep_next = true; then
   2368	ac_must_keep_next=false # Got value, back to normal.
   2369      else
   2370	case $ac_arg in
   2371	  *=* | --config-cache | -C | -disable-* | --disable-* \
   2372	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
   2373	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
   2374	  | -with-* | --with-* | -without-* | --without-* | --x)
   2375	    case "$ac_configure_args0 " in
   2376	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
   2377	    esac
   2378	    ;;
   2379	  -* ) ac_must_keep_next=true ;;
   2380	esac
   2381      fi
   2382      as_fn_append ac_configure_args " '$ac_arg'"
   2383      ;;
   2384    esac
   2385  done
   2386done
   2387{ ac_configure_args0=; unset ac_configure_args0;}
   2388{ ac_configure_args1=; unset ac_configure_args1;}
   2389
   2390# When interrupted or exit'd, cleanup temporary files, and complete
   2391# config.log.  We remove comments because anyway the quotes in there
   2392# would cause problems or look ugly.
   2393# WARNING: Use '\'' to represent an apostrophe within the trap.
   2394# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
   2395trap 'exit_status=$?
   2396  # Save into config.log some information that might help in debugging.
   2397  {
   2398    echo
   2399
   2400    $as_echo "## ---------------- ##
   2401## Cache variables. ##
   2402## ---------------- ##"
   2403    echo
   2404    # The following way of writing the cache mishandles newlines in values,
   2405(
   2406  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
   2407    eval ac_val=\$$ac_var
   2408    case $ac_val in #(
   2409    *${as_nl}*)
   2410      case $ac_var in #(
   2411      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   2412$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   2413      esac
   2414      case $ac_var in #(
   2415      _ | IFS | as_nl) ;; #(
   2416      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   2417      *) { eval $ac_var=; unset $ac_var;} ;;
   2418      esac ;;
   2419    esac
   2420  done
   2421  (set) 2>&1 |
   2422    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
   2423    *${as_nl}ac_space=\ *)
   2424      sed -n \
   2425	"s/'\''/'\''\\\\'\'''\''/g;
   2426	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
   2427      ;; #(
   2428    *)
   2429      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   2430      ;;
   2431    esac |
   2432    sort
   2433)
   2434    echo
   2435
   2436    $as_echo "## ----------------- ##
   2437## Output variables. ##
   2438## ----------------- ##"
   2439    echo
   2440    for ac_var in $ac_subst_vars
   2441    do
   2442      eval ac_val=\$$ac_var
   2443      case $ac_val in
   2444      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   2445      esac
   2446      $as_echo "$ac_var='\''$ac_val'\''"
   2447    done | sort
   2448    echo
   2449
   2450    if test -n "$ac_subst_files"; then
   2451      $as_echo "## ------------------- ##
   2452## File substitutions. ##
   2453## ------------------- ##"
   2454      echo
   2455      for ac_var in $ac_subst_files
   2456      do
   2457	eval ac_val=\$$ac_var
   2458	case $ac_val in
   2459	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   2460	esac
   2461	$as_echo "$ac_var='\''$ac_val'\''"
   2462      done | sort
   2463      echo
   2464    fi
   2465
   2466    if test -s confdefs.h; then
   2467      $as_echo "## ----------- ##
   2468## confdefs.h. ##
   2469## ----------- ##"
   2470      echo
   2471      cat confdefs.h
   2472      echo
   2473    fi
   2474    test "$ac_signal" != 0 &&
   2475      $as_echo "$as_me: caught signal $ac_signal"
   2476    $as_echo "$as_me: exit $exit_status"
   2477  } >&5
   2478  rm -f core *.core core.conftest.* &&
   2479    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
   2480    exit $exit_status
   2481' 0
   2482for ac_signal in 1 2 13 15; do
   2483  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
   2484done
   2485ac_signal=0
   2486
   2487# confdefs.h avoids OS command line length limits that DEFS can exceed.
   2488rm -f -r conftest* confdefs.h
   2489
   2490$as_echo "/* confdefs.h */" > confdefs.h
   2491
   2492# Predefined preprocessor variables.
   2493
   2494cat >>confdefs.h <<_ACEOF
   2495#define PACKAGE_NAME "$PACKAGE_NAME"
   2496_ACEOF
   2497
   2498cat >>confdefs.h <<_ACEOF
   2499#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
   2500_ACEOF
   2501
   2502cat >>confdefs.h <<_ACEOF
   2503#define PACKAGE_VERSION "$PACKAGE_VERSION"
   2504_ACEOF
   2505
   2506cat >>confdefs.h <<_ACEOF
   2507#define PACKAGE_STRING "$PACKAGE_STRING"
   2508_ACEOF
   2509
   2510cat >>confdefs.h <<_ACEOF
   2511#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
   2512_ACEOF
   2513
   2514cat >>confdefs.h <<_ACEOF
   2515#define PACKAGE_URL "$PACKAGE_URL"
   2516_ACEOF
   2517
   2518
   2519# Let the site file select an alternate cache file if it wants to.
   2520# Prefer an explicitly selected file to automatically selected ones.
   2521ac_site_file1=NONE
   2522ac_site_file2=NONE
   2523if test -n "$CONFIG_SITE"; then
   2524  # We do not want a PATH search for config.site.
   2525  case $CONFIG_SITE in #((
   2526    -*)  ac_site_file1=./$CONFIG_SITE;;
   2527    */*) ac_site_file1=$CONFIG_SITE;;
   2528    *)   ac_site_file1=./$CONFIG_SITE;;
   2529  esac
   2530elif test "x$prefix" != xNONE; then
   2531  ac_site_file1=$prefix/share/config.site
   2532  ac_site_file2=$prefix/etc/config.site
   2533else
   2534  ac_site_file1=$ac_default_prefix/share/config.site
   2535  ac_site_file2=$ac_default_prefix/etc/config.site
   2536fi
   2537for ac_site_file in "$ac_site_file1" "$ac_site_file2"
   2538do
   2539  test "x$ac_site_file" = xNONE && continue
   2540  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
   2541    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
   2542$as_echo "$as_me: loading site script $ac_site_file" >&6;}
   2543    sed 's/^/| /' "$ac_site_file" >&5
   2544    . "$ac_site_file" \
   2545      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2546$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   2547as_fn_error $? "failed to load site script $ac_site_file
   2548See \`config.log' for more details" "$LINENO" 5; }
   2549  fi
   2550done
   2551
   2552if test -r "$cache_file"; then
   2553  # Some versions of bash will fail to source /dev/null (special files
   2554  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
   2555  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
   2556    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
   2557$as_echo "$as_me: loading cache $cache_file" >&6;}
   2558    case $cache_file in
   2559      [\\/]* | ?:[\\/]* ) . "$cache_file";;
   2560      *)                      . "./$cache_file";;
   2561    esac
   2562  fi
   2563else
   2564  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
   2565$as_echo "$as_me: creating cache $cache_file" >&6;}
   2566  >$cache_file
   2567fi
   2568
   2569# Check that the precious variables saved in the cache have kept the same
   2570# value.
   2571ac_cache_corrupted=false
   2572for ac_var in $ac_precious_vars; do
   2573  eval ac_old_set=\$ac_cv_env_${ac_var}_set
   2574  eval ac_new_set=\$ac_env_${ac_var}_set
   2575  eval ac_old_val=\$ac_cv_env_${ac_var}_value
   2576  eval ac_new_val=\$ac_env_${ac_var}_value
   2577  case $ac_old_set,$ac_new_set in
   2578    set,)
   2579      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
   2580$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
   2581      ac_cache_corrupted=: ;;
   2582    ,set)
   2583      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
   2584$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
   2585      ac_cache_corrupted=: ;;
   2586    ,);;
   2587    *)
   2588      if test "x$ac_old_val" != "x$ac_new_val"; then
   2589	# differences in whitespace do not lead to failure.
   2590	ac_old_val_w=`echo x $ac_old_val`
   2591	ac_new_val_w=`echo x $ac_new_val`
   2592	if test "$ac_old_val_w" != "$ac_new_val_w"; then
   2593	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
   2594$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
   2595	  ac_cache_corrupted=:
   2596	else
   2597	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
   2598$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
   2599	  eval $ac_var=\$ac_old_val
   2600	fi
   2601	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
   2602$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
   2603	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
   2604$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
   2605      fi;;
   2606  esac
   2607  # Pass precious variables to config.status.
   2608  if test "$ac_new_set" = set; then
   2609    case $ac_new_val in
   2610    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
   2611    *) ac_arg=$ac_var=$ac_new_val ;;
   2612    esac
   2613    case " $ac_configure_args " in
   2614      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
   2615      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
   2616    esac
   2617  fi
   2618done
   2619if $ac_cache_corrupted; then
   2620  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2621$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   2622  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
   2623$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
   2624  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
   2625fi
   2626## -------------------- ##
   2627## Main body of script. ##
   2628## -------------------- ##
   2629
   2630ac_ext=c
   2631ac_cpp='$CPP $CPPFLAGS'
   2632ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2633ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2634ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2635
   2636
   2637ac_config_headers="$ac_config_headers include/SDL_config.h"
   2638
   2639ac_aux_dir=
   2640for ac_dir in build-scripts "$srcdir"/build-scripts; do
   2641  if test -f "$ac_dir/install-sh"; then
   2642    ac_aux_dir=$ac_dir
   2643    ac_install_sh="$ac_aux_dir/install-sh -c"
   2644    break
   2645  elif test -f "$ac_dir/install.sh"; then
   2646    ac_aux_dir=$ac_dir
   2647    ac_install_sh="$ac_aux_dir/install.sh -c"
   2648    break
   2649  elif test -f "$ac_dir/shtool"; then
   2650    ac_aux_dir=$ac_dir
   2651    ac_install_sh="$ac_aux_dir/shtool install -c"
   2652    break
   2653  fi
   2654done
   2655if test -z "$ac_aux_dir"; then
   2656  as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5
   2657fi
   2658
   2659# These three variables are undocumented and unsupported,
   2660# and are intended to be withdrawn in a future Autoconf release.
   2661# They can cause serious problems if a builder's source tree is in a directory
   2662# whose full name contains unusual characters.
   2663ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
   2664ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
   2665ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
   2666
   2667
   2668
   2669
   2670orig_CFLAGS="$CFLAGS"
   2671
   2672#
   2673# Making releases:
   2674# Edit include/SDL_version.h and change the version, then:
   2675#   SDL_MICRO_VERSION += 1;
   2676#   SDL_INTERFACE_AGE += 1;
   2677#   SDL_BINARY_AGE += 1;
   2678# if any functions have been added, set SDL_INTERFACE_AGE to 0.
   2679# if backwards compatibility has been broken,
   2680# set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
   2681#
   2682SDL_MAJOR_VERSION=2
   2683SDL_MINOR_VERSION=0
   2684SDL_MICRO_VERSION=4
   2685SDL_INTERFACE_AGE=0
   2686SDL_BINARY_AGE=4
   2687SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
   2688
   2689
   2690
   2691
   2692
   2693
   2694
   2695
   2696# libtool versioning
   2697case `pwd` in
   2698  *\ * | *\	*)
   2699    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
   2700$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
   2701esac
   2702
   2703
   2704
   2705macro_version='2.4.2'
   2706macro_revision='1.3337'
   2707
   2708
   2709
   2710
   2711
   2712
   2713
   2714
   2715
   2716
   2717
   2718
   2719
   2720ltmain="$ac_aux_dir/ltmain.sh"
   2721
   2722# Make sure we can run config.sub.
   2723$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
   2724  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
   2725
   2726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
   2727$as_echo_n "checking build system type... " >&6; }
   2728if ${ac_cv_build+:} false; then :
   2729  $as_echo_n "(cached) " >&6
   2730else
   2731  ac_build_alias=$build_alias
   2732test "x$ac_build_alias" = x &&
   2733  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
   2734test "x$ac_build_alias" = x &&
   2735  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
   2736ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
   2737  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
   2738
   2739fi
   2740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
   2741$as_echo "$ac_cv_build" >&6; }
   2742case $ac_cv_build in
   2743*-*-*) ;;
   2744*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
   2745esac
   2746build=$ac_cv_build
   2747ac_save_IFS=$IFS; IFS='-'
   2748set x $ac_cv_build
   2749shift
   2750build_cpu=$1
   2751build_vendor=$2
   2752shift; shift
   2753# Remember, the first character of IFS is used to create $*,
   2754# except with old shells:
   2755build_os=$*
   2756IFS=$ac_save_IFS
   2757case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
   2758
   2759
   2760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
   2761$as_echo_n "checking host system type... " >&6; }
   2762if ${ac_cv_host+:} false; then :
   2763  $as_echo_n "(cached) " >&6
   2764else
   2765  if test "x$host_alias" = x; then
   2766  ac_cv_host=$ac_cv_build
   2767else
   2768  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
   2769    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
   2770fi
   2771
   2772fi
   2773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
   2774$as_echo "$ac_cv_host" >&6; }
   2775case $ac_cv_host in
   2776*-*-*) ;;
   2777*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
   2778esac
   2779host=$ac_cv_host
   2780ac_save_IFS=$IFS; IFS='-'
   2781set x $ac_cv_host
   2782shift
   2783host_cpu=$1
   2784host_vendor=$2
   2785shift; shift
   2786# Remember, the first character of IFS is used to create $*,
   2787# except with old shells:
   2788host_os=$*
   2789IFS=$ac_save_IFS
   2790case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
   2791
   2792
   2793# Backslashify metacharacters that are still active within
   2794# double-quoted strings.
   2795sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
   2796
   2797# Same as above, but do not quote variable references.
   2798double_quote_subst='s/\(["`\\]\)/\\\1/g'
   2799
   2800# Sed substitution to delay expansion of an escaped shell variable in a
   2801# double_quote_subst'ed string.
   2802delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
   2803
   2804# Sed substitution to delay expansion of an escaped single quote.
   2805delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
   2806
   2807# Sed substitution to avoid accidental globbing in evaled expressions
   2808no_glob_subst='s/\*/\\\*/g'
   2809
   2810ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
   2811ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
   2812ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
   2813
   2814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
   2815$as_echo_n "checking how to print strings... " >&6; }
   2816# Test print first, because it will be a builtin if present.
   2817if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
   2818   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
   2819  ECHO='print -r --'
   2820elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
   2821  ECHO='printf %s\n'
   2822else
   2823  # Use this function as a fallback that always works.
   2824  func_fallback_echo ()
   2825  {
   2826    eval 'cat <<_LTECHO_EOF
   2827$1
   2828_LTECHO_EOF'
   2829  }
   2830  ECHO='func_fallback_echo'
   2831fi
   2832
   2833# func_echo_all arg...
   2834# Invoke $ECHO with all args, space-separated.
   2835func_echo_all ()
   2836{
   2837    $ECHO ""
   2838}
   2839
   2840case "$ECHO" in
   2841  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
   2842$as_echo "printf" >&6; } ;;
   2843  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
   2844$as_echo "print -r" >&6; } ;;
   2845  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
   2846$as_echo "cat" >&6; } ;;
   2847esac
   2848
   2849
   2850
   2851
   2852
   2853
   2854
   2855
   2856
   2857
   2858
   2859
   2860
   2861
   2862ac_ext=c
   2863ac_cpp='$CPP $CPPFLAGS'
   2864ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2865ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2866ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2867if test -n "$ac_tool_prefix"; then
   2868  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
   2869set dummy ${ac_tool_prefix}gcc; ac_word=$2
   2870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2871$as_echo_n "checking for $ac_word... " >&6; }
   2872if ${ac_cv_prog_CC+:} false; then :
   2873  $as_echo_n "(cached) " >&6
   2874else
   2875  if test -n "$CC"; then
   2876  ac_cv_prog_CC="$CC" # Let the user override the test.
   2877else
   2878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2879for as_dir in $PATH
   2880do
   2881  IFS=$as_save_IFS
   2882  test -z "$as_dir" && as_dir=.
   2883    for ac_exec_ext in '' $ac_executable_extensions; do
   2884  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2885    ac_cv_prog_CC="${ac_tool_prefix}gcc"
   2886    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2887    break 2
   2888  fi
   2889done
   2890  done
   2891IFS=$as_save_IFS
   2892
   2893fi
   2894fi
   2895CC=$ac_cv_prog_CC
   2896if test -n "$CC"; then
   2897  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   2898$as_echo "$CC" >&6; }
   2899else
   2900  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2901$as_echo "no" >&6; }
   2902fi
   2903
   2904
   2905fi
   2906if test -z "$ac_cv_prog_CC"; then
   2907  ac_ct_CC=$CC
   2908  # Extract the first word of "gcc", so it can be a program name with args.
   2909set dummy gcc; ac_word=$2
   2910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2911$as_echo_n "checking for $ac_word... " >&6; }
   2912if ${ac_cv_prog_ac_ct_CC+:} false; then :
   2913  $as_echo_n "(cached) " >&6
   2914else
   2915  if test -n "$ac_ct_CC"; then
   2916  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   2917else
   2918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2919for as_dir in $PATH
   2920do
   2921  IFS=$as_save_IFS
   2922  test -z "$as_dir" && as_dir=.
   2923    for ac_exec_ext in '' $ac_executable_extensions; do
   2924  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2925    ac_cv_prog_ac_ct_CC="gcc"
   2926    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2927    break 2
   2928  fi
   2929done
   2930  done
   2931IFS=$as_save_IFS
   2932
   2933fi
   2934fi
   2935ac_ct_CC=$ac_cv_prog_ac_ct_CC
   2936if test -n "$ac_ct_CC"; then
   2937  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   2938$as_echo "$ac_ct_CC" >&6; }
   2939else
   2940  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2941$as_echo "no" >&6; }
   2942fi
   2943
   2944  if test "x$ac_ct_CC" = x; then
   2945    CC=""
   2946  else
   2947    case $cross_compiling:$ac_tool_warned in
   2948yes:)
   2949{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   2950$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   2951ac_tool_warned=yes ;;
   2952esac
   2953    CC=$ac_ct_CC
   2954  fi
   2955else
   2956  CC="$ac_cv_prog_CC"
   2957fi
   2958
   2959if test -z "$CC"; then
   2960          if test -n "$ac_tool_prefix"; then
   2961    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
   2962set dummy ${ac_tool_prefix}cc; ac_word=$2
   2963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2964$as_echo_n "checking for $ac_word... " >&6; }
   2965if ${ac_cv_prog_CC+:} false; then :
   2966  $as_echo_n "(cached) " >&6
   2967else
   2968  if test -n "$CC"; then
   2969  ac_cv_prog_CC="$CC" # Let the user override the test.
   2970else
   2971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2972for as_dir in $PATH
   2973do
   2974  IFS=$as_save_IFS
   2975  test -z "$as_dir" && as_dir=.
   2976    for ac_exec_ext in '' $ac_executable_extensions; do
   2977  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2978    ac_cv_prog_CC="${ac_tool_prefix}cc"
   2979    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2980    break 2
   2981  fi
   2982done
   2983  done
   2984IFS=$as_save_IFS
   2985
   2986fi
   2987fi
   2988CC=$ac_cv_prog_CC
   2989if test -n "$CC"; then
   2990  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   2991$as_echo "$CC" >&6; }
   2992else
   2993  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2994$as_echo "no" >&6; }
   2995fi
   2996
   2997
   2998  fi
   2999fi
   3000if test -z "$CC"; then
   3001  # Extract the first word of "cc", so it can be a program name with args.
   3002set dummy cc; ac_word=$2
   3003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3004$as_echo_n "checking for $ac_word... " >&6; }
   3005if ${ac_cv_prog_CC+:} false; then :
   3006  $as_echo_n "(cached) " >&6
   3007else
   3008  if test -n "$CC"; then
   3009  ac_cv_prog_CC="$CC" # Let the user override the test.
   3010else
   3011  ac_prog_rejected=no
   3012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3013for as_dir in $PATH
   3014do
   3015  IFS=$as_save_IFS
   3016  test -z "$as_dir" && as_dir=.
   3017    for ac_exec_ext in '' $ac_executable_extensions; do
   3018  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   3019    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
   3020       ac_prog_rejected=yes
   3021       continue
   3022     fi
   3023    ac_cv_prog_CC="cc"
   3024    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3025    break 2
   3026  fi
   3027done
   3028  done
   3029IFS=$as_save_IFS
   3030
   3031if test $ac_prog_rejected = yes; then
   3032  # We found a bogon in the path, so make sure we never use it.
   3033  set dummy $ac_cv_prog_CC
   3034  shift
   3035  if test $# != 0; then
   3036    # We chose a different compiler from the bogus one.
   3037    # However, it has the same basename, so the bogon will be chosen
   3038    # first if we set CC to just the basename; use the full file name.
   3039    shift
   3040    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
   3041  fi
   3042fi
   3043fi
   3044fi
   3045CC=$ac_cv_prog_CC
   3046if test -n "$CC"; then
   3047  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3048$as_echo "$CC" >&6; }
   3049else
   3050  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3051$as_echo "no" >&6; }
   3052fi
   3053
   3054
   3055fi
   3056if test -z "$CC"; then
   3057  if test -n "$ac_tool_prefix"; then
   3058  for ac_prog in cl.exe
   3059  do
   3060    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   3061set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   3062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3063$as_echo_n "checking for $ac_word... " >&6; }
   3064if ${ac_cv_prog_CC+:} false; then :
   3065  $as_echo_n "(cached) " >&6
   3066else
   3067  if test -n "$CC"; then
   3068  ac_cv_prog_CC="$CC" # Let the user override the test.
   3069else
   3070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3071for as_dir in $PATH
   3072do
   3073  IFS=$as_save_IFS
   3074  test -z "$as_dir" && as_dir=.
   3075    for ac_exec_ext in '' $ac_executable_extensions; do
   3076  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   3077    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
   3078    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3079    break 2
   3080  fi
   3081done
   3082  done
   3083IFS=$as_save_IFS
   3084
   3085fi
   3086fi
   3087CC=$ac_cv_prog_CC
   3088if test -n "$CC"; then
   3089  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3090$as_echo "$CC" >&6; }
   3091else
   3092  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3093$as_echo "no" >&6; }
   3094fi
   3095
   3096
   3097    test -n "$CC" && break
   3098  done
   3099fi
   3100if test -z "$CC"; then
   3101  ac_ct_CC=$CC
   3102  for ac_prog in cl.exe
   3103do
   3104  # Extract the first word of "$ac_prog", so it can be a program name with args.
   3105set dummy $ac_prog; ac_word=$2
   3106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3107$as_echo_n "checking for $ac_word... " >&6; }
   3108if ${ac_cv_prog_ac_ct_CC+:} false; then :
   3109  $as_echo_n "(cached) " >&6
   3110else
   3111  if test -n "$ac_ct_CC"; then
   3112  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   3113else
   3114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3115for as_dir in $PATH
   3116do
   3117  IFS=$as_save_IFS
   3118  test -z "$as_dir" && as_dir=.
   3119    for ac_exec_ext in '' $ac_executable_extensions; do
   3120  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   3121    ac_cv_prog_ac_ct_CC="$ac_prog"
   3122    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3123    break 2
   3124  fi
   3125done
   3126  done
   3127IFS=$as_save_IFS
   3128
   3129fi
   3130fi
   3131ac_ct_CC=$ac_cv_prog_ac_ct_CC
   3132if test -n "$ac_ct_CC"; then
   3133  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   3134$as_echo "$ac_ct_CC" >&6; }
   3135else
   3136  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3137$as_echo "no" >&6; }
   3138fi
   3139
   3140
   3141  test -n "$ac_ct_CC" && break
   3142done
   3143
   3144  if test "x$ac_ct_CC" = x; then
   3145    CC=""
   3146  else
   3147    case $cross_compiling:$ac_tool_warned in
   3148yes:)
   3149{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   3150$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   3151ac_tool_warned=yes ;;
   3152esac
   3153    CC=$ac_ct_CC
   3154  fi
   3155fi
   3156
   3157fi
   3158
   3159
   3160test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3161$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3162as_fn_error $? "no acceptable C compiler found in \$PATH
   3163See \`config.log' for more details" "$LINENO" 5; }
   3164
   3165# Provide some information about the compiler.
   3166$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
   3167set X $ac_compile
   3168ac_compiler=$2
   3169for ac_option in --version -v -V -qversion; do
   3170  { { ac_try="$ac_compiler $ac_option >&5"
   3171case "(($ac_try" in
   3172  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3173  *) ac_try_echo=$ac_try;;
   3174esac
   3175eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3176$as_echo "$ac_try_echo"; } >&5
   3177  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
   3178  ac_status=$?
   3179  if test -s conftest.err; then
   3180    sed '10a\
   3181... rest of stderr output deleted ...
   3182         10q' conftest.err >conftest.er1
   3183    cat conftest.er1 >&5
   3184  fi
   3185  rm -f conftest.er1 conftest.err
   3186  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3187  test $ac_status = 0; }
   3188done
   3189
   3190cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3191/* end confdefs.h.  */
   3192
   3193int
   3194main ()
   3195{
   3196
   3197  ;
   3198  return 0;
   3199}
   3200_ACEOF
   3201ac_clean_files_save=$ac_clean_files
   3202ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
   3203# Try to create an executable without -o first, disregard a.out.
   3204# It will help us diagnose broken compilers, and finding out an intuition
   3205# of exeext.
   3206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
   3207$as_echo_n "checking whether the C compiler works... " >&6; }
   3208ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
   3209
   3210# The possible output files:
   3211ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
   3212
   3213ac_rmfiles=
   3214for ac_file in $ac_files
   3215do
   3216  case $ac_file in
   3217    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   3218    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
   3219  esac
   3220done
   3221rm -f $ac_rmfiles
   3222
   3223if { { ac_try="$ac_link_default"
   3224case "(($ac_try" in
   3225  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3226  *) ac_try_echo=$ac_try;;
   3227esac
   3228eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3229$as_echo "$ac_try_echo"; } >&5
   3230  (eval "$ac_link_default") 2>&5
   3231  ac_status=$?
   3232  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3233  test $ac_status = 0; }; then :
   3234  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
   3235# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
   3236# in a Makefile.  We should not override ac_cv_exeext if it was cached,
   3237# so that the user can short-circuit this test for compilers unknown to
   3238# Autoconf.
   3239for ac_file in $ac_files ''
   3240do
   3241  test -f "$ac_file" || continue
   3242  case $ac_file in
   3243    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
   3244	;;
   3245    [ab].out )
   3246	# We found the default executable, but exeext='' is most
   3247	# certainly right.
   3248	break;;
   3249    *.* )
   3250	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
   3251	then :; else
   3252	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   3253	fi
   3254	# We set ac_cv_exeext here because the later test for it is not
   3255	# safe: cross compilers may not add the suffix if given an `-o'
   3256	# argument, so we may need to know it at that point already.
   3257	# Even if this section looks crufty: it has the advantage of
   3258	# actually working.
   3259	break;;
   3260    * )
   3261	break;;
   3262  esac
   3263done
   3264test "$ac_cv_exeext" = no && ac_cv_exeext=
   3265
   3266else
   3267  ac_file=''
   3268fi
   3269if test -z "$ac_file"; then :
   3270  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3271$as_echo "no" >&6; }
   3272$as_echo "$as_me: failed program was:" >&5
   3273sed 's/^/| /' conftest.$ac_ext >&5
   3274
   3275{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3276$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3277as_fn_error 77 "C compiler cannot create executables
   3278See \`config.log' for more details" "$LINENO" 5; }
   3279else
   3280  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   3281$as_echo "yes" >&6; }
   3282fi
   3283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
   3284$as_echo_n "checking for C compiler default output file name... " >&6; }
   3285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
   3286$as_echo "$ac_file" >&6; }
   3287ac_exeext=$ac_cv_exeext
   3288
   3289rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
   3290ac_clean_files=$ac_clean_files_save
   3291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
   3292$as_echo_n "checking for suffix of executables... " >&6; }
   3293if { { ac_try="$ac_link"
   3294case "(($ac_try" in
   3295  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3296  *) ac_try_echo=$ac_try;;
   3297esac
   3298eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3299$as_echo "$ac_try_echo"; } >&5
   3300  (eval "$ac_link") 2>&5
   3301  ac_status=$?
   3302  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3303  test $ac_status = 0; }; then :
   3304  # If both `conftest.exe' and `conftest' are `present' (well, observable)
   3305# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
   3306# work properly (i.e., refer to `conftest.exe'), while it won't with
   3307# `rm'.
   3308for ac_file in conftest.exe conftest conftest.*; do
   3309  test -f "$ac_file" || continue
   3310  case $ac_file in
   3311    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   3312    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   3313	  break;;
   3314    * ) break;;
   3315  esac
   3316done
   3317else
   3318  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3319$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3320as_fn_error $? "cannot compute suffix of executables: cannot compile and link
   3321See \`config.log' for more details" "$LINENO" 5; }
   3322fi
   3323rm -f conftest conftest$ac_cv_exeext
   3324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
   3325$as_echo "$ac_cv_exeext" >&6; }
   3326
   3327rm -f conftest.$ac_ext
   3328EXEEXT=$ac_cv_exeext
   3329ac_exeext=$EXEEXT
   3330cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3331/* end confdefs.h.  */
   3332#include <stdio.h>
   3333int
   3334main ()
   3335{
   3336FILE *f = fopen ("conftest.out", "w");
   3337 return ferror (f) || fclose (f) != 0;
   3338
   3339  ;
   3340  return 0;
   3341}
   3342_ACEOF
   3343ac_clean_files="$ac_clean_files conftest.out"
   3344# Check that the compiler produces executables we can run.  If not, either
   3345# the compiler is broken, or we cross compile.
   3346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
   3347$as_echo_n "checking whether we are cross compiling... " >&6; }
   3348if test "$cross_compiling" != yes; then
   3349  { { ac_try="$ac_link"
   3350case "(($ac_try" in
   3351  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3352  *) ac_try_echo=$ac_try;;
   3353esac
   3354eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3355$as_echo "$ac_try_echo"; } >&5
   3356  (eval "$ac_link") 2>&5
   3357  ac_status=$?
   3358  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3359  test $ac_status = 0; }
   3360  if { ac_try='./conftest$ac_cv_exeext'
   3361  { { case "(($ac_try" in
   3362  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3363  *) ac_try_echo=$ac_try;;
   3364esac
   3365eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3366$as_echo "$ac_try_echo"; } >&5
   3367  (eval "$ac_try") 2>&5
   3368  ac_status=$?
   3369  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3370  test $ac_status = 0; }; }; then
   3371    cross_compiling=no
   3372  else
   3373    if test "$cross_compiling" = maybe; then
   3374	cross_compiling=yes
   3375    else
   3376	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3377$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3378as_fn_error $? "cannot run C compiled programs.
   3379If you meant to cross compile, use \`--host'.
   3380See \`config.log' for more details" "$LINENO" 5; }
   3381    fi
   3382  fi
   3383fi
   3384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
   3385$as_echo "$cross_compiling" >&6; }
   3386
   3387rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
   3388ac_clean_files=$ac_clean_files_save
   3389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
   3390$as_echo_n "checking for suffix of object files... " >&6; }
   3391if ${ac_cv_objext+:} false; then :
   3392  $as_echo_n "(cached) " >&6
   3393else
   3394  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3395/* end confdefs.h.  */
   3396
   3397int
   3398main ()
   3399{
   3400
   3401  ;
   3402  return 0;
   3403}
   3404_ACEOF
   3405rm -f conftest.o conftest.obj
   3406if { { ac_try="$ac_compile"
   3407case "(($ac_try" in
   3408  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3409  *) ac_try_echo=$ac_try;;
   3410esac
   3411eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3412$as_echo "$ac_try_echo"; } >&5
   3413  (eval "$ac_compile") 2>&5
   3414  ac_status=$?
   3415  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3416  test $ac_status = 0; }; then :
   3417  for ac_file in conftest.o conftest.obj conftest.*; do
   3418  test -f "$ac_file" || continue;
   3419  case $ac_file in
   3420    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
   3421    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
   3422       break;;
   3423  esac
   3424done
   3425else
   3426  $as_echo "$as_me: failed program was:" >&5
   3427sed 's/^/| /' conftest.$ac_ext >&5
   3428
   3429{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3430$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3431as_fn_error $? "cannot compute suffix of object files: cannot compile
   3432See \`config.log' for more details" "$LINENO" 5; }
   3433fi
   3434rm -f conftest.$ac_cv_objext conftest.$ac_ext
   3435fi
   3436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
   3437$as_echo "$ac_cv_objext" >&6; }
   3438OBJEXT=$ac_cv_objext
   3439ac_objext=$OBJEXT
   3440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
   3441$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
   3442if ${ac_cv_c_compiler_gnu+:} false; then :
   3443  $as_echo_n "(cached) " >&6
   3444else
   3445  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3446/* end confdefs.h.  */
   3447
   3448int
   3449main ()
   3450{
   3451#ifndef __GNUC__
   3452       choke me
   3453#endif
   3454
   3455  ;
   3456  return 0;
   3457}
   3458_ACEOF
   3459if ac_fn_c_try_compile "$LINENO"; then :
   3460  ac_compiler_gnu=yes
   3461else
   3462  ac_compiler_gnu=no
   3463fi
   3464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3465ac_cv_c_compiler_gnu=$ac_compiler_gnu
   3466
   3467fi
   3468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
   3469$as_echo "$ac_cv_c_compiler_gnu" >&6; }
   3470if test $ac_compiler_gnu = yes; then
   3471  GCC=yes
   3472else
   3473  GCC=
   3474fi
   3475ac_test_CFLAGS=${CFLAGS+set}
   3476ac_save_CFLAGS=$CFLAGS
   3477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
   3478$as_echo_n "checking whether $CC accepts -g... " >&6; }
   3479if ${ac_cv_prog_cc_g+:} false; then :
   3480  $as_echo_n "(cached) " >&6
   3481else
   3482  ac_save_c_werror_flag=$ac_c_werror_flag
   3483   ac_c_werror_flag=yes
   3484   ac_cv_prog_cc_g=no
   3485   CFLAGS="-g"
   3486   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3487/* end confdefs.h.  */
   3488
   3489int
   3490main ()
   3491{
   3492
   3493  ;
   3494  return 0;
   3495}
   3496_ACEOF
   3497if ac_fn_c_try_compile "$LINENO"; then :
   3498  ac_cv_prog_cc_g=yes
   3499else
   3500  CFLAGS=""
   3501      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3502/* end confdefs.h.  */
   3503
   3504int
   3505main ()
   3506{
   3507
   3508  ;
   3509  return 0;
   3510}
   3511_ACEOF
   3512if ac_fn_c_try_compile "$LINENO"; then :
   3513
   3514else
   3515  ac_c_werror_flag=$ac_save_c_werror_flag
   3516	 CFLAGS="-g"
   3517	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3518/* end confdefs.h.  */
   3519
   3520int
   3521main ()
   3522{
   3523
   3524  ;
   3525  return 0;
   3526}
   3527_ACEOF
   3528if ac_fn_c_try_compile "$LINENO"; then :
   3529  ac_cv_prog_cc_g=yes
   3530fi
   3531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3532fi
   3533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3534fi
   3535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3536   ac_c_werror_flag=$ac_save_c_werror_flag
   3537fi
   3538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
   3539$as_echo "$ac_cv_prog_cc_g" >&6; }
   3540if test "$ac_test_CFLAGS" = set; then
   3541  CFLAGS=$ac_save_CFLAGS
   3542elif test $ac_cv_prog_cc_g = yes; then
   3543  if test "$GCC" = yes; then
   3544    CFLAGS="-g -O2"
   3545  else
   3546    CFLAGS="-g"
   3547  fi
   3548else
   3549  if test "$GCC" = yes; then
   3550    CFLAGS="-O2"
   3551  else
   3552    CFLAGS=
   3553  fi
   3554fi
   3555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
   3556$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
   3557if ${ac_cv_prog_cc_c89+:} false; then :
   3558  $as_echo_n "(cached) " >&6
   3559else
   3560  ac_cv_prog_cc_c89=no
   3561ac_save_CC=$CC
   3562cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3563/* end confdefs.h.  */
   3564#include <stdarg.h>
   3565#include <stdio.h>
   3566struct stat;
   3567/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
   3568struct buf { int x; };
   3569FILE * (*rcsopen) (struct buf *, struct stat *, int);
   3570static char *e (p, i)
   3571     char **p;
   3572     int i;
   3573{
   3574  return p[i];
   3575}
   3576static char *f (char * (*g) (char **, int), char **p, ...)
   3577{
   3578  char *s;
   3579  va_list v;
   3580  va_start (v,p);
   3581  s = g (p, va_arg (v,int));
   3582  va_end (v);
   3583  return s;
   3584}
   3585
   3586/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   3587   function prototypes and stuff, but not '\xHH' hex character constants.
   3588   These don't provoke an error unfortunately, instead are silently treated
   3589   as 'x'.  The following induces an error, until -std is added to get
   3590   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   3591   array size at least.  It's necessary to write '\x00'==0 to get something
   3592   that's true only with -std.  */
   3593int osf4_cc_array ['\x00' == 0 ? 1 : -1];
   3594
   3595/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   3596   inside strings and character constants.  */
   3597#define FOO(x) 'x'
   3598int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
   3599
   3600int test (int i, double x);
   3601struct s1 {int (*f) (int a);};
   3602struct s2 {int (*f) (double a);};
   3603int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
   3604int argc;
   3605char **argv;
   3606int
   3607main ()
   3608{
   3609return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
   3610  ;
   3611  return 0;
   3612}
   3613_ACEOF
   3614for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
   3615	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   3616do
   3617  CC="$ac_save_CC $ac_arg"
   3618  if ac_fn_c_try_compile "$LINENO"; then :
   3619  ac_cv_prog_cc_c89=$ac_arg
   3620fi
   3621rm -f core conftest.err conftest.$ac_objext
   3622  test "x$ac_cv_prog_cc_c89" != "xno" && break
   3623done
   3624rm -f conftest.$ac_ext
   3625CC=$ac_save_CC
   3626
   3627fi
   3628# AC_CACHE_VAL
   3629case "x$ac_cv_prog_cc_c89" in
   3630  x)
   3631    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   3632$as_echo "none needed" >&6; } ;;
   3633  xno)
   3634    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   3635$as_echo "unsupported" >&6; } ;;
   3636  *)
   3637    CC="$CC $ac_cv_prog_cc_c89"
   3638    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
   3639$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
   3640esac
   3641if test "x$ac_cv_prog_cc_c89" != xno; then :
   3642
   3643fi
   3644
   3645ac_ext=c
   3646ac_cpp='$CPP $CPPFLAGS'
   3647ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3648ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3649ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3650
   3651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
   3652$as_echo_n "checking for a sed that does not truncate output... " >&6; }
   3653if ${ac_cv_path_SED+:} false; then :
   3654  $as_echo_n "(cached) " >&6
   3655else
   3656            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
   3657     for ac_i in 1 2 3 4 5 6 7; do
   3658       ac_script="$ac_script$as_nl$ac_script"
   3659     done
   3660     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
   3661     { ac_script=; unset ac_script;}
   3662     if test -z "$SED"; then
   3663  ac_path_SED_found=false
   3664  # Loop through the user's path and test for each of PROGNAME-LIST
   3665  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3666for as_dir in $PATH
   3667do
   3668  IFS=$as_save_IFS
   3669  test -z "$as_dir" && as_dir=.
   3670    for ac_prog in sed gsed; do
   3671    for ac_exec_ext in '' $ac_executable_extensions; do
   3672      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
   3673      as_fn_executable_p "$ac_path_SED" || continue
   3674# Check for GNU ac_path_SED and select it if it is found.
   3675  # Check for GNU $ac_path_SED
   3676case `"$ac_path_SED" --version 2>&1` in
   3677*GNU*)
   3678  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
   3679*)
   3680  ac_count=0
   3681  $as_echo_n 0123456789 >"conftest.in"
   3682  while :
   3683  do
   3684    cat "conftest.in" "conftest.in" >"conftest.tmp"
   3685    mv "conftest.tmp" "conftest.in"
   3686    cp "conftest.in" "conftest.nl"
   3687    $as_echo '' >> "conftest.nl"
   3688    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
   3689    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   3690    as_fn_arith $ac_count + 1 && ac_count=$as_val
   3691    if test $ac_count -gt ${ac_path_SED_max-0}; then
   3692      # Best one so far, save it but keep looking for a better one
   3693      ac_cv_path_SED="$ac_path_SED"
   3694      ac_path_SED_max=$ac_count
   3695    fi
   3696    # 10*(2^10) chars as input seems more than enough
   3697    test $ac_count -gt 10 && break
   3698  done
   3699  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   3700esac
   3701
   3702      $ac_path_SED_found && break 3
   3703    done
   3704  done
   3705  done
   3706IFS=$as_save_IFS
   3707  if test -z "$ac_cv_path_SED"; then
   3708    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
   3709  fi
   3710else
   3711  ac_cv_path_SED=$SED
   3712fi
   3713
   3714fi
   3715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
   3716$as_echo "$ac_cv_path_SED" >&6; }
   3717 SED="$ac_cv_path_SED"
   3718  rm -f conftest.sed
   3719
   3720test -z "$SED" && SED=sed
   3721Xsed="$SED -e 1s/^X//"
   3722
   3723
   3724
   3725
   3726
   3727
   3728
   3729
   3730
   3731
   3732
   3733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
   3734$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
   3735if ${ac_cv_path_GREP+:} false; then :
   3736  $as_echo_n "(cached) " >&6
   3737else
   3738  if test -z "$GREP"; then
   3739  ac_path_GREP_found=false
   3740  # Loop through the user's path and test for each of PROGNAME-LIST
   3741  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3742for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   3743do
   3744  IFS=$as_save_IFS
   3745  test -z "$as_dir" && as_dir=.
   3746    for ac_prog in grep ggrep; do
   3747    for ac_exec_ext in '' $ac_executable_extensions; do
   3748      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
   3749      as_fn_executable_p "$ac_path_GREP" || continue
   3750# Check for GNU ac_path_GREP and select it if it is found.
   3751  # Check for GNU $ac_path_GREP
   3752case `"$ac_path_GREP" --version 2>&1` in
   3753*GNU*)
   3754  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
   3755*)
   3756  ac_count=0
   3757  $as_echo_n 0123456789 >"conftest.in"
   3758  while :
   3759  do
   3760    cat "conftest.in" "conftest.in" >"conftest.tmp"
   3761    mv "conftest.tmp" "conftest.in"
   3762    cp "conftest.in" "conftest.nl"
   3763    $as_echo 'GREP' >> "conftest.nl"
   3764    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   3765    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   3766    as_fn_arith $ac_count + 1 && ac_count=$as_val
   3767    if test $ac_count -gt ${ac_path_GREP_max-0}; then
   3768      # Best one so far, save it but keep looking for a better one
   3769      ac_cv_path_GREP="$ac_path_GREP"
   3770      ac_path_GREP_max=$ac_count
   3771    fi
   3772    # 10*(2^10) chars as input seems more than enough
   3773    test $ac_count -gt 10 && break
   3774  done
   3775  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   3776esac
   3777
   3778      $ac_path_GREP_found && break 3
   3779    done
   3780  done
   3781  done
   3782IFS=$as_save_IFS
   3783  if test -z "$ac_cv_path_GREP"; then
   3784    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   3785  fi
   3786else
   3787  ac_cv_path_GREP=$GREP
   3788fi
   3789
   3790fi
   3791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
   3792$as_echo "$ac_cv_path_GREP" >&6; }
   3793 GREP="$ac_cv_path_GREP"
   3794
   3795
   3796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
   3797$as_echo_n "checking for egrep... " >&6; }
   3798if ${ac_cv_path_EGREP+:} false; then :
   3799  $as_echo_n "(cached) " >&6
   3800else
   3801  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   3802   then ac_cv_path_EGREP="$GREP -E"
   3803   else
   3804     if test -z "$EGREP"; then
   3805  ac_path_EGREP_found=false
   3806  # Loop through the user's path and test for each of PROGNAME-LIST
   3807  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3808for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   3809do
   3810  IFS=$as_save_IFS
   3811  test -z "$as_dir" && as_dir=.
   3812    for ac_prog in egrep; do
   3813    for ac_exec_ext in '' $ac_executable_extensions; do
   3814      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
   3815      as_fn_executable_p "$ac_path_EGREP" || continue
   3816# Check for GNU ac_path_EGREP and select it if it is found.
   3817  # Check for GNU $ac_path_EGREP
   3818case `"$ac_path_EGREP" --version 2>&1` in
   3819*GNU*)
   3820  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
   3821*)
   3822  ac_count=0
   3823  $as_echo_n 0123456789 >"conftest.in"
   3824  while :
   3825  do
   3826    cat "conftest.in" "conftest.in" >"conftest.tmp"
   3827    mv "conftest.tmp" "conftest.in"
   3828    cp "conftest.in" "conftest.nl"
   3829    $as_echo 'EGREP' >> "conftest.nl"
   3830    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   3831    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   3832    as_fn_arith $ac_count + 1 && ac_count=$as_val
   3833    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
   3834      # Best one so far, save it but keep looking for a better one
   3835      ac_cv_path_EGREP="$ac_path_EGREP"
   3836      ac_path_EGREP_max=$ac_count
   3837    fi
   3838    # 10*(2^10) chars as input seems more than enough
   3839    test $ac_count -gt 10 && break
   3840  done
   3841  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   3842esac
   3843
   3844      $ac_path_EGREP_found && break 3
   3845    done
   3846  done
   3847  done
   3848IFS=$as_save_IFS
   3849  if test -z "$ac_cv_path_EGREP"; then
   3850    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   3851  fi
   3852else
   3853  ac_cv_path_EGREP=$EGREP
   3854fi
   3855
   3856   fi
   3857fi
   3858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
   3859$as_echo "$ac_cv_path_EGREP" >&6; }
   3860 EGREP="$ac_cv_path_EGREP"
   3861
   3862
   3863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
   3864$as_echo_n "checking for fgrep... " >&6; }
   3865if ${ac_cv_path_FGREP+:} false; then :
   3866  $as_echo_n "(cached) " >&6
   3867else
   3868  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
   3869   then ac_cv_path_FGREP="$GREP -F"
   3870   else
   3871     if test -z "$FGREP"; then
   3872  ac_path_FGREP_found=false
   3873  # Loop through the user's path and test for each of PROGNAME-LIST
   3874  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3875for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   3876do
   3877  IFS=$as_save_IFS
   3878  test -z "$as_dir" && as_dir=.
   3879    for ac_prog in fgrep; do
   3880    for ac_exec_ext in '' $ac_executable_extensions; do
   3881      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
   3882      as_fn_executable_p "$ac_path_FGREP" || continue
   3883# Check for GNU ac_path_FGREP and select it if it is found.
   3884  # Check for GNU $ac_path_FGREP
   3885case `"$ac_path_FGREP" --version 2>&1` in
   3886*GNU*)
   3887  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
   3888*)
   3889  ac_count=0
   3890  $as_echo_n 0123456789 >"conftest.in"
   3891  while :
   3892  do
   3893    cat "conftest.in" "conftest.in" >"conftest.tmp"
   3894    mv "conftest.tmp" "conftest.in"
   3895    cp "conftest.in" "conftest.nl"
   3896    $as_echo 'FGREP' >> "conftest.nl"
   3897    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
   3898    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   3899    as_fn_arith $ac_count + 1 && ac_count=$as_val
   3900    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
   3901      # Best one so far, save it but keep looking for a better one
   3902      ac_cv_path_FGREP="$ac_path_FGREP"
   3903      ac_path_FGREP_max=$ac_count
   3904    fi
   3905    # 10*(2^10) chars as input seems more than enough
   3906    test $ac_count -gt 10 && break
   3907  done
   3908  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   3909esac
   3910
   3911      $ac_path_FGREP_found && break 3
   3912    done
   3913  done
   3914  done
   3915IFS=$as_save_IFS
   3916  if test -z "$ac_cv_path_FGREP"; then
   3917    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   3918  fi
   3919else
   3920  ac_cv_path_FGREP=$FGREP
   3921fi
   3922
   3923   fi
   3924fi
   3925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
   3926$as_echo "$ac_cv_path_FGREP" >&6; }
   3927 FGREP="$ac_cv_path_FGREP"
   3928
   3929
   3930test -z "$GREP" && GREP=grep
   3931
   3932
   3933
   3934
   3935
   3936
   3937
   3938
   3939
   3940
   3941
   3942
   3943
   3944
   3945
   3946
   3947
   3948
   3949
   3950# Check whether --with-gnu-ld was given.
   3951if test "${with_gnu_ld+set}" = set; then :
   3952  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
   3953else
   3954  with_gnu_ld=no
   3955fi
   3956
   3957ac_prog=ld
   3958if test "$GCC" = yes; then
   3959  # Check if gcc -print-prog-name=ld gives a path.
   3960  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
   3961$as_echo_n "checking for ld used by $CC... " >&6; }
   3962  case $host in
   3963  *-*-mingw*)
   3964    # gcc leaves a trailing carriage return which upsets mingw
   3965    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
   3966  *)
   3967    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
   3968  esac
   3969  case $ac_prog in
   3970    # Accept absolute paths.
   3971    [\\/]* | ?:[\\/]*)
   3972      re_direlt='/[^/][^/]*/\.\./'
   3973      # Canonicalize the pathname of ld
   3974      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
   3975      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
   3976	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
   3977      done
   3978      test -z "$LD" && LD="$ac_prog"
   3979      ;;
   3980  "")
   3981    # If it fails, then pretend we aren't using GCC.
   3982    ac_prog=ld
   3983    ;;
   3984  *)
   3985    # If it is relative, then search for the first ld in PATH.
   3986    with_gnu_ld=unknown
   3987    ;;
   3988  esac
   3989elif test "$with_gnu_ld" = yes; then
   3990  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
   3991$as_echo_n "checking for GNU ld... " >&6; }
   3992else
   3993  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
   3994$as_echo_n "checking for non-GNU ld... " >&6; }
   3995fi
   3996if ${lt_cv_path_LD+:} false; then :
   3997  $as_echo_n "(cached) " >&6
   3998else
   3999  if test -z "$LD"; then
   4000  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
   4001  for ac_dir in $PATH; do
   4002    IFS="$lt_save_ifs"
   4003    test -z "$ac_dir" && ac_dir=.
   4004    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
   4005      lt_cv_path_LD="$ac_dir/$ac_prog"
   4006      # Check to see if the program is GNU ld.  I'd rather use --version,
   4007      # but apparently some variants of GNU ld only accept -v.
   4008      # Break only if it was the GNU/non-GNU ld that we prefer.
   4009      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
   4010      *GNU* | *'with BFD'*)
   4011	test "$with_gnu_ld" != no && break
   4012	;;
   4013      *)
   4014	test "$with_gnu_ld" != yes && break
   4015	;;
   4016      esac
   4017    fi
   4018  done
   4019  IFS="$lt_save_ifs"
   4020else
   4021  lt_cv_path_LD="$LD" # Let the user override the test with a path.
   4022fi
   4023fi
   4024
   4025LD="$lt_cv_path_LD"
   4026if test -n "$LD"; then
   4027  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
   4028$as_echo "$LD" >&6; }
   4029else
   4030  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4031$as_echo "no" >&6; }
   4032fi
   4033test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
   4034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
   4035$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
   4036if ${lt_cv_prog_gnu_ld+:} false; then :
   4037  $as_echo_n "(cached) " >&6
   4038else
   4039  # I'd rather use --version here, but apparently some GNU lds only accept -v.
   4040case `$LD -v 2>&1 </dev/null` in
   4041*GNU* | *'with BFD'*)
   4042  lt_cv_prog_gnu_ld=yes
   4043  ;;
   4044*)
   4045  lt_cv_prog_gnu_ld=no
   4046  ;;
   4047esac
   4048fi
   4049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
   4050$as_echo "$lt_cv_prog_gnu_ld" >&6; }
   4051with_gnu_ld=$lt_cv_prog_gnu_ld
   4052
   4053
   4054
   4055
   4056
   4057
   4058
   4059
   4060
   4061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
   4062$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
   4063if ${lt_cv_path_NM+:} false; then :
   4064  $as_echo_n "(cached) " >&6
   4065else
   4066  if test -n "$NM"; then
   4067  # Let the user override the test.
   4068  lt_cv_path_NM="$NM"
   4069else
   4070  lt_nm_to_check="${ac_tool_prefix}nm"
   4071  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
   4072    lt_nm_to_check="$lt_nm_to_check nm"
   4073  fi
   4074  for lt_tmp_nm in $lt_nm_to_check; do
   4075    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
   4076    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
   4077      IFS="$lt_save_ifs"
   4078      test -z "$ac_dir" && ac_dir=.
   4079      tmp_nm="$ac_dir/$lt_tmp_nm"
   4080      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
   4081	# Check to see if the nm accepts a BSD-compat flag.
   4082	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
   4083	#   nm: unknown option "B" ignored
   4084	# Tru64's nm complains that /dev/null is an invalid object file
   4085	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
   4086	*/dev/null* | *'Invalid file or object type'*)
   4087	  lt_cv_path_NM="$tmp_nm -B"
   4088	  break
   4089	  ;;
   4090	*)
   4091	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
   4092	  */dev/null*)
   4093	    lt_cv_path_NM="$tmp_nm -p"
   4094	    break
   4095	    ;;
   4096	  *)
   4097	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
   4098	    continue # so that we can try to find one that supports BSD flags
   4099	    ;;
   4100	  esac
   4101	  ;;
   4102	esac
   4103      fi
   4104    done
   4105    IFS="$lt_save_ifs"
   4106  done
   4107  : ${lt_cv_path_NM=no}
   4108fi
   4109fi
   4110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
   4111$as_echo "$lt_cv_path_NM" >&6; }
   4112if test "$lt_cv_path_NM" != "no"; then
   4113  NM="$lt_cv_path_NM"
   4114else
   4115  # Didn't find any BSD compatible name lister, look for dumpbin.
   4116  if test -n "$DUMPBIN"; then :
   4117    # Let the user override the test.
   4118  else
   4119    if test -n "$ac_tool_prefix"; then
   4120  for ac_prog in dumpbin "link -dump"
   4121  do
   4122    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   4123set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   4124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4125$as_echo_n "checking for $ac_word... " >&6; }
   4126if ${ac_cv_prog_DUMPBIN+:} false; then :
   4127  $as_echo_n "(cached) " >&6
   4128else
   4129  if test -n "$DUMPBIN"; then
   4130  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
   4131else
   4132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4133for as_dir in $PATH
   4134do
   4135  IFS=$as_save_IFS
   4136  test -z "$as_dir" && as_dir=.
   4137    for ac_exec_ext in '' $ac_executable_extensions; do
   4138  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4139    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
   4140    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4141    break 2
   4142  fi
   4143done
   4144  done
   4145IFS=$as_save_IFS
   4146
   4147fi
   4148fi
   4149DUMPBIN=$ac_cv_prog_DUMPBIN
   4150if test -n "$DUMPBIN"; then
   4151  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
   4152$as_echo "$DUMPBIN" >&6; }
   4153else
   4154  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4155$as_echo "no" >&6; }
   4156fi
   4157
   4158
   4159    test -n "$DUMPBIN" && break
   4160  done
   4161fi
   4162if test -z "$DUMPBIN"; then
   4163  ac_ct_DUMPBIN=$DUMPBIN
   4164  for ac_prog in dumpbin "link -dump"
   4165do
   4166  # Extract the first word of "$ac_prog", so it can be a program name with args.
   4167set dummy $ac_prog; ac_word=$2
   4168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4169$as_echo_n "checking for $ac_word... " >&6; }
   4170if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
   4171  $as_echo_n "(cached) " >&6
   4172else
   4173  if test -n "$ac_ct_DUMPBIN"; then
   4174  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
   4175else
   4176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4177for as_dir in $PATH
   4178do
   4179  IFS=$as_save_IFS
   4180  test -z "$as_dir" && as_dir=.
   4181    for ac_exec_ext in '' $ac_executable_extensions; do
   4182  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4183    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
   4184    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4185    break 2
   4186  fi
   4187done
   4188  done
   4189IFS=$as_save_IFS
   4190
   4191fi
   4192fi
   4193ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
   4194if test -n "$ac_ct_DUMPBIN"; then
   4195  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
   4196$as_echo "$ac_ct_DUMPBIN" >&6; }
   4197else
   4198  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4199$as_echo "no" >&6; }
   4200fi
   4201
   4202
   4203  test -n "$ac_ct_DUMPBIN" && break
   4204done
   4205
   4206  if test "x$ac_ct_DUMPBIN" = x; then
   4207    DUMPBIN=":"
   4208  else
   4209    case $cross_compiling:$ac_tool_warned in
   4210yes:)
   4211{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   4212$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   4213ac_tool_warned=yes ;;
   4214esac
   4215    DUMPBIN=$ac_ct_DUMPBIN
   4216  fi
   4217fi
   4218
   4219    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
   4220    *COFF*)
   4221      DUMPBIN="$DUMPBIN -symbols"
   4222      ;;
   4223    *)
   4224      DUMPBIN=:
   4225      ;;
   4226    esac
   4227  fi
   4228
   4229  if test "$DUMPBIN" != ":"; then
   4230    NM="$DUMPBIN"
   4231  fi
   4232fi
   4233test -z "$NM" && NM=nm
   4234
   4235
   4236
   4237
   4238
   4239
   4240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
   4241$as_echo_n "checking the name lister ($NM) interface... " >&6; }
   4242if ${lt_cv_nm_interface+:} false; then :
   4243  $as_echo_n "(cached) " >&6
   4244else
   4245  lt_cv_nm_interface="BSD nm"
   4246  echo "int some_variable = 0;" > conftest.$ac_ext
   4247  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
   4248  (eval "$ac_compile" 2>conftest.err)
   4249  cat conftest.err >&5
   4250  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
   4251  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
   4252  cat conftest.err >&5
   4253  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
   4254  cat conftest.out >&5
   4255  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
   4256    lt_cv_nm_interface="MS dumpbin"
   4257  fi
   4258  rm -f conftest*
   4259fi
   4260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
   4261$as_echo "$lt_cv_nm_interface" >&6; }
   4262
   4263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
   4264$as_echo_n "checking whether ln -s works... " >&6; }
   4265LN_S=$as_ln_s
   4266if test "$LN_S" = "ln -s"; then
   4267  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4268$as_echo "yes" >&6; }
   4269else
   4270  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
   4271$as_echo "no, using $LN_S" >&6; }
   4272fi
   4273
   4274# find the maximum length of command line arguments
   4275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
   4276$as_echo_n "checking the maximum length of command line arguments... " >&6; }
   4277if ${lt_cv_sys_max_cmd_len+:} false; then :
   4278  $as_echo_n "(cached) " >&6
   4279else
   4280    i=0
   4281  teststring="ABCD"
   4282
   4283  case $build_os in
   4284  msdosdjgpp*)
   4285    # On DJGPP, this test can blow up pretty badly due to problems in libc
   4286    # (any single argument exceeding 2000 bytes causes a buffer overrun
   4287    # during glob expansion).  Even if it were fixed, the result of this
   4288    # check would be larger than it should be.
   4289    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
   4290    ;;
   4291
   4292  gnu*)
   4293    # Under GNU Hurd, this test is not required because there is
   4294    # no limit to the length of command line arguments.
   4295    # Libtool will interpret -1 as no limit whatsoever
   4296    lt_cv_sys_max_cmd_len=-1;
   4297    ;;
   4298
   4299  cygwin* | mingw* | cegcc*)
   4300    # On Win9x/ME, this test blows up -- it succeeds, but takes
   4301    # about 5 minutes as the teststring grows exponentially.
   4302    # Worse, since 9x/ME are not pre-emptively multitasking,
   4303    # you end up with a "frozen" computer, even though with patience
   4304    # the test eventually succeeds (with a max line length of 256k).
   4305    # Instead, let's just punt: use the minimum linelength reported by
   4306    # all of the supported platforms: 8192 (on NT/2K/XP).
   4307    lt_cv_sys_max_cmd_len=8192;
   4308    ;;
   4309
   4310  mint*)
   4311    # On MiNT this can take a long time and run out of memory.
   4312    lt_cv_sys_max_cmd_len=8192;
   4313    ;;
   4314
   4315  amigaos*)
   4316    # On AmigaOS with pdksh, this test takes hours, literally.
   4317    # So we just punt and use a minimum line length of 8192.
   4318    lt_cv_sys_max_cmd_len=8192;
   4319    ;;
   4320
   4321  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
   4322    # This has been around since 386BSD, at least.  Likely further.
   4323    if test -x /sbin/sysctl; then
   4324      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
   4325    elif test -x /usr/sbin/sysctl; then
   4326      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
   4327    else
   4328      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
   4329    fi
   4330    # And add a safety zone
   4331    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
   4332    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
   4333    ;;
   4334
   4335  interix*)
   4336    # We know the value 262144 and hardcode it with a safety zone (like BSD)
   4337    lt_cv_sys_max_cmd_len=196608
   4338    ;;
   4339
   4340  os2*)
   4341    # The test takes a long time on OS/2.
   4342    lt_cv_sys_max_cmd_len=8192
   4343    ;;
   4344
   4345  osf*)
   4346    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
   4347    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
   4348    # nice to cause kernel panics so lets avoid the loop below.
   4349    # First set a reasonable default.
   4350    lt_cv_sys_max_cmd_len=16384
   4351    #
   4352    if test -x /sbin/sysconfig; then
   4353      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
   4354        *1*) lt_cv_sys_max_cmd_len=-1 ;;
   4355      esac
   4356    fi
   4357    ;;
   4358  sco3.2v5*)
   4359    lt_cv_sys_max_cmd_len=102400
   4360    ;;
   4361  sysv5* | sco5v6* | sysv4.2uw2*)
   4362    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
   4363    if test -n "$kargmax"; then
   4364      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
   4365    else
   4366      lt_cv_sys_max_cmd_len=32768
   4367    fi
   4368    ;;
   4369  *)
   4370    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
   4371    if test -n "$lt_cv_sys_max_cmd_len"; then
   4372      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
   4373      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
   4374    else
   4375      # Make teststring a little bigger before we do anything with it.
   4376      # a 1K string should be a reasonable start.
   4377      for i in 1 2 3 4 5 6 7 8 ; do
   4378        teststring=$teststring$teststring
   4379      done
   4380      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
   4381      # If test is not a shell built-in, we'll probably end up computing a
   4382      # maximum length that is only half of the actual maximum length, but
   4383      # we can't tell.
   4384      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
   4385	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
   4386	      test $i != 17 # 1/2 MB should be enough
   4387      do
   4388        i=`expr $i + 1`
   4389        teststring=$teststring$teststring
   4390      done
   4391      # Only check the string length outside the loop.
   4392      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
   4393      teststring=
   4394      # Add a significant safety factor because C++ compilers can tack on
   4395      # massive amounts of additional arguments before passing them to the
   4396      # linker.  It appears as though 1/2 is a usable value.
   4397      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
   4398    fi
   4399    ;;
   4400  esac
   4401
   4402fi
   4403
   4404if test -n $lt_cv_sys_max_cmd_len ; then
   4405  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
   4406$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
   4407else
   4408  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
   4409$as_echo "none" >&6; }
   4410fi
   4411max_cmd_len=$lt_cv_sys_max_cmd_len
   4412
   4413
   4414
   4415
   4416
   4417
   4418: ${CP="cp -f"}
   4419: ${MV="mv -f"}
   4420: ${RM="rm -f"}
   4421
   4422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
   4423$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
   4424# Try some XSI features
   4425xsi_shell=no
   4426( _lt_dummy="a/b/c"
   4427  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
   4428      = c,a/b,b/c, \
   4429    && eval 'test $(( 1 + 1 )) -eq 2 \
   4430    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
   4431  && xsi_shell=yes
   4432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
   4433$as_echo "$xsi_shell" >&6; }
   4434
   4435
   4436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
   4437$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
   4438lt_shell_append=no
   4439( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
   4440    >/dev/null 2>&1 \
   4441  && lt_shell_append=yes
   4442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
   4443$as_echo "$lt_shell_append" >&6; }
   4444
   4445
   4446if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
   4447  lt_unset=unset
   4448else
   4449  lt_unset=false
   4450fi
   4451
   4452
   4453
   4454
   4455
   4456# test EBCDIC or ASCII
   4457case `echo X|tr X '\101'` in
   4458 A) # ASCII based system
   4459    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
   4460  lt_SP2NL='tr \040 \012'
   4461  lt_NL2SP='tr \015\012 \040\040'
   4462  ;;
   4463 *) # EBCDIC based system
   4464  lt_SP2NL='tr \100 \n'
   4465  lt_NL2SP='tr \r\n \100\100'
   4466  ;;
   4467esac
   4468
   4469
   4470
   4471
   4472
   4473
   4474
   4475
   4476
   4477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
   4478$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
   4479if ${lt_cv_to_host_file_cmd+:} false; then :
   4480  $as_echo_n "(cached) " >&6
   4481else
   4482  case $host in
   4483  *-*-mingw* )
   4484    case $build in
   4485      *-*-mingw* ) # actually msys
   4486        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
   4487        ;;
   4488      *-*-cygwin* )
   4489        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
   4490        ;;
   4491      * ) # otherwise, assume *nix
   4492        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
   4493        ;;
   4494    esac
   4495    ;;
   4496  *-*-cygwin* )
   4497    case $build in
   4498      *-*-mingw* ) # actually msys
   4499        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
   4500        ;;
   4501      *-*-cygwin* )
   4502        lt_cv_to_host_file_cmd=func_convert_file_noop
   4503        ;;
   4504      * ) # otherwise, assume *nix
   4505        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
   4506        ;;
   4507    esac
   4508    ;;
   4509  * ) # unhandled hosts (and "normal" native builds)
   4510    lt_cv_to_host_file_cmd=func_convert_file_noop
   4511    ;;
   4512esac
   4513
   4514fi
   4515
   4516to_host_file_cmd=$lt_cv_to_host_file_cmd
   4517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
   4518$as_echo "$lt_cv_to_host_file_cmd" >&6; }
   4519
   4520
   4521
   4522
   4523
   4524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
   4525$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
   4526if ${lt_cv_to_tool_file_cmd+:} false; then :
   4527  $as_echo_n "(cached) " >&6
   4528else
   4529  #assume ordinary cross tools, or native build.
   4530lt_cv_to_tool_file_cmd=func_convert_file_noop
   4531case $host in
   4532  *-*-mingw* )
   4533    case $build in
   4534      *-*-mingw* ) # actually msys
   4535        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
   4536        ;;
   4537    esac
   4538    ;;
   4539esac
   4540
   4541fi
   4542
   4543to_tool_file_cmd=$lt_cv_to_tool_file_cmd
   4544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
   4545$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
   4546
   4547
   4548
   4549
   4550
   4551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
   4552$as_echo_n "checking for $LD option to reload object files... " >&6; }
   4553if ${lt_cv_ld_reload_flag+:} false; then :
   4554  $as_echo_n "(cached) " >&6
   4555else
   4556  lt_cv_ld_reload_flag='-r'
   4557fi
   4558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
   4559$as_echo "$lt_cv_ld_reload_flag" >&6; }
   4560reload_flag=$lt_cv_ld_reload_flag
   4561case $reload_flag in
   4562"" | " "*) ;;
   4563*) reload_flag=" $reload_flag" ;;
   4564esac
   4565reload_cmds='$LD$reload_flag -o $output$reload_objs'
   4566case $host_os in
   4567  cygwin* | mingw* | pw32* | cegcc*)
   4568    if test "$GCC" != yes; then
   4569      reload_cmds=false
   4570    fi
   4571    ;;
   4572  darwin*)
   4573    if test "$GCC" = yes; then
   4574      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
   4575    else
   4576      reload_cmds='$LD$reload_flag -o $output$reload_objs'
   4577    fi
   4578    ;;
   4579esac
   4580
   4581
   4582
   4583
   4584
   4585
   4586
   4587
   4588
   4589if test -n "$ac_tool_prefix"; then
   4590  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
   4591set dummy ${ac_tool_prefix}objdump; ac_word=$2
   4592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4593$as_echo_n "checking for $ac_word... " >&6; }
   4594if ${ac_cv_prog_OBJDUMP+:} false; then :
   4595  $as_echo_n "(cached) " >&6
   4596else
   4597  if test -n "$OBJDUMP"; then
   4598  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
   4599else
   4600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4601for as_dir in $PATH
   4602do
   4603  IFS=$as_save_IFS
   4604  test -z "$as_dir" && as_dir=.
   4605    for ac_exec_ext in '' $ac_executable_extensions; do
   4606  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4607    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
   4608    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4609    break 2
   4610  fi
   4611done
   4612  done
   4613IFS=$as_save_IFS
   4614
   4615fi
   4616fi
   4617OBJDUMP=$ac_cv_prog_OBJDUMP
   4618if test -n "$OBJDUMP"; then
   4619  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
   4620$as_echo "$OBJDUMP" >&6; }
   4621else
   4622  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4623$as_echo "no" >&6; }
   4624fi
   4625
   4626
   4627fi
   4628if test -z "$ac_cv_prog_OBJDUMP"; then
   4629  ac_ct_OBJDUMP=$OBJDUMP
   4630  # Extract the first word of "objdump", so it can be a program name with args.
   4631set dummy objdump; ac_word=$2
   4632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4633$as_echo_n "checking for $ac_word... " >&6; }
   4634if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
   4635  $as_echo_n "(cached) " >&6
   4636else
   4637  if test -n "$ac_ct_OBJDUMP"; then
   4638  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
   4639else
   4640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4641for as_dir in $PATH
   4642do
   4643  IFS=$as_save_IFS
   4644  test -z "$as_dir" && as_dir=.
   4645    for ac_exec_ext in '' $ac_executable_extensions; do
   4646  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4647    ac_cv_prog_ac_ct_OBJDUMP="objdump"
   4648    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4649    break 2
   4650  fi
   4651done
   4652  done
   4653IFS=$as_save_IFS
   4654
   4655fi
   4656fi
   4657ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
   4658if test -n "$ac_ct_OBJDUMP"; then
   4659  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
   4660$as_echo "$ac_ct_OBJDUMP" >&6; }
   4661else
   4662  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4663$as_echo "no" >&6; }
   4664fi
   4665
   4666  if test "x$ac_ct_OBJDUMP" = x; then
   4667    OBJDUMP="false"
   4668  else
   4669    case $cross_compiling:$ac_tool_warned in
   4670yes:)
   4671{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   4672$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   4673ac_tool_warned=yes ;;
   4674esac
   4675    OBJDUMP=$ac_ct_OBJDUMP
   4676  fi
   4677else
   4678  OBJDUMP="$ac_cv_prog_OBJDUMP"
   4679fi
   4680
   4681test -z "$OBJDUMP" && OBJDUMP=objdump
   4682
   4683
   4684
   4685
   4686
   4687
   4688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
   4689$as_echo_n "checking how to recognize dependent libraries... " >&6; }
   4690if ${lt_cv_deplibs_check_method+:} false; then :
   4691  $as_echo_n "(cached) " >&6
   4692else
   4693  lt_cv_file_magic_cmd='$MAGIC_CMD'
   4694lt_cv_file_magic_test_file=
   4695lt_cv_deplibs_check_method='unknown'
   4696# Need to set the preceding variable on all platforms that support
   4697# interlibrary dependencies.
   4698# 'none' -- dependencies not supported.
   4699# `unknown' -- same as none, but documents that we really don't know.
   4700# 'pass_all' -- all dependencies passed with no checks.
   4701# 'test_compile' -- check by making test program.
   4702# 'file_magic [[regex]]' -- check by looking for files in library path
   4703# which responds to the $file_magic_cmd with a given extended regex.
   4704# If you have `file' or equivalent on your system and you're not sure
   4705# whether `pass_all' will *always* work, you probably want this one.
   4706
   4707case $host_os in
   4708aix[4-9]*)
   4709  lt_cv_deplibs_check_method=pass_all
   4710  ;;
   4711
   4712beos*)
   4713  lt_cv_deplibs_check_method=pass_all
   4714  ;;
   4715
   4716bsdi[45]*)
   4717  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
   4718  lt_cv_file_magic_cmd='/usr/bin/file -L'
   4719  lt_cv_file_magic_test_file=/shlib/libc.so
   4720  ;;
   4721
   4722cygwin*)
   4723  # func_win32_libid is a shell function defined in ltmain.sh
   4724  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
   4725  lt_cv_file_magic_cmd='func_win32_libid'
   4726  lt_cv_deplibs_check_method=pass_all
   4727  ;;
   4728
   4729mingw* | pw32*)
   4730  # Base MSYS/MinGW do not provide the 'file' command needed by
   4731  # func_win32_libid shell function, so use a weaker test based on 'objdump',
   4732  # unless we find 'file', for example because we are cross-compiling.
   4733  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
   4734  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
   4735    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
   4736    lt_cv_file_magic_cmd='func_win32_libid'
   4737  else
   4738    # Keep this pattern in sync with the one in func_win32_libid.
   4739    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
   4740    lt_cv_file_magic_cmd='$OBJDUMP -f'
   4741  fi
   4742  lt_cv_deplibs_check_method=pass_all
   4743  ;;
   4744
   4745cegcc*)
   4746  # use the weaker test based on 'objdump'. See mingw*.
   4747  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
   4748  lt_cv_file_magic_cmd='$OBJDUMP -f'
   4749  ;;
   4750
   4751darwin* | rhapsody*)
   4752  lt_cv_deplibs_check_method=pass_all
   4753  ;;
   4754
   4755freebsd* | dragonfly*)
   4756  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
   4757    case $host_cpu in
   4758    i*86 )
   4759      # Not sure whether the presence of OpenBSD here was a mistake.
   4760      # Let's accept both of them until this is cleared up.
   4761      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
   4762      lt_cv_file_magic_cmd=/usr/bin/file
   4763      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
   4764      ;;
   4765    esac
   4766  else
   4767    lt_cv_deplibs_check_method=pass_all
   4768  fi
   4769  ;;
   4770
   4771gnu*)
   4772  lt_cv_deplibs_check_method=pass_all
   4773  ;;
   4774
   4775haiku*)
   4776  lt_cv_deplibs_check_method=pass_all
   4777  ;;
   4778
   4779hpux10.20* | hpux11*)
   4780  lt_cv_file_magic_cmd=/usr/bin/file
   4781  case $host_cpu in
   4782  ia64*)
   4783    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
   4784    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
   4785    ;;
   4786  hppa*64*)
   4787    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]'
   4788    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
   4789    ;;
   4790  *)
   4791    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
   4792    lt_cv_file_magic_test_file=/usr/lib/libc.sl
   4793    ;;
   4794  esac
   4795  ;;
   4796
   4797interix[3-9]*)
   4798  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
   4799  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
   4800  ;;
   4801
   4802irix5* | irix6* | nonstopux*)
   4803  case $LD in
   4804  *-32|*"-32 ") libmagic=32-bit;;
   4805  *-n32|*"-n32 ") libmagic=N32;;
   4806  *-64|*"-64 ") libmagic=64-bit;;
   4807  *) libmagic=never-match;;
   4808  esac
   4809  lt_cv_deplibs_check_method=pass_all
   4810  ;;
   4811
   4812# This must be glibc/ELF.
   4813linux* | k*bsd*-gnu | kopensolaris*-gnu)
   4814  lt_cv_deplibs_check_method=pass_all
   4815  ;;
   4816
   4817netbsd*)
   4818  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
   4819    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
   4820  else
   4821    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
   4822  fi
   4823  ;;
   4824
   4825newos6*)
   4826  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
   4827  lt_cv_file_magic_cmd=/usr/bin/file
   4828  lt_cv_file_magic_test_file=/usr/lib/libnls.so
   4829  ;;
   4830
   4831*nto* | *qnx*)
   4832  lt_cv_deplibs_check_method=pass_all
   4833  ;;
   4834
   4835openbsd*)
   4836  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
   4837    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
   4838  else
   4839    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
   4840  fi
   4841  ;;
   4842
   4843osf3* | osf4* | osf5*)
   4844  lt_cv_deplibs_check_method=pass_all
   4845  ;;
   4846
   4847rdos*)
   4848  lt_cv_deplibs_check_method=pass_all
   4849  ;;
   4850
   4851solaris*)
   4852  lt_cv_deplibs_check_method=pass_all
   4853  ;;
   4854
   4855sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
   4856  lt_cv_deplibs_check_method=pass_all
   4857  ;;
   4858
   4859sysv4 | sysv4.3*)
   4860  case $host_vendor in
   4861  motorola)
   4862    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]'
   4863    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
   4864    ;;
   4865  ncr)
   4866    lt_cv_deplibs_check_method=pass_all
   4867    ;;
   4868  sequent)
   4869    lt_cv_file_magic_cmd='/bin/file'
   4870    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
   4871    ;;
   4872  sni)
   4873    lt_cv_file_magic_cmd='/bin/file'
   4874    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
   4875    lt_cv_file_magic_test_file=/lib/libc.so
   4876    ;;
   4877  siemens)
   4878    lt_cv_deplibs_check_method=pass_all
   4879    ;;
   4880  pc)
   4881    lt_cv_deplibs_check_method=pass_all
   4882    ;;
   4883  esac
   4884  ;;
   4885
   4886tpf*)
   4887  lt_cv_deplibs_check_method=pass_all
   4888  ;;
   4889esac
   4890
   4891fi
   4892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
   4893$as_echo "$lt_cv_deplibs_check_method" >&6; }
   4894
   4895file_magic_glob=
   4896want_nocaseglob=no
   4897if test "$build" = "$host"; then
   4898  case $host_os in
   4899  mingw* | pw32*)
   4900    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
   4901      want_nocaseglob=yes
   4902    else
   4903      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
   4904    fi
   4905    ;;
   4906  esac
   4907fi
   4908
   4909file_magic_cmd=$lt_cv_file_magic_cmd
   4910deplibs_check_method=$lt_cv_deplibs_check_method
   4911test -z "$deplibs_check_method" && deplibs_check_method=unknown
   4912
   4913
   4914
   4915
   4916
   4917
   4918
   4919
   4920
   4921
   4922
   4923
   4924
   4925
   4926
   4927
   4928
   4929
   4930
   4931
   4932
   4933
   4934if test -n "$ac_tool_prefix"; then
   4935  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
   4936set dummy ${ac_tool_prefix}dlltool; ac_word=$2
   4937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4938$as_echo_n "checking for $ac_word... " >&6; }
   4939if ${ac_cv_prog_DLLTOOL+:} false; then :
   4940  $as_echo_n "(cached) " >&6
   4941else
   4942  if test -n "$DLLTOOL"; then
   4943  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
   4944else
   4945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4946for as_dir in $PATH
   4947do
   4948  IFS=$as_save_IFS
   4949  test -z "$as_dir" && as_dir=.
   4950    for ac_exec_ext in '' $ac_executable_extensions; do
   4951  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4952    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
   4953    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4954    break 2
   4955  fi
   4956done
   4957  done
   4958IFS=$as_save_IFS
   4959
   4960fi
   4961fi
   4962DLLTOOL=$ac_cv_prog_DLLTOOL
   4963if test -n "$DLLTOOL"; then
   4964  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
   4965$as_echo "$DLLTOOL" >&6; }
   4966else
   4967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4968$as_echo "no" >&6; }
   4969fi
   4970
   4971
   4972fi
   4973if test -z "$ac_cv_prog_DLLTOOL"; then
   4974  ac_ct_DLLTOOL=$DLLTOOL
   4975  # Extract the first word of "dlltool", so it can be a program name with args.
   4976set dummy dlltool; ac_word=$2
   4977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4978$as_echo_n "checking for $ac_word... " >&6; }
   4979if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
   4980  $as_echo_n "(cached) " >&6
   4981else
   4982  if test -n "$ac_ct_DLLTOOL"; then
   4983  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
   4984else
   4985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4986for as_dir in $PATH
   4987do
   4988  IFS=$as_save_IFS
   4989  test -z "$as_dir" && as_dir=.
   4990    for ac_exec_ext in '' $ac_executable_extensions; do
   4991  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4992    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
   4993    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4994    break 2
   4995  fi
   4996done
   4997  done
   4998IFS=$as_save_IFS
   4999
   5000fi
   5001fi
   5002ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
   5003if test -n "$ac_ct_DLLTOOL"; then
   5004  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
   5005$as_echo "$ac_ct_DLLTOOL" >&6; }
   5006else
   5007  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5008$as_echo "no" >&6; }
   5009fi
   5010
   5011  if test "x$ac_ct_DLLTOOL" = x; then
   5012    DLLTOOL="false"
   5013  else
   5014    case $cross_compiling:$ac_tool_warned in
   5015yes:)
   5016{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   5017$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   5018ac_tool_warned=yes ;;
   5019esac
   5020    DLLTOOL=$ac_ct_DLLTOOL
   5021  fi
   5022else
   5023  DLLTOOL="$ac_cv_prog_DLLTOOL"
   5024fi
   5025
   5026test -z "$DLLTOOL" && DLLTOOL=dlltool
   5027
   5028
   5029
   5030
   5031
   5032
   5033
   5034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
   5035$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
   5036if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
   5037  $as_echo_n "(cached) " >&6
   5038else
   5039  lt_cv_sharedlib_from_linklib_cmd='unknown'
   5040
   5041case $host_os in
   5042cygwin* | mingw* | pw32* | cegcc*)
   5043  # two different shell functions defined in ltmain.sh
   5044  # decide which to use based on capabilities of $DLLTOOL
   5045  case `$DLLTOOL --help 2>&1` in
   5046  *--identify-strict*)
   5047    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
   5048    ;;
   5049  *)
   5050    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
   5051    ;;
   5052  esac
   5053  ;;
   5054*)
   5055  # fallback: assume linklib IS sharedlib
   5056  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
   5057  ;;
   5058esac
   5059
   5060fi
   5061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
   5062$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
   5063sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
   5064test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
   5065
   5066
   5067
   5068
   5069
   5070
   5071
   5072
   5073if test -n "$ac_tool_prefix"; then
   5074  for ac_prog in ar
   5075  do
   5076    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   5077set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   5078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5079$as_echo_n "checking for $ac_word... " >&6; }
   5080if ${ac_cv_prog_AR+:} false; then :
   5081  $as_echo_n "(cached) " >&6
   5082else
   5083  if test -n "$AR"; then
   5084  ac_cv_prog_AR="$AR" # Let the user override the test.
   5085else
   5086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5087for as_dir in $PATH
   5088do
   5089  IFS=$as_save_IFS
   5090  test -z "$as_dir" && as_dir=.
   5091    for ac_exec_ext in '' $ac_executable_extensions; do
   5092  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5093    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
   5094    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5095    break 2
   5096  fi
   5097done
   5098  done
   5099IFS=$as_save_IFS
   5100
   5101fi
   5102fi
   5103AR=$ac_cv_prog_AR
   5104if test -n "$AR"; then
   5105  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
   5106$as_echo "$AR" >&6; }
   5107else
   5108  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5109$as_echo "no" >&6; }
   5110fi
   5111
   5112
   5113    test -n "$AR" && break
   5114  done
   5115fi
   5116if test -z "$AR"; then
   5117  ac_ct_AR=$AR
   5118  for ac_prog in ar
   5119do
   5120  # Extract the first word of "$ac_prog", so it can be a program name with args.
   5121set dummy $ac_prog; ac_word=$2
   5122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5123$as_echo_n "checking for $ac_word... " >&6; }
   5124if ${ac_cv_prog_ac_ct_AR+:} false; then :
   5125  $as_echo_n "(cached) " >&6
   5126else
   5127  if test -n "$ac_ct_AR"; then
   5128  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
   5129else
   5130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5131for as_dir in $PATH
   5132do
   5133  IFS=$as_save_IFS
   5134  test -z "$as_dir" && as_dir=.
   5135    for ac_exec_ext in '' $ac_executable_extensions; do
   5136  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5137    ac_cv_prog_ac_ct_AR="$ac_prog"
   5138    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5139    break 2
   5140  fi
   5141done
   5142  done
   5143IFS=$as_save_IFS
   5144
   5145fi
   5146fi
   5147ac_ct_AR=$ac_cv_prog_ac_ct_AR
   5148if test -n "$ac_ct_AR"; then
   5149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
   5150$as_echo "$ac_ct_AR" >&6; }
   5151else
   5152  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5153$as_echo "no" >&6; }
   5154fi
   5155
   5156
   5157  test -n "$ac_ct_AR" && break
   5158done
   5159
   5160  if test "x$ac_ct_AR" = x; then
   5161    AR="false"
   5162  else
   5163    case $cross_compiling:$ac_tool_warned in
   5164yes:)
   5165{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   5166$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   5167ac_tool_warned=yes ;;
   5168esac
   5169    AR=$ac_ct_AR
   5170  fi
   5171fi
   5172
   5173: ${AR=ar}
   5174: ${AR_FLAGS=cru}
   5175
   5176
   5177
   5178
   5179
   5180
   5181
   5182
   5183
   5184
   5185
   5186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
   5187$as_echo_n "checking for archiver @FILE support... " >&6; }
   5188if ${lt_cv_ar_at_file+:} false; then :
   5189  $as_echo_n "(cached) " >&6
   5190else
   5191  lt_cv_ar_at_file=no
   5192   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5193/* end confdefs.h.  */
   5194
   5195int
   5196main ()
   5197{
   5198
   5199  ;
   5200  return 0;
   5201}
   5202_ACEOF
   5203if ac_fn_c_try_compile "$LINENO"; then :
   5204  echo conftest.$ac_objext > conftest.lst
   5205      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
   5206      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
   5207  (eval $lt_ar_try) 2>&5
   5208  ac_status=$?
   5209  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   5210  test $ac_status = 0; }
   5211      if test "$ac_status" -eq 0; then
   5212	# Ensure the archiver fails upon bogus file names.
   5213	rm -f conftest.$ac_objext libconftest.a
   5214	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
   5215  (eval $lt_ar_try) 2>&5
   5216  ac_status=$?
   5217  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   5218  test $ac_status = 0; }
   5219	if test "$ac_status" -ne 0; then
   5220          lt_cv_ar_at_file=@
   5221        fi
   5222      fi
   5223      rm -f conftest.* libconftest.a
   5224
   5225fi
   5226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5227
   5228fi
   5229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
   5230$as_echo "$lt_cv_ar_at_file" >&6; }
   5231
   5232if test "x$lt_cv_ar_at_file" = xno; then
   5233  archiver_list_spec=
   5234else
   5235  archiver_list_spec=$lt_cv_ar_at_file
   5236fi
   5237
   5238
   5239
   5240
   5241
   5242
   5243
   5244if test -n "$ac_tool_prefix"; then
   5245  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
   5246set dummy ${ac_tool_prefix}strip; ac_word=$2
   5247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5248$as_echo_n "checking for $ac_word... " >&6; }
   5249if ${ac_cv_prog_STRIP+:} false; then :
   5250  $as_echo_n "(cached) " >&6
   5251else
   5252  if test -n "$STRIP"; then
   5253  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
   5254else
   5255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5256for as_dir in $PATH
   5257do
   5258  IFS=$as_save_IFS
   5259  test -z "$as_dir" && as_dir=.
   5260    for ac_exec_ext in '' $ac_executable_extensions; do
   5261  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5262    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
   5263    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5264    break 2
   5265  fi
   5266done
   5267  done
   5268IFS=$as_save_IFS
   5269
   5270fi
   5271fi
   5272STRIP=$ac_cv_prog_STRIP
   5273if test -n "$STRIP"; then
   5274  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
   5275$as_echo "$STRIP" >&6; }
   5276else
   5277  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5278$as_echo "no" >&6; }
   5279fi
   5280
   5281
   5282fi
   5283if test -z "$ac_cv_prog_STRIP"; then
   5284  ac_ct_STRIP=$STRIP
   5285  # Extract the first word of "strip", so it can be a program name with args.
   5286set dummy strip; ac_word=$2
   5287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5288$as_echo_n "checking for $ac_word... " >&6; }
   5289if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
   5290  $as_echo_n "(cached) " >&6
   5291else
   5292  if test -n "$ac_ct_STRIP"; then
   5293  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
   5294else
   5295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5296for as_dir in $PATH
   5297do
   5298  IFS=$as_save_IFS
   5299  test -z "$as_dir" && as_dir=.
   5300    for ac_exec_ext in '' $ac_executable_extensions; do
   5301  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5302    ac_cv_prog_ac_ct_STRIP="strip"
   5303    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5304    break 2
   5305  fi
   5306done
   5307  done
   5308IFS=$as_save_IFS
   5309
   5310fi
   5311fi
   5312ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
   5313if test -n "$ac_ct_STRIP"; then
   5314  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
   5315$as_echo "$ac_ct_STRIP" >&6; }
   5316else
   5317  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5318$as_echo "no" >&6; }
   5319fi
   5320
   5321  if test "x$ac_ct_STRIP" = x; then
   5322    STRIP=":"
   5323  else
   5324    case $cross_compiling:$ac_tool_warned in
   5325yes:)
   5326{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   5327$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   5328ac_tool_warned=yes ;;
   5329esac
   5330    STRIP=$ac_ct_STRIP
   5331  fi
   5332else
   5333  STRIP="$ac_cv_prog_STRIP"
   5334fi
   5335
   5336test -z "$STRIP" && STRIP=:
   5337
   5338
   5339
   5340
   5341
   5342
   5343if test -n "$ac_tool_prefix"; then
   5344  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
   5345set dummy ${ac_tool_prefix}ranlib; ac_word=$2
   5346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5347$as_echo_n "checking for $ac_word... " >&6; }
   5348if ${ac_cv_prog_RANLIB+:} false; then :
   5349  $as_echo_n "(cached) " >&6
   5350else
   5351  if test -n "$RANLIB"; then
   5352  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
   5353else
   5354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5355for as_dir in $PATH
   5356do
   5357  IFS=$as_save_IFS
   5358  test -z "$as_dir" && as_dir=.
   5359    for ac_exec_ext in '' $ac_executable_extensions; do
   5360  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5361    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
   5362    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5363    break 2
   5364  fi
   5365done
   5366  done
   5367IFS=$as_save_IFS
   5368
   5369fi
   5370fi
   5371RANLIB=$ac_cv_prog_RANLIB
   5372if test -n "$RANLIB"; then
   5373  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
   5374$as_echo "$RANLIB" >&6; }
   5375else
   5376  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5377$as_echo "no" >&6; }
   5378fi
   5379
   5380
   5381fi
   5382if test -z "$ac_cv_prog_RANLIB"; then
   5383  ac_ct_RANLIB=$RANLIB
   5384  # Extract the first word of "ranlib", so it can be a program name with args.
   5385set dummy ranlib; ac_word=$2
   5386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5387$as_echo_n "checking for $ac_word... " >&6; }
   5388if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
   5389  $as_echo_n "(cached) " >&6
   5390else
   5391  if test -n "$ac_ct_RANLIB"; then
   5392  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
   5393else
   5394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5395for as_dir in $PATH
   5396do
   5397  IFS=$as_save_IFS
   5398  test -z "$as_dir" && as_dir=.
   5399    for ac_exec_ext in '' $ac_executable_extensions; do
   5400  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5401    ac_cv_prog_ac_ct_RANLIB="ranlib"
   5402    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5403    break 2
   5404  fi
   5405done
   5406  done
   5407IFS=$as_save_IFS
   5408
   5409fi
   5410fi
   5411ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
   5412if test -n "$ac_ct_RANLIB"; then
   5413  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
   5414$as_echo "$ac_ct_RANLIB" >&6; }
   5415else
   5416  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5417$as_echo "no" >&6; }
   5418fi
   5419
   5420  if test "x$ac_ct_RANLIB" = x; then
   5421    RANLIB=":"
   5422  else
   5423    case $cross_compiling:$ac_tool_warned in
   5424yes:)
   5425{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   5426$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   5427ac_tool_warned=yes ;;
   5428esac
   5429    RANLIB=$ac_ct_RANLIB
   5430  fi
   5431else
   5432  RANLIB="$ac_cv_prog_RANLIB"
   5433fi
   5434
   5435test -z "$RANLIB" && RANLIB=:
   5436
   5437
   5438
   5439
   5440
   5441
   5442# Determine commands to create old-style static archives.
   5443old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
   5444old_postinstall_cmds='chmod 644 $oldlib'
   5445old_postuninstall_cmds=
   5446
   5447if test -n "$RANLIB"; then
   5448  case $host_os in
   5449  openbsd*)
   5450    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
   5451    ;;
   5452  *)
   5453    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
   5454    ;;
   5455  esac
   5456  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
   5457fi
   5458
   5459case $host_os in
   5460  darwin*)
   5461    lock_old_archive_extraction=yes ;;
   5462  *)
   5463    lock_old_archive_extraction=no ;;
   5464esac
   5465
   5466
   5467
   5468
   5469
   5470
   5471
   5472
   5473
   5474
   5475
   5476
   5477
   5478
   5479
   5480
   5481
   5482
   5483
   5484
   5485
   5486for ac_prog in gawk mawk nawk awk
   5487do
   5488  # Extract the first word of "$ac_prog", so it can be a program name with args.
   5489set dummy $ac_prog; ac_word=$2
   5490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5491$as_echo_n "checking for $ac_word... " >&6; }
   5492if ${ac_cv_prog_AWK+:} false; then :
   5493  $as_echo_n "(cached) " >&6
   5494else
   5495  if test -n "$AWK"; then
   5496  ac_cv_prog_AWK="$AWK" # Let the user override the test.
   5497else
   5498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5499for as_dir in $PATH
   5500do
   5501  IFS=$as_save_IFS
   5502  test -z "$as_dir" && as_dir=.
   5503    for ac_exec_ext in '' $ac_executable_extensions; do
   5504  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5505    ac_cv_prog_AWK="$ac_prog"
   5506    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5507    break 2
   5508  fi
   5509done
   5510  done
   5511IFS=$as_save_IFS
   5512
   5513fi
   5514fi
   5515AWK=$ac_cv_prog_AWK
   5516if test -n "$AWK"; then
   5517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
   5518$as_echo "$AWK" >&6; }
   5519else
   5520  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5521$as_echo "no" >&6; }
   5522fi
   5523
   5524
   5525  test -n "$AWK" && break
   5526done
   5527
   5528
   5529
   5530
   5531
   5532
   5533
   5534
   5535
   5536
   5537
   5538
   5539
   5540
   5541
   5542
   5543
   5544
   5545
   5546# If no C compiler was specified, use CC.
   5547LTCC=${LTCC-"$CC"}
   5548
   5549# If no C compiler flags were specified, use CFLAGS.
   5550LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
   5551
   5552# Allow CC to be a program name with arguments.
   5553compiler=$CC
   5554
   5555
   5556# Check for command to grab the raw symbol name followed by C symbol from nm.
   5557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
   5558$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
   5559if ${lt_cv_sys_global_symbol_pipe+:} false; then :
   5560  $as_echo_n "(cached) " >&6
   5561else
   5562
   5563# These are sane defaults that work on at least a few old systems.
   5564# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
   5565
   5566# Character class describing NM global symbol codes.
   5567symcode='[BCDEGRST]'
   5568
   5569# Regexp to match symbols that can be accessed directly from C.
   5570sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
   5571
   5572# Define system-specific variables.
   5573case $host_os in
   5574aix*)
   5575  symcode='[BCDT]'
   5576  ;;
   5577cygwin* | mingw* | pw32* | cegcc*)
   5578  symcode='[ABCDGISTW]'
   5579  ;;
   5580hpux*)
   5581  if test "$host_cpu" = ia64; then
   5582    symcode='[ABCDEGRST]'
   5583  fi
   5584  ;;
   5585irix* | nonstopux*)
   5586  symcode='[BCDEGRST]'
   5587  ;;
   5588osf*)
   5589  symcode='[BCDEGQRST]'
   5590  ;;
   5591solaris*)
   5592  symcode='[BDRT]'
   5593  ;;
   5594sco3.2v5*)
   5595  symcode='[DT]'
   5596  ;;
   5597sysv4.2uw2*)
   5598  symcode='[DT]'
   5599  ;;
   5600sysv5* | sco5v6* | unixware* | OpenUNIX*)
   5601  symcode='[ABDT]'
   5602  ;;
   5603sysv4)
   5604  symcode='[DFNSTU]'
   5605  ;;
   5606esac
   5607
   5608# If we're using GNU nm, then use its standard symbol codes.
   5609case `$NM -V 2>&1` in
   5610*GNU* | *'with BFD'*)
   5611  symcode='[ABCDGIRSTW]' ;;
   5612esac
   5613
   5614# Transform an extracted symbol line into a proper C declaration.
   5615# Some systems (esp. on ia64) link data and code symbols differently,
   5616# so use this general approach.
   5617lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
   5618
   5619# Transform an extracted symbol line into symbol name and symbol address
   5620lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
   5621lt_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'"
   5622
   5623# Handle CRLF in mingw tool chain
   5624opt_cr=
   5625case $build_os in
   5626mingw*)
   5627  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
   5628  ;;
   5629esac
   5630
   5631# Try without a prefix underscore, then with it.
   5632for ac_symprfx in "" "_"; do
   5633
   5634  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
   5635  symxfrm="\\1 $ac_symprfx\\2 \\2"
   5636
   5637  # Write the raw and C identifiers.
   5638  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
   5639    # Fake it for dumpbin and say T for any non-static function
   5640    # and D for any global variable.
   5641    # Also find C++ and __fastcall symbols from MSVC++,
   5642    # which start with @ or ?.
   5643    lt_cv_sys_global_symbol_pipe="$AWK '"\
   5644"     {last_section=section; section=\$ 3};"\
   5645"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
   5646"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
   5647"     \$ 0!~/External *\|/{next};"\
   5648"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
   5649"     {if(hide[section]) next};"\
   5650"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
   5651"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
   5652"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
   5653"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
   5654"     ' prfx=^$ac_symprfx"
   5655  else
   5656    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
   5657  fi
   5658  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
   5659
   5660  # Check to see that the pipe works correctly.
   5661  pipe_works=no
   5662
   5663  rm -f conftest*
   5664  cat > conftest.$ac_ext <<_LT_EOF
   5665#ifdef __cplusplus
   5666extern "C" {
   5667#endif
   5668char nm_test_var;
   5669void nm_test_func(void);
   5670void nm_test_func(void){}
   5671#ifdef __cplusplus
   5672}
   5673#endif
   5674int main(){nm_test_var='a';nm_test_func();return(0);}
   5675_LT_EOF
   5676
   5677  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   5678  (eval $ac_compile) 2>&5
   5679  ac_status=$?
   5680  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   5681  test $ac_status = 0; }; then
   5682    # Now try to grab the symbols.
   5683    nlist=conftest.nm
   5684    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
   5685  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
   5686  ac_status=$?
   5687  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   5688  test $ac_status = 0; } && test -s "$nlist"; then
   5689      # Try sorting and uniquifying the output.
   5690      if sort "$nlist" | uniq > "$nlist"T; then
   5691	mv -f "$nlist"T "$nlist"
   5692      else
   5693	rm -f "$nlist"T
   5694      fi
   5695
   5696      # Make sure that we snagged all the symbols we need.
   5697      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
   5698	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
   5699	  cat <<_LT_EOF > conftest.$ac_ext
   5700/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
   5701#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
   5702/* DATA imports from DLLs on WIN32 con't be const, because runtime
   5703   relocations are performed -- see ld's documentation on pseudo-relocs.  */
   5704# define LT_DLSYM_CONST
   5705#elif defined(__osf__)
   5706/* This system does not cope well with relocations in const data.  */
   5707# define LT_DLSYM_CONST
   5708#else
   5709# define LT_DLSYM_CONST const
   5710#endif
   5711
   5712#ifdef __cplusplus
   5713extern "C" {
   5714#endif
   5715
   5716_LT_EOF
   5717	  # Now generate the symbol file.
   5718	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
   5719
   5720	  cat <<_LT_EOF >> conftest.$ac_ext
   5721
   5722/* The mapping between symbol names and symbols.  */
   5723LT_DLSYM_CONST struct {
   5724  const char *name;
   5725  void       *address;
   5726}
   5727lt__PROGRAM__LTX_preloaded_symbols[] =
   5728{
   5729  { "@PROGRAM@", (void *) 0 },
   5730_LT_EOF
   5731	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
   5732	  cat <<\_LT_EOF >> conftest.$ac_ext
   5733  {0, (void *) 0}
   5734};
   5735
   5736/* This works around a problem in FreeBSD linker */
   5737#ifdef FREEBSD_WORKAROUND
   5738static const void *lt_preloaded_setup() {
   5739  return lt__PROGRAM__LTX_preloaded_symbols;
   5740}
   5741#endif
   5742
   5743#ifdef __cplusplus
   5744}
   5745#endif
   5746_LT_EOF
   5747	  # Now try linking the two files.
   5748	  mv conftest.$ac_objext conftstm.$ac_objext
   5749	  lt_globsym_save_LIBS=$LIBS
   5750	  lt_globsym_save_CFLAGS=$CFLAGS
   5751	  LIBS="conftstm.$ac_objext"
   5752	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
   5753	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
   5754  (eval $ac_link) 2>&5
   5755  ac_status=$?
   5756  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   5757  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
   5758	    pipe_works=yes
   5759	  fi
   5760	  LIBS=$lt_globsym_save_LIBS
   5761	  CFLAGS=$lt_globsym_save_CFLAGS
   5762	else
   5763	  echo "cannot find nm_test_func in $nlist" >&5
   5764	fi
   5765      else
   5766	echo "cannot find nm_test_var in $nlist" >&5
   5767      fi
   5768    else
   5769      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
   5770    fi
   5771  else
   5772    echo "$progname: failed program was:" >&5
   5773    cat conftest.$ac_ext >&5
   5774  fi
   5775  rm -rf conftest* conftst*
   5776
   5777  # Do not use the global_symbol_pipe unless it works.
   5778  if test "$pipe_works" = yes; then
   5779    break
   5780  else
   5781    lt_cv_sys_global_symbol_pipe=
   5782  fi
   5783done
   5784
   5785fi
   5786
   5787if test -z "$lt_cv_sys_global_symbol_pipe"; then
   5788  lt_cv_sys_global_symbol_to_cdecl=
   5789fi
   5790if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
   5791  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
   5792$as_echo "failed" >&6; }
   5793else
   5794  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
   5795$as_echo "ok" >&6; }
   5796fi
   5797
   5798# Response file support.
   5799if test "$lt_cv_nm_interface" = "MS dumpbin"; then
   5800  nm_file_list_spec='@'
   5801elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
   5802  nm_file_list_spec='@'
   5803fi
   5804
   5805
   5806
   5807
   5808
   5809
   5810
   5811
   5812
   5813
   5814
   5815
   5816
   5817
   5818
   5819
   5820
   5821
   5822
   5823
   5824
   5825
   5826
   5827
   5828
   5829
   5830
   5831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
   5832$as_echo_n "checking for sysroot... " >&6; }
   5833
   5834# Check whether --with-sysroot was given.
   5835if test "${with_sysroot+set}" = set; then :
   5836  withval=$with_sysroot;
   5837else
   5838  with_sysroot=no
   5839fi
   5840
   5841
   5842lt_sysroot=
   5843case ${with_sysroot} in #(
   5844 yes)
   5845   if test "$GCC" = yes; then
   5846     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
   5847   fi
   5848   ;; #(
   5849 /*)
   5850   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
   5851   ;; #(
   5852 no|'')
   5853   ;; #(
   5854 *)
   5855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
   5856$as_echo "${with_sysroot}" >&6; }
   5857   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
   5858   ;;
   5859esac
   5860
   5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
   5862$as_echo "${lt_sysroot:-no}" >&6; }
   5863
   5864
   5865
   5866
   5867
   5868# Check whether --enable-libtool-lock was given.
   5869if test "${enable_libtool_lock+set}" = set; then :
   5870  enableval=$enable_libtool_lock;
   5871fi
   5872
   5873test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
   5874
   5875# Some flags need to be propagated to the compiler or linker for good
   5876# libtool support.
   5877case $host in
   5878ia64-*-hpux*)
   5879  # Find out which ABI we are using.
   5880  echo 'int i;' > conftest.$ac_ext
   5881  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   5882  (eval $ac_compile) 2>&5
   5883  ac_status=$?
   5884  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   5885  test $ac_status = 0; }; then
   5886    case `/usr/bin/file conftest.$ac_objext` in
   5887      *ELF-32*)
   5888	HPUX_IA64_MODE="32"
   5889	;;
   5890      *ELF-64*)
   5891	HPUX_IA64_MODE="64"
   5892	;;
   5893    esac
   5894  fi
   5895  rm -rf conftest*
   5896  ;;
   5897*-*-irix6*)
   5898  # Find out which ABI we are using.
   5899  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
   5900  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   5901  (eval $ac_compile) 2>&5
   5902  ac_status=$?
   5903  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   5904  test $ac_status = 0; }; then
   5905    if test "$lt_cv_prog_gnu_ld" = yes; then
   5906      case `/usr/bin/file conftest.$ac_objext` in
   5907	*32-bit*)
   5908	  LD="${LD-ld} -melf32bsmip"
   5909	  ;;
   5910	*N32*)
   5911	  LD="${LD-ld} -melf32bmipn32"
   5912	  ;;
   5913	*64-bit*)
   5914	  LD="${LD-ld} -melf64bmip"
   5915	;;
   5916      esac
   5917    else
   5918      case `/usr/bin/file conftest.$ac_objext` in
   5919	*32-bit*)
   5920	  LD="${LD-ld} -32"
   5921	  ;;
   5922	*N32*)
   5923	  LD="${LD-ld} -n32"
   5924	  ;;
   5925	*64-bit*)
   5926	  LD="${LD-ld} -64"
   5927	  ;;
   5928      esac
   5929    fi
   5930  fi
   5931  rm -rf conftest*
   5932  ;;
   5933
   5934x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
   5935s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
   5936  # Find out which ABI we are using.
   5937  echo 'int i;' > conftest.$ac_ext
   5938  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   5939  (eval $ac_compile) 2>&5
   5940  ac_status=$?
   5941  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   5942  test $ac_status = 0; }; then
   5943    case `/usr/bin/file conftest.o` in
   5944      *32-bit*)
   5945	case $host in
   5946	  x86_64-*kfreebsd*-gnu)
   5947	    LD="${LD-ld} -m elf_i386_fbsd"
   5948	    ;;
   5949	  x86_64-*linux*)
   5950	    LD="${LD-ld} -m elf_i386"
   5951	    ;;
   5952	  ppc64-*linux*|powerpc64-*linux*)
   5953	    LD="${LD-ld} -m elf32ppclinux"
   5954	    ;;
   5955	  s390x-*linux*)
   5956	    LD="${LD-ld} -m elf_s390"
   5957	    ;;
   5958	  sparc64-*linux*)
   5959	    LD="${LD-ld} -m elf32_sparc"
   5960	    ;;
   5961	esac
   5962	;;
   5963      *64-bit*)
   5964	case $host in
   5965	  x86_64-*kfreebsd*-gnu)
   5966	    LD="${LD-ld} -m elf_x86_64_fbsd"
   5967	    ;;
   5968	  x86_64-*linux*)
   5969	    LD="${LD-ld} -m elf_x86_64"
   5970	    ;;
   5971	  ppc*-*linux*|powerpc*-*linux*)
   5972	    LD="${LD-ld} -m elf64ppc"
   5973	    ;;
   5974	  s390*-*linux*|s390*-*tpf*)
   5975	    LD="${LD-ld} -m elf64_s390"
   5976	    ;;
   5977	  sparc*-*linux*)
   5978	    LD="${LD-ld} -m elf64_sparc"
   5979	    ;;
   5980	esac
   5981	;;
   5982    esac
   5983  fi
   5984  rm -rf conftest*
   5985  ;;
   5986
   5987*-*-sco3.2v5*)
   5988  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
   5989  SAVE_CFLAGS="$CFLAGS"
   5990  CFLAGS="$CFLAGS -belf"
   5991  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
   5992$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
   5993if ${lt_cv_cc_needs_belf+:} false; then :
   5994  $as_echo_n "(cached) " >&6
   5995else
   5996  ac_ext=c
   5997ac_cpp='$CPP $CPPFLAGS'
   5998ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5999ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6000ac_compiler_gnu=$ac_cv_c_compiler_gnu
   6001
   6002     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6003/* end confdefs.h.  */
   6004
   6005int
   6006main ()
   6007{
   6008
   6009  ;
   6010  return 0;
   6011}
   6012_ACEOF
   6013if ac_fn_c_try_link "$LINENO"; then :
   6014  lt_cv_cc_needs_belf=yes
   6015else
   6016  lt_cv_cc_needs_belf=no
   6017fi
   6018rm -f core conftest.err conftest.$ac_objext \
   6019    conftest$ac_exeext conftest.$ac_ext
   6020     ac_ext=c
   6021ac_cpp='$CPP $CPPFLAGS'
   6022ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6023ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6024ac_compiler_gnu=$ac_cv_c_compiler_gnu
   6025
   6026fi
   6027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
   6028$as_echo "$lt_cv_cc_needs_belf" >&6; }
   6029  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
   6030    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
   6031    CFLAGS="$SAVE_CFLAGS"
   6032  fi
   6033  ;;
   6034*-*solaris*)
   6035  # Find out which ABI we are using.
   6036  echo 'int i;' > conftest.$ac_ext
   6037  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   6038  (eval $ac_compile) 2>&5
   6039  ac_status=$?
   6040  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   6041  test $ac_status = 0; }; then
   6042    case `/usr/bin/file conftest.o` in
   6043    *64-bit*)
   6044      case $lt_cv_prog_gnu_ld in
   6045      yes*)
   6046        case $host in
   6047        i?86-*-solaris*)
   6048          LD="${LD-ld} -m elf_x86_64"
   6049          ;;
   6050        sparc*-*-solaris*)
   6051          LD="${LD-ld} -m elf64_sparc"
   6052          ;;
   6053        esac
   6054        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
   6055        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
   6056          LD="${LD-ld}_sol2"
   6057        fi
   6058        ;;
   6059      *)
   6060	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
   6061	  LD="${LD-ld} -64"
   6062	fi
   6063	;;
   6064      esac
   6065      ;;
   6066    esac
   6067  fi
   6068  rm -rf conftest*
   6069  ;;
   6070esac
   6071
   6072need_locks="$enable_libtool_lock"
   6073
   6074if test -n "$ac_tool_prefix"; then
   6075  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
   6076set dummy ${ac_tool_prefix}mt; ac_word=$2
   6077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6078$as_echo_n "checking for $ac_word... " >&6; }
   6079if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
   6080  $as_echo_n "(cached) " >&6
   6081else
   6082  if test -n "$MANIFEST_TOOL"; then
   6083  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
   6084else
   6085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6086for as_dir in $PATH
   6087do
   6088  IFS=$as_save_IFS
   6089  test -z "$as_dir" && as_dir=.
   6090    for ac_exec_ext in '' $ac_executable_extensions; do
   6091  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6092    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
   6093    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6094    break 2
   6095  fi
   6096done
   6097  done
   6098IFS=$as_save_IFS
   6099
   6100fi
   6101fi
   6102MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
   6103if test -n "$MANIFEST_TOOL"; then
   6104  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
   6105$as_echo "$MANIFEST_TOOL" >&6; }
   6106else
   6107  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6108$as_echo "no" >&6; }
   6109fi
   6110
   6111
   6112fi
   6113if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
   6114  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
   6115  # Extract the first word of "mt", so it can be a program name with args.
   6116set dummy mt; ac_word=$2
   6117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6118$as_echo_n "checking for $ac_word... " >&6; }
   6119if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
   6120  $as_echo_n "(cached) " >&6
   6121else
   6122  if test -n "$ac_ct_MANIFEST_TOOL"; then
   6123  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
   6124else
   6125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6126for as_dir in $PATH
   6127do
   6128  IFS=$as_save_IFS
   6129  test -z "$as_dir" && as_dir=.
   6130    for ac_exec_ext in '' $ac_executable_extensions; do
   6131  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6132    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
   6133    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6134    break 2
   6135  fi
   6136done
   6137  done
   6138IFS=$as_save_IFS
   6139
   6140fi
   6141fi
   6142ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
   6143if test -n "$ac_ct_MANIFEST_TOOL"; then
   6144  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
   6145$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
   6146else
   6147  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6148$as_echo "no" >&6; }
   6149fi
   6150
   6151  if test "x$ac_ct_MANIFEST_TOOL" = x; then
   6152    MANIFEST_TOOL=":"
   6153  else
   6154    case $cross_compiling:$ac_tool_warned in
   6155yes:)
   6156{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   6157$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   6158ac_tool_warned=yes ;;
   6159esac
   6160    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
   6161  fi
   6162else
   6163  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
   6164fi
   6165
   6166test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
   6167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
   6168$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
   6169if ${lt_cv_path_mainfest_tool+:} false; then :
   6170  $as_echo_n "(cached) " >&6
   6171else
   6172  lt_cv_path_mainfest_tool=no
   6173  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
   6174  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
   6175  cat conftest.err >&5
   6176  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
   6177    lt_cv_path_mainfest_tool=yes
   6178  fi
   6179  rm -f conftest*
   6180fi
   6181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
   6182$as_echo "$lt_cv_path_mainfest_tool" >&6; }
   6183if test "x$lt_cv_path_mainfest_tool" != xyes; then
   6184  MANIFEST_TOOL=:
   6185fi
   6186
   6187
   6188
   6189
   6190
   6191
   6192  case $host_os in
   6193    rhapsody* | darwin*)
   6194    if test -n "$ac_tool_prefix"; then
   6195  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
   6196set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
   6197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6198$as_echo_n "checking for $ac_word... " >&6; }
   6199if ${ac_cv_prog_DSYMUTIL+:} false; then :
   6200  $as_echo_n "(cached) " >&6
   6201else
   6202  if test -n "$DSYMUTIL"; then
   6203  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
   6204else
   6205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6206for as_dir in $PATH
   6207do
   6208  IFS=$as_save_IFS
   6209  test -z "$as_dir" && as_dir=.
   6210    for ac_exec_ext in '' $ac_executable_extensions; do
   6211  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6212    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
   6213    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6214    break 2
   6215  fi
   6216done
   6217  done
   6218IFS=$as_save_IFS
   6219
   6220fi
   6221fi
   6222DSYMUTIL=$ac_cv_prog_DSYMUTIL
   6223if test -n "$DSYMUTIL"; then
   6224  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
   6225$as_echo "$DSYMUTIL" >&6; }
   6226else
   6227  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6228$as_echo "no" >&6; }
   6229fi
   6230
   6231
   6232fi
   6233if test -z "$ac_cv_prog_DSYMUTIL"; then
   6234  ac_ct_DSYMUTIL=$DSYMUTIL
   6235  # Extract the first word of "dsymutil", so it can be a program name with args.
   6236set dummy dsymutil; ac_word=$2
   6237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6238$as_echo_n "checking for $ac_word... " >&6; }
   6239if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
   6240  $as_echo_n "(cached) " >&6
   6241else
   6242  if test -n "$ac_ct_DSYMUTIL"; then
   6243  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
   6244else
   6245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6246for as_dir in $PATH
   6247do
   6248  IFS=$as_save_IFS
   6249  test -z "$as_dir" && as_dir=.
   6250    for ac_exec_ext in '' $ac_executable_extensions; do
   6251  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6252    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
   6253    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6254    break 2
   6255  fi
   6256done
   6257  done
   6258IFS=$as_save_IFS
   6259
   6260fi
   6261fi
   6262ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
   6263if test -n "$ac_ct_DSYMUTIL"; then
   6264  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
   6265$as_echo "$ac_ct_DSYMUTIL" >&6; }
   6266else
   6267  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6268$as_echo "no" >&6; }
   6269fi
   6270
   6271  if test "x$ac_ct_DSYMUTIL" = x; then
   6272    DSYMUTIL=":"
   6273  else
   6274    case $cross_compiling:$ac_tool_warned in
   6275yes:)
   6276{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   6277$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   6278ac_tool_warned=yes ;;
   6279esac
   6280    DSYMUTIL=$ac_ct_DSYMUTIL
   6281  fi
   6282else
   6283  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
   6284fi
   6285
   6286    if test -n "$ac_tool_prefix"; then
   6287  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
   6288set dummy ${ac_tool_prefix}nmedit; ac_word=$2
   6289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6290$as_echo_n "checking for $ac_word... " >&6; }
   6291if ${ac_cv_prog_NMEDIT+:} false; then :
   6292  $as_echo_n "(cached) " >&6
   6293else
   6294  if test -n "$NMEDIT"; then
   6295  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
   6296else
   6297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6298for as_dir in $PATH
   6299do
   6300  IFS=$as_save_IFS
   6301  test -z "$as_dir" && as_dir=.
   6302    for ac_exec_ext in '' $ac_executable_extensions; do
   6303  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6304    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
   6305    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6306    break 2
   6307  fi
   6308done
   6309  done
   6310IFS=$as_save_IFS
   6311
   6312fi
   6313fi
   6314NMEDIT=$ac_cv_prog_NMEDIT
   6315if test -n "$NMEDIT"; then
   6316  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
   6317$as_echo "$NMEDIT" >&6; }
   6318else
   6319  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6320$as_echo "no" >&6; }
   6321fi
   6322
   6323
   6324fi
   6325if test -z "$ac_cv_prog_NMEDIT"; then
   6326  ac_ct_NMEDIT=$NMEDIT
   6327  # Extract the first word of "nmedit", so it can be a program name with args.
   6328set dummy nmedit; ac_word=$2
   6329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6330$as_echo_n "checking for $ac_word... " >&6; }
   6331if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
   6332  $as_echo_n "(cached) " >&6
   6333else
   6334  if test -n "$ac_ct_NMEDIT"; then
   6335  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
   6336else
   6337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6338for as_dir in $PATH
   6339do
   6340  IFS=$as_save_IFS
   6341  test -z "$as_dir" && as_dir=.
   6342    for ac_exec_ext in '' $ac_executable_extensions; do
   6343  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6344    ac_cv_prog_ac_ct_NMEDIT="nmedit"
   6345    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6346    break 2
   6347  fi
   6348done
   6349  done
   6350IFS=$as_save_IFS
   6351
   6352fi
   6353fi
   6354ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
   6355if test -n "$ac_ct_NMEDIT"; then
   6356  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
   6357$as_echo "$ac_ct_NMEDIT" >&6; }
   6358else
   6359  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6360$as_echo "no" >&6; }
   6361fi
   6362
   6363  if test "x$ac_ct_NMEDIT" = x; then
   6364    NMEDIT=":"
   6365  else
   6366    case $cross_compiling:$ac_tool_warned in
   6367yes:)
   6368{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   6369$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   6370ac_tool_warned=yes ;;
   6371esac
   6372    NMEDIT=$ac_ct_NMEDIT
   6373  fi
   6374else
   6375  NMEDIT="$ac_cv_prog_NMEDIT"
   6376fi
   6377
   6378    if test -n "$ac_tool_prefix"; then
   6379  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
   6380set dummy ${ac_tool_prefix}lipo; ac_word=$2
   6381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6382$as_echo_n "checking for $ac_word... " >&6; }
   6383if ${ac_cv_prog_LIPO+:} false; then :
   6384  $as_echo_n "(cached) " >&6
   6385else
   6386  if test -n "$LIPO"; then
   6387  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
   6388else
   6389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6390for as_dir in $PATH
   6391do
   6392  IFS=$as_save_IFS
   6393  test -z "$as_dir" && as_dir=.
   6394    for ac_exec_ext in '' $ac_executable_extensions; do
   6395  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6396    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
   6397    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6398    break 2
   6399  fi
   6400done
   6401  done
   6402IFS=$as_save_IFS
   6403
   6404fi
   6405fi
   6406LIPO=$ac_cv_prog_LIPO
   6407if test -n "$LIPO"; then
   6408  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
   6409$as_echo "$LIPO" >&6; }
   6410else
   6411  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6412$as_echo "no" >&6; }
   6413fi
   6414
   6415
   6416fi
   6417if test -z "$ac_cv_prog_LIPO"; then
   6418  ac_ct_LIPO=$LIPO
   6419  # Extract the first word of "lipo", so it can be a program name with args.
   6420set dummy lipo; ac_word=$2
   6421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6422$as_echo_n "checking for $ac_word... " >&6; }
   6423if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
   6424  $as_echo_n "(cached) " >&6
   6425else
   6426  if test -n "$ac_ct_LIPO"; then
   6427  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
   6428else
   6429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6430for as_dir in $PATH
   6431do
   6432  IFS=$as_save_IFS
   6433  test -z "$as_dir" && as_dir=.
   6434    for ac_exec_ext in '' $ac_executable_extensions; do
   6435  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6436    ac_cv_prog_ac_ct_LIPO="lipo"
   6437    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6438    break 2
   6439  fi
   6440done
   6441  done
   6442IFS=$as_save_IFS
   6443
   6444fi
   6445fi
   6446ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
   6447if test -n "$ac_ct_LIPO"; then
   6448  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
   6449$as_echo "$ac_ct_LIPO" >&6; }
   6450else
   6451  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6452$as_echo "no" >&6; }
   6453fi
   6454
   6455  if test "x$ac_ct_LIPO" = x; then
   6456    LIPO=":"
   6457  else
   6458    case $cross_compiling:$ac_tool_warned in
   6459yes:)
   6460{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   6461$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   6462ac_tool_warned=yes ;;
   6463esac
   6464    LIPO=$ac_ct_LIPO
   6465  fi
   6466else
   6467  LIPO="$ac_cv_prog_LIPO"
   6468fi
   6469
   6470    if test -n "$ac_tool_prefix"; then
   6471  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
   6472set dummy ${ac_tool_prefix}otool; ac_word=$2
   6473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6474$as_echo_n "checking for $ac_word... " >&6; }
   6475if ${ac_cv_prog_OTOOL+:} false; then :
   6476  $as_echo_n "(cached) " >&6
   6477else
   6478  if test -n "$OTOOL"; then
   6479  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
   6480else
   6481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6482for as_dir in $PATH
   6483do
   6484  IFS=$as_save_IFS
   6485  test -z "$as_dir" && as_dir=.
   6486    for ac_exec_ext in '' $ac_executable_extensions; do
   6487  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6488    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
   6489    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6490    break 2
   6491  fi
   6492done
   6493  done
   6494IFS=$as_save_IFS
   6495
   6496fi
   6497fi
   6498OTOOL=$ac_cv_prog_OTOOL
   6499if test -n "$OTOOL"; then
   6500  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
   6501$as_echo "$OTOOL" >&6; }
   6502else
   6503  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6504$as_echo "no" >&6; }
   6505fi
   6506
   6507
   6508fi
   6509if test -z "$ac_cv_prog_OTOOL"; then
   6510  ac_ct_OTOOL=$OTOOL
   6511  # Extract the first word of "otool", so it can be a program name with args.
   6512set dummy otool; ac_word=$2
   6513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6514$as_echo_n "checking for $ac_word... " >&6; }
   6515if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
   6516  $as_echo_n "(cached) " >&6
   6517else
   6518  if test -n "$ac_ct_OTOOL"; then
   6519  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
   6520else
   6521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6522for as_dir in $PATH
   6523do
   6524  IFS=$as_save_IFS
   6525  test -z "$as_dir" && as_dir=.
   6526    for ac_exec_ext in '' $ac_executable_extensions; do
   6527  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6528    ac_cv_prog_ac_ct_OTOOL="otool"
   6529    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6530    break 2
   6531  fi
   6532done
   6533  done
   6534IFS=$as_save_IFS
   6535
   6536fi
   6537fi
   6538ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
   6539if test -n "$ac_ct_OTOOL"; then
   6540  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
   6541$as_echo "$ac_ct_OTOOL" >&6; }
   6542else
   6543  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6544$as_echo "no" >&6; }
   6545fi
   6546
   6547  if test "x$ac_ct_OTOOL" = x; then
   6548    OTOOL=":"
   6549  else
   6550    case $cross_compiling:$ac_tool_warned in
   6551yes:)
   6552{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   6553$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   6554ac_tool_warned=yes ;;
   6555esac
   6556    OTOOL=$ac_ct_OTOOL
   6557  fi
   6558else
   6559  OTOOL="$ac_cv_prog_OTOOL"
   6560fi
   6561
   6562    if test -n "$ac_tool_prefix"; then
   6563  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
   6564set dummy ${ac_tool_prefix}otool64; ac_word=$2
   6565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6566$as_echo_n "checking for $ac_word... " >&6; }
   6567if ${ac_cv_prog_OTOOL64+:} false; then :
   6568  $as_echo_n "(cached) " >&6
   6569else
   6570  if test -n "$OTOOL64"; then
   6571  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
   6572else
   6573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6574for as_dir in $PATH
   6575do
   6576  IFS=$as_save_IFS
   6577  test -z "$as_dir" && as_dir=.
   6578    for ac_exec_ext in '' $ac_executable_extensions; do
   6579  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6580    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
   6581    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6582    break 2
   6583  fi
   6584done
   6585  done
   6586IFS=$as_save_IFS
   6587
   6588fi
   6589fi
   6590OTOOL64=$ac_cv_prog_OTOOL64
   6591if test -n "$OTOOL64"; then
   6592  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
   6593$as_echo "$OTOOL64" >&6; }
   6594else
   6595  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6596$as_echo "no" >&6; }
   6597fi
   6598
   6599
   6600fi
   6601if test -z "$ac_cv_prog_OTOOL64"; then
   6602  ac_ct_OTOOL64=$OTOOL64
   6603  # Extract the first word of "otool64", so it can be a program name with args.
   6604set dummy otool64; ac_word=$2
   6605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6606$as_echo_n "checking for $ac_word... " >&6; }
   6607if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
   6608  $as_echo_n "(cached) " >&6
   6609else
   6610  if test -n "$ac_ct_OTOOL64"; then
   6611  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
   6612else
   6613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6614for as_dir in $PATH
   6615do
   6616  IFS=$as_save_IFS
   6617  test -z "$as_dir" && as_dir=.
   6618    for ac_exec_ext in '' $ac_executable_extensions; do
   6619  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6620    ac_cv_prog_ac_ct_OTOOL64="otool64"
   6621    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6622    break 2
   6623  fi
   6624done
   6625  done
   6626IFS=$as_save_IFS
   6627
   6628fi
   6629fi
   6630ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
   6631if test -n "$ac_ct_OTOOL64"; then
   6632  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
   6633$as_echo "$ac_ct_OTOOL64" >&6; }
   6634else
   6635  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6636$as_echo "no" >&6; }
   6637fi
   6638
   6639  if test "x$ac_ct_OTOOL64" = x; then
   6640    OTOOL64=":"
   6641  else
   6642    case $cross_compiling:$ac_tool_warned in
   6643yes:)
   6644{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   6645$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   6646ac_tool_warned=yes ;;
   6647esac
   6648    OTOOL64=$ac_ct_OTOOL64
   6649  fi
   6650else
   6651  OTOOL64="$ac_cv_prog_OTOOL64"
   6652fi
   6653
   6654
   6655
   6656
   6657
   6658
   6659
   6660
   6661
   6662
   6663
   6664
   6665
   6666
   6667
   6668
   6669
   6670
   6671
   6672
   6673
   6674
   6675
   6676
   6677
   6678
   6679
   6680    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
   6681$as_echo_n "checking for -single_module linker flag... " >&6; }
   6682if ${lt_cv_apple_cc_single_mod+:} false; then :
   6683  $as_echo_n "(cached) " >&6
   6684else
   6685  lt_cv_apple_cc_single_mod=no
   6686      if test -z "${LT_MULTI_MODULE}"; then
   6687	# By default we will add the -single_module flag. You can override
   6688	# by either setting the environment variable LT_MULTI_MODULE
   6689	# non-empty at configure time, or by adding -multi_module to the
   6690	# link flags.
   6691	rm -rf libconftest.dylib*
   6692	echo "int foo(void){return 1;}" > conftest.c
   6693	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
   6694-dynamiclib -Wl,-single_module conftest.c" >&5
   6695	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
   6696	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
   6697        _lt_result=$?
   6698	# If there is a non-empty error log, and "single_module"
   6699	# appears in it, assume the flag caused a linker warning
   6700        if test -s conftest.err && $GREP single_module conftest.err; then
   6701	  cat conftest.err >&5
   6702	# Otherwise, if the output was created with a 0 exit code from
   6703	# the compiler, it worked.
   6704	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
   6705	  lt_cv_apple_cc_single_mod=yes
   6706	else
   6707	  cat conftest.err >&5
   6708	fi
   6709	rm -rf libconftest.dylib*
   6710	rm -f conftest.*
   6711      fi
   6712fi
   6713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
   6714$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
   6715
   6716    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
   6717$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
   6718if ${lt_cv_ld_exported_symbols_list+:} false; then :
   6719  $as_echo_n "(cached) " >&6
   6720else
   6721  lt_cv_ld_exported_symbols_list=no
   6722      save_LDFLAGS=$LDFLAGS
   6723      echo "_main" > conftest.sym
   6724      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
   6725      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6726/* end confdefs.h.  */
   6727
   6728int
   6729main ()
   6730{
   6731
   6732  ;
   6733  return 0;
   6734}
   6735_ACEOF
   6736if ac_fn_c_try_link "$LINENO"; then :
   6737  lt_cv_ld_exported_symbols_list=yes
   6738else
   6739  lt_cv_ld_exported_symbols_list=no
   6740fi
   6741rm -f core conftest.err conftest.$ac_objext \
   6742    conftest$ac_exeext conftest.$ac_ext
   6743	LDFLAGS="$save_LDFLAGS"
   6744
   6745fi
   6746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
   6747$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
   6748
   6749    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
   6750$as_echo_n "checking for -force_load linker flag... " >&6; }
   6751if ${lt_cv_ld_force_load+:} false; then :
   6752  $as_echo_n "(cached) " >&6
   6753else
   6754  lt_cv_ld_force_load=no
   6755      cat > conftest.c << _LT_EOF
   6756int forced_loaded() { return 2;}
   6757_LT_EOF
   6758      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
   6759      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
   6760      echo "$AR cru libconftest.a conftest.o" >&5
   6761      $AR cru libconftest.a conftest.o 2>&5
   6762      echo "$RANLIB libconftest.a" >&5
   6763      $RANLIB libconftest.a 2>&5
   6764      cat > conftest.c << _LT_EOF
   6765int main() { return 0;}
   6766_LT_EOF
   6767      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
   6768      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
   6769      _lt_result=$?
   6770      if test -s conftest.err && $GREP force_load conftest.err; then
   6771	cat conftest.err >&5
   6772      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
   6773	lt_cv_ld_force_load=yes
   6774      else
   6775	cat conftest.err >&5
   6776      fi
   6777        rm -f conftest.err libconftest.a conftest conftest.c
   6778        rm -rf conftest.dSYM
   6779
   6780fi
   6781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
   6782$as_echo "$lt_cv_ld_force_load" >&6; }
   6783    case $host_os in
   6784    rhapsody* | darwin1.[012])
   6785      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
   6786    darwin1.*)
   6787      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
   6788    darwin*) # darwin 5.x on
   6789      # if running on 10.5 or later, the deployment target defaults
   6790      # to the OS version, if on x86, and 10.4, the deployment
   6791      # target defaults to 10.4. Don't you love it?
   6792      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
   6793	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
   6794	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
   6795	10.[012]*)
   6796	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
   6797	10.*)
   6798	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
   6799      esac
   6800    ;;
   6801  esac
   6802    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
   6803      _lt_dar_single_mod='$single_module'
   6804    fi
   6805    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
   6806      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
   6807    else
   6808      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
   6809    fi
   6810    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
   6811      _lt_dsymutil='~$DSYMUTIL $lib || :'
   6812    else
   6813      _lt_dsymutil=
   6814    fi
   6815    ;;
   6816  esac
   6817
   6818ac_ext=c
   6819ac_cpp='$CPP $CPPFLAGS'
   6820ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6821ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6822ac_compiler_gnu=$ac_cv_c_compiler_gnu
   6823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
   6824$as_echo_n "checking how to run the C preprocessor... " >&6; }
   6825# On Suns, sometimes $CPP names a directory.
   6826if test -n "$CPP" && test -d "$CPP"; then
   6827  CPP=
   6828fi
   6829if test -z "$CPP"; then
   6830  if ${ac_cv_prog_CPP+:} false; then :
   6831  $as_echo_n "(cached) " >&6
   6832else
   6833      # Double quotes because CPP needs to be expanded
   6834    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
   6835    do
   6836      ac_preproc_ok=false
   6837for ac_c_preproc_warn_flag in '' yes
   6838do
   6839  # Use a header file that comes with gcc, so configuring glibc
   6840  # with a fresh cross-compiler works.
   6841  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   6842  # <limits.h> exists even on freestanding compilers.
   6843  # On the NeXT, cc -E runs the code through the compiler's parser,
   6844  # not just through cpp. "Syntax error" is here to catch this case.
   6845  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6846/* end confdefs.h.  */
   6847#ifdef __STDC__
   6848# include <limits.h>
   6849#else
   6850# include <assert.h>
   6851#endif
   6852		     Syntax error
   6853_ACEOF
   6854if ac_fn_c_try_cpp "$LINENO"; then :
   6855
   6856else
   6857  # Broken: fails on valid input.
   6858continue
   6859fi
   6860rm -f conftest.err conftest.i conftest.$ac_ext
   6861
   6862  # OK, works on sane cases.  Now check whether nonexistent headers
   6863  # can be detected and how.
   6864  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6865/* end confdefs.h.  */
   6866#include <ac_nonexistent.h>
   6867_ACEOF
   6868if ac_fn_c_try_cpp "$LINENO"; then :
   6869  # Broken: success on invalid input.
   6870continue
   6871else
   6872  # Passes both tests.
   6873ac_preproc_ok=:
   6874break
   6875fi
   6876rm -f conftest.err conftest.i conftest.$ac_ext
   6877
   6878done
   6879# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   6880rm -f conftest.i conftest.err conftest.$ac_ext
   6881if $ac_preproc_ok; then :
   6882  break
   6883fi
   6884
   6885    done
   6886    ac_cv_prog_CPP=$CPP
   6887
   6888fi
   6889  CPP=$ac_cv_prog_CPP
   6890else
   6891  ac_cv_prog_CPP=$CPP
   6892fi
   6893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
   6894$as_echo "$CPP" >&6; }
   6895ac_preproc_ok=false
   6896for ac_c_preproc_warn_flag in '' yes
   6897do
   6898  # Use a header file that comes with gcc, so configuring glibc
   6899  # with a fresh cross-compiler works.
   6900  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   6901  # <limits.h> exists even on freestanding compilers.
   6902  # On the NeXT, cc -E runs the code through the compiler's parser,
   6903  # not just through cpp. "Syntax error" is here to catch this case.
   6904  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6905/* end confdefs.h.  */
   6906#ifdef __STDC__
   6907# include <limits.h>
   6908#else
   6909# include <assert.h>
   6910#endif
   6911		     Syntax error
   6912_ACEOF
   6913if ac_fn_c_try_cpp "$LINENO"; then :
   6914
   6915else
   6916  # Broken: fails on valid input.
   6917continue
   6918fi
   6919rm -f conftest.err conftest.i conftest.$ac_ext
   6920
   6921  # OK, works on sane cases.  Now check whether nonexistent headers
   6922  # can be detected and how.
   6923  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6924/* end confdefs.h.  */
   6925#include <ac_nonexistent.h>
   6926_ACEOF
   6927if ac_fn_c_try_cpp "$LINENO"; then :
   6928  # Broken: success on invalid input.
   6929continue
   6930else
   6931  # Passes both tests.
   6932ac_preproc_ok=:
   6933break
   6934fi
   6935rm -f conftest.err conftest.i conftest.$ac_ext
   6936
   6937done
   6938# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   6939rm -f conftest.i conftest.err conftest.$ac_ext
   6940if $ac_preproc_ok; then :
   6941
   6942else
   6943  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   6944$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   6945as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
   6946See \`config.log' for more details" "$LINENO" 5; }
   6947fi
   6948
   6949ac_ext=c
   6950ac_cpp='$CPP $CPPFLAGS'
   6951ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6952ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6953ac_compiler_gnu=$ac_cv_c_compiler_gnu
   6954
   6955
   6956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
   6957$as_echo_n "checking for ANSI C header files... " >&6; }
   6958if ${ac_cv_header_stdc+:} false; then :
   6959  $as_echo_n "(cached) " >&6
   6960else
   6961  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6962/* end confdefs.h.  */
   6963#include <stdlib.h>
   6964#include <stdarg.h>
   6965#include <string.h>
   6966#include <float.h>
   6967
   6968int
   6969main ()
   6970{
   6971
   6972  ;
   6973  return 0;
   6974}
   6975_ACEOF
   6976if ac_fn_c_try_compile "$LINENO"; then :
   6977  ac_cv_header_stdc=yes
   6978else
   6979  ac_cv_header_stdc=no
   6980fi
   6981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6982
   6983if test $ac_cv_header_stdc = yes; then
   6984  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   6985  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6986/* end confdefs.h.  */
   6987#include <string.h>
   6988
   6989_ACEOF
   6990if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   6991  $EGREP "memchr" >/dev/null 2>&1; then :
   6992
   6993else
   6994  ac_cv_header_stdc=no
   6995fi
   6996rm -f conftest*
   6997
   6998fi
   6999
   7000if test $ac_cv_header_stdc = yes; then
   7001  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   7002  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7003/* end confdefs.h.  */
   7004#include <stdlib.h>
   7005
   7006_ACEOF
   7007if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   7008  $EGREP "free" >/dev/null 2>&1; then :
   7009
   7010else
   7011  ac_cv_header_stdc=no
   7012fi
   7013rm -f conftest*
   7014
   7015fi
   7016
   7017if test $ac_cv_header_stdc = yes; then
   7018  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   7019  if test "$cross_compiling" = yes; then :
   7020  :
   7021else
   7022  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7023/* end confdefs.h.  */
   7024#include <ctype.h>
   7025#include <stdlib.h>
   7026#if ((' ' & 0x0FF) == 0x020)
   7027# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   7028# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   7029#else
   7030# define ISLOWER(c) \
   7031		   (('a' <= (c) && (c) <= 'i') \
   7032		     || ('j' <= (c) && (c) <= 'r') \
   7033		     || ('s' <= (c) && (c) <= 'z'))
   7034# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   7035#endif
   7036
   7037#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   7038int
   7039main ()
   7040{
   7041  int i;
   7042  for (i = 0; i < 256; i++)
   7043    if (XOR (islower (i), ISLOWER (i))
   7044	|| toupper (i) != TOUPPER (i))
   7045      return 2;
   7046  return 0;
   7047}
   7048_ACEOF
   7049if ac_fn_c_try_run "$LINENO"; then :
   7050
   7051else
   7052  ac_cv_header_stdc=no
   7053fi
   7054rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   7055  conftest.$ac_objext conftest.beam conftest.$ac_ext
   7056fi
   7057
   7058fi
   7059fi
   7060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
   7061$as_echo "$ac_cv_header_stdc" >&6; }
   7062if test $ac_cv_header_stdc = yes; then
   7063
   7064$as_echo "#define STDC_HEADERS 1" >>confdefs.h
   7065
   7066fi
   7067
   7068# On IRIX 5.3, sys/types and inttypes.h are conflicting.
   7069for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
   7070		  inttypes.h stdint.h unistd.h
   7071do :
   7072  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   7073ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
   7074"
   7075if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   7076  cat >>confdefs.h <<_ACEOF
   7077#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   7078_ACEOF
   7079
   7080fi
   7081
   7082done
   7083
   7084
   7085for ac_header in dlfcn.h
   7086do :
   7087  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
   7088"
   7089if test "x$ac_cv_header_dlfcn_h" = xyes; then :
   7090  cat >>confdefs.h <<_ACEOF
   7091#define HAVE_DLFCN_H 1
   7092_ACEOF
   7093
   7094fi
   7095
   7096done
   7097
   7098
   7099
   7100
   7101
   7102# Set options
   7103enable_win32_dll=yes
   7104
   7105case $host in
   7106*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
   7107  if test -n "$ac_tool_prefix"; then
   7108  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
   7109set dummy ${ac_tool_prefix}as; ac_word=$2
   7110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7111$as_echo_n "checking for $ac_word... " >&6; }
   7112if ${ac_cv_prog_AS+:} false; then :
   7113  $as_echo_n "(cached) " >&6
   7114else
   7115  if test -n "$AS"; then
   7116  ac_cv_prog_AS="$AS" # Let the user override the test.
   7117else
   7118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7119for as_dir in $PATH
   7120do
   7121  IFS=$as_save_IFS
   7122  test -z "$as_dir" && as_dir=.
   7123    for ac_exec_ext in '' $ac_executable_extensions; do
   7124  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   7125    ac_cv_prog_AS="${ac_tool_prefix}as"
   7126    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7127    break 2
   7128  fi
   7129done
   7130  done
   7131IFS=$as_save_IFS
   7132
   7133fi
   7134fi
   7135AS=$ac_cv_prog_AS
   7136if test -n "$AS"; then
   7137  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
   7138$as_echo "$AS" >&6; }
   7139else
   7140  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7141$as_echo "no" >&6; }
   7142fi
   7143
   7144
   7145fi
   7146if test -z "$ac_cv_prog_AS"; then
   7147  ac_ct_AS=$AS
   7148  # Extract the first word of "as", so it can be a program name with args.
   7149set dummy as; ac_word=$2
   7150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7151$as_echo_n "checking for $ac_word... " >&6; }
   7152if ${ac_cv_prog_ac_ct_AS+:} false; then :
   7153  $as_echo_n "(cached) " >&6
   7154else
   7155  if test -n "$ac_ct_AS"; then
   7156  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
   7157else
   7158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7159for as_dir in $PATH
   7160do
   7161  IFS=$as_save_IFS
   7162  test -z "$as_dir" && as_dir=.
   7163    for ac_exec_ext in '' $ac_executable_extensions; do
   7164  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   7165    ac_cv_prog_ac_ct_AS="as"
   7166    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7167    break 2
   7168  fi
   7169done
   7170  done
   7171IFS=$as_save_IFS
   7172
   7173fi
   7174fi
   7175ac_ct_AS=$ac_cv_prog_ac_ct_AS
   7176if test -n "$ac_ct_AS"; then
   7177  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
   7178$as_echo "$ac_ct_AS" >&6; }
   7179else
   7180  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7181$as_echo "no" >&6; }
   7182fi
   7183
   7184  if test "x$ac_ct_AS" = x; then
   7185    AS="false"
   7186  else
   7187    case $cross_compiling:$ac_tool_warned in
   7188yes:)
   7189{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   7190$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   7191ac_tool_warned=yes ;;
   7192esac
   7193    AS=$ac_ct_AS
   7194  fi
   7195else
   7196  AS="$ac_cv_prog_AS"
   7197fi
   7198
   7199  if test -n "$ac_tool_prefix"; then
   7200  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
   7201set dummy ${ac_tool_prefix}dlltool; ac_word=$2
   7202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7203$as_echo_n "checking for $ac_word... " >&6; }
   7204if ${ac_cv_prog_DLLTOOL+:} false; then :
   7205  $as_echo_n "(cached) " >&6
   7206else
   7207  if test -n "$DLLTOOL"; then
   7208  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
   7209else
   7210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7211for as_dir in $PATH
   7212do
   7213  IFS=$as_save_IFS
   7214  test -z "$as_dir" && as_dir=.
   7215    for ac_exec_ext in '' $ac_executable_extensions; do
   7216  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   7217    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
   7218    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7219    break 2
   7220  fi
   7221done
   7222  done
   7223IFS=$as_save_IFS
   7224
   7225fi
   7226fi
   7227DLLTOOL=$ac_cv_prog_DLLTOOL
   7228if test -n "$DLLTOOL"; then
   7229  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
   7230$as_echo "$DLLTOOL" >&6; }
   7231else
   7232  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7233$as_echo "no" >&6; }
   7234fi
   7235
   7236
   7237fi
   7238if test -z "$ac_cv_prog_DLLTOOL"; then
   7239  ac_ct_DLLTOOL=$DLLTOOL
   7240  # Extract the first word of "dlltool", so it can be a program name with args.
   7241set dummy dlltool; ac_word=$2
   7242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7243$as_echo_n "checking for $ac_word... " >&6; }
   7244if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
   7245  $as_echo_n "(cached) " >&6
   7246else
   7247  if test -n "$ac_ct_DLLTOOL"; then
   7248  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
   7249else
   7250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7251for as_dir in $PATH
   7252do
   7253  IFS=$as_save_IFS
   7254  test -z "$as_dir" && as_dir=.
   7255    for ac_exec_ext in '' $ac_executable_extensions; do
   7256  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   7257    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
   7258    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7259    break 2
   7260  fi
   7261done
   7262  done
   7263IFS=$as_save_IFS
   7264
   7265fi
   7266fi
   7267ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
   7268if test -n "$ac_ct_DLLTOOL"; then
   7269  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
   7270$as_echo "$ac_ct_DLLTOOL" >&6; }
   7271else
   7272  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7273$as_echo "no" >&6; }
   7274fi
   7275
   7276  if test "x$ac_ct_DLLTOOL" = x; then
   7277    DLLTOOL="false"
   7278  else
   7279    case $cross_compiling:$ac_tool_warned in
   7280yes:)
   7281{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   7282$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   7283ac_tool_warned=yes ;;
   7284esac
   7285    DLLTOOL=$ac_ct_DLLTOOL
   7286  fi
   7287else
   7288  DLLTOOL="$ac_cv_prog_DLLTOOL"
   7289fi
   7290
   7291  if test -n "$ac_tool_prefix"; then
   7292  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
   7293set dummy ${ac_tool_prefix}objdump; ac_word=$2
   7294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7295$as_echo_n "checking for $ac_word... " >&6; }
   7296if ${ac_cv_prog_OBJDUMP+:} false; then :
   7297  $as_echo_n "(cached) " >&6
   7298else
   7299  if test -n "$OBJDUMP"; then
   7300  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
   7301else
   7302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7303for as_dir in $PATH
   7304do
   7305  IFS=$as_save_IFS
   7306  test -z "$as_dir" && as_dir=.
   7307    for ac_exec_ext in '' $ac_executable_extensions; do
   7308  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   7309    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
   7310    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7311    break 2
   7312  fi
   7313done
   7314  done
   7315IFS=$as_save_IFS
   7316
   7317fi
   7318fi
   7319OBJDUMP=$ac_cv_prog_OBJDUMP
   7320if test -n "$OBJDUMP"; then
   7321  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
   7322$as_echo "$OBJDUMP" >&6; }
   7323else
   7324  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7325$as_echo "no" >&6; }
   7326fi
   7327
   7328
   7329fi
   7330if test -z "$ac_cv_prog_OBJDUMP"; then
   7331  ac_ct_OBJDUMP=$OBJDUMP
   7332  # Extract the first word of "objdump", so it can be a program name with args.
   7333set dummy objdump; ac_word=$2
   7334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7335$as_echo_n "checking for $ac_word... " >&6; }
   7336if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
   7337  $as_echo_n "(cached) " >&6
   7338else
   7339  if test -n "$ac_ct_OBJDUMP"; then
   7340  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
   7341else
   7342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7343for as_dir in $PATH
   7344do
   7345  IFS=$as_save_IFS
   7346  test -z "$as_dir" && as_dir=.
   7347    for ac_exec_ext in '' $ac_executable_extensions; do
   7348  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   7349    ac_cv_prog_ac_ct_OBJDUMP="objdump"
   7350    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7351    break 2
   7352  fi
   7353done
   7354  done
   7355IFS=$as_save_IFS
   7356
   7357fi
   7358fi
   7359ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
   7360if test -n "$ac_ct_OBJDUMP"; then
   7361  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
   7362$as_echo "$ac_ct_OBJDUMP" >&6; }
   7363else
   7364  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7365$as_echo "no" >&6; }
   7366fi
   7367
   7368  if test "x$ac_ct_OBJDUMP" = x; then
   7369    OBJDUMP="false"
   7370  else
   7371    case $cross_compiling:$ac_tool_warned in
   7372yes:)
   7373{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   7374$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   7375ac_tool_warned=yes ;;
   7376esac
   7377    OBJDUMP=$ac_ct_OBJDUMP
   7378  fi
   7379else
   7380  OBJDUMP="$ac_cv_prog_OBJDUMP"
   7381fi
   7382
   7383  ;;
   7384esac
   7385
   7386test -z "$AS" && AS=as
   7387
   7388
   7389
   7390
   7391
   7392test -z "$DLLTOOL" && DLLTOOL=dlltool
   7393
   7394
   7395
   7396
   7397
   7398test -z "$OBJDUMP" && OBJDUMP=objdump
   7399
   7400
   7401
   7402
   7403
   7404
   7405
   7406        enable_dlopen=no
   7407
   7408
   7409
   7410            # Check whether --enable-shared was given.
   7411if test "${enable_shared+set}" = set; then :
   7412  enableval=$enable_shared; p=${PACKAGE-default}
   7413    case $enableval in
   7414    yes) enable_shared=yes ;;
   7415    no) enable_shared=no ;;
   7416    *)
   7417      enable_shared=no
   7418      # Look at the argument we got.  We use all the common list separators.
   7419      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
   7420      for pkg in $enableval; do
   7421	IFS="$lt_save_ifs"
   7422	if test "X$pkg" = "X$p"; then
   7423	  enable_shared=yes
   7424	fi
   7425      done
   7426      IFS="$lt_save_ifs"
   7427      ;;
   7428    esac
   7429else
   7430  enable_shared=yes
   7431fi
   7432
   7433
   7434
   7435
   7436
   7437
   7438
   7439
   7440
   7441  # Check whether --enable-static was given.
   7442if test "${enable_static+set}" = set; then :
   7443  enableval=$enable_static; p=${PACKAGE-default}
   7444    case $enableval in
   7445    yes) enable_static=yes ;;
   7446    no) enable_static=no ;;
   7447    *)
   7448     enable_static=no
   7449      # Look at the argument we got.  We use all the common list separators.
   7450      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
   7451      for pkg in $enableval; do
   7452	IFS="$lt_save_ifs"
   7453	if test "X$pkg" = "X$p"; then
   7454	  enable_static=yes
   7455	fi
   7456      done
   7457      IFS="$lt_save_ifs"
   7458      ;;
   7459    esac
   7460else
   7461  enable_static=yes
   7462fi
   7463
   7464
   7465
   7466
   7467
   7468
   7469
   7470
   7471
   7472
   7473# Check whether --with-pic was given.
   7474if test "${with_pic+set}" = set; then :
   7475  withval=$with_pic; lt_p=${PACKAGE-default}
   7476    case $withval in
   7477    yes|no) pic_mode=$withval ;;
   7478    *)
   7479      pic_mode=default
   7480      # Look at the argument we got.  We use all the common list separators.
   7481      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
   7482      for lt_pkg in $withval; do
   7483	IFS="$lt_save_ifs"
   7484	if test "X$lt_pkg" = "X$lt_p"; then
   7485	  pic_mode=yes
   7486	fi
   7487      done
   7488      IFS="$lt_save_ifs"
   7489      ;;
   7490    esac
   7491else
   7492  pic_mode=default
   7493fi
   7494
   7495
   7496test -z "$pic_mode" && pic_mode=default
   7497
   7498
   7499
   7500
   7501
   7502
   7503
   7504  # Check whether --enable-fast-install was given.
   7505if test "${enable_fast_install+set}" = set; then :
   7506  enableval=$enable_fast_install; p=${PACKAGE-default}
   7507    case $enableval in
   7508    yes) enable_fast_install=yes ;;
   7509    no) enable_fast_install=no ;;
   7510    *)
   7511      enable_fast_install=no
   7512      # Look at the argument we got.  We use all the common list separators.
   7513      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
   7514      for pkg in $enableval; do
   7515	IFS="$lt_save_ifs"
   7516	if test "X$pkg" = "X$p"; then
   7517	  enable_fast_install=yes
   7518	fi
   7519      done
   7520      IFS="$lt_save_ifs"
   7521      ;;
   7522    esac
   7523else
   7524  enable_fast_install=yes
   7525fi
   7526
   7527
   7528
   7529
   7530
   7531
   7532
   7533
   7534
   7535
   7536
   7537# This can be used to rebuild libtool when needed
   7538LIBTOOL_DEPS="$ltmain"
   7539
   7540# Always use our own libtool.
   7541LIBTOOL='$(SHELL) $(top_builddir)/libtool'
   7542
   7543
   7544
   7545
   7546
   7547
   7548
   7549
   7550
   7551
   7552
   7553
   7554
   7555
   7556
   7557
   7558
   7559
   7560
   7561
   7562
   7563
   7564
   7565
   7566
   7567
   7568
   7569
   7570
   7571
   7572test -z "$LN_S" && LN_S="ln -s"
   7573
   7574
   7575
   7576
   7577
   7578
   7579
   7580
   7581
   7582
   7583
   7584
   7585
   7586
   7587if test -n "${ZSH_VERSION+set}" ; then
   7588   setopt NO_GLOB_SUBST
   7589fi
   7590
   7591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
   7592$as_echo_n "checking for objdir... " >&6; }
   7593if ${lt_cv_objdir+:} false; then :
   7594  $as_echo_n "(cached) " >&6
   7595else
   7596  rm -f .libs 2>/dev/null
   7597mkdir .libs 2>/dev/null
   7598if test -d .libs; then
   7599  lt_cv_objdir=.libs
   7600else
   7601  # MS-DOS does not allow filenames that begin with a dot.
   7602  lt_cv_objdir=_libs
   7603fi
   7604rmdir .libs 2>/dev/null
   7605fi
   7606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
   7607$as_echo "$lt_cv_objdir" >&6; }
   7608objdir=$lt_cv_objdir
   7609
   7610
   7611
   7612
   7613
   7614cat >>confdefs.h <<_ACEOF
   7615#define LT_OBJDIR "$lt_cv_objdir/"
   7616_ACEOF
   7617
   7618
   7619
   7620
   7621case $host_os in
   7622aix3*)
   7623  # AIX sometimes has problems with the GCC collect2 program.  For some
   7624  # reason, if we set the COLLECT_NAMES environment variable, the problems
   7625  # vanish in a puff of smoke.
   7626  if test "X${COLLECT_NAMES+set}" != Xset; then
   7627    COLLECT_NAMES=
   7628    export COLLECT_NAMES
   7629  fi
   7630  ;;
   7631esac
   7632
   7633# Global variables:
   7634ofile=libtool
   7635can_build_shared=yes
   7636
   7637# All known linkers require a `.a' archive for static linking (except MSVC,
   7638# which needs '.lib').
   7639libext=a
   7640
   7641with_gnu_ld="$lt_cv_prog_gnu_ld"
   7642
   7643old_CC="$CC"
   7644old_CFLAGS="$CFLAGS"
   7645
   7646# Set sane defaults for various variables
   7647test -z "$CC" && CC=cc
   7648test -z "$LTCC" && LTCC=$CC
   7649test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
   7650test -z "$LD" && LD=ld
   7651test -z "$ac_objext" && ac_objext=o
   7652
   7653for cc_temp in $compiler""; do
   7654  case $cc_temp in
   7655    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
   7656    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
   7657    \-*) ;;
   7658    *) break;;
   7659  esac
   7660done
   7661cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
   7662
   7663
   7664# Only perform the check for file, if the check method requires it
   7665test -z "$MAGIC_CMD" && MAGIC_CMD=file
   7666case $deplibs_check_method in
   7667file_magic*)
   7668  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
   7669    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
   7670$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
   7671if ${lt_cv_path_MAGIC_CMD+:} false; then :
   7672  $as_echo_n "(cached) " >&6
   7673else
   7674  case $MAGIC_CMD in
   7675[\\/*] |  ?:[\\/]*)
   7676  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
   7677  ;;
   7678*)
   7679  lt_save_MAGIC_CMD="$MAGIC_CMD"
   7680  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
   7681  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
   7682  for ac_dir in $ac_dummy; do
   7683    IFS="$lt_save_ifs"
   7684    test -z "$ac_dir" && ac_dir=.
   7685    if test -f $ac_dir/${ac_tool_prefix}file; then
   7686      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
   7687      if test -n "$file_magic_test_file"; then
   7688	case $deplibs_check_method in
   7689	"file_magic "*)
   7690	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
   7691	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
   7692	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
   7693	    $EGREP "$file_magic_regex" > /dev/null; then
   7694	    :
   7695	  else
   7696	    cat <<_LT_EOF 1>&2
   7697
   7698*** Warning: the command libtool uses to detect shared libraries,
   7699*** $file_magic_cmd, produces output that libtool cannot recognize.
   7700*** The result is that libtool may fail to recognize shared libraries
   7701*** as such.  This will affect the creation of libtool libraries that
   7702*** depend on shared libraries, but programs linked with such libtool
   7703*** libraries will work regardless of this problem.  Nevertheless, you
   7704*** may want to report the problem to your system manager and/or to
   7705*** bug-libtool@gnu.org
   7706
   7707_LT_EOF
   7708	  fi ;;
   7709	esac
   7710      fi
   7711      break
   7712    fi
   7713  done
   7714  IFS="$lt_save_ifs"
   7715  MAGIC_CMD="$lt_save_MAGIC_CMD"
   7716  ;;
   7717esac
   7718fi
   7719
   7720MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
   7721if test -n "$MAGIC_CMD"; then
   7722  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
   7723$as_echo "$MAGIC_CMD" >&6; }
   7724else
   7725  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7726$as_echo "no" >&6; }
   7727fi
   7728
   7729
   7730
   7731
   7732
   7733if test -z "$lt_cv_path_MAGIC_CMD"; then
   7734  if test -n "$ac_tool_prefix"; then
   7735    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
   7736$as_echo_n "checking for file... " >&6; }
   7737if ${lt_cv_path_MAGIC_CMD+:} false; then :
   7738  $as_echo_n "(cached) " >&6
   7739else
   7740  case $MAGIC_CMD in
   7741[\\/*] |  ?:[\\/]*)
   7742  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
   7743  ;;
   7744*)
   7745  lt_save_MAGIC_CMD="$MAGIC_CMD"
   7746  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
   7747  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
   7748  for ac_dir in $ac_dummy; do
   7749    IFS="$lt_save_ifs"
   7750    test -z "$ac_dir" && ac_dir=.
   7751    if test -f $ac_dir/file; then
   7752      lt_cv_path_MAGIC_CMD="$ac_dir/file"
   7753      if test -n "$file_magic_test_file"; then
   7754	case $deplibs_check_method in
   7755	"file_magic "*)
   7756	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
   7757	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
   7758	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
   7759	    $EGREP "$file_magic_regex" > /dev/null; then
   7760	    :
   7761	  else
   7762	    cat <<_LT_EOF 1>&2
   7763
   7764*** Warning: the command libtool uses to detect shared libraries,
   7765*** $file_magic_cmd, produces output that libtool cannot recognize.
   7766*** The result is that libtool may fail to recognize shared libraries
   7767*** as such.  This will affect the creation of libtool libraries that
   7768*** depend on shared libraries, but programs linked with such libtool
   7769*** libraries will work regardless of this problem.  Nevertheless, you
   7770*** may want to report the problem to your system manager and/or to
   7771*** bug-libtool@gnu.org
   7772
   7773_LT_EOF
   7774	  fi ;;
   7775	esac
   7776      fi
   7777      break
   7778    fi
   7779  done
   7780  IFS="$lt_save_ifs"
   7781  MAGIC_CMD="$lt_save_MAGIC_CMD"
   7782  ;;
   7783esac
   7784fi
   7785
   7786MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
   7787if test -n "$MAGIC_CMD"; then
   7788  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
   7789$as_echo "$MAGIC_CMD" >&6; }
   7790else
   7791  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7792$as_echo "no" >&6; }
   7793fi
   7794
   7795
   7796  else
   7797    MAGIC_CMD=:
   7798  fi
   7799fi
   7800
   7801  fi
   7802  ;;
   7803esac
   7804
   7805# Use C for the default configuration in the libtool script
   7806
   7807lt_save_CC="$CC"
   7808ac_ext=c
   7809ac_cpp='$CPP $CPPFLAGS'
   7810ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7811ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7812ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7813
   7814
   7815# Source file extension for C test sources.
   7816ac_ext=c
   7817
   7818# Object file extension for compiled C test sources.
   7819objext=o
   7820objext=$objext
   7821
   7822# Code to be used in simple compile tests
   7823lt_simple_compile_test_code="int some_variable = 0;"
   7824
   7825# Code to be used in simple link tests
   7826lt_simple_link_test_code='int main(){return(0);}'
   7827
   7828
   7829
   7830
   7831
   7832
   7833
   7834# If no C compiler was specified, use CC.
   7835LTCC=${LTCC-"$CC"}
   7836
   7837# If no C compiler flags were specified, use CFLAGS.
   7838LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
   7839
   7840# Allow CC to be a program name with arguments.
   7841compiler=$CC
   7842
   7843# Save the default compiler, since it gets overwritten when the other
   7844# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
   7845compiler_DEFAULT=$CC
   7846
   7847# save warnings/boilerplate of simple test code
   7848ac_outfile=conftest.$ac_objext
   7849echo "$lt_simple_compile_test_code" >conftest.$ac_ext
   7850eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
   7851_lt_compiler_boilerplate=`cat conftest.err`
   7852$RM conftest*
   7853
   7854ac_outfile=conftest.$ac_objext
   7855echo "$lt_simple_link_test_code" >conftest.$ac_ext
   7856eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
   7857_lt_linker_boilerplate=`cat conftest.err`
   7858$RM -r conftest*
   7859
   7860
   7861## CAVEAT EMPTOR:
   7862## There is no encapsulation within the following macros, do not change
   7863## the running order or otherwise move them around unless you know exactly
   7864## what you are doing...
   7865if test -n "$compiler"; then
   7866
   7867lt_prog_compiler_no_builtin_flag=
   7868
   7869if test "$GCC" = yes; then
   7870  case $cc_basename in
   7871  nvcc*)
   7872    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
   7873  *)
   7874    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
   7875  esac
   7876
   7877  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
   7878$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
   7879if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
   7880  $as_echo_n "(cached) " >&6
   7881else
   7882  lt_cv_prog_compiler_rtti_exceptions=no
   7883   ac_outfile=conftest.$ac_objext
   7884   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   7885   lt_compiler_flag="-fno-rtti -fno-exceptions"
   7886   # Insert the option either (1) after the last *FLAGS variable, or
   7887   # (2) before a word containing "conftest.", or (3) at the end.
   7888   # Note that $ac_compile itself does not contain backslashes and begins
   7889   # with a dollar sign (not a hyphen), so the echo should work correctly.
   7890   # The option is referenced via a variable to avoid confusing sed.
   7891   lt_compile=`echo "$ac_compile" | $SED \
   7892   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   7893   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   7894   -e 's:$: $lt_compiler_flag:'`
   7895   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   7896   (eval "$lt_compile" 2>conftest.err)
   7897   ac_status=$?
   7898   cat conftest.err >&5
   7899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7900   if (exit $ac_status) && test -s "$ac_outfile"; then
   7901     # The compiler can only warn and ignore the option if not recognized
   7902     # So say no if there are warnings other than the usual output.
   7903     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
   7904     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   7905     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
   7906       lt_cv_prog_compiler_rtti_exceptions=yes
   7907     fi
   7908   fi
   7909   $RM conftest*
   7910
   7911fi
   7912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
   7913$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
   7914
   7915if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
   7916    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
   7917else
   7918    :
   7919fi
   7920
   7921fi
   7922
   7923
   7924
   7925
   7926
   7927
   7928  lt_prog_compiler_wl=
   7929lt_prog_compiler_pic=
   7930lt_prog_compiler_static=
   7931
   7932
   7933  if test "$GCC" = yes; then
   7934    lt_prog_compiler_wl='-Wl,'
   7935    lt_prog_compiler_static='-static'
   7936
   7937    case $host_os in
   7938      aix*)
   7939      # All AIX code is PIC.
   7940      if test "$host_cpu" = ia64; then
   7941	# AIX 5 now supports IA64 processor
   7942	lt_prog_compiler_static='-Bstatic'
   7943      fi
   7944      ;;
   7945
   7946    amigaos*)
   7947      case $host_cpu in
   7948      powerpc)
   7949            # see comment about AmigaOS4 .so support
   7950            lt_prog_compiler_pic='-fPIC'
   7951        ;;
   7952      m68k)
   7953            # FIXME: we need at least 68020 code to build shared libraries, but
   7954            # adding the `-m68020' flag to GCC prevents building anything better,
   7955            # like `-m68040'.
   7956            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
   7957        ;;
   7958      esac
   7959      ;;
   7960
   7961    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
   7962      # PIC is the default for these OSes.
   7963      ;;
   7964
   7965    mingw* | cygwin* | pw32* | os2* | cegcc*)
   7966      # This hack is so that the source file can tell whether it is being
   7967      # built for inclusion in a dll (and should export symbols for example).
   7968      # Although the cygwin gcc ignores -fPIC, still need this for old-style
   7969      # (--disable-auto-import) libraries
   7970      lt_prog_compiler_pic='-DDLL_EXPORT'
   7971      ;;
   7972
   7973    darwin* | rhapsody*)
   7974      # PIC is the default on this platform
   7975      # Common symbols not allowed in MH_DYLIB files
   7976      lt_prog_compiler_pic='-fno-common'
   7977      ;;
   7978
   7979    haiku*)
   7980      # PIC is the default for Haiku.
   7981      # The "-static" flag exists, but is broken.
   7982      lt_prog_compiler_static=
   7983      ;;
   7984
   7985    hpux*)
   7986      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
   7987      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
   7988      # sets the default TLS model and affects inlining.
   7989      case $host_cpu in
   7990      hppa*64*)
   7991	# +Z the default
   7992	;;
   7993      *)
   7994	lt_prog_compiler_pic='-fPIC'
   7995	;;
   7996      esac
   7997      ;;
   7998
   7999    interix[3-9]*)
   8000      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
   8001      # Instead, we relocate shared libraries at runtime.
   8002      ;;
   8003
   8004    msdosdjgpp*)
   8005      # Just because we use GCC doesn't mean we suddenly get shared libraries
   8006      # on systems that don't support them.
   8007      lt_prog_compiler_can_build_shared=no
   8008      enable_shared=no
   8009      ;;
   8010
   8011    *nto* | *qnx*)
   8012      # QNX uses GNU C++, but need to define -shared option too, otherwise
   8013      # it will coredump.
   8014      lt_prog_compiler_pic='-fPIC -shared'
   8015      ;;
   8016
   8017    sysv4*MP*)
   8018      if test -d /usr/nec; then
   8019	lt_prog_compiler_pic=-Kconform_pic
   8020      fi
   8021      ;;
   8022
   8023    *)
   8024      lt_prog_compiler_pic='-fPIC'
   8025      ;;
   8026    esac
   8027
   8028    case $cc_basename in
   8029    nvcc*) # Cuda Compiler Driver 2.2
   8030      lt_prog_compiler_wl='-Xlinker '
   8031      if test -n "$lt_prog_compiler_pic"; then
   8032        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
   8033      fi
   8034      ;;
   8035    esac
   8036  else
   8037    # PORTME Check for flag to pass linker flags through the system compiler.
   8038    case $host_os in
   8039    aix*)
   8040      lt_prog_compiler_wl='-Wl,'
   8041      if test "$host_cpu" = ia64; then
   8042	# AIX 5 now supports IA64 processor
   8043	lt_prog_compiler_static='-Bstatic'
   8044      else
   8045	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
   8046      fi
   8047      ;;
   8048
   8049    mingw* | cygwin* | pw32* | os2* | cegcc*)
   8050      # This hack is so that the source file can tell whether it is being
   8051      # built for inclusion in a dll (and should export symbols for example).
   8052      lt_prog_compiler_pic='-DDLL_EXPORT'
   8053      ;;
   8054
   8055    hpux9* | hpux10* | hpux11*)
   8056      lt_prog_compiler_wl='-Wl,'
   8057      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
   8058      # not for PA HP-UX.
   8059      case $host_cpu in
   8060      hppa*64*|ia64*)
   8061	# +Z the default
   8062	;;
   8063      *)
   8064	lt_prog_compiler_pic='+Z'
   8065	;;
   8066      esac
   8067      # Is there a better lt_prog_compiler_static that works with the bundled CC?
   8068      lt_prog_compiler_static='${wl}-a ${wl}archive'
   8069      ;;
   8070
   8071    irix5* | irix6* | nonstopux*)
   8072      lt_prog_compiler_wl='-Wl,'
   8073      # PIC (with -KPIC) is the default.
   8074      lt_prog_compiler_static='-non_shared'
   8075      ;;
   8076
   8077    linux* | k*bsd*-gnu | kopensolaris*-gnu)
   8078      case $cc_basename in
   8079      # old Intel for x86_64 which still supported -KPIC.
   8080      ecc*)
   8081	lt_prog_compiler_wl='-Wl,'
   8082	lt_prog_compiler_pic='-KPIC'
   8083	lt_prog_compiler_static='-static'
   8084        ;;
   8085      # icc used to be incompatible with GCC.
   8086      # ICC 10 doesn't accept -KPIC any more.
   8087      icc* | ifort*)
   8088	lt_prog_compiler_wl='-Wl,'
   8089	lt_prog_compiler_pic='-fPIC'
   8090	lt_prog_compiler_static='-static'
   8091        ;;
   8092      # Lahey Fortran 8.1.
   8093      lf95*)
   8094	lt_prog_compiler_wl='-Wl,'
   8095	lt_prog_compiler_pic='--shared'
   8096	lt_prog_compiler_static='--static'
   8097	;;
   8098      nagfor*)
   8099	# NAG Fortran compiler
   8100	lt_prog_compiler_wl='-Wl,-Wl,,'
   8101	lt_prog_compiler_pic='-PIC'
   8102	lt_prog_compiler_static='-Bstatic'
   8103	;;
   8104      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
   8105        # Portland Group compilers (*not* the Pentium gcc compiler,
   8106	# which looks to be a dead project)
   8107	lt_prog_compiler_wl='-Wl,'
   8108	lt_prog_compiler_pic='-fpic'
   8109	lt_prog_compiler_static='-Bstatic'
   8110        ;;
   8111      ccc*)
   8112        lt_prog_compiler_wl='-Wl,'
   8113        # All Alpha code is PIC.
   8114        lt_prog_compiler_static='-non_shared'
   8115        ;;
   8116      xl* | bgxl* | bgf* | mpixl*)
   8117	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
   8118	lt_prog_compiler_wl='-Wl,'
   8119	lt_prog_compiler_pic='-qpic'
   8120	lt_prog_compiler_static='-qstaticlink'
   8121	;;
   8122      *)
   8123	case `$CC -V 2>&1 | sed 5q` in
   8124	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
   8125	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
   8126	  lt_prog_compiler_pic='-KPIC'
   8127	  lt_prog_compiler_static='-Bstatic'
   8128	  lt_prog_compiler_wl=''
   8129	  ;;
   8130	*Sun\ F* | *Sun*Fortran*)
   8131	  lt_prog_compiler_pic='-KPIC'
   8132	  lt_prog_compiler_static='-Bstatic'
   8133	  lt_prog_compiler_wl='-Qoption ld '
   8134	  ;;
   8135	*Sun\ C*)
   8136	  # Sun C 5.9
   8137	  lt_prog_compiler_pic='-KPIC'
   8138	  lt_prog_compiler_static='-Bstatic'
   8139	  lt_prog_compiler_wl='-Wl,'
   8140	  ;;
   8141        *Intel*\ [CF]*Compiler*)
   8142	  lt_prog_compiler_wl='-Wl,'
   8143	  lt_prog_compiler_pic='-fPIC'
   8144	  lt_prog_compiler_static='-static'
   8145	  ;;
   8146	*Portland\ Group*)
   8147	  lt_prog_compiler_wl='-Wl,'
   8148	  lt_prog_compiler_pic='-fpic'
   8149	  lt_prog_compiler_static='-Bstatic'
   8150	  ;;
   8151	esac
   8152	;;
   8153      esac
   8154      ;;
   8155
   8156    newsos6)
   8157      lt_prog_compiler_pic='-KPIC'
   8158      lt_prog_compiler_static='-Bstatic'
   8159      ;;
   8160
   8161    *nto* | *qnx*)
   8162      # QNX uses GNU C++, but need to define -shared option too, otherwise
   8163      # it will coredump.
   8164      lt_prog_compiler_pic='-fPIC -shared'
   8165      ;;
   8166
   8167    osf3* | osf4* | osf5*)
   8168      lt_prog_compiler_wl='-Wl,'
   8169      # All OSF/1 code is PIC.
   8170      lt_prog_compiler_static='-non_shared'
   8171      ;;
   8172
   8173    rdos*)
   8174      lt_prog_compiler_static='-non_shared'
   8175      ;;
   8176
   8177    solaris*)
   8178      lt_prog_compiler_pic='-KPIC'
   8179      lt_prog_compiler_static='-Bstatic'
   8180      case $cc_basename in
   8181      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
   8182	lt_prog_compiler_wl='-Qoption ld ';;
   8183      *)
   8184	lt_prog_compiler_wl='-Wl,';;
   8185      esac
   8186      ;;
   8187
   8188    sunos4*)
   8189      lt_prog_compiler_wl='-Qoption ld '
   8190      lt_prog_compiler_pic='-PIC'
   8191      lt_prog_compiler_static='-Bstatic'
   8192      ;;
   8193
   8194    sysv4 | sysv4.2uw2* | sysv4.3*)
   8195      lt_prog_compiler_wl='-Wl,'
   8196      lt_prog_compiler_pic='-KPIC'
   8197      lt_prog_compiler_static='-Bstatic'
   8198      ;;
   8199
   8200    sysv4*MP*)
   8201      if test -d /usr/nec ;then
   8202	lt_prog_compiler_pic='-Kconform_pic'
   8203	lt_prog_compiler_static='-Bstatic'
   8204      fi
   8205      ;;
   8206
   8207    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
   8208      lt_prog_compiler_wl='-Wl,'
   8209      lt_prog_compiler_pic='-KPIC'
   8210      lt_prog_compiler_static='-Bstatic'
   8211      ;;
   8212
   8213    unicos*)
   8214      lt_prog_compiler_wl='-Wl,'
   8215      lt_prog_compiler_can_build_shared=no
   8216      ;;
   8217
   8218    uts4*)
   8219      lt_prog_compiler_pic='-pic'
   8220      lt_prog_compiler_static='-Bstatic'
   8221      ;;
   8222
   8223    *)
   8224      lt_prog_compiler_can_build_shared=no
   8225      ;;
   8226    esac
   8227  fi
   8228
   8229case $host_os in
   8230  # For platforms which do not support PIC, -DPIC is meaningless:
   8231  *djgpp*)
   8232    lt_prog_compiler_pic=
   8233    ;;
   8234  *)
   8235    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
   8236    ;;
   8237esac
   8238
   8239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
   8240$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
   8241if ${lt_cv_prog_compiler_pic+:} false; then :
   8242  $as_echo_n "(cached) " >&6
   8243else
   8244  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
   8245fi
   8246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
   8247$as_echo "$lt_cv_prog_compiler_pic" >&6; }
   8248lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
   8249
   8250#
   8251# Check to make sure the PIC flag actually works.
   8252#
   8253if test -n "$lt_prog_compiler_pic"; then
   8254  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
   8255$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
   8256if ${lt_cv_prog_compiler_pic_works+:} false; then :
   8257  $as_echo_n "(cached) " >&6
   8258else
   8259  lt_cv_prog_compiler_pic_works=no
   8260   ac_outfile=conftest.$ac_objext
   8261   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   8262   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
   8263   # Insert the option either (1) after the last *FLAGS variable, or
   8264   # (2) before a word containing "conftest.", or (3) at the end.
   8265   # Note that $ac_compile itself does not contain backslashes and begins
   8266   # with a dollar sign (not a hyphen), so the echo should work correctly.
   8267   # The option is referenced via a variable to avoid confusing sed.
   8268   lt_compile=`echo "$ac_compile" | $SED \
   8269   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   8270   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   8271   -e 's:$: $lt_compiler_flag:'`
   8272   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   8273   (eval "$lt_compile" 2>conftest.err)
   8274   ac_status=$?
   8275   cat conftest.err >&5
   8276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8277   if (exit $ac_status) && test -s "$ac_outfile"; then
   8278     # The compiler can only warn and ignore the option if not recognized
   8279     # So say no if there are warnings other than the usual output.
   8280     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
   8281     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   8282     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
   8283       lt_cv_prog_compiler_pic_works=yes
   8284     fi
   8285   fi
   8286   $RM conftest*
   8287
   8288fi
   8289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
   8290$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
   8291
   8292if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
   8293    case $lt_prog_compiler_pic in
   8294     "" | " "*) ;;
   8295     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
   8296     esac
   8297else
   8298    lt_prog_compiler_pic=
   8299     lt_prog_compiler_can_build_shared=no
   8300fi
   8301
   8302fi
   8303
   8304
   8305
   8306
   8307
   8308
   8309
   8310
   8311
   8312
   8313
   8314#
   8315# Check to make sure the static flag actually works.
   8316#
   8317wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
   8318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
   8319$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
   8320if ${lt_cv_prog_compiler_static_works+:} false; then :
   8321  $as_echo_n "(cached) " >&6
   8322else
   8323  lt_cv_prog_compiler_static_works=no
   8324   save_LDFLAGS="$LDFLAGS"
   8325   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
   8326   echo "$lt_simple_link_test_code" > conftest.$ac_ext
   8327   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
   8328     # The linker can only warn and ignore the option if not recognized
   8329     # So say no if there are warnings
   8330     if test -s conftest.err; then
   8331       # Append any errors to the config.log.
   8332       cat conftest.err 1>&5
   8333       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
   8334       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   8335       if diff conftest.exp conftest.er2 >/dev/null; then
   8336         lt_cv_prog_compiler_static_works=yes
   8337       fi
   8338     else
   8339       lt_cv_prog_compiler_static_works=yes
   8340     fi
   8341   fi
   8342   $RM -r conftest*
   8343   LDFLAGS="$save_LDFLAGS"
   8344
   8345fi
   8346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
   8347$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
   8348
   8349if test x"$lt_cv_prog_compiler_static_works" = xyes; then
   8350    :
   8351else
   8352    lt_prog_compiler_static=
   8353fi
   8354
   8355
   8356
   8357
   8358
   8359
   8360
   8361  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
   8362$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
   8363if ${lt_cv_prog_compiler_c_o+:} false; then :
   8364  $as_echo_n "(cached) " >&6
   8365else
   8366  lt_cv_prog_compiler_c_o=no
   8367   $RM -r conftest 2>/dev/null
   8368   mkdir conftest
   8369   cd conftest
   8370   mkdir out
   8371   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   8372
   8373   lt_compiler_flag="-o out/conftest2.$ac_objext"
   8374   # Insert the option either (1) after the last *FLAGS variable, or
   8375   # (2) before a word containing "conftest.", or (3) at the end.
   8376   # Note that $ac_compile itself does not contain backslashes and begins
   8377   # with a dollar sign (not a hyphen), so the echo should work correctly.
   8378   lt_compile=`echo "$ac_compile" | $SED \
   8379   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   8380   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   8381   -e 's:$: $lt_compiler_flag:'`
   8382   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   8383   (eval "$lt_compile" 2>out/conftest.err)
   8384   ac_status=$?
   8385   cat out/conftest.err >&5
   8386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8387   if (exit $ac_status) && test -s out/conftest2.$ac_objext
   8388   then
   8389     # The compiler can only warn and ignore the option if not recognized
   8390     # So say no if there are warnings
   8391     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
   8392     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
   8393     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
   8394       lt_cv_prog_compiler_c_o=yes
   8395     fi
   8396   fi
   8397   chmod u+w . 2>&5
   8398   $RM conftest*
   8399   # SGI C++ compiler will create directory out/ii_files/ for
   8400   # template instantiation
   8401   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   8402   $RM out/* && rmdir out
   8403   cd ..
   8404   $RM -r conftest
   8405   $RM conftest*
   8406
   8407fi
   8408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
   8409$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
   8410
   8411
   8412
   8413
   8414
   8415
   8416  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
   8417$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
   8418if ${lt_cv_prog_compiler_c_o+:} false; then :
   8419  $as_echo_n "(cached) " >&6
   8420else
   8421  lt_cv_prog_compiler_c_o=no
   8422   $RM -r conftest 2>/dev/null
   8423   mkdir conftest
   8424   cd conftest
   8425   mkdir out
   8426   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   8427
   8428   lt_compiler_flag="-o out/conftest2.$ac_objext"
   8429   # Insert the option either (1) after the last *FLAGS variable, or
   8430   # (2) before a word containing "conftest.", or (3) at the end.
   8431   # Note that $ac_compile itself does not contain backslashes and begins
   8432   # with a dollar sign (not a hyphen), so the echo should work correctly.
   8433   lt_compile=`echo "$ac_compile" | $SED \
   8434   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   8435   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   8436   -e 's:$: $lt_compiler_flag:'`
   8437   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   8438   (eval "$lt_compile" 2>out/conftest.err)
   8439   ac_status=$?
   8440   cat out/conftest.err >&5
   8441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8442   if (exit $ac_status) && test -s out/conftest2.$ac_objext
   8443   then
   8444     # The compiler can only warn and ignore the option if not recognized
   8445     # So say no if there are warnings
   8446     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
   8447     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
   8448     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
   8449       lt_cv_prog_compiler_c_o=yes
   8450     fi
   8451   fi
   8452   chmod u+w . 2>&5
   8453   $RM conftest*
   8454   # SGI C++ compiler will create directory out/ii_files/ for
   8455   # template instantiation
   8456   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   8457   $RM out/* && rmdir out
   8458   cd ..
   8459   $RM -r conftest
   8460   $RM conftest*
   8461
   8462fi
   8463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
   8464$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
   8465
   8466
   8467
   8468
   8469hard_links="nottested"
   8470if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
   8471  # do not overwrite the value of need_locks provided by the user
   8472  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
   8473$as_echo_n "checking if we can lock with hard links... " >&6; }
   8474  hard_links=yes
   8475  $RM conftest*
   8476  ln conftest.a conftest.b 2>/dev/null && hard_links=no
   8477  touch conftest.a
   8478  ln conftest.a conftest.b 2>&5 || hard_links=no
   8479  ln conftest.a conftest.b 2>/dev/null && hard_links=no
   8480  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
   8481$as_echo "$hard_links" >&6; }
   8482  if test "$hard_links" = no; then
   8483    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
   8484$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
   8485    need_locks=warn
   8486  fi
   8487else
   8488  need_locks=no
   8489fi
   8490
   8491
   8492
   8493
   8494
   8495
   8496  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
   8497$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
   8498
   8499  runpath_var=
   8500  allow_undefined_flag=
   8501  always_export_symbols=no
   8502  archive_cmds=
   8503  archive_expsym_cmds=
   8504  compiler_needs_object=no
   8505  enable_shared_with_static_runtimes=no
   8506  export_dynamic_flag_spec=
   8507  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
   8508  hardcode_automatic=no
   8509  hardcode_direct=no
   8510  hardcode_direct_absolute=no
   8511  hardcode_libdir_flag_spec=
   8512  hardcode_libdir_separator=
   8513  hardcode_minus_L=no
   8514  hardcode_shlibpath_var=unsupported
   8515  inherit_rpath=no
   8516  link_all_deplibs=unknown
   8517  module_cmds=
   8518  module_expsym_cmds=
   8519  old_archive_from_new_cmds=
   8520  old_archive_from_expsyms_cmds=
   8521  thread_safe_flag_spec=
   8522  whole_archive_flag_spec=
   8523  # include_expsyms should be a list of space-separated symbols to be *always*
   8524  # included in the symbol list
   8525  include_expsyms=
   8526  # exclude_expsyms can be an extended regexp of symbols to exclude
   8527  # it will be wrapped by ` (' and `)$', so one must not match beginning or
   8528  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
   8529  # as well as any symbol that contains `d'.
   8530  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
   8531  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
   8532  # platforms (ab)use it in PIC code, but their linkers get confused if
   8533  # the symbol is explicitly referenced.  Since portable code cannot
   8534  # rely on this symbol name, it's probably fine to never include it in
   8535  # preloaded symbol tables.
   8536  # Exclude shared library initialization/finalization symbols.
   8537  extract_expsyms_cmds=
   8538
   8539  case $host_os in
   8540  cygwin* | mingw* | pw32* | cegcc*)
   8541    # FIXME: the MSVC++ port hasn't been tested in a loooong time
   8542    # When not using gcc, we currently assume that we are using
   8543    # Microsoft Visual C++.
   8544    if test "$GCC" != yes; then
   8545      with_gnu_ld=no
   8546    fi
   8547    ;;
   8548  interix*)
   8549    # we just hope/assume this is gcc and not c89 (= MSVC++)
   8550    with_gnu_ld=yes
   8551    ;;
   8552  openbsd*)
   8553    with_gnu_ld=no
   8554    ;;
   8555  esac
   8556
   8557  ld_shlibs=yes
   8558
   8559  # On some targets, GNU ld is compatible enough with the native linker
   8560  # that we're better off using the native interface for both.
   8561  lt_use_gnu_ld_interface=no
   8562  if test "$with_gnu_ld" = yes; then
   8563    case $host_os in
   8564      aix*)
   8565	# The AIX port of GNU ld has always aspired to compatibility
   8566	# with the native linker.  However, as the warning in the GNU ld
   8567	# block says, versions before 2.19.5* couldn't really create working
   8568	# shared libraries, regardless of the interface used.
   8569	case `$LD -v 2>&1` in
   8570	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
   8571	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
   8572	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
   8573	  *)
   8574	    lt_use_gnu_ld_interface=yes
   8575	    ;;
   8576	esac
   8577	;;
   8578      *)
   8579	lt_use_gnu_ld_interface=yes
   8580	;;
   8581    esac
   8582  fi
   8583
   8584  if test "$lt_use_gnu_ld_interface" = yes; then
   8585    # If archive_cmds runs LD, not CC, wlarc should be empty
   8586    wlarc='${wl}'
   8587
   8588    # Set some defaults for GNU ld with shared library support. These
   8589    # are reset later if shared libraries are not supported. Putting them
   8590    # here allows them to be overridden if necessary.
   8591    runpath_var=LD_RUN_PATH
   8592    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
   8593    export_dynamic_flag_spec='${wl}--export-dynamic'
   8594    # ancient GNU ld didn't support --whole-archive et. al.
   8595    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
   8596      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
   8597    else
   8598      whole_archive_flag_spec=
   8599    fi
   8600    supports_anon_versioning=no
   8601    case `$LD -v 2>&1` in
   8602      *GNU\ gold*) supports_anon_versioning=yes ;;
   8603      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
   8604      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
   8605      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
   8606      *\ 2.11.*) ;; # other 2.11 versions
   8607      *) supports_anon_versioning=yes ;;
   8608    esac
   8609
   8610    # See if GNU ld supports shared libraries.
   8611    case $host_os in
   8612    aix[3-9]*)
   8613      # On AIX/PPC, the GNU linker is very broken
   8614      if test "$host_cpu" != ia64; then
   8615	ld_shlibs=no
   8616	cat <<_LT_EOF 1>&2
   8617
   8618*** Warning: the GNU linker, at least up to release 2.19, is reported
   8619*** to be unable to reliably create shared libraries on AIX.
   8620*** Therefore, libtool is disabling shared libraries support.  If you
   8621*** really care for shared libraries, you may want to install binutils
   8622*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
   8623*** You will then need to restart the configuration process.
   8624
   8625_LT_EOF
   8626      fi
   8627      ;;
   8628
   8629    amigaos*)
   8630      case $host_cpu in
   8631      powerpc)
   8632            # see comment about AmigaOS4 .so support
   8633            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   8634            archive_expsym_cmds=''
   8635        ;;
   8636      m68k)
   8637            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)'
   8638            hardcode_libdir_flag_spec='-L$libdir'
   8639            hardcode_minus_L=yes
   8640        ;;
   8641      esac
   8642      ;;
   8643
   8644    beos*)
   8645      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   8646	allow_undefined_flag=unsupported
   8647	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
   8648	# support --undefined.  This deserves some investigation.  FIXME
   8649	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   8650      else
   8651	ld_shlibs=no
   8652      fi
   8653      ;;
   8654
   8655    cygwin* | mingw* | pw32* | cegcc*)
   8656      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
   8657      # as there is no search path for DLLs.
   8658      hardcode_libdir_flag_spec='-L$libdir'
   8659      export_dynamic_flag_spec='${wl}--export-all-symbols'
   8660      allow_undefined_flag=unsupported
   8661      always_export_symbols=no
   8662      enable_shared_with_static_runtimes=yes
   8663      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'
   8664      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
   8665
   8666      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
   8667        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
   8668	# If the export-symbols file already is a .def file (1st line
   8669	# is EXPORTS), use it as is; otherwise, prepend...
   8670	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
   8671	  cp $export_symbols $output_objdir/$soname.def;
   8672	else
   8673	  echo EXPORTS > $output_objdir/$soname.def;
   8674	  cat $export_symbols >> $output_objdir/$soname.def;
   8675	fi~
   8676	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
   8677      else
   8678	ld_shlibs=no
   8679      fi
   8680      ;;
   8681
   8682    haiku*)
   8683      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   8684      link_all_deplibs=yes
   8685      ;;
   8686
   8687    interix[3-9]*)
   8688      hardcode_direct=no
   8689      hardcode_shlibpath_var=no
   8690      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
   8691      export_dynamic_flag_spec='${wl}-E'
   8692      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
   8693      # Instead, shared libraries are loaded at an image base (0x10000000 by
   8694      # default) and relocated if they conflict, which is a slow very memory
   8695      # consuming and fragmenting process.  To avoid this, we pick a random,
   8696      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
   8697      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
   8698      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
   8699      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'
   8700      ;;
   8701
   8702    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
   8703      tmp_diet=no
   8704      if test "$host_os" = linux-dietlibc; then
   8705	case $cc_basename in
   8706	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
   8707	esac
   8708      fi
   8709      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
   8710	 && test "$tmp_diet" = no
   8711      then
   8712	tmp_addflag=' $pic_flag'
   8713	tmp_sharedflag='-shared'
   8714	case $cc_basename,$host_cpu in
   8715        pgcc*)				# Portland Group C compiler
   8716	  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'
   8717	  tmp_addflag=' $pic_flag'
   8718	  ;;
   8719	pgf77* | pgf90* | pgf95* | pgfortran*)
   8720					# Portland Group f77 and f90 compilers
   8721	  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'
   8722	  tmp_addflag=' $pic_flag -Mnomain' ;;
   8723	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
   8724	  tmp_addflag=' -i_dynamic' ;;
   8725	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
   8726	  tmp_addflag=' -i_dynamic -nofor_main' ;;
   8727	ifc* | ifort*)			# Intel Fortran compiler
   8728	  tmp_addflag=' -nofor_main' ;;
   8729	lf95*)				# Lahey Fortran 8.1
   8730	  whole_archive_flag_spec=
   8731	  tmp_sharedflag='--shared' ;;
   8732	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
   8733	  tmp_sharedflag='-qmkshrobj'
   8734	  tmp_addflag= ;;
   8735	nvcc*)	# Cuda Compiler Driver 2.2
   8736	  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'
   8737	  compiler_needs_object=yes
   8738	  ;;
   8739	esac
   8740	case `$CC -V 2>&1 | sed 5q` in
   8741	*Sun\ C*)			# Sun C 5.9
   8742	  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'
   8743	  compiler_needs_object=yes
   8744	  tmp_sharedflag='-G' ;;
   8745	*Sun\ F*)			# Sun Fortran 8.3
   8746	  tmp_sharedflag='-G' ;;
   8747	esac
   8748	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   8749
   8750        if test "x$supports_anon_versioning" = xyes; then
   8751          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
   8752	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
   8753	    echo "local: *; };" >> $output_objdir/$libname.ver~
   8754	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
   8755        fi
   8756
   8757	case $cc_basename in
   8758	xlf* | bgf* | bgxlf* | mpixlf*)
   8759	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
   8760	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
   8761	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
   8762	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
   8763	  if test "x$supports_anon_versioning" = xyes; then
   8764	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
   8765	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
   8766	      echo "local: *; };" >> $output_objdir/$libname.ver~
   8767	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
   8768	  fi
   8769	  ;;
   8770	esac
   8771      else
   8772        ld_shlibs=no
   8773      fi
   8774      ;;
   8775
   8776    netbsd*)
   8777      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
   8778	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
   8779	wlarc=
   8780      else
   8781	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   8782	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
   8783      fi
   8784      ;;
   8785
   8786    solaris*)
   8787      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
   8788	ld_shlibs=no
   8789	cat <<_LT_EOF 1>&2
   8790
   8791*** Warning: The releases 2.8.* of the GNU linker cannot reliably
   8792*** create shared libraries on Solaris systems.  Therefore, libtool
   8793*** is disabling shared libraries support.  We urge you to upgrade GNU
   8794*** binutils to release 2.9.1 or newer.  Another option is to modify
   8795*** your PATH or compiler configuration so that the native linker is
   8796*** used, and then restart.
   8797
   8798_LT_EOF
   8799      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   8800	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   8801	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
   8802      else
   8803	ld_shlibs=no
   8804      fi
   8805      ;;
   8806
   8807    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
   8808      case `$LD -v 2>&1` in
   8809        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
   8810	ld_shlibs=no
   8811	cat <<_LT_EOF 1>&2
   8812
   8813*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
   8814*** reliably create shared libraries on SCO systems.  Therefore, libtool
   8815*** is disabling shared libraries support.  We urge you to upgrade GNU
   8816*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
   8817*** your PATH or compiler configuration so that the native linker is
   8818*** used, and then restart.
   8819
   8820_LT_EOF
   8821	;;
   8822	*)
   8823	  # For security reasons, it is highly recommended that you always
   8824	  # use absolute paths for naming shared libraries, and exclude the
   8825	  # DT_RUNPATH tag from executables and libraries.  But doing so
   8826	  # requires that you compile everything twice, which is a pain.
   8827	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   8828	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
   8829	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   8830	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
   8831	  else
   8832	    ld_shlibs=no
   8833	  fi
   8834	;;
   8835      esac
   8836      ;;
   8837
   8838    sunos4*)
   8839      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
   8840      wlarc=
   8841      hardcode_direct=yes
   8842      hardcode_shlibpath_var=no
   8843      ;;
   8844
   8845    *)
   8846      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   8847	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   8848	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
   8849      else
   8850	ld_shlibs=no
   8851      fi
   8852      ;;
   8853    esac
   8854
   8855    if test "$ld_shlibs" = no; then
   8856      runpath_var=
   8857      hardcode_libdir_flag_spec=
   8858      export_dynamic_flag_spec=
   8859      whole_archive_flag_spec=
   8860    fi
   8861  else
   8862    # PORTME fill in a description of your system's linker (not GNU ld)
   8863    case $host_os in
   8864    aix3*)
   8865      allow_undefined_flag=unsupported
   8866      always_export_symbols=yes
   8867      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'
   8868      # Note: this linker hardcodes the directories in LIBPATH if there
   8869      # are no directories specified by -L.
   8870      hardcode_minus_L=yes
   8871      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
   8872	# Neither direct hardcoding nor static linking is supported with a
   8873	# broken collect2.
   8874	hardcode_direct=unsupported
   8875      fi
   8876      ;;
   8877
   8878    aix[4-9]*)
   8879      if test "$host_cpu" = ia64; then
   8880	# On IA64, the linker does run time linking by default, so we don't
   8881	# have to do anything special.
   8882	aix_use_runtimelinking=no
   8883	exp_sym_flag='-Bexport'
   8884	no_entry_flag=""
   8885      else
   8886	# If we're using GNU nm, then we don't want the "-C" option.
   8887	# -C means demangle to AIX nm, but means don't demangle with GNU nm
   8888	# Also, AIX nm treats weak defined symbols like other global
   8889	# defined symbols, whereas GNU nm marks them as "W".
   8890	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
   8891	  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'
   8892	else
   8893	  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'
   8894	fi
   8895	aix_use_runtimelinking=no
   8896
   8897	# Test if we are trying to use run time linking or normal
   8898	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
   8899	# need to do runtime linking.
   8900	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
   8901	  for ld_flag in $LDFLAGS; do
   8902	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
   8903	    aix_use_runtimelinking=yes
   8904	    break
   8905	  fi
   8906	  done
   8907	  ;;
   8908	esac
   8909
   8910	exp_sym_flag='-bexport'
   8911	no_entry_flag='-bnoentry'
   8912      fi
   8913
   8914      # When large executables or shared objects are built, AIX ld can
   8915      # have problems creating the table of contents.  If linking a library
   8916      # or program results in "error TOC overflow" add -mminimal-toc to
   8917      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
   8918      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
   8919
   8920      archive_cmds=''
   8921      hardcode_direct=yes
   8922      hardcode_direct_absolute=yes
   8923      hardcode_libdir_separator=':'
   8924      link_all_deplibs=yes
   8925      file_list_spec='${wl}-f,'
   8926
   8927      if test "$GCC" = yes; then
   8928	case $host_os in aix4.[012]|aix4.[012].*)
   8929	# We only want to do this on AIX 4.2 and lower, the check
   8930	# below for broken collect2 doesn't work under 4.3+
   8931	  collect2name=`${CC} -print-prog-name=collect2`
   8932	  if test -f "$collect2name" &&
   8933	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
   8934	  then
   8935	  # We have reworked collect2
   8936	  :
   8937	  else
   8938	  # We have old collect2
   8939	  hardcode_direct=unsupported
   8940	  # It fails to find uninstalled libraries when the uninstalled
   8941	  # path is not listed in the libpath.  Setting hardcode_minus_L
   8942	  # to unsupported forces relinking
   8943	  hardcode_minus_L=yes
   8944	  hardcode_libdir_flag_spec='-L$libdir'
   8945	  hardcode_libdir_separator=
   8946	  fi
   8947	  ;;
   8948	esac
   8949	shared_flag='-shared'
   8950	if test "$aix_use_runtimelinking" = yes; then
   8951	  shared_flag="$shared_flag "'${wl}-G'
   8952	fi
   8953      else
   8954	# not using gcc
   8955	if test "$host_cpu" = ia64; then
   8956	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
   8957	# chokes on -Wl,-G. The following line is correct:
   8958	  shared_flag='-G'
   8959	else
   8960	  if test "$aix_use_runtimelinking" = yes; then
   8961	    shared_flag='${wl}-G'
   8962	  else
   8963	    shared_flag='${wl}-bM:SRE'
   8964	  fi
   8965	fi
   8966      fi
   8967
   8968      export_dynamic_flag_spec='${wl}-bexpall'
   8969      # It seems that -bexpall does not export symbols beginning with
   8970      # underscore (_), so it is better to generate a list of symbols to export.
   8971      always_export_symbols=yes
   8972      if test "$aix_use_runtimelinking" = yes; then
   8973	# Warning - without using the other runtime loading flags (-brtl),
   8974	# -berok will link without error, but may produce a broken library.
   8975	allow_undefined_flag='-berok'
   8976        # Determine the default libpath from the value encoded in an
   8977        # empty executable.
   8978        if test "${lt_cv_aix_libpath+set}" = set; then
   8979  aix_libpath=$lt_cv_aix_libpath
   8980else
   8981  if ${lt_cv_aix_libpath_+:} false; then :
   8982  $as_echo_n "(cached) " >&6
   8983else
   8984  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8985/* end confdefs.h.  */
   8986
   8987int
   8988main ()
   8989{
   8990
   8991  ;
   8992  return 0;
   8993}
   8994_ACEOF
   8995if ac_fn_c_try_link "$LINENO"; then :
   8996
   8997  lt_aix_libpath_sed='
   8998      /Import File Strings/,/^$/ {
   8999	  /^0/ {
   9000	      s/^0  *\([^ ]*\) *$/\1/
   9001	      p
   9002	  }
   9003      }'
   9004  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   9005  # Check for a 64-bit object if we didn't find anything.
   9006  if test -z "$lt_cv_aix_libpath_"; then
   9007    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   9008  fi
   9009fi
   9010rm -f core conftest.err conftest.$ac_objext \
   9011    conftest$ac_exeext conftest.$ac_ext
   9012  if test -z "$lt_cv_aix_libpath_"; then
   9013    lt_cv_aix_libpath_="/usr/lib:/lib"
   9014  fi
   9015
   9016fi
   9017
   9018  aix_libpath=$lt_cv_aix_libpath_
   9019fi
   9020
   9021        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
   9022        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"
   9023      else
   9024	if test "$host_cpu" = ia64; then
   9025	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
   9026	  allow_undefined_flag="-z nodefs"
   9027	  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"
   9028	else
   9029	 # Determine the default libpath from the value encoded in an
   9030	 # empty executable.
   9031	 if test "${lt_cv_aix_libpath+set}" = set; then
   9032  aix_libpath=$lt_cv_aix_libpath
   9033else
   9034  if ${lt_cv_aix_libpath_+:} false; then :
   9035  $as_echo_n "(cached) " >&6
   9036else
   9037  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9038/* end confdefs.h.  */
   9039
   9040int
   9041main ()
   9042{
   9043
   9044  ;
   9045  return 0;
   9046}
   9047_ACEOF
   9048if ac_fn_c_try_link "$LINENO"; then :
   9049
   9050  lt_aix_libpath_sed='
   9051      /Import File Strings/,/^$/ {
   9052	  /^0/ {
   9053	      s/^0  *\([^ ]*\) *$/\1/
   9054	      p
   9055	  }
   9056      }'
   9057  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   9058  # Check for a 64-bit object if we didn't find anything.
   9059  if test -z "$lt_cv_aix_libpath_"; then
   9060    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   9061  fi
   9062fi
   9063rm -f core conftest.err conftest.$ac_objext \
   9064    conftest$ac_exeext conftest.$ac_ext
   9065  if test -z "$lt_cv_aix_libpath_"; then
   9066    lt_cv_aix_libpath_="/usr/lib:/lib"
   9067  fi
   9068
   9069fi
   9070
   9071  aix_libpath=$lt_cv_aix_libpath_
   9072fi
   9073
   9074	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
   9075	  # Warning - without using the other run time loading flags,
   9076	  # -berok will link without error, but may produce a broken library.
   9077	  no_undefined_flag=' ${wl}-bernotok'
   9078	  allow_undefined_flag=' ${wl}-berok'
   9079	  if test "$with_gnu_ld" = yes; then
   9080	    # We only use this code for GNU lds that support --whole-archive.
   9081	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
   9082	  else
   9083	    # Exported symbols can be pulled into shared objects from archives
   9084	    whole_archive_flag_spec='$convenience'
   9085	  fi
   9086	  archive_cmds_need_lc=yes
   9087	  # This is similar to how AIX traditionally builds its shared libraries.
   9088	  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'
   9089	fi
   9090      fi
   9091      ;;
   9092
   9093    amigaos*)
   9094      case $host_cpu in
   9095      powerpc)
   9096            # see comment about AmigaOS4 .so support
   9097            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   9098            archive_expsym_cmds=''
   9099        ;;
   9100      m68k)
   9101            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)'
   9102            hardcode_libdir_flag_spec='-L$libdir'
   9103            hardcode_minus_L=yes
   9104        ;;
   9105      esac
   9106      ;;
   9107
   9108    bsdi[45]*)
   9109      export_dynamic_flag_spec=-rdynamic
   9110      ;;
   9111
   9112    cygwin* | mingw* | pw32* | cegcc*)
   9113      # When not using gcc, we currently assume that we are using
   9114      # Microsoft Visual C++.
   9115      # hardcode_libdir_flag_spec is actually meaningless, as there is
   9116      # no search path for DLLs.
   9117      case $cc_basename in
   9118      cl*)
   9119	# Native MSVC
   9120	hardcode_libdir_flag_spec=' '
   9121	allow_undefined_flag=unsupported
   9122	always_export_symbols=yes
   9123	file_list_spec='@'
   9124	# Tell ltmain to make .lib files, not .a files.
   9125	libext=lib
   9126	# Tell ltmain to make .dll files, not .so files.
   9127	shrext_cmds=".dll"
   9128	# FIXME: Setting linknames here is a bad hack.
   9129	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
   9130	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
   9131	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
   9132	  else
   9133	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
   9134	  fi~
   9135	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
   9136	  linknames='
   9137	# The linker will not automatically build a static lib if we build a DLL.
   9138	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
   9139	enable_shared_with_static_runtimes=yes
   9140	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
   9141	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
   9142	# Don't use ranlib
   9143	old_postinstall_cmds='chmod 644 $oldlib'
   9144	postlink_cmds='lt_outputfile="@OUTPUT@"~
   9145	  lt_tool_outputfile="@TOOL_OUTPUT@"~
   9146	  case $lt_outputfile in
   9147	    *.exe|*.EXE) ;;
   9148	    *)
   9149	      lt_outputfile="$lt_outputfile.exe"
   9150	      lt_tool_outputfile="$lt_tool_outputfile.exe"
   9151	      ;;
   9152	  esac~
   9153	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
   9154	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
   9155	    $RM "$lt_outputfile.manifest";
   9156	  fi'
   9157	;;
   9158      *)
   9159	# Assume MSVC wrapper
   9160	hardcode_libdir_flag_spec=' '
   9161	allow_undefined_flag=unsupported
   9162	# Tell ltmain to make .lib files, not .a files.
   9163	libext=lib
   9164	# Tell ltmain to make .dll files, not .so files.
   9165	shrext_cmds=".dll"
   9166	# FIXME: Setting linknames here is a bad hack.
   9167	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
   9168	# The linker will automatically build a .lib file if we build a DLL.
   9169	old_archive_from_new_cmds='true'
   9170	# FIXME: Should let the user specify the lib program.
   9171	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
   9172	enable_shared_with_static_runtimes=yes
   9173	;;
   9174      esac
   9175      ;;
   9176
   9177    darwin* | rhapsody*)
   9178
   9179
   9180  archive_cmds_need_lc=no
   9181  hardcode_direct=no
   9182  hardcode_automatic=yes
   9183  hardcode_shlibpath_var=unsupported
   9184  if test "$lt_cv_ld_force_load" = "yes"; then
   9185    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\"`'
   9186
   9187  else
   9188    whole_archive_flag_spec=''
   9189  fi
   9190  link_all_deplibs=yes
   9191  allow_undefined_flag="$_lt_dar_allow_undefined"
   9192  case $cc_basename in
   9193     ifort*) _lt_dar_can_shared=yes ;;
   9194     *) _lt_dar_can_shared=$GCC ;;
   9195  esac
   9196  if test "$_lt_dar_can_shared" = "yes"; then
   9197    output_verbose_link_cmd=func_echo_all
   9198    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
   9199    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
   9200    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}"
   9201    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}"
   9202
   9203  else
   9204  ld_shlibs=no
   9205  fi
   9206
   9207      ;;
   9208
   9209    dgux*)
   9210      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   9211      hardcode_libdir_flag_spec='-L$libdir'
   9212      hardcode_shlibpath_var=no
   9213      ;;
   9214
   9215    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
   9216    # support.  Future versions do this automatically, but an explicit c++rt0.o
   9217    # does not break anything, and helps significantly (at the cost of a little
   9218    # extra space).
   9219    freebsd2.2*)
   9220      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
   9221      hardcode_libdir_flag_spec='-R$libdir'
   9222      hardcode_direct=yes
   9223      hardcode_shlibpath_var=no
   9224      ;;
   9225
   9226    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
   9227    freebsd2.*)
   9228      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
   9229      hardcode_direct=yes
   9230      hardcode_minus_L=yes
   9231      hardcode_shlibpath_var=no
   9232      ;;
   9233
   9234    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
   9235    freebsd* | dragonfly*)
   9236      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   9237      hardcode_libdir_flag_spec='-R$libdir'
   9238      hardcode_direct=yes
   9239      hardcode_shlibpath_var=no
   9240      ;;
   9241
   9242    hpux9*)
   9243      if test "$GCC" = yes; then
   9244	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'
   9245      else
   9246	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'
   9247      fi
   9248      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
   9249      hardcode_libdir_separator=:
   9250      hardcode_direct=yes
   9251
   9252      # hardcode_minus_L: Not really in the search PATH,
   9253      # but as the default location of the library.
   9254      hardcode_minus_L=yes
   9255      export_dynamic_flag_spec='${wl}-E'
   9256      ;;
   9257
   9258    hpux10*)
   9259      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
   9260	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
   9261      else
   9262	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
   9263      fi
   9264      if test "$with_gnu_ld" = no; then
   9265	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
   9266	hardcode_libdir_separator=:
   9267	hardcode_direct=yes
   9268	hardcode_direct_absolute=yes
   9269	export_dynamic_flag_spec='${wl}-E'
   9270	# hardcode_minus_L: Not really in the search PATH,
   9271	# but as the default location of the library.
   9272	hardcode_minus_L=yes
   9273      fi
   9274      ;;
   9275
   9276    hpux11*)
   9277      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
   9278	case $host_cpu in
   9279	hppa*64*)
   9280	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
   9281	  ;;
   9282	ia64*)
   9283	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
   9284	  ;;
   9285	*)
   9286	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
   9287	  ;;
   9288	esac
   9289      else
   9290	case $host_cpu in
   9291	hppa*64*)
   9292	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
   9293	  ;;
   9294	ia64*)
   9295	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
   9296	  ;;
   9297	*)
   9298
   9299	  # Older versions of the 11.00 compiler do not understand -b yet
   9300	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
   9301	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
   9302$as_echo_n "checking if $CC understands -b... " >&6; }
   9303if ${lt_cv_prog_compiler__b+:} false; then :
   9304  $as_echo_n "(cached) " >&6
   9305else
   9306  lt_cv_prog_compiler__b=no
   9307   save_LDFLAGS="$LDFLAGS"
   9308   LDFLAGS="$LDFLAGS -b"
   9309   echo "$lt_simple_link_test_code" > conftest.$ac_ext
   9310   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
   9311     # The linker can only warn and ignore the option if not recognized
   9312     # So say no if there are warnings
   9313     if test -s conftest.err; then
   9314       # Append any errors to the config.log.
   9315       cat conftest.err 1>&5
   9316       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
   9317       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   9318       if diff conftest.exp conftest.er2 >/dev/null; then
   9319         lt_cv_prog_compiler__b=yes
   9320       fi
   9321     else
   9322       lt_cv_prog_compiler__b=yes
   9323     fi
   9324   fi
   9325   $RM -r conftest*
   9326   LDFLAGS="$save_LDFLAGS"
   9327
   9328fi
   9329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
   9330$as_echo "$lt_cv_prog_compiler__b" >&6; }
   9331
   9332if test x"$lt_cv_prog_compiler__b" = xyes; then
   9333    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
   9334else
   9335    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
   9336fi
   9337
   9338	  ;;
   9339	esac
   9340      fi
   9341      if test "$with_gnu_ld" = no; then
   9342	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
   9343	hardcode_libdir_separator=:
   9344
   9345	case $host_cpu in
   9346	hppa*64*|ia64*)
   9347	  hardcode_direct=no
   9348	  hardcode_shlibpath_var=no
   9349	  ;;
   9350	*)
   9351	  hardcode_direct=yes
   9352	  hardcode_direct_absolute=yes
   9353	  export_dynamic_flag_spec='${wl}-E'
   9354
   9355	  # hardcode_minus_L: Not really in the search PATH,
   9356	  # but as the default location of the library.
   9357	  hardcode_minus_L=yes
   9358	  ;;
   9359	esac
   9360      fi
   9361      ;;
   9362
   9363    irix5* | irix6* | nonstopux*)
   9364      if test "$GCC" = yes; then
   9365	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'
   9366	# Try to use the -exported_symbol ld option, if it does not
   9367	# work, assume that -exports_file does not work either and
   9368	# implicitly export all symbols.
   9369	# This should be the same for all languages, so no per-tag cache variable.
   9370	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
   9371$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
   9372if ${lt_cv_irix_exported_symbol+:} false; then :
   9373  $as_echo_n "(cached) " >&6
   9374else
   9375  save_LDFLAGS="$LDFLAGS"
   9376	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
   9377	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9378/* end confdefs.h.  */
   9379int foo (void) { return 0; }
   9380_ACEOF
   9381if ac_fn_c_try_link "$LINENO"; then :
   9382  lt_cv_irix_exported_symbol=yes
   9383else
   9384  lt_cv_irix_exported_symbol=no
   9385fi
   9386rm -f core conftest.err conftest.$ac_objext \
   9387    conftest$ac_exeext conftest.$ac_ext
   9388           LDFLAGS="$save_LDFLAGS"
   9389fi
   9390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
   9391$as_echo "$lt_cv_irix_exported_symbol" >&6; }
   9392	if test "$lt_cv_irix_exported_symbol" = yes; then
   9393          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'
   9394	fi
   9395      else
   9396	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'
   9397	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'
   9398      fi
   9399      archive_cmds_need_lc='no'
   9400      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
   9401      hardcode_libdir_separator=:
   9402      inherit_rpath=yes
   9403      link_all_deplibs=yes
   9404      ;;
   9405
   9406    netbsd*)
   9407      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
   9408	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
   9409      else
   9410	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
   9411      fi
   9412      hardcode_libdir_flag_spec='-R$libdir'
   9413      hardcode_direct=yes
   9414      hardcode_shlibpath_var=no
   9415      ;;
   9416
   9417    newsos6)
   9418      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   9419      hardcode_direct=yes
   9420      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
   9421      hardcode_libdir_separator=:
   9422      hardcode_shlibpath_var=no
   9423      ;;
   9424
   9425    *nto* | *qnx*)
   9426      ;;
   9427
   9428    openbsd*)
   9429      if test -f /usr/libexec/ld.so; then
   9430	hardcode_direct=yes
   9431	hardcode_shlibpath_var=no
   9432	hardcode_direct_absolute=yes
   9433	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
   9434	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   9435	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
   9436	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
   9437	  export_dynamic_flag_spec='${wl}-E'
   9438	else
   9439	  case $host_os in
   9440	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
   9441	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
   9442	     hardcode_libdir_flag_spec='-R$libdir'
   9443	     ;;
   9444	   *)
   9445	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   9446	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
   9447	     ;;
   9448	  esac
   9449	fi
   9450      else
   9451	ld_shlibs=no
   9452      fi
   9453      ;;
   9454
   9455    os2*)
   9456      hardcode_libdir_flag_spec='-L$libdir'
   9457      hardcode_minus_L=yes
   9458      allow_undefined_flag=unsupported
   9459      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'
   9460      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
   9461      ;;
   9462
   9463    osf3*)
   9464      if test "$GCC" = yes; then
   9465	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
   9466	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'
   9467      else
   9468	allow_undefined_flag=' -expect_unresolved \*'
   9469	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'
   9470      fi
   9471      archive_cmds_need_lc='no'
   9472      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
   9473      hardcode_libdir_separator=:
   9474      ;;
   9475
   9476    osf4* | osf5*)	# as osf3* with the addition of -msym flag
   9477      if test "$GCC" = yes; then
   9478	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
   9479	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'
   9480	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
   9481      else
   9482	allow_undefined_flag=' -expect_unresolved \*'
   9483	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'
   9484	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~
   9485	$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'
   9486
   9487	# Both c and cxx compiler support -rpath directly
   9488	hardcode_libdir_flag_spec='-rpath $libdir'
   9489      fi
   9490      archive_cmds_need_lc='no'
   9491      hardcode_libdir_separator=:
   9492      ;;
   9493
   9494    solaris*)
   9495      no_undefined_flag=' -z defs'
   9496      if test "$GCC" = yes; then
   9497	wlarc='${wl}'
   9498	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
   9499	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
   9500	  $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'
   9501      else
   9502	case `$CC -V 2>&1` in
   9503	*"Compilers 5.0"*)
   9504	  wlarc=''
   9505	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
   9506	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
   9507	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
   9508	  ;;
   9509	*)
   9510	  wlarc='${wl}'
   9511	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
   9512	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
   9513	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
   9514	  ;;
   9515	esac
   9516      fi
   9517      hardcode_libdir_flag_spec='-R$libdir'
   9518      hardcode_shlibpath_var=no
   9519      case $host_os in
   9520      solaris2.[0-5] | solaris2.[0-5].*) ;;
   9521      *)
   9522	# The compiler driver will combine and reorder linker options,
   9523	# but understands `-z linker_flag'.  GCC discards it without `$wl',
   9524	# but is careful enough not to reorder.
   9525	# Supported since Solaris 2.6 (maybe 2.5.1?)
   9526	if test "$GCC" = yes; then
   9527	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
   9528	else
   9529	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
   9530	fi
   9531	;;
   9532      esac
   9533      link_all_deplibs=yes
   9534      ;;
   9535
   9536    sunos4*)
   9537      if test "x$host_vendor" = xsequent; then
   9538	# Use $CC to link under sequent, because it throws in some extra .o
   9539	# files that make .init and .fini sections work.
   9540	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
   9541      else
   9542	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
   9543      fi
   9544      hardcode_libdir_flag_spec='-L$libdir'
   9545      hardcode_direct=yes
   9546      hardcode_minus_L=yes
   9547      hardcode_shlibpath_var=no
   9548      ;;
   9549
   9550    sysv4)
   9551      case $host_vendor in
   9552	sni)
   9553	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   9554	  hardcode_direct=yes # is this really true???
   9555	;;
   9556	siemens)
   9557	  ## LD is ld it makes a PLAMLIB
   9558	  ## CC just makes a GrossModule.
   9559	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
   9560	  reload_cmds='$CC -r -o $output$reload_objs'
   9561	  hardcode_direct=no
   9562        ;;
   9563	motorola)
   9564	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   9565	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
   9566	;;
   9567      esac
   9568      runpath_var='LD_RUN_PATH'
   9569      hardcode_shlibpath_var=no
   9570      ;;
   9571
   9572    sysv4.3*)
   9573      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   9574      hardcode_shlibpath_var=no
   9575      export_dynamic_flag_spec='-Bexport'
   9576      ;;
   9577
   9578    sysv4*MP*)
   9579      if test -d /usr/nec; then
   9580	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   9581	hardcode_shlibpath_var=no
   9582	runpath_var=LD_RUN_PATH
   9583	hardcode_runpath_var=yes
   9584	ld_shlibs=yes
   9585      fi
   9586      ;;
   9587
   9588    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
   9589      no_undefined_flag='${wl}-z,text'
   9590      archive_cmds_need_lc=no
   9591      hardcode_shlibpath_var=no
   9592      runpath_var='LD_RUN_PATH'
   9593
   9594      if test "$GCC" = yes; then
   9595	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   9596	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   9597      else
   9598	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   9599	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   9600      fi
   9601      ;;
   9602
   9603    sysv5* | sco3.2v5* | sco5v6*)
   9604      # Note: We can NOT use -z defs as we might desire, because we do not
   9605      # link with -lc, and that would cause any symbols used from libc to
   9606      # always be unresolved, which means just about no library would
   9607      # ever link correctly.  If we're not using GNU ld we use -z text
   9608      # though, which does catch some bad symbols but isn't as heavy-handed
   9609      # as -z defs.
   9610      no_undefined_flag='${wl}-z,text'
   9611      allow_undefined_flag='${wl}-z,nodefs'
   9612      archive_cmds_need_lc=no
   9613      hardcode_shlibpath_var=no
   9614      hardcode_libdir_flag_spec='${wl}-R,$libdir'
   9615      hardcode_libdir_separator=':'
   9616      link_all_deplibs=yes
   9617      export_dynamic_flag_spec='${wl}-Bexport'
   9618      runpath_var='LD_RUN_PATH'
   9619
   9620      if test "$GCC" = yes; then
   9621	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   9622	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   9623      else
   9624	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   9625	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   9626      fi
   9627      ;;
   9628
   9629    uts4*)
   9630      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   9631      hardcode_libdir_flag_spec='-L$libdir'
   9632      hardcode_shlibpath_var=no
   9633      ;;
   9634
   9635    *)
   9636      ld_shlibs=no
   9637      ;;
   9638    esac
   9639
   9640    if test x$host_vendor = xsni; then
   9641      case $host in
   9642      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
   9643	export_dynamic_flag_spec='${wl}-Blargedynsym'
   9644	;;
   9645      esac
   9646    fi
   9647  fi
   9648
   9649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
   9650$as_echo "$ld_shlibs" >&6; }
   9651test "$ld_shlibs" = no && can_build_shared=no
   9652
   9653with_gnu_ld=$with_gnu_ld
   9654
   9655
   9656
   9657
   9658
   9659
   9660
   9661
   9662
   9663
   9664
   9665
   9666
   9667
   9668
   9669#
   9670# Do we need to explicitly link libc?
   9671#
   9672case "x$archive_cmds_need_lc" in
   9673x|xyes)
   9674  # Assume -lc should be added
   9675  archive_cmds_need_lc=yes
   9676
   9677  if test "$enable_shared" = yes && test "$GCC" = yes; then
   9678    case $archive_cmds in
   9679    *'~'*)
   9680      # FIXME: we may have to deal with multi-command sequences.
   9681      ;;
   9682    '$CC '*)
   9683      # Test whether the compiler implicitly links with -lc since on some
   9684      # systems, -lgcc has to come before -lc. If gcc already passes -lc
   9685      # to ld, don't add -lc before -lgcc.
   9686      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
   9687$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
   9688if ${lt_cv_archive_cmds_need_lc+:} false; then :
   9689  $as_echo_n "(cached) " >&6
   9690else
   9691  $RM conftest*
   9692	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   9693
   9694	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   9695  (eval $ac_compile) 2>&5
   9696  ac_status=$?
   9697  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   9698  test $ac_status = 0; } 2>conftest.err; then
   9699	  soname=conftest
   9700	  lib=conftest
   9701	  libobjs=conftest.$ac_objext
   9702	  deplibs=
   9703	  wl=$lt_prog_compiler_wl
   9704	  pic_flag=$lt_prog_compiler_pic
   9705	  compiler_flags=-v
   9706	  linker_flags=-v
   9707	  verstring=
   9708	  output_objdir=.
   9709	  libname=conftest
   9710	  lt_save_allow_undefined_flag=$allow_undefined_flag
   9711	  allow_undefined_flag=
   9712	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
   9713  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
   9714  ac_status=$?
   9715  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   9716  test $ac_status = 0; }
   9717	  then
   9718	    lt_cv_archive_cmds_need_lc=no
   9719	  else
   9720	    lt_cv_archive_cmds_need_lc=yes
   9721	  fi
   9722	  allow_undefined_flag=$lt_save_allow_undefined_flag
   9723	else
   9724	  cat conftest.err 1>&5
   9725	fi
   9726	$RM conftest*
   9727
   9728fi
   9729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
   9730$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
   9731      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
   9732      ;;
   9733    esac
   9734  fi
   9735  ;;
   9736esac
   9737
   9738
   9739
   9740
   9741
   9742
   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  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
   9890$as_echo_n "checking dynamic linker characteristics... " >&6; }
   9891
   9892if test "$GCC" = yes; then
   9893  case $host_os in
   9894    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
   9895    *) lt_awk_arg="/^libraries:/" ;;
   9896  esac
   9897  case $host_os in
   9898    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
   9899    *) lt_sed_strip_eq="s,=/,/,g" ;;
   9900  esac
   9901  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
   9902  case $lt_search_path_spec in
   9903  *\;*)
   9904    # if the path contains ";" then we assume it to be the separator
   9905    # otherwise default to the standard path separator (i.e. ":") - it is
   9906    # assumed that no part of a normal pathname contains ";" but that should
   9907    # okay in the real world where ";" in dirpaths is itself problematic.
   9908    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
   9909    ;;
   9910  *)
   9911    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
   9912    ;;
   9913  esac
   9914  # Ok, now we have the path, separated by spaces, we can step through it
   9915  # and add multilib dir if necessary.
   9916  lt_tmp_lt_search_path_spec=
   9917  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
   9918  for lt_sys_path in $lt_search_path_spec; do
   9919    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
   9920      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
   9921    else
   9922      test -d "$lt_sys_path" && \
   9923	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
   9924    fi
   9925  done
   9926  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
   9927BEGIN {RS=" "; FS="/|\n";} {
   9928  lt_foo="";
   9929  lt_count=0;
   9930  for (lt_i = NF; lt_i > 0; lt_i--) {
   9931    if ($lt_i != "" && $lt_i != ".") {
   9932      if ($lt_i == "..") {
   9933        lt_count++;
   9934      } else {
   9935        if (lt_count == 0) {
   9936          lt_foo="/" $lt_i lt_foo;
   9937        } else {
   9938          lt_count--;
   9939        }
   9940      }
   9941    }
   9942  }
   9943  if (lt_foo != "") { lt_freq[lt_foo]++; }
   9944  if (lt_freq[lt_foo] == 1) { print lt_foo; }
   9945}'`
   9946  # AWK program above erroneously prepends '/' to C:/dos/paths
   9947  # for these hosts.
   9948  case $host_os in
   9949    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
   9950      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
   9951  esac
   9952  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
   9953else
   9954  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
   9955fi
   9956library_names_spec=
   9957libname_spec='lib$name'
   9958soname_spec=
   9959shrext_cmds=".so"
   9960postinstall_cmds=
   9961postuninstall_cmds=
   9962finish_cmds=
   9963finish_eval=
   9964shlibpath_var=
   9965shlibpath_overrides_runpath=unknown
   9966version_type=none
   9967dynamic_linker="$host_os ld.so"
   9968sys_lib_dlsearch_path_spec="/lib /usr/lib"
   9969need_lib_prefix=unknown
   9970hardcode_into_libs=no
   9971
   9972# when you set need_version to no, make sure it does not cause -set_version
   9973# flags to be left without arguments
   9974need_version=unknown
   9975
   9976case $host_os in
   9977aix3*)
   9978  version_type=linux # correct to gnu/linux during the next big refactor
   9979  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
   9980  shlibpath_var=LIBPATH
   9981
   9982  # AIX 3 has no versioning support, so we append a major version to the name.
   9983  soname_spec='${libname}${release}${shared_ext}$major'
   9984  ;;
   9985
   9986aix[4-9]*)
   9987  version_type=linux # correct to gnu/linux during the next big refactor
   9988  need_lib_prefix=no
   9989  need_version=no
   9990  hardcode_into_libs=yes
   9991  if test "$host_cpu" = ia64; then
   9992    # AIX 5 supports IA64
   9993    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
   9994    shlibpath_var=LD_LIBRARY_PATH
   9995  else
   9996    # With GCC up to 2.95.x, collect2 would create an import file
   9997    # for dependence libraries.  The import file would start with
   9998    # the line `#! .'.  This would cause the generated library to
   9999    # depend on `.', always an invalid library.  This was fixed in
  10000    # development snapshots of GCC prior to 3.0.
  10001    case $host_os in
  10002      aix4 | aix4.[01] | aix4.[01].*)
  10003      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  10004	   echo ' yes '
  10005	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  10006	:
  10007      else
  10008	can_build_shared=no
  10009      fi
  10010      ;;
  10011    esac
  10012    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  10013    # soname into executable. Probably we can add versioning support to
  10014    # collect2, so additional links can be useful in future.
  10015    if test "$aix_use_runtimelinking" = yes; then
  10016      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  10017      # instead of lib<name>.a to let people know that these are not
  10018      # typical AIX shared libraries.
  10019      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10020    else
  10021      # We preserve .a as extension for shared libraries through AIX4.2
  10022      # and later when we are not doing run time linking.
  10023      library_names_spec='${libname}${release}.a $libname.a'
  10024      soname_spec='${libname}${release}${shared_ext}$major'
  10025    fi
  10026    shlibpath_var=LIBPATH
  10027  fi
  10028  ;;
  10029
  10030amigaos*)
  10031  case $host_cpu in
  10032  powerpc)
  10033    # Since July 2007 AmigaOS4 officially supports .so libraries.
  10034    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  10035    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10036    ;;
  10037  m68k)
  10038    library_names_spec='$libname.ixlibrary $libname.a'
  10039    # Create ${libname}_ixlibrary.a entries in /sys/libs.
  10040    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'
  10041    ;;
  10042  esac
  10043  ;;
  10044
  10045beos*)
  10046  library_names_spec='${libname}${shared_ext}'
  10047  dynamic_linker="$host_os ld.so"
  10048  shlibpath_var=LIBRARY_PATH
  10049  ;;
  10050
  10051bsdi[45]*)
  10052  version_type=linux # correct to gnu/linux during the next big refactor
  10053  need_version=no
  10054  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10055  soname_spec='${libname}${release}${shared_ext}$major'
  10056  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  10057  shlibpath_var=LD_LIBRARY_PATH
  10058  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  10059  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  10060  # the default ld.so.conf also contains /usr/contrib/lib and
  10061  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  10062  # libtool to hard-code these into programs
  10063  ;;
  10064
  10065cygwin* | mingw* | pw32* | cegcc*)
  10066  version_type=windows
  10067  shrext_cmds=".dll"
  10068  need_version=no
  10069  need_lib_prefix=no
  10070
  10071  case $GCC,$cc_basename in
  10072  yes,*)
  10073    # gcc
  10074    library_names_spec='$libname.dll.a'
  10075    # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10076    postinstall_cmds='base_file=`basename \${file}`~
  10077      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  10078      dldir=$destdir/`dirname \$dlpath`~
  10079      test -d \$dldir || mkdir -p \$dldir~
  10080      $install_prog $dir/$dlname \$dldir/$dlname~
  10081      chmod a+x \$dldir/$dlname~
  10082      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10083        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10084      fi'
  10085    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10086      dlpath=$dir/\$dldll~
  10087       $RM \$dlpath'
  10088    shlibpath_overrides_runpath=yes
  10089
  10090    case $host_os in
  10091    cygwin*)
  10092      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  10093      #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  10094      soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  10095
  10096      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  10097      ;;
  10098    mingw* | cegcc*)
  10099      # MinGW DLLs use traditional 'lib' prefix
  10100      #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  10101      soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  10102      ;;
  10103    pw32*)
  10104      # pw32 DLLs use 'pw' prefix rather than 'lib'
  10105      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10106      ;;
  10107    esac
  10108    dynamic_linker='Win32 ld.exe'
  10109    ;;
  10110
  10111  *,cl*)
  10112    # Native MSVC
  10113    libname_spec='$name'
  10114    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10115    library_names_spec='${libname}.dll.lib'
  10116
  10117    case $build_os in
  10118    mingw*)
  10119      sys_lib_search_path_spec=
  10120      lt_save_ifs=$IFS
  10121      IFS=';'
  10122      for lt_path in $LIB
  10123      do
  10124        IFS=$lt_save_ifs
  10125        # Let DOS variable expansion print the short 8.3 style file name.
  10126        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  10127        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  10128      done
  10129      IFS=$lt_save_ifs
  10130      # Convert to MSYS style.
  10131      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  10132      ;;
  10133    cygwin*)
  10134      # Convert to unix form, then to dos form, then back to unix form
  10135      # but this time dos style (no spaces!) so that the unix form looks
  10136      # like /cygdrive/c/PROGRA~1:/cygdr...
  10137      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  10138      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  10139      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10140      ;;
  10141    *)
  10142      sys_lib_search_path_spec="$LIB"
  10143      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  10144        # It is most probably a Windows format PATH.
  10145        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10146      else
  10147        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10148      fi
  10149      # FIXME: find the short name or the path components, as spaces are
  10150      # common. (e.g. "Program Files" -> "PROGRA~1")
  10151      ;;
  10152    esac
  10153
  10154    # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10155    postinstall_cmds='base_file=`basename \${file}`~
  10156      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  10157      dldir=$destdir/`dirname \$dlpath`~
  10158      test -d \$dldir || mkdir -p \$dldir~
  10159      $install_prog $dir/$dlname \$dldir/$dlname'
  10160    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10161      dlpath=$dir/\$dldll~
  10162       $RM \$dlpath'
  10163    shlibpath_overrides_runpath=yes
  10164    dynamic_linker='Win32 link.exe'
  10165    ;;
  10166
  10167  *)
  10168    # Assume MSVC wrapper
  10169    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  10170    dynamic_linker='Win32 ld.exe'
  10171    ;;
  10172  esac
  10173  # FIXME: first we should search . and the directory the executable is in
  10174  shlibpath_var=PATH
  10175  ;;
  10176
  10177darwin* | rhapsody*)
  10178  dynamic_linker="$host_os dyld"
  10179  version_type=darwin
  10180  need_lib_prefix=no
  10181  need_version=no
  10182  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  10183  soname_spec='${libname}${release}${major}$shared_ext'
  10184  shlibpath_overrides_runpath=yes
  10185  shlibpath_var=DYLD_LIBRARY_PATH
  10186  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10187
  10188  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  10189  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10190  ;;
  10191
  10192dgux*)
  10193  version_type=linux # correct to gnu/linux during the next big refactor
  10194  need_lib_prefix=no
  10195  need_version=no
  10196  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  10197  soname_spec='${libname}${release}${shared_ext}$major'
  10198  shlibpath_var=LD_LIBRARY_PATH
  10199  ;;
  10200
  10201freebsd* | dragonfly*)
  10202  # DragonFly does not have aout.  When/if they implement a new
  10203  # versioning mechanism, adjust this.
  10204  if test -x /usr/bin/objformat; then
  10205    objformat=`/usr/bin/objformat`
  10206  else
  10207    case $host_os in
  10208    freebsd[23].*) objformat=aout ;;
  10209    *) objformat=elf ;;
  10210    esac
  10211  fi
  10212  version_type=freebsd-$objformat
  10213  case $version_type in
  10214    freebsd-elf*)
  10215      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10216      need_version=no
  10217      need_lib_prefix=no
  10218      ;;
  10219    freebsd-*)
  10220      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  10221      need_version=yes
  10222      ;;
  10223  esac
  10224  shlibpath_var=LD_LIBRARY_PATH
  10225  case $host_os in
  10226  freebsd2.*)
  10227    shlibpath_overrides_runpath=yes
  10228    ;;
  10229  freebsd3.[01]* | freebsdelf3.[01]*)
  10230    shlibpath_overrides_runpath=yes
  10231    hardcode_into_libs=yes
  10232    ;;
  10233  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10234  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10235    shlibpath_overrides_runpath=no
  10236    hardcode_into_libs=yes
  10237    ;;
  10238  *) # from 4.6 on, and DragonFly
  10239    shlibpath_overrides_runpath=yes
  10240    hardcode_into_libs=yes
  10241    ;;
  10242  esac
  10243  ;;
  10244
  10245gnu*)
  10246  version_type=linux # correct to gnu/linux during the next big refactor
  10247  need_lib_prefix=no
  10248  need_version=no
  10249  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  10250  soname_spec='${libname}${release}${shared_ext}$major'
  10251  shlibpath_var=LD_LIBRARY_PATH
  10252  shlibpath_overrides_runpath=no
  10253  hardcode_into_libs=yes
  10254  ;;
  10255
  10256haiku*)
  10257  version_type=linux # correct to gnu/linux during the next big refactor
  10258  need_lib_prefix=no
  10259  need_version=no
  10260  dynamic_linker="$host_os runtime_loader"
  10261  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  10262  soname_spec='${libname}${release}${shared_ext}$major'
  10263  shlibpath_var=LIBRARY_PATH
  10264  shlibpath_overrides_runpath=yes
  10265  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  10266  hardcode_into_libs=yes
  10267  ;;
  10268
  10269hpux9* | hpux10* | hpux11*)
  10270  # Give a soname corresponding to the major version so that dld.sl refuses to
  10271  # link against other versions.
  10272  version_type=sunos
  10273  need_lib_prefix=no
  10274  need_version=no
  10275  case $host_cpu in
  10276  ia64*)
  10277    shrext_cmds='.so'
  10278    hardcode_into_libs=yes
  10279    dynamic_linker="$host_os dld.so"
  10280    shlibpath_var=LD_LIBRARY_PATH
  10281    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10282    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10283    soname_spec='${libname}${release}${shared_ext}$major'
  10284    if test "X$HPUX_IA64_MODE" = X32; then
  10285      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10286    else
  10287      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10288    fi
  10289    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10290    ;;
  10291  hppa*64*)
  10292    shrext_cmds='.sl'
  10293    hardcode_into_libs=yes
  10294    dynamic_linker="$host_os dld.sl"
  10295    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10296    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10297    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10298    soname_spec='${libname}${release}${shared_ext}$major'
  10299    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10300    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10301    ;;
  10302  *)
  10303    shrext_cmds='.sl'
  10304    dynamic_linker="$host_os dld.sl"
  10305    shlibpath_var=SHLIB_PATH
  10306    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10307    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10308    soname_spec='${libname}${release}${shared_ext}$major'
  10309    ;;
  10310  esac
  10311  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  10312  postinstall_cmds='chmod 555 $lib'
  10313  # or fails outright, so override atomically:
  10314  install_override_mode=555
  10315  ;;
  10316
  10317interix[3-9]*)
  10318  version_type=linux # correct to gnu/linux during the next big refactor
  10319  need_lib_prefix=no
  10320  need_version=no
  10321  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10322  soname_spec='${libname}${release}${shared_ext}$major'
  10323  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10324  shlibpath_var=LD_LIBRARY_PATH
  10325  shlibpath_overrides_runpath=no
  10326  hardcode_into_libs=yes
  10327  ;;
  10328
  10329irix5* | irix6* | nonstopux*)
  10330  case $host_os in
  10331    nonstopux*) version_type=nonstopux ;;
  10332    *)
  10333	if test "$lt_cv_prog_gnu_ld" = yes; then
  10334		version_type=linux # correct to gnu/linux during the next big refactor
  10335	else
  10336		version_type=irix
  10337	fi ;;
  10338  esac
  10339  need_lib_prefix=no
  10340  need_version=no
  10341  soname_spec='${libname}${release}${shared_ext}$major'
  10342  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  10343  case $host_os in
  10344  irix5* | nonstopux*)
  10345    libsuff= shlibsuff=
  10346    ;;
  10347  *)
  10348    case $LD in # libtool.m4 will add one of these switches to LD
  10349    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10350      libsuff= shlibsuff= libmagic=32-bit;;
  10351    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10352      libsuff=32 shlibsuff=N32 libmagic=N32;;
  10353    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10354      libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10355    *) libsuff= shlibsuff= libmagic=never-match;;
  10356    esac
  10357    ;;
  10358  esac
  10359  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10360  shlibpath_overrides_runpath=no
  10361  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  10362  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  10363  hardcode_into_libs=yes
  10364  ;;
  10365
  10366# No shared lib support for Linux oldld, aout, or coff.
  10367linux*oldld* | linux*aout* | linux*coff*)
  10368  dynamic_linker=no
  10369  ;;
  10370
  10371# This must be glibc/ELF.
  10372linux* | k*bsd*-gnu | kopensolaris*-gnu)
  10373  version_type=linux # correct to gnu/linux during the next big refactor
  10374  need_lib_prefix=no
  10375  need_version=no
  10376  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10377  soname_spec='${libname}${release}${shared_ext}$major'
  10378  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10379  shlibpath_var=LD_LIBRARY_PATH
  10380  shlibpath_overrides_runpath=no
  10381
  10382  # Some binutils ld are patched to set DT_RUNPATH
  10383  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  10384  $as_echo_n "(cached) " >&6
  10385else
  10386  lt_cv_shlibpath_overrides_runpath=no
  10387    save_LDFLAGS=$LDFLAGS
  10388    save_libdir=$libdir
  10389    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10390	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10391    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10392/* end confdefs.h.  */
  10393
  10394int
  10395main ()
  10396{
  10397
  10398  ;
  10399  return 0;
  10400}
  10401_ACEOF
  10402if ac_fn_c_try_link "$LINENO"; then :
  10403  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  10404  lt_cv_shlibpath_overrides_runpath=yes
  10405fi
  10406fi
  10407rm -f core conftest.err conftest.$ac_objext \
  10408    conftest$ac_exeext conftest.$ac_ext
  10409    LDFLAGS=$save_LDFLAGS
  10410    libdir=$save_libdir
  10411
  10412fi
  10413
  10414  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10415
  10416  # This implies no fast_install, which is unacceptable.
  10417  # Some rework will be needed to allow for fast_install
  10418  # before this can be enabled.
  10419  hardcode_into_libs=yes
  10420
  10421  # Append ld.so.conf contents to the search path
  10422  if test -f /etc/ld.so.conf; then
  10423    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' ' '`
  10424    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  10425  fi
  10426
  10427  # We used to test for /lib/ld.so.1 and disable shared libraries on
  10428  # powerpc, because MkLinux only supported shared libraries with the
  10429  # GNU dynamic linker.  Since this was broken with cross compilers,
  10430  # most powerpc-linux boxes support dynamic linking these days and
  10431  # people can always --disable-shared, the test was removed, and we
  10432  # assume the GNU/Linux dynamic linker is in use.
  10433  dynamic_linker='GNU/Linux ld.so'
  10434  ;;
  10435
  10436netbsd*)
  10437  version_type=sunos
  10438  need_lib_prefix=no
  10439  need_version=no
  10440  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10441    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10442    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10443    dynamic_linker='NetBSD (a.out) ld.so'
  10444  else
  10445    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10446    soname_spec='${libname}${release}${shared_ext}$major'
  10447    dynamic_linker='NetBSD ld.elf_so'
  10448  fi
  10449  shlibpath_var=LD_LIBRARY_PATH
  10450  shlibpath_overrides_runpath=yes
  10451  hardcode_into_libs=yes
  10452  ;;
  10453
  10454newsos6)
  10455  version_type=linux # correct to gnu/linux during the next big refactor
  10456  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10457  shlibpath_var=LD_LIBRARY_PATH
  10458  shlibpath_overrides_runpath=yes
  10459  ;;
  10460
  10461*nto* | *qnx*)
  10462  version_type=qnx
  10463  need_lib_prefix=no
  10464  need_version=no
  10465  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10466  soname_spec='${libname}${release}${shared_ext}$major'
  10467  shlibpath_var=LD_LIBRARY_PATH
  10468  shlibpath_overrides_runpath=no
  10469  hardcode_into_libs=yes
  10470  dynamic_linker='ldqnx.so'
  10471  ;;
  10472
  10473openbsd*)
  10474  version_type=sunos
  10475  sys_lib_dlsearch_path_spec="/usr/lib"
  10476  need_lib_prefix=no
  10477  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  10478  case $host_os in
  10479    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
  10480    *)				need_version=no  ;;
  10481  esac
  10482  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10483  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10484  shlibpath_var=LD_LIBRARY_PATH
  10485  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10486    case $host_os in
  10487      openbsd2.[89] | openbsd2.[89].*)
  10488	shlibpath_overrides_runpath=no
  10489	;;
  10490      *)
  10491	shlibpath_overrides_runpath=yes
  10492	;;
  10493      esac
  10494  else
  10495    shlibpath_overrides_runpath=yes
  10496  fi
  10497  ;;
  10498
  10499os2*)
  10500  libname_spec='$name'
  10501  shrext_cmds=".dll"
  10502  need_lib_prefix=no
  10503  library_names_spec='$libname${shared_ext} $libname.a'
  10504  dynamic_linker='OS/2 ld.exe'
  10505  shlibpath_var=LIBPATH
  10506  ;;
  10507
  10508osf3* | osf4* | osf5*)
  10509  version_type=osf
  10510  need_lib_prefix=no
  10511  need_version=no
  10512  soname_spec='${libname}${release}${shared_ext}$major'
  10513  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10514  shlibpath_var=LD_LIBRARY_PATH
  10515  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10516  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  10517  ;;
  10518
  10519rdos*)
  10520  dynamic_linker=no
  10521  ;;
  10522
  10523solaris*)
  10524  version_type=linux # correct to gnu/linux during the next big refactor
  10525  need_lib_prefix=no
  10526  need_version=no
  10527  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10528  soname_spec='${libname}${release}${shared_ext}$major'
  10529  shlibpath_var=LD_LIBRARY_PATH
  10530  shlibpath_overrides_runpath=yes
  10531  hardcode_into_libs=yes
  10532  # ldd complains unless libraries are executable
  10533  postinstall_cmds='chmod +x $lib'
  10534  ;;
  10535
  10536sunos4*)
  10537  version_type=sunos
  10538  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10539  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10540  shlibpath_var=LD_LIBRARY_PATH
  10541  shlibpath_overrides_runpath=yes
  10542  if test "$with_gnu_ld" = yes; then
  10543    need_lib_prefix=no
  10544  fi
  10545  need_version=yes
  10546  ;;
  10547
  10548sysv4 | sysv4.3*)
  10549  version_type=linux # correct to gnu/linux during the next big refactor
  10550  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10551  soname_spec='${libname}${release}${shared_ext}$major'
  10552  shlibpath_var=LD_LIBRARY_PATH
  10553  case $host_vendor in
  10554    sni)
  10555      shlibpath_overrides_runpath=no
  10556      need_lib_prefix=no
  10557      runpath_var=LD_RUN_PATH
  10558      ;;
  10559    siemens)
  10560      need_lib_prefix=no
  10561      ;;
  10562    motorola)
  10563      need_lib_prefix=no
  10564      need_version=no
  10565      shlibpath_overrides_runpath=no
  10566      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10567      ;;
  10568  esac
  10569  ;;
  10570
  10571sysv4*MP*)
  10572  if test -d /usr/nec ;then
  10573    version_type=linux # correct to gnu/linux during the next big refactor
  10574    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  10575    soname_spec='$libname${shared_ext}.$major'
  10576    shlibpath_var=LD_LIBRARY_PATH
  10577  fi
  10578  ;;
  10579
  10580sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10581  version_type=freebsd-elf
  10582  need_lib_prefix=no
  10583  need_version=no
  10584  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10585  soname_spec='${libname}${release}${shared_ext}$major'
  10586  shlibpath_var=LD_LIBRARY_PATH
  10587  shlibpath_overrides_runpath=yes
  10588  hardcode_into_libs=yes
  10589  if test "$with_gnu_ld" = yes; then
  10590    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10591  else
  10592    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10593    case $host_os in
  10594      sco3.2v5*)
  10595        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10596	;;
  10597    esac
  10598  fi
  10599  sys_lib_dlsearch_path_spec='/usr/lib'
  10600  ;;
  10601
  10602tpf*)
  10603  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
  10604  version_type=linux # correct to gnu/linux during the next big refactor
  10605  need_lib_prefix=no
  10606  need_version=no
  10607  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10608  shlibpath_var=LD_LIBRARY_PATH
  10609  shlibpath_overrides_runpath=no
  10610  hardcode_into_libs=yes
  10611  ;;
  10612
  10613uts4*)
  10614  version_type=linux # correct to gnu/linux during the next big refactor
  10615  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10616  soname_spec='${libname}${release}${shared_ext}$major'
  10617  shlibpath_var=LD_LIBRARY_PATH
  10618  ;;
  10619
  10620*)
  10621  dynamic_linker=no
  10622  ;;
  10623esac
  10624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10625$as_echo "$dynamic_linker" >&6; }
  10626test "$dynamic_linker" = no && can_build_shared=no
  10627
  10628variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10629if test "$GCC" = yes; then
  10630  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10631fi
  10632
  10633if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  10634  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  10635fi
  10636if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  10637  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  10638fi
  10639
  10640
  10641
  10642
  10643
  10644
  10645
  10646
  10647
  10648
  10649
  10650
  10651
  10652
  10653
  10654
  10655
  10656
  10657
  10658
  10659
  10660
  10661
  10662
  10663
  10664
  10665
  10666
  10667
  10668
  10669
  10670
  10671
  10672
  10673
  10674
  10675
  10676
  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  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10732$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  10733hardcode_action=
  10734if test -n "$hardcode_libdir_flag_spec" ||
  10735   test -n "$runpath_var" ||
  10736   test "X$hardcode_automatic" = "Xyes" ; then
  10737
  10738  # We can hardcode non-existent directories.
  10739  if test "$hardcode_direct" != no &&
  10740     # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10741     # have to relink, otherwise we might link with an installed library
  10742     # when we should be linking with a yet-to-be-installed one
  10743     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  10744     test "$hardcode_minus_L" != no; then
  10745    # Linking always hardcodes the temporary library directory.
  10746    hardcode_action=relink
  10747  else
  10748    # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10749    hardcode_action=immediate
  10750  fi
  10751else
  10752  # We cannot hardcode anything, or else we can only hardcode existing
  10753  # directories.
  10754  hardcode_action=unsupported
  10755fi
  10756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10757$as_echo "$hardcode_action" >&6; }
  10758
  10759if test "$hardcode_action" = relink ||
  10760   test "$inherit_rpath" = yes; then
  10761  # Fast installation is not supported
  10762  enable_fast_install=no
  10763elif test "$shlibpath_overrides_runpath" = yes ||
  10764     test "$enable_shared" = no; then
  10765  # Fast installation is not necessary
  10766  enable_fast_install=needless
  10767fi
  10768
  10769
  10770
  10771
  10772
  10773
  10774  if test "x$enable_dlopen" != xyes; then
  10775  enable_dlopen=unknown
  10776  enable_dlopen_self=unknown
  10777  enable_dlopen_self_static=unknown
  10778else
  10779  lt_cv_dlopen=no
  10780  lt_cv_dlopen_libs=
  10781
  10782  case $host_os in
  10783  beos*)
  10784    lt_cv_dlopen="load_add_on"
  10785    lt_cv_dlopen_libs=
  10786    lt_cv_dlopen_self=yes
  10787    ;;
  10788
  10789  mingw* | pw32* | cegcc*)
  10790    lt_cv_dlopen="LoadLibrary"
  10791    lt_cv_dlopen_libs=
  10792    ;;
  10793
  10794  cygwin*)
  10795    lt_cv_dlopen="dlopen"
  10796    lt_cv_dlopen_libs=
  10797    ;;
  10798
  10799  darwin*)
  10800  # if libdl is installed we need to link against it
  10801    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10802$as_echo_n "checking for dlopen in -ldl... " >&6; }
  10803if ${ac_cv_lib_dl_dlopen+:} false; then :
  10804  $as_echo_n "(cached) " >&6
  10805else
  10806  ac_check_lib_save_LIBS=$LIBS
  10807LIBS="-ldl  $LIBS"
  10808cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10809/* end confdefs.h.  */
  10810
  10811/* Override any GCC internal prototype to avoid an error.
  10812   Use char because int might match the return type of a GCC
  10813   builtin and then its argument prototype would still apply.  */
  10814#ifdef __cplusplus
  10815extern "C"
  10816#endif
  10817char dlopen ();
  10818int
  10819main ()
  10820{
  10821return dlopen ();
  10822  ;
  10823  return 0;
  10824}
  10825_ACEOF
  10826if ac_fn_c_try_link "$LINENO"; then :
  10827  ac_cv_lib_dl_dlopen=yes
  10828else
  10829  ac_cv_lib_dl_dlopen=no
  10830fi
  10831rm -f core conftest.err conftest.$ac_objext \
  10832    conftest$ac_exeext conftest.$ac_ext
  10833LIBS=$ac_check_lib_save_LIBS
  10834fi
  10835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10836$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10837if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10838  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10839else
  10840
  10841    lt_cv_dlopen="dyld"
  10842    lt_cv_dlopen_libs=
  10843    lt_cv_dlopen_self=yes
  10844
  10845fi
  10846
  10847    ;;
  10848
  10849  *)
  10850    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10851if test "x$ac_cv_func_shl_load" = xyes; then :
  10852  lt_cv_dlopen="shl_load"
  10853else
  10854  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10855$as_echo_n "checking for shl_load in -ldld... " >&6; }
  10856if ${ac_cv_lib_dld_shl_load+:} false; then :
  10857  $as_echo_n "(cached) " >&6
  10858else
  10859  ac_check_lib_save_LIBS=$LIBS
  10860LIBS="-ldld  $LIBS"
  10861cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10862/* end confdefs.h.  */
  10863
  10864/* Override any GCC internal prototype to avoid an error.
  10865   Use char because int might match the return type of a GCC
  10866   builtin and then its argument prototype would still apply.  */
  10867#ifdef __cplusplus
  10868extern "C"
  10869#endif
  10870char shl_load ();
  10871int
  10872main ()
  10873{
  10874return shl_load ();
  10875  ;
  10876  return 0;
  10877}
  10878_ACEOF
  10879if ac_fn_c_try_link "$LINENO"; then :
  10880  ac_cv_lib_dld_shl_load=yes
  10881else
  10882  ac_cv_lib_dld_shl_load=no
  10883fi
  10884rm -f core conftest.err conftest.$ac_objext \
  10885    conftest$ac_exeext conftest.$ac_ext
  10886LIBS=$ac_check_lib_save_LIBS
  10887fi
  10888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10889$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10890if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  10891  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  10892else
  10893  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10894if test "x$ac_cv_func_dlopen" = xyes; then :
  10895  lt_cv_dlopen="dlopen"
  10896else
  10897  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10898$as_echo_n "checking for dlopen in -ldl... " >&6; }
  10899if ${ac_cv_lib_dl_dlopen+:} false; then :
  10900  $as_echo_n "(cached) " >&6
  10901else
  10902  ac_check_lib_save_LIBS=$LIBS
  10903LIBS="-ldl  $LIBS"
  10904cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10905/* end confdefs.h.  */
  10906
  10907/* Override any GCC internal prototype to avoid an error.
  10908   Use char because int might match the return type of a GCC
  10909   builtin and then its argument prototype would still apply.  */
  10910#ifdef __cplusplus
  10911extern "C"
  10912#endif
  10913char dlopen ();
  10914int
  10915main ()
  10916{
  10917return dlopen ();
  10918  ;
  10919  return 0;
  10920}
  10921_ACEOF
  10922if ac_fn_c_try_link "$LINENO"; then :
  10923  ac_cv_lib_dl_dlopen=yes
  10924else
  10925  ac_cv_lib_dl_dlopen=no
  10926fi
  10927rm -f core conftest.err conftest.$ac_objext \
  10928    conftest$ac_exeext conftest.$ac_ext
  10929LIBS=$ac_check_lib_save_LIBS
  10930fi
  10931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10932$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10933if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10934  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10935else
  10936  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10937$as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10938if ${ac_cv_lib_svld_dlopen+:} false; then :
  10939  $as_echo_n "(cached) " >&6
  10940else
  10941  ac_check_lib_save_LIBS=$LIBS
  10942LIBS="-lsvld  $LIBS"
  10943cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10944/* end confdefs.h.  */
  10945
  10946/* Override any GCC internal prototype to avoid an error.
  10947   Use char because int might match the return type of a GCC
  10948   builtin and then its argument prototype would still apply.  */
  10949#ifdef __cplusplus
  10950extern "C"
  10951#endif
  10952char dlopen ();
  10953int
  10954main ()
  10955{
  10956return dlopen ();
  10957  ;
  10958  return 0;
  10959}
  10960_ACEOF
  10961if ac_fn_c_try_link "$LINENO"; then :
  10962  ac_cv_lib_svld_dlopen=yes
  10963else
  10964  ac_cv_lib_svld_dlopen=no
  10965fi
  10966rm -f core conftest.err conftest.$ac_objext \
  10967    conftest$ac_exeext conftest.$ac_ext
  10968LIBS=$ac_check_lib_save_LIBS
  10969fi
  10970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10971$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10972if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10973  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  10974else
  10975  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10976$as_echo_n "checking for dld_link in -ldld... " >&6; }
  10977if ${ac_cv_lib_dld_dld_link+:} false; then :
  10978  $as_echo_n "(cached) " >&6
  10979else
  10980  ac_check_lib_save_LIBS=$LIBS
  10981LIBS="-ldld  $LIBS"
  10982cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10983/* end confdefs.h.  */
  10984
  10985/* Override any GCC internal prototype to avoid an error.
  10986   Use char because int might match the return type of a GCC
  10987   builtin and then its argument prototype would still apply.  */
  10988#ifdef __cplusplus
  10989extern "C"
  10990#endif
  10991char dld_link ();
  10992int
  10993main ()
  10994{
  10995return dld_link ();
  10996  ;
  10997  return 0;
  10998}
  10999_ACEOF
  11000if ac_fn_c_try_link "$LINENO"; then :
  11001  ac_cv_lib_dld_dld_link=yes
  11002else
  11003  ac_cv_lib_dld_dld_link=no
  11004fi
  11005rm -f core conftest.err conftest.$ac_objext \
  11006    conftest$ac_exeext conftest.$ac_ext
  11007LIBS=$ac_check_lib_save_LIBS
  11008fi
  11009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  11010$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  11011if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  11012  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  11013fi
  11014
  11015
  11016fi
  11017
  11018
  11019fi
  11020
  11021
  11022fi
  11023
  11024
  11025fi
  11026
  11027
  11028fi
  11029
  11030    ;;
  11031  esac
  11032
  11033  if test "x$lt_cv_dlopen" != xno; then
  11034    enable_dlopen=yes
  11035  else
  11036    enable_dlopen=no
  11037  fi
  11038
  11039  case $lt_cv_dlopen in
  11040  dlopen)
  11041    save_CPPFLAGS="$CPPFLAGS"
  11042    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  11043
  11044    save_LDFLAGS="$LDFLAGS"
  11045    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  11046
  11047    save_LIBS="$LIBS"
  11048    LIBS="$lt_cv_dlopen_libs $LIBS"
  11049
  11050    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  11051$as_echo_n "checking whether a program can dlopen itself... " >&6; }
  11052if ${lt_cv_dlopen_self+:} false; then :
  11053  $as_echo_n "(cached) " >&6
  11054else
  11055  	  if test "$cross_compiling" = yes; then :
  11056  lt_cv_dlopen_self=cross
  11057else
  11058  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11059  lt_status=$lt_dlunknown
  11060  cat > conftest.$ac_ext <<_LT_EOF
  11061#line $LINENO "configure"
  11062#include "confdefs.h"
  11063
  11064#if HAVE_DLFCN_H
  11065#include <dlfcn.h>
  11066#endif
  11067
  11068#include <stdio.h>
  11069
  11070#ifdef RTLD_GLOBAL
  11071#  define LT_DLGLOBAL		RTLD_GLOBAL
  11072#else
  11073#  ifdef DL_GLOBAL
  11074#    define LT_DLGLOBAL		DL_GLOBAL
  11075#  else
  11076#    define LT_DLGLOBAL		0
  11077#  endif
  11078#endif
  11079
  11080/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11081   find out it does not work in some platform. */
  11082#ifndef LT_DLLAZY_OR_NOW
  11083#  ifdef RTLD_LAZY
  11084#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
  11085#  else
  11086#    ifdef DL_LAZY
  11087#      define LT_DLLAZY_OR_NOW		DL_LAZY
  11088#    else
  11089#      ifdef RTLD_NOW
  11090#        define LT_DLLAZY_OR_NOW	RTLD_NOW
  11091#      else
  11092#        ifdef DL_NOW
  11093#          define LT_DLLAZY_OR_NOW	DL_NOW
  11094#        else
  11095#          define LT_DLLAZY_OR_NOW	0
  11096#        endif
  11097#      endif
  11098#    endif
  11099#  endif
  11100#endif
  11101
  11102/* When -fvisbility=hidden is used, assume the code has been annotated
  11103   correspondingly for the symbols needed.  */
  11104#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11105int fnord () __attribute__((visibility("default")));
  11106#endif
  11107
  11108int fnord () { return 42; }
  11109int main ()
  11110{
  11111  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11112  int status = $lt_dlunknown;
  11113
  11114  if (self)
  11115    {
  11116      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
  11117      else
  11118        {
  11119	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
  11120          else puts (dlerror ());
  11121	}
  11122      /* dlclose (self); */
  11123    }
  11124  else
  11125    puts (dlerror ());
  11126
  11127  return status;
  11128}
  11129_LT_EOF
  11130  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11131  (eval $ac_link) 2>&5
  11132  ac_status=$?
  11133  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11134  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  11135    (./conftest; exit; ) >&5 2>/dev/null
  11136    lt_status=$?
  11137    case x$lt_status in
  11138      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  11139      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  11140      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  11141    esac
  11142  else :
  11143    # compilation failed
  11144    lt_cv_dlopen_self=no
  11145  fi
  11146fi
  11147rm -fr conftest*
  11148
  11149
  11150fi
  11151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  11152$as_echo "$lt_cv_dlopen_self" >&6; }
  11153
  11154    if test "x$lt_cv_dlopen_self" = xyes; then
  11155      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  11156      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  11157$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  11158if ${lt_cv_dlopen_self_static+:} false; then :
  11159  $as_echo_n "(cached) " >&6
  11160else
  11161  	  if test "$cross_compiling" = yes; then :
  11162  lt_cv_dlopen_self_static=cross
  11163else
  11164  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11165  lt_status=$lt_dlunknown
  11166  cat > conftest.$ac_ext <<_LT_EOF
  11167#line $LINENO "configure"
  11168#include "confdefs.h"
  11169
  11170#if HAVE_DLFCN_H
  11171#include <dlfcn.h>
  11172#endif
  11173
  11174#include <stdio.h>
  11175
  11176#ifdef RTLD_GLOBAL
  11177#  define LT_DLGLOBAL		RTLD_GLOBAL
  11178#else
  11179#  ifdef DL_GLOBAL
  11180#    define LT_DLGLOBAL		DL_GLOBAL
  11181#  else
  11182#    define LT_DLGLOBAL		0
  11183#  endif
  11184#endif
  11185
  11186/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11187   find out it does not work in some platform. */
  11188#ifndef LT_DLLAZY_OR_NOW
  11189#  ifdef RTLD_LAZY
  11190#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
  11191#  else
  11192#    ifdef DL_LAZY
  11193#      define LT_DLLAZY_OR_NOW		DL_LAZY
  11194#    else
  11195#      ifdef RTLD_NOW
  11196#        define LT_DLLAZY_OR_NOW	RTLD_NOW
  11197#      else
  11198#        ifdef DL_NOW
  11199#          define LT_DLLAZY_OR_NOW	DL_NOW
  11200#        else
  11201#          define LT_DLLAZY_OR_NOW	0
  11202#        endif
  11203#      endif
  11204#    endif
  11205#  endif
  11206#endif
  11207
  11208/* When -fvisbility=hidden is used, assume the code has been annotated
  11209   correspondingly for the symbols needed.  */
  11210#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11211int fnord () __attribute__((visibility("default")));
  11212#endif
  11213
  11214int fnord () { return 42; }
  11215int main ()
  11216{
  11217  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11218  int status = $lt_dlunknown;
  11219
  11220  if (self)
  11221    {
  11222      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
  11223      else
  11224        {
  11225	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
  11226          else puts (dlerror ());
  11227	}
  11228      /* dlclose (self); */
  11229    }
  11230  else
  11231    puts (dlerror ());
  11232
  11233  return status;
  11234}
  11235_LT_EOF
  11236  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11237  (eval $ac_link) 2>&5
  11238  ac_status=$?
  11239  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11240  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  11241    (./conftest; exit; ) >&5 2>/dev/null
  11242    lt_status=$?
  11243    case x$lt_status in
  11244      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11245      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11246      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  11247    esac
  11248  else :
  11249    # compilation failed
  11250    lt_cv_dlopen_self_static=no
  11251  fi
  11252fi
  11253rm -fr conftest*
  11254
  11255
  11256fi
  11257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  11258$as_echo "$lt_cv_dlopen_self_static" >&6; }
  11259    fi
  11260
  11261    CPPFLAGS="$save_CPPFLAGS"
  11262    LDFLAGS="$save_LDFLAGS"
  11263    LIBS="$save_LIBS"
  11264    ;;
  11265  esac
  11266
  11267  case $lt_cv_dlopen_self in
  11268  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11269  *) enable_dlopen_self=unknown ;;
  11270  esac
  11271
  11272  case $lt_cv_dlopen_self_static in
  11273  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11274  *) enable_dlopen_self_static=unknown ;;
  11275  esac
  11276fi
  11277
  11278
  11279
  11280
  11281
  11282
  11283
  11284
  11285
  11286
  11287
  11288
  11289
  11290
  11291
  11292
  11293
  11294striplib=
  11295old_striplib=
  11296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  11297$as_echo_n "checking whether stripping libraries is possible... " >&6; }
  11298if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  11299  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  11300  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  11301  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11302$as_echo "yes" >&6; }
  11303else
  11304# FIXME - insert some real tests, host_os isn't really good enough
  11305  case $host_os in
  11306  darwin*)
  11307    if test -n "$STRIP" ; then
  11308      striplib="$STRIP -x"
  11309      old_striplib="$STRIP -S"
  11310      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11311$as_echo "yes" >&6; }
  11312    else
  11313      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11314$as_echo "no" >&6; }
  11315    fi
  11316    ;;
  11317  *)
  11318    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11319$as_echo "no" >&6; }
  11320    ;;
  11321  esac
  11322fi
  11323
  11324
  11325
  11326
  11327
  11328
  11329
  11330
  11331
  11332
  11333
  11334
  11335  # Report which library types will actually be built
  11336  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  11337$as_echo_n "checking if libtool supports shared libraries... " >&6; }
  11338  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  11339$as_echo "$can_build_shared" >&6; }
  11340
  11341  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  11342$as_echo_n "checking whether to build shared libraries... " >&6; }
  11343  test "$can_build_shared" = "no" && enable_shared=no
  11344
  11345  # On AIX, shared libraries and static libraries use the same namespace, and
  11346  # are all built from PIC.
  11347  case $host_os in
  11348  aix3*)
  11349    test "$enable_shared" = yes && enable_static=no
  11350    if test -n "$RANLIB"; then
  11351      archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11352      postinstall_cmds='$RANLIB $lib'
  11353    fi
  11354    ;;
  11355
  11356  aix[4-9]*)
  11357    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  11358      test "$enable_shared" = yes && enable_static=no
  11359    fi
  11360    ;;
  11361  esac
  11362  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  11363$as_echo "$enable_shared" >&6; }
  11364
  11365  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  11366$as_echo_n "checking whether to build static libraries... " >&6; }
  11367  # Make sure either enable_shared or enable_static is yes.
  11368  test "$enable_shared" = yes || enable_static=yes
  11369  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  11370$as_echo "$enable_static" >&6; }
  11371
  11372
  11373
  11374
  11375fi
  11376ac_ext=c
  11377ac_cpp='$CPP $CPPFLAGS'
  11378ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11379ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11380ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11381
  11382CC="$lt_save_CC"
  11383
  11384
  11385
  11386
  11387
  11388
  11389
  11390
  11391
  11392
  11393
  11394
  11395
  11396
  11397
  11398        ac_config_commands="$ac_config_commands libtool"
  11399
  11400
  11401
  11402
  11403# Only expand once:
  11404
  11405
  11406
  11407LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
  11408LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
  11409LT_REVISION=$SDL_INTERFACE_AGE
  11410LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  11411
  11412
  11413
  11414
  11415
  11416
  11417
  11418
  11419
  11420ac_ext=c
  11421ac_cpp='$CPP $CPPFLAGS'
  11422ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11423ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11424ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11425if test -n "$ac_tool_prefix"; then
  11426  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  11427set dummy ${ac_tool_prefix}gcc; ac_word=$2
  11428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11429$as_echo_n "checking for $ac_word... " >&6; }
  11430if ${ac_cv_prog_CC+:} false; then :
  11431  $as_echo_n "(cached) " >&6
  11432else
  11433  if test -n "$CC"; then
  11434  ac_cv_prog_CC="$CC" # Let the user override the test.
  11435else
  11436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11437for as_dir in $PATH
  11438do
  11439  IFS=$as_save_IFS
  11440  test -z "$as_dir" && as_dir=.
  11441    for ac_exec_ext in '' $ac_executable_extensions; do
  11442  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11443    ac_cv_prog_CC="${ac_tool_prefix}gcc"
  11444    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11445    break 2
  11446  fi
  11447done
  11448  done
  11449IFS=$as_save_IFS
  11450
  11451fi
  11452fi
  11453CC=$ac_cv_prog_CC
  11454if test -n "$CC"; then
  11455  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11456$as_echo "$CC" >&6; }
  11457else
  11458  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11459$as_echo "no" >&6; }
  11460fi
  11461
  11462
  11463fi
  11464if test -z "$ac_cv_prog_CC"; then
  11465  ac_ct_CC=$CC
  11466  # Extract the first word of "gcc", so it can be a program name with args.
  11467set dummy gcc; ac_word=$2
  11468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11469$as_echo_n "checking for $ac_word... " >&6; }
  11470if ${ac_cv_prog_ac_ct_CC+:} false; then :
  11471  $as_echo_n "(cached) " >&6
  11472else
  11473  if test -n "$ac_ct_CC"; then
  11474  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11475else
  11476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11477for as_dir in $PATH
  11478do
  11479  IFS=$as_save_IFS
  11480  test -z "$as_dir" && as_dir=.
  11481    for ac_exec_ext in '' $ac_executable_extensions; do
  11482  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11483    ac_cv_prog_ac_ct_CC="gcc"
  11484    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11485    break 2
  11486  fi
  11487done
  11488  done
  11489IFS=$as_save_IFS
  11490
  11491fi
  11492fi
  11493ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11494if test -n "$ac_ct_CC"; then
  11495  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11496$as_echo "$ac_ct_CC" >&6; }
  11497else
  11498  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11499$as_echo "no" >&6; }
  11500fi
  11501
  11502  if test "x$ac_ct_CC" = x; then
  11503    CC=""
  11504  else
  11505    case $cross_compiling:$ac_tool_warned in
  11506yes:)
  11507{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11508$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11509ac_tool_warned=yes ;;
  11510esac
  11511    CC=$ac_ct_CC
  11512  fi
  11513else
  11514  CC="$ac_cv_prog_CC"
  11515fi
  11516
  11517if test -z "$CC"; then
  11518          if test -n "$ac_tool_prefix"; then
  11519    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  11520set dummy ${ac_tool_prefix}cc; ac_word=$2
  11521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11522$as_echo_n "checking for $ac_word... " >&6; }
  11523if ${ac_cv_prog_CC+:} false; then :
  11524  $as_echo_n "(cached) " >&6
  11525else
  11526  if test -n "$CC"; then
  11527  ac_cv_prog_CC="$CC" # Let the user override the test.
  11528else
  11529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11530for as_dir in $PATH
  11531do
  11532  IFS=$as_save_IFS
  11533  test -z "$as_dir" && as_dir=.
  11534    for ac_exec_ext in '' $ac_executable_extensions; do
  11535  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11536    ac_cv_prog_CC="${ac_tool_prefix}cc"
  11537    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11538    break 2
  11539  fi
  11540done
  11541  done
  11542IFS=$as_save_IFS
  11543
  11544fi
  11545fi
  11546CC=$ac_cv_prog_CC
  11547if test -n "$CC"; then
  11548  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11549$as_echo "$CC" >&6; }
  11550else
  11551  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11552$as_echo "no" >&6; }
  11553fi
  11554
  11555
  11556  fi
  11557fi
  11558if test -z "$CC"; then
  11559  # Extract the first word of "cc", so it can be a program name with args.
  11560set dummy cc; ac_word=$2
  11561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11562$as_echo_n "checking for $ac_word... " >&6; }
  11563if ${ac_cv_prog_CC+:} false; then :
  11564  $as_echo_n "(cached) " >&6
  11565else
  11566  if test -n "$CC"; then
  11567  ac_cv_prog_CC="$CC" # Let the user override the test.
  11568else
  11569  ac_prog_rejected=no
  11570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11571for as_dir in $PATH
  11572do
  11573  IFS=$as_save_IFS
  11574  test -z "$as_dir" && as_dir=.
  11575    for ac_exec_ext in '' $ac_executable_extensions; do
  11576  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11577    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  11578       ac_prog_rejected=yes
  11579       continue
  11580     fi
  11581    ac_cv_prog_CC="cc"
  11582    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11583    break 2
  11584  fi
  11585done
  11586  done
  11587IFS=$as_save_IFS
  11588
  11589if test $ac_prog_rejected = yes; then
  11590  # We found a bogon in the path, so make sure we never use it.
  11591  set dummy $ac_cv_prog_CC
  11592  shift
  11593  if test $# != 0; then
  11594    # We chose a different compiler from the bogus one.
  11595    # However, it has the same basename, so the bogon will be chosen
  11596    # first if we set CC to just the basename; use the full file name.
  11597    shift
  11598    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  11599  fi
  11600fi
  11601fi
  11602fi
  11603CC=$ac_cv_prog_CC
  11604if test -n "$CC"; then
  11605  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11606$as_echo "$CC" >&6; }
  11607else
  11608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11609$as_echo "no" >&6; }
  11610fi
  11611
  11612
  11613fi
  11614if test -z "$CC"; then
  11615  if test -n "$ac_tool_prefix"; then
  11616  for ac_prog in cl.exe
  11617  do
  11618    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  11619set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  11620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11621$as_echo_n "checking for $ac_word... " >&6; }
  11622if ${ac_cv_prog_CC+:} false; then :
  11623  $as_echo_n "(cached) " >&6
  11624else
  11625  if test -n "$CC"; then
  11626  ac_cv_prog_CC="$CC" # Let the user override the test.
  11627else
  11628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11629for as_dir in $PATH
  11630do
  11631  IFS=$as_save_IFS
  11632  test -z "$as_dir" && as_dir=.
  11633    for ac_exec_ext in '' $ac_executable_extensions; do
  11634  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11635    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  11636    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11637    break 2
  11638  fi
  11639done
  11640  done
  11641IFS=$as_save_IFS
  11642
  11643fi
  11644fi
  11645CC=$ac_cv_prog_CC
  11646if test -n "$CC"; then
  11647  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11648$as_echo "$CC" >&6; }
  11649else
  11650  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11651$as_echo "no" >&6; }
  11652fi
  11653
  11654
  11655    test -n "$CC" && break
  11656  done
  11657fi
  11658if test -z "$CC"; then
  11659  ac_ct_CC=$CC
  11660  for ac_prog in cl.exe
  11661do
  11662  # Extract the first word of "$ac_prog", so it can be a program name with args.
  11663set dummy $ac_prog; ac_word=$2
  11664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11665$as_echo_n "checking for $ac_word... " >&6; }
  11666if ${ac_cv_prog_ac_ct_CC+:} false; then :
  11667  $as_echo_n "(cached) " >&6
  11668else
  11669  if test -n "$ac_ct_CC"; then
  11670  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11671else
  11672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11673for as_dir in $PATH
  11674do
  11675  IFS=$as_save_IFS
  11676  test -z "$as_dir" && as_dir=.
  11677    for ac_exec_ext in '' $ac_executable_extensions; do
  11678  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11679    ac_cv_prog_ac_ct_CC="$ac_prog"
  11680    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11681    break 2
  11682  fi
  11683done
  11684  done
  11685IFS=$as_save_IFS
  11686
  11687fi
  11688fi
  11689ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11690if test -n "$ac_ct_CC"; then
  11691  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11692$as_echo "$ac_ct_CC" >&6; }
  11693else
  11694  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11695$as_echo "no" >&6; }
  11696fi
  11697
  11698
  11699  test -n "$ac_ct_CC" && break
  11700done
  11701
  11702  if test "x$ac_ct_CC" = x; then
  11703    CC=""
  11704  else
  11705    case $cross_compiling:$ac_tool_warned in
  11706yes:)
  11707{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11708$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11709ac_tool_warned=yes ;;
  11710esac
  11711    CC=$ac_ct_CC
  11712  fi
  11713fi
  11714
  11715fi
  11716
  11717
  11718test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11719$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11720as_fn_error $? "no acceptable C compiler found in \$PATH
  11721See \`config.log' for more details" "$LINENO" 5; }
  11722
  11723# Provide some information about the compiler.
  11724$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  11725set X $ac_compile
  11726ac_compiler=$2
  11727for ac_option in --version -v -V -qversion; do
  11728  { { ac_try="$ac_compiler $ac_option >&5"
  11729case "(($ac_try" in
  11730  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11731  *) ac_try_echo=$ac_try;;
  11732esac
  11733eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11734$as_echo "$ac_try_echo"; } >&5
  11735  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  11736  ac_status=$?
  11737  if test -s conftest.err; then
  11738    sed '10a\
  11739... rest of stderr output deleted ...
  11740         10q' conftest.err >conftest.er1
  11741    cat conftest.er1 >&5
  11742  fi
  11743  rm -f conftest.er1 conftest.err
  11744  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11745  test $ac_status = 0; }
  11746done
  11747
  11748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  11749$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  11750if ${ac_cv_c_compiler_gnu+:} false; then :
  11751  $as_echo_n "(cached) " >&6
  11752else
  11753  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11754/* end confdefs.h.  */
  11755
  11756int
  11757main ()
  11758{
  11759#ifndef __GNUC__
  11760       choke me
  11761#endif
  11762
  11763  ;
  11764  return 0;
  11765}
  11766_ACEOF
  11767if ac_fn_c_try_compile "$LINENO"; then :
  11768  ac_compiler_gnu=yes
  11769else
  11770  ac_compiler_gnu=no
  11771fi
  11772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11773ac_cv_c_compiler_gnu=$ac_compiler_gnu
  11774
  11775fi
  11776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  11777$as_echo "$ac_cv_c_compiler_gnu" >&6; }
  11778if test $ac_compiler_gnu = yes; then
  11779  GCC=yes
  11780else
  11781  GCC=
  11782fi
  11783ac_test_CFLAGS=${CFLAGS+set}
  11784ac_save_CFLAGS=$CFLAGS
  11785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  11786$as_echo_n "checking whether $CC accepts -g... " >&6; }
  11787if ${ac_cv_prog_cc_g+:} false; then :
  11788  $as_echo_n "(cached) " >&6
  11789else
  11790  ac_save_c_werror_flag=$ac_c_werror_flag
  11791   ac_c_werror_flag=yes
  11792   ac_cv_prog_cc_g=no
  11793   CFLAGS="-g"
  11794   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11795/* end confdefs.h.  */
  11796
  11797int
  11798main ()
  11799{
  11800
  11801  ;
  11802  return 0;
  11803}
  11804_ACEOF
  11805if ac_fn_c_try_compile "$LINENO"; then :
  11806  ac_cv_prog_cc_g=yes
  11807else
  11808  CFLAGS=""
  11809      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11810/* end confdefs.h.  */
  11811
  11812int
  11813main ()
  11814{
  11815
  11816  ;
  11817  return 0;
  11818}
  11819_ACEOF
  11820if ac_fn_c_try_compile "$LINENO"; then :
  11821
  11822else
  11823  ac_c_werror_flag=$ac_save_c_werror_flag
  11824	 CFLAGS="-g"
  11825	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11826/* end confdefs.h.  */
  11827
  11828int
  11829main ()
  11830{
  11831
  11832  ;
  11833  return 0;
  11834}
  11835_ACEOF
  11836if ac_fn_c_try_compile "$LINENO"; then :
  11837  ac_cv_prog_cc_g=yes
  11838fi
  11839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11840fi
  11841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11842fi
  11843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11844   ac_c_werror_flag=$ac_save_c_werror_flag
  11845fi
  11846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  11847$as_echo "$ac_cv_prog_cc_g" >&6; }
  11848if test "$ac_test_CFLAGS" = set; then
  11849  CFLAGS=$ac_save_CFLAGS
  11850elif test $ac_cv_prog_cc_g = yes; then
  11851  if test "$GCC" = yes; then
  11852    CFLAGS="-g -O2"
  11853  else
  11854    CFLAGS="-g"
  11855  fi
  11856else
  11857  if test "$GCC" = yes; then
  11858    CFLAGS="-O2"
  11859  else
  11860    CFLAGS=
  11861  fi
  11862fi
  11863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  11864$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  11865if ${ac_cv_prog_cc_c89+:} false; then :
  11866  $as_echo_n "(cached) " >&6
  11867else
  11868  ac_cv_prog_cc_c89=no
  11869ac_save_CC=$CC
  11870cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11871/* end confdefs.h.  */
  11872#include <stdarg.h>
  11873#include <stdio.h>
  11874struct stat;
  11875/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  11876struct buf { int x; };
  11877FILE * (*rcsopen) (struct buf *, struct stat *, int);
  11878static char *e (p, i)
  11879     char **p;
  11880     int i;
  11881{
  11882  return p[i];
  11883}
  11884static char *f (char * (*g) (char **, int), char **p, ...)
  11885{
  11886  char *s;
  11887  va_list v;
  11888  va_start (v,p);
  11889  s = g (p, va_arg (v,int));
  11890  va_end (v);
  11891  return s;
  11892}
  11893
  11894/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  11895   function prototypes and stuff, but not '\xHH' hex character constants.
  11896   These don't provoke an error unfortunately, instead are silently treated
  11897   as 'x'.  The following induces an error, until -std is added to get
  11898   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  11899   array size at least.  It's necessary to write '\x00'==0 to get something
  11900   that's true only with -std.  */
  11901int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  11902
  11903/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  11904   inside strings and character constants.  */
  11905#define FOO(x) 'x'
  11906int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  11907
  11908int test (int i, double x);
  11909struct s1 {int (*f) (int a);};
  11910struct s2 {int (*f) (double a);};
  11911int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  11912int argc;
  11913char **argv;
  11914int
  11915main ()
  11916{
  11917return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  11918  ;
  11919  return 0;
  11920}
  11921_ACEOF
  11922for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  11923	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  11924do
  11925  CC="$ac_save_CC $ac_arg"
  11926  if ac_fn_c_try_compile "$LINENO"; then :
  11927  ac_cv_prog_cc_c89=$ac_arg
  11928fi
  11929rm -f core conftest.err conftest.$ac_objext
  11930  test "x$ac_cv_prog_cc_c89" != "xno" && break
  11931done
  11932rm -f conftest.$ac_ext
  11933CC=$ac_save_CC
  11934
  11935fi
  11936# AC_CACHE_VAL
  11937case "x$ac_cv_prog_cc_c89" in
  11938  x)
  11939    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11940$as_echo "none needed" >&6; } ;;
  11941  xno)
  11942    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11943$as_echo "unsupported" >&6; } ;;
  11944  *)
  11945    CC="$CC $ac_cv_prog_cc_c89"
  11946    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  11947$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  11948esac
  11949if test "x$ac_cv_prog_cc_c89" != xno; then :
  11950
  11951fi
  11952
  11953ac_ext=c
  11954ac_cpp='$CPP $CPPFLAGS'
  11955ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11956ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11957ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11958
  11959ac_ext=cpp
  11960ac_cpp='$CXXCPP $CPPFLAGS'
  11961ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11962ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11963ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11964if test -z "$CXX"; then
  11965  if test -n "$CCC"; then
  11966    CXX=$CCC
  11967  else
  11968    if test -n "$ac_tool_prefix"; then
  11969  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  11970  do
  11971    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  11972set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  11973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11974$as_echo_n "checking for $ac_word... " >&6; }
  11975if ${ac_cv_prog_CXX+:} false; then :
  11976  $as_echo_n "(cached) " >&6
  11977else
  11978  if test -n "$CXX"; then
  11979  ac_cv_prog_CXX="$CXX" # Let the user override the test.
  11980else
  11981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11982for as_dir in $PATH
  11983do
  11984  IFS=$as_save_IFS
  11985  test -z "$as_dir" && as_dir=.
  11986    for ac_exec_ext in '' $ac_executable_extensions; do
  11987  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11988    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  11989    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11990    break 2
  11991  fi
  11992done
  11993  done
  11994IFS=$as_save_IFS
  11995
  11996fi
  11997fi
  11998CXX=$ac_cv_prog_CXX
  11999if test -n "$CXX"; then
  12000  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  12001$as_echo "$CXX" >&6; }
  12002else
  12003  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12004$as_echo "no" >&6; }
  12005fi
  12006
  12007
  12008    test -n "$CXX" && break
  12009  done
  12010fi
  12011if test -z "$CXX"; then
  12012  ac_ct_CXX=$CXX
  12013  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  12014do
  12015  # Extract the first word of "$ac_prog", so it can be a program name with args.
  12016set dummy $ac_prog; ac_word=$2
  12017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12018$as_echo_n "checking for $ac_word... " >&6; }
  12019if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  12020  $as_echo_n "(cached) " >&6
  12021else
  12022  if test -n "$ac_ct_CXX"; then
  12023  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  12024else
  12025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12026for as_dir in $PATH
  12027do
  12028  IFS=$as_save_IFS
  12029  test -z "$as_dir" && as_dir=.
  12030    for ac_exec_ext in '' $ac_executable_extensions; do
  12031  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12032    ac_cv_prog_ac_ct_CXX="$ac_prog"
  12033    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12034    break 2
  12035  fi
  12036done
  12037  done
  12038IFS=$as_save_IFS
  12039
  12040fi
  12041fi
  12042ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  12043if test -n "$ac_ct_CXX"; then
  12044  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  12045$as_echo "$ac_ct_CXX" >&6; }
  12046else
  12047  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12048$as_echo "no" >&6; }
  12049fi
  12050
  12051
  12052  test -n "$ac_ct_CXX" && break
  12053done
  12054
  12055  if test "x$ac_ct_CXX" = x; then
  12056    CXX="g++"
  12057  else
  12058    case $cross_compiling:$ac_tool_warned in
  12059yes:)
  12060{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12061$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12062ac_tool_warned=yes ;;
  12063esac
  12064    CXX=$ac_ct_CXX
  12065  fi
  12066fi
  12067
  12068  fi
  12069fi
  12070# Provide some information about the compiler.
  12071$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  12072set X $ac_compile
  12073ac_compiler=$2
  12074for ac_option in --version -v -V -qversion; do
  12075  { { ac_try="$ac_compiler $ac_option >&5"
  12076case "(($ac_try" in
  12077  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12078  *) ac_try_echo=$ac_try;;
  12079esac
  12080eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12081$as_echo "$ac_try_echo"; } >&5
  12082  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  12083  ac_status=$?
  12084  if test -s conftest.err; then
  12085    sed '10a\
  12086... rest of stderr output deleted ...
  12087         10q' conftest.err >conftest.er1
  12088    cat conftest.er1 >&5
  12089  fi
  12090  rm -f conftest.er1 conftest.err
  12091  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12092  test $ac_status = 0; }
  12093done
  12094
  12095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  12096$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  12097if ${ac_cv_cxx_compiler_gnu+:} false; then :
  12098  $as_echo_n "(cached) " >&6
  12099else
  12100  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12101/* end confdefs.h.  */
  12102
  12103int
  12104main ()
  12105{
  12106#ifndef __GNUC__
  12107       choke me
  12108#endif
  12109
  12110  ;
  12111  return 0;
  12112}
  12113_ACEOF
  12114if ac_fn_cxx_try_compile "$LINENO"; then :
  12115  ac_compiler_gnu=yes
  12116else
  12117  ac_compiler_gnu=no
  12118fi
  12119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12120ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  12121
  12122fi
  12123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  12124$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  12125if test $ac_compiler_gnu = yes; then
  12126  GXX=yes
  12127else
  12128  GXX=
  12129fi
  12130ac_test_CXXFLAGS=${CXXFLAGS+set}
  12131ac_save_CXXFLAGS=$CXXFLAGS
  12132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  12133$as_echo_n "checking whether $CXX accepts -g... " >&6; }
  12134if ${ac_cv_prog_cxx_g+:} false; then :
  12135  $as_echo_n "(cached) " >&6
  12136else
  12137  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  12138   ac_cxx_werror_flag=yes
  12139   ac_cv_prog_cxx_g=no
  12140   CXXFLAGS="-g"
  12141   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12142/* end confdefs.h.  */
  12143
  12144int
  12145main ()
  12146{
  12147
  12148  ;
  12149  return 0;
  12150}
  12151_ACEOF
  12152if ac_fn_cxx_try_compile "$LINENO"; then :
  12153  ac_cv_prog_cxx_g=yes
  12154else
  12155  CXXFLAGS=""
  12156      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12157/* end confdefs.h.  */
  12158
  12159int
  12160main ()
  12161{
  12162
  12163  ;
  12164  return 0;
  12165}
  12166_ACEOF
  12167if ac_fn_cxx_try_compile "$LINENO"; then :
  12168
  12169else
  12170  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12171	 CXXFLAGS="-g"
  12172	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12173/* end confdefs.h.  */
  12174
  12175int
  12176main ()
  12177{
  12178
  12179  ;
  12180  return 0;
  12181}
  12182_ACEOF
  12183if ac_fn_cxx_try_compile "$LINENO"; then :
  12184  ac_cv_prog_cxx_g=yes
  12185fi
  12186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12187fi
  12188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12189fi
  12190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12191   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12192fi
  12193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  12194$as_echo "$ac_cv_prog_cxx_g" >&6; }
  12195if test "$ac_test_CXXFLAGS" = set; then
  12196  CXXFLAGS=$ac_save_CXXFLAGS
  12197elif test $ac_cv_prog_cxx_g = yes; then
  12198  if test "$GXX" = yes; then
  12199    CXXFLAGS="-g -O2"
  12200  else
  12201    CXXFLAGS="-g"
  12202  fi
  12203else
  12204  if test "$GXX" = yes; then
  12205    CXXFLAGS="-O2"
  12206  else
  12207    CXXFLAGS=
  12208  fi
  12209fi
  12210ac_ext=c
  12211ac_cpp='$CPP $CPPFLAGS'
  12212ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12213ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12214ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12215
  12216
  12217
  12218func_stripname_cnf ()
  12219{
  12220  case ${2} in
  12221  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  12222  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  12223  esac
  12224} # func_stripname_cnf
  12225
  12226      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  12227    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  12228    (test "X$CXX" != "Xg++"))) ; then
  12229  ac_ext=cpp
  12230ac_cpp='$CXXCPP $CPPFLAGS'
  12231ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12232ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12233ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  12235$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  12236if test -z "$CXXCPP"; then
  12237  if ${ac_cv_prog_CXXCPP+:} false; then :
  12238  $as_echo_n "(cached) " >&6
  12239else
  12240      # Double quotes because CXXCPP needs to be expanded
  12241    for CXXCPP in "$CXX -E" "/lib/cpp"
  12242    do
  12243      ac_preproc_ok=false
  12244for ac_cxx_preproc_warn_flag in '' yes
  12245do
  12246  # Use a header file that comes with gcc, so configuring glibc
  12247  # with a fresh cross-compiler works.
  12248  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12249  # <limits.h> exists even on freestanding compilers.
  12250  # On the NeXT, cc -E runs the code through the compiler's parser,
  12251  # not just through cpp. "Syntax error" is here to catch this case.
  12252  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12253/* end confdefs.h.  */
  12254#ifdef __STDC__
  12255# include <limits.h>
  12256#else
  12257# include <assert.h>
  12258#endif
  12259		     Syntax error
  12260_ACEOF
  12261if ac_fn_cxx_try_cpp "$LINENO"; then :
  12262
  12263else
  12264  # Broken: fails on valid input.
  12265continue
  12266fi
  12267rm -f conftest.err conftest.i conftest.$ac_ext
  12268
  12269  # OK, works on sane cases.  Now check whether nonexistent headers
  12270  # can be detected and how.
  12271  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12272/* end confdefs.h.  */
  12273#include <ac_nonexistent.h>
  12274_ACEOF
  12275if ac_fn_cxx_try_cpp "$LINENO"; then :
  12276  # Broken: success on invalid input.
  12277continue
  12278else
  12279  # Passes both tests.
  12280ac_preproc_ok=:
  12281break
  12282fi
  12283rm -f conftest.err conftest.i conftest.$ac_ext
  12284
  12285done
  12286# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12287rm -f conftest.i conftest.err conftest.$ac_ext
  12288if $ac_preproc_ok; then :
  12289  break
  12290fi
  12291
  12292    done
  12293    ac_cv_prog_CXXCPP=$CXXCPP
  12294
  12295fi
  12296  CXXCPP=$ac_cv_prog_CXXCPP
  12297else
  12298  ac_cv_prog_CXXCPP=$CXXCPP
  12299fi
  12300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  12301$as_echo "$CXXCPP" >&6; }
  12302ac_preproc_ok=false
  12303for ac_cxx_preproc_warn_flag in '' yes
  12304do
  12305  # Use a header file that comes with gcc, so configuring glibc
  12306  # with a fresh cross-compiler works.
  12307  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12308  # <limits.h> exists even on freestanding compilers.
  12309  # On the NeXT, cc -E runs the code through the compiler's parser,
  12310  # not just through cpp. "Syntax error" is here to catch this case.
  12311  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12312/* end confdefs.h.  */
  12313#ifdef __STDC__
  12314# include <limits.h>
  12315#else
  12316# include <assert.h>
  12317#endif
  12318		     Syntax error
  12319_ACEOF
  12320if ac_fn_cxx_try_cpp "$LINENO"; then :
  12321
  12322else
  12323  # Broken: fails on valid input.
  12324continue
  12325fi
  12326rm -f conftest.err conftest.i conftest.$ac_ext
  12327
  12328  # OK, works on sane cases.  Now check whether nonexistent headers
  12329  # can be detected and how.
  12330  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12331/* end confdefs.h.  */
  12332#include <ac_nonexistent.h>
  12333_ACEOF
  12334if ac_fn_cxx_try_cpp "$LINENO"; then :
  12335  # Broken: success on invalid input.
  12336continue
  12337else
  12338  # Passes both tests.
  12339ac_preproc_ok=:
  12340break
  12341fi
  12342rm -f conftest.err conftest.i conftest.$ac_ext
  12343
  12344done
  12345# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12346rm -f conftest.i conftest.err conftest.$ac_ext
  12347if $ac_preproc_ok; then :
  12348
  12349else
  12350  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12351$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12352as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  12353See \`config.log' for more details" "$LINENO" 5; }
  12354fi
  12355
  12356ac_ext=c
  12357ac_cpp='$CPP $CPPFLAGS'
  12358ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12359ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12360ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12361
  12362else
  12363  _lt_caught_CXX_error=yes
  12364fi
  12365
  12366ac_ext=cpp
  12367ac_cpp='$CXXCPP $CPPFLAGS'
  12368ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12369ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12370ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12371
  12372archive_cmds_need_lc_CXX=no
  12373allow_undefined_flag_CXX=
  12374always_export_symbols_CXX=no
  12375archive_expsym_cmds_CXX=
  12376compiler_needs_object_CXX=no
  12377export_dynamic_flag_spec_CXX=
  12378hardcode_direct_CXX=no
  12379hardcode_direct_absolute_CXX=no
  12380hardcode_libdir_flag_spec_CXX=
  12381hardcode_libdir_separator_CXX=
  12382hardcode_minus_L_CXX=no
  12383hardcode_shlibpath_var_CXX=unsupported
  12384hardcode_automatic_CXX=no
  12385inherit_rpath_CXX=no
  12386module_cmds_CXX=
  12387module_expsym_cmds_CXX=
  12388link_all_deplibs_CXX=unknown
  12389old_archive_cmds_CXX=$old_archive_cmds
  12390reload_flag_CXX=$reload_flag
  12391reload_cmds_CXX=$reload_cmds
  12392no_undefined_flag_CXX=
  12393whole_archive_flag_spec_CXX=
  12394enable_shared_with_static_runtimes_CXX=no
  12395
  12396# Source file extension for C++ test sources.
  12397ac_ext=cpp
  12398
  12399# Object file extension for compiled C++ test sources.
  12400objext=o
  12401objext_CXX=$objext
  12402
  12403# No sense in running all these tests if we already determined that
  12404# the CXX compiler isn't working.  Some variables (like enable_shared)
  12405# are currently assumed to apply to all compilers on this platform,
  12406# and will be corrupted by setting them based on a non-working compiler.
  12407if test "$_lt_caught_CXX_error" != yes; then
  12408  # Code to be used in simple compile tests
  12409  lt_simple_compile_test_code="int some_variable = 0;"
  12410
  12411  # Code to be used in simple link tests
  12412  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  12413
  12414  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  12415
  12416
  12417
  12418
  12419
  12420
  12421# If no C compiler was specified, use CC.
  12422LTCC=${LTCC-"$CC"}
  12423
  12424# If no C compiler flags were specified, use CFLAGS.
  12425LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  12426
  12427# Allow CC to be a program name with arguments.
  12428compiler=$CC
  12429
  12430
  12431  # save warnings/boilerplate of simple test code
  12432  ac_outfile=conftest.$ac_objext
  12433echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  12434eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12435_lt_compiler_boilerplate=`cat conftest.err`
  12436$RM conftest*
  12437
  12438  ac_outfile=conftest.$ac_objext
  12439echo "$lt_simple_link_test_code" >conftest.$ac_ext
  12440eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12441_lt_linker_boilerplate=`cat conftest.err`
  12442$RM -r conftest*
  12443
  12444
  12445  # Allow CC to be a program name with arguments.
  12446  lt_save_CC=$CC
  12447  lt_save_CFLAGS=$CFLAGS
  12448  lt_save_LD=$LD
  12449  lt_save_GCC=$GCC
  12450  GCC=$GXX
  12451  lt_save_with_gnu_ld=$with_gnu_ld
  12452  lt_save_path_LD=$lt_cv_path_LD
  12453  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  12454    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  12455  else
  12456    $as_unset lt_cv_prog_gnu_ld
  12457  fi
  12458  if test -n "${lt_cv_path_LDCXX+set}"; then
  12459    lt_cv_path_LD=$lt_cv_path_LDCXX
  12460  else
  12461    $as_unset lt_cv_path_LD
  12462  fi
  12463  test -z "${LDCXX+set}" || LD=$LDCXX
  12464  CC=${CXX-"c++"}
  12465  CFLAGS=$CXXFLAGS
  12466  compiler=$CC
  12467  compiler_CXX=$CC
  12468  for cc_temp in $compiler""; do
  12469  case $cc_temp in
  12470    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  12471    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  12472    \-*) ;;
  12473    *) break;;
  12474  esac
  12475done
  12476cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  12477
  12478
  12479  if test -n "$compiler"; then
  12480    # We don't want -fno-exception when compiling C++ code, so set the
  12481    # no_builtin_flag separately
  12482    if test "$GXX" = yes; then
  12483      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  12484    else
  12485      lt_prog_compiler_no_builtin_flag_CXX=
  12486    fi
  12487
  12488    if test "$GXX" = yes; then
  12489      # Set up default GNU C++ configuration
  12490
  12491
  12492
  12493# Check whether --with-gnu-ld was given.
  12494if test "${with_gnu_ld+set}" = set; then :
  12495  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  12496else
  12497  with_gnu_ld=no
  12498fi
  12499
  12500ac_prog=ld
  12501if test "$GCC" = yes; then
  12502  # Check if gcc -print-prog-name=ld gives a path.
  12503  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  12504$as_echo_n "checking for ld used by $CC... " >&6; }
  12505  case $host in
  12506  *-*-mingw*)
  12507    # gcc leaves a trailing carriage return which upsets mingw
  12508    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  12509  *)
  12510    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  12511  esac
  12512  case $ac_prog in
  12513    # Accept absolute paths.
  12514    [\\/]* | ?:[\\/]*)
  12515      re_direlt='/[^/][^/]*/\.\./'
  12516      # Canonicalize the pathname of ld
  12517      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  12518      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  12519	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  12520      done
  12521      test -z "$LD" && LD="$ac_prog"
  12522      ;;
  12523  "")
  12524    # If it fails, then pretend we aren't using GCC.
  12525    ac_prog=ld
  12526    ;;
  12527  *)
  12528    # If it is relative, then search for the first ld in PATH.
  12529    with_gnu_ld=unknown
  12530    ;;
  12531  esac
  12532elif test "$with_gnu_ld" = yes; then
  12533  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  12534$as_echo_n "checking for GNU ld... " >&6; }
  12535else
  12536  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  12537$as_echo_n "checking for non-GNU ld... " >&6; }
  12538fi
  12539if ${lt_cv_path_LD+:} false; then :
  12540  $as_echo_n "(cached) " >&6
  12541else
  12542  if test -z "$LD"; then
  12543  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  12544  for ac_dir in $PATH; do
  12545    IFS="$lt_save_ifs"
  12546    test -z "$ac_dir" && ac_dir=.
  12547    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  12548      lt_cv_path_LD="$ac_dir/$ac_prog"
  12549      # Check to see if the program is GNU ld.  I'd rather use --version,
  12550      # but apparently some variants of GNU ld only accept -v.
  12551      # Break only if it was the GNU/non-GNU ld that we prefer.
  12552      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  12553      *GNU* | *'with BFD'*)
  12554	test "$with_gnu_ld" != no && break
  12555	;;
  12556      *)
  12557	test "$with_gnu_ld" != yes && break
  12558	;;
  12559      esac
  12560    fi
  12561  done
  12562  IFS="$lt_save_ifs"
  12563else
  12564  lt_cv_path_LD="$LD" # Let the user override the test with a path.
  12565fi
  12566fi
  12567
  12568LD="$lt_cv_path_LD"
  12569if test -n "$LD"; then
  12570  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  12571$as_echo "$LD" >&6; }
  12572else
  12573  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12574$as_echo "no" >&6; }
  12575fi
  12576test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  12577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  12578$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  12579if ${lt_cv_prog_gnu_ld+:} false; then :
  12580  $as_echo_n "(cached) " >&6
  12581else
  12582  # I'd rather use --version here, but apparently some GNU lds only accept -v.
  12583case `$LD -v 2>&1 </dev/null` in
  12584*GNU* | *'with BFD'*)
  12585  lt_cv_prog_gnu_ld=yes
  12586  ;;
  12587*)
  12588  lt_cv_prog_gnu_ld=no
  12589  ;;
  12590esac
  12591fi
  12592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  12593$as_echo "$lt_cv_prog_gnu_ld" >&6; }
  12594with_gnu_ld=$lt_cv_prog_gnu_ld
  12595
  12596
  12597
  12598
  12599
  12600
  12601
  12602      # Check if GNU C++ uses GNU ld as the underlying linker, since the
  12603      # archiving commands below assume that GNU ld is being used.
  12604      if test "$with_gnu_ld" = yes; then
  12605        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12606        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'
  12607
  12608        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  12609        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  12610
  12611        # If archive_cmds runs LD, not CC, wlarc should be empty
  12612        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  12613        #     investigate it a little bit more. (MM)
  12614        wlarc='${wl}'
  12615
  12616        # ancient GNU ld didn't support --whole-archive et. al.
  12617        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  12618	  $GREP 'no-whole-archive' > /dev/null; then
  12619          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  12620        else
  12621          whole_archive_flag_spec_CXX=
  12622        fi
  12623      else
  12624        with_gnu_ld=no
  12625        wlarc=
  12626
  12627        # A generic and very simple default shared library creation
  12628        # command for GNU C++ for the case where it uses the native
  12629        # linker, instead of GNU ld.  If possible, this setting should
  12630        # overridden to take advantage of the native linker features on
  12631        # the platform it is being used on.
  12632        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12633      fi
  12634
  12635      # Commands to make compiler produce verbose output that lists
  12636      # what "hidden" libraries, object files and flags are used when
  12637      # linking a shared library.
  12638      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12639
  12640    else
  12641      GXX=no
  12642      with_gnu_ld=no
  12643      wlarc=
  12644    fi
  12645
  12646    # PORTME: fill in a description of your system's C++ link characteristics
  12647    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12648$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12649    ld_shlibs_CXX=yes
  12650    case $host_os in
  12651      aix3*)
  12652        # FIXME: insert proper C++ library support
  12653        ld_shlibs_CXX=no
  12654        ;;
  12655      aix[4-9]*)
  12656        if test "$host_cpu" = ia64; then
  12657          # On IA64, the linker does run time linking by default, so we don't
  12658          # have to do anything special.
  12659          aix_use_runtimelinking=no
  12660          exp_sym_flag='-Bexport'
  12661          no_entry_flag=""
  12662        else
  12663          aix_use_runtimelinking=no
  12664
  12665          # Test if we are trying to use run time linking or normal
  12666          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12667          # need to do runtime linking.
  12668          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  12669	    for ld_flag in $LDFLAGS; do
  12670	      case $ld_flag in
  12671	      *-brtl*)
  12672	        aix_use_runtimelinking=yes
  12673	        break
  12674	        ;;
  12675	      esac
  12676	    done
  12677	    ;;
  12678          esac
  12679
  12680          exp_sym_flag='-bexport'
  12681          no_entry_flag='-bnoentry'
  12682        fi
  12683
  12684        # When large executables or shared objects are built, AIX ld can
  12685        # have problems creating the table of contents.  If linking a library
  12686        # or program results in "error TOC overflow" add -mminimal-toc to
  12687        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
  12688        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12689
  12690        archive_cmds_CXX=''
  12691        hardcode_direct_CXX=yes
  12692        hardcode_direct_absolute_CXX=yes
  12693        hardcode_libdir_separator_CXX=':'
  12694        link_all_deplibs_CXX=yes
  12695        file_list_spec_CXX='${wl}-f,'
  12696
  12697        if test "$GXX" = yes; then
  12698          case $host_os in aix4.[012]|aix4.[012].*)
  12699          # We only want to do this on AIX 4.2 and lower, the check
  12700          # below for broken collect2 doesn't work under 4.3+
  12701	  collect2name=`${CC} -print-prog-name=collect2`
  12702	  if test -f "$collect2name" &&
  12703	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  12704	  then
  12705	    # We have reworked collect2
  12706	    :
  12707	  else
  12708	    # We have old collect2
  12709	    hardcode_direct_CXX=unsupported
  12710	    # It fails to find uninstalled libraries when the uninstalled
  12711	    # path is not listed in the libpath.  Setting hardcode_minus_L
  12712	    # to unsupported forces relinking
  12713	    hardcode_minus_L_CXX=yes
  12714	    hardcode_libdir_flag_spec_CXX='-L$libdir'
  12715	    hardcode_libdir_separator_CXX=
  12716	  fi
  12717          esac
  12718          shared_flag='-shared'
  12719	  if test "$aix_use_runtimelinking" = yes; then
  12720	    shared_flag="$shared_flag "'${wl}-G'
  12721	  fi
  12722        else
  12723          # not using gcc
  12724          if test "$host_cpu" = ia64; then
  12725	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12726	  # chokes on -Wl,-G. The following line is correct:
  12727	  shared_flag='-G'
  12728          else
  12729	    if test "$aix_use_runtimelinking" = yes; then
  12730	      shared_flag='${wl}-G'
  12731	    else
  12732	      shared_flag='${wl}-bM:SRE'
  12733	    fi
  12734          fi
  12735        fi
  12736
  12737        export_dynamic_flag_spec_CXX='${wl}-bexpall'
  12738        # It seems that -bexpall does not export symbols beginning with
  12739        # underscore (_), so it is better to generate a list of symbols to
  12740	# export.
  12741        always_export_symbols_CXX=yes
  12742        if test "$aix_use_runtimelinking" = yes; then
  12743          # Warning - without using the other runtime loading flags (-brtl),
  12744          # -berok will link without error, but may produce a broken library.
  12745          allow_undefined_flag_CXX='-berok'
  12746          # Determine the default libpath from the value encoded in an empty
  12747          # executable.
  12748          if test "${lt_cv_aix_libpath+set}" = set; then
  12749  aix_libpath=$lt_cv_aix_libpath
  12750else
  12751  if ${lt_cv_aix_libpath__CXX+:} false; then :
  12752  $as_echo_n "(cached) " >&6
  12753else
  12754  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12755/* end confdefs.h.  */
  12756
  12757int
  12758main ()
  12759{
  12760
  12761  ;
  12762  return 0;
  12763}
  12764_ACEOF
  12765if ac_fn_cxx_try_link "$LINENO"; then :
  12766
  12767  lt_aix_libpath_sed='
  12768      /Import File Strings/,/^$/ {
  12769	  /^0/ {
  12770	      s/^0  *\([^ ]*\) *$/\1/
  12771	      p
  12772	  }
  12773      }'
  12774  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12775  # Check for a 64-bit object if we didn't find anything.
  12776  if test -z "$lt_cv_aix_libpath__CXX"; then
  12777    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12778  fi
  12779fi
  12780rm -f core conftest.err conftest.$ac_objext \
  12781    conftest$ac_exeext conftest.$ac_ext
  12782  if test -z "$lt_cv_aix_libpath__CXX"; then
  12783    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  12784  fi
  12785
  12786fi
  12787
  12788  aix_libpath=$lt_cv_aix_libpath__CXX
  12789fi
  12790
  12791          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  12792
  12793          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"
  12794        else
  12795          if test "$host_cpu" = ia64; then
  12796	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  12797	    allow_undefined_flag_CXX="-z nodefs"
  12798	    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"
  12799          else
  12800	    # Determine the default libpath from the value encoded in an
  12801	    # empty executable.
  12802	    if test "${lt_cv_aix_libpath+set}" = set; then
  12803  aix_libpath=$lt_cv_aix_libpath
  12804else
  12805  if ${lt_cv_aix_libpath__CXX+:} false; then :
  12806  $as_echo_n "(cached) " >&6
  12807else
  12808  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12809/* end confdefs.h.  */
  12810
  12811int
  12812main ()
  12813{
  12814
  12815  ;
  12816  return 0;
  12817}
  12818_ACEOF
  12819if ac_fn_cxx_try_link "$LINENO"; then :
  12820
  12821  lt_aix_libpath_sed='
  12822      /Import File Strings/,/^$/ {
  12823	  /^0/ {
  12824	      s/^0  *\([^ ]*\) *$/\1/
  12825	      p
  12826	  }
  12827      }'
  12828  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12829  # Check for a 64-bit object if we didn't find anything.
  12830  if test -z "$lt_cv_aix_libpath__CXX"; then
  12831    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12832  fi
  12833fi
  12834rm -f core conftest.err conftest.$ac_objext \
  12835    conftest$ac_exeext conftest.$ac_ext
  12836  if test -z "$lt_cv_aix_libpath__CXX"; then
  12837    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  12838  fi
  12839
  12840fi
  12841
  12842  aix_libpath=$lt_cv_aix_libpath__CXX
  12843fi
  12844
  12845	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  12846	    # Warning - without using the other run time loading flags,
  12847	    # -berok will link without error, but may produce a broken library.
  12848	    no_undefined_flag_CXX=' ${wl}-bernotok'
  12849	    allow_undefined_flag_CXX=' ${wl}-berok'
  12850	    if test "$with_gnu_ld" = yes; then
  12851	      # We only use this code for GNU lds that support --whole-archive.
  12852	      whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  12853	    else
  12854	      # Exported symbols can be pulled into shared objects from archives
  12855	      whole_archive_flag_spec_CXX='$convenience'
  12856	    fi
  12857	    archive_cmds_need_lc_CXX=yes
  12858	    # This is similar to how AIX traditionally builds its shared
  12859	    # libraries.
  12860	    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'
  12861          fi
  12862        fi
  12863        ;;
  12864
  12865      beos*)
  12866	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  12867	  allow_undefined_flag_CXX=unsupported
  12868	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  12869	  # support --undefined.  This deserves some investigation.  FIXME
  12870	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12871	else
  12872	  ld_shlibs_CXX=no
  12873	fi
  12874	;;
  12875
  12876      chorus*)
  12877        case $cc_basename in
  12878          *)
  12879	  # FIXME: insert proper C++ library support
  12880	  ld_shlibs_CXX=no
  12881	  ;;
  12882        esac
  12883        ;;
  12884
  12885      cygwin* | mingw* | pw32* | cegcc*)
  12886	case $GXX,$cc_basename in
  12887	,cl* | no,cl*)
  12888	  # Native MSVC
  12889	  # hardcode_libdir_flag_spec is actually meaningless, as there is
  12890	  # no search path for DLLs.
  12891	  hardcode_libdir_flag_spec_CXX=' '
  12892	  allow_undefined_flag_CXX=unsupported
  12893	  always_export_symbols_CXX=yes
  12894	  file_list_spec_CXX='@'
  12895	  # Tell ltmain to make .lib files, not .a files.
  12896	  libext=lib
  12897	  # Tell ltmain to make .dll files, not .so files.
  12898	  shrext_cmds=".dll"
  12899	  # FIXME: Setting linknames here is a bad hack.
  12900	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  12901	  archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  12902	      $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  12903	    else
  12904	      $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  12905	    fi~
  12906	    $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  12907	    linknames='
  12908	  # The linker will not automatically build a static lib if we build a DLL.
  12909	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  12910	  enable_shared_with_static_runtimes_CXX=yes
  12911	  # Don't use ranlib
  12912	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
  12913	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  12914	    lt_tool_outputfile="@TOOL_OUTPUT@"~
  12915	    case $lt_outputfile in
  12916	      *.exe|*.EXE) ;;
  12917	      *)
  12918		lt_outputfile="$lt_outputfile.exe"
  12919		lt_tool_outputfile="$lt_tool_outputfile.exe"
  12920		;;
  12921	    esac~
  12922	    func_to_tool_file "$lt_outputfile"~
  12923	    if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  12924	      $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  12925	      $RM "$lt_outputfile.manifest";
  12926	    fi'
  12927	  ;;
  12928	*)
  12929	  # g++
  12930	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  12931	  # as there is no search path for DLLs.
  12932	  hardcode_libdir_flag_spec_CXX='-L$libdir'
  12933	  export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  12934	  allow_undefined_flag_CXX=unsupported
  12935	  always_export_symbols_CXX=no
  12936	  enable_shared_with_static_runtimes_CXX=yes
  12937
  12938	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  12939	    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'
  12940	    # If the export-symbols file already is a .def file (1st line
  12941	    # is EXPORTS), use it as is; otherwise, prepend...
  12942	    archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  12943	      cp $export_symbols $output_objdir/$soname.def;
  12944	    else
  12945	      echo EXPORTS > $output_objdir/$soname.def;
  12946	      cat $export_symbols >> $output_objdir/$soname.def;
  12947	    fi~
  12948	    $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'
  12949	  else
  12950	    ld_shlibs_CXX=no
  12951	  fi
  12952	  ;;
  12953	esac
  12954	;;
  12955      darwin* | rhapsody*)
  12956
  12957
  12958  archive_cmds_need_lc_CXX=no
  12959  hardcode_direct_CXX=no
  12960  hardcode_automatic_CXX=yes
  12961  hardcode_shlibpath_var_CXX=unsupported
  12962  if test "$lt_cv_ld_force_load" = "yes"; then
  12963    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\"`'
  12964
  12965  else
  12966    whole_archive_flag_spec_CXX=''
  12967  fi
  12968  link_all_deplibs_CXX=yes
  12969  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  12970  case $cc_basename in
  12971     ifort*) _lt_dar_can_shared=yes ;;
  12972     *) _lt_dar_can_shared=$GCC ;;
  12973  esac
  12974  if test "$_lt_dar_can_shared" = "yes"; then
  12975    output_verbose_link_cmd=func_echo_all
  12976    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}"
  12977    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  12978    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}"
  12979    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}"
  12980       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  12981      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}"
  12982      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}"
  12983    fi
  12984
  12985  else
  12986  ld_shlibs_CXX=no
  12987  fi
  12988
  12989	;;
  12990
  12991      dgux*)
  12992        case $cc_basename in
  12993          ec++*)
  12994	    # FIXME: insert proper C++ library support
  12995	    ld_shlibs_CXX=no
  12996	    ;;
  12997          ghcx*)
  12998	    # Green Hills C++ Compiler
  12999	    # FIXME: insert proper C++ library support
  13000	    ld_shlibs_CXX=no
  13001	    ;;
  13002          *)
  13003	    # FIXME: insert proper C++ library support
  13004	    ld_shlibs_CXX=no
  13005	    ;;
  13006        esac
  13007        ;;
  13008
  13009      freebsd2.*)
  13010        # C++ shared libraries reported to be fairly broken before
  13011	# switch to ELF
  13012        ld_shlibs_CXX=no
  13013        ;;
  13014
  13015      freebsd-elf*)
  13016        archive_cmds_need_lc_CXX=no
  13017        ;;
  13018
  13019      freebsd* | dragonfly*)
  13020        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  13021        # conventions
  13022        ld_shlibs_CXX=yes
  13023        ;;
  13024
  13025      gnu*)
  13026        ;;
  13027
  13028      haiku*)
  13029        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13030        link_all_deplibs_CXX=yes
  13031        ;;
  13032
  13033      hpux9*)
  13034        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  13035        hardcode_libdir_separator_CXX=:
  13036        export_dynamic_flag_spec_CXX='${wl}-E'
  13037        hardcode_direct_CXX=yes
  13038        hardcode_minus_L_CXX=yes # Not in the search PATH,
  13039				             # but as the default
  13040				             # location of the library.
  13041
  13042        case $cc_basename in
  13043          CC*)
  13044            # FIXME: insert proper C++ library support
  13045            ld_shlibs_CXX=no
  13046            ;;
  13047          aCC*)
  13048            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'
  13049            # Commands to make compiler produce verbose output that lists
  13050            # what "hidden" libraries, object files and flags are used when
  13051            # linking a shared library.
  13052            #
  13053            # There doesn't appear to be a way to prevent this compiler from
  13054            # explicitly linking system object files so we need to strip them
  13055            # from the output so that they don't get included in the library
  13056            # dependencies.
  13057            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"'
  13058            ;;
  13059          *)
  13060            if test "$GXX" = yes; then
  13061              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'
  13062            else
  13063              # FIXME: insert proper C++ library support
  13064              ld_shlibs_CXX=no
  13065            fi
  13066            ;;
  13067        esac
  13068        ;;
  13069
  13070      hpux10*|hpux11*)
  13071        if test $with_gnu_ld = no; then
  13072	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  13073	  hardcode_libdir_separator_CXX=:
  13074
  13075          case $host_cpu in
  13076            hppa*64*|ia64*)
  13077              ;;
  13078            *)
  13079	      export_dynamic_flag_spec_CXX='${wl}-E'
  13080              ;;
  13081          esac
  13082        fi
  13083        case $host_cpu in
  13084          hppa*64*|ia64*)
  13085            hardcode_direct_CXX=no
  13086            hardcode_shlibpath_var_CXX=no
  13087            ;;
  13088          *)
  13089            hardcode_direct_CXX=yes
  13090            hardcode_direct_absolute_CXX=yes
  13091            hardcode_minus_L_CXX=yes # Not in the search PATH,
  13092					         # but as the default
  13093					         # location of the library.
  13094            ;;
  13095        esac
  13096
  13097        case $cc_basename in
  13098          CC*)
  13099	    # FIXME: insert proper C++ library support
  13100	    ld_shlibs_CXX=no
  13101	    ;;
  13102          aCC*)
  13103	    case $host_cpu in
  13104	      hppa*64*)
  13105	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13106	        ;;
  13107	      ia64*)
  13108	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13109	        ;;
  13110	      *)
  13111	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13112	        ;;
  13113	    esac
  13114	    # Commands to make compiler produce verbose output that lists
  13115	    # what "hidden" libraries, object files and flags are used when
  13116	    # linking a shared library.
  13117	    #
  13118	    # There doesn't appear to be a way to prevent this compiler from
  13119	    # explicitly linking system object files so we need to strip them
  13120	    # from the output so that they don't get included in the library
  13121	    # dependencies.
  13122	    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"'
  13123	    ;;
  13124          *)
  13125	    if test "$GXX" = yes; then
  13126	      if test $with_gnu_ld = no; then
  13127	        case $host_cpu in
  13128	          hppa*64*)
  13129	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13130	            ;;
  13131	          ia64*)
  13132	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13133	            ;;
  13134	          *)
  13135	            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'
  13136	            ;;
  13137	        esac
  13138	      fi
  13139	    else
  13140	      # FIXME: insert proper C++ library support
  13141	      ld_shlibs_CXX=no
  13142	    fi
  13143	    ;;
  13144        esac
  13145        ;;
  13146
  13147      interix[3-9]*)
  13148	hardcode_direct_CXX=no
  13149	hardcode_shlibpath_var_CXX=no
  13150	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  13151	export_dynamic_flag_spec_CXX='${wl}-E'
  13152	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  13153	# Instead, shared libraries are loaded at an image base (0x10000000 by
  13154	# default) and relocated if they conflict, which is a slow very memory
  13155	# consuming and fragmenting process.  To avoid this, we pick a random,
  13156	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  13157	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
  13158	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'
  13159	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'
  13160	;;
  13161      irix5* | irix6*)
  13162        case $cc_basename in
  13163          CC*)
  13164	    # SGI C++
  13165	    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'
  13166
  13167	    # Archives containing C++ object files must be created using
  13168	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
  13169	    # necessary to make sure instantiated templates are included
  13170	    # in the archive.
  13171	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  13172	    ;;
  13173          *)
  13174	    if test "$GXX" = yes; then
  13175	      if test "$with_gnu_ld" = no; then
  13176	        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'
  13177	      else
  13178	        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'
  13179	      fi
  13180	    fi
  13181	    link_all_deplibs_CXX=yes
  13182	    ;;
  13183        esac
  13184        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  13185        hardcode_libdir_separator_CXX=:
  13186        inherit_rpath_CXX=yes
  13187        ;;
  13188
  13189      linux* | k*bsd*-gnu | kopensolaris*-gnu)
  13190        case $cc_basename in
  13191          KCC*)
  13192	    # Kuck and Associates, Inc. (KAI) C++ Compiler
  13193
  13194	    # KCC will only create a shared library if the output file
  13195	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13196	    # to its proper name (with version) after linking.
  13197	    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'
  13198	    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'
  13199	    # Commands to make compiler produce verbose output that lists
  13200	    # what "hidden" libraries, object files and flags are used when
  13201	    # linking a shared library.
  13202	    #
  13203	    # There doesn't appear to be a way to prevent this compiler from
  13204	    # explicitly linking system object files so we need to strip them
  13205	    # from the output so that they don't get included in the library
  13206	    # dependencies.
  13207	    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"'
  13208
  13209	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  13210	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  13211
  13212	    # Archives containing C++ object files must be created using
  13213	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  13214	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  13215	    ;;
  13216	  icpc* | ecpc* )
  13217	    # Intel C++
  13218	    with_gnu_ld=yes
  13219	    # version 8.0 and above of icpc choke on multiply defined symbols
  13220	    # if we add $predep_objects and $postdep_objects, however 7.1 and
  13221	    # earlier do not add the objects themselves.
  13222	    case `$CC -V 2>&1` in
  13223	      *"Version 7."*)
  13224	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13225		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'
  13226		;;
  13227	      *)  # Version 8.0 or newer
  13228	        tmp_idyn=
  13229	        case $host_cpu in
  13230		  ia64*) tmp_idyn=' -i_dynamic';;
  13231		esac
  13232	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13233		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'
  13234		;;
  13235	    esac
  13236	    archive_cmds_need_lc_CXX=no
  13237	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  13238	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  13239	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  13240	    ;;
  13241          pgCC* | pgcpp*)
  13242            # Portland Group C++ compiler
  13243	    case `$CC -V` in
  13244	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  13245	      prelink_cmds_CXX='tpldir=Template.dir~
  13246		rm -rf $tpldir~
  13247		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  13248		compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  13249	      old_archive_cmds_CXX='tpldir=Template.dir~
  13250		rm -rf $tpldir~
  13251		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  13252		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  13253		$RANLIB $oldlib'
  13254	      archive_cmds_CXX='tpldir=Template.dir~
  13255		rm -rf $tpldir~
  13256		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13257		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  13258	      archive_expsym_cmds_CXX='tpldir=Template.dir~
  13259		rm -rf $tpldir~
  13260		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13261		$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'
  13262	      ;;
  13263	    *) # Version 6 and above use weak symbols
  13264	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  13265	      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'
  13266	      ;;
  13267	    esac
  13268
  13269	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  13270	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  13271	    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'
  13272            ;;
  13273	  cxx*)
  13274	    # Compaq C++
  13275	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13276	    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'
  13277
  13278	    runpath_var=LD_RUN_PATH
  13279	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13280	    hardcode_libdir_separator_CXX=:
  13281
  13282	    # Commands to make compiler produce verbose output that lists
  13283	    # what "hidden" libraries, object files and flags are used when
  13284	    # linking a shared library.
  13285	    #
  13286	    # There doesn't appear to be a way to prevent this compiler from
  13287	    # explicitly linking system object files so we need to strip them
  13288	    # from the output so that they don't get included in the library
  13289	    # dependencies.
  13290	    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'
  13291	    ;;
  13292	  xl* | mpixl* | bgxl*)
  13293	    # IBM XL 8.0 on PPC, with GNU ld
  13294	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  13295	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  13296	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13297	    if test "x$supports_anon_versioning" = xyes; then
  13298	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  13299		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13300		echo "local: *; };" >> $output_objdir/$libname.ver~
  13301		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  13302	    fi
  13303	    ;;
  13304	  *)
  13305	    case `$CC -V 2>&1 | sed 5q` in
  13306	    *Sun\ C*)
  13307	      # Sun C++ 5.9
  13308	      no_undefined_flag_CXX=' -zdefs'
  13309	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13310	      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'
  13311	      hardcode_libdir_flag_spec_CXX='-R$libdir'
  13312	      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'
  13313	      compiler_needs_object_CXX=yes
  13314
  13315	      # Not sure whether something based on
  13316	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  13317	      # would be better.
  13318	      output_verbose_link_cmd='func_echo_all'
  13319
  13320	      # Archives containing C++ object files must be created using
  13321	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
  13322	      # necessary to make sure instantiated templates are included
  13323	      # in the archive.
  13324	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13325	      ;;
  13326	    esac
  13327	    ;;
  13328	esac
  13329	;;
  13330
  13331      lynxos*)
  13332        # FIXME: insert proper C++ library support
  13333	ld_shlibs_CXX=no
  13334	;;
  13335
  13336      m88k*)
  13337        # FIXME: insert proper C++ library support
  13338        ld_shlibs_CXX=no
  13339	;;
  13340
  13341      mvs*)
  13342        case $cc_basename in
  13343          cxx*)
  13344	    # FIXME: insert proper C++ library support
  13345	    ld_shlibs_CXX=no
  13346	    ;;
  13347	  *)
  13348	    # FIXME: insert proper C++ library support
  13349	    ld_shlibs_CXX=no
  13350	    ;;
  13351	esac
  13352	;;
  13353
  13354      netbsd*)
  13355        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13356	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  13357	  wlarc=
  13358	  hardcode_libdir_flag_spec_CXX='-R$libdir'
  13359	  hardcode_direct_CXX=yes
  13360	  hardcode_shlibpath_var_CXX=no
  13361	fi
  13362	# Workaround some broken pre-1.5 toolchains
  13363	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  13364	;;
  13365
  13366      *nto* | *qnx*)
  13367        ld_shlibs_CXX=yes
  13368	;;
  13369
  13370      openbsd2*)
  13371        # C++ shared libraries are fairly broken
  13372	ld_shlibs_CXX=no
  13373	;;
  13374
  13375      openbsd*)
  13376	if test -f /usr/libexec/ld.so; then
  13377	  hardcode_direct_CXX=yes
  13378	  hardcode_shlibpath_var_CXX=no
  13379	  hardcode_direct_absolute_CXX=yes
  13380	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  13381	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  13382	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13383	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  13384	    export_dynamic_flag_spec_CXX='${wl}-E'
  13385	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  13386	  fi
  13387	  output_verbose_link_cmd=func_echo_all
  13388	else
  13389	  ld_shlibs_CXX=no
  13390	fi
  13391	;;
  13392
  13393      osf3* | osf4* | osf5*)
  13394        case $cc_basename in
  13395          KCC*)
  13396	    # Kuck and Associates, Inc. (KAI) C++ Compiler
  13397
  13398	    # KCC will only create a shared library if the output file
  13399	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13400	    # to its proper name (with version) after linking.
  13401	    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'
  13402
  13403	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  13404	    hardcode_libdir_separator_CXX=:
  13405
  13406	    # Archives containing C++ object files must be created using
  13407	    # the KAI C++ compiler.
  13408	    case $host in
  13409	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  13410	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  13411	    esac
  13412	    ;;
  13413          RCC*)
  13414	    # Rational C++ 2.4.1
  13415	    # FIXME: insert proper C++ library support
  13416	    ld_shlibs_CXX=no
  13417	    ;;
  13418          cxx*)
  13419	    case $host in
  13420	      osf3*)
  13421	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  13422	        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'
  13423	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  13424		;;
  13425	      *)
  13426	        allow_undefined_flag_CXX=' -expect_unresolved \*'
  13427	        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'
  13428	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  13429	          echo "-hidden">> $lib.exp~
  13430	          $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~
  13431	          $RM $lib.exp'
  13432	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13433		;;
  13434	    esac
  13435
  13436	    hardcode_libdir_separator_CXX=:
  13437
  13438	    # Commands to make compiler produce verbose output that lists
  13439	    # what "hidden" libraries, object files and flags are used when
  13440	    # linking a shared library.
  13441	    #
  13442	    # There doesn't appear to be a way to prevent this compiler from
  13443	    # explicitly linking system object files so we need to strip them
  13444	    # from the output so that they don't get included in the library
  13445	    # dependencies.
  13446	    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"'
  13447	    ;;
  13448	  *)
  13449	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  13450	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  13451	      case $host in
  13452	        osf3*)
  13453	          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'
  13454		  ;;
  13455	        *)
  13456	          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'
  13457		  ;;
  13458	      esac
  13459
  13460	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  13461	      hardcode_libdir_separator_CXX=:
  13462
  13463	      # Commands to make compiler produce verbose output that lists
  13464	      # what "hidden" libraries, object files and flags are used when
  13465	      # linking a shared library.
  13466	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13467
  13468	    else
  13469	      # FIXME: insert proper C++ library support
  13470	      ld_shlibs_CXX=no
  13471	    fi
  13472	    ;;
  13473        esac
  13474        ;;
  13475
  13476      psos*)
  13477        # FIXME: insert proper C++ library support
  13478        ld_shlibs_CXX=no
  13479        ;;
  13480
  13481      sunos4*)
  13482        case $cc_basename in
  13483          CC*)
  13484	    # Sun C++ 4.x
  13485	    # FIXME: insert proper C++ library support
  13486	    ld_shlibs_CXX=no
  13487	    ;;
  13488          lcc*)
  13489	    # Lucid
  13490	    # FIXME: insert proper C++ library support
  13491	    ld_shlibs_CXX=no
  13492	    ;;
  13493          *)
  13494	    # FIXME: insert proper C++ library support
  13495	    ld_shlibs_CXX=no
  13496	    ;;
  13497        esac
  13498        ;;
  13499
  13500      solaris*)
  13501        case $cc_basename in
  13502          CC* | sunCC*)
  13503	    # Sun C++ 4.2, 5.x and Centerline C++
  13504            archive_cmds_need_lc_CXX=yes
  13505	    no_undefined_flag_CXX=' -zdefs'
  13506	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13507	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13508	      $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'
  13509
  13510	    hardcode_libdir_flag_spec_CXX='-R$libdir'
  13511	    hardcode_shlibpath_var_CXX=no
  13512	    case $host_os in
  13513	      solaris2.[0-5] | solaris2.[0-5].*) ;;
  13514	      *)
  13515		# The compiler driver will combine and reorder linker options,
  13516		# but understands `-z linker_flag'.
  13517	        # Supported since Solaris 2.6 (maybe 2.5.1?)
  13518		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  13519	        ;;
  13520	    esac
  13521	    link_all_deplibs_CXX=yes
  13522
  13523	    output_verbose_link_cmd='func_echo_all'
  13524
  13525	    # Archives containing C++ object files must be created using
  13526	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
  13527	    # necessary to make sure instantiated templates are included
  13528	    # in the archive.
  13529	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13530	    ;;
  13531          gcx*)
  13532	    # Green Hills C++ Compiler
  13533	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  13534
  13535	    # The C++ compiler must be used to create the archive.
  13536	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  13537	    ;;
  13538          *)
  13539	    # GNU C++ compiler with Solaris linker
  13540	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  13541	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  13542	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  13543	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  13544	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13545		  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  13546
  13547	        # Commands to make compiler produce verbose output that lists
  13548	        # what "hidden" libraries, object files and flags are used when
  13549	        # linking a shared library.
  13550	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13551	      else
  13552	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
  13553	        # platform.
  13554	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  13555	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13556		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  13557
  13558	        # Commands to make compiler produce verbose output that lists
  13559	        # what "hidden" libraries, object files and flags are used when
  13560	        # linking a shared library.
  13561	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13562	      fi
  13563
  13564	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  13565	      case $host_os in
  13566		solaris2.[0-5] | solaris2.[0-5].*) ;;
  13567		*)
  13568		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  13569		  ;;
  13570	      esac
  13571	    fi
  13572	    ;;
  13573        esac
  13574        ;;
  13575
  13576    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  13577      no_undefined_flag_CXX='${wl}-z,text'
  13578      archive_cmds_need_lc_CXX=no
  13579      hardcode_shlibpath_var_CXX=no
  13580      runpath_var='LD_RUN_PATH'
  13581
  13582      case $cc_basename in
  13583        CC*)
  13584	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13585	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13586	  ;;
  13587	*)
  13588	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13589	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13590	  ;;
  13591      esac
  13592      ;;
  13593
  13594      sysv5* | sco3.2v5* | sco5v6*)
  13595	# Note: We can NOT use -z defs as we might desire, because we do not
  13596	# link with -lc, and that would cause any symbols used from libc to
  13597	# always be unresolved, which means just about no library would
  13598	# ever link correctly.  If we're not using GNU ld we use -z text
  13599	# though, which does catch some bad symbols but isn't as heavy-handed
  13600	# as -z defs.
  13601	no_undefined_flag_CXX='${wl}-z,text'
  13602	allow_undefined_flag_CXX='${wl}-z,nodefs'
  13603	archive_cmds_need_lc_CXX=no
  13604	hardcode_shlibpath_var_CXX=no
  13605	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  13606	hardcode_libdir_separator_CXX=':'
  13607	link_all_deplibs_CXX=yes
  13608	export_dynamic_flag_spec_CXX='${wl}-Bexport'
  13609	runpath_var='LD_RUN_PATH'
  13610
  13611	case $cc_basename in
  13612          CC*)
  13613	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13614	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13615	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  13616	      '"$old_archive_cmds_CXX"
  13617	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  13618	      '"$reload_cmds_CXX"
  13619	    ;;
  13620	  *)
  13621	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13622	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13623	    ;;
  13624	esac
  13625      ;;
  13626
  13627      tandem*)
  13628        case $cc_basename in
  13629          NCC*)
  13630	    # NonStop-UX NCC 3.20
  13631	    # FIXME: insert proper C++ library support
  13632	    ld_shlibs_CXX=no
  13633	    ;;
  13634          *)
  13635	    # FIXME: insert proper C++ library support
  13636	    ld_shlibs_CXX=no
  13637	    ;;
  13638        esac
  13639        ;;
  13640
  13641      vxworks*)
  13642        # FIXME: insert proper C++ library support
  13643        ld_shlibs_CXX=no
  13644        ;;
  13645
  13646      *)
  13647        # FIXME: insert proper C++ library support
  13648        ld_shlibs_CXX=no
  13649        ;;
  13650    esac
  13651
  13652    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  13653$as_echo "$ld_shlibs_CXX" >&6; }
  13654    test "$ld_shlibs_CXX" = no && can_build_shared=no
  13655
  13656    GCC_CXX="$GXX"
  13657    LD_CXX="$LD"
  13658
  13659    ## CAVEAT EMPTOR:
  13660    ## There is no encapsulation within the following macros, do not change
  13661    ## the running order or otherwise move them around unless you know exactly
  13662    ## what you are doing...
  13663    # Dependencies to place before and after the object being linked:
  13664predep_objects_CXX=
  13665postdep_objects_CXX=
  13666predeps_CXX=
  13667postdeps_CXX=
  13668compiler_lib_search_path_CXX=
  13669
  13670cat > conftest.$ac_ext <<_LT_EOF
  13671class Foo
  13672{
  13673public:
  13674  Foo (void) { a = 0; }
  13675private:
  13676  int a;
  13677};
  13678_LT_EOF
  13679
  13680
  13681_lt_libdeps_save_CFLAGS=$CFLAGS
  13682case "$CC $CFLAGS " in #(
  13683*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  13684*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  13685*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  13686esac
  13687
  13688if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13689  (eval $ac_compile) 2>&5
  13690  ac_status=$?
  13691  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13692  test $ac_status = 0; }; then
  13693  # Parse the compiler output and extract the necessary
  13694  # objects, libraries and library flags.
  13695
  13696  # Sentinel used to keep track of whether or not we are before
  13697  # the conftest object file.
  13698  pre_test_object_deps_done=no
  13699
  13700  for p in `eval "$output_verbose_link_cmd"`; do
  13701    case ${prev}${p} in
  13702
  13703    -L* | -R* | -l*)
  13704       # Some compilers place space between "-{L,R}" and the path.
  13705       # Remove the space.
  13706       if test $p = "-L" ||
  13707          test $p = "-R"; then
  13708	 prev=$p
  13709	 continue
  13710       fi
  13711
  13712       # Expand the sysroot to ease extracting the directories later.
  13713       if test -z "$prev"; then
  13714         case $p in
  13715         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  13716         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  13717         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  13718         esac
  13719       fi
  13720       case $p in
  13721       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  13722       esac
  13723       if test "$pre_test_object_deps_done" = no; then
  13724	 case ${prev} in
  13725	 -L | -R)
  13726	   # Internal compiler library paths should come after those
  13727	   # provided the user.  The postdeps already come after the
  13728	   # user supplied libs so there is no need to process them.
  13729	   if test -z "$compiler_lib_search_path_CXX"; then
  13730	     compiler_lib_search_path_CXX="${prev}${p}"
  13731	   else
  13732	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  13733	   fi
  13734	   ;;
  13735	 # The "-l" case would never come before the object being
  13736	 # linked, so don't bother handling this case.
  13737	 esac
  13738       else
  13739	 if test -z "$postdeps_CXX"; then
  13740	   postdeps_CXX="${prev}${p}"
  13741	 else
  13742	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  13743	 fi
  13744       fi
  13745       prev=
  13746       ;;
  13747
  13748    *.lto.$objext) ;; # Ignore GCC LTO objects
  13749    *.$objext)
  13750       # This assumes that the test object file only shows up
  13751       # once in the compiler output.
  13752       if test "$p" = "conftest.$objext"; then
  13753	 pre_test_object_deps_done=yes
  13754	 continue
  13755       fi
  13756
  13757       if test "$pre_test_object_deps_done" = no; then
  13758	 if test -z "$predep_objects_CXX"; then
  13759	   predep_objects_CXX="$p"
  13760	 else
  13761	   predep_objects_CXX="$predep_objects_CXX $p"
  13762	 fi
  13763       else
  13764	 if test -z "$postdep_objects_CXX"; then
  13765	   postdep_objects_CXX="$p"
  13766	 else
  13767	   postdep_objects_CXX="$postdep_objects_CXX $p"
  13768	 fi
  13769       fi
  13770       ;;
  13771
  13772    *) ;; # Ignore the rest.
  13773
  13774    esac
  13775  done
  13776
  13777  # Clean up.
  13778  rm -f a.out a.exe
  13779else
  13780  echo "libtool.m4: error: problem compiling CXX test program"
  13781fi
  13782
  13783$RM -f confest.$objext
  13784CFLAGS=$_lt_libdeps_save_CFLAGS
  13785
  13786# PORTME: override above test on systems where it is broken
  13787case $host_os in
  13788interix[3-9]*)
  13789  # Interix 3.5 installs completely hosed .la files for C++, so rather than
  13790  # hack all around it, let's just trust "g++" to DTRT.
  13791  predep_objects_CXX=
  13792  postdep_objects_CXX=
  13793  postdeps_CXX=
  13794  ;;
  13795
  13796linux*)
  13797  case `$CC -V 2>&1 | sed 5q` in
  13798  *Sun\ C*)
  13799    # Sun C++ 5.9
  13800
  13801    # The more standards-conforming stlport4 library is
  13802    # incompatible with the Cstd library. Avoid specifying
  13803    # it if it's in CXXFLAGS. Ignore libCrun as
  13804    # -library=stlport4 depends on it.
  13805    case " $CXX $CXXFLAGS " in
  13806    *" -library=stlport4 "*)
  13807      solaris_use_stlport4=yes
  13808      ;;
  13809    esac
  13810
  13811    if test "$solaris_use_stlport4" != yes; then
  13812      postdeps_CXX='-library=Cstd -library=Crun'
  13813    fi
  13814    ;;
  13815  esac
  13816  ;;
  13817
  13818solaris*)
  13819  case $cc_basename in
  13820  CC* | sunCC*)
  13821    # The more standards-conforming stlport4 library is
  13822    # incompatible with the Cstd library. Avoid specifying
  13823    # it if it's in CXXFLAGS. Ignore libCrun as
  13824    # -library=stlport4 depends on it.
  13825    case " $CXX $CXXFLAGS " in
  13826    *" -library=stlport4 "*)
  13827      solaris_use_stlport4=yes
  13828      ;;
  13829    esac
  13830
  13831    # Adding this requires a known-good setup of shared libraries for
  13832    # Sun compiler versions before 5.6, else PIC objects from an old
  13833    # archive will be linked into the output, leading to subtle bugs.
  13834    if test "$solaris_use_stlport4" != yes; then
  13835      postdeps_CXX='-library=Cstd -library=Crun'
  13836    fi
  13837    ;;
  13838  esac
  13839  ;;
  13840esac
  13841
  13842
  13843case " $postdeps_CXX " in
  13844*" -lc "*) archive_cmds_need_lc_CXX=no ;;
  13845esac
  13846 compiler_lib_search_dirs_CXX=
  13847if test -n "${compiler_lib_search_path_CXX}"; then
  13848 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  13849fi
  13850
  13851
  13852
  13853
  13854
  13855
  13856
  13857
  13858
  13859
  13860
  13861
  13862
  13863
  13864
  13865
  13866
  13867
  13868
  13869
  13870
  13871
  13872
  13873
  13874
  13875
  13876
  13877
  13878
  13879
  13880
  13881    lt_prog_compiler_wl_CXX=
  13882lt_prog_compiler_pic_CXX=
  13883lt_prog_compiler_static_CXX=
  13884
  13885
  13886  # C++ specific cases for pic, static, wl, etc.
  13887  if test "$GXX" = yes; then
  13888    lt_prog_compiler_wl_CXX='-Wl,'
  13889    lt_prog_compiler_static_CXX='-static'
  13890
  13891    case $host_os in
  13892    aix*)
  13893      # All AIX code is PIC.
  13894      if test "$host_cpu" = ia64; then
  13895	# AIX 5 now supports IA64 processor
  13896	lt_prog_compiler_static_CXX='-Bstatic'
  13897      fi
  13898      ;;
  13899
  13900    amigaos*)
  13901      case $host_cpu in
  13902      powerpc)
  13903            # see comment about AmigaOS4 .so support
  13904            lt_prog_compiler_pic_CXX='-fPIC'
  13905        ;;
  13906      m68k)
  13907            # FIXME: we need at least 68020 code to build shared libraries, but
  13908            # adding the `-m68020' flag to GCC prevents building anything better,
  13909            # like `-m68040'.
  13910            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  13911        ;;
  13912      esac
  13913      ;;
  13914
  13915    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  13916      # PIC is the default for these OSes.
  13917      ;;
  13918    mingw* | cygwin* | os2* | pw32* | cegcc*)
  13919      # This hack is so that the source file can tell whether it is being
  13920      # built for inclusion in a dll (and should export symbols for example).
  13921      # Although the cygwin gcc ignores -fPIC, still need this for old-style
  13922      # (--disable-auto-import) libraries
  13923      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13924      ;;
  13925    darwin* | rhapsody*)
  13926      # PIC is the default on this platform
  13927      # Common symbols not allowed in MH_DYLIB files
  13928      lt_prog_compiler_pic_CXX='-fno-common'
  13929      ;;
  13930    *djgpp*)
  13931      # DJGPP does not support shared libraries at all
  13932      lt_prog_compiler_pic_CXX=
  13933      ;;
  13934    haiku*)
  13935      # PIC is the default for Haiku.
  13936      # The "-static" flag exists, but is broken.
  13937      lt_prog_compiler_static_CXX=
  13938      ;;
  13939    interix[3-9]*)
  13940      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  13941      # Instead, we relocate shared libraries at runtime.
  13942      ;;
  13943    sysv4*MP*)
  13944      if test -d /usr/nec; then
  13945	lt_prog_compiler_pic_CXX=-Kconform_pic
  13946      fi
  13947      ;;
  13948    hpux*)
  13949      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  13950      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
  13951      # sets the default TLS model and affects inlining.
  13952      case $host_cpu in
  13953      hppa*64*)
  13954	;;
  13955      *)
  13956	lt_prog_compiler_pic_CXX='-fPIC'
  13957	;;
  13958      esac
  13959      ;;
  13960    *qnx* | *nto*)
  13961      # QNX uses GNU C++, but need to define -shared option too, otherwise
  13962      # it will coredump.
  13963      lt_prog_compiler_pic_CXX='-fPIC -shared'
  13964      ;;
  13965    *)
  13966      lt_prog_compiler_pic_CXX='-fPIC'
  13967      ;;
  13968    esac
  13969  else
  13970    case $host_os in
  13971      aix[4-9]*)
  13972	# All AIX code is PIC.
  13973	if test "$host_cpu" = ia64; then
  13974	  # AIX 5 now supports IA64 processor
  13975	  lt_prog_compiler_static_CXX='-Bstatic'
  13976	else
  13977	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  13978	fi
  13979	;;
  13980      chorus*)
  13981	case $cc_basename in
  13982	cxch68*)
  13983	  # Green Hills C++ Compiler
  13984	  # _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"
  13985	  ;;
  13986	esac
  13987	;;
  13988      mingw* | cygwin* | os2* | pw32* | cegcc*)
  13989	# This hack is so that the source file can tell whether it is being
  13990	# built for inclusion in a dll (and should export symbols for example).
  13991	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13992	;;
  13993      dgux*)
  13994	case $cc_basename in
  13995	  ec++*)
  13996	    lt_prog_compiler_pic_CXX='-KPIC'
  13997	    ;;
  13998	  ghcx*)
  13999	    # Green Hills C++ Compiler
  14000	    lt_prog_compiler_pic_CXX='-pic'
  14001	    ;;
  14002	  *)
  14003	    ;;
  14004	esac
  14005	;;
  14006      freebsd* | dragonfly*)
  14007	# FreeBSD uses GNU C++
  14008	;;
  14009      hpux9* | hpux10* | hpux11*)
  14010	case $cc_basename in
  14011	  CC*)
  14012	    lt_prog_compiler_wl_CXX='-Wl,'
  14013	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  14014	    if test "$host_cpu" != ia64; then
  14015	      lt_prog_compiler_pic_CXX='+Z'
  14016	    fi
  14017	    ;;
  14018	  aCC*)
  14019	    lt_prog_compiler_wl_CXX='-Wl,'
  14020	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  14021	    case $host_cpu in
  14022	    hppa*64*|ia64*)
  14023	      # +Z the default
  14024	      ;;
  14025	    *)
  14026	      lt_prog_compiler_pic_CXX='+Z'
  14027	      ;;
  14028	    esac
  14029	    ;;
  14030	  *)
  14031	    ;;
  14032	esac
  14033	;;
  14034      interix*)
  14035	# This is c89, which is MS Visual C++ (no shared libs)
  14036	# Anyone wants to do a port?
  14037	;;
  14038      irix5* | irix6* | nonstopux*)
  14039	case $cc_basename in
  14040	  CC*)
  14041	    lt_prog_compiler_wl_CXX='-Wl,'
  14042	    lt_prog_compiler_static_CXX='-non_shared'
  14043	    # CC pic flag -KPIC is the default.
  14044	    ;;
  14045	  *)
  14046	    ;;
  14047	esac
  14048	;;
  14049      linux* | k*bsd*-gnu | kopensolaris*-gnu)
  14050	case $cc_basename in
  14051	  KCC*)
  14052	    # KAI C++ Compiler
  14053	    lt_prog_compiler_wl_CXX='--backend -Wl,'
  14054	    lt_prog_compiler_pic_CXX='-fPIC'
  14055	    ;;
  14056	  ecpc* )
  14057	    # old Intel C++ for x86_64 which still supported -KPIC.
  14058	    lt_prog_compiler_wl_CXX='-Wl,'
  14059	    lt_prog_compiler_pic_CXX='-KPIC'
  14060	    lt_prog_compiler_static_CXX='-static'
  14061	    ;;
  14062	  icpc* )
  14063	    # Intel C++, used to be incompatible with GCC.
  14064	    # ICC 10 doesn't accept -KPIC any more.
  14065	    lt_prog_compiler_wl_CXX='-Wl,'
  14066	    lt_prog_compiler_pic_CXX='-fPIC'
  14067	    lt_prog_compiler_static_CXX='-static'
  14068	    ;;
  14069	  pgCC* | pgcpp*)
  14070	    # Portland Group C++ compiler
  14071	    lt_prog_compiler_wl_CXX='-Wl,'
  14072	    lt_prog_compiler_pic_CXX='-fpic'
  14073	    lt_prog_compiler_static_CXX='-Bstatic'
  14074	    ;;
  14075	  cxx*)
  14076	    # Compaq C++
  14077	    # Make sure the PIC flag is empty.  It appears that all Alpha
  14078	    # Linux and Compaq Tru64 Unix objects are PIC.
  14079	    lt_prog_compiler_pic_CXX=
  14080	    lt_prog_compiler_static_CXX='-non_shared'
  14081	    ;;
  14082	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  14083	    # IBM XL 8.0, 9.0 on PPC and BlueGene
  14084	    lt_prog_compiler_wl_CXX='-Wl,'
  14085	    lt_prog_compiler_pic_CXX='-qpic'
  14086	    lt_prog_compiler_static_CXX='-qstaticlink'
  14087	    ;;
  14088	  *)
  14089	    case `$CC -V 2>&1 | sed 5q` in
  14090	    *Sun\ C*)
  14091	      # Sun C++ 5.9
  14092	      lt_prog_compiler_pic_CXX='-KPIC'
  14093	      lt_prog_compiler_static_CXX='-Bstatic'
  14094	      lt_prog_compiler_wl_CXX='-Qoption ld '
  14095	      ;;
  14096	    esac
  14097	    ;;
  14098	esac
  14099	;;
  14100      lynxos*)
  14101	;;
  14102      m88k*)
  14103	;;
  14104      mvs*)
  14105	case $cc_basename in
  14106	  cxx*)
  14107	    lt_prog_compiler_pic_CXX='-W c,exportall'
  14108	    ;;
  14109	  *)
  14110	    ;;
  14111	esac
  14112	;;
  14113      netbsd*)
  14114	;;
  14115      *qnx* | *nto*)
  14116        # QNX uses GNU C++, but need to define -shared option too, otherwise
  14117        # it will coredump.
  14118        lt_prog_compiler_pic_CXX='-fPIC -shared'
  14119        ;;
  14120      osf3* | osf4* | osf5*)
  14121	case $cc_basename in
  14122	  KCC*)
  14123	    lt_prog_compiler_wl_CXX='--backend -Wl,'
  14124	    ;;
  14125	  RCC*)
  14126	    # Rational C++ 2.4.1
  14127	    lt_prog_compiler_pic_CXX='-pic'
  14128	    ;;
  14129	  cxx*)
  14130	    # Digital/Compaq C++
  14131	    lt_prog_compiler_wl_CXX='-Wl,'
  14132	    # Make sure the PIC flag is empty.  It appears that all Alpha
  14133	    # Linux and Compaq Tru64 Unix objects are PIC.
  14134	    lt_prog_compiler_pic_CXX=
  14135	    lt_prog_compiler_static_CXX='-non_shared'
  14136	    ;;
  14137	  *)
  14138	    ;;
  14139	esac
  14140	;;
  14141      psos*)
  14142	;;
  14143      solaris*)
  14144	case $cc_basename in
  14145	  CC* | sunCC*)
  14146	    # Sun C++ 4.2, 5.x and Centerline C++
  14147	    lt_prog_compiler_pic_CXX='-KPIC'
  14148	    lt_prog_compiler_static_CXX='-Bstatic'
  14149	    lt_prog_compiler_wl_CXX='-Qoption ld '
  14150	    ;;
  14151	  gcx*)
  14152	    # Green Hills C++ Compiler
  14153	    lt_prog_compiler_pic_CXX='-PIC'
  14154	    ;;
  14155	  *)
  14156	    ;;
  14157	esac
  14158	;;
  14159      sunos4*)
  14160	case $cc_basename in
  14161	  CC*)
  14162	    # Sun C++ 4.x
  14163	    lt_prog_compiler_pic_CXX='-pic'
  14164	    lt_prog_compiler_static_CXX='-Bstatic'
  14165	    ;;
  14166	  lcc*)
  14167	    # Lucid
  14168	    lt_prog_compiler_pic_CXX='-pic'
  14169	    ;;
  14170	  *)
  14171	    ;;
  14172	esac
  14173	;;
  14174      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  14175	case $cc_basename in
  14176	  CC*)
  14177	    lt_prog_compiler_wl_CXX='-Wl,'
  14178	    lt_prog_compiler_pic_CXX='-KPIC'
  14179	    lt_prog_compiler_static_CXX='-Bstatic'
  14180	    ;;
  14181	esac
  14182	;;
  14183      tandem*)
  14184	case $cc_basename in
  14185	  NCC*)
  14186	    # NonStop-UX NCC 3.20
  14187	    lt_prog_compiler_pic_CXX='-KPIC'
  14188	    ;;
  14189	  *)
  14190	    ;;
  14191	esac
  14192	;;
  14193      vxworks*)
  14194	;;
  14195      *)
  14196	lt_prog_compiler_can_build_shared_CXX=no
  14197	;;
  14198    esac
  14199  fi
  14200
  14201case $host_os in
  14202  # For platforms which do not support PIC, -DPIC is meaningless:
  14203  *djgpp*)
  14204    lt_prog_compiler_pic_CXX=
  14205    ;;
  14206  *)
  14207    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  14208    ;;
  14209esac
  14210
  14211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  14212$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  14213if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  14214  $as_echo_n "(cached) " >&6
  14215else
  14216  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  14217fi
  14218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  14219$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  14220lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  14221
  14222#
  14223# Check to make sure the PIC flag actually works.
  14224#
  14225if test -n "$lt_prog_compiler_pic_CXX"; then
  14226  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  14227$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  14228if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  14229  $as_echo_n "(cached) " >&6
  14230else
  14231  lt_cv_prog_compiler_pic_works_CXX=no
  14232   ac_outfile=conftest.$ac_objext
  14233   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14234   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  14235   # Insert the option either (1) after the last *FLAGS variable, or
  14236   # (2) before a word containing "conftest.", or (3) at the end.
  14237   # Note that $ac_compile itself does not contain backslashes and begins
  14238   # with a dollar sign (not a hyphen), so the echo should work correctly.
  14239   # The option is referenced via a variable to avoid confusing sed.
  14240   lt_compile=`echo "$ac_compile" | $SED \
  14241   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14242   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14243   -e 's:$: $lt_compiler_flag:'`
  14244   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14245   (eval "$lt_compile" 2>conftest.err)
  14246   ac_status=$?
  14247   cat conftest.err >&5
  14248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14249   if (exit $ac_status) && test -s "$ac_outfile"; then
  14250     # The compiler can only warn and ignore the option if not recognized
  14251     # So say no if there are warnings other than the usual output.
  14252     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  14253     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14254     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14255       lt_cv_prog_compiler_pic_works_CXX=yes
  14256     fi
  14257   fi
  14258   $RM conftest*
  14259
  14260fi
  14261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  14262$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  14263
  14264if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  14265    case $lt_prog_compiler_pic_CXX in
  14266     "" | " "*) ;;
  14267     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  14268     esac
  14269else
  14270    lt_prog_compiler_pic_CXX=
  14271     lt_prog_compiler_can_build_shared_CXX=no
  14272fi
  14273
  14274fi
  14275
  14276
  14277
  14278
  14279
  14280#
  14281# Check to make sure the static flag actually works.
  14282#
  14283wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  14284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  14285$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  14286if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  14287  $as_echo_n "(cached) " >&6
  14288else
  14289  lt_cv_prog_compiler_static_works_CXX=no
  14290   save_LDFLAGS="$LDFLAGS"
  14291   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  14292   echo "$lt_simple_link_test_code" > conftest.$ac_ext
  14293   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  14294     # The linker can only warn and ignore the option if not recognized
  14295     # So say no if there are warnings
  14296     if test -s conftest.err; then
  14297       # Append any errors to the config.log.
  14298       cat conftest.err 1>&5
  14299       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  14300       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14301       if diff conftest.exp conftest.er2 >/dev/null; then
  14302         lt_cv_prog_compiler_static_works_CXX=yes
  14303       fi
  14304     else
  14305       lt_cv_prog_compiler_static_works_CXX=yes
  14306     fi
  14307   fi
  14308   $RM -r conftest*
  14309   LDFLAGS="$save_LDFLAGS"
  14310
  14311fi
  14312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  14313$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  14314
  14315if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  14316    :
  14317else
  14318    lt_prog_compiler_static_CXX=
  14319fi
  14320
  14321
  14322
  14323
  14324    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14325$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14326if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  14327  $as_echo_n "(cached) " >&6
  14328else
  14329  lt_cv_prog_compiler_c_o_CXX=no
  14330   $RM -r conftest 2>/dev/null
  14331   mkdir conftest
  14332   cd conftest
  14333   mkdir out
  14334   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14335
  14336   lt_compiler_flag="-o out/conftest2.$ac_objext"
  14337   # Insert the option either (1) after the last *FLAGS variable, or
  14338   # (2) before a word containing "conftest.", or (3) at the end.
  14339   # Note that $ac_compile itself does not contain backslashes and begins
  14340   # with a dollar sign (not a hyphen), so the echo should work correctly.
  14341   lt_compile=`echo "$ac_compile" | $SED \
  14342   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14343   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14344   -e 's:$: $lt_compiler_flag:'`
  14345   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14346   (eval "$lt_compile" 2>out/conftest.err)
  14347   ac_status=$?
  14348   cat out/conftest.err >&5
  14349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14350   if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14351   then
  14352     # The compiler can only warn and ignore the option if not recognized
  14353     # So say no if there are warnings
  14354     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14355     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14356     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14357       lt_cv_prog_compiler_c_o_CXX=yes
  14358     fi
  14359   fi
  14360   chmod u+w . 2>&5
  14361   $RM conftest*
  14362   # SGI C++ compiler will create directory out/ii_files/ for
  14363   # template instantiation
  14364   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14365   $RM out/* && rmdir out
  14366   cd ..
  14367   $RM -r conftest
  14368   $RM conftest*
  14369
  14370fi
  14371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14372$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14373
  14374
  14375
  14376    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14377$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14378if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  14379  $as_echo_n "(cached) " >&6
  14380else
  14381  lt_cv_prog_compiler_c_o_CXX=no
  14382   $RM -r conftest 2>/dev/null
  14383   mkdir conftest
  14384   cd conftest
  14385   mkdir out
  14386   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14387
  14388   lt_compiler_flag="-o out/conftest2.$ac_objext"
  14389   # Insert the option either (1) after the last *FLAGS variable, or
  14390   # (2) before a word containing "conftest.", or (3) at the end.
  14391   # Note that $ac_compile itself does not contain backslashes and begins
  14392   # with a dollar sign (not a hyphen), so the echo should work correctly.
  14393   lt_compile=`echo "$ac_compile" | $SED \
  14394   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14395   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14396   -e 's:$: $lt_compiler_flag:'`
  14397   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14398   (eval "$lt_compile" 2>out/conftest.err)
  14399   ac_status=$?
  14400   cat out/conftest.err >&5
  14401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14402   if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14403   then
  14404     # The compiler can only warn and ignore the option if not recognized
  14405     # So say no if there are warnings
  14406     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14407     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14408     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14409       lt_cv_prog_compiler_c_o_CXX=yes
  14410     fi
  14411   fi
  14412   chmod u+w . 2>&5
  14413   $RM conftest*
  14414   # SGI C++ compiler will create directory out/ii_files/ for
  14415   # template instantiation
  14416   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14417   $RM out/* && rmdir out
  14418   cd ..
  14419   $RM -r conftest
  14420   $RM conftest*
  14421
  14422fi
  14423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14424$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14425
  14426
  14427
  14428
  14429hard_links="nottested"
  14430if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  14431  # do not overwrite the value of need_locks provided by the user
  14432  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  14433$as_echo_n "checking if we can lock with hard links... " >&6; }
  14434  hard_links=yes
  14435  $RM conftest*
  14436  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14437  touch conftest.a
  14438  ln conftest.a conftest.b 2>&5 || hard_links=no
  14439  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14440  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  14441$as_echo "$hard_links" >&6; }
  14442  if test "$hard_links" = no; then
  14443    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  14444$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  14445    need_locks=warn
  14446  fi
  14447else
  14448  need_locks=no
  14449fi
  14450
  14451
  14452
  14453    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  14454$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  14455
  14456  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14457  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  14458  case $host_os in
  14459  aix[4-9]*)
  14460    # If we're using GNU nm, then we don't want the "-C" option.
  14461    # -C means demangle to AIX nm, but means don't demangle with GNU nm
  14462    # Also, AIX nm treats weak defined symbols like other global defined
  14463    # symbols, whereas GNU nm marks them as "W".
  14464    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  14465      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'
  14466    else
  14467      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'
  14468    fi
  14469    ;;
  14470  pw32*)
  14471    export_symbols_cmds_CXX="$ltdll_cmds"
  14472    ;;
  14473  cygwin* | mingw* | cegcc*)
  14474    case $cc_basename in
  14475    cl*)
  14476      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  14477      ;;
  14478    *)
  14479      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'
  14480      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  14481      ;;
  14482    esac
  14483    ;;
  14484  *)
  14485    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14486    ;;
  14487  esac
  14488
  14489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  14490$as_echo "$ld_shlibs_CXX" >&6; }
  14491test "$ld_shlibs_CXX" = no && can_build_shared=no
  14492
  14493with_gnu_ld_CXX=$with_gnu_ld
  14494
  14495
  14496
  14497
  14498
  14499
  14500#
  14501# Do we need to explicitly link libc?
  14502#
  14503case "x$archive_cmds_need_lc_CXX" in
  14504x|xyes)
  14505  # Assume -lc should be added
  14506  archive_cmds_need_lc_CXX=yes
  14507
  14508  if test "$enable_shared" = yes && test "$GCC" = yes; then
  14509    case $archive_cmds_CXX in
  14510    *'~'*)
  14511      # FIXME: we may have to deal with multi-command sequences.
  14512      ;;
  14513    '$CC '*)
  14514      # Test whether the compiler implicitly links with -lc since on some
  14515      # systems, -lgcc has to come before -lc. If gcc already passes -lc
  14516      # to ld, don't add -lc before -lgcc.
  14517      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  14518$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  14519if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  14520  $as_echo_n "(cached) " >&6
  14521else
  14522  $RM conftest*
  14523	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14524
  14525	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  14526  (eval $ac_compile) 2>&5
  14527  ac_status=$?
  14528  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14529  test $ac_status = 0; } 2>conftest.err; then
  14530	  soname=conftest
  14531	  lib=conftest
  14532	  libobjs=conftest.$ac_objext
  14533	  deplibs=
  14534	  wl=$lt_prog_compiler_wl_CXX
  14535	  pic_flag=$lt_prog_compiler_pic_CXX
  14536	  compiler_flags=-v
  14537	  linker_flags=-v
  14538	  verstring=
  14539	  output_objdir=.
  14540	  libname=conftest
  14541	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  14542	  allow_undefined_flag_CXX=
  14543	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  14544  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  14545  ac_status=$?
  14546  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14547  test $ac_status = 0; }
  14548	  then
  14549	    lt_cv_archive_cmds_need_lc_CXX=no
  14550	  else
  14551	    lt_cv_archive_cmds_need_lc_CXX=yes
  14552	  fi
  14553	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  14554	else
  14555	  cat conftest.err 1>&5
  14556	fi
  14557	$RM conftest*
  14558
  14559fi
  14560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  14561$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  14562      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  14563      ;;
  14564    esac
  14565  fi
  14566  ;;
  14567esac
  14568
  14569
  14570
  14571
  14572
  14573
  14574
  14575
  14576
  14577
  14578
  14579
  14580
  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    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  14631$as_echo_n "checking dynamic linker characteristics... " >&6; }
  14632
  14633library_names_spec=
  14634libname_spec='lib$name'
  14635soname_spec=
  14636shrext_cmds=".so"
  14637postinstall_cmds=
  14638postuninstall_cmds=
  14639finish_cmds=
  14640finish_eval=
  14641shlibpath_var=
  14642shlibpath_overrides_runpath=unknown
  14643version_type=none
  14644dynamic_linker="$host_os ld.so"
  14645sys_lib_dlsearch_path_spec="/lib /usr/lib"
  14646need_lib_prefix=unknown
  14647hardcode_into_libs=no
  14648
  14649# when you set need_version to no, make sure it does not cause -set_version
  14650# flags to be left without arguments
  14651need_version=unknown
  14652
  14653case $host_os in
  14654aix3*)
  14655  version_type=linux # correct to gnu/linux during the next big refactor
  14656  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  14657  shlibpath_var=LIBPATH
  14658
  14659  # AIX 3 has no versioning support, so we append a major version to the name.
  14660  soname_spec='${libname}${release}${shared_ext}$major'
  14661  ;;
  14662
  14663aix[4-9]*)
  14664  version_type=linux # correct to gnu/linux during the next big refactor
  14665  need_lib_prefix=no
  14666  need_version=no
  14667  hardcode_into_libs=yes
  14668  if test "$host_cpu" = ia64; then
  14669    # AIX 5 supports IA64
  14670    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  14671    shlibpath_var=LD_LIBRARY_PATH
  14672  else
  14673    # With GCC up to 2.95.x, collect2 would create an import file
  14674    # for dependence libraries.  The import file would start with
  14675    # the line `#! .'.  This would cause the generated library to
  14676    # depend on `.', always an invalid library.  This was fixed in
  14677    # development snapshots of GCC prior to 3.0.
  14678    case $host_os in
  14679      aix4 | aix4.[01] | aix4.[01].*)
  14680      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  14681	   echo ' yes '
  14682	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  14683	:
  14684      else
  14685	can_build_shared=no
  14686      fi
  14687      ;;
  14688    esac
  14689    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  14690    # soname into executable. Probably we can add versioning support to
  14691    # collect2, so additional links can be useful in future.
  14692    if test "$aix_use_runtimelinking" = yes; then
  14693      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  14694      # instead of lib<name>.a to let people know that these are not
  14695      # typical AIX shared libraries.
  14696      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14697    else
  14698      # We preserve .a as extension for shared libraries through AIX4.2
  14699      # and later when we are not doing run time linking.
  14700      library_names_spec='${libname}${release}.a $libname.a'
  14701      soname_spec='${libname}${release}${shared_ext}$major'
  14702    fi
  14703    shlibpath_var=LIBPATH
  14704  fi
  14705  ;;
  14706
  14707amigaos*)
  14708  case $host_cpu in
  14709  powerpc)
  14710    # Since July 2007 AmigaOS4 officially supports .so libraries.
  14711    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  14712    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14713    ;;
  14714  m68k)
  14715    library_names_spec='$libname.ixlibrary $libname.a'
  14716    # Create ${libname}_ixlibrary.a entries in /sys/libs.
  14717    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'
  14718    ;;
  14719  esac
  14720  ;;
  14721
  14722beos*)
  14723  library_names_spec='${libname}${shared_ext}'
  14724  dynamic_linker="$host_os ld.so"
  14725  shlibpath_var=LIBRARY_PATH
  14726  ;;
  14727
  14728bsdi[45]*)
  14729  version_type=linux # correct to gnu/linux during the next big refactor
  14730  need_version=no
  14731  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14732  soname_spec='${libname}${release}${shared_ext}$major'
  14733  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  14734  shlibpath_var=LD_LIBRARY_PATH
  14735  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  14736  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  14737  # the default ld.so.conf also contains /usr/contrib/lib and
  14738  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  14739  # libtool to hard-code these into programs
  14740  ;;
  14741
  14742cygwin* | mingw* | pw32* | cegcc*)
  14743  version_type=windows
  14744  shrext_cmds=".dll"
  14745  need_version=no
  14746  need_lib_prefix=no
  14747
  14748  case $GCC,$cc_basename in
  14749  yes,*)
  14750    # gcc
  14751    library_names_spec='$libname.dll.a'
  14752    # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14753    postinstall_cmds='base_file=`basename \${file}`~
  14754      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  14755      dldir=$destdir/`dirname \$dlpath`~
  14756      test -d \$dldir || mkdir -p \$dldir~
  14757      $install_prog $dir/$dlname \$dldir/$dlname~
  14758      chmod a+x \$dldir/$dlname~
  14759      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14760        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  14761      fi'
  14762    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14763      dlpath=$dir/\$dldll~
  14764       $RM \$dlpath'
  14765    shlibpath_overrides_runpath=yes
  14766
  14767    case $host_os in
  14768    cygwin*)
  14769      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  14770      #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  14771      soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  14772
  14773      ;;
  14774    mingw* | cegcc*)
  14775      # MinGW DLLs use traditional 'lib' prefix
  14776      #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  14777      soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  14778      ;;
  14779    pw32*)
  14780      # pw32 DLLs use 'pw' prefix rather than 'lib'
  14781      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  14782      ;;
  14783    esac
  14784    dynamic_linker='Win32 ld.exe'
  14785    ;;
  14786
  14787  *,cl*)
  14788    # Native MSVC
  14789    libname_spec='$name'
  14790    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  14791    library_names_spec='${libname}.dll.lib'
  14792
  14793    case $build_os in
  14794    mingw*)
  14795      sys_lib_search_path_spec=
  14796      lt_save_ifs=$IFS
  14797      IFS=';'
  14798      for lt_path in $LIB
  14799      do
  14800        IFS=$lt_save_ifs
  14801        # Let DOS variable expansion print the short 8.3 style file name.
  14802        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  14803        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  14804      done
  14805      IFS=$lt_save_ifs
  14806      # Convert to MSYS style.
  14807      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  14808      ;;
  14809    cygwin*)
  14810      # Convert to unix form, then to dos form, then back to unix form
  14811      # but this time dos style (no spaces!) so that the unix form looks
  14812      # like /cygdrive/c/PROGRA~1:/cygdr...
  14813      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  14814      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  14815      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14816      ;;
  14817    *)
  14818      sys_lib_search_path_spec="$LIB"
  14819      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  14820        # It is most probably a Windows format PATH.
  14821        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14822      else
  14823        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14824      fi
  14825      # FIXME: find the short name or the path components, as spaces are
  14826      # common. (e.g. "Program Files" -> "PROGRA~1")
  14827      ;;
  14828    esac
  14829
  14830    # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14831    postinstall_cmds='base_file=`basename \${file}`~
  14832      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  14833      dldir=$destdir/`dirname \$dlpath`~
  14834      test -d \$dldir || mkdir -p \$dldir~
  14835      $install_prog $dir/$dlname \$dldir/$dlname'
  14836    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14837      dlpath=$dir/\$dldll~
  14838       $RM \$dlpath'
  14839    shlibpath_overrides_runpath=yes
  14840    dynamic_linker='Win32 link.exe'
  14841    ;;
  14842
  14843  *)
  14844    # Assume MSVC wrapper
  14845    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  14846    dynamic_linker='Win32 ld.exe'
  14847    ;;
  14848  esac
  14849  # FIXME: first we should search . and the directory the executable is in
  14850  shlibpath_var=PATH
  14851  ;;
  14852
  14853darwin* | rhapsody*)
  14854  dynamic_linker="$host_os dyld"
  14855  version_type=darwin
  14856  need_lib_prefix=no
  14857  need_version=no
  14858  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  14859  soname_spec='${libname}${release}${major}$shared_ext'
  14860  shlibpath_overrides_runpath=yes
  14861  shlibpath_var=DYLD_LIBRARY_PATH
  14862  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  14863
  14864  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  14865  ;;
  14866
  14867dgux*)
  14868  version_type=linux # correct to gnu/linux during the next big refactor
  14869  need_lib_prefix=no
  14870  need_version=no
  14871  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  14872  soname_spec='${libname}${release}${shared_ext}$major'
  14873  shlibpath_var=LD_LIBRARY_PATH
  14874  ;;
  14875
  14876freebsd* | dragonfly*)
  14877  # DragonFly does not have aout.  When/if they implement a new
  14878  # versioning mechanism, adjust this.
  14879  if test -x /usr/bin/objformat; then
  14880    objformat=`/usr/bin/objformat`
  14881  else
  14882    case $host_os in
  14883    freebsd[23].*) objformat=aout ;;
  14884    *) objformat=elf ;;
  14885    esac
  14886  fi
  14887  version_type=freebsd-$objformat
  14888  case $version_type in
  14889    freebsd-elf*)
  14890      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  14891      need_version=no
  14892      need_lib_prefix=no
  14893      ;;
  14894    freebsd-*)
  14895      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  14896      need_version=yes
  14897      ;;
  14898  esac
  14899  shlibpath_var=LD_LIBRARY_PATH
  14900  case $host_os in
  14901  freebsd2.*)
  14902    shlibpath_overrides_runpath=yes
  14903    ;;
  14904  freebsd3.[01]* | freebsdelf3.[01]*)
  14905    shlibpath_overrides_runpath=yes
  14906    hardcode_into_libs=yes
  14907    ;;
  14908  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  14909  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  14910    shlibpath_overrides_runpath=no
  14911    hardcode_into_libs=yes
  14912    ;;
  14913  *) # from 4.6 on, and DragonFly
  14914    shlibpath_overrides_runpath=yes
  14915    hardcode_into_libs=yes
  14916    ;;
  14917  esac
  14918  ;;
  14919
  14920gnu*)
  14921  version_type=linux # correct to gnu/linux during the next big refactor
  14922  need_lib_prefix=no
  14923  need_version=no
  14924  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  14925  soname_spec='${libname}${release}${shared_ext}$major'
  14926  shlibpath_var=LD_LIBRARY_PATH
  14927  shlibpath_overrides_runpath=no
  14928  hardcode_into_libs=yes
  14929  ;;
  14930
  14931haiku*)
  14932  version_type=linux # correct to gnu/linux during the next big refactor
  14933  need_lib_prefix=no
  14934  need_version=no
  14935  dynamic_linker="$host_os runtime_loader"
  14936  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  14937  soname_spec='${libname}${release}${shared_ext}$major'
  14938  shlibpath_var=LIBRARY_PATH
  14939  shlibpath_overrides_runpath=yes
  14940  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  14941  hardcode_into_libs=yes
  14942  ;;
  14943
  14944hpux9* | hpux10* | hpux11*)
  14945  # Give a soname corresponding to the major version so that dld.sl refuses to
  14946  # link against other versions.
  14947  version_type=sunos
  14948  need_lib_prefix=no
  14949  need_version=no
  14950  case $host_cpu in
  14951  ia64*)
  14952    shrext_cmds='.so'
  14953    hardcode_into_libs=yes
  14954    dynamic_linker="$host_os dld.so"
  14955    shlibpath_var=LD_LIBRARY_PATH
  14956    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14957    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14958    soname_spec='${libname}${release}${shared_ext}$major'
  14959    if test "X$HPUX_IA64_MODE" = X32; then
  14960      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  14961    else
  14962      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  14963    fi
  14964    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14965    ;;
  14966  hppa*64*)
  14967    shrext_cmds='.sl'
  14968    hardcode_into_libs=yes
  14969    dynamic_linker="$host_os dld.sl"
  14970    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  14971    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14972    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14973    soname_spec='${libname}${release}${shared_ext}$major'
  14974    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  14975    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14976    ;;
  14977  *)
  14978    shrext_cmds='.sl'
  14979    dynamic_linker="$host_os dld.sl"
  14980    shlibpath_var=SHLIB_PATH
  14981    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  14982    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14983    soname_spec='${libname}${release}${shared_ext}$major'
  14984    ;;
  14985  esac
  14986  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  14987  postinstall_cmds='chmod 555 $lib'
  14988  # or fails outright, so override atomically:
  14989  install_override_mode=555
  14990  ;;
  14991
  14992interix[3-9]*)
  14993  version_type=linux # correct to gnu/linux during the next big refactor
  14994  need_lib_prefix=no
  14995  need_version=no
  14996  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  14997  soname_spec='${libname}${release}${shared_ext}$major'
  14998  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  14999  shlibpath_var=LD_LIBRARY_PATH
  15000  shlibpath_overrides_runpath=no
  15001  hardcode_into_libs=yes
  15002  ;;
  15003
  15004irix5* | irix6* | nonstopux*)
  15005  case $host_os in
  15006    nonstopux*) version_type=nonstopux ;;
  15007    *)
  15008	if test "$lt_cv_prog_gnu_ld" = yes; then
  15009		version_type=linux # correct to gnu/linux during the next big refactor
  15010	else
  15011		version_type=irix
  15012	fi ;;
  15013  esac
  15014  need_lib_prefix=no
  15015  need_version=no
  15016  soname_spec='${libname}${release}${shared_ext}$major'
  15017  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  15018  case $host_os in
  15019  irix5* | nonstopux*)
  15020    libsuff= shlibsuff=
  15021    ;;
  15022  *)
  15023    case $LD in # libtool.m4 will add one of these switches to LD
  15024    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  15025      libsuff= shlibsuff= libmagic=32-bit;;
  15026    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  15027      libsuff=32 shlibsuff=N32 libmagic=N32;;
  15028    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  15029      libsuff=64 shlibsuff=64 libmagic=64-bit;;
  15030    *) libsuff= shlibsuff= libmagic=never-match;;
  15031    esac
  15032    ;;
  15033  esac
  15034  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  15035  shlibpath_overrides_runpath=no
  15036  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  15037  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  15038  hardcode_into_libs=yes
  15039  ;;
  15040
  15041# No shared lib support for Linux oldld, aout, or coff.
  15042linux*oldld* | linux*aout* | linux*coff*)
  15043  dynamic_linker=no
  15044  ;;
  15045
  15046# This must be glibc/ELF.
  15047linux* | k*bsd*-gnu | kopensolaris*-gnu)
  15048  version_type=linux # correct to gnu/linux during the next big refactor
  15049  need_lib_prefix=no
  15050  need_version=no
  15051  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15052  soname_spec='${libname}${release}${shared_ext}$major'
  15053  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  15054  shlibpath_var=LD_LIBRARY_PATH
  15055  shlibpath_overrides_runpath=no
  15056
  15057  # Some binutils ld are patched to set DT_RUNPATH
  15058  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  15059  $as_echo_n "(cached) " >&6
  15060else
  15061  lt_cv_shlibpath_overrides_runpath=no
  15062    save_LDFLAGS=$LDFLAGS
  15063    save_libdir=$libdir
  15064    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  15065	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  15066    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15067/* end confdefs.h.  */
  15068
  15069int
  15070main ()
  15071{
  15072
  15073  ;
  15074  return 0;
  15075}
  15076_ACEOF
  15077if ac_fn_cxx_try_link "$LINENO"; then :
  15078  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  15079  lt_cv_shlibpath_overrides_runpath=yes
  15080fi
  15081fi
  15082rm -f core conftest.err conftest.$ac_objext \
  15083    conftest$ac_exeext conftest.$ac_ext
  15084    LDFLAGS=$save_LDFLAGS
  15085    libdir=$save_libdir
  15086
  15087fi
  15088
  15089  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  15090
  15091  # This implies no fast_install, which is unacceptable.
  15092  # Some rework will be needed to allow for fast_install
  15093  # before this can be enabled.
  15094  hardcode_into_libs=yes
  15095
  15096  # Append ld.so.conf contents to the search path
  15097  if test -f /etc/ld.so.conf; then
  15098    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' ' '`
  15099    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  15100  fi
  15101
  15102  # We used to test for /lib/ld.so.1 and disable shared libraries on
  15103  # powerpc, because MkLinux only supported shared libraries with the
  15104  # GNU dynamic linker.  Since this was broken with cross compilers,
  15105  # most powerpc-linux boxes support dynamic linking these days and
  15106  # people can always --disable-shared, the test was removed, and we
  15107  # assume the GNU/Linux dynamic linker is in use.
  15108  dynamic_linker='GNU/Linux ld.so'
  15109  ;;
  15110
  15111netbsd*)
  15112  version_type=sunos
  15113  need_lib_prefix=no
  15114  need_version=no
  15115  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  15116    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15117    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15118    dynamic_linker='NetBSD (a.out) ld.so'
  15119  else
  15120    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15121    soname_spec='${libname}${release}${shared_ext}$major'
  15122    dynamic_linker='NetBSD ld.elf_so'
  15123  fi
  15124  shlibpath_var=LD_LIBRARY_PATH
  15125  shlibpath_overrides_runpath=yes
  15126  hardcode_into_libs=yes
  15127  ;;
  15128
  15129newsos6)
  15130  version_type=linux # correct to gnu/linux during the next big refactor
  15131  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15132  shlibpath_var=LD_LIBRARY_PATH
  15133  shlibpath_overrides_runpath=yes
  15134  ;;
  15135
  15136*nto* | *qnx*)
  15137  version_type=qnx
  15138  need_lib_prefix=no
  15139  need_version=no
  15140  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15141  soname_spec='${libname}${release}${shared_ext}$major'
  15142  shlibpath_var=LD_LIBRARY_PATH
  15143  shlibpath_overrides_runpath=no
  15144  hardcode_into_libs=yes
  15145  dynamic_linker='ldqnx.so'
  15146  ;;
  15147
  15148openbsd*)
  15149  version_type=sunos
  15150  sys_lib_dlsearch_path_spec="/usr/lib"
  15151  need_lib_prefix=no
  15152  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  15153  case $host_os in
  15154    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
  15155    *)				need_version=no  ;;
  15156  esac
  15157  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15158  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15159  shlibpath_var=LD_LIBRARY_PATH
  15160  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  15161    case $host_os in
  15162      openbsd2.[89] | openbsd2.[89].*)
  15163	shlibpath_overrides_runpath=no
  15164	;;
  15165      *)
  15166	shlibpath_overrides_runpath=yes
  15167	;;
  15168      esac
  15169  else
  15170    shlibpath_overrides_runpath=yes
  15171  fi
  15172  ;;
  15173
  15174os2*)
  15175  libname_spec='$name'
  15176  shrext_cmds=".dll"
  15177  need_lib_prefix=no
  15178  library_names_spec='$libname${shared_ext} $libname.a'
  15179  dynamic_linker='OS/2 ld.exe'
  15180  shlibpath_var=LIBPATH
  15181  ;;
  15182
  15183osf3* | osf4* | osf5*)
  15184  version_type=osf
  15185  need_lib_prefix=no
  15186  need_version=no
  15187  soname_spec='${libname}${release}${shared_ext}$major'
  15188  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15189  shlibpath_var=LD_LIBRARY_PATH
  15190  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  15191  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  15192  ;;
  15193
  15194rdos*)
  15195  dynamic_linker=no
  15196  ;;
  15197
  15198solaris*)
  15199  version_type=linux # correct to gnu/linux during the next big refactor
  15200  need_lib_prefix=no
  15201  need_version=no
  15202  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15203  soname_spec='${libname}${release}${shared_ext}$major'
  15204  shlibpath_var=LD_LIBRARY_PATH
  15205  shlibpath_overrides_runpath=yes
  15206  hardcode_into_libs=yes
  15207  # ldd complains unless libraries are executable
  15208  postinstall_cmds='chmod +x $lib'
  15209  ;;
  15210
  15211sunos4*)
  15212  version_type=sunos
  15213  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15214  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  15215  shlibpath_var=LD_LIBRARY_PATH
  15216  shlibpath_overrides_runpath=yes
  15217  if test "$with_gnu_ld" = yes; then
  15218    need_lib_prefix=no
  15219  fi
  15220  need_version=yes
  15221  ;;
  15222
  15223sysv4 | sysv4.3*)
  15224  version_type=linux # correct to gnu/linux during the next big refactor
  15225  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15226  soname_spec='${libname}${release}${shared_ext}$major'
  15227  shlibpath_var=LD_LIBRARY_PATH
  15228  case $host_vendor in
  15229    sni)
  15230      shlibpath_overrides_runpath=no
  15231      need_lib_prefix=no
  15232      runpath_var=LD_RUN_PATH
  15233      ;;
  15234    siemens)
  15235      need_lib_prefix=no
  15236      ;;
  15237    motorola)
  15238      need_lib_prefix=no
  15239      need_version=no
  15240      shlibpath_overrides_runpath=no
  15241      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  15242      ;;
  15243  esac
  15244  ;;
  15245
  15246sysv4*MP*)
  15247  if test -d /usr/nec ;then
  15248    version_type=linux # correct to gnu/linux during the next big refactor
  15249    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  15250    soname_spec='$libname${shared_ext}.$major'
  15251    shlibpath_var=LD_LIBRARY_PATH
  15252  fi
  15253  ;;
  15254
  15255sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  15256  version_type=freebsd-elf
  15257  need_lib_prefix=no
  15258  need_version=no
  15259  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  15260  soname_spec='${libname}${release}${shared_ext}$major'
  15261  shlibpath_var=LD_LIBRARY_PATH
  15262  shlibpath_overrides_runpath=yes
  15263  hardcode_into_libs=yes
  15264  if test "$with_gnu_ld" = yes; then
  15265    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  15266  else
  15267    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  15268    case $host_os in
  15269      sco3.2v5*)
  15270        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  15271	;;
  15272    esac
  15273  fi
  15274  sys_lib_dlsearch_path_spec='/usr/lib'
  15275  ;;
  15276
  15277tpf*)
  15278  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
  15279  version_type=linux # correct to gnu/linux during the next big refactor
  15280  need_lib_prefix=no
  15281  need_version=no
  15282  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15283  shlibpath_var=LD_LIBRARY_PATH
  15284  shlibpath_overrides_runpath=no
  15285  hardcode_into_libs=yes
  15286  ;;
  15287
  15288uts4*)
  15289  version_type=linux # correct to gnu/linux during the next big refactor
  15290  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15291  soname_spec='${libname}${release}${shared_ext}$major'
  15292  shlibpath_var=LD_LIBRARY_PATH
  15293  ;;
  15294
  15295*)
  15296  dynamic_linker=no
  15297  ;;
  15298esac
  15299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  15300$as_echo "$dynamic_linker" >&6; }
  15301test "$dynamic_linker" = no && can_build_shared=no
  15302
  15303variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  15304if test "$GCC" = yes; then
  15305  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  15306fi
  15307
  15308if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  15309  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  15310fi
  15311if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  15312  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  15313fi
  15314
  15315
  15316
  15317
  15318
  15319
  15320
  15321
  15322
  15323
  15324
  15325
  15326
  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    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  15353$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  15354hardcode_action_CXX=
  15355if test -n "$hardcode_libdir_flag_spec_CXX" ||
  15356   test -n "$runpath_var_CXX" ||
  15357   test "X$hardcode_automatic_CXX" = "Xyes" ; then
  15358
  15359  # We can hardcode non-existent directories.
  15360  if test "$hardcode_direct_CXX" != no &&
  15361     # If the only mechanism to avoid hardcoding is shlibpath_var, we
  15362     # have to relink, otherwise we might link with an installed library
  15363     # when we should be linking with a yet-to-be-installed one
  15364     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  15365     test "$hardcode_minus_L_CXX" != no; then
  15366    # Linking always hardcodes the temporary library directory.
  15367    hardcode_action_CXX=relink
  15368  else
  15369    # We can link without hardcoding, and we can hardcode nonexisting dirs.
  15370    hardcode_action_CXX=immediate
  15371  fi
  15372else
  15373  # We cannot hardcode anything, or else we can only hardcode existing
  15374  # directories.
  15375  hardcode_action_CXX=unsupported
  15376fi
  15377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  15378$as_echo "$hardcode_action_CXX" >&6; }
  15379
  15380if test "$hardcode_action_CXX" = relink ||
  15381   test "$inherit_rpath_CXX" = yes; then
  15382  # Fast installation is not supported
  15383  enable_fast_install=no
  15384elif test "$shlibpath_overrides_runpath" = yes ||
  15385     test "$enable_shared" = no; then
  15386  # Fast installation is not necessary
  15387  enable_fast_install=needless
  15388fi
  15389
  15390
  15391
  15392
  15393
  15394
  15395
  15396  fi # test -n "$compiler"
  15397
  15398  CC=$lt_save_CC
  15399  CFLAGS=$lt_save_CFLAGS
  15400  LDCXX=$LD
  15401  LD=$lt_save_LD
  15402  GCC=$lt_save_GCC
  15403  with_gnu_ld=$lt_save_with_gnu_ld
  15404  lt_cv_path_LDCXX=$lt_cv_path_LD
  15405  lt_cv_path_LD=$lt_save_path_LD
  15406  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  15407  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  15408fi # test "$_lt_caught_CXX_error" != yes
  15409
  15410ac_ext=c
  15411ac_cpp='$CPP $CPPFLAGS'
  15412ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15413ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15414ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15415
  15416
  15417# Find a good install program.  We prefer a C program (faster),
  15418# so one script is as good as another.  But avoid the broken or
  15419# incompatible versions:
  15420# SysV /etc/install, /usr/sbin/install
  15421# SunOS /usr/etc/install
  15422# IRIX /sbin/install
  15423# AIX /bin/install
  15424# AmigaOS /C/install, which installs bootblocks on floppy discs
  15425# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  15426# AFS /usr/afsws/bin/install, which mishandles nonexistent args
  15427# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  15428# OS/2's system install, which has a completely different semantic
  15429# ./install, which can be erroneously created by make from ./install.sh.
  15430# Reject install programs that cannot install multiple files.
  15431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  15432$as_echo_n "checking for a BSD-compatible install... " >&6; }
  15433if test -z "$INSTALL"; then
  15434if ${ac_cv_path_install+:} false; then :
  15435  $as_echo_n "(cached) " >&6
  15436else
  15437  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15438for as_dir in $PATH
  15439do
  15440  IFS=$as_save_IFS
  15441  test -z "$as_dir" && as_dir=.
  15442    # Account for people who put trailing slashes in PATH elements.
  15443case $as_dir/ in #((
  15444  ./ | .// | /[cC]/* | \
  15445  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  15446  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  15447  /usr/ucb/* ) ;;
  15448  *)
  15449    # OSF1 and SCO ODT 3.0 have their own names for install.
  15450    # Don't use installbsd from OSF since it installs stuff as root
  15451    # by default.
  15452    for ac_prog in ginstall scoinst install; do
  15453      for ac_exec_ext in '' $ac_executable_extensions; do
  15454	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  15455	  if test $ac_prog = install &&
  15456	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  15457	    # AIX install.  It has an incompatible calling convention.
  15458	    :
  15459	  elif test $ac_prog = install &&
  15460	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  15461	    # program-specific install script used by HP pwplus--don't use.
  15462	    :
  15463	  else
  15464	    rm -rf conftest.one conftest.two conftest.dir
  15465	    echo one > conftest.one
  15466	    echo two > conftest.two
  15467	    mkdir conftest.dir
  15468	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  15469	      test -s conftest.one && test -s conftest.two &&
  15470	      test -s conftest.dir/conftest.one &&
  15471	      test -s conftest.dir/conftest.two
  15472	    then
  15473	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  15474	      break 3
  15475	    fi
  15476	  fi
  15477	fi
  15478      done
  15479    done
  15480    ;;
  15481esac
  15482
  15483  done
  15484IFS=$as_save_IFS
  15485
  15486rm -rf conftest.one conftest.two conftest.dir
  15487
  15488fi
  15489  if test "${ac_cv_path_install+set}" = set; then
  15490    INSTALL=$ac_cv_path_install
  15491  else
  15492    # As a last resort, use the slow shell script.  Don't cache a
  15493    # value for INSTALL within a source directory, because that will
  15494    # break other packages using the cache if that directory is
  15495    # removed, or if the value is a relative name.
  15496    INSTALL=$ac_install_sh
  15497  fi
  15498fi
  15499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  15500$as_echo "$INSTALL" >&6; }
  15501
  15502# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  15503# It thinks the first close brace ends the variable substitution.
  15504test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  15505
  15506test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  15507
  15508test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  15509
  15510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  15511$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  15512set x ${MAKE-make}
  15513ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  15514if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  15515  $as_echo_n "(cached) " >&6
  15516else
  15517  cat >conftest.make <<\_ACEOF
  15518SHELL = /bin/sh
  15519all:
  15520	@echo '@@@%%%=$(MAKE)=@@@%%%'
  15521_ACEOF
  15522# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  15523case `${MAKE-make} -f conftest.make 2>/dev/null` in
  15524  *@@@%%%=?*=@@@%%%*)
  15525    eval ac_cv_prog_make_${ac_make}_set=yes;;
  15526  *)
  15527    eval ac_cv_prog_make_${ac_make}_set=no;;
  15528esac
  15529rm -f conftest.make
  15530fi
  15531if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  15532  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15533$as_echo "yes" >&6; }
  15534  SET_MAKE=
  15535else
  15536  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15537$as_echo "no" >&6; }
  15538  SET_MAKE="MAKE=${MAKE-make}"
  15539fi
  15540
  15541if test -n "$ac_tool_prefix"; then
  15542  # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  15543set dummy ${ac_tool_prefix}windres; ac_word=$2
  15544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15545$as_echo_n "checking for $ac_word... " >&6; }
  15546if ${ac_cv_prog_WINDRES+:} false; then :
  15547  $as_echo_n "(cached) " >&6
  15548else
  15549  if test -n "$WINDRES"; then
  15550  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  15551else
  15552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15553for as_dir in $PATH
  15554do
  15555  IFS=$as_save_IFS
  15556  test -z "$as_dir" && as_dir=.
  15557    for ac_exec_ext in '' $ac_executable_extensions; do
  15558  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15559    ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  15560    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15561    break 2
  15562  fi
  15563done
  15564  done
  15565IFS=$as_save_IFS
  15566
  15567fi
  15568fi
  15569WINDRES=$ac_cv_prog_WINDRES
  15570if test -n "$WINDRES"; then
  15571  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  15572$as_echo "$WINDRES" >&6; }
  15573else
  15574  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15575$as_echo "no" >&6; }
  15576fi
  15577
  15578
  15579fi
  15580if test -z "$ac_cv_prog_WINDRES"; then
  15581  ac_ct_WINDRES=$WINDRES
  15582  # Extract the first word of "windres", so it can be a program name with args.
  15583set dummy windres; ac_word=$2
  15584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15585$as_echo_n "checking for $ac_word... " >&6; }
  15586if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
  15587  $as_echo_n "(cached) " >&6
  15588else
  15589  if test -n "$ac_ct_WINDRES"; then
  15590  ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  15591else
  15592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15593for as_dir in $PATH
  15594do
  15595  IFS=$as_save_IFS
  15596  test -z "$as_dir" && as_dir=.
  15597    for ac_exec_ext in '' $ac_executable_extensions; do
  15598  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15599    ac_cv_prog_ac_ct_WINDRES="windres"
  15600    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15601    break 2
  15602  fi
  15603done
  15604  done
  15605IFS=$as_save_IFS
  15606
  15607fi
  15608fi
  15609ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  15610if test -n "$ac_ct_WINDRES"; then
  15611  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
  15612$as_echo "$ac_ct_WINDRES" >&6; }
  15613else
  15614  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15615$as_echo "no" >&6; }
  15616fi
  15617
  15618  if test "x$ac_ct_WINDRES" = x; then
  15619    WINDRES=":"
  15620  else
  15621    case $cross_compiling:$ac_tool_warned in
  15622yes:)
  15623{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  15624$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  15625ac_tool_warned=yes ;;
  15626esac
  15627    WINDRES=$ac_ct_WINDRES
  15628  fi
  15629else
  15630  WINDRES="$ac_cv_prog_WINDRES"
  15631fi
  15632
  15633
  15634case "$host" in
  15635    *-*-mingw32*)
  15636        # Except on msys, where make can't handle full pathnames (bug 1972)
  15637        ;;
  15638    *)
  15639        srcdir=`cd $srcdir && pwd`
  15640        ;;
  15641esac
  15642
  15643INCLUDE="-I$srcdir/include"
  15644if test x$srcdir != x.; then
  15645    INCLUDE="-Iinclude $INCLUDE"
  15646elif test -d .hg; then
  15647    as_fn_error $? "
  15648*** When building from Mercurial you should configure and build in a
  15649    separate directory so you don't clobber SDL_config.h, SDL_revision.h
  15650" "$LINENO" 5
  15651fi
  15652BASE_CFLAGS=""
  15653BASE_LDFLAGS=""
  15654case "$host" in
  15655    *-*-cygwin*)
  15656        # We build SDL on cygwin without the UNIX emulation layer
  15657        save_CFLAGS="$CFLAGS"
  15658        have_no_cygwin=no
  15659        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  15660$as_echo_n "checking for GCC -mno-cygwin option... " >&6; }
  15661        CFLAGS="$save_CFLAGS -mno-cygwin"
  15662
  15663        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15664/* end confdefs.h.  */
  15665
  15666
  15667int
  15668main ()
  15669{
  15670
  15671
  15672  ;
  15673  return 0;
  15674}
  15675_ACEOF
  15676if ac_fn_c_try_compile "$LINENO"; then :
  15677
  15678        have_no_cygwin=yes
  15679
  15680fi
  15681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15682        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  15683$as_echo "$have_no_cygwin" >&6; }
  15684        CFLAGS="$save_CFLAGS"
  15685
  15686        if test x$have_no_cygwin = xyes; then
  15687            BASE_CFLAGS="-mno-cygwin"
  15688            BASE_LDFLAGS="-mno-cygwin"
  15689        fi
  15690        BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  15691        ;;
  15692esac
  15693# Uncomment the following line if you want to force SDL and applications
  15694# built with it to be compiled for a particular architecture.
  15695#AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  15696BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  15697# The default optimization for SDL is -O3 (Bug #31)
  15698if test "x$orig_CFLAGS" = x; then
  15699    BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  15700fi
  15701EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  15702BUILD_LDFLAGS="$LDFLAGS"
  15703EXTRA_LDFLAGS="$BASE_LDFLAGS"
  15704## These are common directories to find software packages
  15705#for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  15706#    if test -d $path/include; then
  15707#        EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  15708#    fi
  15709#    if test -d $path/lib; then
  15710#        EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  15711#    fi
  15712#done
  15713SDL_CFLAGS="$BASE_CFLAGS"
  15714SDL_LIBS="-lSDL2 $BASE_LDFLAGS"
  15715CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  15716CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  15717LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  15718
  15719base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  15720
  15721find_lib()
  15722{
  15723    gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  15724    gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  15725    env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  15726    if test "$cross_compiling" = yes; then
  15727        host_lib_path=""
  15728    else
  15729        host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  15730    fi
  15731    for path in $gcc_bin_path $gcc_lib_path $env_lib_path $host_lib_path; do
  15732        lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`
  15733        if test x$lib != x; then
  15734            echo $lib
  15735            return
  15736        fi
  15737    done
  15738}
  15739
  15740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  15741$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  15742if ${ac_cv_c_const+:} false; then :
  15743  $as_echo_n "(cached) " >&6
  15744else
  15745  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15746/* end confdefs.h.  */
  15747
  15748int
  15749main ()
  15750{
  15751
  15752#ifndef __cplusplus
  15753  /* Ultrix mips cc rejects this sort of thing.  */
  15754  typedef int charset[2];
  15755  const charset cs = { 0, 0 };
  15756  /* SunOS 4.1.1 cc rejects this.  */
  15757  char const *const *pcpcc;
  15758  char **ppc;
  15759  /* NEC SVR4.0.2 mips cc rejects this.  */
  15760  struct point {int x, y;};
  15761  static struct point const zero = {0,0};
  15762  /* AIX XL C 1.02.0.0 rejects this.
  15763     It does not let you subtract one const X* pointer from another in
  15764     an arm of an if-expression whose if-part is not a constant
  15765     expression */
  15766  const char *g = "string";
  15767  pcpcc = &g + (g ? g-g : 0);
  15768  /* HPUX 7.0 cc rejects these. */
  15769  ++pcpcc;
  15770  ppc = (char**) pcpcc;
  15771  pcpcc = (char const *const *) ppc;
  15772  { /* SCO 3.2v4 cc rejects this sort of thing.  */
  15773    char tx;
  15774    char *t = &tx;
  15775    char const *s = 0 ? (char *) 0 : (char const *) 0;
  15776
  15777    *t++ = 0;
  15778    if (s) return 0;
  15779  }
  15780  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  15781    int x[] = {25, 17};
  15782    const int *foo = &x[0];
  15783    ++foo;
  15784  }
  15785  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  15786    typedef const int *iptr;
  15787    iptr p = 0;
  15788    ++p;
  15789  }
  15790  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  15791       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  15792    struct s { int j; const int *ap[3]; } bx;
  15793    struct s *b = &bx; b->j = 5;
  15794  }
  15795  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  15796    const int foo = 10;
  15797    if (!foo) return 0;
  15798  }
  15799  return !cs[0] && !zero.x;
  15800#endif
  15801
  15802  ;
  15803  return 0;
  15804}
  15805_ACEOF
  15806if ac_fn_c_try_compile "$LINENO"; then :
  15807  ac_cv_c_const=yes
  15808else
  15809  ac_cv_c_const=no
  15810fi
  15811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15812fi
  15813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  15814$as_echo "$ac_cv_c_const" >&6; }
  15815if test $ac_cv_c_const = no; then
  15816
  15817$as_echo "#define const /**/" >>confdefs.h
  15818
  15819fi
  15820
  15821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  15822$as_echo_n "checking for inline... " >&6; }
  15823if ${ac_cv_c_inline+:} false; then :
  15824  $as_echo_n "(cached) " >&6
  15825else
  15826  ac_cv_c_inline=no
  15827for ac_kw in inline __inline__ __inline; do
  15828  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15829/* end confdefs.h.  */
  15830#ifndef __cplusplus
  15831typedef int foo_t;
  15832static $ac_kw foo_t static_foo () {return 0; }
  15833$ac_kw foo_t foo () {return 0; }
  15834#endif
  15835
  15836_ACEOF
  15837if ac_fn_c_try_compile "$LINENO"; then :
  15838  ac_cv_c_inline=$ac_kw
  15839fi
  15840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15841  test "$ac_cv_c_inline" != no && break
  15842done
  15843
  15844fi
  15845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  15846$as_echo "$ac_cv_c_inline" >&6; }
  15847
  15848case $ac_cv_c_inline in
  15849  inline | yes) ;;
  15850  *)
  15851    case $ac_cv_c_inline in
  15852      no) ac_val=;;
  15853      *) ac_val=$ac_cv_c_inline;;
  15854    esac
  15855    cat >>confdefs.h <<_ACEOF
  15856#ifndef __cplusplus
  15857#define inline $ac_val
  15858#endif
  15859_ACEOF
  15860    ;;
  15861esac
  15862
  15863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  15864$as_echo_n "checking for working volatile... " >&6; }
  15865if ${ac_cv_c_volatile+:} false; then :
  15866  $as_echo_n "(cached) " >&6
  15867else
  15868  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15869/* end confdefs.h.  */
  15870
  15871int
  15872main ()
  15873{
  15874
  15875volatile int x;
  15876int * volatile y = (int *) 0;
  15877return !x && !y;
  15878  ;
  15879  return 0;
  15880}
  15881_ACEOF
  15882if ac_fn_c_try_compile "$LINENO"; then :
  15883  ac_cv_c_volatile=yes
  15884else
  15885  ac_cv_c_volatile=no
  15886fi
  15887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15888fi
  15889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  15890$as_echo "$ac_cv_c_volatile" >&6; }
  15891if test $ac_cv_c_volatile = no; then
  15892
  15893$as_echo "#define volatile /**/" >>confdefs.h
  15894
  15895fi
  15896
  15897
  15898# Check whether --enable-assertions was given.
  15899if test "${enable_assertions+set}" = set; then :
  15900  enableval=$enable_assertions;
  15901else
  15902  enable_assertions=auto
  15903fi
  15904
  15905case "$enable_assertions" in
  15906    auto) # Use optimization settings to determine assertion level
  15907        ;;
  15908    disabled)
  15909
  15910$as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  15911
  15912        ;;
  15913    release)
  15914
  15915$as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  15916
  15917        ;;
  15918    enabled)
  15919
  15920$as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  15921
  15922        ;;
  15923    paranoid)
  15924
  15925$as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  15926
  15927        ;;
  15928    *)
  15929        as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  15930        ;;
  15931esac
  15932
  15933# Check whether --enable-dependency-tracking was given.
  15934if test "${enable_dependency_tracking+set}" = set; then :
  15935  enableval=$enable_dependency_tracking;
  15936else
  15937  enable_dependency_tracking=yes
  15938fi
  15939
  15940if test x$enable_dependency_tracking = xyes; then
  15941    have_gcc_mmd_mt=no
  15942    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  15943$as_echo_n "checking for GCC -MMD -MT option... " >&6; }
  15944    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15945/* end confdefs.h.  */
  15946
  15947    #if !defined(__GNUC__) || __GNUC__ < 3
  15948    #error Dependency tracking requires GCC 3.0 or newer
  15949    #endif
  15950
  15951int
  15952main ()
  15953{
  15954
  15955
  15956  ;
  15957  return 0;
  15958}
  15959_ACEOF
  15960if ac_fn_c_try_compile "$LINENO"; then :
  15961
  15962    have_gcc_mmd_mt=yes
  15963
  15964fi
  15965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15966    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  15967$as_echo "$have_gcc_mmd_mt" >&6; }
  15968
  15969    if test x$have_gcc_mmd_mt = xyes; then
  15970        DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  15971    fi
  15972fi
  15973
  15974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  15975$as_echo_n "checking for linker option --no-undefined... " >&6; }
  15976have_no_undefined=no
  15977case "$host" in
  15978        *-*-openbsd*)
  15979        ;;
  15980
  15981    *)
  15982        save_LDFLAGS="$LDFLAGS"
  15983        LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  15984        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15985/* end confdefs.h.  */
  15986
  15987
  15988int
  15989main ()
  15990{
  15991
  15992
  15993  ;
  15994  return 0;
  15995}
  15996_ACEOF
  15997if ac_fn_c_try_link "$LINENO"; then :
  15998
  15999        have_no_undefined=yes
  16000        EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--no-undefined"
  16001
  16002fi
  16003rm -f core conftest.err conftest.$ac_objext \
  16004    conftest$ac_exeext conftest.$ac_ext
  16005        LDFLAGS="$save_LDFLAGS"
  16006        ;;
  16007esac
  16008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  16009$as_echo "$have_no_undefined" >&6; }
  16010
  16011# Check whether --enable-libc was given.
  16012if test "${enable_libc+set}" = set; then :
  16013  enableval=$enable_libc;
  16014else
  16015  enable_libc=yes
  16016fi
  16017
  16018if test x$enable_libc = xyes; then
  16019
  16020$as_echo "#define HAVE_LIBC 1" >>confdefs.h
  16021
  16022
  16023        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  16024$as_echo_n "checking for ANSI C header files... " >&6; }
  16025if ${ac_cv_header_stdc+:} false; then :
  16026  $as_echo_n "(cached) " >&6
  16027else
  16028  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16029/* end confdefs.h.  */
  16030#include <stdlib.h>
  16031#include <stdarg.h>
  16032#include <string.h>
  16033#include <float.h>
  16034
  16035int
  16036main ()
  16037{
  16038
  16039  ;
  16040  return 0;
  16041}
  16042_ACEOF
  16043if ac_fn_c_try_compile "$LINENO"; then :
  16044  ac_cv_header_stdc=yes
  16045else
  16046  ac_cv_header_stdc=no
  16047fi
  16048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16049
  16050if test $ac_cv_header_stdc = yes; then
  16051  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  16052  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16053/* end confdefs.h.  */
  16054#include <string.h>
  16055
  16056_ACEOF
  16057if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16058  $EGREP "memchr" >/dev/null 2>&1; then :
  16059
  16060else
  16061  ac_cv_header_stdc=no
  16062fi
  16063rm -f conftest*
  16064
  16065fi
  16066
  16067if test $ac_cv_header_stdc = yes; then
  16068  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  16069  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16070/* end confdefs.h.  */
  16071#include <stdlib.h>
  16072
  16073_ACEOF
  16074if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16075  $EGREP "free" >/dev/null 2>&1; then :
  16076
  16077else
  16078  ac_cv_header_stdc=no
  16079fi
  16080rm -f conftest*
  16081
  16082fi
  16083
  16084if test $ac_cv_header_stdc = yes; then
  16085  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  16086  if test "$cross_compiling" = yes; then :
  16087  :
  16088else
  16089  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16090/* end confdefs.h.  */
  16091#include <ctype.h>
  16092#include <stdlib.h>
  16093#if ((' ' & 0x0FF) == 0x020)
  16094# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  16095# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  16096#else
  16097# define ISLOWER(c) \
  16098		   (('a' <= (c) && (c) <= 'i') \
  16099		     || ('j' <= (c) && (c) <= 'r') \
  16100		     || ('s' <= (c) && (c) <= 'z'))
  16101# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  16102#endif
  16103
  16104#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  16105int
  16106main ()
  16107{
  16108  int i;
  16109  for (i = 0; i < 256; i++)
  16110    if (XOR (islower (i), ISLOWER (i))
  16111	|| toupper (i) != TOUPPER (i))
  16112      return 2;
  16113  return 0;
  16114}
  16115_ACEOF
  16116if ac_fn_c_try_run "$LINENO"; then :
  16117
  16118else
  16119  ac_cv_header_stdc=no
  16120fi
  16121rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16122  conftest.$ac_objext conftest.beam conftest.$ac_ext
  16123fi
  16124
  16125fi
  16126fi
  16127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  16128$as_echo "$ac_cv_header_stdc" >&6; }
  16129if test $ac_cv_header_stdc = yes; then
  16130
  16131$as_echo "#define STDC_HEADERS 1" >>confdefs.h
  16132
  16133fi
  16134
  16135    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
  16136do :
  16137  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16138ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  16139if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  16140  cat >>confdefs.h <<_ACEOF
  16141#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16142_ACEOF
  16143
  16144fi
  16145
  16146done
  16147
  16148
  16149        ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  16150if test "x$ac_cv_type_size_t" = xyes; then :
  16151
  16152else
  16153
  16154cat >>confdefs.h <<_ACEOF
  16155#define size_t unsigned int
  16156_ACEOF
  16157
  16158fi
  16159
  16160
  16161          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  16162$as_echo_n "checking for M_PI in math.h... " >&6; }
  16163if ${ac_cv_define_M_PI+:} false; then :
  16164  $as_echo_n "(cached) " >&6
  16165else
  16166  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16167/* end confdefs.h.  */
  16168
  16169#include <math.h>
  16170#ifdef M_PI
  16171YES_IS_DEFINED
  16172#endif
  16173
  16174_ACEOF
  16175if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16176  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  16177  ac_cv_define_M_PI=yes
  16178else
  16179  ac_cv_define_M_PI=no
  16180fi
  16181rm -f conftest*
  16182
  16183
  16184fi
  16185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  16186$as_echo "$ac_cv_define_M_PI" >&6; }
  16187  if test "$ac_cv_define_M_PI" = "yes" ; then
  16188
  16189$as_echo "#define HAVE_M_PI /**/" >>confdefs.h
  16190
  16191  fi
  16192
  16193
  16194        case "$host" in
  16195    *-*-cygwin* | *-*-mingw32*)
  16196        ;;
  16197    *)
  16198        # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  16199# for constant arguments.  Useless!
  16200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  16201$as_echo_n "checking for working alloca.h... " >&6; }
  16202if ${ac_cv_working_alloca_h+:} false; then :
  16203  $as_echo_n "(cached) " >&6
  16204else
  16205  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16206/* end confdefs.h.  */
  16207#include <alloca.h>
  16208int
  16209main ()
  16210{
  16211char *p = (char *) alloca (2 * sizeof (int));
  16212			  if (p) return 0;
  16213  ;
  16214  return 0;
  16215}
  16216_ACEOF
  16217if ac_fn_c_try_link "$LINENO"; then :
  16218  ac_cv_working_alloca_h=yes
  16219else
  16220  ac_cv_working_alloca_h=no
  16221fi
  16222rm -f core conftest.err conftest.$ac_objext \
  16223    conftest$ac_exeext conftest.$ac_ext
  16224fi
  16225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  16226$as_echo "$ac_cv_working_alloca_h" >&6; }
  16227if test $ac_cv_working_alloca_h = yes; then
  16228
  16229$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  16230
  16231fi
  16232
  16233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  16234$as_echo_n "checking for alloca... " >&6; }
  16235if ${ac_cv_func_alloca_works+:} false; then :
  16236  $as_echo_n "(cached) " >&6
  16237else
  16238  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16239/* end confdefs.h.  */
  16240#ifdef __GNUC__
  16241# define alloca __builtin_alloca
  16242#else
  16243# ifdef _MSC_VER
  16244#  include <malloc.h>
  16245#  define alloca _alloca
  16246# else
  16247#  ifdef HAVE_ALLOCA_H
  16248#   include <alloca.h>
  16249#  else
  16250#   ifdef _AIX
  16251 #pragma alloca
  16252#   else
  16253#    ifndef alloca /* predefined by HP cc +Olibcalls */
  16254void *alloca (size_t);
  16255#    endif
  16256#   endif
  16257#  endif
  16258# endif
  16259#endif
  16260
  16261int
  16262main ()
  16263{
  16264char *p = (char *) alloca (1);
  16265				    if (p) return 0;
  16266  ;
  16267  return 0;
  16268}
  16269_ACEOF
  16270if ac_fn_c_try_link "$LINENO"; then :
  16271  ac_cv_func_alloca_works=yes
  16272else
  16273  ac_cv_func_alloca_works=no
  16274fi
  16275rm -f core conftest.err conftest.$ac_objext \
  16276    conftest$ac_exeext conftest.$ac_ext
  16277fi
  16278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  16279$as_echo "$ac_cv_func_alloca_works" >&6; }
  16280
  16281if test $ac_cv_func_alloca_works = yes; then
  16282
  16283$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  16284
  16285else
  16286  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  16287# that cause trouble.  Some versions do not even contain alloca or
  16288# contain a buggy version.  If you still want to use their alloca,
  16289# use ar to extract alloca.o from them instead of compiling alloca.c.
  16290
  16291ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  16292
  16293$as_echo "#define C_ALLOCA 1" >>confdefs.h
  16294
  16295
  16296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  16297$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  16298if ${ac_cv_os_cray+:} false; then :
  16299  $as_echo_n "(cached) " >&6
  16300else
  16301  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16302/* end confdefs.h.  */
  16303#if defined CRAY && ! defined CRAY2
  16304webecray
  16305#else
  16306wenotbecray
  16307#endif
  16308
  16309_ACEOF
  16310if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16311  $EGREP "webecray" >/dev/null 2>&1; then :
  16312  ac_cv_os_cray=yes
  16313else
  16314  ac_cv_os_cray=no
  16315fi
  16316rm -f conftest*
  16317
  16318fi
  16319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  16320$as_echo "$ac_cv_os_cray" >&6; }
  16321if test $ac_cv_os_cray = yes; then
  16322  for ac_func in _getb67 GETB67 getb67; do
  16323    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  16324ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  16325if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  16326
  16327cat >>confdefs.h <<_ACEOF
  16328#define CRAY_STACKSEG_END $ac_func
  16329_ACEOF
  16330
  16331    break
  16332fi
  16333
  16334  done
  16335fi
  16336
  16337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  16338$as_echo_n "checking stack direction for C alloca... " >&6; }
  16339if ${ac_cv_c_stack_direction+:} false; then :
  16340  $as_echo_n "(cached) " >&6
  16341else
  16342  if test "$cross_compiling" = yes; then :
  16343  ac_cv_c_stack_direction=0
  16344else
  16345  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16346/* end confdefs.h.  */
  16347$ac_includes_default
  16348int
  16349find_stack_direction (int *addr, int depth)
  16350{
  16351  int dir, dummy = 0;
  16352  if (! addr)
  16353    addr = &dummy;
  16354  *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  16355  dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  16356  return dir + dummy;
  16357}
  16358
  16359int
  16360main (int argc, char **argv)
  16361{
  16362  return find_stack_direction (0, argc + !argv + 20) < 0;
  16363}
  16364_ACEOF
  16365if ac_fn_c_try_run "$LINENO"; then :
  16366  ac_cv_c_stack_direction=1
  16367else
  16368  ac_cv_c_stack_direction=-1
  16369fi
  16370rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16371  conftest.$ac_objext conftest.beam conftest.$ac_ext
  16372fi
  16373
  16374fi
  16375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  16376$as_echo "$ac_cv_c_stack_direction" >&6; }
  16377cat >>confdefs.h <<_ACEOF
  16378#define STACK_DIRECTION $ac_cv_c_stack_direction
  16379_ACEOF
  16380
  16381
  16382fi
  16383
  16384        ;;
  16385    esac
  16386
  16387    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  16388$as_echo_n "checking for working memcmp... " >&6; }
  16389if ${ac_cv_func_memcmp_working+:} false; then :
  16390  $as_echo_n "(cached) " >&6
  16391else
  16392  if test "$cross_compiling" = yes; then :
  16393  ac_cv_func_memcmp_working=no
  16394else
  16395  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16396/* end confdefs.h.  */
  16397$ac_includes_default
  16398int
  16399main ()
  16400{
  16401
  16402  /* Some versions of memcmp are not 8-bit clean.  */
  16403  char c0 = '\100', c1 = '\200', c2 = '\201';
  16404  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  16405    return 1;
  16406
  16407  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  16408     or more and with at least one buffer not starting on a 4-byte boundary.
  16409     William Lewis provided this test program.   */
  16410  {
  16411    char foo[21];
  16412    char bar[21];
  16413    int i;
  16414    for (i = 0; i < 4; i++)
  16415      {
  16416	char *a = foo + i;
  16417	char *b = bar + i;
  16418	strcpy (a, "--------01111111");
  16419	strcpy (b, "--------10000000");
  16420	if (memcmp (a, b, 16) >= 0)
  16421	  return 1;
  16422      }
  16423    return 0;
  16424  }
  16425
  16426  ;
  16427  return 0;
  16428}
  16429_ACEOF
  16430if ac_fn_c_try_run "$LINENO"; then :
  16431  ac_cv_func_memcmp_working=yes
  16432else
  16433  ac_cv_func_memcmp_working=no
  16434fi
  16435rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16436  conftest.$ac_objext conftest.beam conftest.$ac_ext
  16437fi
  16438
  16439fi
  16440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  16441$as_echo "$ac_cv_func_memcmp_working" >&6; }
  16442test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  16443  *" memcmp.$ac_objext "* ) ;;
  16444  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  16445 ;;
  16446esac
  16447
  16448
  16449    if test x$ac_cv_func_memcmp_working = xyes; then
  16450
  16451$as_echo "#define HAVE_MEMCMP 1" >>confdefs.h
  16452
  16453    fi
  16454    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  16455$as_echo_n "checking for working strtod... " >&6; }
  16456if ${ac_cv_func_strtod+:} false; then :
  16457  $as_echo_n "(cached) " >&6
  16458else
  16459  if test "$cross_compiling" = yes; then :
  16460  ac_cv_func_strtod=no
  16461else
  16462  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16463/* end confdefs.h.  */
  16464
  16465$ac_includes_default
  16466#ifndef strtod
  16467double strtod ();
  16468#endif
  16469int
  16470main()
  16471{
  16472  {
  16473    /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
  16474    char *string = " +69";
  16475    char *term;
  16476    double value;
  16477    value = strtod (string, &term);
  16478    if (value != 69 || term != (string + 4))
  16479      return 1;
  16480  }
  16481
  16482  {
  16483    /* Under Solaris 2.4, strtod returns the wrong value for the
  16484       terminating character under some conditions.  */
  16485    char *string = "NaN";
  16486    char *term;
  16487    strtod (string, &term);
  16488    if (term != string && *(term - 1) == 0)
  16489      return 1;
  16490  }
  16491  return 0;
  16492}
  16493
  16494_ACEOF
  16495if ac_fn_c_try_run "$LINENO"; then :
  16496  ac_cv_func_strtod=yes
  16497else
  16498  ac_cv_func_strtod=no
  16499fi
  16500rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16501  conftest.$ac_objext conftest.beam conftest.$ac_ext
  16502fi
  16503
  16504fi
  16505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  16506$as_echo "$ac_cv_func_strtod" >&6; }
  16507if test $ac_cv_func_strtod = no; then
  16508  case " $LIBOBJS " in
  16509  *" strtod.$ac_objext "* ) ;;
  16510  *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  16511 ;;
  16512esac
  16513
  16514ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  16515if test "x$ac_cv_func_pow" = xyes; then :
  16516
  16517fi
  16518
  16519if test $ac_cv_func_pow = no; then
  16520  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  16521$as_echo_n "checking for pow in -lm... " >&6; }
  16522if ${ac_cv_lib_m_pow+:} false; then :
  16523  $as_echo_n "(cached) " >&6
  16524else
  16525  ac_check_lib_save_LIBS=$LIBS
  16526LIBS="-lm  $LIBS"
  16527cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16528/* end confdefs.h.  */
  16529
  16530/* Override any GCC internal prototype to avoid an error.
  16531   Use char because int might match the return type of a GCC
  16532   builtin and then its argument prototype would still apply.  */
  16533#ifdef __cplusplus
  16534extern "C"
  16535#endif
  16536char pow ();
  16537int
  16538main ()
  16539{
  16540return pow ();
  16541  ;
  16542  return 0;
  16543}
  16544_ACEOF
  16545if ac_fn_c_try_link "$LINENO"; then :
  16546  ac_cv_lib_m_pow=yes
  16547else
  16548  ac_cv_lib_m_pow=no
  16549fi
  16550rm -f core conftest.err conftest.$ac_objext \
  16551    conftest$ac_exeext conftest.$ac_ext
  16552LIBS=$ac_check_lib_save_LIBS
  16553fi
  16554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  16555$as_echo "$ac_cv_lib_m_pow" >&6; }
  16556if test "x$ac_cv_lib_m_pow" = xyes; then :
  16557  POW_LIB=-lm
  16558else
  16559  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  16560$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  16561fi
  16562
  16563fi
  16564
  16565fi
  16566
  16567    if test x$ac_cv_func_strtod = xyes; then
  16568
  16569$as_echo "#define HAVE_STRTOD 1" >>confdefs.h
  16570
  16571    fi
  16572    ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  16573if test "x$ac_cv_func_mprotect" = xyes; then :
  16574  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16575/* end confdefs.h.  */
  16576
  16577          #include <sys/types.h>
  16578          #include <sys/mman.h>
  16579
  16580int
  16581main ()
  16582{
  16583
  16584
  16585  ;
  16586  return 0;
  16587}
  16588_ACEOF
  16589if ac_fn_c_try_compile "$LINENO"; then :
  16590
  16591
  16592$as_echo "#define HAVE_MPROTECT 1" >>confdefs.h
  16593
  16594
  16595fi
  16596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16597fi
  16598
  16599    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
  16600do :
  16601  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  16602ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  16603if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  16604  cat >>confdefs.h <<_ACEOF
  16605#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  16606_ACEOF
  16607
  16608fi
  16609done
  16610
  16611
  16612    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  16613$as_echo_n "checking for pow in -lm... " >&6; }
  16614if ${ac_cv_lib_m_pow+:} false; then :
  16615  $as_echo_n "(cached) " >&6
  16616else
  16617  ac_check_lib_save_LIBS=$LIBS
  16618LIBS="-lm  $LIBS"
  16619cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16620/* end confdefs.h.  */
  16621
  16622/* Override any GCC internal prototype to avoid an error.
  16623   Use char because int might match the return type of a GCC
  16624   builtin and then its argument prototype would still apply.  */
  16625#ifdef __cplusplus
  16626extern "C"
  16627#endif
  16628char pow ();
  16629int
  16630main ()
  16631{
  16632return pow ();
  16633  ;
  16634  return 0;
  16635}
  16636_ACEOF
  16637if ac_fn_c_try_link "$LINENO"; then :
  16638  ac_cv_lib_m_pow=yes
  16639else
  16640  ac_cv_lib_m_pow=no
  16641fi
  16642rm -f core conftest.err conftest.$ac_objext \
  16643    conftest$ac_exeext conftest.$ac_ext
  16644LIBS=$ac_check_lib_save_LIBS
  16645fi
  16646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  16647$as_echo "$ac_cv_lib_m_pow" >&6; }
  16648if test "x$ac_cv_lib_m_pow" = xyes; then :
  16649  LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  16650fi
  16651
  16652    for ac_func in atan atan2 acos asin ceil copysign cos cosf fabs floor log pow scalbn sin sinf sqrt sqrtf tan tanf
  16653do :
  16654  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  16655ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  16656if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  16657  cat >>confdefs.h <<_ACEOF
  16658#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  16659_ACEOF
  16660
  16661fi
  16662done
  16663
  16664
  16665    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  16666$as_echo_n "checking for iconv_open in -liconv... " >&6; }
  16667if ${ac_cv_lib_iconv_iconv_open+:} false; then :
  16668  $as_echo_n "(cached) " >&6
  16669else
  16670  ac_check_lib_save_LIBS=$LIBS
  16671LIBS="-liconv  $LIBS"
  16672cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16673/* end confdefs.h.  */
  16674
  16675/* Override any GCC internal prototype to avoid an error.
  16676   Use char because int might match the return type of a GCC
  16677   builtin and then its argument prototype would still apply.  */
  16678#ifdef __cplusplus
  16679extern "C"
  16680#endif
  16681char iconv_open ();
  16682int
  16683main ()
  16684{
  16685return iconv_open ();
  16686  ;
  16687  return 0;
  16688}
  16689_ACEOF
  16690if ac_fn_c_try_link "$LINENO"; then :
  16691  ac_cv_lib_iconv_iconv_open=yes
  16692else
  16693  ac_cv_lib_iconv_iconv_open=no
  16694fi
  16695rm -f core conftest.err conftest.$ac_objext \
  16696    conftest$ac_exeext conftest.$ac_ext
  16697LIBS=$ac_check_lib_save_LIBS
  16698fi
  16699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  16700$as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
  16701if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
  16702  LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  16703fi
  16704
  16705    for ac_func in iconv
  16706do :
  16707  ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  16708if test "x$ac_cv_func_iconv" = xyes; then :
  16709  cat >>confdefs.h <<_ACEOF
  16710#define HAVE_ICONV 1
  16711_ACEOF
  16712
  16713fi
  16714done
  16715
  16716
  16717    ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  16718"
  16719if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
  16720  $as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  16721
  16722fi
  16723
  16724fi
  16725
  16726
  16727# Check whether --enable-gcc-atomics was given.
  16728if test "${enable_gcc_atomics+set}" = set; then :
  16729  enableval=$enable_gcc_atomics;
  16730else
  16731  enable_gcc_atomics=yes
  16732fi
  16733
  16734if test x$enable_gcc_atomics = xyes; then
  16735    have_gcc_atomics=no
  16736    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  16737$as_echo_n "checking for GCC builtin atomic operations... " >&6; }
  16738    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16739/* end confdefs.h.  */
  16740
  16741
  16742int
  16743main ()
  16744{
  16745
  16746    int a;
  16747    void *x, *y, *z;
  16748    __sync_lock_test_and_set(&a, 4);
  16749    __sync_lock_test_and_set(&x, y);
  16750    __sync_fetch_and_add(&a, 1);
  16751    __sync_bool_compare_and_swap(&a, 5, 10);
  16752    __sync_bool_compare_and_swap(&x, y, z);
  16753
  16754  ;
  16755  return 0;
  16756}
  16757_ACEOF
  16758if ac_fn_c_try_link "$LINENO"; then :
  16759
  16760    have_gcc_atomics=yes
  16761
  16762fi
  16763rm -f core conftest.err conftest.$ac_objext \
  16764    conftest$ac_exeext conftest.$ac_ext
  16765    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  16766$as_echo "$have_gcc_atomics" >&6; }
  16767
  16768    if test x$have_gcc_atomics = xyes; then
  16769
  16770$as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  16771
  16772    else
  16773        # See if we have the minimum operation needed for GCC atomics
  16774        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16775/* end confdefs.h.  */
  16776
  16777
  16778int
  16779main ()
  16780{
  16781
  16782        int a;
  16783        __sync_lock_test_and_set(&a, 1);
  16784        __sync_lock_release(&a);
  16785
  16786  ;
  16787  return 0;
  16788}
  16789_ACEOF
  16790if ac_fn_c_try_link "$LINENO"; then :
  16791
  16792        have_gcc_sync_lock_test_and_set=yes
  16793
  16794fi
  16795rm -f core conftest.err conftest.$ac_objext \
  16796    conftest$ac_exeext conftest.$ac_ext
  16797        if test x$have_gcc_sync_lock_test_and_set = xyes; then
  16798
  16799$as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  16800
  16801        fi
  16802    fi
  16803fi
  16804
  16805# Standard C sources
  16806SOURCES="$SOURCES $srcdir/src/*.c"
  16807SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  16808SOURCES="$SOURCES $srcdir/src/audio/*.c"
  16809SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  16810SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  16811SOURCES="$SOURCES $srcdir/src/events/*.c"
  16812SOURCES="$SOURCES $srcdir/src/file/*.c"
  16813SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  16814SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  16815SOURCES="$SOURCES $srcdir/src/libm/*.c"
  16816SOURCES="$SOURCES $srcdir/src/power/*.c"
  16817#SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  16818SOURCES="$SOURCES $srcdir/src/render/*.c"
  16819SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  16820SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  16821SOURCES="$SOURCES $srcdir/src/thread/*.c"
  16822SOURCES="$SOURCES $srcdir/src/timer/*.c"
  16823SOURCES="$SOURCES $srcdir/src/video/*.c"
  16824
  16825
  16826# Check whether --enable-atomic was given.
  16827if test "${enable_atomic+set}" = set; then :
  16828  enableval=$enable_atomic;
  16829else
  16830  enable_atomic=yes
  16831fi
  16832
  16833if test x$enable_atomic != xyes; then
  16834
  16835$as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  16836
  16837else
  16838    SUMMARY_modules="${SUMMARY_modules} atomic"
  16839fi
  16840# Check whether --enable-audio was given.
  16841if test "${enable_audio+set}" = set; then :
  16842  enableval=$enable_audio;
  16843else
  16844  enable_audio=yes
  16845fi
  16846
  16847if test x$enable_audio != xyes; then
  16848
  16849$as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  16850
  16851else
  16852    SUMMARY_modules="${SUMMARY_modules} audio"
  16853fi
  16854# Check whether --enable-video was given.
  16855if test "${enable_video+set}" = set; then :
  16856  enableval=$enable_video;
  16857else
  16858  enable_video=yes
  16859fi
  16860
  16861if test x$enable_video != xyes; then
  16862
  16863$as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  16864
  16865else
  16866    SUMMARY_modules="${SUMMARY_modules} video"
  16867fi
  16868# Check whether --enable-render was given.
  16869if test "${enable_render+set}" = set; then :
  16870  enableval=$enable_render;
  16871else
  16872  enable_render=yes
  16873fi
  16874
  16875if test x$enable_render != xyes; then
  16876
  16877$as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  16878
  16879else
  16880    SUMMARY_modules="${SUMMARY_modules} render"
  16881fi
  16882# Check whether --enable-events was given.
  16883if test "${enable_events+set}" = set; then :
  16884  enableval=$enable_events;
  16885else
  16886  enable_events=yes
  16887fi
  16888
  16889if test x$enable_events != xyes; then
  16890
  16891$as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  16892
  16893else
  16894    SUMMARY_modules="${SUMMARY_modules} events"
  16895fi
  16896# Check whether --enable-joystick was given.
  16897if test "${enable_joystick+set}" = set; then :
  16898  enableval=$enable_joystick;
  16899else
  16900  enable_joystick=yes
  16901fi
  16902
  16903if test x$enable_joystick != xyes; then
  16904
  16905$as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  16906
  16907else
  16908    SUMMARY_modules="${SUMMARY_modules} joystick"
  16909fi
  16910# Check whether --enable-haptic was given.
  16911if test "${enable_haptic+set}" = set; then :
  16912  enableval=$enable_haptic;
  16913else
  16914  enable_haptic=yes
  16915fi
  16916
  16917if test x$enable_haptic != xyes; then
  16918
  16919$as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  16920
  16921else
  16922    SUMMARY_modules="${SUMMARY_modules} haptic"
  16923fi
  16924# Check whether --enable-power was given.
  16925if test "${enable_power+set}" = set; then :
  16926  enableval=$enable_power;
  16927else
  16928  enable_power=yes
  16929fi
  16930
  16931if test x$enable_power != xyes; then
  16932
  16933$as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
  16934
  16935else
  16936    SUMMARY_modules="${SUMMARY_modules} power"
  16937fi
  16938# Check whether --enable-filesystem was given.
  16939if test "${enable_filesystem+set}" = set; then :
  16940  enableval=$enable_filesystem;
  16941else
  16942  enable_filesystem=yes
  16943fi
  16944
  16945if test x$enable_filesystem != xyes; then
  16946
  16947$as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  16948
  16949else
  16950    SUMMARY_modules="${SUMMARY_modules} filesystem"
  16951fi
  16952# Check whether --enable-threads was given.
  16953if test "${enable_threads+set}" = set; then :
  16954  enableval=$enable_threads;
  16955else
  16956  enable_threads=yes
  16957fi
  16958
  16959if test x$enable_threads != xyes; then
  16960
  16961$as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  16962
  16963else
  16964    SUMMARY_modules="${SUMMARY_modules} threads"
  16965fi
  16966# Check whether --enable-timers was given.
  16967if test "${enable_timers+set}" = set; then :
  16968  enableval=$enable_timers;
  16969else
  16970  enable_timers=yes
  16971fi
  16972
  16973if test x$enable_timers != xyes; then
  16974
  16975$as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  16976
  16977else
  16978    SUMMARY_modules="${SUMMARY_modules} timers"
  16979fi
  16980# Check whether --enable-file was given.
  16981if test "${enable_file+set}" = set; then :
  16982  enableval=$enable_file;
  16983else
  16984  enable_file=yes
  16985fi
  16986
  16987if test x$enable_file != xyes; then
  16988
  16989$as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h
  16990
  16991else
  16992    SUMMARY_modules="${SUMMARY_modules} file"
  16993fi
  16994# Check whether --enable-loadso was given.
  16995if test "${enable_loadso+set}" = set; then :
  16996  enableval=$enable_loadso;
  16997else
  16998  enable_loadso=yes
  16999fi
  17000
  17001if test x$enable_loadso != xyes; then
  17002
  17003$as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  17004
  17005else
  17006    SUMMARY_modules="${SUMMARY_modules} loadso"
  17007fi
  17008# Check whether --enable-cpuinfo was given.
  17009if test "${enable_cpuinfo+set}" = set; then :
  17010  enableval=$enable_cpuinfo;
  17011else
  17012  enable_cpuinfo=yes
  17013fi
  17014
  17015if test x$enable_cpuinfo != xyes; then
  17016
  17017$as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  17018
  17019else
  17020    SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  17021fi
  17022# Check whether --enable-assembly was given.
  17023if test "${enable_assembly+set}" = set; then :
  17024  enableval=$enable_assembly;
  17025else
  17026  enable_assembly=yes
  17027fi
  17028
  17029if test x$enable_assembly = xyes; then
  17030    SUMMARY_modules="${SUMMARY_modules} assembly"
  17031
  17032
  17033$as_echo "#define SDL_ASSEMBLY_ROUTINES 1" >>confdefs.h
  17034
  17035
  17036    # Make sure that we don't generate floating point code that would
  17037    # cause illegal instruction exceptions on older processors
  17038    case "$host" in
  17039        *-*-darwin*)
  17040            # Don't need to worry about Apple hardware, it's all SSE capable
  17041            default_ssemath=yes
  17042            ;;
  17043        *64-*-*)
  17044            # x86 64-bit architectures all have SSE instructions
  17045            default_ssemath=yes
  17046            ;;
  17047        *)
  17048            default_ssemath=no
  17049            ;;
  17050    esac
  17051    # Check whether --enable-ssemath was given.
  17052if test "${enable_ssemath+set}" = set; then :
  17053  enableval=$enable_ssemath;
  17054else
  17055  enable_ssemath=$default_ssemath
  17056fi
  17057
  17058    if test x$enable_ssemath = xno; then
  17059        if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes; then
  17060            EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  17061        fi
  17062    fi
  17063
  17064        # Check whether --enable-mmx was given.
  17065if test "${enable_mmx+set}" = set; then :
  17066  enableval=$enable_mmx;
  17067else
  17068  enable_mmx=yes
  17069fi
  17070
  17071    if test x$enable_mmx = xyes; then
  17072        save_CFLAGS="$CFLAGS"
  17073        have_gcc_mmx=no
  17074        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  17075$as_echo_n "checking for GCC -mmmx option... " >&6; }
  17076        mmx_CFLAGS="-mmmx"
  17077        CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  17078
  17079        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17080/* end confdefs.h.  */
  17081
  17082        #ifdef __MINGW32__
  17083        #include <_mingw.h>
  17084        #ifdef __MINGW64_VERSION_MAJOR
  17085        #include <intrin.h>
  17086        #else
  17087        #include <mmintrin.h>
  17088        #endif
  17089        #else
  17090        #include <mmintrin.h>
  17091        #endif
  17092        #ifndef __MMX__
  17093        #error Assembler CPP flag not enabled
  17094        #endif
  17095
  17096int
  17097main ()
  17098{
  17099
  17100
  17101  ;
  17102  return 0;
  17103}
  17104_ACEOF
  17105if ac_fn_c_try_compile "$LINENO"; then :
  17106
  17107        have_gcc_mmx=yes
  17108
  17109fi
  17110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17111        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  17112$as_echo "$have_gcc_mmx" >&6; }
  17113        CFLAGS="$save_CFLAGS"
  17114
  17115        if test x$have_gcc_mmx = xyes; then
  17116            EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  17117            SUMMARY_math="${SUMMARY_math} mmx"
  17118        fi
  17119    fi
  17120
  17121    # Check whether --enable-3dnow was given.
  17122if test "${enable_3dnow+set}" = set; then :
  17123  enableval=$enable_3dnow;
  17124else
  17125  enable_3dnow=yes
  17126fi
  17127
  17128    if test x$enable_3dnow = xyes; then
  17129        save_CFLAGS="$CFLAGS"
  17130        have_gcc_3dnow=no
  17131        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  17132$as_echo_n "checking for GCC -m3dnow option... " >&6; }
  17133        amd3dnow_CFLAGS="-m3dnow"
  17134        CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  17135
  17136        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17137/* end confdefs.h.  */
  17138
  17139        #include <mm3dnow.h>
  17140        #ifndef __3dNOW__
  17141        #error Assembler CPP flag not enabled
  17142        #endif
  17143
  17144int
  17145main ()
  17146{
  17147
  17148        void *p = 0;
  17149        _m_prefetch(p);
  17150
  17151  ;
  17152  return 0;
  17153}
  17154_ACEOF
  17155if ac_fn_c_try_link "$LINENO"; then :
  17156
  17157        have_gcc_3dnow=yes
  17158
  17159fi
  17160rm -f core conftest.err conftest.$ac_objext \
  17161    conftest$ac_exeext conftest.$ac_ext
  17162        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  17163$as_echo "$have_gcc_3dnow" >&6; }
  17164        CFLAGS="$save_CFLAGS"
  17165
  17166        if test x$have_gcc_3dnow = xyes; then
  17167            EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  17168            SUMMARY_math="${SUMMARY_math} 3dnow"
  17169        fi
  17170    fi
  17171
  17172    # Check whether --enable-sse was given.
  17173if test "${enable_sse+set}" = set; then :
  17174  enableval=$enable_sse;
  17175else
  17176  enable_sse=yes
  17177fi
  17178
  17179    if test x$enable_sse = xyes; then
  17180        save_CFLAGS="$CFLAGS"
  17181        have_gcc_sse=no
  17182        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  17183$as_echo_n "checking for GCC -msse option... " >&6; }
  17184        sse_CFLAGS="-msse"
  17185        CFLAGS="$save_CFLAGS $sse_CFLAGS"
  17186
  17187        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17188/* end confdefs.h.  */
  17189
  17190        #ifdef __MINGW32__
  17191        #include <_mingw.h>
  17192        #ifdef __MINGW64_VERSION_MAJOR
  17193        #include <intrin.h>
  17194        #else
  17195        #include <xmmintrin.h>
  17196        #endif
  17197        #else
  17198        #include <xmmintrin.h>
  17199        #endif
  17200        #ifndef __SSE__
  17201        #error Assembler CPP flag not enabled
  17202        #endif
  17203
  17204int
  17205main ()
  17206{
  17207
  17208
  17209  ;
  17210  return 0;
  17211}
  17212_ACEOF
  17213if ac_fn_c_try_compile "$LINENO"; then :
  17214
  17215        have_gcc_sse=yes
  17216
  17217fi
  17218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17219        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  17220$as_echo "$have_gcc_sse" >&6; }
  17221        CFLAGS="$save_CFLAGS"
  17222
  17223        if test x$have_gcc_sse = xyes; then
  17224            EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  17225            SUMMARY_math="${SUMMARY_math} sse"
  17226        fi
  17227    fi
  17228
  17229    # Check whether --enable-sse2 was given.
  17230if test "${enable_sse2+set}" = set; then :
  17231  enableval=$enable_sse2;
  17232else
  17233  enable_sse2=$default_ssemath
  17234fi
  17235
  17236    if test x$enable_sse2 = xyes; then
  17237        save_CFLAGS="$CFLAGS"
  17238        have_gcc_sse2=no
  17239        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  17240$as_echo_n "checking for GCC -msse2 option... " >&6; }
  17241        sse2_CFLAGS="-msse2"
  17242        CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  17243
  17244        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17245/* end confdefs.h.  */
  17246
  17247        #ifdef __MINGW32__
  17248        #include <_mingw.h>
  17249        #ifdef __MINGW64_VERSION_MAJOR
  17250        #include <intrin.h>
  17251        #else
  17252        #include <emmintrin.h>
  17253        #endif
  17254        #else
  17255        #include <emmintrin.h>
  17256        #endif
  17257        #ifndef __SSE2__
  17258        #error Assembler CPP flag not enabled
  17259        #endif
  17260
  17261int
  17262main ()
  17263{
  17264
  17265
  17266  ;
  17267  return 0;
  17268}
  17269_ACEOF
  17270if ac_fn_c_try_compile "$LINENO"; then :
  17271
  17272        have_gcc_sse2=yes
  17273
  17274fi
  17275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17276        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  17277$as_echo "$have_gcc_sse2" >&6; }
  17278        CFLAGS="$save_CFLAGS"
  17279
  17280        if test x$have_gcc_sse2 = xyes; then
  17281            EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  17282            SUMMARY_math="${SUMMARY_math} sse2"
  17283        fi
  17284    fi
  17285
  17286    # Check whether --enable-altivec was given.
  17287if test "${enable_altivec+set}" = set; then :
  17288  enableval=$enable_altivec;
  17289else
  17290  enable_altivec=yes
  17291fi
  17292
  17293    if test x$enable_altivec = xyes; then
  17294        save_CFLAGS="$CFLAGS"
  17295        have_gcc_altivec=no
  17296        have_altivec_h_hdr=no
  17297        altivec_CFLAGS="-maltivec"
  17298        CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  17299
  17300        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  17301$as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  17302        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17303/* end confdefs.h.  */
  17304
  17305        #include <altivec.h>
  17306        vector unsigned int vzero() {
  17307            return vec_splat_u32(0);
  17308        }
  17309
  17310int
  17311main ()
  17312{
  17313
  17314
  17315  ;
  17316  return 0;
  17317}
  17318_ACEOF
  17319if ac_fn_c_try_compile "$LINENO"; then :
  17320
  17321        have_gcc_altivec=yes
  17322        have_altivec_h_hdr=yes
  17323
  17324fi
  17325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17326        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  17327$as_echo "$have_gcc_altivec" >&6; }
  17328
  17329        if test x$have_gcc_altivec = xno; then
  17330            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  17331$as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; }
  17332            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17333/* end confdefs.h.  */
  17334
  17335            vector unsigned int vzero() {
  17336                return vec_splat_u32(0);
  17337            }
  17338
  17339int
  17340main ()
  17341{
  17342
  17343
  17344  ;
  17345  return 0;
  17346}
  17347_ACEOF
  17348if ac_fn_c_try_compile "$LINENO"; then :
  17349
  17350            have_gcc_altivec=yes
  17351
  17352fi
  17353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17354            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  17355$as_echo "$have_gcc_altivec" >&6; }
  17356        fi
  17357
  17358        if test x$have_gcc_altivec = xno; then
  17359            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  17360$as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  17361            altivec_CFLAGS="-faltivec"
  17362            CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  17363            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17364/* end confdefs.h.  */
  17365
  17366            #include <altivec.h>
  17367            vector unsigned int vzero() {
  17368                return vec_splat_u32(0);
  17369            }
  17370
  17371int
  17372main ()
  17373{
  17374
  17375
  17376  ;
  17377  return 0;
  17378}
  17379_ACEOF
  17380if ac_fn_c_try_compile "$LINENO"; then :
  17381
  17382            have_gcc_altivec=yes
  17383            have_altivec_h_hdr=yes
  17384
  17385fi
  17386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17387            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  17388$as_echo "$have_gcc_altivec" >&6; }
  17389        fi
  17390
  17391        if test x$have_gcc_altivec = xno; then
  17392            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  17393$as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; }
  17394            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17395/* end confdefs.h.  */
  17396
  17397            vector unsigned int vzero() {
  17398                return vec_splat_u32(0);
  17399            }
  17400
  17401int
  17402main ()
  17403{
  17404
  17405
  17406  ;
  17407  return 0;
  17408}
  17409_ACEOF
  17410if ac_fn_c_try_compile "$LINENO"; then :
  17411
  17412            have_gcc_altivec=yes
  17413
  17414fi
  17415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17416            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  17417$as_echo "$have_gcc_altivec" >&6; }
  17418        fi
  17419        CFLAGS="$save_CFLAGS"
  17420
  17421        if test x$have_gcc_altivec = xyes; then
  17422
  17423$as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  17424
  17425            if test x$have_altivec_h_hdr = xyes; then
  17426
  17427$as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  17428
  17429            fi
  17430            EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  17431            SUMMARY_math="${SUMMARY_math} altivec"
  17432        fi
  17433    fi
  17434fi
  17435
  17436CheckOSS()
  17437{
  17438    # Check whether --enable-oss was given.
  17439if test "${enable_oss+set}" = set; then :
  17440  enableval=$enable_oss;
  17441else
  17442  enable_oss=maybe
  17443fi
  17444
  17445
  17446    # OpenBSD "has" OSS, but it's not really for app use. They want you to
  17447    #  use sndio instead. So on there, we default to disabled. You can force
  17448    #  it on if you really want, though.
  17449    if test x$enable_oss = xmaybe; then
  17450        enable_oss=yes
  17451        case "$host" in
  17452            *-*-openbsd*)
  17453                enable_oss=no;;
  17454        esac
  17455    fi
  17456
  17457    if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  17458        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  17459$as_echo_n "checking for OSS audio support... " >&6; }
  17460        have_oss=no
  17461        if test x$have_oss != xyes; then
  17462            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17463/* end confdefs.h.  */
  17464
  17465              #include <sys/soundcard.h>
  17466
  17467int
  17468main ()
  17469{
  17470
  17471              int arg = SNDCTL_DSP_SETFRAGMENT;
  17472
  17473  ;
  17474  return 0;
  17475}
  17476_ACEOF
  17477if ac_fn_c_try_compile "$LINENO"; then :
  17478
  17479            have_oss=yes
  17480
  17481fi
  17482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17483        fi
  17484        if test x$have_oss != xyes; then
  17485            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17486/* end confdefs.h.  */
  17487
  17488              #include <soundcard.h>
  17489
  17490int
  17491main ()
  17492{
  17493
  17494              int arg = SNDCTL_DSP_SETFRAGMENT;
  17495
  17496  ;
  17497  return 0;
  17498}
  17499_ACEOF
  17500if ac_fn_c_try_compile "$LINENO"; then :
  17501
  17502            have_oss=yes
  17503
  17504$as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  17505
  17506
  17507fi
  17508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17509        fi
  17510        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  17511$as_echo "$have_oss" >&6; }
  17512        if test x$have_oss = xyes; then
  17513            SUMMARY_audio="${SUMMARY_audio} oss"
  17514
  17515$as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  17516
  17517            SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  17518            have_audio=yes
  17519
  17520            # We may need to link with ossaudio emulation library
  17521            case "$host" in
  17522                *-*-openbsd*|*-*-netbsd*)
  17523                    EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  17524            esac
  17525        fi
  17526    fi
  17527}
  17528
  17529CheckALSA()
  17530{
  17531    # Check whether --enable-alsa was given.
  17532if test "${enable_alsa+set}" = set; then :
  17533  enableval=$enable_alsa;
  17534else
  17535  enable_alsa=yes
  17536fi
  17537
  17538    if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  17539        alsa_save_CFLAGS="$CFLAGS"
  17540alsa_save_LDFLAGS="$LDFLAGS"
  17541alsa_save_LIBS="$LIBS"
  17542alsa_found=yes
  17543
  17544
  17545# Check whether --with-alsa-prefix was given.
  17546if test "${with_alsa_prefix+set}" = set; then :
  17547  withval=$with_alsa_prefix; alsa_prefix="$withval"
  17548else
  17549  alsa_prefix=""
  17550fi
  17551
  17552
  17553
  17554# Check whether --with-alsa-inc-prefix was given.
  17555if test "${with_alsa_inc_prefix+set}" = set; then :
  17556  withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  17557else
  17558  alsa_inc_prefix=""
  17559fi
  17560
  17561
  17562# Check whether --enable-alsatest was given.
  17563if test "${enable_alsatest+set}" = set; then :
  17564  enableval=$enable_alsatest; enable_alsatest="$enableval"
  17565else
  17566  enable_alsatest=yes
  17567fi
  17568
  17569
  17570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  17571$as_echo_n "checking for ALSA CFLAGS... " >&6; }
  17572if test "$alsa_inc_prefix" != "" ; then
  17573	ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  17574	CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  17575fi
  17576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  17577$as_echo "$ALSA_CFLAGS" >&6; }
  17578
  17579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  17580$as_echo_n "checking for ALSA LDFLAGS... " >&6; }
  17581if test "$alsa_prefix" != "" ; then
  17582	ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  17583	LDFLAGS="$LDFLAGS $ALSA_LIBS"
  17584fi
  17585
  17586ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  17587LIBS=`echo $LIBS | sed 's/-lm//'`
  17588LIBS=`echo $LIBS | sed 's/-ldl//'`
  17589LIBS=`echo $LIBS | sed 's/-lpthread//'`
  17590LIBS=`echo $LIBS | sed 's/  //'`
  17591LIBS="$ALSA_LIBS $LIBS"
  17592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  17593$as_echo "$ALSA_LIBS" >&6; }
  17594
  17595min_alsa_version=0.9.0
  17596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  17597$as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
  17598no_alsa=""
  17599    alsa_min_major_version=`echo $min_alsa_version | \
  17600           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  17601    alsa_min_minor_version=`echo $min_alsa_version | \
  17602           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  17603    alsa_min_micro_version=`echo $min_alsa_version | \
  17604           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  17605
  17606
  17607ac_ext=c
  17608ac_cpp='$CPP $CPPFLAGS'
  17609ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17610ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17611ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17612
  17613cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17614/* end confdefs.h.  */
  17615
  17616#include <alsa/asoundlib.h>
  17617
  17618int
  17619main ()
  17620{
  17621
  17622/* ensure backward compatibility */
  17623#if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  17624#define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  17625#endif
  17626#if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  17627#define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  17628#endif
  17629#if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  17630#define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  17631#endif
  17632
  17633#  if(SND_LIB_MAJOR > $alsa_min_major_version)
  17634  exit(0);
  17635#  else
  17636#    if(SND_LIB_MAJOR < $alsa_min_major_version)
  17637#       error not present
  17638#    endif
  17639
  17640#   if(SND_LIB_MINOR > $alsa_min_minor_version)
  17641  exit(0);
  17642#   else
  17643#     if(SND_LIB_MINOR < $alsa_min_minor_version)
  17644#          error not present
  17645#      endif
  17646
  17647#      if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  17648#        error not present
  17649#      endif
  17650#    endif
  17651#  endif
  17652exit(0);
  17653
  17654  ;
  17655  return 0;
  17656}
  17657_ACEOF
  17658if ac_fn_c_try_compile "$LINENO"; then :
  17659  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
  17660$as_echo "found." >&6; }
  17661else
  17662  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  17663$as_echo "not present." >&6; }
  17664
  17665   alsa_found=no
  17666
  17667fi
  17668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17669ac_ext=c
  17670ac_cpp='$CPP $CPPFLAGS'
  17671ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17672ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17673ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17674
  17675
  17676if test "x$enable_alsatest" = "xyes"; then
  17677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  17678$as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
  17679if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
  17680  $as_echo_n "(cached) " >&6
  17681else
  17682  ac_check_lib_save_LIBS=$LIBS
  17683LIBS="-lasound  $LIBS"
  17684cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17685/* end confdefs.h.  */
  17686
  17687/* Override any GCC internal prototype to avoid an error.
  17688   Use char because int might match the return type of a GCC
  17689   builtin and then its argument prototype would still apply.  */
  17690#ifdef __cplusplus
  17691extern "C"
  17692#endif
  17693char snd_ctl_open ();
  17694int
  17695main ()
  17696{
  17697return snd_ctl_open ();
  17698  ;
  17699  return 0;
  17700}
  17701_ACEOF
  17702if ac_fn_c_try_link "$LINENO"; then :
  17703  ac_cv_lib_asound_snd_ctl_open=yes
  17704else
  17705  ac_cv_lib_asound_snd_ctl_open=no
  17706fi
  17707rm -f core conftest.err conftest.$ac_objext \
  17708    conftest$ac_exeext conftest.$ac_ext
  17709LIBS=$ac_check_lib_save_LIBS
  17710fi
  17711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  17712$as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  17713if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
  17714  cat >>confdefs.h <<_ACEOF
  17715#define HAVE_LIBASOUND 1
  17716_ACEOF
  17717
  17718  LIBS="-lasound $LIBS"
  17719
  17720else
  17721
  17722	 alsa_found=no
  17723
  17724fi
  17725
  17726fi
  17727
  17728if test "x$alsa_found" = "xyes" ; then
  17729   have_alsa=yes
  17730   LIBS=`echo $LIBS | sed 's/-lasound//g'`
  17731   LIBS=`echo $LIBS | sed 's/  //'`
  17732   LIBS="-lasound $LIBS"
  17733fi
  17734if test "x$alsa_found" = "xno" ; then
  17735   have_alsa=no
  17736   CFLAGS="$alsa_save_CFLAGS"
  17737   LDFLAGS="$alsa_save_LDFLAGS"
  17738   LIBS="$alsa_save_LIBS"
  17739   ALSA_CFLAGS=""
  17740   ALSA_LIBS=""
  17741fi
  17742
  17743
  17744
  17745
  17746        # Restore all flags from before the ALSA detection runs
  17747        CFLAGS="$alsa_save_CFLAGS"
  17748        LDFLAGS="$alsa_save_LDFLAGS"
  17749        LIBS="$alsa_save_LIBS"
  17750        if test x$have_alsa = xyes; then
  17751            # Check whether --enable-alsa-shared was given.
  17752if test "${enable_alsa_shared+set}" = set; then :
  17753  enableval=$enable_alsa_shared;
  17754else
  17755  enable_alsa_shared=yes
  17756fi
  17757
  17758            alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17759
  17760
  17761$as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  17762
  17763            SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  17764            EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  17765            if test x$have_loadso != xyes && \
  17766               test x$enable_alsa_shared = xyes; then
  17767                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  17768$as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  17769            fi
  17770            if test x$have_loadso = xyes && \
  17771               test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  17772                echo "-- dynamic libasound -> $alsa_lib"
  17773
  17774cat >>confdefs.h <<_ACEOF
  17775#define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
  17776_ACEOF
  17777
  17778                SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  17779            else
  17780                EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  17781                SUMMARY_audio="${SUMMARY_audio} alsa"
  17782            fi
  17783            have_audio=yes
  17784        fi
  17785    fi
  17786}
  17787
  17788CheckESD()
  17789{
  17790    # Check whether --enable-esd was given.
  17791if test "${enable_esd+set}" = set; then :
  17792  enableval=$enable_esd;
  17793else
  17794  enable_esd=yes
  17795fi
  17796
  17797    if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  17798
  17799# Check whether --with-esd-prefix was given.
  17800if test "${with_esd_prefix+set}" = set; then :
  17801  withval=$with_esd_prefix; esd_prefix="$withval"
  17802else
  17803  esd_prefix=""
  17804fi
  17805
  17806
  17807# Check whether --with-esd-exec-prefix was given.
  17808if test "${with_esd_exec_prefix+set}" = set; then :
  17809  withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  17810else
  17811  esd_exec_prefix=""
  17812fi
  17813
  17814# Check whether --enable-esdtest was given.
  17815if test "${enable_esdtest+set}" = set; then :
  17816  enableval=$enable_esdtest;
  17817else
  17818  enable_esdtest=yes
  17819fi
  17820
  17821
  17822  if test x$esd_exec_prefix != x ; then
  17823     esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  17824     if test x${ESD_CONFIG+set} != xset ; then
  17825        ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  17826     fi
  17827  fi
  17828  if test x$esd_prefix != x ; then
  17829     esd_args="$esd_args --prefix=$esd_prefix"
  17830     if test x${ESD_CONFIG+set} != xset ; then
  17831        ESD_CONFIG=$esd_prefix/bin/esd-config
  17832     fi
  17833  fi
  17834
  17835  # Extract the first word of "esd-config", so it can be a program name with args.
  17836set dummy esd-config; ac_word=$2
  17837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17838$as_echo_n "checking for $ac_word... " >&6; }
  17839if ${ac_cv_path_ESD_CONFIG+:} false; then :
  17840  $as_echo_n "(cached) " >&6
  17841else
  17842  case $ESD_CONFIG in
  17843  [\\/]* | ?:[\\/]*)
  17844  ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  17845  ;;
  17846  *)
  17847  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17848for as_dir in $PATH
  17849do
  17850  IFS=$as_save_IFS
  17851  test -z "$as_dir" && as_dir=.
  17852    for ac_exec_ext in '' $ac_executable_extensions; do
  17853  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17854    ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17855    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17856    break 2
  17857  fi
  17858done
  17859  done
  17860IFS=$as_save_IFS
  17861
  17862  test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  17863  ;;
  17864esac
  17865fi
  17866ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  17867if test -n "$ESD_CONFIG"; then
  17868  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  17869$as_echo "$ESD_CONFIG" >&6; }
  17870else
  17871  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17872$as_echo "no" >&6; }
  17873fi
  17874
  17875
  17876  min_esd_version=0.2.8
  17877  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  17878$as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
  17879  no_esd=""
  17880  if test "$ESD_CONFIG" = "no" ; then
  17881    no_esd=yes
  17882  else
  17883    ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  17884    ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  17885
  17886    esd_major_version=`$ESD_CONFIG $esd_args --version | \
  17887           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  17888    esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  17889           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  17890    esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  17891           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  17892    if test "x$enable_esdtest" = "xyes" ; then
  17893      ac_save_CFLAGS="$CFLAGS"
  17894      ac_save_LIBS="$LIBS"
  17895      CFLAGS="$CFLAGS $ESD_CFLAGS"
  17896      LIBS="$LIBS $ESD_LIBS"
  17897      rm -f conf.esdtest
  17898      if test "$cross_compiling" = yes; then :
  17899  echo $ac_n "cross compiling; assumed OK... $ac_c"
  17900else
  17901  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17902/* end confdefs.h.  */
  17903
  17904#include <stdio.h>
  17905#include <stdlib.h>
  17906#include <string.h>
  17907#include <esd.h>
  17908
  17909char*
  17910my_strdup (char *str)
  17911{
  17912  char *new_str;
  17913
  17914  if (str)
  17915    {
  17916      new_str = malloc ((strlen (str) + 1) * sizeof(char));
  17917      strcpy (new_str, str);
  17918    }
  17919  else
  17920    new_str = NULL;
  17921
  17922  return new_str;
  17923}
  17924
  17925int main ()
  17926{
  17927  int major, minor, micro;
  17928  char *tmp_version;
  17929
  17930  system ("touch conf.esdtest");
  17931
  17932  /* HP/UX 9 (%@#!) writes to sscanf strings */
  17933  tmp_version = my_strdup("$min_esd_version");
  17934  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  17935     printf("%s, bad version string\n", "$min_esd_version");
  17936     exit(1);
  17937   }
  17938
  17939   if (($esd_major_version > major) ||
  17940      (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  17941      (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  17942    {
  17943      return 0;
  17944    }
  17945  else
  17946    {
  17947      printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  17948      printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  17949      printf("*** best to upgrade to the required version.\n");
  17950      printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  17951      printf("*** to point to the correct copy of esd-config, and remove the file\n");
  17952      printf("*** config.cache before re-running configure\n");
  17953      return 1;
  17954    }
  17955}
  17956
  17957
  17958_ACEOF
  17959if ac_fn_c_try_run "$LINENO"; then :
  17960
  17961else
  17962  no_esd=yes
  17963fi
  17964rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17965  conftest.$ac_objext conftest.beam conftest.$ac_ext
  17966fi
  17967
  17968       CFLAGS="$ac_save_CFLAGS"
  17969       LIBS="$ac_save_LIBS"
  17970     fi
  17971  fi
  17972  if test "x$no_esd" = x ; then
  17973     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17974$as_echo "yes" >&6; }
  17975     have_esd=yes
  17976  else
  17977     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17978$as_echo "no" >&6; }
  17979     if test "$ESD_CONFIG" = "no" ; then
  17980       echo "*** The esd-config script installed by ESD could not be found"
  17981       echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
  17982       echo "*** your path, or set the ESD_CONFIG environment variable to the"
  17983       echo "*** full path to esd-config."
  17984     else
  17985       if test -f conf.esdtest ; then
  17986        :
  17987       else
  17988          echo "*** Could not run ESD test program, checking why..."
  17989          CFLAGS="$CFLAGS $ESD_CFLAGS"
  17990          LIBS="$LIBS $ESD_LIBS"
  17991          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17992/* end confdefs.h.  */
  17993
  17994#include <stdio.h>
  17995#include <esd.h>
  17996
  17997int
  17998main ()
  17999{
  18000 return 0;
  18001  ;
  18002  return 0;
  18003}
  18004_ACEOF
  18005if ac_fn_c_try_link "$LINENO"; then :
  18006   echo "*** The test program compiled, but did not run. This usually means"
  18007          echo "*** that the run-time linker is not finding ESD or finding the wrong"
  18008          echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  18009          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  18010          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
  18011          echo "*** is required on your system"
  18012	  echo "***"
  18013          echo "*** If you have an old version installed, it is best to remove it, although"
  18014          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  18015else
  18016   echo "*** The test program failed to compile or link. See the file config.log for the"
  18017          echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  18018          echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  18019          echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  18020fi
  18021rm -f core conftest.err conftest.$ac_objext \
  18022    conftest$ac_exeext conftest.$ac_ext
  18023          CFLAGS="$ac_save_CFLAGS"
  18024          LIBS="$ac_save_LIBS"
  18025       fi
  18026     fi
  18027     ESD_CFLAGS=""
  18028     ESD_LIBS=""
  18029     have_esd=no
  18030  fi
  18031
  18032
  18033  rm -f conf.esdtest
  18034
  18035        if test x$have_esd = xyes; then
  18036            # Check whether --enable-esd-shared was given.
  18037if test "${enable_esd_shared+set}" = set; then :
  18038  enableval=$enable_esd_shared;
  18039else
  18040  enable_esd_shared=yes
  18041fi
  18042
  18043            esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18044
  18045
  18046$as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  18047
  18048            SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  18049            EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  18050            if test x$have_loadso != xyes && \
  18051               test x$enable_esd_shared = xyes; then
  18052                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  18053$as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  18054            fi
  18055            if test x$have_loadso = xyes && \
  18056               test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  18057                echo "-- dynamic libesd -> $esd_lib"
  18058
  18059cat >>confdefs.h <<_ACEOF
  18060#define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
  18061_ACEOF
  18062
  18063                SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  18064            else
  18065                EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  18066                SUMMARY_audio="${SUMMARY_audio} esd"
  18067            fi
  18068            have_audio=yes
  18069        fi
  18070    fi
  18071}
  18072
  18073CheckPulseAudio()
  18074{
  18075    # Check whether --enable-pulseaudio was given.
  18076if test "${enable_pulseaudio+set}" = set; then :
  18077  enableval=$enable_pulseaudio;
  18078else
  18079  enable_pulseaudio=yes
  18080fi
  18081
  18082    if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  18083        audio_pulseaudio=no
  18084
  18085        PULSEAUDIO_REQUIRED_VERSION=0.9
  18086
  18087        # Extract the first word of "pkg-config", so it can be a program name with args.
  18088set dummy pkg-config; ac_word=$2
  18089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18090$as_echo_n "checking for $ac_word... " >&6; }
  18091if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18092  $as_echo_n "(cached) " >&6
  18093else
  18094  case $PKG_CONFIG in
  18095  [\\/]* | ?:[\\/]*)
  18096  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18097  ;;
  18098  *)
  18099  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18100for as_dir in $PATH
  18101do
  18102  IFS=$as_save_IFS
  18103  test -z "$as_dir" && as_dir=.
  18104    for ac_exec_ext in '' $ac_executable_extensions; do
  18105  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18106    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18107    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18108    break 2
  18109  fi
  18110done
  18111  done
  18112IFS=$as_save_IFS
  18113
  18114  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18115  ;;
  18116esac
  18117fi
  18118PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18119if test -n "$PKG_CONFIG"; then
  18120  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18121$as_echo "$PKG_CONFIG" >&6; }
  18122else
  18123  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18124$as_echo "no" >&6; }
  18125fi
  18126
  18127
  18128        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support" >&5
  18129$as_echo_n "checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support... " >&6; }
  18130        if test x$PKG_CONFIG != xno; then
  18131        if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $PULSEAUDIO_REQUIRED_VERSION libpulse-simple; then
  18132                PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags libpulse-simple`
  18133                PULSEAUDIO_LIBS=`$PKG_CONFIG --libs libpulse-simple`
  18134                audio_pulseaudio=yes
  18135            fi
  18136        fi
  18137        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_pulseaudio" >&5
  18138$as_echo "$audio_pulseaudio" >&6; }
  18139
  18140        if test x$audio_pulseaudio = xyes; then
  18141            # Check whether --enable-pulseaudio-shared was given.
  18142if test "${enable_pulseaudio_shared+set}" = set; then :
  18143  enableval=$enable_pulseaudio_shared;
  18144else
  18145  enable_pulseaudio_shared=yes
  18146fi
  18147
  18148            pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18149
  18150
  18151$as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  18152
  18153            SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  18154            EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  18155            if test x$have_loadso != xyes && \
  18156               test x$enable_pulseaudio_shared = xyes; then
  18157                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  18158$as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  18159            fi
  18160            if test x$have_loadso = xyes && \
  18161               test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  18162                echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  18163
  18164cat >>confdefs.h <<_ACEOF
  18165#define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib"
  18166_ACEOF
  18167
  18168                SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  18169
  18170                case "$host" in
  18171                    # On Solaris, pulseaudio must be linked deferred explicitly
  18172                    # to prevent undefined symbol failures.
  18173                    *-*-solaris*)
  18174                        PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  18175                        EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  18176                esac
  18177            else
  18178                EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  18179                SUMMARY_audio="${SUMMARY_audio} pulse"
  18180            fi
  18181            have_audio=yes
  18182        fi
  18183    fi
  18184}
  18185
  18186CheckARTSC()
  18187{
  18188    # Check whether --enable-arts was given.
  18189if test "${enable_arts+set}" = set; then :
  18190  enableval=$enable_arts;
  18191else
  18192  enable_arts=yes
  18193fi
  18194
  18195    if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  18196        # Extract the first word of "artsc-config", so it can be a program name with args.
  18197set dummy artsc-config; ac_word=$2
  18198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18199$as_echo_n "checking for $ac_word... " >&6; }
  18200if ${ac_cv_path_ARTSCONFIG+:} false; then :
  18201  $as_echo_n "(cached) " >&6
  18202else
  18203  case $ARTSCONFIG in
  18204  [\\/]* | ?:[\\/]*)
  18205  ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  18206  ;;
  18207  *)
  18208  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18209for as_dir in $PATH
  18210do
  18211  IFS=$as_save_IFS
  18212  test -z "$as_dir" && as_dir=.
  18213    for ac_exec_ext in '' $ac_executable_extensions; do
  18214  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18215    ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
  18216    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18217    break 2
  18218  fi
  18219done
  18220  done
  18221IFS=$as_save_IFS
  18222
  18223  ;;
  18224esac
  18225fi
  18226ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  18227if test -n "$ARTSCONFIG"; then
  18228  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  18229$as_echo "$ARTSCONFIG" >&6; }
  18230else
  18231  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18232$as_echo "no" >&6; }
  18233fi
  18234
  18235
  18236        if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  18237            : # arts isn't installed
  18238        else
  18239            ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  18240            ARTS_LIBS=`$ARTSCONFIG --libs`
  18241            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  18242$as_echo_n "checking for aRts development environment... " >&6; }
  18243            audio_arts=no
  18244            save_CFLAGS="$CFLAGS"
  18245            CFLAGS="$CFLAGS $ARTS_CFLAGS"
  18246            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18247/* end confdefs.h.  */
  18248
  18249             #include <artsc.h>
  18250
  18251int
  18252main ()
  18253{
  18254
  18255             arts_stream_t stream;
  18256
  18257  ;
  18258  return 0;
  18259}
  18260_ACEOF
  18261if ac_fn_c_try_compile "$LINENO"; then :
  18262
  18263            audio_arts=yes
  18264
  18265fi
  18266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18267            CFLAGS="$save_CFLAGS"
  18268            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  18269$as_echo "$audio_arts" >&6; }
  18270            if test x$audio_arts = xyes; then
  18271                # Check whether --enable-arts-shared was given.
  18272if test "${enable_arts_shared+set}" = set; then :
  18273  enableval=$enable_arts_shared;
  18274else
  18275  enable_arts_shared=yes
  18276fi
  18277
  18278                arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18279
  18280
  18281$as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  18282
  18283                SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  18284                EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  18285                if test x$have_loadso != xyes && \
  18286                   test x$enable_arts_shared = xyes; then
  18287                    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  18288$as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  18289                fi
  18290                if test x$have_loadso = xyes && \
  18291                   test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  18292                    echo "-- dynamic libartsc -> $arts_lib"
  18293
  18294cat >>confdefs.h <<_ACEOF
  18295#define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
  18296_ACEOF
  18297
  18298                    SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  18299                else
  18300                    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  18301                    SUMMARY_audio="${SUMMARY_audio} arts"
  18302                fi
  18303                have_audio=yes
  18304            fi
  18305        fi
  18306    fi
  18307}
  18308
  18309CheckNAS()
  18310{
  18311    # Check whether --enable-nas was given.
  18312if test "${enable_nas+set}" = set; then :
  18313  enableval=$enable_nas;
  18314else
  18315  enable_nas=yes
  18316fi
  18317
  18318    if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  18319        ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  18320if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
  18321  have_nas_hdr=yes
  18322fi
  18323
  18324
  18325        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  18326$as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
  18327if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
  18328  $as_echo_n "(cached) " >&6
  18329else
  18330  ac_check_lib_save_LIBS=$LIBS
  18331LIBS="-laudio  $LIBS"
  18332cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18333/* end confdefs.h.  */
  18334
  18335/* Override any GCC internal prototype to avoid an error.
  18336   Use char because int might match the return type of a GCC
  18337   builtin and then its argument prototype would still apply.  */
  18338#ifdef __cplusplus
  18339extern "C"
  18340#endif
  18341char AuOpenServer ();
  18342int
  18343main ()
  18344{
  18345return AuOpenServer ();
  18346  ;
  18347  return 0;
  18348}
  18349_ACEOF
  18350if ac_fn_c_try_link "$LINENO"; then :
  18351  ac_cv_lib_audio_AuOpenServer=yes
  18352else
  18353  ac_cv_lib_audio_AuOpenServer=no
  18354fi
  18355rm -f core conftest.err conftest.$ac_objext \
  18356    conftest$ac_exeext conftest.$ac_ext
  18357LIBS=$ac_check_lib_save_LIBS
  18358fi
  18359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  18360$as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
  18361if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
  18362  have_nas_lib=yes
  18363fi
  18364
  18365
  18366        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  18367$as_echo_n "checking for NAS audio support... " >&6; }
  18368        have_nas=no
  18369
  18370        if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  18371            have_nas=yes
  18372            NAS_LIBS="-laudio"
  18373
  18374        elif test -r /usr/X11R6/include/audio/audiolib.h; then
  18375            have_nas=yes
  18376            NAS_CFLAGS="-I/usr/X11R6/include/"
  18377            NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  18378
  18379        fi
  18380
  18381        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  18382$as_echo "$have_nas" >&6; }
  18383
  18384        if test x$have_nas = xyes; then
  18385            # Check whether --enable-nas-shared was given.
  18386if test "${enable_nas_shared+set}" = set; then :
  18387  enableval=$enable_nas_shared;
  18388else
  18389  enable_nas_shared=yes
  18390fi
  18391
  18392            nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18393
  18394            if test x$have_loadso != xyes && \
  18395               test x$enable_nas_shared = xyes; then
  18396                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  18397$as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  18398            fi
  18399            if test x$have_loadso = xyes && \
  18400               test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  18401                echo "-- dynamic libaudio -> $nas_lib"
  18402
  18403cat >>confdefs.h <<_ACEOF
  18404#define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
  18405_ACEOF
  18406
  18407                SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  18408            else
  18409                EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  18410                SUMMARY_audio="${SUMMARY_audio} nas"
  18411            fi
  18412
  18413
  18414$as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  18415
  18416            SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  18417            EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  18418            have_audio=yes
  18419        fi
  18420    fi
  18421}
  18422
  18423CheckSNDIO()
  18424{
  18425    # Check whether --enable-sndio was given.
  18426if test "${enable_sndio+set}" = set; then :
  18427  enableval=$enable_sndio;
  18428else
  18429  enable_sndio=yes
  18430fi
  18431
  18432    if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  18433        ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  18434if test "x$ac_cv_header_sndio_h" = xyes; then :
  18435  have_sndio_hdr=yes
  18436fi
  18437
  18438
  18439        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  18440$as_echo_n "checking for sio_open in -lsndio... " >&6; }
  18441if ${ac_cv_lib_sndio_sio_open+:} false; then :
  18442  $as_echo_n "(cached) " >&6
  18443else
  18444  ac_check_lib_save_LIBS=$LIBS
  18445LIBS="-lsndio  $LIBS"
  18446cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18447/* end confdefs.h.  */
  18448
  18449/* Override any GCC internal prototype to avoid an error.
  18450   Use char because int might match the return type of a GCC
  18451   builtin and then its argument prototype would still apply.  */
  18452#ifdef __cplusplus
  18453extern "C"
  18454#endif
  18455char sio_open ();
  18456int
  18457main ()
  18458{
  18459return sio_open ();
  18460  ;
  18461  return 0;
  18462}
  18463_ACEOF
  18464if ac_fn_c_try_link "$LINENO"; then :
  18465  ac_cv_lib_sndio_sio_open=yes
  18466else
  18467  ac_cv_lib_sndio_sio_open=no
  18468fi
  18469rm -f core conftest.err conftest.$ac_objext \
  18470    conftest$ac_exeext conftest.$ac_ext
  18471LIBS=$ac_check_lib_save_LIBS
  18472fi
  18473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  18474$as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
  18475if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
  18476  have_sndio_lib=yes
  18477fi
  18478
  18479
  18480        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  18481$as_echo_n "checking for sndio audio support... " >&6; }
  18482        have_sndio=no
  18483
  18484        if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  18485            have_sndio=yes
  18486            SNDIO_LIBS="-lsndio"
  18487        fi
  18488
  18489        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  18490$as_echo "$have_sndio" >&6; }
  18491
  18492        if test x$have_sndio = xyes; then
  18493            # Check whether --enable-sndio-shared was given.
  18494if test "${enable_sndio_shared+set}" = set; then :
  18495  enableval=$enable_sndio_shared;
  18496else
  18497  enable_sndio_shared=yes
  18498fi
  18499
  18500            sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18501
  18502            if test x$have_loadso != xyes && \
  18503               test x$enable_sndio_shared = xyes; then
  18504                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  18505$as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  18506            fi
  18507            if test x$have_loadso = xyes && \
  18508               test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  18509                echo "-- dynamic libsndio -> $sndio_lib"
  18510
  18511cat >>confdefs.h <<_ACEOF
  18512#define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib"
  18513_ACEOF
  18514
  18515                SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  18516            else
  18517                EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  18518                SUMMARY_audio="${SUMMARY_audio} sndio"
  18519            fi
  18520
  18521
  18522$as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  18523
  18524            SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  18525            EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  18526            have_audio=yes
  18527        fi
  18528    fi
  18529}
  18530
  18531CheckDiskAudio()
  18532{
  18533    # Check whether --enable-diskaudio was given.
  18534if test "${enable_diskaudio+set}" = set; then :
  18535  enableval=$enable_diskaudio;
  18536else
  18537  enable_diskaudio=yes
  18538fi
  18539
  18540    if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  18541
  18542$as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  18543
  18544        SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  18545        SUMMARY_audio="${SUMMARY_audio} disk"
  18546    fi
  18547}
  18548
  18549CheckDummyAudio()
  18550{
  18551    # Check whether --enable-dummyaudio was given.
  18552if test "${enable_dummyaudio+set}" = set; then :
  18553  enableval=$enable_dummyaudio;
  18554else
  18555  enable_dummyaudio=yes
  18556fi
  18557
  18558    if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  18559
  18560$as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  18561
  18562        SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  18563        SUMMARY_audio="${SUMMARY_audio} dummy"
  18564    fi
  18565}
  18566
  18567CheckVisibilityHidden()
  18568{
  18569    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  18570$as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; }
  18571    have_gcc_fvisibility=no
  18572
  18573    visibility_CFLAGS="-fvisibility=hidden"
  18574    save_CFLAGS="$CFLAGS"
  18575    CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  18576    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18577/* end confdefs.h.  */
  18578
  18579    #if !defined(__GNUC__) || __GNUC__ < 4
  18580    #error SDL only uses visibility attributes in GCC 4 or newer
  18581    #endif
  18582
  18583int
  18584main ()
  18585{
  18586
  18587
  18588  ;
  18589  return 0;
  18590}
  18591_ACEOF
  18592if ac_fn_c_try_compile "$LINENO"; then :
  18593
  18594    have_gcc_fvisibility=yes
  18595
  18596fi
  18597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18598    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  18599$as_echo "$have_gcc_fvisibility" >&6; }
  18600    CFLAGS="$save_CFLAGS"
  18601
  18602    if test x$have_gcc_fvisibility = xyes; then
  18603        EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  18604    fi
  18605}
  18606
  18607CheckStackBoundary()
  18608{
  18609    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  18610$as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  18611    have_gcc_preferred_stack_boundary=no
  18612
  18613    save_CFLAGS="$CFLAGS"
  18614    CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  18615    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18616/* end confdefs.h.  */
  18617
  18618    int x = 0;
  18619
  18620int
  18621main ()
  18622{
  18623
  18624
  18625  ;
  18626  return 0;
  18627}
  18628_ACEOF
  18629if ac_fn_c_try_compile "$LINENO"; then :
  18630
  18631    have_gcc_preferred_stack_boundary=yes
  18632
  18633fi
  18634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18635    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  18636$as_echo "$have_gcc_preferred_stack_boundary" >&6; }
  18637    CFLAGS="$save_CFLAGS"
  18638
  18639    if test x$have_gcc_preferred_stack_boundary = xyes; then
  18640        EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  18641    fi
  18642}
  18643
  18644CheckWarnAll()
  18645{
  18646    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  18647$as_echo_n "checking for GCC -Wall option... " >&6; }
  18648    have_gcc_Wall=no
  18649
  18650    save_CFLAGS="$CFLAGS"
  18651    CFLAGS="$save_CFLAGS -Wall"
  18652    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18653/* end confdefs.h.  */
  18654
  18655    int x = 0;
  18656
  18657int
  18658main ()
  18659{
  18660
  18661
  18662  ;
  18663  return 0;
  18664}
  18665_ACEOF
  18666if ac_fn_c_try_compile "$LINENO"; then :
  18667
  18668    have_gcc_Wall=yes
  18669
  18670fi
  18671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18672    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  18673$as_echo "$have_gcc_Wall" >&6; }
  18674    CFLAGS="$save_CFLAGS"
  18675
  18676    if test x$have_gcc_Wall = xyes; then
  18677        EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  18678
  18679                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  18680$as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; }
  18681        need_gcc_Wno_multichar=no
  18682        case "$host" in
  18683            *-*-haiku*)
  18684                need_gcc_Wno_multichar=yes
  18685                ;;
  18686        esac
  18687        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  18688$as_echo "$need_gcc_Wno_multichar" >&6; }
  18689        if test x$need_gcc_Wno_multichar = xyes; then
  18690            EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  18691        fi
  18692    fi
  18693}
  18694
  18695CheckWarnShadow()
  18696{
  18697    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wshadow option" >&5
  18698$as_echo_n "checking for GCC -Wshadow option... " >&6; }
  18699    have_gcc_Wshadow=no
  18700
  18701    save_CFLAGS="$CFLAGS"
  18702    CFLAGS="$save_CFLAGS -Wshadow"
  18703    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18704/* end confdefs.h.  */
  18705
  18706    int x = 0;
  18707
  18708int
  18709main ()
  18710{
  18711
  18712
  18713  ;
  18714  return 0;
  18715}
  18716_ACEOF
  18717if ac_fn_c_try_compile "$LINENO"; then :
  18718
  18719    have_gcc_Wshadow=yes
  18720
  18721fi
  18722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18723    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wshadow" >&5
  18724$as_echo "$have_gcc_Wshadow" >&6; }
  18725    CFLAGS="$save_CFLAGS"
  18726
  18727    if test x$have_gcc_Wshadow = xyes; then
  18728        EXTRA_CFLAGS="$EXTRA_CFLAGS -Wshadow"
  18729    fi
  18730}
  18731
  18732CheckWayland()
  18733{
  18734    # Check whether --enable-video-wayland was given.
  18735if test "${enable_video_wayland+set}" = set; then :
  18736  enableval=$enable_video_wayland;
  18737else
  18738  enable_video_wayland=yes
  18739fi
  18740
  18741
  18742    # Check whether --enable-video-wayland-qt-touch was given.
  18743if test "${enable_video_wayland_qt_touch+set}" = set; then :
  18744  enableval=$enable_video_wayland_qt_touch;
  18745else
  18746  enable_video_wayland_qt_touch=yes
  18747fi
  18748
  18749
  18750    if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  18751        # Extract the first word of "pkg-config", so it can be a program name with args.
  18752set dummy pkg-config; ac_word=$2
  18753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18754$as_echo_n "checking for $ac_word... " >&6; }
  18755if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18756  $as_echo_n "(cached) " >&6
  18757else
  18758  case $PKG_CONFIG in
  18759  [\\/]* | ?:[\\/]*)
  18760  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18761  ;;
  18762  *)
  18763  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18764for as_dir in $PATH
  18765do
  18766  IFS=$as_save_IFS
  18767  test -z "$as_dir" && as_dir=.
  18768    for ac_exec_ext in '' $ac_executable_extensions; do
  18769  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18770    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18771    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18772    break 2
  18773  fi
  18774done
  18775  done
  18776IFS=$as_save_IFS
  18777
  18778  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18779  ;;
  18780esac
  18781fi
  18782PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18783if test -n "$PKG_CONFIG"; then
  18784  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18785$as_echo "$PKG_CONFIG" >&6; }
  18786else
  18787  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18788$as_echo "no" >&6; }
  18789fi
  18790
  18791
  18792        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  18793$as_echo_n "checking for Wayland support... " >&6; }
  18794        video_wayland=no
  18795        if  test x$PKG_CONFIG != xno && \
  18796            test x$video_opengl_egl = xyes && \
  18797            test x$video_opengles_v2 = xyes; then
  18798            if $PKG_CONFIG --exists wayland-client wayland-egl wayland-cursor egl xkbcommon ; then
  18799                WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  18800                WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  18801                video_wayland=yes
  18802            fi
  18803        fi
  18804        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  18805$as_echo "$video_wayland" >&6; }
  18806
  18807        if test x$video_wayland = xyes; then
  18808
  18809$as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  18810
  18811            if test x$enable_video_wayland_qt_touch = xyes; then
  18812
  18813$as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  18814
  18815            fi
  18816            SOURCES="$SOURCES $srcdir/src/video/wayland/*.c"
  18817            EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS"
  18818            # Check whether --enable-wayland-shared was given.
  18819if test "${enable_wayland_shared+set}" = set; then :
  18820  enableval=$enable_wayland_shared;
  18821else
  18822  enable_wayland_shared=maybe
  18823fi
  18824
  18825
  18826                        case "$host" in
  18827                *)
  18828                    wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18829                    wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18830                    if test x$wayland_egl_lib = x; then
  18831                                                wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18832                    fi
  18833                    wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18834                    xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18835                    ;;
  18836            esac
  18837
  18838            if test x$enable_wayland_shared = xmaybe; then
  18839                enable_wayland_shared=yes
  18840            fi
  18841            if test x$have_loadso != xyes && \
  18842               test x$enable_wayland_shared = xyes; then
  18843                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  18844$as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  18845                enable_wayland_shared=no
  18846            fi
  18847            if test x$have_loadso = xyes && \
  18848               test x$enable_wayland_shared = xyes && \
  18849               test x$wayland_client_lib != x && \
  18850               test x$wayland_egl_lib != x && \
  18851               test x$wayland_cursor_lib != x && \
  18852               test x$xkbcommon_lib != x; then
  18853                echo "-- dynamic libwayland-client -> $wayland_client_lib"
  18854                echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  18855                echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  18856                echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  18857
  18858cat >>confdefs.h <<_ACEOF
  18859#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC "$wayland_client_lib"
  18860_ACEOF
  18861
  18862
  18863cat >>confdefs.h <<_ACEOF
  18864#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL "$wayland_egl_lib"
  18865_ACEOF
  18866
  18867
  18868cat >>confdefs.h <<_ACEOF
  18869#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR "$wayland_cursor_lib"
  18870_ACEOF
  18871
  18872
  18873cat >>confdefs.h <<_ACEOF
  18874#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_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
  18888CheckMir()
  18889{
  18890    # Check whether --enable-video-mir was given.
  18891if test "${enable_video_mir+set}" = set; then :
  18892  enableval=$enable_video_mir;
  18893else
  18894  enable_video_mir=yes
  18895fi
  18896
  18897
  18898    if test x$enable_video = xyes -a x$enable_video_mir = xyes; then
  18899        # Extract the first word of "pkg-config", so it can be a program name with args.
  18900set 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; }
  18903if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18904  $as_echo_n "(cached) " >&6
  18905else
  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
  18912for as_dir in $PATH
  18913do
  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
  18922done
  18923  done
  18924IFS=$as_save_IFS
  18925
  18926  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18927  ;;
  18928esac
  18929fi
  18930PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18931if test -n "$PKG_CONFIG"; then
  18932  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18933$as_echo "$PKG_CONFIG" >&6; }
  18934else
  18935  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18936$as_echo "no" >&6; }
  18937fi
  18938
  18939
  18940        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mir support" >&5
  18941$as_echo_n "checking for Mir support... " >&6; }
  18942        video_mir=no
  18943        if test x$PKG_CONFIG != xno; then
  18944            if $PKG_CONFIG --exists mirclient egl xkbcommon ; then
  18945                MIR_CFLAGS=`$PKG_CONFIG --cflags mirclient egl xkbcommon`
  18946                MIR_LIBS=`$PKG_CONFIG --libs mirclient egl xkbcommon`
  18947                save_CFLAGS="$CFLAGS"
  18948                CFLAGS="$save_CFLAGS $MIR_CFLAGS"
  18949
  18950                                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18951/* end confdefs.h.  */
  18952
  18953                #include <mir_toolkit/mir_client_library.h>
  18954
  18955int
  18956main ()
  18957{
  18958
  18959                    MirMotionToolType tool = mir_motion_tool_type_mouse;
  18960
  18961  ;
  18962  return 0;
  18963}
  18964_ACEOF
  18965if ac_fn_c_try_compile "$LINENO"; then :
  18966
  18967                video_mir=yes
  18968
  18969fi
  18970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18971                CFLAGS="$save_CFLAGS"
  18972            fi
  18973        fi
  18974        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_mir" >&5
  18975$as_echo "$video_mir" >&6; }
  18976
  18977        if test x$video_mir = xyes; then
  18978
  18979$as_echo "#define SDL_VIDEO_DRIVER_MIR 1" >>confdefs.h
  18980
  18981            SOURCES="$SOURCES $srcdir/src/video/mir/*.c"
  18982            EXTRA_CFLAGS="$EXTRA_CFLAGS $MIR_CFLAGS"
  18983            # Check whether --enable-mir-shared was given.
  18984if test "${enable_mir_shared+set}" = set; then :
  18985  enableval=$enable_mir_shared;
  18986else
  18987  enable_mir_shared=maybe
  18988fi
  18989
  18990
  18991                        case "$host" in
  18992                *)
  18993                    mirclient_lib=`find_lib "libmirclient.so.*" "$MIR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18994                    xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$MIR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18995                    ;;
  18996            esac
  18997
  18998            if test x$enable_mir_shared = xmaybe; then
  18999                enable_mir_shared=yes
  19000            fi
  19001            if test x$have_loadso != xyes && \
  19002               test x$enable_mir_shared = xyes; then
  19003                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Mir loading" >&5
  19004$as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Mir loading" >&2;}
  19005                enable_mir_shared=no
  19006            fi
  19007            if test x$have_loadso = xyes && \
  19008               test x$enable_mir_shared = xyes && \
  19009               test x$mirclient_lib != x && \
  19010               test x$xkbcommon_lib != x; then
  19011                echo "-- dynamic libmirclient -> $mirclient_lib"
  19012                echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  19013
  19014cat >>confdefs.h <<_ACEOF
  19015#define SDL_VIDEO_DRIVER_MIR_DYNAMIC "$mirclient_lib"
  19016_ACEOF
  19017
  19018
  19019cat >>confdefs.h <<_ACEOF
  19020#define SDL_VIDEO_DRIVER_MIR_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  19021_ACEOF
  19022
  19023                SUMMARY_video="${SUMMARY_video} mir(dynamic)"
  19024            else
  19025                enable_mir_shared=no
  19026                EXTRA_LDFLAGS="$EXTRA_LDFLAGS $MIR_LIBS"
  19027                SUMMARY_video="${SUMMARY_video} mir"
  19028            fi
  19029            have_video=yes
  19030        fi
  19031    fi
  19032}
  19033
  19034CheckNativeClient()
  19035{
  19036        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19037/* end confdefs.h.  */
  19038
  19039          #if !defined(__native_client__)
  19040          #error "NO NACL"
  19041          #endif
  19042
  19043int
  19044main ()
  19045{
  19046
  19047
  19048  ;
  19049  return 0;
  19050}
  19051_ACEOF
  19052if ac_fn_c_try_compile "$LINENO"; then :
  19053
  19054        $as_echo "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  19055
  19056        $as_echo "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  19057
  19058
  19059$as_echo "#define HAVE_POW 1" >>confdefs.h
  19060
  19061
  19062$as_echo "#define HAVE_OPENGLES2 1" >>confdefs.h
  19063
  19064
  19065$as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19066
  19067
  19068$as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19069
  19070
  19071        SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  19072
  19073        SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  19074        SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  19075        SUMMARY_audio="${SUMMARY_audio} nacl"
  19076        SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  19077        SUMMARY_video="${SUMMARY_video} nacl opengles2"
  19078
  19079fi
  19080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19081}
  19082
  19083
  19084CheckX11()
  19085{
  19086
  19087
  19088    # Check whether --enable-video-x11 was given.
  19089if test "${enable_video_x11+set}" = set; then :
  19090  enableval=$enable_video_x11;
  19091else
  19092  enable_video_x11=yes
  19093fi
  19094
  19095    if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  19096        case "$host" in
  19097            *-*-darwin*)
  19098                # This isn't necessary for X11, but fixes GLX detection
  19099                if test "x$x_includes" = xNONE && \
  19100                   test "x$x_libraries" = xNONE && \
  19101                   test -d /usr/X11R6/include && \
  19102                   test -d /usr/X11R6/lib; then
  19103                    x_includes="/usr/X11R6/include"
  19104                    x_libraries="/usr/X11R6/lib"
  19105                fi
  19106                ;;
  19107        esac
  19108        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  19109$as_echo_n "checking for X... " >&6; }
  19110
  19111
  19112# Check whether --with-x was given.
  19113if test "${with_x+set}" = set; then :
  19114  withval=$with_x;
  19115fi
  19116
  19117# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  19118if test "x$with_x" = xno; then
  19119  # The user explicitly disabled X.
  19120  have_x=disabled
  19121else
  19122  case $x_includes,$x_libraries in #(
  19123    *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  19124    *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  19125  $as_echo_n "(cached) " >&6
  19126else
  19127  # One or both of the vars are not set, and there is no cached value.
  19128ac_x_includes=no ac_x_libraries=no
  19129rm -f -r conftest.dir
  19130if mkdir conftest.dir; then
  19131  cd conftest.dir
  19132  cat >Imakefile <<'_ACEOF'
  19133incroot:
  19134	@echo incroot='${INCROOT}'
  19135usrlibdir:
  19136	@echo usrlibdir='${USRLIBDIR}'
  19137libdir:
  19138	@echo libdir='${LIBDIR}'
  19139_ACEOF
  19140  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  19141    # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  19142    for ac_var in incroot usrlibdir libdir; do
  19143      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  19144    done
  19145    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  19146    for ac_extension in a so sl dylib la dll; do
  19147      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  19148	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
  19149	ac_im_usrlibdir=$ac_im_libdir; break
  19150      fi
  19151    done
  19152    # Screen out bogus values from the imake configuration.  They are
  19153    # bogus both because they are the default anyway, and because
  19154    # using them would break gcc on systems where it needs fixed includes.
  19155    case $ac_im_incroot in
  19156	/usr/include) ac_x_includes= ;;
  19157	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  19158    esac
  19159    case $ac_im_usrlibdir in
  19160	/usr/lib | /usr/lib64 | /lib | /lib64) ;;
  19161	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  19162    esac
  19163  fi
  19164  cd ..
  19165  rm -f -r conftest.dir
  19166fi
  19167
  19168# Standard set of common directories for X headers.
  19169# Check X11 before X11Rn because it is often a symlink to the current release.
  19170ac_x_header_dirs='
  19171/usr/X11/include
  19172/usr/X11R7/include
  19173/usr/X11R6/include
  19174/usr/X11R5/include
  19175/usr/X11R4/include
  19176
  19177/usr/include/X11
  19178/usr/include/X11R7
  19179/usr/include/X11R6
  19180/usr/include/X11R5
  19181/usr/include/X11R4
  19182
  19183/usr/local/X11/include
  19184/usr/local/X11R7/include
  19185/usr/local/X11R6/include
  19186/usr/local/X11R5/include
  19187/usr/local/X11R4/include
  19188
  19189/usr/local/include/X11
  19190/usr/local/include/X11R7
  19191/usr/local/include/X11R6
  19192/usr/local/include/X11R5
  19193/usr/local/include/X11R4
  19194
  19195/usr/X386/include
  19196/usr/x386/include
  19197/usr/XFree86/include/X11
  19198
  19199/usr/include
  19200/usr/local/include
  19201/usr/unsupported/include
  19202/usr/athena/include
  19203/usr/local/x11r5/include
  19204/usr/lpp/Xamples/include
  19205
  19206/usr/openwin/include
  19207/usr/openwin/share/include'
  19208
  19209if test "$ac_x_includes" = no; then
  19210  # Guess where to find include files, by looking for Xlib.h.
  19211  # First, try using that file with no special directory specified.
  19212  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19213/* end confdefs.h.  */
  19214#include <X11/Xlib.h>
  19215_ACEOF
  19216if ac_fn_c_try_cpp "$LINENO"; then :
  19217  # We can compile using X headers with no special include directory.
  19218ac_x_includes=
  19219else
  19220  for ac_dir in $ac_x_header_dirs; do
  19221  if test -r "$ac_dir/X11/Xlib.h"; then
  19222    ac_x_includes=$ac_dir
  19223    break
  19224  fi
  19225done
  19226fi
  19227rm -f conftest.err conftest.i conftest.$ac_ext
  19228fi # $ac_x_includes = no
  19229
  19230if test "$ac_x_libraries" = no; then
  19231  # Check for the libraries.
  19232  # See if we find them without any special options.
  19233  # Don't add to $LIBS permanently.
  19234  ac_save_LIBS=$LIBS
  19235  LIBS="-lX11 $LIBS"
  19236  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19237/* end confdefs.h.  */
  19238#include <X11/Xlib.h>
  19239int
  19240main ()
  19241{
  19242XrmInitialize ()
  19243  ;
  19244  return 0;
  19245}
  19246_ACEOF
  19247if ac_fn_c_try_link "$LINENO"; then :
  19248  LIBS=$ac_save_LIBS
  19249# We can link X programs with no special library path.
  19250ac_x_libraries=
  19251else
  19252  LIBS=$ac_save_LIBS
  19253for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  19254do
  19255  # Don't even attempt the hair of trying to link an X program!
  19256  for ac_extension in a so sl dylib la dll; do
  19257    if test -r "$ac_dir/libX11.$ac_extension"; then
  19258      ac_x_libraries=$ac_dir
  19259      break 2
  19260    fi
  19261  done
  19262done
  19263fi
  19264rm -f core conftest.err conftest.$ac_objext \
  19265    conftest$ac_exeext conftest.$ac_ext
  19266fi # $ac_x_libraries = no
  19267
  19268case $ac_x_includes,$ac_x_libraries in #(
  19269  no,* | *,no | *\'*)
  19270    # Didn't find X, or a directory has "'" in its name.
  19271    ac_cv_have_x="have_x=no";; #(
  19272  *)
  19273    # Record where we found X for the cache.
  19274    ac_cv_have_x="have_x=yes\
  19275	ac_x_includes='$ac_x_includes'\
  19276	ac_x_libraries='$ac_x_libraries'"
  19277esac
  19278fi
  19279;; #(
  19280    *) have_x=yes;;
  19281  esac
  19282  eval "$ac_cv_have_x"
  19283fi # $with_x != no
  19284
  19285if test "$have_x" != yes; then
  19286  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  19287$as_echo "$have_x" >&6; }
  19288  no_x=yes
  19289else
  19290  # If each of the values was on the command line, it overrides each guess.
  19291  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  19292  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  19293  # Update the cache value to reflect the command line values.
  19294  ac_cv_have_x="have_x=yes\
  19295	ac_x_includes='$x_includes'\
  19296	ac_x_libraries='$x_libraries'"
  19297  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  19298$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  19299fi
  19300
  19301        if test "$no_x" = yes; then
  19302  # Not all programs may use this symbol, but it does not hurt to define it.
  19303
  19304$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  19305
  19306  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  19307else
  19308  if test -n "$x_includes"; then
  19309    X_CFLAGS="$X_CFLAGS -I$x_includes"
  19310  fi
  19311
  19312  # It would also be nice to do this for all -L options, not just this one.
  19313  if test -n "$x_libraries"; then
  19314    X_LIBS="$X_LIBS -L$x_libraries"
  19315    # For Solaris; some versions of Sun CC require a space after -R and
  19316    # others require no space.  Words are not sufficient . . . .
  19317    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  19318$as_echo_n "checking whether -R must be followed by a space... " >&6; }
  19319    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  19320    ac_xsave_c_werror_flag=$ac_c_werror_flag
  19321    ac_c_werror_flag=yes
  19322    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19323/* end confdefs.h.  */
  19324
  19325int
  19326main ()
  19327{
  19328
  19329  ;
  19330  return 0;
  19331}
  19332_ACEOF
  19333if ac_fn_c_try_link "$LINENO"; then :
  19334  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19335$as_echo "no" >&6; }
  19336       X_LIBS="$X_LIBS -R$x_libraries"
  19337else
  19338  LIBS="$ac_xsave_LIBS -R $x_libraries"
  19339       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19340/* end confdefs.h.  */
  19341
  19342int
  19343main ()
  19344{
  19345
  19346  ;
  19347  return 0;
  19348}
  19349_ACEOF
  19350if ac_fn_c_try_link "$LINENO"; then :
  19351  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19352$as_echo "yes" >&6; }
  19353	  X_LIBS="$X_LIBS -R $x_libraries"
  19354else
  19355  { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  19356$as_echo "neither works" >&6; }
  19357fi
  19358rm -f core conftest.err conftest.$ac_objext \
  19359    conftest$ac_exeext conftest.$ac_ext
  19360fi
  19361rm -f core conftest.err conftest.$ac_objext \
  19362    conftest$ac_exeext conftest.$ac_ext
  19363    ac_c_werror_flag=$ac_xsave_c_werror_flag
  19364    LIBS=$ac_xsave_LIBS
  19365  fi
  19366
  19367  # Check for system-dependent libraries X programs must link with.
  19368  # Do this before checking for the system-independent R6 libraries
  19369  # (-lICE), since we may need -lsocket or whatever for X linking.
  19370
  19371  if test "$ISC" = yes; then
  19372    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  19373  else
  19374    # Martyn Johnson says this is needed for Ultrix, if the X
  19375    # libraries were built with DECnet support.  And Karl Berry says
  19376    # the Alpha needs dnet_stub (dnet does not exist).
  19377    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  19378    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19379/* end confdefs.h.  */
  19380
  19381/* Override any GCC internal prototype to avoid an error.
  19382   Use char because int might match the return type of a GCC
  19383   builtin and then its argument prototype would still apply.  */
  19384#ifdef __cplusplus
  19385extern "C"
  19386#endif
  19387char XOpenDisplay ();
  19388int
  19389main ()
  19390{
  19391return XOpenDisplay ();
  19392  ;
  19393  return 0;
  19394}
  19395_ACEOF
  19396if ac_fn_c_try_link "$LINENO"; then :
  19397
  19398else
  19399  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  19400$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  19401if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  19402  $as_echo_n "(cached) " >&6
  19403else
  19404  ac_check_lib_save_LIBS=$LIBS
  19405LIBS="-ldnet  $LIBS"
  19406cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19407/* end confdefs.h.  */
  19408
  19409/* Override any GCC internal prototype to avoid an error.
  19410   Use char because int might match the return type of a GCC
  19411   builtin and then its argument prototype would still apply.  */
  19412#ifdef __cplusplus
  19413extern "C"
  19414#endif
  19415char dnet_ntoa ();
  19416int
  19417main ()
  19418{
  19419return dnet_ntoa ();
  19420  ;
  19421  return 0;
  19422}
  19423_ACEOF
  19424if ac_fn_c_try_link "$LINENO"; then :
  19425  ac_cv_lib_dnet_dnet_ntoa=yes
  19426else
  19427  ac_cv_lib_dnet_dnet_ntoa=no
  19428fi
  19429rm -f core conftest.err conftest.$ac_objext \
  19430    conftest$ac_exeext conftest.$ac_ext
  19431LIBS=$ac_check_lib_save_LIBS
  19432fi
  19433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  19434$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  19435if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  19436  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  19437fi
  19438
  19439    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  19440      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  19441$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  19442if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  19443  $as_echo_n "(cached) " >&6
  19444else
  19445  ac_check_lib_save_LIBS=$LIBS
  19446LIBS="-ldnet_stub  $LIBS"
  19447cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19448/* end confdefs.h.  */
  19449
  19450/* Override any GCC internal prototype to avoid an error.
  19451   Use char because int might match the return type of a GCC
  19452   builtin and then its argument prototype would still apply.  */
  19453#ifdef __cplusplus
  19454extern "C"
  19455#endif
  19456char dnet_ntoa ();
  19457int
  19458main ()
  19459{
  19460return dnet_ntoa ();
  19461  ;
  19462  return 0;
  19463}
  19464_ACEOF
  19465if ac_fn_c_try_link "$LINENO"; then :
  19466  ac_cv_lib_dnet_stub_dnet_ntoa=yes
  19467else
  19468  ac_cv_lib_dnet_stub_dnet_ntoa=no
  19469fi
  19470rm -f core conftest.err conftest.$ac_objext \
  19471    conftest$ac_exeext conftest.$ac_ext
  19472LIBS=$ac_check_lib_save_LIBS
  19473fi
  19474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  19475$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  19476if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  19477  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  19478fi
  19479
  19480    fi
  19481fi
  19482rm -f core conftest.err conftest.$ac_objext \
  19483    conftest$ac_exeext conftest.$ac_ext
  19484    LIBS="$ac_xsave_LIBS"
  19485
  19486    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  19487    # to get the SysV transport functions.
  19488    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  19489    # needs -lnsl.
  19490    # The nsl library prevents programs from opening the X display
  19491    # on Irix 5.2, according to T.E. Dickey.
  19492    # The functions gethostbyname, getservbyname, and inet_addr are
  19493    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  19494    ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  19495if test "x$ac_cv_func_gethostbyname" = xyes; then :
  19496
  19497fi
  19498
  19499    if test $ac_cv_func_gethostbyname = no; then
  19500      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  19501$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  19502if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  19503  $as_echo_n "(cached) " >&6
  19504else
  19505  ac_check_lib_save_LIBS=$LIBS
  19506LIBS="-lnsl  $LIBS"
  19507cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19508/* end confdefs.h.  */
  19509
  19510/* Override any GCC internal prototype to avoid an error.
  19511   Use char because int might match the return type of a GCC
  19512   builtin and then its argument prototype would still apply.  */
  19513#ifdef __cplusplus
  19514extern "C"
  19515#endif
  19516char gethostbyname ();
  19517int
  19518main ()
  19519{
  19520return gethostbyname ();
  19521  ;
  19522  return 0;
  19523}
  19524_ACEOF
  19525if ac_fn_c_try_link "$LINENO"; then :
  19526  ac_cv_lib_nsl_gethostbyname=yes
  19527else
  19528  ac_cv_lib_nsl_gethostbyname=no
  19529fi
  19530rm -f core conftest.err conftest.$ac_objext \
  19531    conftest$ac_exeext conftest.$ac_ext
  19532LIBS=$ac_check_lib_save_LIBS
  19533fi
  19534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  19535$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  19536if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  19537  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  19538fi
  19539
  19540      if test $ac_cv_lib_nsl_gethostbyname = no; then
  19541	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  19542$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  19543if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  19544  $as_echo_n "(cached) " >&6
  19545else
  19546  ac_check_lib_save_LIBS=$LIBS
  19547LIBS="-lbsd  $LIBS"
  19548cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19549/* end confdefs.h.  */
  19550
  19551/* Override any GCC internal prototype to avoid an error.
  19552   Use char because int might match the return type of a GCC
  19553   builtin and then its argument prototype would still apply.  */
  19554#ifdef __cplusplus
  19555extern "C"
  19556#endif
  19557char gethostbyname ();
  19558int
  19559main ()
  19560{
  19561return gethostbyname ();
  19562  ;
  19563  return 0;
  19564}
  19565_ACEOF
  19566if ac_fn_c_try_link "$LINENO"; then :
  19567  ac_cv_lib_bsd_gethostbyname=yes
  19568else
  19569  ac_cv_lib_bsd_gethostbyname=no
  19570fi
  19571rm -f core conftest.err conftest.$ac_objext \
  19572    conftest$ac_exeext conftest.$ac_ext
  19573LIBS=$ac_check_lib_save_LIBS
  19574fi
  19575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  19576$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  19577if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  19578  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  19579fi
  19580
  19581      fi
  19582    fi
  19583
  19584    # lieder@skyler.mavd.honeywell.com says without -lsocket,
  19585    # socket/setsockopt and other routines are undefined under SCO ODT
  19586    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
  19587    # on later versions), says Simon Leinen: it contains gethostby*
  19588    # variants that don't use the name server (or something).  -lsocket
  19589    # must be given before -lnsl if both are needed.  We assume that
  19590    # if connect needs -lnsl, so does gethostbyname.
  19591    ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  19592if test "x$ac_cv_func_connect" = xyes; then :
  19593
  19594fi
  19595
  19596    if test $ac_cv_func_connect = no; then
  19597      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  19598$as_echo_n "checking for connect in -lsocket... " >&6; }
  19599if ${ac_cv_lib_socket_connect+:} false; then :
  19600  $as_echo_n "(cached) " >&6
  19601else
  19602  ac_check_lib_save_LIBS=$LIBS
  19603LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  19604cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19605/* end confdefs.h.  */
  19606
  19607/* Override any GCC internal prototype to avoid an error.
  19608   Use char because int might match the return type of a GCC
  19609   builtin and then its argument prototype would still apply.  */
  19610#ifdef __cplusplus
  19611extern "C"
  19612#endif
  19613char connect ();
  19614int
  19615main ()
  19616{
  19617return connect ();
  19618  ;
  19619  return 0;
  19620}
  19621_ACEOF
  19622if ac_fn_c_try_link "$LINENO"; then :
  19623  ac_cv_lib_socket_connect=yes
  19624else
  19625  ac_cv_lib_socket_connect=no
  19626fi
  19627rm -f core conftest.err conftest.$ac_objext \
  19628    conftest$ac_exeext conftest.$ac_ext
  19629LIBS=$ac_check_lib_save_LIBS
  19630fi
  19631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  19632$as_echo "$ac_cv_lib_socket_connect" >&6; }
  19633if test "x$ac_cv_lib_socket_connect" = xyes; then :
  19634  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  19635fi
  19636
  19637    fi
  19638
  19639    # Guillermo Gomez says -lposix is necessary on A/UX.
  19640    ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  19641if test "x$ac_cv_func_remove" = xyes; then :
  19642
  19643fi
  19644
  19645    if test $ac_cv_func_remove = no; then
  19646      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  19647$as_echo_n "checking for remove in -lposix... " >&6; }
  19648if ${ac_cv_lib_posix_remove+:} false; then :
  19649  $as_echo_n "(cached) " >&6
  19650else
  19651  ac_check_lib_save_LIBS=$LIBS
  19652LIBS="-lposix  $LIBS"
  19653cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19654/* end confdefs.h.  */
  19655
  19656/* Override any GCC internal prototype to avoid an error.
  19657   Use char because int might match the return type of a GCC
  19658   builtin and then its argument prototype would still apply.  */
  19659#ifdef __cplusplus
  19660extern "C"
  19661#endif
  19662char remove ();
  19663int
  19664main ()
  19665{
  19666return remove ();
  19667  ;
  19668  return 0;
  19669}
  19670_ACEOF
  19671if ac_fn_c_try_link "$LINENO"; then :
  19672  ac_cv_lib_posix_remove=yes
  19673else
  19674  ac_cv_lib_posix_remove=no
  19675fi
  19676rm -f core conftest.err conftest.$ac_objext \
  19677    conftest$ac_exeext conftest.$ac_ext
  19678LIBS=$ac_check_lib_save_LIBS
  19679fi
  19680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  19681$as_echo "$ac_cv_lib_posix_remove" >&6; }
  19682if test "x$ac_cv_lib_posix_remove" = xyes; then :
  19683  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  19684fi
  19685
  19686    fi
  19687
  19688    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  19689    ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  19690if test "x$ac_cv_func_shmat" = xyes; then :
  19691
  19692fi
  19693
  19694    if test $ac_cv_func_shmat = no; then
  19695      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  19696$as_echo_n "checking for shmat in -lipc... " >&6; }
  19697if ${ac_cv_lib_ipc_shmat+:} false; then :
  19698  $as_echo_n "(cached) " >&6
  19699else
  19700  ac_check_lib_save_LIBS=$LIBS
  19701LIBS="-lipc  $LIBS"
  19702cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19703/* end confdefs.h.  */
  19704
  19705/* Override any GCC internal prototype to avoid an error.
  19706   Use char because int might match the return type of a GCC
  19707   builtin and then its argument prototype would still apply.  */
  19708#ifdef __cplusplus
  19709extern "C"
  19710#endif
  19711char shmat ();
  19712int
  19713main ()
  19714{
  19715return shmat ();
  19716  ;
  19717  return 0;
  19718}
  19719_ACEOF
  19720if ac_fn_c_try_link "$LINENO"; then :
  19721  ac_cv_lib_ipc_shmat=yes
  19722else
  19723  ac_cv_lib_ipc_shmat=no
  19724fi
  19725rm -f core conftest.err conftest.$ac_objext \
  19726    conftest$ac_exeext conftest.$ac_ext
  19727LIBS=$ac_check_lib_save_LIBS
  19728fi
  19729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  19730$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  19731if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  19732  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  19733fi
  19734
  19735    fi
  19736  fi
  19737
  19738  # Check for libraries that X11R6 Xt/Xaw programs need.
  19739  ac_save_LDFLAGS=$LDFLAGS
  19740  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  19741  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  19742  # check for ICE first), but we must link in the order -lSM -lICE or
  19743  # we get undefined symbols.  So assume we have SM if we have ICE.
  19744  # These have to be linked with before -lX11, unlike the other
  19745  # libraries we check for below, so use a different variable.
  19746  # John Interrante, Karl Berry
  19747  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  19748$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  19749if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  19750  $as_echo_n "(cached) " >&6
  19751else
  19752  ac_check_lib_save_LIBS=$LIBS
  19753LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  19754cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19755/* end confdefs.h.  */
  19756
  19757/* Override any GCC internal prototype to avoid an error.
  19758   Use char because int might match the return type of a GCC
  19759   builtin and then its argument prototype would still apply.  */
  19760#ifdef __cplusplus
  19761extern "C"
  19762#endif
  19763char IceConnectionNumber ();
  19764int
  19765main ()
  19766{
  19767return IceConnectionNumber ();
  19768  ;
  19769  return 0;
  19770}
  19771_ACEOF
  19772if ac_fn_c_try_link "$LINENO"; then :
  19773  ac_cv_lib_ICE_IceConnectionNumber=yes
  19774else
  19775  ac_cv_lib_ICE_IceConnectionNumber=no
  19776fi
  19777rm -f core conftest.err conftest.$ac_objext \
  19778    conftest$ac_exeext conftest.$ac_ext
  19779LIBS=$ac_check_lib_save_LIBS
  19780fi
  19781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  19782$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  19783if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  19784  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  19785fi
  19786
  19787  LDFLAGS=$ac_save_LDFLAGS
  19788
  19789fi
  19790
  19791        if test x$have_x = xyes; then
  19792            # Check whether --enable-x11-shared was given.
  19793if test "${enable_x11_shared+set}" = set; then :
  19794  enableval=$enable_x11_shared;
  19795else
  19796  enable_x11_shared=maybe
  19797fi
  19798
  19799
  19800            case "$host" in
  19801                *-*-darwin*)
  19802                    x11_lib='/usr/X11R6/lib/libX11.6.dylib'
  19803                    x11ext_lib='/usr/X11R6/lib/libXext.6.dylib'
  19804                    xcursor_lib='/usr/X11R6/lib/libXcursor.1.dylib'
  19805                    xinerama_lib='/usr/X11R6/lib/libXinerama.1.dylib'
  19806                    xinput_lib='/usr/X11R6/lib/libXi.6.dylib'
  19807                    xrandr_lib='/usr/X11R6/lib/libXrandr.2.dylib'
  19808                    xrender_lib='/usr/X11R6/lib/libXrender.1.dylib'
  19809                    xss_lib='/usr/X11R6/lib/libXss.1.dylib'
  19810                    xvidmode_lib='/usr/X11R6/lib/libXxf86vm.1.dylib'
  19811                    ;;
  19812                *-*-openbsd*)
  19813                    x11_lib='libX11.so'
  19814                    x11ext_lib='libXext.so'
  19815                    xcursor_lib='libXcursor.so'
  19816                    xinerama_lib='libXinerama.so'
  19817                    xinput_lib='libXi.so'
  19818                    xrandr_lib='libXrandr.so'
  19819                    xrender_lib='libXrender.so'
  19820                    xss_lib='libXss.so'
  19821                    xvidmode_lib='libXxf86vm.so'
  19822                    ;;
  19823                *)
  19824                    x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  19825                    x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  19826                    xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  19827                    xinerama_lib=`find_lib "libXinerama.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  19828                    xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  19829                    xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  19830                    xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  19831                    xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  19832                    xvidmode_lib=`find_lib "libXxf86vm.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  19833                    ;;
  19834            esac
  19835
  19836            if test x$ac_cv_func_shmat != xyes; then
  19837                X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  19838            fi
  19839            CFLAGS="$CFLAGS $X_CFLAGS"
  19840            LDFLAGS="$LDFLAGS $X_LIBS"
  19841
  19842            ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  19843                             #include <X11/Xproto.h>
  19844
  19845"
  19846if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then :
  19847  have_xext_h_hdr=yes
  19848else
  19849  have_xext_h_hdr=no
  19850fi
  19851
  19852
  19853            if test x$have_xext_h_hdr != xyes; then
  19854               as_fn_error $? "
  19855*** Missing Xext.h, maybe you need to install the libxext-dev package?
  19856               " "$LINENO" 5
  19857            fi
  19858
  19859
  19860$as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  19861
  19862            SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  19863            EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  19864
  19865            # Needed so SDL applications can include SDL_syswm.h
  19866            SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  19867
  19868            if test x$enable_x11_shared = xmaybe; then
  19869                enable_x11_shared=yes
  19870            fi
  19871            if test x$have_loadso != xyes && \
  19872               test x$enable_x11_shared = xyes; then
  19873                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  19874$as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  19875                enable_x11_shared=no
  19876            fi
  19877            if test x$have_loadso = xyes && \
  19878               test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  19879                echo "-- dynamic libX11 -> $x11_lib"
  19880                echo "-- dynamic libX11ext -> $x11ext_lib"
  19881
  19882cat >>confdefs.h <<_ACEOF
  19883#define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
  19884_ACEOF
  19885
  19886
  19887cat >>confdefs.h <<_ACEOF
  19888#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
  19889_ACEOF
  19890
  19891                SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  19892            else
  19893                enable_x11_shared=no
  19894                EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  19895                SUMMARY_video="${SUMMARY_video} x11"
  19896            fi
  19897            have_video=yes
  19898
  19899            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const parameter to XextAddDisplay" >&5
  19900$as_echo_n "checking for const parameter to XextAddDisplay... " >&6; }
  19901            have_const_param_XextAddDisplay=no
  19902            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19903/* end confdefs.h.  */
  19904
  19905              #include <X11/Xlib.h>
  19906              #include <X11/Xproto.h>
  19907              #include <X11/extensions/Xext.h>
  19908              #include <X11/extensions/extutil.h>
  19909              extern XExtDisplayInfo* XextAddDisplay(XExtensionInfo* a,Display* b,_Xconst char* c,XExtensionHooks* d,int e,XPointer f);
  19910
  19911int
  19912main ()
  19913{
  19914
  19915
  19916  ;
  19917  return 0;
  19918}
  19919_ACEOF
  19920if ac_fn_c_try_compile "$LINENO"; then :
  19921
  19922            have_const_param_XextAddDisplay=yes
  19923            $as_echo "#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY 1" >>confdefs.h
  19924
  19925
  19926fi
  19927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19928            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_const_param_XextAddDisplay" >&5
  19929$as_echo "$have_const_param_XextAddDisplay" >&6; }
  19930
  19931            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const parameter to _XData32" >&5
  19932$as_echo_n "checking for const parameter to _XData32... " >&6; }
  19933	    have_const_param_xdata32=no
  19934	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19935/* end confdefs.h.  */
  19936
  19937	      #include <X11/Xlibint.h>
  19938	      extern int _XData32(Display *dpy,register _Xconst long *data,unsigned len);
  19939
  19940int
  19941main ()
  19942{
  19943
  19944
  19945  ;
  19946  return 0;
  19947}
  19948_ACEOF
  19949if ac_fn_c_try_compile "$LINENO"; then :
  19950
  19951	    have_const_param_xdata32=yes
  19952	    $as_echo "#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XDATA32 1" >>confdefs.h
  19953
  19954
  19955fi
  19956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19957	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_const_param_xdata32" >&5
  19958$as_echo "$have_const_param_xdata32" >&6; }
  19959
  19960                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  19961$as_echo_n "checking for XGenericEvent... " >&6; }
  19962            have_XGenericEvent=no
  19963            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19964/* end confdefs.h.  */
  19965
  19966              	#include <X11/Xlib.h>
  19967
  19968int
  19969main ()
  19970{
  19971
  19972Display *display;
  19973XEvent event;
  19974XGenericEventCookie *cookie = &event.xcookie;
  19975XNextEvent(display, &event);
  19976XGetEventData(display, cookie);
  19977XFreeEventData(display, cookie);
  19978
  19979  ;
  19980  return 0;
  19981}
  19982_ACEOF
  19983if ac_fn_c_try_compile "$LINENO"; then :
  19984
  19985                have_XGenericEvent=yes
  19986                $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  19987
  19988
  19989fi
  19990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19991            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  19992$as_echo "$have_XGenericEvent" >&6; }
  19993
  19994            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  19995$as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  19996if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then :
  19997  $as_echo_n "(cached) " >&6
  19998else
  19999  ac_check_lib_save_LIBS=$LIBS
  20000LIBS="-lX11  $LIBS"
  20001cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20002/* end confdefs.h.  */
  20003
  20004/* Override any GCC internal prototype to avoid an error.
  20005   Use char because int might match the return type of a GCC
  20006   builtin and then its argument prototype would still apply.  */
  20007#ifdef __cplusplus
  20008extern "C"
  20009#endif
  20010char XkbKeycodeToKeysym ();
  20011int
  20012main ()
  20013{
  20014return XkbKeycodeToKeysym ();
  20015  ;
  20016  return 0;
  20017}
  20018_ACEOF
  20019if ac_fn_c_try_link "$LINENO"; then :
  20020  ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  20021else
  20022  ac_cv_lib_X11_XkbKeycodeToKeysym=no
  20023fi
  20024rm -f core conftest.err conftest.$ac_objext \
  20025    conftest$ac_exeext conftest.$ac_ext
  20026LIBS=$ac_check_lib_save_LIBS
  20027fi
  20028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  20029$as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  20030if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then :
  20031
  20032$as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  20033
  20034fi
  20035
  20036
  20037            # Check whether --enable-video-x11-xcursor was given.
  20038if test "${enable_video_x11_xcursor+set}" = set; then :
  20039  enableval=$enable_video_x11_xcursor;
  20040else
  20041  enable_video_x11_xcursor=yes
  20042fi
  20043
  20044            if test x$enable_video_x11_xcursor = xyes; then
  20045                definitely_enable_video_x11_xcursor=no
  20046                ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  20047
  20048"
  20049if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
  20050  have_xcursor_h_hdr=yes
  20051else
  20052  have_xcursor_h_hdr=no
  20053fi
  20054
  20055
  20056                if test x$have_xcursor_h_hdr = xyes; then
  20057                    if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  20058                        echo "-- dynamic libXcursor -> $xcursor_lib"
  20059
  20060cat >>confdefs.h <<_ACEOF
  20061#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib"
  20062_ACEOF
  20063
  20064                        definitely_enable_video_x11_xcursor=yes
  20065                    else
  20066                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  20067$as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
  20068if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
  20069  $as_echo_n "(cached) " >&6
  20070else
  20071  ac_check_lib_save_LIBS=$LIBS
  20072LIBS="-lXcursor  $LIBS"
  20073cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20074/* end confdefs.h.  */
  20075
  20076/* Override any GCC internal prototype to avoid an error.
  20077   Use char because int might match the return type of a GCC
  20078   builtin and then its argument prototype would still apply.  */
  20079#ifdef __cplusplus
  20080extern "C"
  20081#endif
  20082char XcursorImageCreate ();
  20083int
  20084main ()
  20085{
  20086return XcursorImageCreate ();
  20087  ;
  20088  return 0;
  20089}
  20090_ACEOF
  20091if ac_fn_c_try_link "$LINENO"; then :
  20092  ac_cv_lib_Xcursor_XcursorImageCreate=yes
  20093else
  20094  ac_cv_lib_Xcursor_XcursorImageCreate=no
  20095fi
  20096rm -f core conftest.err conftest.$ac_objext \
  20097    conftest$ac_exeext conftest.$ac_ext
  20098LIBS=$ac_check_lib_save_LIBS
  20099fi
  20100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  20101$as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  20102if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
  20103  have_xcursor_lib=yes
  20104fi
  20105
  20106                        if test x$have_xcursor_lib = xyes ; then
  20107                            EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  20108                            definitely_enable_video_x11_xcursor=yes
  20109                        fi
  20110                    fi
  20111                fi
  20112            fi
  20113            if test x$definitely_enable_video_x11_xcursor = xyes; then
  20114
  20115$as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  20116
  20117                SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  20118            fi
  20119            # Check whether --enable-video-x11-xinerama was given.
  20120if test "${enable_video_x11_xinerama+set}" = set; then :
  20121  enableval=$enable_video_x11_xinerama;
  20122else
  20123  enable_video_x11_xinerama=yes
  20124fi
  20125
  20126            if test x$enable_video_x11_xinerama = xyes; then
  20127                definitely_enable_video_x11_xinerama=no
  20128                ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h>
  20129
  20130"
  20131if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
  20132  have_xinerama_h_hdr=yes
  20133else
  20134  have_xinerama_h_hdr=no
  20135fi
  20136
  20137
  20138                if test x$have_xinerama_h_hdr = xyes; then
  20139                    if test x$enable_x11_shared = xyes && test x$xinerama_lib != x ; then
  20140                        echo "-- dynamic libXinerama -> $xinerama_lib"
  20141
  20142cat >>confdefs.h <<_ACEOF
  20143#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "$xinerama_lib"
  20144_ACEOF
  20145
  20146                        definitely_enable_video_x11_xinerama=yes
  20147                    else
  20148                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
  20149$as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
  20150if ${ac_cv_lib_Xinerama_XineramaQueryExtension+:} false; then :
  20151  $as_echo_n "(cached) " >&6
  20152else
  20153  ac_check_lib_save_LIBS=$LIBS
  20154LIBS="-lXinerama  $LIBS"
  20155cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20156/* end confdefs.h.  */
  20157
  20158/* Override any GCC internal prototype to avoid an error.
  20159   Use char because int might match the return type of a GCC
  20160   builtin and then its argument prototype would still apply.  */
  20161#ifdef __cplusplus
  20162extern "C"
  20163#endif
  20164char XineramaQueryExtension ();
  20165int
  20166main ()
  20167{
  20168return XineramaQueryExtension ();
  20169  ;
  20170  return 0;
  20171}
  20172_ACEOF
  20173if ac_fn_c_try_link "$LINENO"; then :
  20174  ac_cv_lib_Xinerama_XineramaQueryExtension=yes
  20175else
  20176  ac_cv_lib_Xinerama_XineramaQueryExtension=no
  20177fi
  20178rm -f core conftest.err conftest.$ac_objext \
  20179    conftest$ac_exeext conftest.$ac_ext
  20180LIBS=$ac_check_lib_save_LIBS
  20181fi
  20182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
  20183$as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
  20184if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = xyes; then :
  20185  have_xinerama_lib=yes
  20186fi
  20187
  20188                        if test x$have_xinerama_lib = xyes ; then
  20189                            EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXinerama"
  20190                            definitely_enable_video_x11_xinerama=yes
  20191                        fi
  20192                    fi
  20193                fi
  20194            fi
  20195            if test x$definitely_enable_video_x11_xinerama = xyes; then
  20196
  20197$as_echo "#define SDL_VIDEO_DRIVER_X11_XINERAMA 1" >>confdefs.h
  20198
  20199                SUMMARY_video_x11="${SUMMARY_video_x11} xinerama"
  20200            fi
  20201            # Check whether --enable-video-x11-xinput was given.
  20202if test "${enable_video_x11_xinput+set}" = set; then :
  20203  enableval=$enable_video_x11_xinput;
  20204else
  20205  enable_video_x11_xinput=yes
  20206fi
  20207
  20208            if test x$enable_video_x11_xinput = xyes; then
  20209                definitely_enable_video_x11_xinput=no
  20210                ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  20211
  20212"
  20213if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
  20214  have_xinput_h_hdr=yes
  20215else
  20216  have_xinput_h_hdr=no
  20217fi
  20218
  20219
  20220                if test x$have_xinput_h_hdr = xyes; then
  20221                    if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  20222                        echo "-- dynamic libXi -> $xinput_lib"
  20223
  20224cat >>confdefs.h <<_ACEOF
  20225#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib"
  20226_ACEOF
  20227
  20228                        definitely_enable_video_x11_xinput=yes
  20229                    else
  20230                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  20231$as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
  20232if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
  20233  $as_echo_n "(cached) " >&6
  20234else
  20235  ac_check_lib_save_LIBS=$LIBS
  20236LIBS="-lXi  $LIBS"
  20237cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20238/* end confdefs.h.  */
  20239
  20240/* Override any GCC internal prototype to avoid an error.
  20241   Use char because int might match the return type of a GCC
  20242   builtin and then its argument prototype would still apply.  */
  20243#ifdef __cplusplus
  20244extern "C"
  20245#endif
  20246char XOpenDevice ();
  20247int
  20248main ()
  20249{
  20250return XOpenDevice ();
  20251  ;
  20252  return 0;
  20253}
  20254_ACEOF
  20255if ac_fn_c_try_link "$LINENO"; then :
  20256  ac_cv_lib_Xi_XOpenDevice=yes
  20257else
  20258  ac_cv_lib_Xi_XOpenDevice=no
  20259fi
  20260rm -f core conftest.err conftest.$ac_objext \
  20261    conftest$ac_exeext conftest.$ac_ext
  20262LIBS=$ac_check_lib_save_LIBS
  20263fi
  20264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  20265$as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  20266if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
  20267  have_xinput_lib=yes
  20268fi
  20269
  20270                        if test x$have_xinput_lib = xyes ; then
  20271                            EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  20272                            definitely_enable_video_x11_xinput=yes
  20273                        fi
  20274                    fi
  20275                fi
  20276            fi
  20277            if test x$definitely_enable_video_x11_xinput = xyes; then
  20278                SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  20279
  20280$as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  20281
  20282                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  20283$as_echo_n "checking for xinput2 multitouch... " >&6; }
  20284            	have_xinput2_multitouch=no
  20285            	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20286/* end confdefs.h.  */
  20287
  20288              		#include <X11/Xlib.h>
  20289             		#include <X11/Xproto.h>
  20290			#include <X11/extensions/XInput2.h>
  20291
  20292int
  20293main ()
  20294{
  20295
  20296int event_type = XI_TouchBegin;
  20297XITouchClassInfo *t;
  20298
  20299  ;
  20300  return 0;
  20301}
  20302_ACEOF
  20303if ac_fn_c_try_compile "$LINENO"; then :
  20304
  20305            	have_xinput2_multitouch=yes
  20306            	$as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  20307
  20308                SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  20309
  20310fi
  20311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20312            	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  20313$as_echo "$have_xinput2_multitouch" >&6; }
  20314            fi
  20315            # Check whether --enable-video-x11-xrandr was given.
  20316if test "${enable_video_x11_xrandr+set}" = set; then :
  20317  enableval=$enable_video_x11_xrandr;
  20318else
  20319  enable_video_x11_xrandr=yes
  20320fi
  20321
  20322            if test x$enable_video_x11_xrandr = xyes; then
  20323                                definitely_enable_video_x11_xrandr=no
  20324                have_xrandr_h_hdr=no
  20325                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20326/* end confdefs.h.  */
  20327
  20328                #include <X11/Xlib.h>
  20329                #include <X11/extensions/Xrandr.h>
  20330
  20331int
  20332main ()
  20333{
  20334
  20335                XRRScreenResources *res = NULL;
  20336
  20337  ;
  20338  return 0;
  20339}
  20340_ACEOF
  20341if ac_fn_c_try_compile "$LINENO"; then :
  20342
  20343                have_xrandr_h_hdr=yes
  20344
  20345fi
  20346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20347                if test x$have_xrandr_h_hdr = xyes; then
  20348                    if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  20349                        echo "-- dynamic libXrandr -> $xrandr_lib"
  20350
  20351cat >>confdefs.h <<_ACEOF
  20352#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
  20353_ACEOF
  20354
  20355                        definitely_enable_video_x11_xrandr=yes
  20356                    else
  20357                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  20358$as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
  20359if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
  20360  $as_echo_n "(cached) " >&6
  20361else
  20362  ac_check_lib_save_LIBS=$LIBS
  20363LIBS="-lXrandr  $LIBS"
  20364cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20365/* end confdefs.h.  */
  20366
  20367/* Override any GCC internal prototype to avoid an error.
  20368   Use char because int might match the return type of a GCC
  20369   builtin and then its argument prototype would still apply.  */
  20370#ifdef __cplusplus
  20371extern "C"
  20372#endif
  20373char XRRQueryExtension ();
  20374int
  20375main ()
  20376{
  20377return XRRQueryExtension ();
  20378  ;
  20379  return 0;
  20380}
  20381_ACEOF
  20382if ac_fn_c_try_link "$LINENO"; then :
  20383  ac_cv_lib_Xrandr_XRRQueryExtension=yes
  20384else
  20385  ac_cv_lib_Xrandr_XRRQueryExtension=no
  20386fi
  20387rm -f core conftest.err conftest.$ac_objext \
  20388    conftest$ac_exeext conftest.$ac_ext
  20389LIBS=$ac_check_lib_save_LIBS
  20390fi
  20391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  20392$as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  20393if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
  20394  have_xrandr_lib=yes
  20395fi
  20396
  20397                        if test x$have_xrandr_lib = xyes ; then
  20398                            EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  20399                            definitely_enable_video_x11_xrandr=yes
  20400                        fi
  20401                    fi
  20402                fi
  20403            fi
  20404            if test x$definitely_enable_video_x11_xrandr = xyes; then
  20405
  20406$as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  20407
  20408                SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  20409            fi
  20410            # Check whether --enable-video-x11-scrnsaver was given.
  20411if test "${enable_video_x11_scrnsaver+set}" = set; then :
  20412  enableval=$enable_video_x11_scrnsaver;
  20413else
  20414  enable_video_x11_scrnsaver=yes
  20415fi
  20416
  20417            if test x$enable_video_x11_scrnsaver = xyes; then
  20418                ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  20419
  20420"
  20421if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
  20422  have_scrnsaver_h_hdr=yes
  20423else
  20424  have_scrnsaver_h_hdr=no
  20425fi
  20426
  20427
  20428                if test x$have_scrnsaver_h_hdr = xyes; then
  20429                    if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  20430                        echo "-- dynamic libXss -> $xss_lib"
  20431
  20432cat >>confdefs.h <<_ACEOF
  20433#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib"
  20434_ACEOF
  20435
  20436                        definitely_enable_video_x11_scrnsaver=yes
  20437                    else
  20438                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  20439$as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; }
  20440if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then :
  20441  $as_echo_n "(cached) " >&6
  20442else
  20443  ac_check_lib_save_LIBS=$LIBS
  20444LIBS="-lXss  $LIBS"
  20445cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20446/* end confdefs.h.  */
  20447
  20448/* Override any GCC internal prototype to avoid an error.
  20449   Use char because int might match the return type of a GCC
  20450   builtin and then its argument prototype would still apply.  */
  20451#ifdef __cplusplus
  20452extern "C"
  20453#endif
  20454char XScreenSaverSuspend ();
  20455int
  20456main ()
  20457{
  20458return XScreenSaverSuspend ();
  20459  ;
  20460  return 0;
  20461}
  20462_ACEOF
  20463if ac_fn_c_try_link "$LINENO"; then :
  20464  ac_cv_lib_Xss_XScreenSaverSuspend=yes
  20465else
  20466  ac_cv_lib_Xss_XScreenSaverSuspend=no
  20467fi
  20468rm -f core conftest.err conftest.$ac_objext \
  20469    conftest$ac_exeext conftest.$ac_ext
  20470LIBS=$ac_check_lib_save_LIBS
  20471fi
  20472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  20473$as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  20474if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then :
  20475  have_xss_lib=yes
  20476fi
  20477
  20478                        if test x$have_xss_lib = xyes ; then
  20479                            EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  20480                            definitely_enable_video_x11_scrnsaver=yes
  20481                        fi
  20482                    fi
  20483                fi
  20484            fi
  20485            if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  20486
  20487$as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  20488
  20489                SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  20490            fi
  20491            # Check whether --enable-video-x11-xshape was given.
  20492if test "${enable_video_x11_xshape+set}" = set; then :
  20493  enableval=$enable_video_x11_xshape;
  20494else
  20495  enable_video_x11_xshape=yes
  20496fi
  20497
  20498            if test x$enable_video_x11_xshape = xyes; then
  20499                ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  20500
  20501"
  20502if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
  20503  have_shape_h_hdr=yes
  20504else
  20505  have_shape_h_hdr=no
  20506fi
  20507
  20508
  20509                if test x$have_shape_h_hdr = xyes; then
  20510
  20511$as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  20512
  20513                    SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  20514                fi
  20515            fi
  20516            # Check whether --enable-video-x11-vm was given.
  20517if test "${enable_video_x11_vm+set}" = set; then :
  20518  enableval=$enable_video_x11_vm;
  20519else
  20520  enable_video_x11_vm=yes
  20521fi
  20522
  20523            if test x$enable_video_x11_vm = xyes; then
  20524                definitely_enable_video_x11_vm=no
  20525                ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
  20526
  20527"
  20528if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then :
  20529  have_vm_h_hdr=yes
  20530else
  20531  have_vm_h_hdr=no
  20532fi
  20533
  20534
  20535                if test x$have_vm_h_hdr = xyes; then
  20536                    if test x$enable_x11_shared = xyes && test x$xvidmode_lib != x ; then
  20537                        echo "-- dynamic libXxf86vm -> $xvidmode_lib"
  20538
  20539cat >>confdefs.h <<_ACEOF
  20540#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "$xvidmode_lib"
  20541_ACEOF
  20542
  20543                        definitely_enable_video_x11_vm=yes
  20544                    else
  20545                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryVersion in -lXxf86vm" >&5
  20546$as_echo_n "checking for XF86VidModeQueryVersion in -lXxf86vm... " >&6; }
  20547if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion+:} false; then :
  20548  $as_echo_n "(cached) " >&6
  20549else
  20550  ac_check_lib_save_LIBS=$LIBS
  20551LIBS="-lXxf86vm  $LIBS"
  20552cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20553/* end confdefs.h.  */
  20554
  20555/* Override any GCC internal prototype to avoid an error.
  20556   Use char because int might match the return type of a GCC
  20557   builtin and then its argument prototype would still apply.  */
  20558#ifdef __cplusplus
  20559extern "C"
  20560#endif
  20561char XF86VidModeQueryVersion ();
  20562int
  20563main ()
  20564{
  20565return XF86VidModeQueryVersion ();
  20566  ;
  20567  return 0;
  20568}
  20569_ACEOF
  20570if ac_fn_c_try_link "$LINENO"; then :
  20571  ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=yes
  20572else
  20573  ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=no
  20574fi
  20575rm -f core conftest.err conftest.$ac_objext \
  20576    conftest$ac_exeext conftest.$ac_ext
  20577LIBS=$ac_check_lib_save_LIBS
  20578fi
  20579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&5
  20580$as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&6; }
  20581if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" = xyes; then :
  20582  have_vm_lib=yes
  20583fi
  20584
  20585                        if test x$have_vm_lib = xyes ; then
  20586                            EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXxf86vm"
  20587                            definitely_enable_video_x11_vm=yes
  20588                        fi
  20589                    fi
  20590                fi
  20591            fi
  20592            if test x$definitely_enable_video_x11_vm = xyes; then
  20593
  20594$as_echo "#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1" >>confdefs.h
  20595
  20596                SUMMARY_video_x11="${SUMMARY_video_x11} xvidmode"
  20597            fi
  20598        fi
  20599    fi
  20600}
  20601
  20602CheckVivanteVideo()
  20603{
  20604    # Check whether --enable-video-vivante was given.
  20605if test "${enable_video_vivante+set}" = set; then :
  20606  enableval=$enable_video_vivante;
  20607else
  20608  enable_video_vivante=yes
  20609fi
  20610
  20611    if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  20612        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  20613$as_echo_n "checking for Vivante VDK API... " >&6; }
  20614        have_vivante_vdk=no
  20615        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20616/* end confdefs.h.  */
  20617
  20618          #define LINUX
  20619          #define EGL_API_FB
  20620          #include <gc_vdk.h>
  20621
  20622int
  20623main ()
  20624{
  20625
  20626
  20627  ;
  20628  return 0;
  20629}
  20630_ACEOF
  20631if ac_fn_c_try_compile "$LINENO"; then :
  20632
  20633        have_vivante_vdk=yes
  20634
  20635fi
  20636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20637        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  20638$as_echo "$have_vivante_vdk" >&6; }
  20639
  20640        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  20641$as_echo_n "checking for Vivante FB API... " >&6; }
  20642        have_vivante_egl=no
  20643        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20644/* end confdefs.h.  */
  20645
  20646          #define LINUX
  20647          #define EGL_API_FB
  20648          #include <EGL/eglvivante.h>
  20649
  20650int
  20651main ()
  20652{
  20653
  20654
  20655  ;
  20656  return 0;
  20657}
  20658_ACEOF
  20659if ac_fn_c_try_compile "$LINENO"; then :
  20660
  20661        have_vivante_egl=yes
  20662
  20663fi
  20664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20665        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  20666$as_echo "$have_vivante_egl" >&6; }
  20667
  20668        if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  20669
  20670$as_echo "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  20671
  20672            EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  20673            if test x$have_vivante_vdk = xyes; then
  20674
  20675$as_echo "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  20676
  20677                EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  20678            fi
  20679            SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  20680            SUMMARY_video="${SUMMARY_video} vivante"
  20681            have_video=yes
  20682        fi
  20683    fi
  20684}
  20685
  20686CheckHaikuVideo()
  20687{
  20688    if test x$enable_video = xyes; then
  20689
  20690$as_echo "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  20691
  20692        SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  20693        have_video=yes
  20694        SUMMARY_video="${SUMMARY_video} haiku"
  20695    fi
  20696}
  20697
  20698CheckCOCOA()
  20699{
  20700    # Check whether --enable-video-cocoa was given.
  20701if test "${enable_video_cocoa+set}" = set; then :
  20702  enableval=$enable_video_cocoa;
  20703else
  20704  enable_video_cocoa=yes
  20705fi
  20706
  20707    if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  20708        save_CFLAGS="$CFLAGS"
  20709                CFLAGS="$CFLAGS -x objective-c"
  20710        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  20711$as_echo_n "checking for Cocoa framework... " >&6; }
  20712        have_cocoa=no
  20713        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20714/* end confdefs.h.  */
  20715
  20716          #import <Cocoa/Cocoa.h>
  20717
  20718int
  20719main ()
  20720{
  20721
  20722
  20723  ;
  20724  return 0;
  20725}
  20726_ACEOF
  20727if ac_fn_c_try_compile "$LINENO"; then :
  20728
  20729        have_cocoa=yes
  20730
  20731fi
  20732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20733        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  20734$as_echo "$have_cocoa" >&6; }
  20735        CFLAGS="$save_CFLAGS"
  20736        if test x$have_cocoa = xyes; then
  20737
  20738$as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  20739
  20740            SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  20741            SUMMARY_video="${SUMMARY_video} cocoa"
  20742            have_video=yes
  20743        fi
  20744    fi
  20745}
  20746
  20747CheckDirectFB()
  20748{
  20749    # Check whether --enable-video-directfb was given.
  20750if test "${enable_video_directfb+set}" = set; then :
  20751  enableval=$enable_video_directfb;
  20752else
  20753  enable_video_directfb=no
  20754fi
  20755
  20756    if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  20757        video_directfb=no
  20758
  20759        DIRECTFB_REQUIRED_VERSION=1.0.0
  20760        for ac_prog in directfb-config
  20761do
  20762  # Extract the first word of "$ac_prog", so it can be a program name with args.
  20763set dummy $ac_prog; ac_word=$2
  20764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20765$as_echo_n "checking for $ac_word... " >&6; }
  20766if ${ac_cv_path_DIRECTFBCONFIG+:} false; then :
  20767  $as_echo_n "(cached) " >&6
  20768else
  20769  case $DIRECTFBCONFIG in
  20770  [\\/]* | ?:[\\/]*)
  20771  ac_cv_path_DIRECTFBCONFIG="$DIRECTFBCONFIG" # Let the user override the test with a path.
  20772  ;;
  20773  *)
  20774  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20775as_dummy="$prefix/bin:$PATH"
  20776for as_dir in $as_dummy
  20777do
  20778  IFS=$as_save_IFS
  20779  test -z "$as_dir" && as_dir=.
  20780    for ac_exec_ext in '' $ac_executable_extensions; do
  20781  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  20782    ac_cv_path_DIRECTFBCONFIG="$as_dir/$ac_word$ac_exec_ext"
  20783    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20784    break 2
  20785  fi
  20786done
  20787  done
  20788IFS=$as_save_IFS
  20789
  20790  ;;
  20791esac
  20792fi
  20793DIRECTFBCONFIG=$ac_cv_path_DIRECTFBCONFIG
  20794if test -n "$DIRECTFBCONFIG"; then
  20795  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRECTFBCONFIG" >&5
  20796$as_echo "$DIRECTFBCONFIG" >&6; }
  20797else
  20798  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20799$as_echo "no" >&6; }
  20800fi
  20801
  20802
  20803  test -n "$DIRECTFBCONFIG" && break
  20804done
  20805test -n "$DIRECTFBCONFIG" || DIRECTFBCONFIG="no"
  20806
  20807        if test x$DIRECTFBCONFIG = xno; then
  20808            # Extract the first word of "pkg-config", so it can be a program name with args.
  20809set dummy pkg-config; ac_word=$2
  20810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20811$as_echo_n "checking for $ac_word... " >&6; }
  20812if ${ac_cv_path_PKG_CONFIG+:} false; then :
  20813  $as_echo_n "(cached) " >&6
  20814else
  20815  case $PKG_CONFIG in
  20816  [\\/]* | ?:[\\/]*)
  20817  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  20818  ;;
  20819  *)
  20820  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20821for as_dir in $PATH
  20822do
  20823  IFS=$as_save_IFS
  20824  test -z "$as_dir" && as_dir=.
  20825    for ac_exec_ext in '' $ac_executable_extensions; do
  20826  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  20827    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  20828    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20829    break 2
  20830  fi
  20831done
  20832  done
  20833IFS=$as_save_IFS
  20834
  20835  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  20836  ;;
  20837esac
  20838fi
  20839PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  20840if test -n "$PKG_CONFIG"; then
  20841  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  20842$as_echo "$PKG_CONFIG" >&6; }
  20843else
  20844  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20845$as_echo "no" >&6; }
  20846fi
  20847
  20848
  20849            if test x$PKG_CONFIG != xno; then
  20850                if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $DIRECTFB_REQUIRED_VERSION directfb; then
  20851                    DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags directfb`
  20852                    DIRECTFB_LIBS=`$PKG_CONFIG --libs directfb`
  20853                    DIRECTFB_PREFIX=`$PKG_CONFIG --variable=prefix directfb`
  20854                    video_directfb=yes
  20855                fi
  20856            fi
  20857        else
  20858            set -- `echo $DIRECTFB_REQUIRED_VERSION | sed 's/\./ /g'`
  20859            NEED_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
  20860            set -- `$DIRECTFBCONFIG --version | sed 's/\./ /g'`
  20861            HAVE_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
  20862            if test $HAVE_VERSION -ge $NEED_VERSION; then
  20863                DIRECTFB_CFLAGS=`$DIRECTFBCONFIG --cflags`
  20864                DIRECTFB_LIBS=`$DIRECTFBCONFIG --libs`
  20865                DIRECTFB_PREFIX=`$DIRECTFBCONFIG --prefix`
  20866                video_directfb=yes
  20867            fi
  20868        fi
  20869        if test x$video_directfb = xyes; then
  20870            # SuSE 11.1 installs directfb-config without directfb-devel
  20871            save_CPPFLAGS="$CPPFLAGS"
  20872            CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  20873            ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  20874if test "x$ac_cv_header_directfb_h" = xyes; then :
  20875  have_directfb_hdr=yes
  20876else
  20877  have_directfb_hdr=no
  20878fi
  20879
  20880
  20881            CPPFLAGS="$save_CPPFLAGS"
  20882            video_directfb=$have_directfb_hdr
  20883        fi
  20884        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DirectFB $DIRECTFB_REQUIRED_VERSION support" >&5
  20885$as_echo_n "checking for DirectFB $DIRECTFB_REQUIRED_VERSION support... " >&6; }
  20886        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_directfb" >&5
  20887$as_echo "$video_directfb" >&6; }
  20888
  20889        if test x$video_directfb = xyes; then
  20890            # Check whether --enable-directfb-shared was given.
  20891if test "${enable_directfb_shared+set}" = set; then :
  20892  enableval=$enable_directfb_shared;
  20893else
  20894  enable_directfb_shared=yes
  20895fi
  20896
  20897
  20898
  20899$as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  20900
  20901
  20902$as_echo "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  20903
  20904            SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  20905            EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  20906
  20907            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb dynamic loading support" >&5
  20908$as_echo_n "checking for directfb dynamic loading support... " >&6; }
  20909            directfb_shared=no
  20910            directfb_lib=`find_lib "libdirectfb.so.*" "$DIRECTFB_LIBS"`
  20911            # | sed 's/.*\/\(.*\)/\1/; q'`]
  20912{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"directfb $directfb_lib\"" >&5
  20913$as_echo "$as_me: WARNING: \"directfb $directfb_lib\"" >&2;}
  20914            if test x$have_loadso != xyes && \
  20915               test x$enable_directfb_shared = xyes; then
  20916                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  20917$as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  20918            fi
  20919            if test x$have_loadso = xyes && \
  20920               test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  20921                directfb_shared=yes
  20922                echo "-- $directfb_lib_spec -> $directfb_lib"
  20923
  20924cat >>confdefs.h <<_ACEOF
  20925#define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
  20926_ACEOF
  20927
  20928                SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  20929            else
  20930                EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  20931                SUMMARY_video="${SUMMARY_video} directfb"
  20932            fi
  20933            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $directfb_shared" >&5
  20934$as_echo "$directfb_shared" >&6; }
  20935            SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  20936            have_video=yes
  20937        fi
  20938    fi
  20939}
  20940
  20941CheckFusionSound()
  20942{
  20943    # Check whether --enable-fusionsound was given.
  20944if test "${enable_fusionsound+set}" = set; then :
  20945  enableval=$enable_fusionsound;
  20946else
  20947  enable_fusionsound=no
  20948fi
  20949
  20950    if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  20951        fusionsound=no
  20952
  20953        FUSIONSOUND_REQUIRED_VERSION=1.1.1
  20954
  20955        # Extract the first word of "pkg-config", so it can be a program name with args.
  20956set dummy pkg-config; ac_word=$2
  20957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20958$as_echo_n "checking for $ac_word... " >&6; }
  20959if ${ac_cv_path_PKG_CONFIG+:} false; then :
  20960  $as_echo_n "(cached) " >&6
  20961else
  20962  case $PKG_CONFIG in
  20963  [\\/]* | ?:[\\/]*)
  20964  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  20965  ;;
  20966  *)
  20967  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20968for as_dir in $PATH
  20969do
  20970  IFS=$as_save_IFS
  20971  test -z "$as_dir" && as_dir=.
  20972    for ac_exec_ext in '' $ac_executable_extensions; do
  20973  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  20974    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  20975    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20976    break 2
  20977  fi
  20978done
  20979  done
  20980IFS=$as_save_IFS
  20981
  20982  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  20983  ;;
  20984esac
  20985fi
  20986PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  20987if test -n "$PKG_CONFIG"; then
  20988  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  20989$as_echo "$PKG_CONFIG" >&6; }
  20990else
  20991  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20992$as_echo "no" >&6; }
  20993fi
  20994
  20995
  20996        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support" >&5
  20997$as_echo_n "checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support... " >&6; }
  20998        if test x$PKG_CONFIG != xno; then
  20999            if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $FUSIONSOUND_REQUIRED_VERSION fusionsound; then
  21000                FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags fusionsound`
  21001                FUSIONSOUND_LIBS=`$PKG_CONFIG --libs fusionsound`
  21002                fusionsound=yes
  21003            fi
  21004        fi
  21005        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound" >&5
  21006$as_echo "$fusionsound" >&6; }
  21007
  21008        if test x$fusionsound = xyes; then
  21009
  21010$as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  21011
  21012            SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  21013            EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  21014
  21015            # Check whether --enable-fusionsound-shared was given.
  21016if test "${enable_fusionsound_shared+set}" = set; then :
  21017  enableval=$enable_fusionsound_shared;
  21018else
  21019  enable_fusionsound_shared=yes
  21020fi
  21021
  21022            fusionsound_shared=no
  21023            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  21024$as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
  21025            if test x$have_loadso != xyes && \
  21026               test x$enable_fusionsound_shared = xyes; then
  21027                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  21028$as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  21029            fi
  21030            if test x$have_loadso = xyes && \
  21031               test x$enable_fusionsound_shared = xyes; then
  21032
  21033cat >>confdefs.h <<_ACEOF
  21034#define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
  21035_ACEOF
  21036
  21037                fusionsound_shared=yes
  21038                SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  21039            else
  21040                EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  21041                SUMMARY_audio="${SUMMARY_audio} fusionsound"
  21042            fi
  21043            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  21044$as_echo "$fusionsound_shared" >&6; }
  21045
  21046            have_audio=yes
  21047        fi
  21048    fi
  21049}
  21050
  21051CheckDummyVideo()
  21052{
  21053    # Check whether --enable-video-dummy was given.
  21054if test "${enable_video_dummy+set}" = set; then :
  21055  enableval=$enable_video_dummy;
  21056else
  21057  enable_video_dummy=yes
  21058fi
  21059
  21060    if test x$enable_video_dummy = xyes; then
  21061
  21062$as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  21063
  21064        SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  21065        have_video=yes
  21066        SUMMARY_video="${SUMMARY_video} dummy"
  21067    fi
  21068}
  21069
  21070# Check whether --enable-video-opengl was given.
  21071if test "${enable_video_opengl+set}" = set; then :
  21072  enableval=$enable_video_opengl;
  21073else
  21074  enable_video_opengl=yes
  21075fi
  21076
  21077
  21078CheckOpenGLX11()
  21079{
  21080    if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  21081        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL (GLX) support" >&5
  21082$as_echo_n "checking for OpenGL (GLX) support... " >&6; }
  21083        video_opengl=no
  21084        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21085/* end confdefs.h.  */
  21086
  21087         #include <GL/gl.h>
  21088         #include <GL/glx.h>
  21089
  21090int
  21091main ()
  21092{
  21093
  21094
  21095  ;
  21096  return 0;
  21097}
  21098_ACEOF
  21099if ac_fn_c_try_compile "$LINENO"; then :
  21100
  21101        video_opengl=yes
  21102
  21103fi
  21104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21105        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  21106$as_echo "$video_opengl" >&6; }
  21107        if test x$video_opengl = xyes; then
  21108
  21109$as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  21110
  21111
  21112$as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  21113
  21114
  21115$as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  21116
  21117            SUMMARY_video="${SUMMARY_video} opengl"
  21118        fi
  21119    fi
  21120}
  21121
  21122# Check whether --enable-video-opengles was given.
  21123if test "${enable_video_opengles+set}" = set; then :
  21124  enableval=$enable_video_opengles;
  21125else
  21126  enable_video_opengles=yes
  21127fi
  21128
  21129# Check whether --enable-video-opengles1 was given.
  21130if test "${enable_video_opengles1+set}" = set; then :
  21131  enableval=$enable_video_opengles1;
  21132else
  21133  enable_video_opengles1=yes
  21134fi
  21135
  21136# Check whether --enable-video-opengles2 was given.
  21137if test "${enable_video_opengles2+set}" = set; then :
  21138  enableval=$enable_video_opengles2;
  21139else
  21140  enable_video_opengles2=yes
  21141fi
  21142
  21143
  21144CheckOpenGLESX11()
  21145{
  21146    if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  21147        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  21148$as_echo_n "checking for EGL support... " >&6; }
  21149        video_opengl_egl=no
  21150        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21151/* end confdefs.h.  */
  21152
  21153          #define LINUX
  21154          #define EGL_API_FB
  21155          #include <EGL/egl.h>
  21156          #include <EGL/eglext.h>
  21157
  21158int
  21159main ()
  21160{
  21161
  21162
  21163  ;
  21164  return 0;
  21165}
  21166_ACEOF
  21167if ac_fn_c_try_compile "$LINENO"; then :
  21168
  21169        video_opengl_egl=yes
  21170
  21171fi
  21172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21173        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  21174$as_echo "$video_opengl_egl" >&6; }
  21175        if test x$video_opengl_egl = xyes; then
  21176
  21177$as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  21178
  21179        fi
  21180
  21181        if test x$enable_video_opengles1 = xyes; then
  21182            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  21183$as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
  21184            video_opengles_v1=no
  21185            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21186/* end confdefs.h.  */
  21187
  21188             #include <GLES/gl.h>
  21189             #include <GLES/glext.h>
  21190
  21191int
  21192main ()
  21193{
  21194
  21195
  21196  ;
  21197  return 0;
  21198}
  21199_ACEOF
  21200if ac_fn_c_try_compile "$LINENO"; then :
  21201
  21202            video_opengles_v1=yes
  21203
  21204fi
  21205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21206            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  21207$as_echo "$video_opengles_v1" >&6; }
  21208            if test x$video_opengles_v1 = xyes; then
  21209
  21210$as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  21211
  21212
  21213$as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  21214
  21215                SUMMARY_video="${SUMMARY_video} opengl_es1"
  21216            fi
  21217        fi
  21218
  21219        if test x$enable_video_opengles2 = xyes; then
  21220            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  21221$as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  21222            video_opengles_v2=no
  21223            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21224/* end confdefs.h.  */
  21225
  21226             #include <GLES2/gl2.h>
  21227             #include <GLES2/gl2ext.h>
  21228
  21229int
  21230main ()
  21231{
  21232
  21233
  21234  ;
  21235  return 0;
  21236}
  21237_ACEOF
  21238if ac_fn_c_try_compile "$LINENO"; then :
  21239
  21240            video_opengles_v2=yes
  21241
  21242fi
  21243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21244            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  21245$as_echo "$video_opengles_v2" >&6; }
  21246            if test x$video_opengles_v2 = xyes; then
  21247
  21248$as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  21249
  21250
  21251$as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  21252
  21253                SUMMARY_video="${SUMMARY_video} opengl_es2"
  21254            fi
  21255        fi
  21256    fi
  21257}
  21258
  21259CheckWINDOWSGL()
  21260{
  21261    if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  21262
  21263$as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  21264
  21265
  21266$as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  21267
  21268
  21269$as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  21270
  21271        SUMMARY_video="${SUMMARY_video} opengl"
  21272    fi
  21273}
  21274
  21275CheckWINDOWSGLES()
  21276{
  21277    if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  21278
  21279        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  21280$as_echo_n "checking for EGL support... " >&6; }
  21281        video_opengl_egl=no
  21282        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21283/* end confdefs.h.  */
  21284
  21285         #include <EGL/egl.h>
  21286
  21287int
  21288main ()
  21289{
  21290
  21291
  21292  ;
  21293  return 0;
  21294}
  21295_ACEOF
  21296if ac_fn_c_try_compile "$LINENO"; then :
  21297
  21298        video_opengl_egl=yes
  21299
  21300fi
  21301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21302        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  21303$as_echo "$video_opengl_egl" >&6; }
  21304        if test x$video_opengl_egl = xyes; then
  21305
  21306$as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  21307
  21308
  21309$as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  21310
  21311            SUMMARY_video="${SUMMARY_video} opengl_es1"
  21312        fi
  21313
  21314        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  21315$as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  21316        video_opengles_v2=no
  21317        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21318/* end confdefs.h.  */
  21319
  21320         #include <GLES2/gl2.h>
  21321         #include <GLES2/gl2ext.h>
  21322
  21323int
  21324main ()
  21325{
  21326
  21327
  21328  ;
  21329  return 0;
  21330}
  21331_ACEOF
  21332if ac_fn_c_try_compile "$LINENO"; then :
  21333
  21334        video_opengles_v2=yes
  21335
  21336fi
  21337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21338        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  21339$as_echo "$video_opengles_v2" >&6; }
  21340        if test x$video_opengles_v2 = xyes; then
  21341
  21342$as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  21343
  21344
  21345$as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  21346
  21347
  21348$as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  21349
  21350            SUMMARY_video="${SUMMARY_video} opengl_es2"
  21351        fi
  21352    fi
  21353}
  21354
  21355CheckHaikuGL()
  21356{
  21357    if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  21358
  21359$as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  21360
  21361
  21362$as_echo "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  21363
  21364
  21365$as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  21366
  21367        EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  21368        SUMMARY_video="${SUMMARY_video} opengl"
  21369    fi
  21370}
  21371
  21372CheckMacGL()
  21373{
  21374    if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  21375
  21376$as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  21377
  21378
  21379$as_echo "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  21380
  21381
  21382$as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  21383
  21384        SUMMARY_video="${SUMMARY_video} opengl"
  21385    fi
  21386}
  21387
  21388CheckInputEvents()
  21389{
  21390            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  21391$as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
  21392        use_input_events=no
  21393        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21394/* end confdefs.h.  */
  21395
  21396          #include <linux/input.h>
  21397
  21398int
  21399main ()
  21400{
  21401
  21402          #ifndef EVIOCGNAME
  21403          #error EVIOCGNAME() ioctl not available
  21404          #endif
  21405
  21406  ;
  21407  return 0;
  21408}
  21409_ACEOF
  21410if ac_fn_c_try_compile "$LINENO"; then :
  21411
  21412        use_input_events=yes
  21413
  21414fi
  21415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21416        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  21417$as_echo "$use_input_events" >&6; }
  21418        if test x$use_input_events = xyes; then
  21419
  21420$as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  21421
  21422            SUMMARY_input="${SUMMARY_input} linuxev"
  21423        fi
  21424}
  21425
  21426CheckInputKD()
  21427{
  21428
  21429    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  21430$as_echo_n "checking for Linux kd.h... " >&6; }
  21431    use_input_kd=no
  21432    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21433/* end confdefs.h.  */
  21434
  21435      #include <linux/kd.h>
  21436      #include <linux/keyboard.h>
  21437
  21438int
  21439main ()
  21440{
  21441
  21442        struct kbentry kbe;
  21443        kbe.kb_table = KG_CTRL;
  21444        ioctl(0, KDGKBENT, &kbe);
  21445
  21446  ;
  21447  return 0;
  21448}
  21449_ACEOF
  21450if ac_fn_c_try_compile "$LINENO"; then :
  21451
  21452    use_input_kd=yes
  21453
  21454fi
  21455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21456    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  21457$as_echo "$use_input_kd" >&6; }
  21458    if test x$use_input_kd = xyes; then
  21459
  21460$as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  21461
  21462        SUMMARY_input="${SUMMARY_input} linuxkd"
  21463    fi
  21464}
  21465
  21466CheckLibUDev()
  21467{
  21468    # Check whether --enable-libudev was given.
  21469if test "${enable_libudev+set}" = set; then :
  21470  enableval=$enable_libudev;
  21471else
  21472  enable_libudev=yes
  21473fi
  21474
  21475    if test x$enable_libudev = xyes; then
  21476        ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  21477if test "x$ac_cv_header_libudev_h" = xyes; then :
  21478  have_libudev_h_hdr=yes
  21479else
  21480  have_libudev_h_hdr=no
  21481fi
  21482
  21483
  21484        if test x$have_libudev_h_hdr = xyes; then
  21485
  21486$as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  21487
  21488        fi
  21489    fi
  21490}
  21491
  21492CheckDBus()
  21493{
  21494    # Check whether --enable-dbus was given.
  21495if test "${enable_dbus+set}" = set; then :
  21496  enableval=$enable_dbus;
  21497else
  21498  enable_dbus=yes
  21499fi
  21500
  21501    if test x$enable_dbus = xyes; then
  21502        # Extract the first word of "pkg-config", so it can be a program name with args.
  21503set dummy pkg-config; ac_word=$2
  21504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21505$as_echo_n "checking for $ac_word... " >&6; }
  21506if ${ac_cv_path_PKG_CONFIG+:} false; then :
  21507  $as_echo_n "(cached) " >&6
  21508else
  21509  case $PKG_CONFIG in
  21510  [\\/]* | ?:[\\/]*)
  21511  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  21512  ;;
  21513  *)
  21514  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21515for as_dir in $PATH
  21516do
  21517  IFS=$as_save_IFS
  21518  test -z "$as_dir" && as_dir=.
  21519    for ac_exec_ext in '' $ac_executable_extensions; do
  21520  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  21521    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  21522    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  21523    break 2
  21524  fi
  21525done
  21526  done
  21527IFS=$as_save_IFS
  21528
  21529  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  21530  ;;
  21531esac
  21532fi
  21533PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  21534if test -n "$PKG_CONFIG"; then
  21535  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  21536$as_echo "$PKG_CONFIG" >&6; }
  21537else
  21538  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21539$as_echo "no" >&6; }
  21540fi
  21541
  21542
  21543        if test x$PKG_CONFIG != xno; then
  21544            DBUS_CFLAGS=`$PKG_CONFIG --cflags dbus-1`
  21545            save_CFLAGS="$CFLAGS"
  21546            CFLAGS="$save_CFLAGS $DBUS_CFLAGS"
  21547            ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  21548if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
  21549  have_dbus_dbus_h_hdr=yes
  21550else
  21551  have_dbus_dbus_h_hdr=no
  21552fi
  21553
  21554
  21555            CFLAGS="$save_CFLAGS"
  21556            if test x$have_dbus_dbus_h_hdr = xyes; then
  21557
  21558$as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  21559
  21560                EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  21561                SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  21562            fi
  21563        fi
  21564    fi
  21565}
  21566
  21567CheckIBus()
  21568{
  21569    # Check whether --enable-ibus was given.
  21570if test "${enable_ibus+set}" = set; then :
  21571  enableval=$enable_ibus;
  21572else
  21573  enable_ibus=yes
  21574fi
  21575
  21576    if test x$enable_ibus = xyes; then
  21577        # Extract the first word of "pkg-config", so it can be a program name with args.
  21578set dummy pkg-config; ac_word=$2
  21579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21580$as_echo_n "checking for $ac_word... " >&6; }
  21581if ${ac_cv_path_PKG_CONFIG+:} false; then :
  21582  $as_echo_n "(cached) " >&6
  21583else
  21584  case $PKG_CONFIG in
  21585  [\\/]* | ?:[\\/]*)
  21586  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  21587  ;;
  21588  *)
  21589  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21590for as_dir in $PATH
  21591do
  21592  IFS=$as_save_IFS
  21593  test -z "$as_dir" && as_dir=.
  21594    for ac_exec_ext in '' $ac_executable_extensions; do
  21595  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  21596    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  21597    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  21598    break 2
  21599  fi
  21600done
  21601  done
  21602IFS=$as_save_IFS
  21603
  21604  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  21605  ;;
  21606esac
  21607fi
  21608PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  21609if test -n "$PKG_CONFIG"; then
  21610  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  21611$as_echo "$PKG_CONFIG" >&6; }
  21612else
  21613  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21614$as_echo "no" >&6; }
  21615fi
  21616
  21617
  21618        if test x$PKG_CONFIG != xno; then
  21619            IBUS_CFLAGS=`$PKG_CONFIG --cflags ibus-1.0`
  21620            save_CFLAGS="$CFLAGS"
  21621            CFLAGS="$save_CFLAGS $IBUS_CFLAGS"
  21622            ac_fn_c_check_header_mongrel "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  21623if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes; then :
  21624  have_ibus_ibus_h_hdr=yes
  21625else
  21626  have_ibus_ibus_h_hdr=no
  21627fi
  21628
  21629
  21630            ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  21631if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
  21632  have_inotify_inotify_h_hdr=yes
  21633else
  21634  have_inotify_inotify_h_hdr=no
  21635fi
  21636
  21637
  21638            CFLAGS="$save_CFLAGS"
  21639            if test x$have_ibus_ibus_h_hdr = xyes; then
  21640                if test x$enable_dbus != xyes; then
  21641                    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  21642$as_echo "$as_me: WARNING: DBus support is required for IBus." >&2;}
  21643                    have_ibus_ibus_h_hdr=no
  21644                elif test x$have_inotify_inotify_h_hdr != xyes; then
  21645                    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  21646$as_echo "$as_me: WARNING: INotify support is required for IBus." >&2;}
  21647                    have_ibus_ibus_h_hdr=no
  21648                else
  21649
  21650$as_echo "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  21651
  21652                    EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  21653                    SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  21654               fi
  21655            fi
  21656        fi
  21657    fi
  21658}
  21659
  21660CheckTslib()
  21661{
  21662    # Check whether --enable-input-tslib was given.
  21663if test "${enable_input_tslib+set}" = set; then :
  21664  enableval=$enable_input_tslib;
  21665else
  21666  enable_input_tslib=yes
  21667fi
  21668
  21669    if test x$enable_input_tslib = xyes; then
  21670        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Touchscreen library support" >&5
  21671$as_echo_n "checking for Touchscreen library support... " >&6; }
  21672        enable_input_tslib=no
  21673        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21674/* end confdefs.h.  */
  21675
  21676          #include "tslib.h"
  21677
  21678int
  21679main ()
  21680{
  21681
  21682
  21683  ;
  21684  return 0;
  21685}
  21686_ACEOF
  21687if ac_fn_c_try_compile "$LINENO"; then :
  21688
  21689        enable_input_tslib=yes
  21690
  21691fi
  21692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21693        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_input_tslib" >&5
  21694$as_echo "$enable_input_tslib" >&6; }
  21695        if test x$enable_input_tslib = xyes; then
  21696
  21697$as_echo "#define SDL_INPUT_TSLIB 1" >>confdefs.h
  21698
  21699            EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lts"
  21700            SUMMARY_input="${SUMMARY_input} ts"
  21701        fi
  21702    fi
  21703}
  21704
  21705CheckPTHREAD()
  21706{
  21707        # Check whether --enable-pthreads was given.
  21708if test "${enable_pthreads+set}" = set; then :
  21709  enableval=$enable_pthreads;
  21710else
  21711  enable_pthreads=yes
  21712fi
  21713
  21714        # Check whether --enable-pthread-sem was given.
  21715if test "${enable_pthread_sem+set}" = set; then :
  21716  enableval=$enable_pthread_sem;
  21717else
  21718  enable_pthread_sem=yes
  21719fi
  21720
  21721    case "$host" in
  21722         *-*-androideabi*)
  21723            pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  21724            pthread_lib=""
  21725            ;;
  21726        *-*-linux*|*-*-uclinux*)
  21727            pthread_cflags="-D_REENTRANT"
  21728            pthread_lib="-lpthread"
  21729            ;;
  21730        *-*-bsdi*)
  21731            pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  21732            pthread_lib=""
  21733            ;;
  21734        *-*-darwin*)
  21735            pthread_cflags="-D_THREAD_SAFE"
  21736# causes Carbon.p complaints?
  21737#            pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  21738            ;;
  21739        *-*-freebsd*|*-*-dragonfly*)
  21740            pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  21741            pthread_lib="-pthread"
  21742            ;;
  21743        *-*-netbsd*)
  21744            pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  21745            pthread_lib="-lpthread"
  21746            ;;
  21747        *-*-openbsd*)
  21748            pthread_cflags="-D_REENTRANT"
  21749            pthread_lib="-pthread"
  21750            ;;
  21751        *-*-solaris2.9)
  21752            # From Solaris 9+, posix4's preferred name is rt.
  21753            pthread_cflags="-D_REENTRANT"
  21754            pthread_lib="-lpthread -lrt"
  21755            ;;
  21756        *-*-solaris2.10)
  21757            # Solaris 10+ merged pthread into libc.
  21758            pthread_cflags="-D_REENTRANT"
  21759            pthread_lib="-lrt"
  21760            ;;
  21761        *-*-solaris*)
  21762            # Solaris 11+ merged rt into libc.
  21763            pthread_cflags="-D_REENTRANT"
  21764            pthread_lib=""
  21765            ;;
  21766        *-*-sysv5*)
  21767            pthread_cflags="-D_REENTRANT -Kthread"
  21768            pthread_lib=""
  21769            ;;
  21770        *-*-aix*)
  21771            pthread_cflags="-D_REENTRANT -mthreads"
  21772            pthread_lib="-lpthread"
  21773            ;;
  21774        *-*-hpux11*)
  21775            pthread_cflags="-D_REENTRANT"
  21776            pthread_lib="-L/usr/lib -lpthread"
  21777            ;;
  21778        *-*-haiku*)
  21779            pthread_cflags="-D_REENTRANT"
  21780            pthread_lib=""
  21781            ;;
  21782        *)
  21783            pthread_cflags="-D_REENTRANT"
  21784            pthread_lib="-lpthread"
  21785            ;;
  21786    esac
  21787    if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  21788        # Save the original compiler flags and libraries
  21789        ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  21790        # Add the pthread compiler flags and libraries
  21791        CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  21792        # Check to see if we have pthread support on this system
  21793        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  21794$as_echo_n "checking for pthreads... " >&6; }
  21795        use_pthreads=no
  21796        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21797/* end confdefs.h.  */
  21798
  21799         #include <pthread.h>
  21800
  21801int
  21802main ()
  21803{
  21804
  21805         pthread_attr_t type;
  21806         pthread_attr_init(&type);
  21807
  21808  ;
  21809  return 0;
  21810}
  21811_ACEOF
  21812if ac_fn_c_try_link "$LINENO"; then :
  21813
  21814        use_pthreads=yes
  21815
  21816fi
  21817rm -f core conftest.err conftest.$ac_objext \
  21818    conftest$ac_exeext conftest.$ac_ext
  21819        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  21820$as_echo "$use_pthreads" >&6; }
  21821        # Restore the compiler flags and libraries
  21822        CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  21823
  21824        # Do futher testing if we have pthread support...
  21825        if test x$use_pthreads = xyes; then
  21826
  21827$as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  21828
  21829            EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  21830            EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  21831            SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  21832            SDL_LIBS="$SDL_LIBS $pthread_lib"
  21833
  21834            # Save the original compiler flags and libraries
  21835            ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  21836            # Add the pthread compiler flags and libraries
  21837            CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  21838
  21839            # Check to see if recursive mutexes are available
  21840            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  21841$as_echo_n "checking for recursive mutexes... " >&6; }
  21842            has_recursive_mutexes=no
  21843            if test x$has_recursive_mutexes = xno; then
  21844                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21845/* end confdefs.h.  */
  21846
  21847                  #include <pthread.h>
  21848
  21849int
  21850main ()
  21851{
  21852
  21853                  pthread_mutexattr_t attr;
  21854                  pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  21855
  21856  ;
  21857  return 0;
  21858}
  21859_ACEOF
  21860if ac_fn_c_try_compile "$LINENO"; then :
  21861
  21862                has_recursive_mutexes=yes
  21863
  21864$as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  21865
  21866
  21867fi
  21868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21869            fi
  21870            if test x$has_recursive_mutexes = xno; then
  21871                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21872/* end confdefs.h.  */
  21873
  21874                  #include <pthread.h>
  21875
  21876int
  21877main ()
  21878{
  21879
  21880                  pthread_mutexattr_t attr;
  21881                  pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  21882
  21883  ;
  21884  return 0;
  21885}
  21886_ACEOF
  21887if ac_fn_c_try_compile "$LINENO"; then :
  21888
  21889                has_recursive_mutexes=yes
  21890
  21891$as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  21892
  21893
  21894fi
  21895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21896            fi
  21897            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  21898$as_echo "$has_recursive_mutexes" >&6; }
  21899
  21900            # Check to see if pthread semaphore support is missing
  21901            if test x$enable_pthread_sem = xyes; then
  21902                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  21903$as_echo_n "checking for pthread semaphores... " >&6; }
  21904                have_pthread_sem=no
  21905                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21906/* end confdefs.h.  */
  21907
  21908                  #include <pthread.h>
  21909                  #include <semaphore.h>
  21910
  21911int
  21912main ()
  21913{
  21914
  21915
  21916  ;
  21917  return 0;
  21918}
  21919_ACEOF
  21920if ac_fn_c_try_compile "$LINENO"; then :
  21921
  21922                have_pthread_sem=yes
  21923
  21924fi
  21925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21926                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  21927$as_echo "$have_pthread_sem" >&6; }
  21928            fi
  21929            if test x$have_pthread_sem = xyes; then
  21930                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  21931$as_echo_n "checking for sem_timedwait... " >&6; }
  21932                have_sem_timedwait=no
  21933                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21934/* end confdefs.h.  */
  21935
  21936                  #include <pthread.h>
  21937                  #include <semaphore.h>
  21938
  21939int
  21940main ()
  21941{
  21942
  21943                  sem_timedwait(NULL, NULL);
  21944
  21945  ;
  21946  return 0;
  21947}
  21948_ACEOF
  21949if ac_fn_c_try_link "$LINENO"; then :
  21950
  21951                have_sem_timedwait=yes
  21952                $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  21953
  21954
  21955fi
  21956rm -f core conftest.err conftest.$ac_objext \
  21957    conftest$ac_exeext conftest.$ac_ext
  21958                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  21959$as_echo "$have_sem_timedwait" >&6; }
  21960            fi
  21961
  21962            ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  21963"
  21964if test "x$ac_cv_header_pthread_np_h" = xyes; then :
  21965  have_pthread_np_h=yes
  21966else
  21967  have_pthread_np_h=no
  21968fi
  21969
  21970
  21971            if test x$have_pthread_np_h = xyes; then
  21972
  21973$as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  21974
  21975            fi
  21976
  21977            # Check to see if pthread naming is available
  21978            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  21979$as_echo_n "checking for pthread_setname_np... " >&6; }
  21980            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21981/* end confdefs.h.  */
  21982
  21983/* Override any GCC internal prototype to avoid an error.
  21984   Use char because int might match the return type of a GCC
  21985   builtin and then its argument prototype would still apply.  */
  21986#ifdef __cplusplus
  21987extern "C"
  21988#endif
  21989char pthread_setname_np ();
  21990int
  21991main ()
  21992{
  21993return pthread_setname_np ();
  21994  ;
  21995  return 0;
  21996}
  21997_ACEOF
  21998if ac_fn_c_try_link "$LINENO"; then :
  21999
  22000              has_pthread_setname_np=yes
  22001
  22002$as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  22003
  22004
  22005else
  22006
  22007              has_pthread_setname_np=no
  22008
  22009fi
  22010rm -f core conftest.err conftest.$ac_objext \
  22011    conftest$ac_exeext conftest.$ac_ext
  22012            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  22013$as_echo "$has_pthread_setname_np" >&6; }
  22014
  22015            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  22016$as_echo_n "checking for pthread_set_name_np... " >&6; }
  22017            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22018/* end confdefs.h.  */
  22019
  22020/* Override any GCC internal prototype to avoid an error.
  22021   Use char because int might match the return type of a GCC
  22022   builtin and then its argument prototype would still apply.  */
  22023#ifdef __cplusplus
  22024extern "C"
  22025#endif
  22026char pthread_set_name_np ();
  22027int
  22028main ()
  22029{
  22030return pthread_set_name_np ();
  22031  ;
  22032  return 0;
  22033}
  22034_ACEOF
  22035if ac_fn_c_try_link "$LINENO"; then :
  22036
  22037              has_pthread_set_name_np=yes
  22038
  22039$as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  22040
  22041
  22042else
  22043
  22044              has_pthread_set_name_np=no
  22045
  22046fi
  22047rm -f core conftest.err conftest.$ac_objext \
  22048    conftest$ac_exeext conftest.$ac_ext
  22049            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  22050$as_echo "$has_pthread_set_name_np" >&6; }
  22051
  22052            # Restore the compiler flags and libraries
  22053            CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  22054
  22055            # Basic thread creation functions
  22056            SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  22057
  22058            # Semaphores
  22059            # We can fake these with mutexes and condition variables if necessary
  22060            if test x$have_pthread_sem = xyes; then
  22061                SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  22062            else
  22063                SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  22064            fi
  22065
  22066            # Mutexes
  22067            # We can fake these with semaphores if necessary
  22068            SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  22069
  22070            # Condition variables
  22071            # We can fake these with semaphores and mutexes if necessary
  22072            SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  22073
  22074            # Thread local storage
  22075            SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  22076
  22077            have_threads=yes
  22078        fi
  22079    fi
  22080}
  22081
  22082CheckWINDOWS()
  22083{
  22084    { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  22085$as_echo_n "checking Windows compiler... " >&6; }
  22086    have_win32_gcc=no
  22087    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22088/* end confdefs.h.  */
  22089
  22090     #include <windows.h>
  22091
  22092int
  22093main ()
  22094{
  22095
  22096
  22097  ;
  22098  return 0;
  22099}
  22100_ACEOF
  22101if ac_fn_c_try_compile "$LINENO"; then :
  22102
  22103    have_win32_gcc=yes
  22104
  22105fi
  22106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22107    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  22108$as_echo "$have_win32_gcc" >&6; }
  22109    if test x$have_win32_gcc != xyes; then
  22110       as_fn_error $? "
  22111*** Your compiler ($CC) does not produce Windows executables!
  22112       " "$LINENO" 5
  22113    fi
  22114
  22115    { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  22116$as_echo_n "checking Windows CE... " >&6; }
  22117    have_wince=no
  22118    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22119/* end confdefs.h.  */
  22120
  22121#if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  22122#error This is not Windows CE
  22123#endif
  22124
  22125int
  22126main ()
  22127{
  22128
  22129
  22130  ;
  22131  return 0;
  22132}
  22133_ACEOF
  22134if ac_fn_c_try_compile "$LINENO"; then :
  22135
  22136    have_wince=yes
  22137       as_fn_error $? "
  22138*** Sorry, Windows CE is no longer supported.
  22139       " "$LINENO" 5
  22140
  22141fi
  22142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22143    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  22144$as_echo "$have_wince" >&6; }
  22145
  22146    # This fixes Windows stack alignment with newer GCC
  22147    CheckStackBoundary
  22148}
  22149
  22150CheckDIRECTX()
  22151{
  22152    # Check whether --enable-directx was given.
  22153if test "${enable_directx+set}" = set; then :
  22154  enableval=$enable_directx;
  22155else
  22156  enable_directx=yes
  22157fi
  22158
  22159    if test x$enable_directx = xyes; then
  22160        ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  22161if test "x$ac_cv_header_d3d9_h" = xyes; then :
  22162  have_d3d=yes
  22163fi
  22164
  22165
  22166        ac_fn_c_check_header_mongrel "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  22167if test "x$ac_cv_header_d3d11_1_h" = xyes; then :
  22168  have_d3d11=yes
  22169fi
  22170
  22171
  22172        ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  22173if test "x$ac_cv_header_ddraw_h" = xyes; then :
  22174  have_ddraw=yes
  22175fi
  22176
  22177
  22178        ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  22179if test "x$ac_cv_header_dsound_h" = xyes; then :
  22180  have_dsound=yes
  22181fi
  22182
  22183
  22184        ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  22185if test "x$ac_cv_header_dinput_h" = xyes; then :
  22186  have_dinput=yes
  22187fi
  22188
  22189
  22190        ac_fn_c_check_header_mongrel "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  22191if test "x$ac_cv_header_dxgi_h" = xyes; then :
  22192  have_dxgi=yes
  22193fi
  22194
  22195
  22196        ac_fn_c_check_header_mongrel "$LINENO" "xaudio2.h" "ac_cv_header_xaudio2_h" "$ac_includes_default"
  22197if test "x$ac_cv_header_xaudio2_h" = xyes; then :
  22198  have_xaudio2=yes
  22199fi
  22200
  22201
  22202        ac_fn_c_check_header_mongrel "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  22203if test "x$ac_cv_header_xinput_h" = xyes; then :
  22204  have_xinput=yes
  22205fi
  22206
  22207
  22208
  22209        if test x$have_ddraw = xyes; then
  22210
  22211$as_echo "#define HAVE_DDRAW_H 1" >>confdefs.h
  22212
  22213        fi
  22214        if test x$have_dinput = xyes; then
  22215
  22216$as_echo "#define HAVE_DINPUT_H 1" >>confdefs.h
  22217
  22218        fi
  22219        if test x$have_dsound = xyes; then
  22220
  22221$as_echo "#define HAVE_DSOUND_H 1" >>confdefs.h
  22222
  22223        fi
  22224        if test x$have_dxgi = xyes; then
  22225
  22226$as_echo "#define HAVE_DXGI_H 1" >>confdefs.h
  22227
  22228        fi
  22229        if test x$have_xinput = xyes; then
  22230
  22231$as_echo "#define HAVE_XINPUT_H 1" >>confdefs.h
  22232
  22233        fi
  22234
  22235        SUMMARY_video="${SUMMARY_video} directx"
  22236        SUMMARY_audio="${SUMMARY_audio} directx"
  22237
  22238        # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  22239        # FIXME:  ...so force it off for now.
  22240        case "$host" in
  22241            *-*-cygwin*)
  22242            have_dinput=false
  22243            ;;
  22244        esac
  22245    fi
  22246}
  22247
  22248CheckDLOPEN()
  22249{
  22250    # Check whether --enable-sdl-dlopen was given.
  22251if test "${enable_sdl_dlopen+set}" = set; then :
  22252  enableval=$enable_sdl_dlopen;
  22253else
  22254  enable_sdl_dlopen=yes
  22255fi
  22256
  22257    if test x$enable_sdl_dlopen = xyes; then
  22258        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  22259$as_echo_n "checking for dlopen... " >&6; }
  22260        have_dlopen=no
  22261        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22262/* end confdefs.h.  */
  22263
  22264         #include <dlfcn.h>
  22265
  22266int
  22267main ()
  22268{
  22269
  22270         void *handle = dlopen("", RTLD_NOW);
  22271         const char *loaderror = (char *) dlerror();
  22272
  22273  ;
  22274  return 0;
  22275}
  22276_ACEOF
  22277if ac_fn_c_try_compile "$LINENO"; then :
  22278
  22279        have_dlopen=yes
  22280
  22281fi
  22282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22283        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  22284$as_echo "$have_dlopen" >&6; }
  22285
  22286        if test x$have_dlopen = xyes; then
  22287            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  22288$as_echo_n "checking for dlopen in -lc... " >&6; }
  22289if ${ac_cv_lib_c_dlopen+:} false; then :
  22290  $as_echo_n "(cached) " >&6
  22291else
  22292  ac_check_lib_save_LIBS=$LIBS
  22293LIBS="-lc  $LIBS"
  22294cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22295/* end confdefs.h.  */
  22296
  22297/* Override any GCC internal prototype to avoid an error.
  22298   Use char because int might match the return type of a GCC
  22299   builtin and then its argument prototype would still apply.  */
  22300#ifdef __cplusplus
  22301extern "C"
  22302#endif
  22303char dlopen ();
  22304int
  22305main ()
  22306{
  22307return dlopen ();
  22308  ;
  22309  return 0;
  22310}
  22311_ACEOF
  22312if ac_fn_c_try_link "$LINENO"; then :
  22313  ac_cv_lib_c_dlopen=yes
  22314else
  22315  ac_cv_lib_c_dlopen=no
  22316fi
  22317rm -f core conftest.err conftest.$ac_objext \
  22318    conftest$ac_exeext conftest.$ac_ext
  22319LIBS=$ac_check_lib_save_LIBS
  22320fi
  22321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  22322$as_echo "$ac_cv_lib_c_dlopen" >&6; }
  22323if test "x$ac_cv_lib_c_dlopen" = xyes; then :
  22324  EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  22325else
  22326  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  22327$as_echo_n "checking for dlopen in -ldl... " >&6; }
  22328if ${ac_cv_lib_dl_dlopen+:} false; then :
  22329  $as_echo_n "(cached) " >&6
  22330else
  22331  ac_check_lib_save_LIBS=$LIBS
  22332LIBS="-ldl  $LIBS"
  22333cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22334/* end confdefs.h.  */
  22335
  22336/* Override any GCC internal prototype to avoid an error.
  22337   Use char because int might match the return type of a GCC
  22338   builtin and then its argument prototype would still apply.  */
  22339#ifdef __cplusplus
  22340extern "C"
  22341#endif
  22342char dlopen ();
  22343int
  22344main ()
  22345{
  22346return dlopen ();
  22347  ;
  22348  return 0;
  22349}
  22350_ACEOF
  22351if ac_fn_c_try_link "$LINENO"; then :
  22352  ac_cv_lib_dl_dlopen=yes
  22353else
  22354  ac_cv_lib_dl_dlopen=no
  22355fi
  22356rm -f core conftest.err conftest.$ac_objext \
  22357    conftest$ac_exeext conftest.$ac_ext
  22358LIBS=$ac_check_lib_save_LIBS
  22359fi
  22360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  22361$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  22362if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  22363  EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  22364else
  22365  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lltdl" >&5
  22366$as_echo_n "checking for dlopen in -lltdl... " >&6; }
  22367if ${ac_cv_lib_ltdl_dlopen+:} false; then :
  22368  $as_echo_n "(cached) " >&6
  22369else
  22370  ac_check_lib_save_LIBS=$LIBS
  22371LIBS="-lltdl  $LIBS"
  22372cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22373/* end confdefs.h.  */
  22374
  22375/* Override any GCC internal prototype to avoid an error.
  22376   Use char because int might match the return type of a GCC
  22377   builtin and then its argument prototype would still apply.  */
  22378#ifdef __cplusplus
  22379extern "C"
  22380#endif
  22381char dlopen ();
  22382int
  22383main ()
  22384{
  22385return dlopen ();
  22386  ;
  22387  return 0;
  22388}
  22389_ACEOF
  22390if ac_fn_c_try_link "$LINENO"; then :
  22391  ac_cv_lib_ltdl_dlopen=yes
  22392else
  22393  ac_cv_lib_ltdl_dlopen=no
  22394fi
  22395rm -f core conftest.err conftest.$ac_objext \
  22396    conftest$ac_exeext conftest.$ac_ext
  22397LIBS=$ac_check_lib_save_LIBS
  22398fi
  22399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_dlopen" >&5
  22400$as_echo "$ac_cv_lib_ltdl_dlopen" >&6; }
  22401if test "x$ac_cv_lib_ltdl_dlopen" = xyes; then :
  22402  EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lltdl"
  22403fi
  22404
  22405fi
  22406
  22407fi
  22408
  22409
  22410$as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  22411
  22412            SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  22413            have_loadso=yes
  22414        fi
  22415    fi
  22416}
  22417
  22418CheckUSBHID()
  22419{
  22420    case "$host" in
  22421        *-*-*bsd*)
  22422            if test x$enable_joystick = xyes; then
  22423                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  22424$as_echo_n "checking for hid_init in -lusbhid... " >&6; }
  22425if ${ac_cv_lib_usbhid_hid_init+:} false; then :
  22426  $as_echo_n "(cached) " >&6
  22427else
  22428  ac_check_lib_save_LIBS=$LIBS
  22429LIBS="-lusbhid  $LIBS"
  22430cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22431/* end confdefs.h.  */
  22432
  22433/* Override any GCC internal prototype to avoid an error.
  22434   Use char because int might match the return type of a GCC
  22435   builtin and then its argument prototype would still apply.  */
  22436#ifdef __cplusplus
  22437extern "C"
  22438#endif
  22439char hid_init ();
  22440int
  22441main ()
  22442{
  22443return hid_init ();
  22444  ;
  22445  return 0;
  22446}
  22447_ACEOF
  22448if ac_fn_c_try_link "$LINENO"; then :
  22449  ac_cv_lib_usbhid_hid_init=yes
  22450else
  22451  ac_cv_lib_usbhid_hid_init=no
  22452fi
  22453rm -f core conftest.err conftest.$ac_objext \
  22454    conftest$ac_exeext conftest.$ac_ext
  22455LIBS=$ac_check_lib_save_LIBS
  22456fi
  22457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  22458$as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
  22459if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then :
  22460  have_libusbhid=yes
  22461fi
  22462
  22463                if test x$have_libusbhid = xyes; then
  22464                    ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  22465if test "x$ac_cv_header_usbhid_h" = xyes; then :
  22466  USB_CFLAGS="-DHAVE_USBHID_H"
  22467fi
  22468
  22469
  22470                    ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  22471if test "x$ac_cv_header_libusbhid_h" = xyes; then :
  22472  USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  22473fi
  22474
  22475
  22476                    USB_LIBS="$USB_LIBS -lusbhid"
  22477                else
  22478                    ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  22479if test "x$ac_cv_header_usb_h" = xyes; then :
  22480  USB_CFLAGS="-DHAVE_USB_H"
  22481fi
  22482
  22483
  22484                    ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  22485if test "x$ac_cv_header_libusb_h" = xyes; then :
  22486  USB_CFLAGS="-DHAVE_LIBUSB_H"
  22487fi
  22488
  22489
  22490                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  22491$as_echo_n "checking for hid_init in -lusb... " >&6; }
  22492if ${ac_cv_lib_usb_hid_init+:} false; then :
  22493  $as_echo_n "(cached) " >&6
  22494else
  22495  ac_check_lib_save_LIBS=$LIBS
  22496LIBS="-lusb  $LIBS"
  22497cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22498/* end confdefs.h.  */
  22499
  22500/* Override any GCC internal prototype to avoid an error.
  22501   Use char because int might match the return type of a GCC
  22502   builtin and then its argument prototype would still apply.  */
  22503#ifdef __cplusplus
  22504extern "C"
  22505#endif
  22506char hid_init ();
  22507int
  22508main ()
  22509{
  22510return hid_init ();
  22511  ;
  22512  return 0;
  22513}
  22514_ACEOF
  22515if ac_fn_c_try_link "$LINENO"; then :
  22516  ac_cv_lib_usb_hid_init=yes
  22517else
  22518  ac_cv_lib_usb_hid_init=no
  22519fi
  22520rm -f core conftest.err conftest.$ac_objext \
  22521    conftest$ac_exeext conftest.$ac_ext
  22522LIBS=$ac_check_lib_save_LIBS
  22523fi
  22524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  22525$as_echo "$ac_cv_lib_usb_hid_init" >&6; }
  22526if test "x$ac_cv_lib_usb_hid_init" = xyes; then :
  22527  USB_LIBS="$USB_LIBS -lusb"
  22528fi
  22529
  22530                fi
  22531
  22532                save_CFLAGS="$CFLAGS"
  22533                CFLAGS="$CFLAGS $USB_CFLAGS"
  22534
  22535                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  22536$as_echo_n "checking for usbhid... " >&6; }
  22537                have_usbhid=no
  22538                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22539/* end confdefs.h.  */
  22540
  22541                  #include <sys/types.h>
  22542                  #if defined(HAVE_USB_H)
  22543                  #include <usb.h>
  22544                  #endif
  22545                  #ifdef __DragonFly__
  22546                  # include <bus/usb/usb.h>
  22547                  # include <bus/usb/usbhid.h>
  22548                  #else
  22549                  # include <dev/usb/usb.h>
  22550                  # include <dev/usb/usbhid.h>
  22551                  #endif
  22552                  #if defined(HAVE_USBHID_H)
  22553                  #include <usbhid.h>
  22554                  #elif defined(HAVE_LIBUSB_H)
  22555                  #include <libusb.h>
  22556                  #elif defined(HAVE_LIBUSBHID_H)
  22557                  #include <libusbhid.h>
  22558                  #endif
  22559
  22560int
  22561main ()
  22562{
  22563
  22564                  struct report_desc *repdesc;
  22565                  struct usb_ctl_report *repbuf;
  22566                  hid_kind_t hidkind;
  22567
  22568  ;
  22569  return 0;
  22570}
  22571_ACEOF
  22572if ac_fn_c_try_compile "$LINENO"; then :
  22573
  22574                have_usbhid=yes
  22575
  22576fi
  22577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22578                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  22579$as_echo "$have_usbhid" >&6; }
  22580
  22581                if test x$have_usbhid = xyes; then
  22582                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  22583$as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
  22584                    have_usbhid_ucr_data=no
  22585                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22586/* end confdefs.h.  */
  22587
  22588                      #include <sys/types.h>
  22589                      #if defined(HAVE_USB_H)
  22590                      #include <usb.h>
  22591                      #endif
  22592                      #ifdef __DragonFly__
  22593                      # include <bus/usb/usb.h>
  22594                      # include <bus/usb/usbhid.h>
  22595                      #else
  22596                      # include <dev/usb/usb.h>
  22597                      # include <dev/usb/usbhid.h>
  22598                      #endif
  22599                      #if defined(HAVE_USBHID_H)
  22600                      #include <usbhid.h>
  22601                      #elif defined(HAVE_LIBUSB_H)
  22602                      #include <libusb.h>
  22603                      #elif defined(HAVE_LIBUSBHID_H)
  22604                      #include <libusbhid.h>
  22605                      #endif
  22606
  22607int
  22608main ()
  22609{
  22610
  22611                      struct usb_ctl_report buf;
  22612                      if (buf.ucr_data) { }
  22613
  22614  ;
  22615  return 0;
  22616}
  22617_ACEOF
  22618if ac_fn_c_try_compile "$LINENO"; then :
  22619
  22620                    have_usbhid_ucr_data=yes
  22621
  22622fi
  22623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22624                    if test x$have_usbhid_ucr_data = xyes; then
  22625                        USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  22626                    fi
  22627                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  22628$as_echo "$have_usbhid_ucr_data" >&6; }
  22629
  22630                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  22631$as_echo_n "checking for new usbhid API... " >&6; }
  22632                    have_usbhid_new=no
  22633                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22634/* end confdefs.h.  */
  22635
  22636                      #include <sys/types.h>
  22637                      #if defined(HAVE_USB_H)
  22638                      #include <usb.h>
  22639                      #endif
  22640                      #ifdef __DragonFly__
  22641                      #include <bus/usb/usb.h>
  22642                      #include <bus/usb/usbhid.h>
  22643                      #else
  22644                      #include <dev/usb/usb.h>
  22645                      #include <dev/usb/usbhid.h>
  22646                      #endif
  22647                      #if defined(HAVE_USBHID_H)
  22648                      #include <usbhid.h>
  22649                      #elif defined(HAVE_LIBUSB_H)
  22650                      #include <libusb.h>
  22651                      #elif defined(HAVE_LIBUSBHID_H)
  22652                      #include <libusbhid.h>
  22653                      #endif
  22654
  22655int
  22656main ()
  22657{
  22658
  22659                      report_desc_t d;
  22660                      hid_start_parse(d, 1, 1);
  22661
  22662  ;
  22663  return 0;
  22664}
  22665_ACEOF
  22666if ac_fn_c_try_compile "$LINENO"; then :
  22667
  22668                    have_usbhid_new=yes
  22669
  22670fi
  22671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22672                    if test x$have_usbhid_new = xyes; then
  22673                        USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  22674                    fi
  22675                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  22676$as_echo "$have_usbhid_new" >&6; }
  22677
  22678                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  22679$as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; }
  22680                    have_machine_joystick=no
  22681                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22682/* end confdefs.h.  */
  22683
  22684                      #include <machine/joystick.h>
  22685
  22686int
  22687main ()
  22688{
  22689
  22690                      struct joystick t;
  22691
  22692  ;
  22693  return 0;
  22694}
  22695_ACEOF
  22696if ac_fn_c_try_compile "$LINENO"; then :
  22697
  22698                    have_machine_joystick=yes
  22699
  22700fi
  22701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22702                    if test x$have_machine_joystick = xyes; then
  22703
  22704$as_echo "#define SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H 1" >>confdefs.h
  22705
  22706                    fi
  22707                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  22708$as_echo "$have_machine_joystick" >&6; }
  22709
  22710
  22711$as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  22712
  22713                    SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  22714                    EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  22715                    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  22716                    have_joystick=yes
  22717                fi
  22718                CFLAGS="$save_CFLAGS"
  22719            fi
  22720        ;;
  22721    esac
  22722}
  22723
  22724CheckClockGettime()
  22725{
  22726    # Check whether --enable-clock_gettime was given.
  22727if test "${enable_clock_gettime+set}" = set; then :
  22728  enableval=$enable_clock_gettime;
  22729else
  22730  enable_clock_gettime=yes
  22731fi
  22732
  22733    if test x$enable_clock_gettime = xyes; then
  22734        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  22735$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  22736if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  22737  $as_echo_n "(cached) " >&6
  22738else
  22739  ac_check_lib_save_LIBS=$LIBS
  22740LIBS="-lrt  $LIBS"
  22741cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22742/* end confdefs.h.  */
  22743
  22744/* Override any GCC internal prototype to avoid an error.
  22745   Use char because int might match the return type of a GCC
  22746   builtin and then its argument prototype would still apply.  */
  22747#ifdef __cplusplus
  22748extern "C"
  22749#endif
  22750char clock_gettime ();
  22751int
  22752main ()
  22753{
  22754return clock_gettime ();
  22755  ;
  22756  return 0;
  22757}
  22758_ACEOF
  22759if ac_fn_c_try_link "$LINENO"; then :
  22760  ac_cv_lib_rt_clock_gettime=yes
  22761else
  22762  ac_cv_lib_rt_clock_gettime=no
  22763fi
  22764rm -f core conftest.err conftest.$ac_objext \
  22765    conftest$ac_exeext conftest.$ac_ext
  22766LIBS=$ac_check_lib_save_LIBS
  22767fi
  22768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  22769$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  22770if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  22771  have_clock_gettime=yes
  22772fi
  22773
  22774        if test x$have_clock_gettime = xyes; then
  22775
  22776$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  22777
  22778            EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  22779        else
  22780            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  22781$as_echo_n "checking for clock_gettime in -lc... " >&6; }
  22782if ${ac_cv_lib_c_clock_gettime+:} false; then :
  22783  $as_echo_n "(cached) " >&6
  22784else
  22785  ac_check_lib_save_LIBS=$LIBS
  22786LIBS="-lc  $LIBS"
  22787cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22788/* end confdefs.h.  */
  22789
  22790/* Override any GCC internal prototype to avoid an error.
  22791   Use char because int might match the return type of a GCC
  22792   builtin and then its argument prototype would still apply.  */
  22793#ifdef __cplusplus
  22794extern "C"
  22795#endif
  22796char clock_gettime ();
  22797int
  22798main ()
  22799{
  22800return clock_gettime ();
  22801  ;
  22802  return 0;
  22803}
  22804_ACEOF
  22805if ac_fn_c_try_link "$LINENO"; then :
  22806  ac_cv_lib_c_clock_gettime=yes
  22807else
  22808  ac_cv_lib_c_clock_gettime=no
  22809fi
  22810rm -f core conftest.err conftest.$ac_objext \
  22811    conftest$ac_exeext conftest.$ac_ext
  22812LIBS=$ac_check_lib_save_LIBS
  22813fi
  22814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  22815$as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
  22816if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
  22817  have_clock_gettime=yes
  22818fi
  22819
  22820            if test x$have_clock_gettime = xyes; then
  22821
  22822$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  22823
  22824               EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  22825            fi
  22826        fi
  22827    fi
  22828}
  22829
  22830CheckLinuxVersion()
  22831{
  22832    ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  22833if test "x$ac_cv_header_linux_version_h" = xyes; then :
  22834  have_linux_version_h=yes
  22835fi
  22836
  22837
  22838    if test x$have_linux_version_h = xyes; then
  22839        EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  22840    fi
  22841}
  22842
  22843CheckRPATH()
  22844{
  22845    # Check whether --enable-rpath was given.
  22846if test "${enable_rpath+set}" = set; then :
  22847  enableval=$enable_rpath;
  22848else
  22849  enable_rpath=yes
  22850fi
  22851
  22852}
  22853
  22854case "$host" in
  22855    *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*)
  22856        case "$host" in
  22857            *-raspberry-linux*)
  22858                # Raspberry Pi
  22859                ARCH=linux
  22860                RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  22861                CFLAGS="$CFLAGS $RPI_CFLAGS"
  22862                SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  22863                EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  22864                EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L/opt/vc/lib -lbcm_host -ldl"
  22865
  22866                if test x$enable_video = xyes; then
  22867                    SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  22868                    $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  22869                fi
  22870                ;;
  22871            *-*-androideabi*)
  22872                # Android
  22873                ARCH=android
  22874                ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  22875                CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  22876                SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  22877                EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  22878                EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  22879
  22880                if test x$enable_video = xyes; then
  22881                    SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  22882                    $as_echo "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  22883                    SUMMARY_video="${SUMMARY_video} android"
  22884                fi
  22885                ;;
  22886            *-*-linux*)         ARCH=linux ;;
  22887            *-*-uclinux*)       ARCH=linux ;;
  22888            *-*-kfreebsd*-gnu)  ARCH=kfreebsd-gnu ;;
  22889            *-*-knetbsd*-gnu)   ARCH=knetbsd-gnu ;;
  22890            *-*-kopenbsd*-gnu)  ARCH=kopenbsd-gnu ;;
  22891            *-*-gnu*)           ARCH=gnu ;; # must be last of the gnu variants
  22892            *-*-bsdi*)          ARCH=bsdi ;;
  22893            *-*-freebsd*)       ARCH=freebsd ;;
  22894            *-*-dragonfly*)     ARCH=freebsd ;;
  22895            *-*-netbsd*)        ARCH=netbsd ;;
  22896            *-*-openbsd*)       ARCH=openbsd ;;
  22897            *-*-sysv5*)         ARCH=sysv5 ;;
  22898            *-*-solaris*)       ARCH=solaris ;;
  22899            *-*-hpux*)          ARCH=hpux ;;
  22900            *-*-aix*)           ARCH=aix ;;
  22901            *-*-minix*)         ARCH=minix ;;
  22902        esac
  22903        CheckVisibilityHidden
  22904        CheckDummyVideo
  22905        CheckDiskAudio
  22906        CheckDummyAudio
  22907        CheckDLOPEN
  22908        CheckOSS
  22909        CheckALSA
  22910        CheckPulseAudio
  22911        CheckARTSC
  22912        CheckESD
  22913        CheckNAS
  22914        CheckSNDIO
  22915        CheckX11
  22916        CheckDirectFB
  22917        CheckFusionSound
  22918        CheckOpenGLX11
  22919        CheckOpenGLESX11
  22920        CheckMir
  22921        CheckWayland
  22922        CheckLibUDev
  22923        CheckDBus
  22924        CheckIBus
  22925        CheckInputEvents
  22926        CheckInputKD
  22927        CheckTslib
  22928        CheckUSBHID
  22929        CheckPTHREAD
  22930        CheckClockGettime
  22931        CheckLinuxVersion
  22932        CheckRPATH
  22933        CheckVivanteVideo
  22934        # Set up files for the audio library
  22935        if test x$enable_audio = xyes; then
  22936          case $ARCH in
  22937            sysv5|solaris|hpux)
  22938
  22939$as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  22940
  22941                SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  22942                have_audio=yes
  22943            ;;
  22944            netbsd)  # Don't use this on OpenBSD, it's busted.
  22945
  22946$as_echo "#define SDL_AUDIO_DRIVER_BSD 1" >>confdefs.h
  22947
  22948                SOURCES="$SOURCES $srcdir/src/audio/bsd/*.c"
  22949                have_audio=yes
  22950            ;;
  22951            aix)
  22952
  22953$as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  22954
  22955                SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  22956                have_audio=yes
  22957            ;;
  22958            android)
  22959
  22960$as_echo "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  22961
  22962                SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  22963                SUMMARY_audio="${SUMMARY_audio} android"
  22964                have_audio=yes
  22965            ;;
  22966          esac
  22967        fi
  22968        # Set up files for the joystick library
  22969        if test x$enable_joystick = xyes; then
  22970          case $ARCH in
  22971            linux)
  22972
  22973$as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  22974
  22975                SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  22976                have_joystick=yes
  22977            ;;
  22978            android)
  22979
  22980$as_echo "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  22981
  22982                SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  22983                have_joystick=yes
  22984            ;;
  22985          esac
  22986        fi
  22987        # Set up files for the haptic library
  22988        if test x$enable_haptic = xyes; then
  22989           if test x$use_input_events = xyes; then
  22990             case $ARCH in
  22991               linux)
  22992
  22993$as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  22994
  22995                   SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  22996                   have_haptic=yes
  22997               ;;
  22998             esac
  22999           fi
  23000        fi
  23001        # Set up files for the power library
  23002        if test x$enable_power = xyes; then
  23003             case $ARCH in
  23004               linux)
  23005
  23006$as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h
  23007
  23008                   SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  23009                   have_power=yes
  23010               ;;
  23011               android)
  23012
  23013$as_echo "#define SDL_POWER_ANDROID 1" >>confdefs.h
  23014
  23015                   SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  23016                   have_power=yes
  23017               ;;
  23018             esac
  23019        fi
  23020        # Set up files for the filesystem library
  23021        if test x$enable_filesystem = xyes; then
  23022
  23023$as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  23024
  23025            SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  23026            have_filesystem=yes
  23027        fi
  23028        # Set up files for the timer library
  23029        if test x$enable_timers = xyes; then
  23030
  23031$as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  23032
  23033            SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  23034            have_timers=yes
  23035        fi
  23036        # Set up files for udev hotplugging support
  23037        if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  23038            SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  23039        fi
  23040        # Set up files for evdev input
  23041        if test x$use_input_events = xyes; then
  23042            SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
  23043        fi
  23044        ;;
  23045    *-*-cygwin* | *-*-mingw32*)
  23046        ARCH=win32
  23047        if test "$build" != "$host"; then # cross-compiling
  23048            # Default cross-compile location
  23049            ac_default_prefix=/usr/local/cross-tools/$host
  23050        else
  23051            # Look for the location of the tools and install there
  23052            if test "$BUILD_PREFIX" != ""; then
  23053                ac_default_prefix=$BUILD_PREFIX
  23054            fi
  23055        fi
  23056        CheckDummyVideo
  23057        CheckDiskAudio
  23058        CheckDummyAudio
  23059        CheckWINDOWS
  23060        CheckWINDOWSGL
  23061        CheckWINDOWSGLES
  23062        CheckDIRECTX
  23063
  23064        # Set up the core platform files
  23065        SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  23066
  23067        # Set up files for the video library
  23068        if test x$enable_video = xyes; then
  23069
  23070$as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  23071
  23072            SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  23073            have_video=yes
  23074            # Check whether --enable-render-d3d was given.
  23075if test "${enable_render_d3d+set}" = set; then :
  23076  enableval=$enable_render_d3d;
  23077else
  23078  enable_render_d3d=yes
  23079fi
  23080
  23081            if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  23082
  23083$as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  23084
  23085            fi
  23086            if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  23087
  23088$as_echo "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  23089
  23090            fi
  23091        fi
  23092        # Set up files for the audio library
  23093        if test x$enable_audio = xyes; then
  23094
  23095$as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  23096
  23097            SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  23098            if test x$have_dsound = xyes; then
  23099
  23100$as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  23101
  23102                SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  23103            fi
  23104            if test x$have_xaudio2 = xyes; then
  23105
  23106$as_echo "#define SDL_AUDIO_DRIVER_XAUDIO2 1" >>confdefs.h
  23107
  23108                SOURCES="$SOURCES $srcdir/src/audio/xaudio2/*.c"
  23109            fi
  23110            have_audio=yes
  23111        fi
  23112        # Set up files for the joystick library
  23113        if test x$enable_joystick = xyes; then
  23114            if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  23115                if test x$have_xinput = xyes; then
  23116
  23117$as_echo "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  23118
  23119                fi
  23120                if test x$have_dinput = xyes; then
  23121
  23122$as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  23123
  23124                    EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  23125                fi
  23126            else
  23127
  23128$as_echo "#define SDL_JOYSTICK_WINMM 1" >>confdefs.h
  23129
  23130            fi
  23131            SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  23132            have_joystick=yes
  23133        fi
  23134        if test x$enable_haptic = xyes; then
  23135            if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  23136                if test x$have_xinput = xyes; then
  23137
  23138$as_echo "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  23139
  23140                fi
  23141                if test x$have_dinput = xyes; then
  23142
  23143$as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  23144
  23145                fi
  23146                SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  23147                have_haptic=yes
  23148            fi
  23149        fi
  23150        if test x$enable_power = xyes; then
  23151
  23152$as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  23153
  23154            SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  23155            have_power=yes
  23156        fi
  23157        if test x$enable_filesystem = xyes; then
  23158
  23159$as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  23160
  23161            SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  23162            have_filesystem=yes
  23163        fi
  23164        # Set up files for the thread library
  23165        if test x$enable_threads = xyes; then
  23166
  23167$as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  23168
  23169            SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  23170            SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  23171            have_threads=yes
  23172        fi
  23173        # Set up files for the timer library
  23174        if test x$enable_timers = xyes; then
  23175
  23176$as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  23177
  23178            SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  23179            have_timers=yes
  23180        fi
  23181        # Set up files for the shared object loading library
  23182        if test x$enable_loadso = xyes; then
  23183
  23184$as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  23185
  23186            SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  23187            have_loadso=yes
  23188        fi
  23189        # Set up the system libraries we need
  23190        if test -f /lib/w32api/libuuid.a; then
  23191            LIBUUID=/lib/w32api/libuuid.a
  23192        else
  23193            LIBUUID=-luuid
  23194        fi
  23195        EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lversion $LIBUUID -XCClinker -static-libgcc"
  23196        # The Windows platform requires special setup
  23197        VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  23198        SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  23199        SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  23200        SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  23201
  23202        # Check to see if this is a mingw or cygwin build
  23203        have_mingw32=
  23204        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  23205$as_echo_n "checking for main in -lmingw32... " >&6; }
  23206if ${ac_cv_lib_mingw32_main+:} false; then :
  23207  $as_echo_n "(cached) " >&6
  23208else
  23209  ac_check_lib_save_LIBS=$LIBS
  23210LIBS="-lmingw32  $LIBS"
  23211cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23212/* end confdefs.h.  */
  23213
  23214
  23215int
  23216main ()
  23217{
  23218return main ();
  23219  ;
  23220  return 0;
  23221}
  23222_ACEOF
  23223if ac_fn_c_try_link "$LINENO"; then :
  23224  ac_cv_lib_mingw32_main=yes
  23225else
  23226  ac_cv_lib_mingw32_main=no
  23227fi
  23228rm -f core conftest.err conftest.$ac_objext \
  23229    conftest$ac_exeext conftest.$ac_ext
  23230LIBS=$ac_check_lib_save_LIBS
  23231fi
  23232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  23233$as_echo "$ac_cv_lib_mingw32_main" >&6; }
  23234if test "x$ac_cv_lib_mingw32_main" = xyes; then :
  23235  have_mingw32=yes
  23236fi
  23237
  23238        if test x$have_mingw32 = xyes; then
  23239            SDL_LIBS="-lmingw32 $SDL_LIBS"
  23240        else
  23241            SDL_LIBS="-lcygwin $SDL_LIBS"
  23242        fi
  23243        ;;
  23244
  23245        *-*-beos*)
  23246        as_fn_error $? "
  23247*** BeOS support has been removed as of SDL 2.0.2.
  23248        " "$LINENO" 5
  23249        ;;
  23250
  23251    *-*-haiku*)
  23252        ARCH=haiku
  23253        ac_default_prefix=/boot/system
  23254        CheckDummyVideo
  23255        CheckDiskAudio
  23256        CheckDummyAudio
  23257        CheckHaikuVideo
  23258        CheckHaikuGL
  23259        CheckPTHREAD
  23260
  23261        # Set up files for the audio library
  23262        if test x$enable_audio = xyes; then
  23263
  23264$as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  23265
  23266            SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  23267            have_audio=yes
  23268        fi
  23269        # Set up files for the joystick library
  23270        if test x$enable_joystick = xyes; then
  23271
  23272$as_echo "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  23273
  23274            SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  23275            have_joystick=yes
  23276        fi
  23277        # Set up files for the timer library
  23278        if test x$enable_timers = xyes; then
  23279
  23280$as_echo "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  23281
  23282            SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  23283            have_timers=yes
  23284        fi
  23285        # Set up files for the shared object loading library
  23286        if test x$enable_loadso = xyes; then
  23287
  23288$as_echo "#define SDL_LOADSO_HAIKU 1" >>confdefs.h
  23289
  23290            SOURCES="$SOURCES $srcdir/src/loadso/haiku/*.c"
  23291            have_loadso=yes
  23292        fi
  23293        # Set up files for the system power library
  23294        if test x$enable_power = xyes; then
  23295
  23296$as_echo "#define SDL_POWER_HAIKU 1" >>confdefs.h
  23297
  23298            SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  23299            have_power=yes
  23300        fi
  23301        # Set up files for the system filesystem library
  23302        if test x$enable_filesystem = xyes; then
  23303
  23304$as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  23305
  23306            SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  23307            have_filesystem=yes
  23308        fi
  23309        # The Haiku platform requires special setup.
  23310        SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  23311        EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  23312        ;;
  23313    arm*-apple-darwin*)
  23314        # iOS - We are not writing anything to confdefs.h because you have to replace
  23315        # SDL_config.h for SDL_config_iphoneos.h anyway
  23316        ARCH=ios
  23317
  23318        CheckVisibilityHidden
  23319        CheckDummyVideo
  23320        CheckDiskAudio
  23321        CheckDummyAudio
  23322        CheckDLOPEN
  23323        CheckCOCOA
  23324        CheckPTHREAD
  23325
  23326
  23327        # Set up files for the audio library
  23328        if test x$enable_audio = xyes; then
  23329            SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.c"
  23330            SUMMARY_audio="${SUMMARY_audio} coreaudio"
  23331            have_audio=yes
  23332        fi
  23333        # Set up files for the joystick library
  23334        if test x$enable_joystick = xyes; then
  23335            SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  23336            have_joystick=yes
  23337        fi
  23338        # Set up files for the haptic library
  23339        #if test x$enable_haptic = xyes; then
  23340        #    SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  23341        #    have_haptic=yes
  23342        #    EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  23343        #fi
  23344        # Set up files for the power library
  23345        if test x$enable_power = xyes; then
  23346            SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  23347            have_power=yes
  23348        fi
  23349        # Set up files for the filesystem library
  23350        if test x$enable_filesystem = xyes; then
  23351            SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  23352            have_filesystem=yes
  23353        fi
  23354        # Set up files for the timer library
  23355        if test x$enable_timers = xyes; then
  23356            SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  23357            have_timers=yes
  23358        fi
  23359        # Set up additional files for the file library
  23360        if test x$enable_file = xyes; then
  23361            SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  23362        fi
  23363        # The iOS platform requires special setup.
  23364        SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  23365        EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings"
  23366        EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  23367        EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  23368        EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  23369        EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  23370        EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  23371        EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  23372        EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  23373        EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  23374        EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  23375        ;;
  23376    *-*-darwin* )
  23377        # This could be either full "Mac OS X", or plain "Darwin" which is
  23378        # just the OS X kernel sans upper layers like Carbon and Cocoa.
  23379        # Next line is broken, and a few files below require Mac OS X (full)
  23380        ARCH=macosx
  23381
  23382        # Mac OS X builds with both the Carbon and OSX APIs at the moment
  23383        EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  23384        EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  23385
  23386        CheckVisibilityHidden
  23387        CheckDummyVideo
  23388        CheckDiskAudio
  23389        CheckDummyAudio
  23390        CheckDLOPEN
  23391        CheckCOCOA
  23392        CheckX11
  23393        CheckMacGL
  23394        CheckOpenGLX11
  23395        CheckPTHREAD
  23396
  23397        # Set up files for the audio library
  23398        if test x$enable_audio = xyes; then
  23399
  23400$as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  23401
  23402            SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.c"
  23403            SUMMARY_audio="${SUMMARY_audio} coreaudio"
  23404            have_audio=yes
  23405        fi
  23406        # Set up files for the joystick library
  23407        if test x$enable_joystick = xyes; then
  23408
  23409$as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  23410
  23411            SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  23412            have_joystick=yes
  23413        fi
  23414        # Set up files for the haptic library
  23415        if test x$enable_haptic = xyes; then
  23416
  23417$as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  23418
  23419            SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  23420            have_haptic=yes
  23421            EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  23422        fi
  23423        # Set up files for the power library
  23424        if test x$enable_power = xyes; then
  23425
  23426$as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
  23427
  23428            SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  23429            have_power=yes
  23430        fi
  23431        # Set up files for the filesystem library
  23432        if test x$enable_filesystem = xyes; then
  23433
  23434$as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  23435
  23436            SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  23437            have_filesystem=yes
  23438        fi
  23439        # Set up files for the timer library
  23440        if test x$enable_timers = xyes; then
  23441
  23442$as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  23443
  23444            SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  23445            have_timers=yes
  23446        fi
  23447        # Set up additional files for the file library
  23448        if test x$enable_file = xyes; then
  23449            SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  23450        fi
  23451        # The Mac OS X platform requires special setup.
  23452        EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings"
  23453        EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  23454        EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  23455        EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  23456        EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  23457        EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  23458        # If audio is used, add the AudioUnit framework
  23459        if test x$enable_audio = xyes; then
  23460            EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit"
  23461        fi
  23462        ;;
  23463    *-nacl|*-pnacl)
  23464        ARCH=nacl
  23465        CheckNativeClient
  23466        CheckDummyAudio
  23467        CheckDummyVideo
  23468        CheckInputEvents
  23469        CheckPTHREAD
  23470
  23471        # Set up files for the timer library
  23472        if test x$enable_timers = xyes; then
  23473            $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  23474
  23475            SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  23476            have_timers=yes
  23477        fi
  23478
  23479        if test x$enable_filesystem = xyes; then
  23480
  23481$as_echo "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  23482
  23483            SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  23484            have_filesystem=yes
  23485        fi
  23486
  23487        ;;
  23488    *)
  23489        as_fn_error $? "
  23490*** Unsupported host:  Please add to configure.in
  23491        " "$LINENO" 5
  23492        ;;
  23493esac
  23494
  23495CheckWarnAll
  23496CheckWarnShadow
  23497
  23498# Verify that we have all the platform specific files we need
  23499
  23500if test x$have_joystick != xyes; then
  23501    if test x$enable_joystick = xyes; then
  23502
  23503$as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  23504
  23505    fi
  23506    SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  23507fi
  23508if test x$have_haptic != xyes; then
  23509    if test x$enable_haptic = xyes; then
  23510
  23511$as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  23512
  23513    fi
  23514    SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  23515fi
  23516if test x$have_threads != xyes; then
  23517    if test x$enable_threads = xyes; then
  23518
  23519$as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  23520
  23521    fi
  23522    SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  23523fi
  23524if test x$have_timers != xyes; then
  23525    if test x$enable_timers = xyes; then
  23526
  23527$as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  23528
  23529    fi
  23530    SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  23531fi
  23532if test x$have_filesystem != xyes; then
  23533    if test x$enable_filesystem = xyes; then
  23534
  23535$as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  23536
  23537    fi
  23538    SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  23539fi
  23540if test x$have_loadso != xyes; then
  23541    if test x$enable_loadso = xyes; then
  23542
  23543$as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  23544
  23545    fi
  23546    SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  23547fi
  23548if test x$SDLMAIN_SOURCES = x; then
  23549    SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  23550fi
  23551SDLTEST_SOURCES="$srcdir/src/test/*.c"
  23552
  23553OBJECTS=`echo $SOURCES`
  23554DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  23555for EXT in asm cc m c S; do
  23556    OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  23557    DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  23558\\$(objects)/\\2.lo: \\1/\\2.$EXT\\\\
  23559	\\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  23560done
  23561
  23562VERSION_OBJECTS=`echo $VERSION_SOURCES`
  23563VERSION_DEPENDS=`echo $VERSION_SOURCES`
  23564VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.o,g'`
  23565VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  23566\\$(objects)/\\2.o: \\1/\\2.rc\\\\
  23567	\\$(WINDRES) \\$< \\$@,g"`
  23568
  23569SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  23570SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  23571SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.o,g'`
  23572SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  23573\\$(objects)/\\2.o: \\1/\\2.c\\\\
  23574	\\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  23575
  23576SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  23577SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  23578SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.o,g'`
  23579SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  23580\\$(objects)/\\2.o: \\1/\\2.c\\\\
  23581	\\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  23582
  23583# Set runtime shared library paths as needed
  23584
  23585if test "x$enable_rpath" = "xyes"; then
  23586  if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  23587    SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  23588  fi
  23589  if test $ARCH = solaris; then
  23590    SDL_RLD_FLAGS="-R\${libdir}"
  23591  fi
  23592else
  23593  SDL_RLD_FLAGS=""
  23594fi
  23595
  23596SDL_STATIC_LIBS="$SDL_LIBS $EXTRA_LDFLAGS"
  23597
  23598
  23599
  23600
  23601
  23602if test x$enable_shared = xyes; then
  23603    ENABLE_SHARED_TRUE=
  23604    ENABLE_SHARED_FALSE="#"
  23605else
  23606    ENABLE_SHARED_TRUE="#"
  23607    ENABLE_SHARED_FALSE=
  23608fi
  23609if test x$enable_static = xyes; then
  23610    ENABLE_STATIC_TRUE=
  23611    ENABLE_STATIC_FALSE="#"
  23612else
  23613    ENABLE_STATIC_TRUE="#"
  23614    ENABLE_STATIC_FALSE=
  23615fi
  23616
  23617
  23618
  23619
  23620
  23621
  23622
  23623
  23624
  23625
  23626
  23627
  23628
  23629
  23630
  23631
  23632
  23633cat >Makefile.rules <<__EOF__
  23634
  23635# Build rules for objects
  23636-include \$(OBJECTS:.lo=.d)
  23637
  23638# Special dependency for SDL.c, since it depends on SDL_revision.h
  23639$srcdir/src/SDL.c: update-revision
  23640$DEPENDS
  23641$VERSION_DEPENDS
  23642$SDLMAIN_DEPENDS
  23643$SDLTEST_DEPENDS
  23644__EOF__
  23645
  23646ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config SDL2.spec sdl2.pc"
  23647
  23648ac_config_commands="$ac_config_commands sdl2_config"
  23649
  23650
  23651SUMMARY="SDL2 Configure Summary:\n"
  23652if test x$enable_shared = xyes; then
  23653    SUMMARY="${SUMMARY}Building Shared Libraries\n"
  23654fi
  23655if test x$enable_static = xyes; then
  23656    SUMMARY="${SUMMARY}Building Static Libraries\n"
  23657fi
  23658SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  23659SUMMARY="${SUMMARY}Assembly Math   :${SUMMARY_math}\n"
  23660SUMMARY="${SUMMARY}Audio drivers   :${SUMMARY_audio}\n"
  23661SUMMARY="${SUMMARY}Video drivers   :${SUMMARY_video}\n"
  23662if test x$have_x = xyes; then
  23663    SUMMARY="${SUMMARY}X11 libraries   :${SUMMARY_video_x11}\n"
  23664fi
  23665SUMMARY="${SUMMARY}Input drivers   :${SUMMARY_input}\n"
  23666if test x$enable_libudev = xyes; then
  23667    SUMMARY="${SUMMARY}Using libudev   : YES\n"
  23668else
  23669    SUMMARY="${SUMMARY}Using libudev   : NO\n"
  23670fi
  23671if test x$have_dbus_dbus_h_hdr = xyes; then
  23672    SUMMARY="${SUMMARY}Using dbus      : YES\n"
  23673else
  23674    SUMMARY="${SUMMARY}Using dbus      : NO\n"
  23675fi
  23676if test x$have_ibus_ibus_h_hdr = xyes; then
  23677    SUMMARY="${SUMMARY}Using ibus      : YES\n"
  23678else
  23679    SUMMARY="${SUMMARY}Using ibus      : NO\n"
  23680fi
  23681ac_config_commands="$ac_config_commands summary"
  23682
  23683
  23684cat >confcache <<\_ACEOF
  23685# This file is a shell script that caches the results of configure
  23686# tests run on this system so they can be shared between configure
  23687# scripts and configure runs, see configure's option --config-cache.
  23688# It is not useful on other systems.  If it contains results you don't
  23689# want to keep, you may remove or edit it.
  23690#
  23691# config.status only pays attention to the cache file if you give it
  23692# the --recheck option to rerun configure.
  23693#
  23694# `ac_cv_env_foo' variables (set or unset) will be overridden when
  23695# loading this file, other *unset* `ac_cv_foo' will be assigned the
  23696# following values.
  23697
  23698_ACEOF
  23699
  23700# The following way of writing the cache mishandles newlines in values,
  23701# but we know of no workaround that is simple, portable, and efficient.
  23702# So, we kill variables containing newlines.
  23703# Ultrix sh set writes to stderr and can't be redirected directly,
  23704# and sets the high bit in the cache file unless we assign to the vars.
  23705(
  23706  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  23707    eval ac_val=\$$ac_var
  23708    case $ac_val in #(
  23709    *${as_nl}*)
  23710      case $ac_var in #(
  23711      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  23712$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  23713      esac
  23714      case $ac_var in #(
  23715      _ | IFS | as_nl) ;; #(
  23716      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  23717      *) { eval $ac_var=; unset $ac_var;} ;;
  23718      esac ;;
  23719    esac
  23720  done
  23721
  23722  (set) 2>&1 |
  23723    case $as_nl`(ac_space=' '; set) 2>&1` in #(
  23724    *${as_nl}ac_space=\ *)
  23725      # `set' does not quote correctly, so add quotes: double-quote
  23726      # substitution turns \\\\ into \\, and sed turns \\ into \.
  23727      sed -n \
  23728	"s/'/'\\\\''/g;
  23729	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  23730      ;; #(
  23731    *)
  23732      # `set' quotes correctly as required by POSIX, so do not add quotes.
  23733      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  23734      ;;
  23735    esac |
  23736    sort
  23737) |
  23738  sed '
  23739     /^ac_cv_env_/b end
  23740     t clear
  23741     :clear
  23742     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  23743     t end
  23744     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  23745     :end' >>confcache
  23746if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  23747  if test -w "$cache_file"; then
  23748    if test "x$cache_file" != "x/dev/null"; then
  23749      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  23750$as_echo "$as_me: updating cache $cache_file" >&6;}
  23751      if test ! -f "$cache_file" || test -h "$cache_file"; then
  23752	cat confcache >"$cache_file"
  23753      else
  23754        case $cache_file in #(
  23755        */* | ?:*)
  23756	  mv -f confcache "$cache_file"$$ &&
  23757	  mv -f "$cache_file"$$ "$cache_file" ;; #(
  23758        *)
  23759	  mv -f confcache "$cache_file" ;;
  23760	esac
  23761      fi
  23762    fi
  23763  else
  23764    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  23765$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  23766  fi
  23767fi
  23768rm -f confcache
  23769
  23770test "x$prefix" = xNONE && prefix=$ac_default_prefix
  23771# Let make expand exec_prefix.
  23772test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  23773
  23774DEFS=-DHAVE_CONFIG_H
  23775
  23776ac_libobjs=
  23777ac_ltlibobjs=
  23778U=
  23779for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  23780  # 1. Remove the extension, and $U if already installed.
  23781  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  23782  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  23783  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
  23784  #    will be set to the directory where LIBOBJS objects are built.
  23785  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  23786  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  23787done
  23788LIBOBJS=$ac_libobjs
  23789
  23790LTLIBOBJS=$ac_ltlibobjs
  23791
  23792
  23793
  23794: "${CONFIG_STATUS=./config.status}"
  23795ac_write_fail=0
  23796ac_clean_files_save=$ac_clean_files
  23797ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  23798{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  23799$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  23800as_write_fail=0
  23801cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  23802#! $SHELL
  23803# Generated by $as_me.
  23804# Run this file to recreate the current configuration.
  23805# Compiler output produced by configure, useful for debugging
  23806# configure, is in config.log if it exists.
  23807
  23808debug=false
  23809ac_cs_recheck=false
  23810ac_cs_silent=false
  23811
  23812SHELL=\${CONFIG_SHELL-$SHELL}
  23813export SHELL
  23814_ASEOF
  23815cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  23816## -------------------- ##
  23817## M4sh Initialization. ##
  23818## -------------------- ##
  23819
  23820# Be more Bourne compatible
  23821DUALCASE=1; export DUALCASE # for MKS sh
  23822if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  23823  emulate sh
  23824  NULLCMD=:
  23825  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  23826  # is contrary to our usage.  Disable this feature.
  23827  alias -g '${1+"$@"}'='"$@"'
  23828  setopt NO_GLOB_SUBST
  23829else
  23830  case `(set -o) 2>/dev/null` in #(
  23831  *posix*) :
  23832    set -o posix ;; #(
  23833  *) :
  23834     ;;
  23835esac
  23836fi
  23837
  23838
  23839as_nl='
  23840'
  23841export as_nl
  23842# Printing a long string crashes Solaris 7 /usr/bin/printf.
  23843as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  23844as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  23845as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  23846# Prefer a ksh shell builtin over an external printf program on Solaris,
  23847# but without wasting forks for bash or zsh.
  23848if test -z "$BASH_VERSION$ZSH_VERSION" \
  23849    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  23850  as_echo='print -r --'
  23851  as_echo_n='print -rn --'
  23852elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  23853  as_echo='printf %s\n'
  23854  as_echo_n='printf %s'
  23855else
  23856  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  23857    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  23858    as_echo_n='/usr/ucb/echo -n'
  23859  else
  23860    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  23861    as_echo_n_body='eval
  23862      arg=$1;
  23863      case $arg in #(
  23864      *"$as_nl"*)
  23865	expr "X$arg" : "X\\(.*\\)$as_nl";
  23866	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  23867      esac;
  23868      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  23869    '
  23870    export as_echo_n_body
  23871    as_echo_n='sh -c $as_echo_n_body as_echo'
  23872  fi
  23873  export as_echo_body
  23874  as_echo='sh -c $as_echo_body as_echo'
  23875fi
  23876
  23877# The user is always right.
  23878if test "${PATH_SEPARATOR+set}" != set; then
  23879  PATH_SEPARATOR=:
  23880  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  23881    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  23882      PATH_SEPARATOR=';'
  23883  }
  23884fi
  23885
  23886
  23887# IFS
  23888# We need space, tab and new line, in precisely that order.  Quoting is
  23889# there to prevent editors from complaining about space-tab.
  23890# (If _AS_PATH_WALK were called with IFS unset, it would disable word
  23891# splitting by setting IFS to empty value.)
  23892IFS=" ""	$as_nl"
  23893
  23894# Find who we are.  Look in the path if we contain no directory separator.
  23895as_myself=
  23896case $0 in #((
  23897  *[\\/]* ) as_myself=$0 ;;
  23898  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23899for as_dir in $PATH
  23900do
  23901  IFS=$as_save_IFS
  23902  test -z "$as_dir" && as_dir=.
  23903    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  23904  done
  23905IFS=$as_save_IFS
  23906
  23907     ;;
  23908esac
  23909# We did not find ourselves, most probably we were run as `sh COMMAND'
  23910# in which case we are not to be found in the path.
  23911if test "x$as_myself" = x; then
  23912  as_myself=$0
  23913fi
  23914if test ! -f "$as_myself"; then
  23915  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  23916  exit 1
  23917fi
  23918
  23919# Unset variables that we do not need and which cause bugs (e.g. in
  23920# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
  23921# suppresses any "Segmentation fault" message there.  '((' could
  23922# trigger a bug in pdksh 5.2.14.
  23923for as_var in BASH_ENV ENV MAIL MAILPATH
  23924do eval test x\${$as_var+set} = xset \
  23925  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  23926done
  23927PS1='$ '
  23928PS2='> '
  23929PS4='+ '
  23930
  23931# NLS nuisances.
  23932LC_ALL=C
  23933export LC_ALL
  23934LANGUAGE=C
  23935export LANGUAGE
  23936
  23937# CDPATH.
  23938(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  23939
  23940
  23941# as_fn_error STATUS ERROR [LINENO LOG_FD]
  23942# ----------------------------------------
  23943# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  23944# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  23945# script with STATUS, using 1 if that was 0.
  23946as_fn_error ()
  23947{
  23948  as_status=$1; test $as_status -eq 0 && as_status=1
  23949  if test "$4"; then
  23950    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  23951    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  23952  fi
  23953  $as_echo "$as_me: error: $2" >&2
  23954  as_fn_exit $as_status
  23955} # as_fn_error
  23956
  23957
  23958# as_fn_set_status STATUS
  23959# -----------------------
  23960# Set $? to STATUS, without forking.
  23961as_fn_set_status ()
  23962{
  23963  return $1
  23964} # as_fn_set_status
  23965
  23966# as_fn_exit STATUS
  23967# -----------------
  23968# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  23969as_fn_exit ()
  23970{
  23971  set +e
  23972  as_fn_set_status $1
  23973  exit $1
  23974} # as_fn_exit
  23975
  23976# as_fn_unset VAR
  23977# ---------------
  23978# Portably unset VAR.
  23979as_fn_unset ()
  23980{
  23981  { eval $1=; unset $1;}
  23982}
  23983as_unset=as_fn_unset
  23984# as_fn_append VAR VALUE
  23985# ----------------------
  23986# Append the text in VALUE to the end of the definition contained in VAR. Take
  23987# advantage of any shell optimizations that allow amortized linear growth over
  23988# repeated appends, instead of the typical quadratic growth present in naive
  23989# implementations.
  23990if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  23991  eval 'as_fn_append ()
  23992  {
  23993    eval $1+=\$2
  23994  }'
  23995else
  23996  as_fn_append ()
  23997  {
  23998    eval $1=\$$1\$2
  23999  }
  24000fi # as_fn_append
  24001
  24002# as_fn_arith ARG...
  24003# ------------------
  24004# Perform arithmetic evaluation on the ARGs, and store the result in the
  24005# global $as_val. Take advantage of shells that can avoid forks. The arguments
  24006# must be portable across $(()) and expr.
  24007if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  24008  eval 'as_fn_arith ()
  24009  {
  24010    as_val=$(( $* ))
  24011  }'
  24012else
  24013  as_fn_arith ()
  24014  {
  24015    as_val=`expr "$@" || test $? -eq 1`
  24016  }
  24017fi # as_fn_arith
  24018
  24019
  24020if expr a : '\(a\)' >/dev/null 2>&1 &&
  24021   test "X`expr 00001 : '.*\(...\)'`" = X001; then
  24022  as_expr=expr
  24023else
  24024  as_expr=false
  24025fi
  24026
  24027if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  24028  as_basename=basename
  24029else
  24030  as_basename=false
  24031fi
  24032
  24033if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  24034  as_dirname=dirname
  24035else
  24036  as_dirname=false
  24037fi
  24038
  24039as_me=`$as_basename -- "$0" ||
  24040$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  24041	 X"$0" : 'X\(//\)$' \| \
  24042	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  24043$as_echo X/"$0" |
  24044    sed '/^.*\/\([^/][^/]*\)\/*$/{
  24045	    s//\1/
  24046	    q
  24047	  }
  24048	  /^X\/\(\/\/\)$/{
  24049	    s//\1/
  24050	    q
  24051	  }
  24052	  /^X\/\(\/\).*/{
  24053	    s//\1/
  24054	    q
  24055	  }
  24056	  s/.*/./; q'`
  24057
  24058# Avoid depending upon Character Ranges.
  24059as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  24060as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  24061as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  24062as_cr_digits='0123456789'
  24063as_cr_alnum=$as_cr_Letters$as_cr_digits
  24064
  24065ECHO_C= ECHO_N= ECHO_T=
  24066case `echo -n x` in #(((((
  24067-n*)
  24068  case `echo 'xy\c'` in
  24069  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
  24070  xy)  ECHO_C='\c';;
  24071  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
  24072       ECHO_T='	';;
  24073  esac;;
  24074*)
  24075  ECHO_N='-n';;
  24076esac
  24077
  24078rm -f conf$$ conf$$.exe conf$$.file
  24079if test -d conf$$.dir; then
  24080  rm -f conf$$.dir/conf$$.file
  24081else
  24082  rm -f conf$$.dir
  24083  mkdir conf$$.dir 2>/dev/null
  24084fi
  24085if (echo >conf$$.file) 2>/dev/null; then
  24086  if ln -s conf$$.file conf$$ 2>/dev/null; then
  24087    as_ln_s='ln -s'
  24088    # ... but there are two gotchas:
  24089    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  24090    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  24091    # In both cases, we have to default to `cp -pR'.
  24092    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  24093      as_ln_s='cp -pR'
  24094  elif ln conf$$.file conf$$ 2>/dev/null; then
  24095    as_ln_s=ln
  24096  else
  24097    as_ln_s='cp -pR'
  24098  fi
  24099else
  24100  as_ln_s='cp -pR'
  24101fi
  24102rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  24103rmdir conf$$.dir 2>/dev/null
  24104
  24105
  24106# as_fn_mkdir_p
  24107# -------------
  24108# Create "$as_dir" as a directory, including parents if necessary.
  24109as_fn_mkdir_p ()
  24110{
  24111
  24112  case $as_dir in #(
  24113  -*) as_dir=./$as_dir;;
  24114  esac
  24115  test -d "$as_dir" || eval $as_mkdir_p || {
  24116    as_dirs=
  24117    while :; do
  24118      case $as_dir in #(
  24119      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  24120      *) as_qdir=$as_dir;;
  24121      esac
  24122      as_dirs="'$as_qdir' $as_dirs"
  24123      as_dir=`$as_dirname -- "$as_dir" ||
  24124$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  24125	 X"$as_dir" : 'X\(//\)[^/]' \| \
  24126	 X"$as_dir" : 'X\(//\)$' \| \
  24127	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  24128$as_echo X"$as_dir" |
  24129    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  24130	    s//\1/
  24131	    q
  24132	  }
  24133	  /^X\(\/\/\)[^/].*/{
  24134	    s//\1/
  24135	    q
  24136	  }
  24137	  /^X\(\/\/\)$/{
  24138	    s//\1/
  24139	    q
  24140	  }
  24141	  /^X\(\/\).*/{
  24142	    s//\1/
  24143	    q
  24144	  }
  24145	  s/.*/./; q'`
  24146      test -d "$as_dir" && break
  24147    done
  24148    test -z "$as_dirs" || eval "mkdir $as_dirs"
  24149  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  24150
  24151
  24152} # as_fn_mkdir_p
  24153if mkdir -p . 2>/dev/null; then
  24154  as_mkdir_p='mkdir -p "$as_dir"'
  24155else
  24156  test -d ./-p && rmdir ./-p
  24157  as_mkdir_p=false
  24158fi
  24159
  24160
  24161# as_fn_executable_p FILE
  24162# -----------------------
  24163# Test if FILE is an executable regular file.
  24164as_fn_executable_p ()
  24165{
  24166  test -f "$1" && test -x "$1"
  24167} # as_fn_executable_p
  24168as_test_x='test -x'
  24169as_executable_p=as_fn_executable_p
  24170
  24171# Sed expression to map a string onto a valid CPP name.
  24172as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  24173
  24174# Sed expression to map a string onto a valid variable name.
  24175as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  24176
  24177
  24178exec 6>&1
  24179## ----------------------------------- ##
  24180## Main body of $CONFIG_STATUS script. ##
  24181## ----------------------------------- ##
  24182_ASEOF
  24183test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  24184
  24185cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24186# Save the log message, to keep $0 and so on meaningful, and to
  24187# report actual input values of CONFIG_FILES etc. instead of their
  24188# values after options handling.
  24189ac_log="
  24190This file was extended by $as_me, which was
  24191generated by GNU Autoconf 2.69.  Invocation command line was
  24192
  24193  CONFIG_FILES    = $CONFIG_FILES
  24194  CONFIG_HEADERS  = $CONFIG_HEADERS
  24195  CONFIG_LINKS    = $CONFIG_LINKS
  24196  CONFIG_COMMANDS = $CONFIG_COMMANDS
  24197  $ $0 $@
  24198
  24199on `(hostname || uname -n) 2>/dev/null | sed 1q`
  24200"
  24201
  24202_ACEOF
  24203
  24204case $ac_config_files in *"
  24205"*) set x $ac_config_files; shift; ac_config_files=$*;;
  24206esac
  24207
  24208case $ac_config_headers in *"
  24209"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  24210esac
  24211
  24212
  24213cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24214# Files that config.status was made for.
  24215config_files="$ac_config_files"
  24216config_headers="$ac_config_headers"
  24217config_commands="$ac_config_commands"
  24218
  24219_ACEOF
  24220
  24221cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24222ac_cs_usage="\
  24223\`$as_me' instantiates files and other configuration actions
  24224from templates according to the current configuration.  Unless the files
  24225and actions are specified as TAGs, all are instantiated by default.
  24226
  24227Usage: $0 [OPTION]... [TAG]...
  24228
  24229  -h, --help       print this help, then exit
  24230  -V, --version    print version number and configuration settings, then exit
  24231      --config     print configuration, then exit
  24232  -q, --quiet, --silent
  24233                   do not print progress messages
  24234  -d, --debug      don't remove temporary files
  24235      --recheck    update $as_me by reconfiguring in the same conditions
  24236      --file=FILE[:TEMPLATE]
  24237                   instantiate the configuration file FILE
  24238      --header=FILE[:TEMPLATE]
  24239                   instantiate the configuration header FILE
  24240
  24241Configuration files:
  24242$config_files
  24243
  24244Configuration headers:
  24245$config_headers
  24246
  24247Configuration commands:
  24248$config_commands
  24249
  24250Report bugs to the package provider."
  24251
  24252_ACEOF
  24253cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24254ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  24255ac_cs_version="\\
  24256config.status
  24257configured by $0, generated by GNU Autoconf 2.69,
  24258  with options \\"\$ac_cs_config\\"
  24259
  24260Copyright (C) 2012 Free Software Foundation, Inc.
  24261This config.status script is free software; the Free Software Foundation
  24262gives unlimited permission to copy, distribute and modify it."
  24263
  24264ac_pwd='$ac_pwd'
  24265srcdir='$srcdir'
  24266INSTALL='$INSTALL'
  24267AWK='$AWK'
  24268test -n "\$AWK" || AWK=awk
  24269_ACEOF
  24270
  24271cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24272# The default lists apply if the user does not specify any file.
  24273ac_need_defaults=:
  24274while test $# != 0
  24275do
  24276  case $1 in
  24277  --*=?*)
  24278    ac_option=`expr "X$1" : 'X\([^=]*\)='`
  24279    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  24280    ac_shift=:
  24281    ;;
  24282  --*=)
  24283    ac_option=`expr "X$1" : 'X\([^=]*\)='`
  24284    ac_optarg=
  24285    ac_shift=:
  24286    ;;
  24287  *)
  24288    ac_option=$1
  24289    ac_optarg=$2
  24290    ac_shift=shift
  24291    ;;
  24292  esac
  24293
  24294  case $ac_option in
  24295  # Handling of the options.
  24296  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  24297    ac_cs_recheck=: ;;
  24298  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  24299    $as_echo "$ac_cs_version"; exit ;;
  24300  --config | --confi | --conf | --con | --co | --c )
  24301    $as_echo "$ac_cs_config"; exit ;;
  24302  --debug | --debu | --deb | --de | --d | -d )
  24303    debug=: ;;
  24304  --file | --fil | --fi | --f )
  24305    $ac_shift
  24306    case $ac_optarg in
  24307    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  24308    '') as_fn_error $? "missing file argument" ;;
  24309    esac
  24310    as_fn_append CONFIG_FILES " '$ac_optarg'"
  24311    ac_need_defaults=false;;
  24312  --header | --heade | --head | --hea )
  24313    $ac_shift
  24314    case $ac_optarg in
  24315    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  24316    esac
  24317    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  24318    ac_need_defaults=false;;
  24319  --he | --h)
  24320    # Conflict between --help and --header
  24321    as_fn_error $? "ambiguous option: \`$1'
  24322Try \`$0 --help' for more information.";;
  24323  --help | --hel | -h )
  24324    $as_echo "$ac_cs_usage"; exit ;;
  24325  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  24326  | -silent | --silent | --silen | --sile | --sil | --si | --s)
  24327    ac_cs_silent=: ;;
  24328
  24329  # This is an error.
  24330  -*) as_fn_error $? "unrecognized option: \`$1'
  24331Try \`$0 --help' for more information." ;;
  24332
  24333  *) as_fn_append ac_config_targets " $1"
  24334     ac_need_defaults=false ;;
  24335
  24336  esac
  24337  shift
  24338done
  24339
  24340ac_configure_extra_args=
  24341
  24342if $ac_cs_silent; then
  24343  exec 6>/dev/null
  24344  ac_configure_extra_args="$ac_configure_extra_args --silent"
  24345fi
  24346
  24347_ACEOF
  24348cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24349if \$ac_cs_recheck; then
  24350  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  24351  shift
  24352  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  24353  CONFIG_SHELL='$SHELL'
  24354  export CONFIG_SHELL
  24355  exec "\$@"
  24356fi
  24357
  24358_ACEOF
  24359cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24360exec 5>>config.log
  24361{
  24362  echo
  24363  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  24364## Running $as_me. ##
  24365_ASBOX
  24366  $as_echo "$ac_log"
  24367} >&5
  24368
  24369_ACEOF
  24370cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24371#
  24372# INIT-COMMANDS
  24373#
  24374
  24375
  24376# The HP-UX ksh and POSIX shell print the target directory to stdout
  24377# if CDPATH is set.
  24378(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  24379
  24380sed_quote_subst='$sed_quote_subst'
  24381double_quote_subst='$double_quote_subst'
  24382delay_variable_subst='$delay_variable_subst'
  24383macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  24384macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  24385AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  24386DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  24387OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  24388enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  24389enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  24390pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  24391enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  24392SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  24393ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  24394PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  24395host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  24396host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  24397host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  24398build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  24399build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  24400build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  24401SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  24402Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  24403GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  24404EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  24405FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  24406LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  24407NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  24408LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  24409max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  24410ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  24411exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  24412lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  24413lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  24414lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  24415lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  24416lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  24417reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  24418reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  24419deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  24420file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  24421file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  24422want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  24423sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  24424AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  24425AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  24426archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  24427STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  24428RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  24429old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  24430old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  24431old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  24432lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  24433CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  24434CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  24435compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  24436GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  24437lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  24438lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  24439lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  24440lt_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"`'
  24441nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  24442lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  24443objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  24444MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  24445lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  24446lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  24447lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  24448lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  24449lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  24450need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  24451MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  24452DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  24453NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  24454LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  24455OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  24456OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  24457libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  24458shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  24459extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  24460archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  24461enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  24462export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  24463whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  24464compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  24465old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  24466old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  24467archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  24468archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  24469module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  24470module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  24471with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  24472allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  24473no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  24474hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  24475hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  24476hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  24477hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  24478hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  24479hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  24480hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  24481inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  24482link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  24483always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  24484export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  24485exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  24486include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  24487prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  24488postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  24489file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  24490variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  24491need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  24492need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  24493version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  24494runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  24495shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  24496shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  24497libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  24498library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  24499soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  24500install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  24501postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  24502postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  24503finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  24504finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  24505hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  24506sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  24507sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  24508hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  24509enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  24510enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  24511enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  24512old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  24513striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  24514compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  24515predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  24516postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  24517predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  24518postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  24519compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  24520LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  24521reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  24522reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24523old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24524compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  24525GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  24526lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  24527lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  24528lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  24529lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  24530lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  24531archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  24532enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  24533export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  24534whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  24535compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  24536old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24537old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24538archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24539archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24540module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24541module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24542with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  24543allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  24544no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  24545hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  24546hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  24547hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  24548hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  24549hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  24550hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  24551hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  24552inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  24553link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  24554always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  24555export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24556exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  24557include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  24558prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24559postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24560file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  24561hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  24562compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  24563predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  24564postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  24565predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  24566postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  24567compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  24568
  24569LTCC='$LTCC'
  24570LTCFLAGS='$LTCFLAGS'
  24571compiler='$compiler_DEFAULT'
  24572
  24573# A function that is used when there is no print builtin or printf.
  24574func_fallback_echo ()
  24575{
  24576  eval 'cat <<_LTECHO_EOF
  24577\$1
  24578_LTECHO_EOF'
  24579}
  24580
  24581# Quote evaled strings.
  24582for var in AS \
  24583DLLTOOL \
  24584OBJDUMP \
  24585SHELL \
  24586ECHO \
  24587PATH_SEPARATOR \
  24588SED \
  24589GREP \
  24590EGREP \
  24591FGREP \
  24592LD \
  24593NM \
  24594LN_S \
  24595lt_SP2NL \
  24596lt_NL2SP \
  24597reload_flag \
  24598deplibs_check_method \
  24599file_magic_cmd \
  24600file_magic_glob \
  24601want_nocaseglob \
  24602sharedlib_from_linklib_cmd \
  24603AR \
  24604AR_FLAGS \
  24605archiver_list_spec \
  24606STRIP \
  24607RANLIB \
  24608CC \
  24609CFLAGS \
  24610compiler \
  24611lt_cv_sys_global_symbol_pipe \
  24612lt_cv_sys_global_symbol_to_cdecl \
  24613lt_cv_sys_global_symbol_to_c_name_address \
  24614lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  24615nm_file_list_spec \
  24616lt_prog_compiler_no_builtin_flag \
  24617lt_prog_compiler_pic \
  24618lt_prog_compiler_wl \
  24619lt_prog_compiler_static \
  24620lt_cv_prog_compiler_c_o \
  24621need_locks \
  24622MANIFEST_TOOL \
  24623DSYMUTIL \
  24624NMEDIT \
  24625LIPO \
  24626OTOOL \
  24627OTOOL64 \
  24628shrext_cmds \
  24629export_dynamic_flag_spec \
  24630whole_archive_flag_spec \
  24631compiler_needs_object \
  24632with_gnu_ld \
  24633allow_undefined_flag \
  24634no_undefined_flag \
  24635hardcode_libdir_flag_spec \
  24636hardcode_libdir_separator \
  24637exclude_expsyms \
  24638include_expsyms \
  24639file_list_spec \
  24640variables_saved_for_relink \
  24641libname_spec \
  24642library_names_spec \
  24643soname_spec \
  24644install_override_mode \
  24645finish_eval \
  24646old_striplib \
  24647striplib \
  24648compiler_lib_search_dirs \
  24649predep_objects \
  24650postdep_objects \
  24651predeps \
  24652postdeps \
  24653compiler_lib_search_path \
  24654LD_CXX \
  24655reload_flag_CXX \
  24656compiler_CXX \
  24657lt_prog_compiler_no_builtin_flag_CXX \
  24658lt_prog_compiler_pic_CXX \
  24659lt_prog_compiler_wl_CXX \
  24660lt_prog_compiler_static_CXX \
  24661lt_cv_prog_compiler_c_o_CXX \
  24662export_dynamic_flag_spec_CXX \
  24663whole_archive_flag_spec_CXX \
  24664compiler_needs_object_CXX \
  24665with_gnu_ld_CXX \
  24666allow_undefined_flag_CXX \
  24667no_undefined_flag_CXX \
  24668hardcode_libdir_flag_spec_CXX \
  24669hardcode_libdir_separator_CXX \
  24670exclude_expsyms_CXX \
  24671include_expsyms_CXX \
  24672file_list_spec_CXX \
  24673compiler_lib_search_dirs_CXX \
  24674predep_objects_CXX \
  24675postdep_objects_CXX \
  24676predeps_CXX \
  24677postdeps_CXX \
  24678compiler_lib_search_path_CXX; do
  24679    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  24680    *[\\\\\\\`\\"\\\$]*)
  24681      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  24682      ;;
  24683    *)
  24684      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  24685      ;;
  24686    esac
  24687done
  24688
  24689# Double-quote double-evaled strings.
  24690for var in reload_cmds \
  24691old_postinstall_cmds \
  24692old_postuninstall_cmds \
  24693old_archive_cmds \
  24694extract_expsyms_cmds \
  24695old_archive_from_new_cmds \
  24696old_archive_from_expsyms_cmds \
  24697archive_cmds \
  24698archive_expsym_cmds \
  24699module_cmds \
  24700module_expsym_cmds \
  24701export_symbols_cmds \
  24702prelink_cmds \
  24703postlink_cmds \
  24704postinstall_cmds \
  24705postuninstall_cmds \
  24706finish_cmds \
  24707sys_lib_search_path_spec \
  24708sys_lib_dlsearch_path_spec \
  24709reload_cmds_CXX \
  24710old_archive_cmds_CXX \
  24711old_archive_from_new_cmds_CXX \
  24712old_archive_from_expsyms_cmds_CXX \
  24713archive_cmds_CXX \
  24714archive_expsym_cmds_CXX \
  24715module_cmds_CXX \
  24716module_expsym_cmds_CXX \
  24717export_symbols_cmds_CXX \
  24718prelink_cmds_CXX \
  24719postlink_cmds_CXX; do
  24720    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  24721    *[\\\\\\\`\\"\\\$]*)
  24722      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  24723      ;;
  24724    *)
  24725      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  24726      ;;
  24727    esac
  24728done
  24729
  24730ac_aux_dir='$ac_aux_dir'
  24731xsi_shell='$xsi_shell'
  24732lt_shell_append='$lt_shell_append'
  24733
  24734# See if we are running on zsh, and set the options which allow our
  24735# commands through without removal of \ escapes INIT.
  24736if test -n "\${ZSH_VERSION+set}" ; then
  24737   setopt NO_GLOB_SUBST
  24738fi
  24739
  24740
  24741    PACKAGE='$PACKAGE'
  24742    VERSION='$VERSION'
  24743    TIMESTAMP='$TIMESTAMP'
  24744    RM='$RM'
  24745    ofile='$ofile'
  24746
  24747
  24748
  24749
  24750
  24751SUMMARY="$SUMMARY"
  24752
  24753_ACEOF
  24754
  24755cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24756
  24757# Handling of arguments.
  24758for ac_config_target in $ac_config_targets
  24759do
  24760  case $ac_config_target in
  24761    "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  24762    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  24763    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  24764    "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  24765    "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  24766    "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  24767    "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  24768    "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  24769
  24770  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  24771  esac
  24772done
  24773
  24774
  24775# If the user did not use the arguments to specify the items to instantiate,
  24776# then the envvar interface is used.  Set only those that are not.
  24777# We use the long form for the default assignment because of an extremely
  24778# bizarre bug on SunOS 4.1.3.
  24779if $ac_need_defaults; then
  24780  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  24781  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  24782  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  24783fi
  24784
  24785# Have a temporary directory for convenience.  Make it in the build tree
  24786# simply because there is no reason against having it here, and in addition,
  24787# creating and moving files from /tmp can sometimes cause problems.
  24788# Hook for its removal unless debugging.
  24789# Note that there is a small window in which the directory will not be cleaned:
  24790# after its creation but before its name has been assigned to `$tmp'.
  24791$debug ||
  24792{
  24793  tmp= ac_tmp=
  24794  trap 'exit_status=$?
  24795  : "${ac_tmp:=$tmp}"
  24796  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  24797' 0
  24798  trap 'as_fn_exit 1' 1 2 13 15
  24799}
  24800# Create a (secure) tmp directory for tmp files.
  24801
  24802{
  24803  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  24804  test -d "$tmp"
  24805}  ||
  24806{
  24807  tmp=./conf$$-$RANDOM
  24808  (umask 077 && mkdir "$tmp")
  24809} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  24810ac_tmp=$tmp
  24811
  24812# Set up the scripts for CONFIG_FILES section.
  24813# No need to generate them if there are no CONFIG_FILES.
  24814# This happens for instance with `./config.status config.h'.
  24815if test -n "$CONFIG_FILES"; then
  24816
  24817
  24818ac_cr=`echo X | tr X '\015'`
  24819# On cygwin, bash can eat \r inside `` if the user requested igncr.
  24820# But we know of no other shell where ac_cr would be empty at this
  24821# point, so we can use a bashism as a fallback.
  24822if test "x$ac_cr" = x; then
  24823  eval ac_cr=\$\'\\r\'
  24824fi
  24825ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  24826if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  24827  ac_cs_awk_cr='\\r'
  24828else
  24829  ac_cs_awk_cr=$ac_cr
  24830fi
  24831
  24832echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  24833_ACEOF
  24834
  24835
  24836{
  24837  echo "cat >conf$$subs.awk <<_ACEOF" &&
  24838  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  24839  echo "_ACEOF"
  24840} >conf$$subs.sh ||
  24841  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  24842ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  24843ac_delim='%!_!# '
  24844for ac_last_try in false false false false false :; do
  24845  . ./conf$$subs.sh ||
  24846    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  24847
  24848  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  24849  if test $ac_delim_n = $ac_delim_num; then
  24850    break
  24851  elif $ac_last_try; then
  24852    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  24853  else
  24854    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  24855  fi
  24856done
  24857rm -f conf$$subs.sh
  24858
  24859cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24860cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  24861_ACEOF
  24862sed -n '
  24863h
  24864s/^/S["/; s/!.*/"]=/
  24865p
  24866g
  24867s/^[^!]*!//
  24868:repl
  24869t repl
  24870s/'"$ac_delim"'$//
  24871t delim
  24872:nl
  24873h
  24874s/\(.\{148\}\)..*/\1/
  24875t more1
  24876s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  24877p
  24878n
  24879b repl
  24880:more1
  24881s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  24882p
  24883g
  24884s/.\{148\}//
  24885t nl
  24886:delim
  24887h
  24888s/\(.\{148\}\)..*/\1/
  24889t more2
  24890s/["\\]/\\&/g; s/^/"/; s/$/"/
  24891p
  24892b
  24893:more2
  24894s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  24895p
  24896g
  24897s/.\{148\}//
  24898t delim
  24899' <conf$$subs.awk | sed '
  24900/^[^""]/{
  24901  N
  24902  s/\n//
  24903}
  24904' >>$CONFIG_STATUS || ac_write_fail=1
  24905rm -f conf$$subs.awk
  24906cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24907_ACAWK
  24908cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  24909  for (key in S) S_is_set[key] = 1
  24910  FS = ""
  24911
  24912}
  24913{
  24914  line = $ 0
  24915  nfields = split(line, field, "@")
  24916  substed = 0
  24917  len = length(field[1])
  24918  for (i = 2; i < nfields; i++) {
  24919    key = field[i]
  24920    keylen = length(key)
  24921    if (S_is_set[key]) {
  24922      value = S[key]
  24923      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  24924      len += length(value) + length(field[++i])
  24925      substed = 1
  24926    } else
  24927      len += 1 + keylen
  24928  }
  24929
  24930  print line
  24931}
  24932
  24933_ACAWK
  24934_ACEOF
  24935cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24936if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  24937  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  24938else
  24939  cat
  24940fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  24941  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  24942_ACEOF
  24943
  24944# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  24945# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  24946# trailing colons and then remove the whole line if VPATH becomes empty
  24947# (actually we leave an empty line to preserve line numbers).
  24948if test "x$srcdir" = x.; then
  24949  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
  24950h
  24951s///
  24952s/^/:/
  24953s/[	 ]*$/:/
  24954s/:\$(srcdir):/:/g
  24955s/:\${srcdir}:/:/g
  24956s/:@srcdir@:/:/g
  24957s/^:*//
  24958s/:*$//
  24959x
  24960s/\(=[	 ]*\).*/\1/
  24961G
  24962s/\n//
  24963s/^[^=]*=[	 ]*$//
  24964}'
  24965fi
  24966
  24967cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24968fi # test -n "$CONFIG_FILES"
  24969
  24970# Set up the scripts for CONFIG_HEADERS section.
  24971# No need to generate them if there are no CONFIG_HEADERS.
  24972# This happens for instance with `./config.status Makefile'.
  24973if test -n "$CONFIG_HEADERS"; then
  24974cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  24975BEGIN {
  24976_ACEOF
  24977
  24978# Transform confdefs.h into an awk script `defines.awk', embedded as
  24979# here-document in config.status, that substitutes the proper values into
  24980# config.h.in to produce config.h.
  24981
  24982# Create a delimiter string that does not exist in confdefs.h, to ease
  24983# handling of long lines.
  24984ac_delim='%!_!# '
  24985for ac_last_try in false false :; do
  24986  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  24987  if test -z "$ac_tt"; then
  24988    break
  24989  elif $ac_last_try; then
  24990    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  24991  else
  24992    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  24993  fi
  24994done
  24995
  24996# For the awk script, D is an array of macro values keyed by name,
  24997# likewise P contains macro parameters if any.  Preserve backslash
  24998# newline sequences.
  24999
  25000ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  25001sed -n '
  25002s/.\{148\}/&'"$ac_delim"'/g
  25003t rset
  25004:rset
  25005s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
  25006t def
  25007d
  25008:def
  25009s/\\$//
  25010t bsnl
  25011s/["\\]/\\&/g
  25012s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
  25013D["\1"]=" \3"/p
  25014s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
  25015d
  25016:bsnl
  25017s/["\\]/\\&/g
  25018s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
  25019D["\1"]=" \3\\\\\\n"\\/p
  25020t cont
  25021s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  25022t cont
  25023d
  25024:cont
  25025n
  25026s/.\{148\}/&'"$ac_delim"'/g
  25027t clear
  25028:clear
  25029s/\\$//
  25030t bsnlc
  25031s/["\\]/\\&/g; s/^/"/; s/$/"/p
  25032d
  25033:bsnlc
  25034s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  25035b cont
  25036' <confdefs.h | sed '
  25037s/'"$ac_delim"'/"\\\
  25038"/g' >>$CONFIG_STATUS || ac_write_fail=1
  25039
  25040cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  25041  for (key in D) D_is_set[key] = 1
  25042  FS = ""
  25043}
  25044/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  25045  line = \$ 0
  25046  split(line, arg, " ")
  25047  if (arg[1] == "#") {
  25048    defundef = arg[2]
  25049    mac1 = arg[3]
  25050  } else {
  25051    defundef = substr(arg[1], 2)
  25052    mac1 = arg[2]
  25053  }
  25054  split(mac1, mac2, "(") #)
  25055  macro = mac2[1]
  25056  prefix = substr(line, 1, index(line, defundef) - 1)
  25057  if (D_is_set[macro]) {
  25058    # Preserve the white space surrounding the "#".
  25059    print prefix "define", macro P[macro] D[macro]
  25060    next
  25061  } else {
  25062    # Replace #undef with comments.  This is necessary, for example,
  25063    # in the case of _POSIX_SOURCE, which is predefined and required
  25064    # on some systems where configure will not decide to define it.
  25065    if (defundef == "undef") {
  25066      print "/*", prefix defundef, macro, "*/"
  25067      next
  25068    }
  25069  }
  25070}
  25071{ print }
  25072_ACAWK
  25073_ACEOF
  25074cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  25075  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  25076fi # test -n "$CONFIG_HEADERS"
  25077
  25078
  25079eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
  25080shift
  25081for ac_tag
  25082do
  25083  case $ac_tag in
  25084  :[FHLC]) ac_mode=$ac_tag; continue;;
  25085  esac
  25086  case $ac_mode$ac_tag in
  25087  :[FHL]*:*);;
  25088  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  25089  :[FH]-) ac_tag=-:-;;
  25090  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  25091  esac
  25092  ac_save_IFS=$IFS
  25093  IFS=:
  25094  set x $ac_tag
  25095  IFS=$ac_save_IFS
  25096  shift
  25097  ac_file=$1
  25098  shift
  25099
  25100  case $ac_mode in
  25101  :L) ac_source=$1;;
  25102  :[FH])
  25103    ac_file_inputs=
  25104    for ac_f
  25105    do
  25106      case $ac_f in
  25107      -) ac_f="$ac_tmp/stdin";;
  25108      *) # Look for the file first in the build tree, then in the source tree
  25109	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
  25110	 # because $ac_f cannot contain `:'.
  25111	 test -f "$ac_f" ||
  25112	   case $ac_f in
  25113	   [\\/$]*) false;;
  25114	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  25115	   esac ||
  25116	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  25117      esac
  25118      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  25119      as_fn_append ac_file_inputs " '$ac_f'"
  25120    done
  25121
  25122    # Let's still pretend it is `configure' which instantiates (i.e., don't
  25123    # use $as_me), people would be surprised to read:
  25124    #    /* config.h.  Generated by config.status.  */
  25125    configure_input='Generated from '`
  25126	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  25127	`' by configure.'
  25128    if test x"$ac_file" != x-; then
  25129      configure_input="$ac_file.  $configure_input"
  25130      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  25131$as_echo "$as_me: creating $ac_file" >&6;}
  25132    fi
  25133    # Neutralize special characters interpreted by sed in replacement strings.
  25134    case $configure_input in #(
  25135    *\&* | *\|* | *\\* )
  25136       ac_sed_conf_input=`$as_echo "$configure_input" |
  25137       sed 's/[\\\\&|]/\\\\&/g'`;; #(
  25138    *) ac_sed_conf_input=$configure_input;;
  25139    esac
  25140
  25141    case $ac_tag in
  25142    *:-:* | *:-) cat >"$ac_tmp/stdin" \
  25143      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  25144    esac
  25145    ;;
  25146  esac
  25147
  25148  ac_dir=`$as_dirname -- "$ac_file" ||
  25149$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  25150	 X"$ac_file" : 'X\(//\)[^/]' \| \
  25151	 X"$ac_file" : 'X\(//\)$' \| \
  25152	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  25153$as_echo X"$ac_file" |
  25154    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  25155	    s//\1/
  25156	    q
  25157	  }
  25158	  /^X\(\/\/\)[^/].*/{
  25159	    s//\1/
  25160	    q
  25161	  }
  25162	  /^X\(\/\/\)$/{
  25163	    s//\1/
  25164	    q
  25165	  }
  25166	  /^X\(\/\).*/{
  25167	    s//\1/
  25168	    q
  25169	  }
  25170	  s/.*/./; q'`
  25171  as_dir="$ac_dir"; as_fn_mkdir_p
  25172  ac_builddir=.
  25173
  25174case "$ac_dir" in
  25175.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  25176*)
  25177  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  25178  # A ".." for each directory in $ac_dir_suffix.
  25179  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  25180  case $ac_top_builddir_sub in
  25181  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  25182  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  25183  esac ;;
  25184esac
  25185ac_abs_top_builddir=$ac_pwd
  25186ac_abs_builddir=$ac_pwd$ac_dir_suffix
  25187# for backward compatibility:
  25188ac_top_builddir=$ac_top_build_prefix
  25189
  25190case $srcdir in
  25191  .)  # We are building in place.
  25192    ac_srcdir=.
  25193    ac_top_srcdir=$ac_top_builddir_sub
  25194    ac_abs_top_srcdir=$ac_pwd ;;
  25195  [\\/]* | ?:[\\/]* )  # Absolute name.
  25196    ac_srcdir=$srcdir$ac_dir_suffix;
  25197    ac_top_srcdir=$srcdir
  25198    ac_abs_top_srcdir=$srcdir ;;
  25199  *) # Relative name.
  25200    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  25201    ac_top_srcdir=$ac_top_build_prefix$srcdir
  25202    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  25203esac
  25204ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  25205
  25206
  25207  case $ac_mode in
  25208  :F)
  25209  #
  25210  # CONFIG_FILE
  25211  #
  25212
  25213  case $INSTALL in
  25214  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  25215  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  25216  esac
  25217_ACEOF
  25218
  25219cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  25220# If the template does not know about datarootdir, expand it.
  25221# FIXME: This hack should be removed a few years after 2.60.
  25222ac_datarootdir_hack=; ac_datarootdir_seen=
  25223ac_sed_dataroot='
  25224/datarootdir/ {
  25225  p
  25226  q
  25227}
  25228/@datadir@/p
  25229/@docdir@/p
  25230/@infodir@/p
  25231/@localedir@/p
  25232/@mandir@/p'
  25233case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  25234*datarootdir*) ac_datarootdir_seen=yes;;
  25235*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  25236  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  25237$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  25238_ACEOF
  25239cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  25240  ac_datarootdir_hack='
  25241  s&@datadir@&$datadir&g
  25242  s&@docdir@&$docdir&g
  25243  s&@infodir@&$infodir&g
  25244  s&@localedir@&$localedir&g
  25245  s&@mandir@&$mandir&g
  25246  s&\\\${datarootdir}&$datarootdir&g' ;;
  25247esac
  25248_ACEOF
  25249
  25250# Neutralize VPATH when `$srcdir' = `.'.
  25251# Shell code in configure.ac might set extrasub.
  25252# FIXME: do we really want to maintain this feature?
  25253cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  25254ac_sed_extra="$ac_vpsub
  25255$extrasub
  25256_ACEOF
  25257cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  25258:t
  25259/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  25260s|@configure_input@|$ac_sed_conf_input|;t t
  25261s&@top_builddir@&$ac_top_builddir_sub&;t t
  25262s&@top_build_prefix@&$ac_top_build_prefix&;t t
  25263s&@srcdir@&$ac_srcdir&;t t
  25264s&@abs_srcdir@&$ac_abs_srcdir&;t t
  25265s&@top_srcdir@&$ac_top_srcdir&;t t
  25266s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  25267s&@builddir@&$ac_builddir&;t t
  25268s&@abs_builddir@&$ac_abs_builddir&;t t
  25269s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  25270s&@INSTALL@&$ac_INSTALL&;t t
  25271$ac_datarootdir_hack
  25272"
  25273eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  25274  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  25275
  25276test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  25277  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  25278  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
  25279      "$ac_tmp/out"`; test -z "$ac_out"; } &&
  25280  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  25281which seems to be undefined.  Please make sure it is defined" >&5
  25282$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  25283which seems to be undefined.  Please make sure it is defined" >&2;}
  25284
  25285  rm -f "$ac_tmp/stdin"
  25286  case $ac_file in
  25287  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  25288  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  25289  esac \
  25290  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  25291 ;;
  25292  :H)
  25293  #
  25294  # CONFIG_HEADER
  25295  #
  25296  if test x"$ac_file" != x-; then
  25297    {
  25298      $as_echo "/* $configure_input  */" \
  25299      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  25300    } >"$ac_tmp/config.h" \
  25301      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  25302    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  25303      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  25304$as_echo "$as_me: $ac_file is unchanged" >&6;}
  25305    else
  25306      rm -f "$ac_file"
  25307      mv "$ac_tmp/config.h" "$ac_file" \
  25308	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
  25309    fi
  25310  else
  25311    $as_echo "/* $configure_input  */" \
  25312      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  25313      || as_fn_error $? "could not create -" "$LINENO" 5
  25314  fi
  25315 ;;
  25316
  25317  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  25318$as_echo "$as_me: executing $ac_file commands" >&6;}
  25319 ;;
  25320  esac
  25321
  25322
  25323  case $ac_file$ac_mode in
  25324    "libtool":C)
  25325
  25326    # See if we are running on zsh, and set the options which allow our
  25327    # commands through without removal of \ escapes.
  25328    if test -n "${ZSH_VERSION+set}" ; then
  25329      setopt NO_GLOB_SUBST
  25330    fi
  25331
  25332    cfgfile="${ofile}T"
  25333    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  25334    $RM "$cfgfile"
  25335
  25336    cat <<_LT_EOF >> "$cfgfile"
  25337#! $SHELL
  25338
  25339# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  25340# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  25341# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  25342# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  25343#
  25344#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  25345#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  25346#                 Foundation, Inc.
  25347#   Written by Gordon Matzigkeit, 1996
  25348#
  25349#   This file is part of GNU Libtool.
  25350#
  25351# GNU Libtool is free software; you can redistribute it and/or
  25352# modify it under the terms of the GNU General Public License as
  25353# published by the Free Software Foundation; either version 2 of
  25354# the License, or (at your option) any later version.
  25355#
  25356# As a special exception to the GNU General Public License,
  25357# if you distribute this file as part of a program or library that
  25358# is built using GNU Libtool, you may include this file under the
  25359# same distribution terms that you use for the rest of that program.
  25360#
  25361# GNU Libtool is distributed in the hope that it will be useful,
  25362# but WITHOUT ANY WARRANTY; without even the implied warranty of
  25363# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  25364# GNU General Public License for more details.
  25365#
  25366# You should have received a copy of the GNU General Public License
  25367# along with GNU Libtool; see the file COPYING.  If not, a copy
  25368# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  25369# obtained by writing to the Free Software Foundation, Inc.,
  25370# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  25371
  25372
  25373# The names of the tagged configurations supported by this script.
  25374available_tags="CXX "
  25375
  25376# ### BEGIN LIBTOOL CONFIG
  25377
  25378# Which release of libtool.m4 was used?
  25379macro_version=$macro_version
  25380macro_revision=$macro_revision
  25381
  25382# Assembler program.
  25383AS=$lt_AS
  25384
  25385# DLL creation program.
  25386DLLTOOL=$lt_DLLTOOL
  25387
  25388# Object dumper program.
  25389OBJDUMP=$lt_OBJDUMP
  25390
  25391# Whether or not to build shared libraries.
  25392build_libtool_libs=$enable_shared
  25393
  25394# Whether or not to build static libraries.
  25395build_old_libs=$enable_static
  25396
  25397# What type of objects to build.
  25398pic_mode=$pic_mode
  25399
  25400# Whether or not to optimize for fast installation.
  25401fast_install=$enable_fast_install
  25402
  25403# Shell to use when invoking shell scripts.
  25404SHELL=$lt_SHELL
  25405
  25406# An echo program that protects backslashes.
  25407ECHO=$lt_ECHO
  25408
  25409# The PATH separator for the build system.
  25410PATH_SEPARATOR=$lt_PATH_SEPARATOR
  25411
  25412# The host system.
  25413host_alias=$host_alias
  25414host=$host
  25415host_os=$host_os
  25416
  25417# The build system.
  25418build_alias=$build_alias
  25419build=$build
  25420build_os=$build_os
  25421
  25422# A sed program that does not truncate output.
  25423SED=$lt_SED
  25424
  25425# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  25426Xsed="\$SED -e 1s/^X//"
  25427
  25428# A grep program that handles long lines.
  25429GREP=$lt_GREP
  25430
  25431# An ERE matcher.
  25432EGREP=$lt_EGREP
  25433
  25434# A literal string matcher.
  25435FGREP=$lt_FGREP
  25436
  25437# A BSD- or MS-compatible name lister.
  25438NM=$lt_NM
  25439
  25440# Whether we need soft or hard links.
  25441LN_S=$lt_LN_S
  25442
  25443# What is the maximum length of a command?
  25444max_cmd_len=$max_cmd_len
  25445
  25446# Object file suffix (normally "o").
  25447objext=$ac_objext
  25448
  25449# Executable file suffix (normally "").
  25450exeext=$exeext
  25451
  25452# whether the shell understands "unset".
  25453lt_unset=$lt_unset
  25454
  25455# turn spaces into newlines.
  25456SP2NL=$lt_lt_SP2NL
  25457
  25458# turn newlines into spaces.
  25459NL2SP=$lt_lt_NL2SP
  25460
  25461# convert \$build file names to \$host format.
  25462to_host_file_cmd=$lt_cv_to_host_file_cmd
  25463
  25464# convert \$build files to toolchain format.
  25465to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  25466
  25467# Method to check whether dependent libraries are shared objects.
  25468deplibs_check_method=$lt_deplibs_check_method
  25469
  25470# Command to use when deplibs_check_method = "file_magic".
  25471file_magic_cmd=$lt_file_magic_cmd
  25472
  25473# How to find potential files when deplibs_check_method = "file_magic".
  25474file_magic_glob=$lt_file_magic_glob
  25475
  25476# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  25477want_nocaseglob=$lt_want_nocaseglob
  25478
  25479# Command to associate shared and link libraries.
  25480sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  25481
  25482# The archiver.
  25483AR=$lt_AR
  25484
  25485# Flags to create an archive.
  25486AR_FLAGS=$lt_AR_FLAGS
  25487
  25488# How to feed a file listing to the archiver.
  25489archiver_list_spec=$lt_archiver_list_spec
  25490
  25491# A symbol stripping program.
  25492STRIP=$lt_STRIP
  25493
  25494# Commands used to install an old-style archive.
  25495RANLIB=$lt_RANLIB
  25496old_postinstall_cmds=$lt_old_postinstall_cmds
  25497old_postuninstall_cmds=$lt_old_postuninstall_cmds
  25498
  25499# Whether to use a lock for old archive extraction.
  25500lock_old_archive_extraction=$lock_old_archive_extraction
  25501
  25502# A C compiler.
  25503LTCC=$lt_CC
  25504
  25505# LTCC compiler flags.
  25506LTCFLAGS=$lt_CFLAGS
  25507
  25508# Take the output of nm and produce a listing of raw symbols and C names.
  25509global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  25510
  25511# Transform the output of nm in a proper C declaration.
  25512global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  25513
  25514# Transform the output of nm in a C name address pair.
  25515global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  25516
  25517# Transform the output of nm in a C name address pair when lib prefix is needed.
  25518global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  25519
  25520# Specify filename containing input files for \$NM.
  25521nm_file_list_spec=$lt_nm_file_list_spec
  25522
  25523# The root where to search for dependent libraries,and in which our libraries should be installed.
  25524lt_sysroot=$lt_sysroot
  25525
  25526# The name of the directory that contains temporary libtool files.
  25527objdir=$objdir
  25528
  25529# Used to examine libraries when file_magic_cmd begins with "file".
  25530MAGIC_CMD=$MAGIC_CMD
  25531
  25532# Must we lock files when doing compilation?
  25533need_locks=$lt_need_locks
  25534
  25535# Manifest tool.
  25536MANIFEST_TOOL=$lt_MANIFEST_TOOL
  25537
  25538# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  25539DSYMUTIL=$lt_DSYMUTIL
  25540
  25541# Tool to change global to local symbols on Mac OS X.
  25542NMEDIT=$lt_NMEDIT
  25543
  25544# Tool to manipulate fat objects and archives on Mac OS X.
  25545LIPO=$lt_LIPO
  25546
  25547# ldd/readelf like tool for Mach-O binaries on Mac OS X.
  25548OTOOL=$lt_OTOOL
  25549
  25550# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  25551OTOOL64=$lt_OTOOL64
  25552
  25553# Old archive suffix (normally "a").
  25554libext=$libext
  25555
  25556# Shared library suffix (normally ".so").
  25557shrext_cmds=$lt_shrext_cmds
  25558
  25559# The commands to extract the exported symbol list from a shared archive.
  25560extract_expsyms_cmds=$lt_extract_expsyms_cmds
  25561
  25562# Variables whose values should be saved in libtool wrapper scripts and
  25563# restored at link time.
  25564variables_saved_for_relink=$lt_variables_saved_for_relink
  25565
  25566# Do we need the "lib" prefix for modules?
  25567need_lib_prefix=$need_lib_prefix
  25568
  25569# Do we need a version for libraries?
  25570need_version=$need_version
  25571
  25572# Library versioning type.
  25573version_type=$version_type
  25574
  25575# Shared library runtime path variable.
  25576runpath_var=$runpath_var
  25577
  25578# Shared library path variable.
  25579shlibpath_var=$shlibpath_var
  25580
  25581# Is shlibpath searched before the hard-coded library search path?
  25582shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  25583
  25584# Format of library name prefix.
  25585libname_spec=$lt_libname_spec
  25586
  25587# List of archive names.  First name is the real one, the rest are links.
  25588# The last name is the one that the linker finds with -lNAME
  25589library_names_spec=$lt_library_names_spec
  25590
  25591# The coded name of the library, if different from the real name.
  25592soname_spec=$lt_soname_spec
  25593
  25594# Permission mode override for installation of shared libraries.
  25595install_override_mode=$lt_install_override_mode
  25596
  25597# Command to use after installation of a shared archive.
  25598postinstall_cmds=$lt_postinstall_cmds
  25599
  25600# Command to use after uninstallation of a shared archive.
  25601postuninstall_cmds=$lt_postuninstall_cmds
  25602
  25603# Commands used to finish a libtool library installation in a directory.
  25604finish_cmds=$lt_finish_cmds
  25605
  25606# As "finish_cmds", except a single script fragment to be evaled but
  25607# not shown.
  25608finish_eval=$lt_finish_eval
  25609
  25610# Whether we should hardcode library paths into libraries.
  25611hardcode_into_libs=$hardcode_into_libs
  25612
  25613# Compile-time system search path for libraries.
  25614sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  25615
  25616# Run-time system search path for libraries.
  25617sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  25618
  25619# Whether dlopen is supported.
  25620dlopen_support=$enable_dlopen
  25621
  25622# Whether dlopen of programs is supported.
  25623dlopen_self=$enable_dlopen_self
  25624
  25625# Whether dlopen of statically linked programs is supported.
  25626dlopen_self_static=$enable_dlopen_self_static
  25627
  25628# Commands to strip libraries.
  25629old_striplib=$lt_old_striplib
  25630striplib=$lt_striplib
  25631
  25632
  25633# The linker used to build libraries.
  25634LD=$lt_LD
  25635
  25636# How to create reloadable object files.
  25637reload_flag=$lt_reload_flag
  25638reload_cmds=$lt_reload_cmds
  25639
  25640# Commands used to build an old-style archive.
  25641old_archive_cmds=$lt_old_archive_cmds
  25642
  25643# A language specific compiler.
  25644CC=$lt_compiler
  25645
  25646# Is the compiler the GNU compiler?
  25647with_gcc=$GCC
  25648
  25649# Compiler flag to turn off builtin functions.
  25650no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  25651
  25652# Additional compiler flags for building library objects.
  25653pic_flag=$lt_lt_prog_compiler_pic
  25654
  25655# How to pass a linker flag through the compiler.
  25656wl=$lt_lt_prog_compiler_wl
  25657
  25658# Compiler flag to prevent dynamic linking.
  25659link_static_flag=$lt_lt_prog_compiler_static
  25660
  25661# Does compiler simultaneously support -c and -o options?
  25662compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  25663
  25664# Whether or not to add -lc for building shared libraries.
  25665build_libtool_need_lc=$archive_cmds_need_lc
  25666
  25667# Whether or not to disallow shared libs when runtime libs are static.
  25668allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  25669
  25670# Compiler flag to allow reflexive dlopens.
  25671export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  25672
  25673# Compiler flag to generate shared objects directly from archives.
  25674whole_archive_flag_spec=$lt_whole_archive_flag_spec
  25675
  25676# Whether the compiler copes with passing no objects directly.
  25677compiler_needs_object=$lt_compiler_needs_object
  25678
  25679# Create an old-style archive from a shared archive.
  25680old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  25681
  25682# Create a temporary old-style archive to link instead of a shared archive.
  25683old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  25684
  25685# Commands used to build a shared archive.
  25686archive_cmds=$lt_archive_cmds
  25687archive_expsym_cmds=$lt_archive_expsym_cmds
  25688
  25689# Commands used to build a loadable module if different from building
  25690# a shared archive.
  25691module_cmds=$lt_module_cmds
  25692module_expsym_cmds=$lt_module_expsym_cmds
  25693
  25694# Whether we are building with GNU ld or not.
  25695with_gnu_ld=$lt_with_gnu_ld
  25696
  25697# Flag that allows shared libraries with undefined symbols to be built.
  25698allow_undefined_flag=$lt_allow_undefined_flag
  25699
  25700# Flag that enforces no undefined symbols.
  25701no_undefined_flag=$lt_no_undefined_flag
  25702
  25703# Flag to hardcode \$libdir into a binary during linking.
  25704# This must work even if \$libdir does not exist
  25705hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  25706
  25707# Whether we need a single "-rpath" flag with a separated argument.
  25708hardcode_libdir_separator=$lt_hardcode_libdir_separator
  25709
  25710# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  25711# DIR into the resulting binary.
  25712hardcode_direct=$hardcode_direct
  25713
  25714# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  25715# DIR into the resulting binary and the resulting library dependency is
  25716# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  25717# library is relocated.
  25718hardcode_direct_absolute=$hardcode_direct_absolute
  25719
  25720# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  25721# into the resulting binary.
  25722hardcode_minus_L=$hardcode_minus_L
  25723
  25724# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  25725# into the resulting binary.
  25726hardcode_shlibpath_var=$hardcode_shlibpath_var
  25727
  25728# Set to "yes" if building a shared library automatically hardcodes DIR
  25729# into the library and all subsequent libraries and executables linked
  25730# against it.
  25731hardcode_automatic=$hardcode_automatic
  25732
  25733# Set to yes if linker adds runtime paths of dependent libraries
  25734# to runtime path list.
  25735inherit_rpath=$inherit_rpath
  25736
  25737# Whether libtool must link a program against all its dependency libraries.
  25738link_all_deplibs=$link_all_deplibs
  25739
  25740# Set to "yes" if exported symbols are required.
  25741always_export_symbols=$always_export_symbols
  25742
  25743# The commands to list exported symbols.
  25744export_symbols_cmds=$lt_export_symbols_cmds
  25745
  25746# Symbols that should not be listed in the preloaded symbols.
  25747exclude_expsyms=$lt_exclude_expsyms
  25748
  25749# Symbols that must always be exported.
  25750include_expsyms=$lt_include_expsyms
  25751
  25752# Commands necessary for linking programs (against libraries) with templates.
  25753prelink_cmds=$lt_prelink_cmds
  25754
  25755# Commands necessary for finishing linking programs.
  25756postlink_cmds=$lt_postlink_cmds
  25757
  25758# Specify filename containing input files.
  25759file_list_spec=$lt_file_list_spec
  25760
  25761# How to hardcode a shared library path into an executable.
  25762hardcode_action=$hardcode_action
  25763
  25764# The directories searched by this compiler when creating a shared library.
  25765compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  25766
  25767# Dependencies to place before and after the objects being linked to
  25768# create a shared library.
  25769predep_objects=$lt_predep_objects
  25770postdep_objects=$lt_postdep_objects
  25771predeps=$lt_predeps
  25772postdeps=$lt_postdeps
  25773
  25774# The library search path used internally by the compiler when linking
  25775# a shared library.
  25776compiler_lib_search_path=$lt_compiler_lib_search_path
  25777
  25778# ### END LIBTOOL CONFIG
  25779
  25780_LT_EOF
  25781
  25782  case $host_os in
  25783  aix3*)
  25784    cat <<\_LT_EOF >> "$cfgfile"
  25785# AIX sometimes has problems with the GCC collect2 program.  For some
  25786# reason, if we set the COLLECT_NAMES environment variable, the problems
  25787# vanish in a puff of smoke.
  25788if test "X${COLLECT_NAMES+set}" != Xset; then
  25789  COLLECT_NAMES=
  25790  export COLLECT_NAMES
  25791fi
  25792_LT_EOF
  25793    ;;
  25794  esac
  25795
  25796
  25797ltmain="$ac_aux_dir/ltmain.sh"
  25798
  25799
  25800  # We use sed instead of cat because bash on DJGPP gets confused if
  25801  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
  25802  # text mode, it properly converts lines to CR/LF.  This bash problem
  25803  # is reportedly fixed, but why not run on old versions too?
  25804  sed '$q' "$ltmain" >> "$cfgfile" \
  25805     || (rm -f "$cfgfile"; exit 1)
  25806
  25807  if test x"$xsi_shell" = xyes; then
  25808  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  25809func_dirname ()\
  25810{\
  25811\    case ${1} in\
  25812\      */*) func_dirname_result="${1%/*}${2}" ;;\
  25813\      *  ) func_dirname_result="${3}" ;;\
  25814\    esac\
  25815} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  25816  && mv -f "$cfgfile.tmp" "$cfgfile" \
  25817    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  25818test 0 -eq $? || _lt_function_replace_fail=:
  25819
  25820
  25821  sed -e '/^func_basename ()$/,/^} # func_basename /c\
  25822func_basename ()\
  25823{\
  25824\    func_basename_result="${1##*/}"\
  25825} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  25826  && mv -f "$cfgfile.tmp" "$cfgfile" \
  25827    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  25828test 0 -eq $? || _lt_function_replace_fail=:
  25829
  25830
  25831  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  25832func_dirname_and_basename ()\
  25833{\
  25834\    case ${1} in\
  25835\      */*) func_dirname_result="${1%/*}${2}" ;;\
  25836\      *  ) func_dirname_result="${3}" ;;\
  25837\    esac\
  25838\    func_basename_result="${1##*/}"\
  25839} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  25840  && mv -f "$cfgfile.tmp" "$cfgfile" \
  25841    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  25842test 0 -eq $? || _lt_function_replace_fail=:
  25843
  25844
  25845  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  25846func_stripname ()\
  25847{\
  25848\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  25849\    # positional parameters, so assign one to ordinary parameter first.\
  25850\    func_stripname_result=${3}\
  25851\    func_stripname_result=${func_stripname_result#"${1}"}\
  25852\    func_stripname_result=${func_stripname_result%"${2}"}\
  25853} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  25854  && mv -f "$cfgfile.tmp" "$cfgfile" \
  25855    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  25856test 0 -eq $? || _lt_function_replace_fail=:
  25857
  25858
  25859  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  25860func_split_long_opt ()\
  25861{\
  25862\    func_split_long_opt_name=${1%%=*}\
  25863\    func_split_long_opt_arg=${1#*=}\
  25864} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  25865  && mv -f "$cfgfile.tmp" "$cfgfile" \
  25866    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  25867test 0 -eq $? || _lt_function_replace_fail=:
  25868
  25869
  25870  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  25871func_split_short_opt ()\
  25872{\
  25873\    func_split_short_opt_arg=${1#??}\
  25874\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  25875} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  25876  && mv -f "$cfgfile.tmp" "$cfgfile" \
  25877    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  25878test 0 -eq $? || _lt_function_replace_fail=:
  25879
  25880
  25881  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  25882func_lo2o ()\
  25883{\
  25884\    case ${1} in\
  25885\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  25886\      *)    func_lo2o_result=${1} ;;\
  25887\    esac\
  25888} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  25889  && mv -f "$cfgfile.tmp" "$cfgfile" \
  25890    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  25891test 0 -eq $? || _lt_function_replace_fail=:
  25892
  25893
  25894  sed -e '/^func_xform ()$/,/^} # func_xform /c\
  25895func_xform ()\
  25896{\
  25897    func_xform_result=${1%.*}.lo\
  25898} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  25899  && mv -f "$cfgfile.tmp" "$cfgfile" \
  25900    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  25901test 0 -eq $? || _lt_function_replace_fail=:
  25902
  25903
  25904  sed -e '/^func_arith ()$/,/^} # func_arith /c\
  25905func_arith ()\
  25906{\
  25907    func_arith_result=$(( $* ))\
  25908} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  25909  && mv -f "$cfgfile.tmp" "$cfgfile" \
  25910    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  25911test 0 -eq $? || _lt_function_replace_fail=:
  25912
  25913
  25914  sed -e '/^func_len ()$/,/^} # func_len /c\
  25915func_len ()\
  25916{\
  25917    func_len_result=${#1}\
  25918} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  25919  && mv -f "$cfgfile.tmp" "$cfgfile" \
  25920    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  25921test 0 -eq $? || _lt_function_replace_fail=:
  25922
  25923fi
  25924
  25925if test x"$lt_shell_append" = xyes; then
  25926  sed -e '/^func_append ()$/,/^} # func_append /c\
  25927func_append ()\
  25928{\
  25929    eval "${1}+=\\${2}"\
  25930} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  25931  && mv -f "$cfgfile.tmp" "$cfgfile" \
  25932    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  25933test 0 -eq $? || _lt_function_replace_fail=:
  25934
  25935
  25936  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  25937func_append_quoted ()\
  25938{\
  25939\    func_quote_for_eval "${2}"\
  25940\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  25941} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  25942  && mv -f "$cfgfile.tmp" "$cfgfile" \
  25943    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  25944test 0 -eq $? || _lt_function_replace_fail=:
  25945
  25946
  25947  # Save a `func_append' function call where possible by direct use of '+='
  25948  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  25949    && mv -f "$cfgfile.tmp" "$cfgfile" \
  25950      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  25951  test 0 -eq $? || _lt_function_replace_fail=:
  25952else
  25953  # Save a `func_append' function call even when '+=' is not available
  25954  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  25955    && mv -f "$cfgfile.tmp" "$cfgfile" \
  25956      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  25957  test 0 -eq $? || _lt_function_replace_fail=:
  25958fi
  25959
  25960if test x"$_lt_function_replace_fail" = x":"; then
  25961  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  25962$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  25963fi
  25964
  25965
  25966   mv -f "$cfgfile" "$ofile" ||
  25967    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  25968  chmod +x "$ofile"
  25969
  25970
  25971    cat <<_LT_EOF >> "$ofile"
  25972
  25973# ### BEGIN LIBTOOL TAG CONFIG: CXX
  25974
  25975# The linker used to build libraries.
  25976LD=$lt_LD_CXX
  25977
  25978# How to create reloadable object files.
  25979reload_flag=$lt_reload_flag_CXX
  25980reload_cmds=$lt_reload_cmds_CXX
  25981
  25982# Commands used to build an old-style archive.
  25983old_archive_cmds=$lt_old_archive_cmds_CXX
  25984
  25985# A language specific compiler.
  25986CC=$lt_compiler_CXX
  25987
  25988# Is the compiler the GNU compiler?
  25989with_gcc=$GCC_CXX
  25990
  25991# Compiler flag to turn off builtin functions.
  25992no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  25993
  25994# Additional compiler flags for building library objects.
  25995pic_flag=$lt_lt_prog_compiler_pic_CXX
  25996
  25997# How to pass a linker flag through the compiler.
  25998wl=$lt_lt_prog_compiler_wl_CXX
  25999
  26000# Compiler flag to prevent dynamic linking.
  26001link_static_flag=$lt_lt_prog_compiler_static_CXX
  26002
  26003# Does compiler simultaneously support -c and -o options?
  26004compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  26005
  26006# Whether or not to add -lc for building shared libraries.
  26007build_libtool_need_lc=$archive_cmds_need_lc_CXX
  26008
  26009# Whether or not to disallow shared libs when runtime libs are static.
  26010allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  26011
  26012# Compiler flag to allow reflexive dlopens.
  26013export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  26014
  26015# Compiler flag to generate shared objects directly from archives.
  26016whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  26017
  26018# Whether the compiler copes with passing no objects directly.
  26019compiler_needs_object=$lt_compiler_needs_object_CXX
  26020
  26021# Create an old-style archive from a shared archive.
  26022old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  26023
  26024# Create a temporary old-style archive to link instead of a shared archive.
  26025old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  26026
  26027# Commands used to build a shared archive.
  26028archive_cmds=$lt_archive_cmds_CXX
  26029archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  26030
  26031# Commands used to build a loadable module if different from building
  26032# a shared archive.
  26033module_cmds=$lt_module_cmds_CXX
  26034module_expsym_cmds=$lt_module_expsym_cmds_CXX
  26035
  26036# Whether we are building with GNU ld or not.
  26037with_gnu_ld=$lt_with_gnu_ld_CXX
  26038
  26039# Flag that allows shared libraries with undefined symbols to be built.
  26040allow_undefined_flag=$lt_allow_undefined_flag_CXX
  26041
  26042# Flag that enforces no undefined symbols.
  26043no_undefined_flag=$lt_no_undefined_flag_CXX
  26044
  26045# Flag to hardcode \$libdir into a binary during linking.
  26046# This must work even if \$libdir does not exist
  26047hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  26048
  26049# Whether we need a single "-rpath" flag with a separated argument.
  26050hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  26051
  26052# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  26053# DIR into the resulting binary.
  26054hardcode_direct=$hardcode_direct_CXX
  26055
  26056# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  26057# DIR into the resulting binary and the resulting library dependency is
  26058# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  26059# library is relocated.
  26060hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  26061
  26062# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  26063# into the resulting binary.
  26064hardcode_minus_L=$hardcode_minus_L_CXX
  26065
  26066# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  26067# into the resulting binary.
  26068hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  26069
  26070# Set to "yes" if building a shared library automatically hardcodes DIR
  26071# into the library and all subsequent libraries and executables linked
  26072# against it.
  26073hardcode_automatic=$hardcode_automatic_CXX
  26074
  26075# Set to yes if linker adds runtime paths of dependent libraries
  26076# to runtime path list.
  26077inherit_rpath=$inherit_rpath_CXX
  26078
  26079# Whether libtool must link a program against all its dependency libraries.
  26080link_all_deplibs=$link_all_deplibs_CXX
  26081
  26082# Set to "yes" if exported symbols are required.
  26083always_export_symbols=$always_export_symbols_CXX
  26084
  26085# The commands to list exported symbols.
  26086export_symbols_cmds=$lt_export_symbols_cmds_CXX
  26087
  26088# Symbols that should not be listed in the preloaded symbols.
  26089exclude_expsyms=$lt_exclude_expsyms_CXX
  26090
  26091# Symbols that must always be exported.
  26092include_expsyms=$lt_include_expsyms_CXX
  26093
  26094# Commands necessary for linking programs (against libraries) with templates.
  26095prelink_cmds=$lt_prelink_cmds_CXX
  26096
  26097# Commands necessary for finishing linking programs.
  26098postlink_cmds=$lt_postlink_cmds_CXX
  26099
  26100# Specify filename containing input files.
  26101file_list_spec=$lt_file_list_spec_CXX
  26102
  26103# How to hardcode a shared library path into an executable.
  26104hardcode_action=$hardcode_action_CXX
  26105
  26106# The directories searched by this compiler when creating a shared library.
  26107compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  26108
  26109# Dependencies to place before and after the objects being linked to
  26110# create a shared library.
  26111predep_objects=$lt_predep_objects_CXX
  26112postdep_objects=$lt_postdep_objects_CXX
  26113predeps=$lt_predeps_CXX
  26114postdeps=$lt_postdeps_CXX
  26115
  26116# The library search path used internally by the compiler when linking
  26117# a shared library.
  26118compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  26119
  26120# ### END LIBTOOL TAG CONFIG: CXX
  26121_LT_EOF
  26122
  26123 ;;
  26124    "sdl2_config":C) chmod a+x sdl2-config ;;
  26125    "summary":C) echo -en "$SUMMARY" ;;
  26126
  26127  esac
  26128done # for ac_tag
  26129
  26130
  26131as_fn_exit 0
  26132_ACEOF
  26133ac_clean_files=$ac_clean_files_save
  26134
  26135test $ac_write_fail = 0 ||
  26136  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  26137
  26138
  26139# configure is writing to config.log, and then calls config.status.
  26140# config.status does its own redirection, appending to config.log.
  26141# Unfortunately, on DOS this fails, as config.log is still kept open
  26142# by configure, so config.status won't be able to write to it; its
  26143# output is simply discarded.  So we exec the FD to /dev/null,
  26144# effectively closing config.log, so it can be properly (re)opened and
  26145# appended to by config.status.  When coming back to configure, we
  26146# need to make the FD available again.
  26147if test "$no_create" != yes; then
  26148  ac_cs_success=:
  26149  ac_config_status_args=
  26150  test "$silent" = yes &&
  26151    ac_config_status_args="$ac_config_status_args --quiet"
  26152  exec 5>/dev/null
  26153  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  26154  exec 5>>config.log
  26155  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  26156  # would make configure fail if this is the last instruction.
  26157  $ac_cs_success || as_fn_exit 1
  26158fi
  26159if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  26160  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  26161$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  26162fi
  26163