source: trunk/configure @ 149

Last change on this file since 149 was 149, checked in by kulshres, 9 years ago

check during configure for typeof

pending: something for MSVC

Signed-off-by: Kshitij Kulshreshtha <kshitij@…>

File size: 576.3 KB
Line 
1#! /bin/sh
2# From configure.ac Revision.
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.65 for adolc 2.1.8-trunk.
5#
6# Report bugs to <adol-c@list.coin-or.org>.
7#
8#
9# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
10# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
11# Inc.
12#
13#
14# This configure script is free software; the Free Software Foundation
15# gives unlimited permission to copy, distribute and modify it.
16## -------------------- ##
17## M4sh Initialization. ##
18## -------------------- ##
19
20# Be more Bourne compatible
21DUALCASE=1; export DUALCASE # for MKS sh
22if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23  emulate sh
24  NULLCMD=:
25  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26  # is contrary to our usage.  Disable this feature.
27  alias -g '${1+"$@"}'='"$@"'
28  setopt NO_GLOB_SUBST
29else
30  case `(set -o) 2>/dev/null` in #(
31  *posix*) :
32    set -o posix ;; #(
33  *) :
34     ;;
35esac
36fi
37
38
39as_nl='
40'
41export as_nl
42# Printing a long string crashes Solaris 7 /usr/bin/printf.
43as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
46# Prefer a ksh shell builtin over an external printf program on Solaris,
47# but without wasting forks for bash or zsh.
48if test -z "$BASH_VERSION$ZSH_VERSION" \
49    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='print -r --'
51  as_echo_n='print -rn --'
52elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53  as_echo='printf %s\n'
54  as_echo_n='printf %s'
55else
56  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
57    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
58    as_echo_n='/usr/ucb/echo -n'
59  else
60    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
61    as_echo_n_body='eval
62      arg=$1;
63      case $arg in #(
64      *"$as_nl"*)
65        expr "X$arg" : "X\\(.*\\)$as_nl";
66        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67      esac;
68      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69    '
70    export as_echo_n_body
71    as_echo_n='sh -c $as_echo_n_body as_echo'
72  fi
73  export as_echo_body
74  as_echo='sh -c $as_echo_body as_echo'
75fi
76
77# The user is always right.
78if test "${PATH_SEPARATOR+set}" != set; then
79  PATH_SEPARATOR=:
80  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82      PATH_SEPARATOR=';'
83  }
84fi
85
86
87# IFS
88# We need space, tab and new line, in precisely that order.  Quoting is
89# there to prevent editors from complaining about space-tab.
90# (If _AS_PATH_WALK were called with IFS unset, it would disable word
91# splitting by setting IFS to empty value.)
92IFS=" ""        $as_nl"
93
94# Find who we are.  Look in the path if we contain no directory separator.
95case $0 in #((
96  *[\\/]* ) as_myself=$0 ;;
97  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100  IFS=$as_save_IFS
101  test -z "$as_dir" && as_dir=.
102    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103  done
104IFS=$as_save_IFS
105
106     ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111  as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115  exit 1
116fi
117
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there.  '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141  emulate sh
142  NULLCMD=:
143  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144  # is contrary to our usage.  Disable this feature.
145  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146  setopt NO_GLOB_SUBST
147else
148  case \`(set -o) 2>/dev/null\` in #(
149  *posix*) :
150    set -o posix ;; #(
151  *) :
152     ;;
153esac
154fi
155"
156  as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170  exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177test \$(( 1 + 1 )) = 2 || exit 1"
178  if (eval "$as_required") 2>/dev/null; then :
179  as_have_required=yes
180else
181  as_have_required=no
182fi
183  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185else
186  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187as_found=false
188for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189do
190  IFS=$as_save_IFS
191  test -z "$as_dir" && as_dir=.
192  as_found=:
193  case $as_dir in #(
194         /*)
195           for as_base in sh bash ksh sh5; do
196             # Try only shells that exist, to save several forks.
197             as_shell=$as_dir/$as_base
198             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200  CONFIG_SHELL=$as_shell as_have_required=yes
201                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202  break 2
203fi
204fi
205           done;;
206       esac
207  as_found=false
208done
209$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211  CONFIG_SHELL=$SHELL as_have_required=yes
212fi; }
213IFS=$as_save_IFS
214
215
216      if test "x$CONFIG_SHELL" != x; then :
217  # We cannot yet assume a decent shell, so we have to provide a
218        # neutralization value for shells without unset; and this also
219        # works around shells that cannot unset nonexistent variables.
220        BASH_ENV=/dev/null
221        ENV=/dev/null
222        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
223        export CONFIG_SHELL
224        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
225fi
226
227    if test x$as_have_required = xno; then :
228  $as_echo "$0: This script requires a shell more modern than all"
229  $as_echo "$0: the shells that I found on your system."
230  if test x${ZSH_VERSION+set} = xset ; then
231    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
232    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
233  else
234    $as_echo "$0: Please tell bug-autoconf@gnu.org and
235$0: adol-c@list.coin-or.org about your system, including
236$0: any error possibly output before this message. Then
237$0: install a modern shell, or manually run the script
238$0: under such a shell if you do have one."
239  fi
240  exit 1
241fi
242fi
243fi
244SHELL=${CONFIG_SHELL-/bin/sh}
245export SHELL
246# Unset more variables known to interfere with behavior of common tools.
247CLICOLOR_FORCE= GREP_OPTIONS=
248unset CLICOLOR_FORCE GREP_OPTIONS
249
250## --------------------- ##
251## M4sh Shell Functions. ##
252## --------------------- ##
253# as_fn_unset VAR
254# ---------------
255# Portably unset VAR.
256as_fn_unset ()
257{
258  { eval $1=; unset $1;}
259}
260as_unset=as_fn_unset
261
262# as_fn_set_status STATUS
263# -----------------------
264# Set $? to STATUS, without forking.
265as_fn_set_status ()
266{
267  return $1
268} # as_fn_set_status
269
270# as_fn_exit STATUS
271# -----------------
272# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
273as_fn_exit ()
274{
275  set +e
276  as_fn_set_status $1
277  exit $1
278} # as_fn_exit
279
280# as_fn_mkdir_p
281# -------------
282# Create "$as_dir" as a directory, including parents if necessary.
283as_fn_mkdir_p ()
284{
285
286  case $as_dir in #(
287  -*) as_dir=./$as_dir;;
288  esac
289  test -d "$as_dir" || eval $as_mkdir_p || {
290    as_dirs=
291    while :; do
292      case $as_dir in #(
293      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
294      *) as_qdir=$as_dir;;
295      esac
296      as_dirs="'$as_qdir' $as_dirs"
297      as_dir=`$as_dirname -- "$as_dir" ||
298$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
299         X"$as_dir" : 'X\(//\)[^/]' \| \
300         X"$as_dir" : 'X\(//\)$' \| \
301         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
302$as_echo X"$as_dir" |
303    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
304            s//\1/
305            q
306          }
307          /^X\(\/\/\)[^/].*/{
308            s//\1/
309            q
310          }
311          /^X\(\/\/\)$/{
312            s//\1/
313            q
314          }
315          /^X\(\/\).*/{
316            s//\1/
317            q
318          }
319          s/.*/./; q'`
320      test -d "$as_dir" && break
321    done
322    test -z "$as_dirs" || eval "mkdir $as_dirs"
323  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
324
325
326} # as_fn_mkdir_p
327# as_fn_append VAR VALUE
328# ----------------------
329# Append the text in VALUE to the end of the definition contained in VAR. Take
330# advantage of any shell optimizations that allow amortized linear growth over
331# repeated appends, instead of the typical quadratic growth present in naive
332# implementations.
333if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
334  eval 'as_fn_append ()
335  {
336    eval $1+=\$2
337  }'
338else
339  as_fn_append ()
340  {
341    eval $1=\$$1\$2
342  }
343fi # as_fn_append
344
345# as_fn_arith ARG...
346# ------------------
347# Perform arithmetic evaluation on the ARGs, and store the result in the
348# global $as_val. Take advantage of shells that can avoid forks. The arguments
349# must be portable across $(()) and expr.
350if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
351  eval 'as_fn_arith ()
352  {
353    as_val=$(( $* ))
354  }'
355else
356  as_fn_arith ()
357  {
358    as_val=`expr "$@" || test $? -eq 1`
359  }
360fi # as_fn_arith
361
362
363# as_fn_error ERROR [LINENO LOG_FD]
364# ---------------------------------
365# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
366# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
367# script with status $?, using 1 if that was 0.
368as_fn_error ()
369{
370  as_status=$?; test $as_status -eq 0 && as_status=1
371  if test "$3"; then
372    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
373    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
374  fi
375  $as_echo "$as_me: error: $1" >&2
376  as_fn_exit $as_status
377} # as_fn_error
378
379if expr a : '\(a\)' >/dev/null 2>&1 &&
380   test "X`expr 00001 : '.*\(...\)'`" = X001; then
381  as_expr=expr
382else
383  as_expr=false
384fi
385
386if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
387  as_basename=basename
388else
389  as_basename=false
390fi
391
392if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
393  as_dirname=dirname
394else
395  as_dirname=false
396fi
397
398as_me=`$as_basename -- "$0" ||
399$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
400         X"$0" : 'X\(//\)$' \| \
401         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402$as_echo X/"$0" |
403    sed '/^.*\/\([^/][^/]*\)\/*$/{
404            s//\1/
405            q
406          }
407          /^X\/\(\/\/\)$/{
408            s//\1/
409            q
410          }
411          /^X\/\(\/\).*/{
412            s//\1/
413            q
414          }
415          s/.*/./; q'`
416
417# Avoid depending upon Character Ranges.
418as_cr_letters='abcdefghijklmnopqrstuvwxyz'
419as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
420as_cr_Letters=$as_cr_letters$as_cr_LETTERS
421as_cr_digits='0123456789'
422as_cr_alnum=$as_cr_Letters$as_cr_digits
423
424
425  as_lineno_1=$LINENO as_lineno_1a=$LINENO
426  as_lineno_2=$LINENO as_lineno_2a=$LINENO
427  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
428  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
429  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
430  sed -n '
431    p
432    /[$]LINENO/=
433  ' <$as_myself |
434    sed '
435      s/[$]LINENO.*/&-/
436      t lineno
437      b
438      :lineno
439      N
440      :loop
441      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
442      t loop
443      s/-\n.*//
444    ' >$as_me.lineno &&
445  chmod +x "$as_me.lineno" ||
446    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447
448  # Don't try to exec as it changes $[0], causing all sort of problems
449  # (the dirname of $[0] is not the place where we might find the
450  # original and so on.  Autoconf is especially sensitive to this).
451  . "./$as_me.lineno"
452  # Exit status is that of the last command.
453  exit
454}
455
456ECHO_C= ECHO_N= ECHO_T=
457case `echo -n x` in #(((((
458-n*)
459  case `echo 'xy\c'` in
460  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
461  xy)  ECHO_C='\c';;
462  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
463       ECHO_T=' ';;
464  esac;;
465*)
466  ECHO_N='-n';;
467esac
468
469rm -f conf$$ conf$$.exe conf$$.file
470if test -d conf$$.dir; then
471  rm -f conf$$.dir/conf$$.file
472else
473  rm -f conf$$.dir
474  mkdir conf$$.dir 2>/dev/null
475fi
476if (echo >conf$$.file) 2>/dev/null; then
477  if ln -s conf$$.file conf$$ 2>/dev/null; then
478    as_ln_s='ln -s'
479    # ... but there are two gotchas:
480    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
481    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
482    # In both cases, we have to default to `cp -p'.
483    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
484      as_ln_s='cp -p'
485  elif ln conf$$.file conf$$ 2>/dev/null; then
486    as_ln_s=ln
487  else
488    as_ln_s='cp -p'
489  fi
490else
491  as_ln_s='cp -p'
492fi
493rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
494rmdir conf$$.dir 2>/dev/null
495
496if mkdir -p . 2>/dev/null; then
497  as_mkdir_p='mkdir -p "$as_dir"'
498else
499  test -d ./-p && rmdir ./-p
500  as_mkdir_p=false
501fi
502
503if test -x / >/dev/null 2>&1; then
504  as_test_x='test -x'
505else
506  if ls -dL / >/dev/null 2>&1; then
507    as_ls_L_option=L
508  else
509    as_ls_L_option=
510  fi
511  as_test_x='
512    eval sh -c '\''
513      if test -d "$1"; then
514        test -d "$1/.";
515      else
516        case $1 in #(
517        -*)set "./$1";;
518        esac;
519        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
520        ???[sx]*):;;*)false;;esac;fi
521    '\'' sh
522  '
523fi
524as_executable_p=$as_test_x
525
526# Sed expression to map a string onto a valid CPP name.
527as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528
529# Sed expression to map a string onto a valid variable name.
530as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
531
532
533
534# Check that we are running under the correct shell.
535SHELL=${CONFIG_SHELL-/bin/sh}
536
537case X$lt_ECHO in
538X*--fallback-echo)
539  # Remove one level of quotation (which was required for Make).
540  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
541  ;;
542esac
543
544ECHO=${lt_ECHO-echo}
545if test "X$1" = X--no-reexec; then
546  # Discard the --no-reexec flag, and continue.
547  shift
548elif test "X$1" = X--fallback-echo; then
549  # Avoid inline document here, it may be left over
550  :
551elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
552  # Yippee, $ECHO works!
553  :
554else
555  # Restart under the correct shell.
556  exec $SHELL "$0" --no-reexec ${1+"$@"}
557fi
558
559if test "X$1" = X--fallback-echo; then
560  # used as fallback echo
561  shift
562  cat <<_LT_EOF
563$*
564_LT_EOF
565  exit 0
566fi
567
568# The HP-UX ksh and POSIX shell print the target directory to stdout
569# if CDPATH is set.
570(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
571
572if test -z "$lt_ECHO"; then
573  if test "X${echo_test_string+set}" != Xset; then
574    # find a string as large as possible, as long as the shell can cope with it
575    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
576      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
577      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
578         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
579      then
580        break
581      fi
582    done
583  fi
584
585  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
586     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
587     test "X$echo_testing_string" = "X$echo_test_string"; then
588    :
589  else
590    # The Solaris, AIX, and Digital Unix default echo programs unquote
591    # backslashes.  This makes it impossible to quote backslashes using
592    #   echo "$something" | sed 's/\\/\\\\/g'
593    #
594    # So, first we look for a working echo in the user's PATH.
595
596    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
597    for dir in $PATH /usr/ucb; do
598      IFS="$lt_save_ifs"
599      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
600         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
601         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
602         test "X$echo_testing_string" = "X$echo_test_string"; then
603        ECHO="$dir/echo"
604        break
605      fi
606    done
607    IFS="$lt_save_ifs"
608
609    if test "X$ECHO" = Xecho; then
610      # We didn't find a better echo, so look for alternatives.
611      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
612         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
613         test "X$echo_testing_string" = "X$echo_test_string"; then
614        # This shell has a builtin print -r that does the trick.
615        ECHO='print -r'
616      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
617           test "X$CONFIG_SHELL" != X/bin/ksh; then
618        # If we have ksh, try running configure again with it.
619        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
620        export ORIGINAL_CONFIG_SHELL
621        CONFIG_SHELL=/bin/ksh
622        export CONFIG_SHELL
623        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
624      else
625        # Try using printf.
626        ECHO='printf %s\n'
627        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
628           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
629           test "X$echo_testing_string" = "X$echo_test_string"; then
630          # Cool, printf works
631          :
632        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
633             test "X$echo_testing_string" = 'X\t' &&
634             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
635             test "X$echo_testing_string" = "X$echo_test_string"; then
636          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
637          export CONFIG_SHELL
638          SHELL="$CONFIG_SHELL"
639          export SHELL
640          ECHO="$CONFIG_SHELL $0 --fallback-echo"
641        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642             test "X$echo_testing_string" = 'X\t' &&
643             echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644             test "X$echo_testing_string" = "X$echo_test_string"; then
645          ECHO="$CONFIG_SHELL $0 --fallback-echo"
646        else
647          # maybe with a smaller string...
648          prev=:
649
650          for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
651            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
652            then
653              break
654            fi
655            prev="$cmd"
656          done
657
658          if test "$prev" != 'sed 50q "$0"'; then
659            echo_test_string=`eval $prev`
660            export echo_test_string
661            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
662          else
663            # Oops.  We lost completely, so just stick with echo.
664            ECHO=echo
665          fi
666        fi
667      fi
668    fi
669  fi
670fi
671
672# Copy echo and quote the copy suitably for passing to libtool from
673# the Makefile, instead of quoting the original, which is used later.
674lt_ECHO=$ECHO
675if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
676   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
677fi
678
679
680
681
682test -n "$DJDIR" || exec 7<&0 </dev/null
683exec 6>&1
684
685# Name of the host.
686# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
687# so uname gets run too.
688ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
689
690#
691# Initializations.
692#
693ac_default_prefix=/usr/local
694ac_clean_files=
695ac_config_libobj_dir=.
696LIBOBJS=
697cross_compiling=no
698subdirs=
699MFLAGS=
700MAKEFLAGS=
701
702# Identity of this package.
703PACKAGE_NAME='adolc'
704PACKAGE_TARNAME='adolc'
705PACKAGE_VERSION='2.1.8-trunk'
706PACKAGE_STRING='adolc 2.1.8-trunk'
707PACKAGE_BUGREPORT='adol-c@list.coin-or.org'
708PACKAGE_URL=''
709
710ac_unique_file="ADOL-C/src/adolc.h"
711ac_default_prefix=${HOME}/adolc_base
712# Factoring default headers for most tests.
713ac_includes_default="\
714#include <stdio.h>
715#ifdef HAVE_SYS_TYPES_H
716# include <sys/types.h>
717#endif
718#ifdef HAVE_SYS_STAT_H
719# include <sys/stat.h>
720#endif
721#ifdef STDC_HEADERS
722# include <stdlib.h>
723# include <stddef.h>
724#else
725# ifdef HAVE_STDLIB_H
726#  include <stdlib.h>
727# endif
728#endif
729#ifdef HAVE_STRING_H
730# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
731#  include <memory.h>
732# endif
733# include <string.h>
734#endif
735#ifdef HAVE_STRINGS_H
736# include <strings.h>
737#endif
738#ifdef HAVE_INTTYPES_H
739# include <inttypes.h>
740#endif
741#ifdef HAVE_STDINT_H
742# include <stdint.h>
743#endif
744#ifdef HAVE_UNISTD_H
745# include <unistd.h>
746#endif"
747
748ac_subst_vars='am__EXEEXT_FALSE
749am__EXEEXT_TRUE
750LTLIBOBJS
751Q
752V
753MCS
754OBJC
755F77
756FC
757AM_MAKEFLAGS
758MAKEFLAGS
759shavedir
760ac_adolc_cxxflags
761ac_adolc_cflags
762PAREXA_FALSE
763PAREXA_TRUE
764ADDEXA_FALSE
765ADDEXA_TRUE
766DOCEXA_FALSE
767DOCEXA_TRUE
768COLPACK_LIBS
769COLPACK_CFLAGS
770SPARSE_FALSE
771SPARSE_TRUE
772HAVE_LIBCOLPACK_FALSE
773HAVE_LIBCOLPACK_TRUE
774ADOLC_PATCHLEVEL
775ADOLC_SUBVERSION
776ADOLC_VERSION
777ac_aux_dir
778LIBOBJS
779_lib
780LTCXXCOMPILE
781LTCOMPILE
782DOLT_BASH
783CXXCPP
784OTOOL64
785OTOOL
786LIPO
787NMEDIT
788DSYMUTIL
789lt_ECHO
790RANLIB
791AR
792NM
793ac_ct_DUMPBIN
794DUMPBIN
795LD
796FGREP
797EGREP
798GREP
799SED
800LIBTOOL
801OBJDUMP
802DLLTOOL
803AS
804host_os
805host_vendor
806host_cpu
807host
808build_os
809build_vendor
810build_cpu
811build
812LN_S
813CPP
814am__fastdepCC_FALSE
815am__fastdepCC_TRUE
816CCDEPMODE
817ac_ct_CC
818CFLAGS
819CC
820am__fastdepCXX_FALSE
821am__fastdepCXX_TRUE
822CXXDEPMODE
823AMDEPBACKSLASH
824AMDEP_FALSE
825AMDEP_TRUE
826am__quote
827am__include
828DEPDIR
829OBJEXT
830EXEEXT
831ac_ct_CXX
832CPPFLAGS
833LDFLAGS
834CXXFLAGS
835CXX
836am__untar
837am__tar
838AMTAR
839am__leading_dot
840SET_MAKE
841AWK
842mkdir_p
843MKDIR_P
844INSTALL_STRIP_PROGRAM
845STRIP
846install_sh
847MAKEINFO
848AUTOHEADER
849AUTOMAKE
850AUTOCONF
851ACLOCAL
852VERSION
853PACKAGE
854CYGPATH_W
855am__isrc
856INSTALL_DATA
857INSTALL_SCRIPT
858INSTALL_PROGRAM
859target_alias
860host_alias
861build_alias
862LIBS
863ECHO_T
864ECHO_N
865ECHO_C
866DEFS
867mandir
868localedir
869libdir
870psdir
871pdfdir
872dvidir
873htmldir
874infodir
875docdir
876oldincludedir
877includedir
878localstatedir
879sharedstatedir
880sysconfdir
881datadir
882datarootdir
883libexecdir
884sbindir
885bindir
886program_transform_name
887prefix
888exec_prefix
889PACKAGE_URL
890PACKAGE_BUGREPORT
891PACKAGE_STRING
892PACKAGE_VERSION
893PACKAGE_TARNAME
894PACKAGE_NAME
895PATH_SEPARATOR
896SHELL'
897ac_subst_files=''
898ac_user_opts='
899enable_option_checking
900enable_dependency_tracking
901enable_shared
902enable_static
903with_pic
904enable_fast_install
905with_gnu_ld
906enable_libtool_lock
907enable_debug
908enable_harddebug
909enable_stdczero
910enable_tserrno
911enable_safe_extern
912enable_sparse
913with_colpack
914enable_docexa
915enable_addexa
916enable_parexa
917with_openmp_flag
918with_cflags
919with_cxxflags
920enable_shave
921'
922      ac_precious_vars='build_alias
923host_alias
924target_alias
925CXX
926CXXFLAGS
927LDFLAGS
928LIBS
929CPPFLAGS
930CCC
931CC
932CFLAGS
933CPP
934CXXCPP'
935
936
937# Initialize some variables set by options.
938ac_init_help=
939ac_init_version=false
940ac_unrecognized_opts=
941ac_unrecognized_sep=
942# The variables have the same names as the options, with
943# dashes changed to underlines.
944cache_file=/dev/null
945exec_prefix=NONE
946no_create=
947no_recursion=
948prefix=NONE
949program_prefix=NONE
950program_suffix=NONE
951program_transform_name=s,x,x,
952silent=
953site=
954srcdir=
955verbose=
956x_includes=NONE
957x_libraries=NONE
958
959# Installation directory options.
960# These are left unexpanded so users can "make install exec_prefix=/foo"
961# and all the variables that are supposed to be based on exec_prefix
962# by default will actually change.
963# Use braces instead of parens because sh, perl, etc. also accept them.
964# (The list follows the same order as the GNU Coding Standards.)
965bindir='${exec_prefix}/bin'
966sbindir='${exec_prefix}/sbin'
967libexecdir='${exec_prefix}/libexec'
968datarootdir='${prefix}/share'
969datadir='${datarootdir}'
970sysconfdir='${prefix}/etc'
971sharedstatedir='${prefix}/com'
972localstatedir='${prefix}/var'
973includedir='${prefix}/include'
974oldincludedir='/usr/include'
975docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
976infodir='${datarootdir}/info'
977htmldir='${docdir}'
978dvidir='${docdir}'
979pdfdir='${docdir}'
980psdir='${docdir}'
981libdir='${exec_prefix}/lib'
982localedir='${datarootdir}/locale'
983mandir='${datarootdir}/man'
984
985ac_prev=
986ac_dashdash=
987for ac_option
988do
989  # If the previous option needs an argument, assign it.
990  if test -n "$ac_prev"; then
991    eval $ac_prev=\$ac_option
992    ac_prev=
993    continue
994  fi
995
996  case $ac_option in
997  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
998  *)    ac_optarg=yes ;;
999  esac
1000
1001  # Accept the important Cygnus configure options, so we can diagnose typos.
1002
1003  case $ac_dashdash$ac_option in
1004  --)
1005    ac_dashdash=yes ;;
1006
1007  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1008    ac_prev=bindir ;;
1009  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1010    bindir=$ac_optarg ;;
1011
1012  -build | --build | --buil | --bui | --bu)
1013    ac_prev=build_alias ;;
1014  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1015    build_alias=$ac_optarg ;;
1016
1017  -cache-file | --cache-file | --cache-fil | --cache-fi \
1018  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1019    ac_prev=cache_file ;;
1020  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1021  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1022    cache_file=$ac_optarg ;;
1023
1024  --config-cache | -C)
1025    cache_file=config.cache ;;
1026
1027  -datadir | --datadir | --datadi | --datad)
1028    ac_prev=datadir ;;
1029  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1030    datadir=$ac_optarg ;;
1031
1032  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1033  | --dataroo | --dataro | --datar)
1034    ac_prev=datarootdir ;;
1035  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1036  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1037    datarootdir=$ac_optarg ;;
1038
1039  -disable-* | --disable-*)
1040    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1041    # Reject names that are not valid shell variable names.
1042    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1043      as_fn_error "invalid feature name: $ac_useropt"
1044    ac_useropt_orig=$ac_useropt
1045    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1046    case $ac_user_opts in
1047      *"
1048"enable_$ac_useropt"
1049"*) ;;
1050      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1051         ac_unrecognized_sep=', ';;
1052    esac
1053    eval enable_$ac_useropt=no ;;
1054
1055  -docdir | --docdir | --docdi | --doc | --do)
1056    ac_prev=docdir ;;
1057  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1058    docdir=$ac_optarg ;;
1059
1060  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1061    ac_prev=dvidir ;;
1062  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1063    dvidir=$ac_optarg ;;
1064
1065  -enable-* | --enable-*)
1066    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1067    # Reject names that are not valid shell variable names.
1068    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1069      as_fn_error "invalid feature name: $ac_useropt"
1070    ac_useropt_orig=$ac_useropt
1071    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1072    case $ac_user_opts in
1073      *"
1074"enable_$ac_useropt"
1075"*) ;;
1076      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1077         ac_unrecognized_sep=', ';;
1078    esac
1079    eval enable_$ac_useropt=\$ac_optarg ;;
1080
1081  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1082  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1083  | --exec | --exe | --ex)
1084    ac_prev=exec_prefix ;;
1085  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1086  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1087  | --exec=* | --exe=* | --ex=*)
1088    exec_prefix=$ac_optarg ;;
1089
1090  -gas | --gas | --ga | --g)
1091    # Obsolete; use --with-gas.
1092    with_gas=yes ;;
1093
1094  -help | --help | --hel | --he | -h)
1095    ac_init_help=long ;;
1096  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1097    ac_init_help=recursive ;;
1098  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1099    ac_init_help=short ;;
1100
1101  -host | --host | --hos | --ho)
1102    ac_prev=host_alias ;;
1103  -host=* | --host=* | --hos=* | --ho=*)
1104    host_alias=$ac_optarg ;;
1105
1106  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1107    ac_prev=htmldir ;;
1108  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1109  | --ht=*)
1110    htmldir=$ac_optarg ;;
1111
1112  -includedir | --includedir | --includedi | --included | --include \
1113  | --includ | --inclu | --incl | --inc)
1114    ac_prev=includedir ;;
1115  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1116  | --includ=* | --inclu=* | --incl=* | --inc=*)
1117    includedir=$ac_optarg ;;
1118
1119  -infodir | --infodir | --infodi | --infod | --info | --inf)
1120    ac_prev=infodir ;;
1121  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1122    infodir=$ac_optarg ;;
1123
1124  -libdir | --libdir | --libdi | --libd)
1125    ac_prev=libdir ;;
1126  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1127    libdir=$ac_optarg ;;
1128
1129  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1130  | --libexe | --libex | --libe)
1131    ac_prev=libexecdir ;;
1132  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1133  | --libexe=* | --libex=* | --libe=*)
1134    libexecdir=$ac_optarg ;;
1135
1136  -localedir | --localedir | --localedi | --localed | --locale)
1137    ac_prev=localedir ;;
1138  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1139    localedir=$ac_optarg ;;
1140
1141  -localstatedir | --localstatedir | --localstatedi | --localstated \
1142  | --localstate | --localstat | --localsta | --localst | --locals)
1143    ac_prev=localstatedir ;;
1144  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1145  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1146    localstatedir=$ac_optarg ;;
1147
1148  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1149    ac_prev=mandir ;;
1150  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1151    mandir=$ac_optarg ;;
1152
1153  -nfp | --nfp | --nf)
1154    # Obsolete; use --without-fp.
1155    with_fp=no ;;
1156
1157  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1158  | --no-cr | --no-c | -n)
1159    no_create=yes ;;
1160
1161  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1162  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1163    no_recursion=yes ;;
1164
1165  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1166  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1167  | --oldin | --oldi | --old | --ol | --o)
1168    ac_prev=oldincludedir ;;
1169  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1170  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1171  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1172    oldincludedir=$ac_optarg ;;
1173
1174  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1175    ac_prev=prefix ;;
1176  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1177    prefix=$ac_optarg ;;
1178
1179  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1180  | --program-pre | --program-pr | --program-p)
1181    ac_prev=program_prefix ;;
1182  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1183  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1184    program_prefix=$ac_optarg ;;
1185
1186  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1187  | --program-suf | --program-su | --program-s)
1188    ac_prev=program_suffix ;;
1189  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1190  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1191    program_suffix=$ac_optarg ;;
1192
1193  -program-transform-name | --program-transform-name \
1194  | --program-transform-nam | --program-transform-na \
1195  | --program-transform-n | --program-transform- \
1196  | --program-transform | --program-transfor \
1197  | --program-transfo | --program-transf \
1198  | --program-trans | --program-tran \
1199  | --progr-tra | --program-tr | --program-t)
1200    ac_prev=program_transform_name ;;
1201  -program-transform-name=* | --program-transform-name=* \
1202  | --program-transform-nam=* | --program-transform-na=* \
1203  | --program-transform-n=* | --program-transform-=* \
1204  | --program-transform=* | --program-transfor=* \
1205  | --program-transfo=* | --program-transf=* \
1206  | --program-trans=* | --program-tran=* \
1207  | --progr-tra=* | --program-tr=* | --program-t=*)
1208    program_transform_name=$ac_optarg ;;
1209
1210  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1211    ac_prev=pdfdir ;;
1212  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1213    pdfdir=$ac_optarg ;;
1214
1215  -psdir | --psdir | --psdi | --psd | --ps)
1216    ac_prev=psdir ;;
1217  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1218    psdir=$ac_optarg ;;
1219
1220  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1221  | -silent | --silent | --silen | --sile | --sil)
1222    silent=yes ;;
1223
1224  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1225    ac_prev=sbindir ;;
1226  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1227  | --sbi=* | --sb=*)
1228    sbindir=$ac_optarg ;;
1229
1230  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1231  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1232  | --sharedst | --shareds | --shared | --share | --shar \
1233  | --sha | --sh)
1234    ac_prev=sharedstatedir ;;
1235  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1236  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1237  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1238  | --sha=* | --sh=*)
1239    sharedstatedir=$ac_optarg ;;
1240
1241  -site | --site | --sit)
1242    ac_prev=site ;;
1243  -site=* | --site=* | --sit=*)
1244    site=$ac_optarg ;;
1245
1246  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1247    ac_prev=srcdir ;;
1248  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1249    srcdir=$ac_optarg ;;
1250
1251  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1252  | --syscon | --sysco | --sysc | --sys | --sy)
1253    ac_prev=sysconfdir ;;
1254  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1255  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1256    sysconfdir=$ac_optarg ;;
1257
1258  -target | --target | --targe | --targ | --tar | --ta | --t)
1259    ac_prev=target_alias ;;
1260  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1261    target_alias=$ac_optarg ;;
1262
1263  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1264    verbose=yes ;;
1265
1266  -version | --version | --versio | --versi | --vers | -V)
1267    ac_init_version=: ;;
1268
1269  -with-* | --with-*)
1270    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1271    # Reject names that are not valid shell variable names.
1272    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1273      as_fn_error "invalid package name: $ac_useropt"
1274    ac_useropt_orig=$ac_useropt
1275    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1276    case $ac_user_opts in
1277      *"
1278"with_$ac_useropt"
1279"*) ;;
1280      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1281         ac_unrecognized_sep=', ';;
1282    esac
1283    eval with_$ac_useropt=\$ac_optarg ;;
1284
1285  -without-* | --without-*)
1286    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1287    # Reject names that are not valid shell variable names.
1288    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1289      as_fn_error "invalid package name: $ac_useropt"
1290    ac_useropt_orig=$ac_useropt
1291    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1292    case $ac_user_opts in
1293      *"
1294"with_$ac_useropt"
1295"*) ;;
1296      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1297         ac_unrecognized_sep=', ';;
1298    esac
1299    eval with_$ac_useropt=no ;;
1300
1301  --x)
1302    # Obsolete; use --with-x.
1303    with_x=yes ;;
1304
1305  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1306  | --x-incl | --x-inc | --x-in | --x-i)
1307    ac_prev=x_includes ;;
1308  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1309  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1310    x_includes=$ac_optarg ;;
1311
1312  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1313  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1314    ac_prev=x_libraries ;;
1315  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1316  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1317    x_libraries=$ac_optarg ;;
1318
1319  -*) as_fn_error "unrecognized option: \`$ac_option'
1320Try \`$0 --help' for more information."
1321    ;;
1322
1323  *=*)
1324    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1325    # Reject names that are not valid shell variable names.
1326    case $ac_envvar in #(
1327      '' | [0-9]* | *[!_$as_cr_alnum]* )
1328      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1329    esac
1330    eval $ac_envvar=\$ac_optarg
1331    export $ac_envvar ;;
1332
1333  *)
1334    # FIXME: should be removed in autoconf 3.0.
1335    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1336    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1337      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1338    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1339    ;;
1340
1341  esac
1342done
1343
1344if test -n "$ac_prev"; then
1345  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1346  as_fn_error "missing argument to $ac_option"
1347fi
1348
1349if test -n "$ac_unrecognized_opts"; then
1350  case $enable_option_checking in
1351    no) ;;
1352    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1353    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1354  esac
1355fi
1356
1357# Check all directory arguments for consistency.
1358for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1359                datadir sysconfdir sharedstatedir localstatedir includedir \
1360                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1361                libdir localedir mandir
1362do
1363  eval ac_val=\$$ac_var
1364  # Remove trailing slashes.
1365  case $ac_val in
1366    */ )
1367      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1368      eval $ac_var=\$ac_val;;
1369  esac
1370  # Be sure to have absolute directory names.
1371  case $ac_val in
1372    [\\/$]* | ?:[\\/]* )  continue;;
1373    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1374  esac
1375  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1376done
1377
1378# There might be people who depend on the old broken behavior: `$host'
1379# used to hold the argument of --host etc.
1380# FIXME: To remove some day.
1381build=$build_alias
1382host=$host_alias
1383target=$target_alias
1384
1385# FIXME: To remove some day.
1386if test "x$host_alias" != x; then
1387  if test "x$build_alias" = x; then
1388    cross_compiling=maybe
1389    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1390    If a cross compiler is detected then cross compile mode will be used." >&2
1391  elif test "x$build_alias" != "x$host_alias"; then
1392    cross_compiling=yes
1393  fi
1394fi
1395
1396ac_tool_prefix=
1397test -n "$host_alias" && ac_tool_prefix=$host_alias-
1398
1399test "$silent" = yes && exec 6>/dev/null
1400
1401
1402ac_pwd=`pwd` && test -n "$ac_pwd" &&
1403ac_ls_di=`ls -di .` &&
1404ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1405  as_fn_error "working directory cannot be determined"
1406test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1407  as_fn_error "pwd does not report name of working directory"
1408
1409
1410# Find the source files, if location was not specified.
1411if test -z "$srcdir"; then
1412  ac_srcdir_defaulted=yes
1413  # Try the directory containing this script, then the parent directory.
1414  ac_confdir=`$as_dirname -- "$as_myself" ||
1415$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1416         X"$as_myself" : 'X\(//\)[^/]' \| \
1417         X"$as_myself" : 'X\(//\)$' \| \
1418         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1419$as_echo X"$as_myself" |
1420    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1421            s//\1/
1422            q
1423          }
1424          /^X\(\/\/\)[^/].*/{
1425            s//\1/
1426            q
1427          }
1428          /^X\(\/\/\)$/{
1429            s//\1/
1430            q
1431          }
1432          /^X\(\/\).*/{
1433            s//\1/
1434            q
1435          }
1436          s/.*/./; q'`
1437  srcdir=$ac_confdir
1438  if test ! -r "$srcdir/$ac_unique_file"; then
1439    srcdir=..
1440  fi
1441else
1442  ac_srcdir_defaulted=no
1443fi
1444if test ! -r "$srcdir/$ac_unique_file"; then
1445  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1446  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1447fi
1448ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1449ac_abs_confdir=`(
1450        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1451        pwd)`
1452# When building in place, set srcdir=.
1453if test "$ac_abs_confdir" = "$ac_pwd"; then
1454  srcdir=.
1455fi
1456# Remove unnecessary trailing slashes from srcdir.
1457# Double slashes in file names in object file debugging info
1458# mess up M-x gdb in Emacs.
1459case $srcdir in
1460*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1461esac
1462for ac_var in $ac_precious_vars; do
1463  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1464  eval ac_env_${ac_var}_value=\$${ac_var}
1465  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1466  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1467done
1468
1469#
1470# Report the --help message.
1471#
1472if test "$ac_init_help" = "long"; then
1473  # Omit some internal or obsolete options to make the list less imposing.
1474  # This message is too long to be a string in the A/UX 3.1 sh.
1475  cat <<_ACEOF
1476\`configure' configures adolc 2.1.8-trunk to adapt to many kinds of systems.
1477
1478Usage: $0 [OPTION]... [VAR=VALUE]...
1479
1480To assign environment variables (e.g., CC, CFLAGS...), specify them as
1481VAR=VALUE.  See below for descriptions of some of the useful variables.
1482
1483Defaults for the options are specified in brackets.
1484
1485Configuration:
1486  -h, --help              display this help and exit
1487      --help=short        display options specific to this package
1488      --help=recursive    display the short help of all the included packages
1489  -V, --version           display version information and exit
1490  -q, --quiet, --silent   do not print \`checking...' messages
1491      --cache-file=FILE   cache test results in FILE [disabled]
1492  -C, --config-cache      alias for \`--cache-file=config.cache'
1493  -n, --no-create         do not create output files
1494      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1495
1496Installation directories:
1497  --prefix=PREFIX         install architecture-independent files in PREFIX
1498                          [$ac_default_prefix]
1499  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1500                          [PREFIX]
1501
1502By default, \`make install' will install all the files in
1503\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1504an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1505for instance \`--prefix=\$HOME'.
1506
1507For better control, use the options below.
1508
1509Fine tuning of the installation directories:
1510  --bindir=DIR            user executables [EPREFIX/bin]
1511  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1512  --libexecdir=DIR        program executables [EPREFIX/libexec]
1513  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1514  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1515  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1516  --libdir=DIR            object code libraries [EPREFIX/lib]
1517  --includedir=DIR        C header files [PREFIX/include]
1518  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1519  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1520  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1521  --infodir=DIR           info documentation [DATAROOTDIR/info]
1522  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1523  --mandir=DIR            man documentation [DATAROOTDIR/man]
1524  --docdir=DIR            documentation root [DATAROOTDIR/doc/adolc]
1525  --htmldir=DIR           html documentation [DOCDIR]
1526  --dvidir=DIR            dvi documentation [DOCDIR]
1527  --pdfdir=DIR            pdf documentation [DOCDIR]
1528  --psdir=DIR             ps documentation [DOCDIR]
1529_ACEOF
1530
1531  cat <<\_ACEOF
1532
1533Program names:
1534  --program-prefix=PREFIX            prepend PREFIX to installed program names
1535  --program-suffix=SUFFIX            append SUFFIX to installed program names
1536  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1537
1538System types:
1539  --build=BUILD     configure for building on BUILD [guessed]
1540  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1541_ACEOF
1542fi
1543
1544if test -n "$ac_init_help"; then
1545  case $ac_init_help in
1546     short | recursive ) echo "Configuration of adolc 2.1.8-trunk:";;
1547   esac
1548  cat <<\_ACEOF
1549
1550Optional Features:
1551  --disable-option-checking  ignore unrecognized --enable/--with options
1552  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1553  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1554  --disable-dependency-tracking  speeds up one-time build
1555  --enable-dependency-tracking   do not reject slow dependency extractors
1556  --enable-shared[=PKGS]  build shared libraries [default=yes]
1557  --enable-static[=PKGS]  build static libraries [default=yes]
1558  --enable-fast-install[=PKGS]
1559                          optimize for fast installation [default=yes]
1560  --disable-libtool-lock  avoid locking (might break parallel builds)
1561
1562  --enable-debug          enable ADOL-C debug mode [default=no]
1563
1564  --enable-harddebug      enable ADOL-C hard debug mode [default=no]
1565
1566  --enable-stdczero       adouble standard constructor zeros value (at the
1567                          cost of performance) [default=no]
1568
1569  --enable-tserrno        use errno as thread number cache [default=no]
1570
1571  --enable-safe-extern    backup all adoubles before calling an external
1572                          function [default=no]
1573
1574  --enable-sparse         build sparse drivers [default=disabled]
1575
1576  --enable-docexa         build documented examples [default=disabled]
1577  --enable-addexa         build additional examples [default=disabled]
1578  --enable-parexa         build parallel example [default=disabled], if
1579                          enabled -with-openmp-flag=FLAG required
1580  --enable-shave          use shave to make the build pretty [[default=yes]]
1581
1582Optional Packages:
1583  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1584  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1585  --with-pic              try to use only PIC/non-PIC objects [default=use
1586                          both]
1587  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1588
1589  --with-colpack          path to the colpack library and headers
1590                          [default=${PWD}/ThirdParty/ColPack]
1591  --with-openmp-flag=FLAG use FLAG to enable OpenMP at compile time
1592                          [default=none]
1593  --with-cflags=FLAGS     use CFLAGS=FLAGS (default: -O2)
1594  --with-cxxflags=FLAGS   use CXXFLAGS=FLAGS (default: -O2)
1595
1596Some influential environment variables:
1597  CXX         C++ compiler command
1598  CXXFLAGS    C++ compiler flags
1599  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1600              nonstandard directory <lib dir>
1601  LIBS        libraries to pass to the linker, e.g. -l<library>
1602  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1603              you have headers in a nonstandard directory <include dir>
1604  CC          C compiler command
1605  CFLAGS      C compiler flags
1606  CPP         C preprocessor
1607  CXXCPP      C++ preprocessor
1608
1609Use these variables to override the choices made by `configure' or to help
1610it to find libraries and programs with nonstandard names/locations.
1611
1612Report bugs to <adol-c@list.coin-or.org>.
1613_ACEOF
1614ac_status=$?
1615fi
1616
1617if test "$ac_init_help" = "recursive"; then
1618  # If there are subdirs, report their specific --help.
1619  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1620    test -d "$ac_dir" ||
1621      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1622      continue
1623    ac_builddir=.
1624
1625case "$ac_dir" in
1626.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1627*)
1628  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1629  # A ".." for each directory in $ac_dir_suffix.
1630  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1631  case $ac_top_builddir_sub in
1632  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1633  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1634  esac ;;
1635esac
1636ac_abs_top_builddir=$ac_pwd
1637ac_abs_builddir=$ac_pwd$ac_dir_suffix
1638# for backward compatibility:
1639ac_top_builddir=$ac_top_build_prefix
1640
1641case $srcdir in
1642  .)  # We are building in place.
1643    ac_srcdir=.
1644    ac_top_srcdir=$ac_top_builddir_sub
1645    ac_abs_top_srcdir=$ac_pwd ;;
1646  [\\/]* | ?:[\\/]* )  # Absolute name.
1647    ac_srcdir=$srcdir$ac_dir_suffix;
1648    ac_top_srcdir=$srcdir
1649    ac_abs_top_srcdir=$srcdir ;;
1650  *) # Relative name.
1651    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1652    ac_top_srcdir=$ac_top_build_prefix$srcdir
1653    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1654esac
1655ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1656
1657    cd "$ac_dir" || { ac_status=$?; continue; }
1658    # Check for guested configure.
1659    if test -f "$ac_srcdir/configure.gnu"; then
1660      echo &&
1661      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1662    elif test -f "$ac_srcdir/configure"; then
1663      echo &&
1664      $SHELL "$ac_srcdir/configure" --help=recursive
1665    else
1666      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1667    fi || ac_status=$?
1668    cd "$ac_pwd" || { ac_status=$?; break; }
1669  done
1670fi
1671
1672test -n "$ac_init_help" && exit $ac_status
1673if $ac_init_version; then
1674  cat <<\_ACEOF
1675adolc configure 2.1.8-trunk
1676generated by GNU Autoconf 2.65
1677
1678Copyright (C) 2009 Free Software Foundation, Inc.
1679This configure script is free software; the Free Software Foundation
1680gives unlimited permission to copy, distribute and modify it.
1681_ACEOF
1682  exit
1683fi
1684
1685## ------------------------ ##
1686## Autoconf initialization. ##
1687## ------------------------ ##
1688
1689# ac_fn_cxx_try_compile LINENO
1690# ----------------------------
1691# Try to compile conftest.$ac_ext, and return whether this succeeded.
1692ac_fn_cxx_try_compile ()
1693{
1694  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695  rm -f conftest.$ac_objext
1696  if { { ac_try="$ac_compile"
1697case "(($ac_try" in
1698  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699  *) ac_try_echo=$ac_try;;
1700esac
1701eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702$as_echo "$ac_try_echo"; } >&5
1703  (eval "$ac_compile") 2>conftest.err
1704  ac_status=$?
1705  if test -s conftest.err; then
1706    grep -v '^ *+' conftest.err >conftest.er1
1707    cat conftest.er1 >&5
1708    mv -f conftest.er1 conftest.err
1709  fi
1710  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711  test $ac_status = 0; } && {
1712         test -z "$ac_cxx_werror_flag" ||
1713         test ! -s conftest.err
1714       } && test -s conftest.$ac_objext; then :
1715  ac_retval=0
1716else
1717  $as_echo "$as_me: failed program was:" >&5
1718sed 's/^/| /' conftest.$ac_ext >&5
1719
1720        ac_retval=1
1721fi
1722  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1723  as_fn_set_status $ac_retval
1724
1725} # ac_fn_cxx_try_compile
1726
1727# ac_fn_c_try_compile LINENO
1728# --------------------------
1729# Try to compile conftest.$ac_ext, and return whether this succeeded.
1730ac_fn_c_try_compile ()
1731{
1732  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733  rm -f conftest.$ac_objext
1734  if { { ac_try="$ac_compile"
1735case "(($ac_try" in
1736  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1737  *) ac_try_echo=$ac_try;;
1738esac
1739eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1740$as_echo "$ac_try_echo"; } >&5
1741  (eval "$ac_compile") 2>conftest.err
1742  ac_status=$?
1743  if test -s conftest.err; then
1744    grep -v '^ *+' conftest.err >conftest.er1
1745    cat conftest.er1 >&5
1746    mv -f conftest.er1 conftest.err
1747  fi
1748  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1749  test $ac_status = 0; } && {
1750         test -z "$ac_c_werror_flag" ||
1751         test ! -s conftest.err
1752       } && test -s conftest.$ac_objext; then :
1753  ac_retval=0
1754else
1755  $as_echo "$as_me: failed program was:" >&5
1756sed 's/^/| /' conftest.$ac_ext >&5
1757
1758        ac_retval=1
1759fi
1760  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1761  as_fn_set_status $ac_retval
1762
1763} # ac_fn_c_try_compile
1764
1765# ac_fn_c_try_cpp LINENO
1766# ----------------------
1767# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1768ac_fn_c_try_cpp ()
1769{
1770  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771  if { { ac_try="$ac_cpp conftest.$ac_ext"
1772case "(($ac_try" in
1773  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1774  *) ac_try_echo=$ac_try;;
1775esac
1776eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1777$as_echo "$ac_try_echo"; } >&5
1778  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1779  ac_status=$?
1780  if test -s conftest.err; then
1781    grep -v '^ *+' conftest.err >conftest.er1
1782    cat conftest.er1 >&5
1783    mv -f conftest.er1 conftest.err
1784  fi
1785  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1786  test $ac_status = 0; } >/dev/null && {
1787         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1788         test ! -s conftest.err
1789       }; then :
1790  ac_retval=0
1791else
1792  $as_echo "$as_me: failed program was:" >&5
1793sed 's/^/| /' conftest.$ac_ext >&5
1794
1795    ac_retval=1
1796fi
1797  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1798  as_fn_set_status $ac_retval
1799
1800} # ac_fn_c_try_cpp
1801
1802# ac_fn_c_try_link LINENO
1803# -----------------------
1804# Try to link conftest.$ac_ext, and return whether this succeeded.
1805ac_fn_c_try_link ()
1806{
1807  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808  rm -f conftest.$ac_objext conftest$ac_exeext
1809  if { { ac_try="$ac_link"
1810case "(($ac_try" in
1811  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1812  *) ac_try_echo=$ac_try;;
1813esac
1814eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1815$as_echo "$ac_try_echo"; } >&5
1816  (eval "$ac_link") 2>conftest.err
1817  ac_status=$?
1818  if test -s conftest.err; then
1819    grep -v '^ *+' conftest.err >conftest.er1
1820    cat conftest.er1 >&5
1821    mv -f conftest.er1 conftest.err
1822  fi
1823  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1824  test $ac_status = 0; } && {
1825         test -z "$ac_c_werror_flag" ||
1826         test ! -s conftest.err
1827       } && test -s conftest$ac_exeext && {
1828         test "$cross_compiling" = yes ||
1829         $as_test_x conftest$ac_exeext
1830       }; then :
1831  ac_retval=0
1832else
1833  $as_echo "$as_me: failed program was:" >&5
1834sed 's/^/| /' conftest.$ac_ext >&5
1835
1836        ac_retval=1
1837fi
1838  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1839  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1840  # interfere with the next link command; also delete a directory that is
1841  # left behind by Apple's compiler.  We do this before executing the actions.
1842  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1843  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1844  as_fn_set_status $ac_retval
1845
1846} # ac_fn_c_try_link
1847
1848# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1849# -------------------------------------------------------
1850# Tests whether HEADER exists and can be compiled using the include files in
1851# INCLUDES, setting the cache variable VAR accordingly.
1852ac_fn_c_check_header_compile ()
1853{
1854  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1855  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1856$as_echo_n "checking for $2... " >&6; }
1857if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1858  $as_echo_n "(cached) " >&6
1859else
1860  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1861/* end confdefs.h.  */
1862$4
1863#include <$2>
1864_ACEOF
1865if ac_fn_c_try_compile "$LINENO"; then :
1866  eval "$3=yes"
1867else
1868  eval "$3=no"
1869fi
1870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1871fi
1872eval ac_res=\$$3
1873               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1874$as_echo "$ac_res" >&6; }
1875  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1876
1877} # ac_fn_c_check_header_compile
1878
1879# ac_fn_c_try_run LINENO
1880# ----------------------
1881# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1882# that executables *can* be run.
1883ac_fn_c_try_run ()
1884{
1885  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886  if { { ac_try="$ac_link"
1887case "(($ac_try" in
1888  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1889  *) ac_try_echo=$ac_try;;
1890esac
1891eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1892$as_echo "$ac_try_echo"; } >&5
1893  (eval "$ac_link") 2>&5
1894  ac_status=$?
1895  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1896  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1897  { { case "(($ac_try" in
1898  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1899  *) ac_try_echo=$ac_try;;
1900esac
1901eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1902$as_echo "$ac_try_echo"; } >&5
1903  (eval "$ac_try") 2>&5
1904  ac_status=$?
1905  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1906  test $ac_status = 0; }; }; then :
1907  ac_retval=0
1908else
1909  $as_echo "$as_me: program exited with status $ac_status" >&5
1910       $as_echo "$as_me: failed program was:" >&5
1911sed 's/^/| /' conftest.$ac_ext >&5
1912
1913       ac_retval=$ac_status
1914fi
1915  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1916  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1917  as_fn_set_status $ac_retval
1918
1919} # ac_fn_c_try_run
1920
1921# ac_fn_c_check_func LINENO FUNC VAR
1922# ----------------------------------
1923# Tests whether FUNC exists, setting the cache variable VAR accordingly
1924ac_fn_c_check_func ()
1925{
1926  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1928$as_echo_n "checking for $2... " >&6; }
1929if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1930  $as_echo_n "(cached) " >&6
1931else
1932  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1933/* end confdefs.h.  */
1934/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1935   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1936#define $2 innocuous_$2
1937
1938/* System header to define __stub macros and hopefully few prototypes,
1939    which can conflict with char $2 (); below.
1940    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1941    <limits.h> exists even on freestanding compilers.  */
1942
1943#ifdef __STDC__
1944# include <limits.h>
1945#else
1946# include <assert.h>
1947#endif
1948
1949#undef $2
1950
1951/* Override any GCC internal prototype to avoid an error.
1952   Use char because int might match the return type of a GCC
1953   builtin and then its argument prototype would still apply.  */
1954#ifdef __cplusplus
1955extern "C"
1956#endif
1957char $2 ();
1958/* The GNU C library defines this for functions which it implements
1959    to always fail with ENOSYS.  Some functions are actually named
1960    something starting with __ and the normal name is an alias.  */
1961#if defined __stub_$2 || defined __stub___$2
1962choke me
1963#endif
1964
1965int
1966main ()
1967{
1968return $2 ();
1969  ;
1970  return 0;
1971}
1972_ACEOF
1973if ac_fn_c_try_link "$LINENO"; then :
1974  eval "$3=yes"
1975else
1976  eval "$3=no"
1977fi
1978rm -f core conftest.err conftest.$ac_objext \
1979    conftest$ac_exeext conftest.$ac_ext
1980fi
1981eval ac_res=\$$3
1982               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1983$as_echo "$ac_res" >&6; }
1984  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1985
1986} # ac_fn_c_check_func
1987
1988# ac_fn_cxx_try_cpp LINENO
1989# ------------------------
1990# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1991ac_fn_cxx_try_cpp ()
1992{
1993  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1994  if { { ac_try="$ac_cpp conftest.$ac_ext"
1995case "(($ac_try" in
1996  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1997  *) ac_try_echo=$ac_try;;
1998esac
1999eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2000$as_echo "$ac_try_echo"; } >&5
2001  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2002  ac_status=$?
2003  if test -s conftest.err; then
2004    grep -v '^ *+' conftest.err >conftest.er1
2005    cat conftest.er1 >&5
2006    mv -f conftest.er1 conftest.err
2007  fi
2008  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2009  test $ac_status = 0; } >/dev/null && {
2010         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2011         test ! -s conftest.err
2012       }; then :
2013  ac_retval=0
2014else
2015  $as_echo "$as_me: failed program was:" >&5
2016sed 's/^/| /' conftest.$ac_ext >&5
2017
2018    ac_retval=1
2019fi
2020  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2021  as_fn_set_status $ac_retval
2022
2023} # ac_fn_cxx_try_cpp
2024
2025# ac_fn_cxx_try_link LINENO
2026# -------------------------
2027# Try to link conftest.$ac_ext, and return whether this succeeded.
2028ac_fn_cxx_try_link ()
2029{
2030  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2031  rm -f conftest.$ac_objext conftest$ac_exeext
2032  if { { ac_try="$ac_link"
2033case "(($ac_try" in
2034  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2035  *) ac_try_echo=$ac_try;;
2036esac
2037eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2038$as_echo "$ac_try_echo"; } >&5
2039  (eval "$ac_link") 2>conftest.err
2040  ac_status=$?
2041  if test -s conftest.err; then
2042    grep -v '^ *+' conftest.err >conftest.er1
2043    cat conftest.er1 >&5
2044    mv -f conftest.er1 conftest.err
2045  fi
2046  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2047  test $ac_status = 0; } && {
2048         test -z "$ac_cxx_werror_flag" ||
2049         test ! -s conftest.err
2050       } && test -s conftest$ac_exeext && {
2051         test "$cross_compiling" = yes ||
2052         $as_test_x conftest$ac_exeext
2053       }; then :
2054  ac_retval=0
2055else
2056  $as_echo "$as_me: failed program was:" >&5
2057sed 's/^/| /' conftest.$ac_ext >&5
2058
2059        ac_retval=1
2060fi
2061  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2062  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2063  # interfere with the next link command; also delete a directory that is
2064  # left behind by Apple's compiler.  We do this before executing the actions.
2065  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2066  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2067  as_fn_set_status $ac_retval
2068
2069} # ac_fn_cxx_try_link
2070
2071# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2072# --------------------------------------------
2073# Tries to find the compile-time value of EXPR in a program that includes
2074# INCLUDES, setting VAR accordingly. Returns whether the value could be
2075# computed
2076ac_fn_c_compute_int ()
2077{
2078  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2079  if test "$cross_compiling" = yes; then
2080    # Depending upon the size, compute the lo and hi bounds.
2081cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2082/* end confdefs.h.  */
2083$4
2084int
2085main ()
2086{
2087static int test_array [1 - 2 * !(($2) >= 0)];
2088test_array [0] = 0
2089
2090  ;
2091  return 0;
2092}
2093_ACEOF
2094if ac_fn_c_try_compile "$LINENO"; then :
2095  ac_lo=0 ac_mid=0
2096  while :; do
2097    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2098/* end confdefs.h.  */
2099$4
2100int
2101main ()
2102{
2103static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2104test_array [0] = 0
2105
2106  ;
2107  return 0;
2108}
2109_ACEOF
2110if ac_fn_c_try_compile "$LINENO"; then :
2111  ac_hi=$ac_mid; break
2112else
2113  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2114                        if test $ac_lo -le $ac_mid; then
2115                          ac_lo= ac_hi=
2116                          break
2117                        fi
2118                        as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2119fi
2120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2121  done
2122else
2123  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2124/* end confdefs.h.  */
2125$4
2126int
2127main ()
2128{
2129static int test_array [1 - 2 * !(($2) < 0)];
2130test_array [0] = 0
2131
2132  ;
2133  return 0;
2134}
2135_ACEOF
2136if ac_fn_c_try_compile "$LINENO"; then :
2137  ac_hi=-1 ac_mid=-1
2138  while :; do
2139    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2140/* end confdefs.h.  */
2141$4
2142int
2143main ()
2144{
2145static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2146test_array [0] = 0
2147
2148  ;
2149  return 0;
2150}
2151_ACEOF
2152if ac_fn_c_try_compile "$LINENO"; then :
2153  ac_lo=$ac_mid; break
2154else
2155  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2156                        if test $ac_mid -le $ac_hi; then
2157                          ac_lo= ac_hi=
2158                          break
2159                        fi
2160                        as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2161fi
2162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2163  done
2164else
2165  ac_lo= ac_hi=
2166fi
2167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2168fi
2169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2170# Binary search between lo and hi bounds.
2171while test "x$ac_lo" != "x$ac_hi"; do
2172  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2173  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2174/* end confdefs.h.  */
2175$4
2176int
2177main ()
2178{
2179static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2180test_array [0] = 0
2181
2182  ;
2183  return 0;
2184}
2185_ACEOF
2186if ac_fn_c_try_compile "$LINENO"; then :
2187  ac_hi=$ac_mid
2188else
2189  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2190fi
2191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2192done
2193case $ac_lo in #((
2194?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2195'') ac_retval=1 ;;
2196esac
2197  else
2198    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2199/* end confdefs.h.  */
2200$4
2201static long int longval () { return $2; }
2202static unsigned long int ulongval () { return $2; }
2203#include <stdio.h>
2204#include <stdlib.h>
2205int
2206main ()
2207{
2208
2209  FILE *f = fopen ("conftest.val", "w");
2210  if (! f)
2211    return 1;
2212  if (($2) < 0)
2213    {
2214      long int i = longval ();
2215      if (i != ($2))
2216        return 1;
2217      fprintf (f, "%ld", i);
2218    }
2219  else
2220    {
2221      unsigned long int i = ulongval ();
2222      if (i != ($2))
2223        return 1;
2224      fprintf (f, "%lu", i);
2225    }
2226  /* Do not output a trailing newline, as this causes \r\n confusion
2227     on some platforms.  */
2228  return ferror (f) || fclose (f) != 0;
2229
2230  ;
2231  return 0;
2232}
2233_ACEOF
2234if ac_fn_c_try_run "$LINENO"; then :
2235  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2236else
2237  ac_retval=1
2238fi
2239rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2240  conftest.$ac_objext conftest.beam conftest.$ac_ext
2241rm -f conftest.val
2242
2243  fi
2244  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2245  as_fn_set_status $ac_retval
2246
2247} # ac_fn_c_compute_int
2248
2249# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2250# -------------------------------------------
2251# Tests whether TYPE exists after having included INCLUDES, setting cache
2252# variable VAR accordingly.
2253ac_fn_c_check_type ()
2254{
2255  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2256  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2257$as_echo_n "checking for $2... " >&6; }
2258if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2259  $as_echo_n "(cached) " >&6
2260else
2261  eval "$3=no"
2262  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2263/* end confdefs.h.  */
2264$4
2265int
2266main ()
2267{
2268if (sizeof ($2))
2269         return 0;
2270  ;
2271  return 0;
2272}
2273_ACEOF
2274if ac_fn_c_try_compile "$LINENO"; then :
2275  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2276/* end confdefs.h.  */
2277$4
2278int
2279main ()
2280{
2281if (sizeof (($2)))
2282            return 0;
2283  ;
2284  return 0;
2285}
2286_ACEOF
2287if ac_fn_c_try_compile "$LINENO"; then :
2288
2289else
2290  eval "$3=yes"
2291fi
2292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2293fi
2294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2295fi
2296eval ac_res=\$$3
2297               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2298$as_echo "$ac_res" >&6; }
2299  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2300
2301} # ac_fn_c_check_type
2302
2303# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2304# -------------------------------------------------------
2305# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2306# the include files in INCLUDES and setting the cache variable VAR
2307# accordingly.
2308ac_fn_c_check_header_mongrel ()
2309{
2310  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2311  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2312  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2313$as_echo_n "checking for $2... " >&6; }
2314if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2315  $as_echo_n "(cached) " >&6
2316fi
2317eval ac_res=\$$3
2318               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2319$as_echo "$ac_res" >&6; }
2320else
2321  # Is the header compilable?
2322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2323$as_echo_n "checking $2 usability... " >&6; }
2324cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2325/* end confdefs.h.  */
2326$4
2327#include <$2>
2328_ACEOF
2329if ac_fn_c_try_compile "$LINENO"; then :
2330  ac_header_compiler=yes
2331else
2332  ac_header_compiler=no
2333fi
2334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2336$as_echo "$ac_header_compiler" >&6; }
2337
2338# Is the header present?
2339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2340$as_echo_n "checking $2 presence... " >&6; }
2341cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2342/* end confdefs.h.  */
2343#include <$2>
2344_ACEOF
2345if ac_fn_c_try_cpp "$LINENO"; then :
2346  ac_header_preproc=yes
2347else
2348  ac_header_preproc=no
2349fi
2350rm -f conftest.err conftest.$ac_ext
2351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2352$as_echo "$ac_header_preproc" >&6; }
2353
2354# So?  What about this header?
2355case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2356  yes:no: )
2357    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2358$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2359    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2360$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2361    ;;
2362  no:yes:* )
2363    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2364$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2365    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2366$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2367    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2368$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2369    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2370$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2371    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2372$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2373( cat <<\_ASBOX
2374## -------------------------------------- ##
2375## Report this to adol-c@list.coin-or.org ##
2376## -------------------------------------- ##
2377_ASBOX
2378     ) | sed "s/^/$as_me: WARNING:     /" >&2
2379    ;;
2380esac
2381  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2382$as_echo_n "checking for $2... " >&6; }
2383if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2384  $as_echo_n "(cached) " >&6
2385else
2386  eval "$3=\$ac_header_compiler"
2387fi
2388eval ac_res=\$$3
2389               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2390$as_echo "$ac_res" >&6; }
2391fi
2392  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2393
2394} # ac_fn_c_check_header_mongrel
2395cat >config.log <<_ACEOF
2396This file contains any messages produced by compilers while
2397running configure, to aid debugging if configure makes a mistake.
2398
2399It was created by adolc $as_me 2.1.8-trunk, which was
2400generated by GNU Autoconf 2.65.  Invocation command line was
2401
2402  $ $0 $@
2403
2404_ACEOF
2405exec 5>>config.log
2406{
2407cat <<_ASUNAME
2408## --------- ##
2409## Platform. ##
2410## --------- ##
2411
2412hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2413uname -m = `(uname -m) 2>/dev/null || echo unknown`
2414uname -r = `(uname -r) 2>/dev/null || echo unknown`
2415uname -s = `(uname -s) 2>/dev/null || echo unknown`
2416uname -v = `(uname -v) 2>/dev/null || echo unknown`
2417
2418/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2419/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2420
2421/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2422/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2423/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2424/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2425/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2426/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2427/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2428
2429_ASUNAME
2430
2431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2432for as_dir in $PATH
2433do
2434  IFS=$as_save_IFS
2435  test -z "$as_dir" && as_dir=.
2436    $as_echo "PATH: $as_dir"
2437  done
2438IFS=$as_save_IFS
2439
2440} >&5
2441
2442cat >&5 <<_ACEOF
2443
2444
2445## ----------- ##
2446## Core tests. ##
2447## ----------- ##
2448
2449_ACEOF
2450
2451
2452# Keep a trace of the command line.
2453# Strip out --no-create and --no-recursion so they do not pile up.
2454# Strip out --silent because we don't want to record it for future runs.
2455# Also quote any args containing shell meta-characters.
2456# Make two passes to allow for proper duplicate-argument suppression.
2457ac_configure_args=
2458ac_configure_args0=
2459ac_configure_args1=
2460ac_must_keep_next=false
2461for ac_pass in 1 2
2462do
2463  for ac_arg
2464  do
2465    case $ac_arg in
2466    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2467    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2468    | -silent | --silent | --silen | --sile | --sil)
2469      continue ;;
2470    *\'*)
2471      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2472    esac
2473    case $ac_pass in
2474    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2475    2)
2476      as_fn_append ac_configure_args1 " '$ac_arg'"
2477      if test $ac_must_keep_next = true; then
2478        ac_must_keep_next=false # Got value, back to normal.
2479      else
2480        case $ac_arg in
2481          *=* | --config-cache | -C | -disable-* | --disable-* \
2482          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2483          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2484          | -with-* | --with-* | -without-* | --without-* | --x)
2485            case "$ac_configure_args0 " in
2486              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2487            esac
2488            ;;
2489          -* ) ac_must_keep_next=true ;;
2490        esac
2491      fi
2492      as_fn_append ac_configure_args " '$ac_arg'"
2493      ;;
2494    esac
2495  done
2496done
2497{ ac_configure_args0=; unset ac_configure_args0;}
2498{ ac_configure_args1=; unset ac_configure_args1;}
2499
2500# When interrupted or exit'd, cleanup temporary files, and complete
2501# config.log.  We remove comments because anyway the quotes in there
2502# would cause problems or look ugly.
2503# WARNING: Use '\'' to represent an apostrophe within the trap.
2504# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2505trap 'exit_status=$?
2506  # Save into config.log some information that might help in debugging.
2507  {
2508    echo
2509
2510    cat <<\_ASBOX
2511## ---------------- ##
2512## Cache variables. ##
2513## ---------------- ##
2514_ASBOX
2515    echo
2516    # The following way of writing the cache mishandles newlines in values,
2517(
2518  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2519    eval ac_val=\$$ac_var
2520    case $ac_val in #(
2521    *${as_nl}*)
2522      case $ac_var in #(
2523      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2524$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2525      esac
2526      case $ac_var in #(
2527      _ | IFS | as_nl) ;; #(
2528      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2529      *) { eval $ac_var=; unset $ac_var;} ;;
2530      esac ;;
2531    esac
2532  done
2533  (set) 2>&1 |
2534    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2535    *${as_nl}ac_space=\ *)
2536      sed -n \
2537        "s/'\''/'\''\\\\'\'''\''/g;
2538          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2539      ;; #(
2540    *)
2541      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2542      ;;
2543    esac |
2544    sort
2545)
2546    echo
2547
2548    cat <<\_ASBOX
2549## ----------------- ##
2550## Output variables. ##
2551## ----------------- ##
2552_ASBOX
2553    echo
2554    for ac_var in $ac_subst_vars
2555    do
2556      eval ac_val=\$$ac_var
2557      case $ac_val in
2558      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2559      esac
2560      $as_echo "$ac_var='\''$ac_val'\''"
2561    done | sort
2562    echo
2563
2564    if test -n "$ac_subst_files"; then
2565      cat <<\_ASBOX
2566## ------------------- ##
2567## File substitutions. ##
2568## ------------------- ##
2569_ASBOX
2570      echo
2571      for ac_var in $ac_subst_files
2572      do
2573        eval ac_val=\$$ac_var
2574        case $ac_val in
2575        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2576        esac
2577        $as_echo "$ac_var='\''$ac_val'\''"
2578      done | sort
2579      echo
2580    fi
2581
2582    if test -s confdefs.h; then
2583      cat <<\_ASBOX
2584## ----------- ##
2585## confdefs.h. ##
2586## ----------- ##
2587_ASBOX
2588      echo
2589      cat confdefs.h
2590      echo
2591    fi
2592    test "$ac_signal" != 0 &&
2593      $as_echo "$as_me: caught signal $ac_signal"
2594    $as_echo "$as_me: exit $exit_status"
2595  } >&5
2596  rm -f core *.core core.conftest.* &&
2597    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2598    exit $exit_status
2599' 0
2600for ac_signal in 1 2 13 15; do
2601  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2602done
2603ac_signal=0
2604
2605# confdefs.h avoids OS command line length limits that DEFS can exceed.
2606rm -f -r conftest* confdefs.h
2607
2608$as_echo "/* confdefs.h */" > confdefs.h
2609
2610# Predefined preprocessor variables.
2611
2612cat >>confdefs.h <<_ACEOF
2613#define PACKAGE_NAME "$PACKAGE_NAME"
2614_ACEOF
2615
2616cat >>confdefs.h <<_ACEOF
2617#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2618_ACEOF
2619
2620cat >>confdefs.h <<_ACEOF
2621#define PACKAGE_VERSION "$PACKAGE_VERSION"
2622_ACEOF
2623
2624cat >>confdefs.h <<_ACEOF
2625#define PACKAGE_STRING "$PACKAGE_STRING"
2626_ACEOF
2627
2628cat >>confdefs.h <<_ACEOF
2629#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2630_ACEOF
2631
2632cat >>confdefs.h <<_ACEOF
2633#define PACKAGE_URL "$PACKAGE_URL"
2634_ACEOF
2635
2636
2637# Let the site file select an alternate cache file if it wants to.
2638# Prefer an explicitly selected file to automatically selected ones.
2639ac_site_file1=NONE
2640ac_site_file2=NONE
2641if test -n "$CONFIG_SITE"; then
2642  ac_site_file1=$CONFIG_SITE
2643elif test "x$prefix" != xNONE; then
2644  ac_site_file1=$prefix/share/config.site
2645  ac_site_file2=$prefix/etc/config.site
2646else
2647  ac_site_file1=$ac_default_prefix/share/config.site
2648  ac_site_file2=$ac_default_prefix/etc/config.site
2649fi
2650for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2651do
2652  test "x$ac_site_file" = xNONE && continue
2653  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2654    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2655$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2656    sed 's/^/| /' "$ac_site_file" >&5
2657    . "$ac_site_file"
2658  fi
2659done
2660
2661if test -r "$cache_file"; then
2662  # Some versions of bash will fail to source /dev/null (special files
2663  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2664  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2665    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2666$as_echo "$as_me: loading cache $cache_file" >&6;}
2667    case $cache_file in
2668      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2669      *)                      . "./$cache_file";;
2670    esac
2671  fi
2672else
2673  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2674$as_echo "$as_me: creating cache $cache_file" >&6;}
2675  >$cache_file
2676fi
2677
2678# Check that the precious variables saved in the cache have kept the same
2679# value.
2680ac_cache_corrupted=false
2681for ac_var in $ac_precious_vars; do
2682  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2683  eval ac_new_set=\$ac_env_${ac_var}_set
2684  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2685  eval ac_new_val=\$ac_env_${ac_var}_value
2686  case $ac_old_set,$ac_new_set in
2687    set,)
2688      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2689$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2690      ac_cache_corrupted=: ;;
2691    ,set)
2692      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2693$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2694      ac_cache_corrupted=: ;;
2695    ,);;
2696    *)
2697      if test "x$ac_old_val" != "x$ac_new_val"; then
2698        # differences in whitespace do not lead to failure.
2699        ac_old_val_w=`echo x $ac_old_val`
2700        ac_new_val_w=`echo x $ac_new_val`
2701        if test "$ac_old_val_w" != "$ac_new_val_w"; then
2702          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2703$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2704          ac_cache_corrupted=:
2705        else
2706          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2707$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2708          eval $ac_var=\$ac_old_val
2709        fi
2710        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2711$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2712        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2713$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2714      fi;;
2715  esac
2716  # Pass precious variables to config.status.
2717  if test "$ac_new_set" = set; then
2718    case $ac_new_val in
2719    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2720    *) ac_arg=$ac_var=$ac_new_val ;;
2721    esac
2722    case " $ac_configure_args " in
2723      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2724      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2725    esac
2726  fi
2727done
2728if $ac_cache_corrupted; then
2729  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2730$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2731  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2732$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2733  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2734fi
2735## -------------------- ##
2736## Main body of script. ##
2737## -------------------- ##
2738
2739ac_ext=c
2740ac_cpp='$CPP $CPPFLAGS'
2741ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2742ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2743ac_compiler_gnu=$ac_cv_c_compiler_gnu
2744
2745
2746
2747
2748ac_aux_dir=
2749for ac_dir in autoconf "$srcdir"/autoconf; do
2750  for ac_t in install-sh install.sh shtool; do
2751    if test -f "$ac_dir/$ac_t"; then
2752      ac_aux_dir=$ac_dir
2753      ac_install_sh="$ac_aux_dir/$ac_t -c"
2754      break 2
2755    fi
2756  done
2757done
2758if test -z "$ac_aux_dir"; then
2759  as_fn_error "cannot find install-sh, install.sh, or shtool in autoconf \"$srcdir\"/autoconf" "$LINENO" 5
2760fi
2761
2762# These three variables are undocumented and unsupported,
2763# and are intended to be withdrawn in a future Autoconf release.
2764# They can cause serious problems if a builder's source tree is in a directory
2765# whose full name contains unusual characters.
2766ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2767ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2768ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2769
2770
2771ac_config_headers="$ac_config_headers ADOL-C/src/config.h"
2772
2773
2774am__api_version='1.11'
2775
2776# Find a good install program.  We prefer a C program (faster),
2777# so one script is as good as another.  But avoid the broken or
2778# incompatible versions:
2779# SysV /etc/install, /usr/sbin/install
2780# SunOS /usr/etc/install
2781# IRIX /sbin/install
2782# AIX /bin/install
2783# AmigaOS /C/install, which installs bootblocks on floppy discs
2784# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2785# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2786# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2787# OS/2's system install, which has a completely different semantic
2788# ./install, which can be erroneously created by make from ./install.sh.
2789# Reject install programs that cannot install multiple files.
2790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2791$as_echo_n "checking for a BSD-compatible install... " >&6; }
2792if test -z "$INSTALL"; then
2793if test "${ac_cv_path_install+set}" = set; then :
2794  $as_echo_n "(cached) " >&6
2795else
2796  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2797for as_dir in $PATH
2798do
2799  IFS=$as_save_IFS
2800  test -z "$as_dir" && as_dir=.
2801    # Account for people who put trailing slashes in PATH elements.
2802case $as_dir/ in #((
2803  ./ | .// | /[cC]/* | \
2804  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2805  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2806  /usr/ucb/* ) ;;
2807  *)
2808    # OSF1 and SCO ODT 3.0 have their own names for install.
2809    # Don't use installbsd from OSF since it installs stuff as root
2810    # by default.
2811    for ac_prog in ginstall scoinst install; do
2812      for ac_exec_ext in '' $ac_executable_extensions; do
2813        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2814          if test $ac_prog = install &&
2815            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2816            # AIX install.  It has an incompatible calling convention.
2817            :
2818          elif test $ac_prog = install &&
2819            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2820            # program-specific install script used by HP pwplus--don't use.
2821            :
2822          else
2823            rm -rf conftest.one conftest.two conftest.dir
2824            echo one > conftest.one
2825            echo two > conftest.two
2826            mkdir conftest.dir
2827            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2828              test -s conftest.one && test -s conftest.two &&
2829              test -s conftest.dir/conftest.one &&
2830              test -s conftest.dir/conftest.two
2831            then
2832              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2833              break 3
2834            fi
2835          fi
2836        fi
2837      done
2838    done
2839    ;;
2840esac
2841
2842  done
2843IFS=$as_save_IFS
2844
2845rm -rf conftest.one conftest.two conftest.dir
2846
2847fi
2848  if test "${ac_cv_path_install+set}" = set; then
2849    INSTALL=$ac_cv_path_install
2850  else
2851    # As a last resort, use the slow shell script.  Don't cache a
2852    # value for INSTALL within a source directory, because that will
2853    # break other packages using the cache if that directory is
2854    # removed, or if the value is a relative name.
2855    INSTALL=$ac_install_sh
2856  fi
2857fi
2858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2859$as_echo "$INSTALL" >&6; }
2860
2861# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2862# It thinks the first close brace ends the variable substitution.
2863test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2864
2865test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2866
2867test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2868
2869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2870$as_echo_n "checking whether build environment is sane... " >&6; }
2871# Just in case
2872sleep 1
2873echo timestamp > conftest.file
2874# Reject unsafe characters in $srcdir or the absolute working directory
2875# name.  Accept space and tab only in the latter.
2876am_lf='
2877'
2878case `pwd` in
2879  *[\\\"\#\$\&\'\`$am_lf]*)
2880    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2881esac
2882case $srcdir in
2883  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2884    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2885esac
2886
2887# Do `set' in a subshell so we don't clobber the current shell's
2888# arguments.  Must try -L first in case configure is actually a
2889# symlink; some systems play weird games with the mod time of symlinks
2890# (eg FreeBSD returns the mod time of the symlink's containing
2891# directory).
2892if (
2893   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2894   if test "$*" = "X"; then
2895      # -L didn't work.
2896      set X `ls -t "$srcdir/configure" conftest.file`
2897   fi
2898   rm -f conftest.file
2899   if test "$*" != "X $srcdir/configure conftest.file" \
2900      && test "$*" != "X conftest.file $srcdir/configure"; then
2901
2902      # If neither matched, then we have a broken ls.  This can happen
2903      # if, for instance, CONFIG_SHELL is bash and it inherits a
2904      # broken ls alias from the environment.  This has actually
2905      # happened.  Such a system could not be considered "sane".
2906      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2907alias in your environment" "$LINENO" 5
2908   fi
2909
2910   test "$2" = conftest.file
2911   )
2912then
2913   # Ok.
2914   :
2915else
2916   as_fn_error "newly created file is older than distributed files!
2917Check your system clock" "$LINENO" 5
2918fi
2919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2920$as_echo "yes" >&6; }
2921test "$program_prefix" != NONE &&
2922  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2923# Use a double $ so make ignores it.
2924test "$program_suffix" != NONE &&
2925  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2926# Double any \ or $.
2927# By default was `s,x,x', remove it if useless.
2928ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2929program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2930
2931# expand $ac_aux_dir to an absolute path
2932am_aux_dir=`cd $ac_aux_dir && pwd`
2933
2934if test x"${MISSING+set}" != xset; then
2935  case $am_aux_dir in
2936  *\ * | *\     *)
2937    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2938  *)
2939    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2940  esac
2941fi
2942# Use eval to expand $SHELL
2943if eval "$MISSING --run true"; then
2944  am_missing_run="$MISSING --run "
2945else
2946  am_missing_run=
2947  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2948$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2949fi
2950
2951if test x"${install_sh}" != xset; then
2952  case $am_aux_dir in
2953  *\ * | *\     *)
2954    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2955  *)
2956    install_sh="\${SHELL} $am_aux_dir/install-sh"
2957  esac
2958fi
2959
2960# Installed binaries are usually stripped using `strip' when the user
2961# run `make install-strip'.  However `strip' might not be the right
2962# tool to use in cross-compilation environments, therefore Automake
2963# will honor the `STRIP' environment variable to overrule this program.
2964if test "$cross_compiling" != no; then
2965  if test -n "$ac_tool_prefix"; then
2966  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2967set dummy ${ac_tool_prefix}strip; ac_word=$2
2968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2969$as_echo_n "checking for $ac_word... " >&6; }
2970if test "${ac_cv_prog_STRIP+set}" = set; then :
2971  $as_echo_n "(cached) " >&6
2972else
2973  if test -n "$STRIP"; then
2974  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2975else
2976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2977for as_dir in $PATH
2978do
2979  IFS=$as_save_IFS
2980  test -z "$as_dir" && as_dir=.
2981    for ac_exec_ext in '' $ac_executable_extensions; do
2982  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2983    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2984    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2985    break 2
2986  fi
2987done
2988  done
2989IFS=$as_save_IFS
2990
2991fi
2992fi
2993STRIP=$ac_cv_prog_STRIP
2994if test -n "$STRIP"; then
2995  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2996$as_echo "$STRIP" >&6; }
2997else
2998  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2999$as_echo "no" >&6; }
3000fi
3001
3002
3003fi
3004if test -z "$ac_cv_prog_STRIP"; then
3005  ac_ct_STRIP=$STRIP
3006  # Extract the first word of "strip", so it can be a program name with args.
3007set dummy strip; ac_word=$2
3008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3009$as_echo_n "checking for $ac_word... " >&6; }
3010if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3011  $as_echo_n "(cached) " >&6
3012else
3013  if test -n "$ac_ct_STRIP"; then
3014  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3015else
3016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3017for as_dir in $PATH
3018do
3019  IFS=$as_save_IFS
3020  test -z "$as_dir" && as_dir=.
3021    for ac_exec_ext in '' $ac_executable_extensions; do
3022  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3023    ac_cv_prog_ac_ct_STRIP="strip"
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
3031fi
3032fi
3033ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3034if test -n "$ac_ct_STRIP"; then
3035  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3036$as_echo "$ac_ct_STRIP" >&6; }
3037else
3038  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3039$as_echo "no" >&6; }
3040fi
3041
3042  if test "x$ac_ct_STRIP" = x; then
3043    STRIP=":"
3044  else
3045    case $cross_compiling:$ac_tool_warned in
3046yes:)
3047{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3048$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3049ac_tool_warned=yes ;;
3050esac
3051    STRIP=$ac_ct_STRIP
3052  fi
3053else
3054  STRIP="$ac_cv_prog_STRIP"
3055fi
3056
3057fi
3058INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3059
3060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3061$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3062if test -z "$MKDIR_P"; then
3063  if test "${ac_cv_path_mkdir+set}" = set; then :
3064  $as_echo_n "(cached) " >&6
3065else
3066  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3067for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3068do
3069  IFS=$as_save_IFS
3070  test -z "$as_dir" && as_dir=.
3071    for ac_prog in mkdir gmkdir; do
3072         for ac_exec_ext in '' $ac_executable_extensions; do
3073           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3074           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3075             'mkdir (GNU coreutils) '* | \
3076             'mkdir (coreutils) '* | \
3077             'mkdir (fileutils) '4.1*)
3078               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3079               break 3;;
3080           esac
3081         done
3082       done
3083  done
3084IFS=$as_save_IFS
3085
3086fi
3087
3088  test -d ./--version && rmdir ./--version
3089  if test "${ac_cv_path_mkdir+set}" = set; then
3090    MKDIR_P="$ac_cv_path_mkdir -p"
3091  else
3092    # As a last resort, use the slow shell script.  Don't cache a
3093    # value for MKDIR_P within a source directory, because that will
3094    # break other packages using the cache if that directory is
3095    # removed, or if the value is a relative name.
3096    MKDIR_P="$ac_install_sh -d"
3097  fi
3098fi
3099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3100$as_echo "$MKDIR_P" >&6; }
3101
3102mkdir_p="$MKDIR_P"
3103case $mkdir_p in
3104  [\\/$]* | ?:[\\/]*) ;;
3105  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3106esac
3107
3108for ac_prog in gawk mawk nawk awk
3109do
3110  # Extract the first word of "$ac_prog", so it can be a program name with args.
3111set dummy $ac_prog; ac_word=$2
3112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3113$as_echo_n "checking for $ac_word... " >&6; }
3114if test "${ac_cv_prog_AWK+set}" = set; then :
3115  $as_echo_n "(cached) " >&6
3116else
3117  if test -n "$AWK"; then
3118  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3119else
3120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3121for as_dir in $PATH
3122do
3123  IFS=$as_save_IFS
3124  test -z "$as_dir" && as_dir=.
3125    for ac_exec_ext in '' $ac_executable_extensions; do
3126  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3127    ac_cv_prog_AWK="$ac_prog"
3128    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3129    break 2
3130  fi
3131done
3132  done
3133IFS=$as_save_IFS
3134
3135fi
3136fi
3137AWK=$ac_cv_prog_AWK
3138if test -n "$AWK"; then
3139  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3140$as_echo "$AWK" >&6; }
3141else
3142  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3143$as_echo "no" >&6; }
3144fi
3145
3146
3147  test -n "$AWK" && break
3148done
3149
3150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3151$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3152set x ${MAKE-make}
3153ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3154if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3155  $as_echo_n "(cached) " >&6
3156else
3157  cat >conftest.make <<\_ACEOF
3158SHELL = /bin/sh
3159all:
3160        @echo '@@@%%%=$(MAKE)=@@@%%%'
3161_ACEOF
3162# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3163case `${MAKE-make} -f conftest.make 2>/dev/null` in
3164  *@@@%%%=?*=@@@%%%*)
3165    eval ac_cv_prog_make_${ac_make}_set=yes;;
3166  *)
3167    eval ac_cv_prog_make_${ac_make}_set=no;;
3168esac
3169rm -f conftest.make
3170fi
3171if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3172  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3173$as_echo "yes" >&6; }
3174  SET_MAKE=
3175else
3176  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3177$as_echo "no" >&6; }
3178  SET_MAKE="MAKE=${MAKE-make}"
3179fi
3180
3181rm -rf .tst 2>/dev/null
3182mkdir .tst 2>/dev/null
3183if test -d .tst; then
3184  am__leading_dot=.
3185else
3186  am__leading_dot=_
3187fi
3188rmdir .tst 2>/dev/null
3189
3190if test "`cd $srcdir && pwd`" != "`pwd`"; then
3191  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3192  # is not polluted with repeated "-I."
3193  am__isrc=' -I$(srcdir)'
3194  # test to see if srcdir already configured
3195  if test -f $srcdir/config.status; then
3196    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3197  fi
3198fi
3199
3200# test whether we have cygpath
3201if test -z "$CYGPATH_W"; then
3202  if (cygpath --version) >/dev/null 2>/dev/null; then
3203    CYGPATH_W='cygpath -w'
3204  else
3205    CYGPATH_W=echo
3206  fi
3207fi
3208
3209
3210# Define the identity of the package.
3211 PACKAGE='adolc'
3212 VERSION='2.1.8-trunk'
3213
3214
3215cat >>confdefs.h <<_ACEOF
3216#define PACKAGE "$PACKAGE"
3217_ACEOF
3218
3219
3220cat >>confdefs.h <<_ACEOF
3221#define VERSION "$VERSION"
3222_ACEOF
3223
3224# Some tools Automake needs.
3225
3226ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3227
3228
3229AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3230
3231
3232AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3233
3234
3235AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3236
3237
3238MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3239
3240# We need awk for the "check" target.  The system "awk" is bad on
3241# some platforms.
3242# Always define AMTAR for backward compatibility.
3243
3244AMTAR=${AMTAR-"${am_missing_run}tar"}
3245
3246am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3247
3248
3249
3250
3251
3252
3253if test "x$CFLAGS" == x ; then
3254    ac_shell_cflags="not_set"
3255else
3256    ac_shell_cflags="$CFLAGS"
3257fi
3258if test "x$CXXFLAGS" == x ; then
3259    ac_shell_cxxflags="not_set"
3260else
3261    ac_shell_cxxflags="$CXXFLAGS"
3262fi
3263
3264# checks for programs
3265ac_ext=cpp
3266ac_cpp='$CXXCPP $CPPFLAGS'
3267ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3268ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3269ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3270if test -z "$CXX"; then
3271  if test -n "$CCC"; then
3272    CXX=$CCC
3273  else
3274    if test -n "$ac_tool_prefix"; then
3275  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3276  do
3277    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3278set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3280$as_echo_n "checking for $ac_word... " >&6; }
3281if test "${ac_cv_prog_CXX+set}" = set; then :
3282  $as_echo_n "(cached) " >&6
3283else
3284  if test -n "$CXX"; then
3285  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3286else
3287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3288for as_dir in $PATH
3289do
3290  IFS=$as_save_IFS
3291  test -z "$as_dir" && as_dir=.
3292    for ac_exec_ext in '' $ac_executable_extensions; do
3293  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3294    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3295    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3296    break 2
3297  fi
3298done
3299  done
3300IFS=$as_save_IFS
3301
3302fi
3303fi
3304CXX=$ac_cv_prog_CXX
3305if test -n "$CXX"; then
3306  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3307$as_echo "$CXX" >&6; }
3308else
3309  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3310$as_echo "no" >&6; }
3311fi
3312
3313
3314    test -n "$CXX" && break
3315  done
3316fi
3317if test -z "$CXX"; then
3318  ac_ct_CXX=$CXX
3319  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3320do
3321  # Extract the first word of "$ac_prog", so it can be a program name with args.
3322set dummy $ac_prog; ac_word=$2
3323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3324$as_echo_n "checking for $ac_word... " >&6; }
3325if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3326  $as_echo_n "(cached) " >&6
3327else
3328  if test -n "$ac_ct_CXX"; then
3329  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3330else
3331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3332for as_dir in $PATH
3333do
3334  IFS=$as_save_IFS
3335  test -z "$as_dir" && as_dir=.
3336    for ac_exec_ext in '' $ac_executable_extensions; do
3337  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3338    ac_cv_prog_ac_ct_CXX="$ac_prog"
3339    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3340    break 2
3341  fi
3342done
3343  done
3344IFS=$as_save_IFS
3345
3346fi
3347fi
3348ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3349if test -n "$ac_ct_CXX"; then
3350  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3351$as_echo "$ac_ct_CXX" >&6; }
3352else
3353  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3354$as_echo "no" >&6; }
3355fi
3356
3357
3358  test -n "$ac_ct_CXX" && break
3359done
3360
3361  if test "x$ac_ct_CXX" = x; then
3362    CXX="g++"
3363  else
3364    case $cross_compiling:$ac_tool_warned in
3365yes:)
3366{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3367$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3368ac_tool_warned=yes ;;
3369esac
3370    CXX=$ac_ct_CXX
3371  fi
3372fi
3373
3374  fi
3375fi
3376# Provide some information about the compiler.
3377$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3378set X $ac_compile
3379ac_compiler=$2
3380for ac_option in --version -v -V -qversion; do
3381  { { ac_try="$ac_compiler $ac_option >&5"
3382case "(($ac_try" in
3383  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3384  *) ac_try_echo=$ac_try;;
3385esac
3386eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3387$as_echo "$ac_try_echo"; } >&5
3388  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3389  ac_status=$?
3390  if test -s conftest.err; then
3391    sed '10a\
3392... rest of stderr output deleted ...
3393         10q' conftest.err >conftest.er1
3394    cat conftest.er1 >&5
3395  fi
3396  rm -f conftest.er1 conftest.err
3397  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3398  test $ac_status = 0; }
3399done
3400
3401cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3402/* end confdefs.h.  */
3403
3404int
3405main ()
3406{
3407
3408  ;
3409  return 0;
3410}
3411_ACEOF
3412ac_clean_files_save=$ac_clean_files
3413ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3414# Try to create an executable without -o first, disregard a.out.
3415# It will help us diagnose broken compilers, and finding out an intuition
3416# of exeext.
3417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3418$as_echo_n "checking whether the C++ compiler works... " >&6; }
3419ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3420
3421# The possible output files:
3422ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3423
3424ac_rmfiles=
3425for ac_file in $ac_files
3426do
3427  case $ac_file in
3428    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3429    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3430  esac
3431done
3432rm -f $ac_rmfiles
3433
3434if { { ac_try="$ac_link_default"
3435case "(($ac_try" in
3436  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3437  *) ac_try_echo=$ac_try;;
3438esac
3439eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3440$as_echo "$ac_try_echo"; } >&5
3441  (eval "$ac_link_default") 2>&5
3442  ac_status=$?
3443  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3444  test $ac_status = 0; }; then :
3445  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3446# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3447# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3448# so that the user can short-circuit this test for compilers unknown to
3449# Autoconf.
3450for ac_file in $ac_files ''
3451do
3452  test -f "$ac_file" || continue
3453  case $ac_file in
3454    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3455        ;;
3456    [ab].out )
3457        # We found the default executable, but exeext='' is most
3458        # certainly right.
3459        break;;
3460    *.* )
3461        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3462        then :; else
3463           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3464        fi
3465        # We set ac_cv_exeext here because the later test for it is not
3466        # safe: cross compilers may not add the suffix if given an `-o'
3467        # argument, so we may need to know it at that point already.
3468        # Even if this section looks crufty: it has the advantage of
3469        # actually working.
3470        break;;
3471    * )
3472        break;;
3473  esac
3474done
3475test "$ac_cv_exeext" = no && ac_cv_exeext=
3476
3477else
3478  ac_file=''
3479fi
3480if test -z "$ac_file"; then :
3481  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3482$as_echo "no" >&6; }
3483$as_echo "$as_me: failed program was:" >&5
3484sed 's/^/| /' conftest.$ac_ext >&5
3485
3486{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3487$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3488{ as_fn_set_status 77
3489as_fn_error "C++ compiler cannot create executables
3490See \`config.log' for more details." "$LINENO" 5; }; }
3491else
3492  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3493$as_echo "yes" >&6; }
3494fi
3495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3496$as_echo_n "checking for C++ compiler default output file name... " >&6; }
3497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3498$as_echo "$ac_file" >&6; }
3499ac_exeext=$ac_cv_exeext
3500
3501rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3502ac_clean_files=$ac_clean_files_save
3503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3504$as_echo_n "checking for suffix of executables... " >&6; }
3505if { { ac_try="$ac_link"
3506case "(($ac_try" in
3507  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3508  *) ac_try_echo=$ac_try;;
3509esac
3510eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3511$as_echo "$ac_try_echo"; } >&5
3512  (eval "$ac_link") 2>&5
3513  ac_status=$?
3514  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3515  test $ac_status = 0; }; then :
3516  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3517# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3518# work properly (i.e., refer to `conftest.exe'), while it won't with
3519# `rm'.
3520for ac_file in conftest.exe conftest conftest.*; do
3521  test -f "$ac_file" || continue
3522  case $ac_file in
3523    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3524    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3525          break;;
3526    * ) break;;
3527  esac
3528done
3529else
3530  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3531$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3532as_fn_error "cannot compute suffix of executables: cannot compile and link
3533See \`config.log' for more details." "$LINENO" 5; }
3534fi
3535rm -f conftest conftest$ac_cv_exeext
3536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3537$as_echo "$ac_cv_exeext" >&6; }
3538
3539rm -f conftest.$ac_ext
3540EXEEXT=$ac_cv_exeext
3541ac_exeext=$EXEEXT
3542cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3543/* end confdefs.h.  */
3544#include <stdio.h>
3545int
3546main ()
3547{
3548FILE *f = fopen ("conftest.out", "w");
3549 return ferror (f) || fclose (f) != 0;
3550
3551  ;
3552  return 0;
3553}
3554_ACEOF
3555ac_clean_files="$ac_clean_files conftest.out"
3556# Check that the compiler produces executables we can run.  If not, either
3557# the compiler is broken, or we cross compile.
3558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3559$as_echo_n "checking whether we are cross compiling... " >&6; }
3560if test "$cross_compiling" != yes; then
3561  { { ac_try="$ac_link"
3562case "(($ac_try" in
3563  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3564  *) ac_try_echo=$ac_try;;
3565esac
3566eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3567$as_echo "$ac_try_echo"; } >&5
3568  (eval "$ac_link") 2>&5
3569  ac_status=$?
3570  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3571  test $ac_status = 0; }
3572  if { ac_try='./conftest$ac_cv_exeext'
3573  { { case "(($ac_try" in
3574  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3575  *) ac_try_echo=$ac_try;;
3576esac
3577eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3578$as_echo "$ac_try_echo"; } >&5
3579  (eval "$ac_try") 2>&5
3580  ac_status=$?
3581  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3582  test $ac_status = 0; }; }; then
3583    cross_compiling=no
3584  else
3585    if test "$cross_compiling" = maybe; then
3586        cross_compiling=yes
3587    else
3588        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3589$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3590as_fn_error "cannot run C++ compiled programs.
3591If you meant to cross compile, use \`--host'.
3592See \`config.log' for more details." "$LINENO" 5; }
3593    fi
3594  fi
3595fi
3596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3597$as_echo "$cross_compiling" >&6; }
3598
3599rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3600ac_clean_files=$ac_clean_files_save
3601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3602$as_echo_n "checking for suffix of object files... " >&6; }
3603if test "${ac_cv_objext+set}" = set; then :
3604  $as_echo_n "(cached) " >&6
3605else
3606  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3607/* end confdefs.h.  */
3608
3609int
3610main ()
3611{
3612
3613  ;
3614  return 0;
3615}
3616_ACEOF
3617rm -f conftest.o conftest.obj
3618if { { ac_try="$ac_compile"
3619case "(($ac_try" in
3620  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3621  *) ac_try_echo=$ac_try;;
3622esac
3623eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3624$as_echo "$ac_try_echo"; } >&5
3625  (eval "$ac_compile") 2>&5
3626  ac_status=$?
3627  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3628  test $ac_status = 0; }; then :
3629  for ac_file in conftest.o conftest.obj conftest.*; do
3630  test -f "$ac_file" || continue;
3631  case $ac_file in
3632    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3633    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3634       break;;
3635  esac
3636done
3637else
3638  $as_echo "$as_me: failed program was:" >&5
3639sed 's/^/| /' conftest.$ac_ext >&5
3640
3641{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3642$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3643as_fn_error "cannot compute suffix of object files: cannot compile
3644See \`config.log' for more details." "$LINENO" 5; }
3645fi
3646rm -f conftest.$ac_cv_objext conftest.$ac_ext
3647fi
3648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3649$as_echo "$ac_cv_objext" >&6; }
3650OBJEXT=$ac_cv_objext
3651ac_objext=$OBJEXT
3652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3653$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3654if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3655  $as_echo_n "(cached) " >&6
3656else
3657  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3658/* end confdefs.h.  */
3659
3660int
3661main ()
3662{
3663#ifndef __GNUC__
3664       choke me
3665#endif
3666
3667  ;
3668  return 0;
3669}
3670_ACEOF
3671if ac_fn_cxx_try_compile "$LINENO"; then :
3672  ac_compiler_gnu=yes
3673else
3674  ac_compiler_gnu=no
3675fi
3676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3677ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3678
3679fi
3680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3681$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3682if test $ac_compiler_gnu = yes; then
3683  GXX=yes
3684else
3685  GXX=
3686fi
3687ac_test_CXXFLAGS=${CXXFLAGS+set}
3688ac_save_CXXFLAGS=$CXXFLAGS
3689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3690$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3691if test "${ac_cv_prog_cxx_g+set}" = set; then :
3692  $as_echo_n "(cached) " >&6
3693else
3694  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3695   ac_cxx_werror_flag=yes
3696   ac_cv_prog_cxx_g=no
3697   CXXFLAGS="-g"
3698   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3699/* end confdefs.h.  */
3700
3701int
3702main ()
3703{
3704
3705  ;
3706  return 0;
3707}
3708_ACEOF
3709if ac_fn_cxx_try_compile "$LINENO"; then :
3710  ac_cv_prog_cxx_g=yes
3711else
3712  CXXFLAGS=""
3713      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3714/* end confdefs.h.  */
3715
3716int
3717main ()
3718{
3719
3720  ;
3721  return 0;
3722}
3723_ACEOF
3724if ac_fn_cxx_try_compile "$LINENO"; then :
3725
3726else
3727  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3728         CXXFLAGS="-g"
3729         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3730/* end confdefs.h.  */
3731
3732int
3733main ()
3734{
3735
3736  ;
3737  return 0;
3738}
3739_ACEOF
3740if ac_fn_cxx_try_compile "$LINENO"; then :
3741  ac_cv_prog_cxx_g=yes
3742fi
3743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3744fi
3745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3746fi
3747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3748   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3749fi
3750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3751$as_echo "$ac_cv_prog_cxx_g" >&6; }
3752if test "$ac_test_CXXFLAGS" = set; then
3753  CXXFLAGS=$ac_save_CXXFLAGS
3754elif test $ac_cv_prog_cxx_g = yes; then
3755  if test "$GXX" = yes; then
3756    CXXFLAGS="-g -O2"
3757  else
3758    CXXFLAGS="-g"
3759  fi
3760else
3761  if test "$GXX" = yes; then
3762    CXXFLAGS="-O2"
3763  else
3764    CXXFLAGS=
3765  fi
3766fi
3767ac_ext=c
3768ac_cpp='$CPP $CPPFLAGS'
3769ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3770ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3771ac_compiler_gnu=$ac_cv_c_compiler_gnu
3772DEPDIR="${am__leading_dot}deps"
3773
3774ac_config_commands="$ac_config_commands depfiles"
3775
3776
3777am_make=${MAKE-make}
3778cat > confinc << 'END'
3779am__doit:
3780        @echo this is the am__doit target
3781.PHONY: am__doit
3782END
3783# If we don't find an include directive, just comment out the code.
3784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3785$as_echo_n "checking for style of include used by $am_make... " >&6; }
3786am__include="#"
3787am__quote=
3788_am_result=none
3789# First try GNU make style include.
3790echo "include confinc" > confmf
3791# Ignore all kinds of additional output from `make'.
3792case `$am_make -s -f confmf 2> /dev/null` in #(
3793*the\ am__doit\ target*)
3794  am__include=include
3795  am__quote=
3796  _am_result=GNU
3797  ;;
3798esac
3799# Now try BSD make style include.
3800if test "$am__include" = "#"; then
3801   echo '.include "confinc"' > confmf
3802   case `$am_make -s -f confmf 2> /dev/null` in #(
3803   *the\ am__doit\ target*)
3804     am__include=.include
3805     am__quote="\""
3806     _am_result=BSD
3807     ;;
3808   esac
3809fi
3810
3811
3812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3813$as_echo "$_am_result" >&6; }
3814rm -f confinc confmf
3815
3816# Check whether --enable-dependency-tracking was given.
3817if test "${enable_dependency_tracking+set}" = set; then :
3818  enableval=$enable_dependency_tracking;
3819fi
3820
3821if test "x$enable_dependency_tracking" != xno; then
3822  am_depcomp="$ac_aux_dir/depcomp"
3823  AMDEPBACKSLASH='\'
3824fi
3825 if test "x$enable_dependency_tracking" != xno; then
3826  AMDEP_TRUE=
3827  AMDEP_FALSE='#'
3828else
3829  AMDEP_TRUE='#'
3830  AMDEP_FALSE=
3831fi
3832
3833
3834
3835depcc="$CXX"  am_compiler_list=
3836
3837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3838$as_echo_n "checking dependency style of $depcc... " >&6; }
3839if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
3840  $as_echo_n "(cached) " >&6
3841else
3842  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3843  # We make a subdir and do the tests there.  Otherwise we can end up
3844  # making bogus files that we don't know about and never remove.  For
3845  # instance it was reported that on HP-UX the gcc test will end up
3846  # making a dummy file named `D' -- because `-MD' means `put the output
3847  # in D'.
3848  mkdir conftest.dir
3849  # Copy depcomp to subdir because otherwise we won't find it if we're
3850  # using a relative directory.
3851  cp "$am_depcomp" conftest.dir
3852  cd conftest.dir
3853  # We will build objects and dependencies in a subdirectory because
3854  # it helps to detect inapplicable dependency modes.  For instance
3855  # both Tru64's cc and ICC support -MD to output dependencies as a
3856  # side effect of compilation, but ICC will put the dependencies in
3857  # the current directory while Tru64 will put them in the object
3858  # directory.
3859  mkdir sub
3860
3861  am_cv_CXX_dependencies_compiler_type=none
3862  if test "$am_compiler_list" = ""; then
3863     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3864  fi
3865  am__universal=false
3866  case " $depcc " in #(
3867     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3868     esac
3869
3870  for depmode in $am_compiler_list; do
3871    # Setup a source with many dependencies, because some compilers
3872    # like to wrap large dependency lists on column 80 (with \), and
3873    # we should not choose a depcomp mode which is confused by this.
3874    #
3875    # We need to recreate these files for each test, as the compiler may
3876    # overwrite some of them when testing with obscure command lines.
3877    # This happens at least with the AIX C compiler.
3878    : > sub/conftest.c
3879    for i in 1 2 3 4 5 6; do
3880      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3881      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3882      # Solaris 8's {/usr,}/bin/sh.
3883      touch sub/conftst$i.h
3884    done
3885    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3886
3887    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3888    # mode.  It turns out that the SunPro C++ compiler does not properly
3889    # handle `-M -o', and we need to detect this.  Also, some Intel
3890    # versions had trouble with output in subdirs
3891    am__obj=sub/conftest.${OBJEXT-o}
3892    am__minus_obj="-o $am__obj"
3893    case $depmode in
3894    gcc)
3895      # This depmode causes a compiler race in universal mode.
3896      test "$am__universal" = false || continue
3897      ;;
3898    nosideeffect)
3899      # after this tag, mechanisms are not by side-effect, so they'll
3900      # only be used when explicitly requested
3901      if test "x$enable_dependency_tracking" = xyes; then
3902        continue
3903      else
3904        break
3905      fi
3906      ;;
3907    msvisualcpp | msvcmsys)
3908      # This compiler won't grok `-c -o', but also, the minuso test has
3909      # not run yet.  These depmodes are late enough in the game, and
3910      # so weak that their functioning should not be impacted.
3911      am__obj=conftest.${OBJEXT-o}
3912      am__minus_obj=
3913      ;;
3914    none) break ;;
3915    esac
3916    if depmode=$depmode \
3917       source=sub/conftest.c object=$am__obj \
3918       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3919       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3920         >/dev/null 2>conftest.err &&
3921       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3922       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3923       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3924       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3925      # icc doesn't choke on unknown options, it will just issue warnings
3926      # or remarks (even with -Werror).  So we grep stderr for any message
3927      # that says an option was ignored or not supported.
3928      # When given -MP, icc 7.0 and 7.1 complain thusly:
3929      #   icc: Command line warning: ignoring option '-M'; no argument required
3930      # The diagnosis changed in icc 8.0:
3931      #   icc: Command line remark: option '-MP' not supported
3932      if (grep 'ignoring option' conftest.err ||
3933          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3934        am_cv_CXX_dependencies_compiler_type=$depmode
3935        break
3936      fi
3937    fi
3938  done
3939
3940  cd ..
3941  rm -rf conftest.dir
3942else
3943  am_cv_CXX_dependencies_compiler_type=none
3944fi
3945
3946fi
3947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3948$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3949CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3950
3951 if
3952  test "x$enable_dependency_tracking" != xno \
3953  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3954  am__fastdepCXX_TRUE=
3955  am__fastdepCXX_FALSE='#'
3956else
3957  am__fastdepCXX_TRUE='#'
3958  am__fastdepCXX_FALSE=
3959fi
3960
3961
3962ac_ext=c
3963ac_cpp='$CPP $CPPFLAGS'
3964ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3965ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3966ac_compiler_gnu=$ac_cv_c_compiler_gnu
3967if test -n "$ac_tool_prefix"; then
3968  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3969set dummy ${ac_tool_prefix}gcc; ac_word=$2
3970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3971$as_echo_n "checking for $ac_word... " >&6; }
3972if test "${ac_cv_prog_CC+set}" = set; then :
3973  $as_echo_n "(cached) " >&6
3974else
3975  if test -n "$CC"; then
3976  ac_cv_prog_CC="$CC" # Let the user override the test.
3977else
3978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3979for as_dir in $PATH
3980do
3981  IFS=$as_save_IFS
3982  test -z "$as_dir" && as_dir=.
3983    for ac_exec_ext in '' $ac_executable_extensions; do
3984  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3985    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3986    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3987    break 2
3988  fi
3989done
3990  done
3991IFS=$as_save_IFS
3992
3993fi
3994fi
3995CC=$ac_cv_prog_CC
3996if test -n "$CC"; then
3997  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3998$as_echo "$CC" >&6; }
3999else
4000  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4001$as_echo "no" >&6; }
4002fi
4003
4004
4005fi
4006if test -z "$ac_cv_prog_CC"; then
4007  ac_ct_CC=$CC
4008  # Extract the first word of "gcc", so it can be a program name with args.
4009set dummy gcc; ac_word=$2
4010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4011$as_echo_n "checking for $ac_word... " >&6; }
4012if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4013  $as_echo_n "(cached) " >&6
4014else
4015  if test -n "$ac_ct_CC"; then
4016  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4017else
4018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4019for as_dir in $PATH
4020do
4021  IFS=$as_save_IFS
4022  test -z "$as_dir" && as_dir=.
4023    for ac_exec_ext in '' $ac_executable_extensions; do
4024  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4025    ac_cv_prog_ac_ct_CC="gcc"
4026    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4027    break 2
4028  fi
4029done
4030  done
4031IFS=$as_save_IFS
4032
4033fi
4034fi
4035ac_ct_CC=$ac_cv_prog_ac_ct_CC
4036if test -n "$ac_ct_CC"; then
4037  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4038$as_echo "$ac_ct_CC" >&6; }
4039else
4040  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4041$as_echo "no" >&6; }
4042fi
4043
4044  if test "x$ac_ct_CC" = x; then
4045    CC=""
4046  else
4047    case $cross_compiling:$ac_tool_warned in
4048yes:)
4049{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4050$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4051ac_tool_warned=yes ;;
4052esac
4053    CC=$ac_ct_CC
4054  fi
4055else
4056  CC="$ac_cv_prog_CC"
4057fi
4058
4059if test -z "$CC"; then
4060          if test -n "$ac_tool_prefix"; then
4061    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4062set dummy ${ac_tool_prefix}cc; ac_word=$2
4063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4064$as_echo_n "checking for $ac_word... " >&6; }
4065if test "${ac_cv_prog_CC+set}" = set; then :
4066  $as_echo_n "(cached) " >&6
4067else
4068  if test -n "$CC"; then
4069  ac_cv_prog_CC="$CC" # Let the user override the test.
4070else
4071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4072for as_dir in $PATH
4073do
4074  IFS=$as_save_IFS
4075  test -z "$as_dir" && as_dir=.
4076    for ac_exec_ext in '' $ac_executable_extensions; do
4077  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4078    ac_cv_prog_CC="${ac_tool_prefix}cc"
4079    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4080    break 2
4081  fi
4082done
4083  done
4084IFS=$as_save_IFS
4085
4086fi
4087fi
4088CC=$ac_cv_prog_CC
4089if test -n "$CC"; then
4090  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4091$as_echo "$CC" >&6; }
4092else
4093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4094$as_echo "no" >&6; }
4095fi
4096
4097
4098  fi
4099fi
4100if test -z "$CC"; then
4101  # Extract the first word of "cc", so it can be a program name with args.
4102set dummy cc; ac_word=$2
4103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4104$as_echo_n "checking for $ac_word... " >&6; }
4105if test "${ac_cv_prog_CC+set}" = set; then :
4106  $as_echo_n "(cached) " >&6
4107else
4108  if test -n "$CC"; then
4109  ac_cv_prog_CC="$CC" # Let the user override the test.
4110else
4111  ac_prog_rejected=no
4112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4113for as_dir in $PATH
4114do
4115  IFS=$as_save_IFS
4116  test -z "$as_dir" && as_dir=.
4117    for ac_exec_ext in '' $ac_executable_extensions; do
4118  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4119    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4120       ac_prog_rejected=yes
4121       continue
4122     fi
4123    ac_cv_prog_CC="cc"
4124    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4125    break 2
4126  fi
4127done
4128  done
4129IFS=$as_save_IFS
4130
4131if test $ac_prog_rejected = yes; then
4132  # We found a bogon in the path, so make sure we never use it.
4133  set dummy $ac_cv_prog_CC
4134  shift
4135  if test $# != 0; then
4136    # We chose a different compiler from the bogus one.
4137    # However, it has the same basename, so the bogon will be chosen
4138    # first if we set CC to just the basename; use the full file name.
4139    shift
4140    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4141  fi
4142fi
4143fi
4144fi
4145CC=$ac_cv_prog_CC
4146if test -n "$CC"; then
4147  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4148$as_echo "$CC" >&6; }
4149else
4150  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4151$as_echo "no" >&6; }
4152fi
4153
4154
4155fi
4156if test -z "$CC"; then
4157  if test -n "$ac_tool_prefix"; then
4158  for ac_prog in cl.exe
4159  do
4160    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4161set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4163$as_echo_n "checking for $ac_word... " >&6; }
4164if test "${ac_cv_prog_CC+set}" = set; then :
4165  $as_echo_n "(cached) " >&6
4166else
4167  if test -n "$CC"; then
4168  ac_cv_prog_CC="$CC" # Let the user override the test.
4169else
4170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4171for as_dir in $PATH
4172do
4173  IFS=$as_save_IFS
4174  test -z "$as_dir" && as_dir=.
4175    for ac_exec_ext in '' $ac_executable_extensions; do
4176  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4177    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4178    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4179    break 2
4180  fi
4181done
4182  done
4183IFS=$as_save_IFS
4184
4185fi
4186fi
4187CC=$ac_cv_prog_CC
4188if test -n "$CC"; then
4189  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4190$as_echo "$CC" >&6; }
4191else
4192  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4193$as_echo "no" >&6; }
4194fi
4195
4196
4197    test -n "$CC" && break
4198  done
4199fi
4200if test -z "$CC"; then
4201  ac_ct_CC=$CC
4202  for ac_prog in cl.exe
4203do
4204  # Extract the first word of "$ac_prog", so it can be a program name with args.
4205set dummy $ac_prog; ac_word=$2
4206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4207$as_echo_n "checking for $ac_word... " >&6; }
4208if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4209  $as_echo_n "(cached) " >&6
4210else
4211  if test -n "$ac_ct_CC"; then
4212  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4213else
4214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4215for as_dir in $PATH
4216do
4217  IFS=$as_save_IFS
4218  test -z "$as_dir" && as_dir=.
4219    for ac_exec_ext in '' $ac_executable_extensions; do
4220  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4221    ac_cv_prog_ac_ct_CC="$ac_prog"
4222    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4223    break 2
4224  fi
4225done
4226  done
4227IFS=$as_save_IFS
4228
4229fi
4230fi
4231ac_ct_CC=$ac_cv_prog_ac_ct_CC
4232if test -n "$ac_ct_CC"; then
4233  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4234$as_echo "$ac_ct_CC" >&6; }
4235else
4236  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4237$as_echo "no" >&6; }
4238fi
4239
4240
4241  test -n "$ac_ct_CC" && break
4242done
4243
4244  if test "x$ac_ct_CC" = x; then
4245    CC=""
4246  else
4247    case $cross_compiling:$ac_tool_warned in
4248yes:)
4249{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4250$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4251ac_tool_warned=yes ;;
4252esac
4253    CC=$ac_ct_CC
4254  fi
4255fi
4256
4257fi
4258
4259
4260test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4261$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4262as_fn_error "no acceptable C compiler found in \$PATH
4263See \`config.log' for more details." "$LINENO" 5; }
4264
4265# Provide some information about the compiler.
4266$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4267set X $ac_compile
4268ac_compiler=$2
4269for ac_option in --version -v -V -qversion; do
4270  { { ac_try="$ac_compiler $ac_option >&5"
4271case "(($ac_try" in
4272  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4273  *) ac_try_echo=$ac_try;;
4274esac
4275eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4276$as_echo "$ac_try_echo"; } >&5
4277  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4278  ac_status=$?
4279  if test -s conftest.err; then
4280    sed '10a\
4281... rest of stderr output deleted ...
4282         10q' conftest.err >conftest.er1
4283    cat conftest.er1 >&5
4284  fi
4285  rm -f conftest.er1 conftest.err
4286  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4287  test $ac_status = 0; }
4288done
4289
4290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4291$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4292if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4293  $as_echo_n "(cached) " >&6
4294else
4295  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4296/* end confdefs.h.  */
4297
4298int
4299main ()
4300{
4301#ifndef __GNUC__
4302       choke me
4303#endif
4304
4305  ;
4306  return 0;
4307}
4308_ACEOF
4309if ac_fn_c_try_compile "$LINENO"; then :
4310  ac_compiler_gnu=yes
4311else
4312  ac_compiler_gnu=no
4313fi
4314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4315ac_cv_c_compiler_gnu=$ac_compiler_gnu
4316
4317fi
4318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4319$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4320if test $ac_compiler_gnu = yes; then
4321  GCC=yes
4322else
4323  GCC=
4324fi
4325ac_test_CFLAGS=${CFLAGS+set}
4326ac_save_CFLAGS=$CFLAGS
4327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4328$as_echo_n "checking whether $CC accepts -g... " >&6; }
4329if test "${ac_cv_prog_cc_g+set}" = set; then :
4330  $as_echo_n "(cached) " >&6
4331else
4332  ac_save_c_werror_flag=$ac_c_werror_flag
4333   ac_c_werror_flag=yes
4334   ac_cv_prog_cc_g=no
4335   CFLAGS="-g"
4336   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4337/* end confdefs.h.  */
4338
4339int
4340main ()
4341{
4342
4343  ;
4344  return 0;
4345}
4346_ACEOF
4347if ac_fn_c_try_compile "$LINENO"; then :
4348  ac_cv_prog_cc_g=yes
4349else
4350  CFLAGS=""
4351      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4352/* end confdefs.h.  */
4353
4354int
4355main ()
4356{
4357
4358  ;
4359  return 0;
4360}
4361_ACEOF
4362if ac_fn_c_try_compile "$LINENO"; then :
4363
4364else
4365  ac_c_werror_flag=$ac_save_c_werror_flag
4366         CFLAGS="-g"
4367         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4368/* end confdefs.h.  */
4369
4370int
4371main ()
4372{
4373
4374  ;
4375  return 0;
4376}
4377_ACEOF
4378if ac_fn_c_try_compile "$LINENO"; then :
4379  ac_cv_prog_cc_g=yes
4380fi
4381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4382fi
4383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4384fi
4385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4386   ac_c_werror_flag=$ac_save_c_werror_flag
4387fi
4388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4389$as_echo "$ac_cv_prog_cc_g" >&6; }
4390if test "$ac_test_CFLAGS" = set; then
4391  CFLAGS=$ac_save_CFLAGS
4392elif test $ac_cv_prog_cc_g = yes; then
4393  if test "$GCC" = yes; then
4394    CFLAGS="-g -O2"
4395  else
4396    CFLAGS="-g"
4397  fi
4398else
4399  if test "$GCC" = yes; then
4400    CFLAGS="-O2"
4401  else
4402    CFLAGS=
4403  fi
4404fi
4405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4406$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4407if test "${ac_cv_prog_cc_c89+set}" = set; then :
4408  $as_echo_n "(cached) " >&6
4409else
4410  ac_cv_prog_cc_c89=no
4411ac_save_CC=$CC
4412cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4413/* end confdefs.h.  */
4414#include <stdarg.h>
4415#include <stdio.h>
4416#include <sys/types.h>
4417#include <sys/stat.h>
4418/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4419struct buf { int x; };
4420FILE * (*rcsopen) (struct buf *, struct stat *, int);
4421static char *e (p, i)
4422     char **p;
4423     int i;
4424{
4425  return p[i];
4426}
4427static char *f (char * (*g) (char **, int), char **p, ...)
4428{
4429  char *s;
4430  va_list v;
4431  va_start (v,p);
4432  s = g (p, va_arg (v,int));
4433  va_end (v);
4434  return s;
4435}
4436
4437/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4438   function prototypes and stuff, but not '\xHH' hex character constants.
4439   These don't provoke an error unfortunately, instead are silently treated
4440   as 'x'.  The following induces an error, until -std is added to get
4441   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4442   array size at least.  It's necessary to write '\x00'==0 to get something
4443   that's true only with -std.  */
4444int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4445
4446/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4447   inside strings and character constants.  */
4448#define FOO(x) 'x'
4449int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4450
4451int test (int i, double x);
4452struct s1 {int (*f) (int a);};
4453struct s2 {int (*f) (double a);};
4454int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4455int argc;
4456char **argv;
4457int
4458main ()
4459{
4460return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4461  ;
4462  return 0;
4463}
4464_ACEOF
4465for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4466        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4467do
4468  CC="$ac_save_CC $ac_arg"
4469  if ac_fn_c_try_compile "$LINENO"; then :
4470  ac_cv_prog_cc_c89=$ac_arg
4471fi
4472rm -f core conftest.err conftest.$ac_objext
4473  test "x$ac_cv_prog_cc_c89" != "xno" && break
4474done
4475rm -f conftest.$ac_ext
4476CC=$ac_save_CC
4477
4478fi
4479# AC_CACHE_VAL
4480case "x$ac_cv_prog_cc_c89" in
4481  x)
4482    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4483$as_echo "none needed" >&6; } ;;
4484  xno)
4485    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4486$as_echo "unsupported" >&6; } ;;
4487  *)
4488    CC="$CC $ac_cv_prog_cc_c89"
4489    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4490$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4491esac
4492if test "x$ac_cv_prog_cc_c89" != xno; then :
4493
4494fi
4495
4496ac_ext=c
4497ac_cpp='$CPP $CPPFLAGS'
4498ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4499ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4500ac_compiler_gnu=$ac_cv_c_compiler_gnu
4501
4502depcc="$CC"   am_compiler_list=
4503
4504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4505$as_echo_n "checking dependency style of $depcc... " >&6; }
4506if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4507  $as_echo_n "(cached) " >&6
4508else
4509  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4510  # We make a subdir and do the tests there.  Otherwise we can end up
4511  # making bogus files that we don't know about and never remove.  For
4512  # instance it was reported that on HP-UX the gcc test will end up
4513  # making a dummy file named `D' -- because `-MD' means `put the output
4514  # in D'.
4515  mkdir conftest.dir
4516  # Copy depcomp to subdir because otherwise we won't find it if we're
4517  # using a relative directory.
4518  cp "$am_depcomp" conftest.dir
4519  cd conftest.dir
4520  # We will build objects and dependencies in a subdirectory because
4521  # it helps to detect inapplicable dependency modes.  For instance
4522  # both Tru64's cc and ICC support -MD to output dependencies as a
4523  # side effect of compilation, but ICC will put the dependencies in
4524  # the current directory while Tru64 will put them in the object
4525  # directory.
4526  mkdir sub
4527
4528  am_cv_CC_dependencies_compiler_type=none
4529  if test "$am_compiler_list" = ""; then
4530     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4531  fi
4532  am__universal=false
4533  case " $depcc " in #(
4534     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4535     esac
4536
4537  for depmode in $am_compiler_list; do
4538    # Setup a source with many dependencies, because some compilers
4539    # like to wrap large dependency lists on column 80 (with \), and
4540    # we should not choose a depcomp mode which is confused by this.
4541    #
4542    # We need to recreate these files for each test, as the compiler may
4543    # overwrite some of them when testing with obscure command lines.
4544    # This happens at least with the AIX C compiler.
4545    : > sub/conftest.c
4546    for i in 1 2 3 4 5 6; do
4547      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4548      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4549      # Solaris 8's {/usr,}/bin/sh.
4550      touch sub/conftst$i.h
4551    done
4552    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4553
4554    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4555    # mode.  It turns out that the SunPro C++ compiler does not properly
4556    # handle `-M -o', and we need to detect this.  Also, some Intel
4557    # versions had trouble with output in subdirs
4558    am__obj=sub/conftest.${OBJEXT-o}
4559    am__minus_obj="-o $am__obj"
4560    case $depmode in
4561    gcc)
4562      # This depmode causes a compiler race in universal mode.
4563      test "$am__universal" = false || continue
4564      ;;
4565    nosideeffect)
4566      # after this tag, mechanisms are not by side-effect, so they'll
4567      # only be used when explicitly requested
4568      if test "x$enable_dependency_tracking" = xyes; then
4569        continue
4570      else
4571        break
4572      fi
4573      ;;
4574    msvisualcpp | msvcmsys)
4575      # This compiler won't grok `-c -o', but also, the minuso test has
4576      # not run yet.  These depmodes are late enough in the game, and
4577      # so weak that their functioning should not be impacted.
4578      am__obj=conftest.${OBJEXT-o}
4579      am__minus_obj=
4580      ;;
4581    none) break ;;
4582    esac
4583    if depmode=$depmode \
4584       source=sub/conftest.c object=$am__obj \
4585       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4586       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4587         >/dev/null 2>conftest.err &&
4588       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4589       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4590       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4591       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4592      # icc doesn't choke on unknown options, it will just issue warnings
4593      # or remarks (even with -Werror).  So we grep stderr for any message
4594      # that says an option was ignored or not supported.
4595      # When given -MP, icc 7.0 and 7.1 complain thusly:
4596      #   icc: Command line warning: ignoring option '-M'; no argument required
4597      # The diagnosis changed in icc 8.0:
4598      #   icc: Command line remark: option '-MP' not supported
4599      if (grep 'ignoring option' conftest.err ||
4600          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4601        am_cv_CC_dependencies_compiler_type=$depmode
4602        break
4603      fi
4604    fi
4605  done
4606
4607  cd ..
4608  rm -rf conftest.dir
4609else
4610  am_cv_CC_dependencies_compiler_type=none
4611fi
4612
4613fi
4614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4615$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4616CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4617
4618 if
4619  test "x$enable_dependency_tracking" != xno \
4620  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4621  am__fastdepCC_TRUE=
4622  am__fastdepCC_FALSE='#'
4623else
4624  am__fastdepCC_TRUE='#'
4625  am__fastdepCC_FALSE=
4626fi
4627
4628
4629ac_ext=c
4630ac_cpp='$CPP $CPPFLAGS'
4631ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4632ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4633ac_compiler_gnu=$ac_cv_c_compiler_gnu
4634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4635$as_echo_n "checking how to run the C preprocessor... " >&6; }
4636# On Suns, sometimes $CPP names a directory.
4637if test -n "$CPP" && test -d "$CPP"; then
4638  CPP=
4639fi
4640if test -z "$CPP"; then
4641  if test "${ac_cv_prog_CPP+set}" = set; then :
4642  $as_echo_n "(cached) " >&6
4643else
4644      # Double quotes because CPP needs to be expanded
4645    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4646    do
4647      ac_preproc_ok=false
4648for ac_c_preproc_warn_flag in '' yes
4649do
4650  # Use a header file that comes with gcc, so configuring glibc
4651  # with a fresh cross-compiler works.
4652  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4653  # <limits.h> exists even on freestanding compilers.
4654  # On the NeXT, cc -E runs the code through the compiler's parser,
4655  # not just through cpp. "Syntax error" is here to catch this case.
4656  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4657/* end confdefs.h.  */
4658#ifdef __STDC__
4659# include <limits.h>
4660#else
4661# include <assert.h>
4662#endif
4663                     Syntax error
4664_ACEOF
4665if ac_fn_c_try_cpp "$LINENO"; then :
4666
4667else
4668  # Broken: fails on valid input.
4669continue
4670fi
4671rm -f conftest.err conftest.$ac_ext
4672
4673  # OK, works on sane cases.  Now check whether nonexistent headers
4674  # can be detected and how.
4675  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4676/* end confdefs.h.  */
4677#include <ac_nonexistent.h>
4678_ACEOF
4679if ac_fn_c_try_cpp "$LINENO"; then :
4680  # Broken: success on invalid input.
4681continue
4682else
4683  # Passes both tests.
4684ac_preproc_ok=:
4685break
4686fi
4687rm -f conftest.err conftest.$ac_ext
4688
4689done
4690# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4691rm -f conftest.err conftest.$ac_ext
4692if $ac_preproc_ok; then :
4693  break
4694fi
4695
4696    done
4697    ac_cv_prog_CPP=$CPP
4698
4699fi
4700  CPP=$ac_cv_prog_CPP
4701else
4702  ac_cv_prog_CPP=$CPP
4703fi
4704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4705$as_echo "$CPP" >&6; }
4706ac_preproc_ok=false
4707for ac_c_preproc_warn_flag in '' yes
4708do
4709  # Use a header file that comes with gcc, so configuring glibc
4710  # with a fresh cross-compiler works.
4711  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4712  # <limits.h> exists even on freestanding compilers.
4713  # On the NeXT, cc -E runs the code through the compiler's parser,
4714  # not just through cpp. "Syntax error" is here to catch this case.
4715  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4716/* end confdefs.h.  */
4717#ifdef __STDC__
4718# include <limits.h>
4719#else
4720# include <assert.h>
4721#endif
4722                     Syntax error
4723_ACEOF
4724if ac_fn_c_try_cpp "$LINENO"; then :
4725
4726else
4727  # Broken: fails on valid input.
4728continue
4729fi
4730rm -f conftest.err conftest.$ac_ext
4731
4732  # OK, works on sane cases.  Now check whether nonexistent headers
4733  # can be detected and how.
4734  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4735/* end confdefs.h.  */
4736#include <ac_nonexistent.h>
4737_ACEOF
4738if ac_fn_c_try_cpp "$LINENO"; then :
4739  # Broken: success on invalid input.
4740continue
4741else
4742  # Passes both tests.
4743ac_preproc_ok=:
4744break
4745fi
4746rm -f conftest.err conftest.$ac_ext
4747
4748done
4749# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4750rm -f conftest.err conftest.$ac_ext
4751if $ac_preproc_ok; then :
4752
4753else
4754  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4755$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4756as_fn_error "C preprocessor \"$CPP\" fails sanity check
4757See \`config.log' for more details." "$LINENO" 5; }
4758fi
4759
4760ac_ext=c
4761ac_cpp='$CPP $CPPFLAGS'
4762ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4763ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4764ac_compiler_gnu=$ac_cv_c_compiler_gnu
4765
4766
4767
4768  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof syntax and keyword spelling" >&5
4769$as_echo_n "checking for typeof syntax and keyword spelling... " >&6; }
4770if test "${ac_cv_c_typeof+set}" = set; then :
4771  $as_echo_n "(cached) " >&6
4772else
4773  ac_cv_c_typeof=no
4774     for ac_kw in typeof __typeof__ no; do
4775       test $ac_kw = no && break
4776       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4777/* end confdefs.h.  */
4778
4779int
4780main ()
4781{
4782
4783           int value;
4784           typedef struct {
4785                   char a [1
4786                           + ! (($ac_kw (value))
4787                                (($ac_kw (value)) 0 < ($ac_kw (value)) -1
4788                                 ? ($ac_kw (value)) - 1
4789                                 : ~ (~ ($ac_kw (value)) 0
4790                                      << sizeof ($ac_kw (value)))))]; }
4791              ac__typeof_type_;
4792           return
4793             (! ((void) ((ac__typeof_type_ *) 0), 0));
4794
4795  ;
4796  return 0;
4797}
4798_ACEOF
4799if ac_fn_c_try_compile "$LINENO"; then :
4800  ac_cv_c_typeof=$ac_kw
4801fi
4802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4803       test $ac_cv_c_typeof != no && break
4804     done
4805fi
4806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_typeof" >&5
4807$as_echo "$ac_cv_c_typeof" >&6; }
4808  if test $ac_cv_c_typeof != no; then
4809
4810$as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
4811
4812    if test $ac_cv_c_typeof != typeof; then
4813
4814cat >>confdefs.h <<_ACEOF
4815#define typeof $ac_cv_c_typeof
4816_ACEOF
4817
4818    fi
4819  fi
4820
4821
4822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4823$as_echo_n "checking whether ln -s works... " >&6; }
4824LN_S=$as_ln_s
4825if test "$LN_S" = "ln -s"; then
4826  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4827$as_echo "yes" >&6; }
4828else
4829  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4830$as_echo "no, using $LN_S" >&6; }
4831fi
4832
4833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4834$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4835set x ${MAKE-make}
4836ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4837if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4838  $as_echo_n "(cached) " >&6
4839else
4840  cat >conftest.make <<\_ACEOF
4841SHELL = /bin/sh
4842all:
4843        @echo '@@@%%%=$(MAKE)=@@@%%%'
4844_ACEOF
4845# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4846case `${MAKE-make} -f conftest.make 2>/dev/null` in
4847  *@@@%%%=?*=@@@%%%*)
4848    eval ac_cv_prog_make_${ac_make}_set=yes;;
4849  *)
4850    eval ac_cv_prog_make_${ac_make}_set=no;;
4851esac
4852rm -f conftest.make
4853fi
4854if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4855  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4856$as_echo "yes" >&6; }
4857  SET_MAKE=
4858else
4859  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4860$as_echo "no" >&6; }
4861  SET_MAKE="MAKE=${MAKE-make}"
4862fi
4863
4864# Make sure we can run config.sub.
4865$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4866  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4867
4868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4869$as_echo_n "checking build system type... " >&6; }
4870if test "${ac_cv_build+set}" = set; then :
4871  $as_echo_n "(cached) " >&6
4872else
4873  ac_build_alias=$build_alias
4874test "x$ac_build_alias" = x &&
4875  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4876test "x$ac_build_alias" = x &&
4877  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4878ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4879  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4880
4881fi
4882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4883$as_echo "$ac_cv_build" >&6; }
4884case $ac_cv_build in
4885*-*-*) ;;
4886*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4887esac
4888build=$ac_cv_build
4889ac_save_IFS=$IFS; IFS='-'
4890set x $ac_cv_build
4891shift
4892build_cpu=$1
4893build_vendor=$2
4894shift; shift
4895# Remember, the first character of IFS is used to create $*,
4896# except with old shells:
4897build_os=$*
4898IFS=$ac_save_IFS
4899case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4900
4901
4902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4903$as_echo_n "checking host system type... " >&6; }
4904if test "${ac_cv_host+set}" = set; then :
4905  $as_echo_n "(cached) " >&6
4906else
4907  if test "x$host_alias" = x; then
4908  ac_cv_host=$ac_cv_build
4909else
4910  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4911    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4912fi
4913
4914fi
4915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4916$as_echo "$ac_cv_host" >&6; }
4917case $ac_cv_host in
4918*-*-*) ;;
4919*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4920esac
4921host=$ac_cv_host
4922ac_save_IFS=$IFS; IFS='-'
4923set x $ac_cv_host
4924shift
4925host_cpu=$1
4926host_vendor=$2
4927shift; shift
4928# Remember, the first character of IFS is used to create $*,
4929# except with old shells:
4930host_os=$*
4931IFS=$ac_save_IFS
4932case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4933
4934
4935enable_win32_dll=yes
4936
4937case $host in
4938*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
4939  if test -n "$ac_tool_prefix"; then
4940  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4941set dummy ${ac_tool_prefix}as; ac_word=$2
4942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4943$as_echo_n "checking for $ac_word... " >&6; }
4944if test "${ac_cv_prog_AS+set}" = set; then :
4945  $as_echo_n "(cached) " >&6
4946else
4947  if test -n "$AS"; then
4948  ac_cv_prog_AS="$AS" # Let the user override the test.
4949else
4950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4951for as_dir in $PATH
4952do
4953  IFS=$as_save_IFS
4954  test -z "$as_dir" && as_dir=.
4955    for ac_exec_ext in '' $ac_executable_extensions; do
4956  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4957    ac_cv_prog_AS="${ac_tool_prefix}as"
4958    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4959    break 2
4960  fi
4961done
4962  done
4963IFS=$as_save_IFS
4964
4965fi
4966fi
4967AS=$ac_cv_prog_AS
4968if test -n "$AS"; then
4969  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4970$as_echo "$AS" >&6; }
4971else
4972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4973$as_echo "no" >&6; }
4974fi
4975
4976
4977fi
4978if test -z "$ac_cv_prog_AS"; then
4979  ac_ct_AS=$AS
4980  # Extract the first word of "as", so it can be a program name with args.
4981set dummy as; ac_word=$2
4982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4983$as_echo_n "checking for $ac_word... " >&6; }
4984if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
4985  $as_echo_n "(cached) " >&6
4986else
4987  if test -n "$ac_ct_AS"; then
4988  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4989else
4990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4991for as_dir in $PATH
4992do
4993  IFS=$as_save_IFS
4994  test -z "$as_dir" && as_dir=.
4995    for ac_exec_ext in '' $ac_executable_extensions; do
4996  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4997    ac_cv_prog_ac_ct_AS="as"
4998    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4999    break 2
5000  fi
5001done
5002  done
5003IFS=$as_save_IFS
5004
5005fi
5006fi
5007ac_ct_AS=$ac_cv_prog_ac_ct_AS
5008if test -n "$ac_ct_AS"; then
5009  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5010$as_echo "$ac_ct_AS" >&6; }
5011else
5012  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5013$as_echo "no" >&6; }
5014fi
5015
5016  if test "x$ac_ct_AS" = x; then
5017    AS="false"
5018  else
5019    case $cross_compiling:$ac_tool_warned in
5020yes:)
5021{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5022$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5023ac_tool_warned=yes ;;
5024esac
5025    AS=$ac_ct_AS
5026  fi
5027else
5028  AS="$ac_cv_prog_AS"
5029fi
5030
5031  if test -n "$ac_tool_prefix"; then
5032  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5033set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5035$as_echo_n "checking for $ac_word... " >&6; }
5036if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
5037  $as_echo_n "(cached) " >&6
5038else
5039  if test -n "$DLLTOOL"; then
5040  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5041else
5042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5043for as_dir in $PATH
5044do
5045  IFS=$as_save_IFS
5046  test -z "$as_dir" && as_dir=.
5047    for ac_exec_ext in '' $ac_executable_extensions; do
5048  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5049    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5050    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5051    break 2
5052  fi
5053done
5054  done
5055IFS=$as_save_IFS
5056
5057fi
5058fi
5059DLLTOOL=$ac_cv_prog_DLLTOOL
5060if test -n "$DLLTOOL"; then
5061  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5062$as_echo "$DLLTOOL" >&6; }
5063else
5064  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5065$as_echo "no" >&6; }
5066fi
5067
5068
5069fi
5070if test -z "$ac_cv_prog_DLLTOOL"; then
5071  ac_ct_DLLTOOL=$DLLTOOL
5072  # Extract the first word of "dlltool", so it can be a program name with args.
5073set dummy dlltool; ac_word=$2
5074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5075$as_echo_n "checking for $ac_word... " >&6; }
5076if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
5077  $as_echo_n "(cached) " >&6
5078else
5079  if test -n "$ac_ct_DLLTOOL"; then
5080  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5081else
5082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5083for as_dir in $PATH
5084do
5085  IFS=$as_save_IFS
5086  test -z "$as_dir" && as_dir=.
5087    for ac_exec_ext in '' $ac_executable_extensions; do
5088  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5089    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5090    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5091    break 2
5092  fi
5093done
5094  done
5095IFS=$as_save_IFS
5096
5097fi
5098fi
5099ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5100if test -n "$ac_ct_DLLTOOL"; then
5101  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5102$as_echo "$ac_ct_DLLTOOL" >&6; }
5103else
5104  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5105$as_echo "no" >&6; }
5106fi
5107
5108  if test "x$ac_ct_DLLTOOL" = x; then
5109    DLLTOOL="false"
5110  else
5111    case $cross_compiling:$ac_tool_warned in
5112yes:)
5113{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5114$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5115ac_tool_warned=yes ;;
5116esac
5117    DLLTOOL=$ac_ct_DLLTOOL
5118  fi
5119else
5120  DLLTOOL="$ac_cv_prog_DLLTOOL"
5121fi
5122
5123  if test -n "$ac_tool_prefix"; then
5124  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5125set dummy ${ac_tool_prefix}objdump; ac_word=$2
5126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5127$as_echo_n "checking for $ac_word... " >&6; }
5128if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5129  $as_echo_n "(cached) " >&6
5130else
5131  if test -n "$OBJDUMP"; then
5132  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5133else
5134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5135for as_dir in $PATH
5136do
5137  IFS=$as_save_IFS
5138  test -z "$as_dir" && as_dir=.
5139    for ac_exec_ext in '' $ac_executable_extensions; do
5140  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5141    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5142    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5143    break 2
5144  fi
5145done
5146  done
5147IFS=$as_save_IFS
5148
5149fi
5150fi
5151OBJDUMP=$ac_cv_prog_OBJDUMP
5152if test -n "$OBJDUMP"; then
5153  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5154$as_echo "$OBJDUMP" >&6; }
5155else
5156  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5157$as_echo "no" >&6; }
5158fi
5159
5160
5161fi
5162if test -z "$ac_cv_prog_OBJDUMP"; then
5163  ac_ct_OBJDUMP=$OBJDUMP
5164  # Extract the first word of "objdump", so it can be a program name with args.
5165set dummy objdump; ac_word=$2
5166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5167$as_echo_n "checking for $ac_word... " >&6; }
5168if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5169  $as_echo_n "(cached) " >&6
5170else
5171  if test -n "$ac_ct_OBJDUMP"; then
5172  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5173else
5174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5175for as_dir in $PATH
5176do
5177  IFS=$as_save_IFS
5178  test -z "$as_dir" && as_dir=.
5179    for ac_exec_ext in '' $ac_executable_extensions; do
5180  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5181    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5182    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5183    break 2
5184  fi
5185done
5186  done
5187IFS=$as_save_IFS
5188
5189fi
5190fi
5191ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5192if test -n "$ac_ct_OBJDUMP"; then
5193  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5194$as_echo "$ac_ct_OBJDUMP" >&6; }
5195else
5196  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5197$as_echo "no" >&6; }
5198fi
5199
5200  if test "x$ac_ct_OBJDUMP" = x; then
5201    OBJDUMP="false"
5202  else
5203    case $cross_compiling:$ac_tool_warned in
5204yes:)
5205{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5206$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5207ac_tool_warned=yes ;;
5208esac
5209    OBJDUMP=$ac_ct_OBJDUMP
5210  fi
5211else
5212  OBJDUMP="$ac_cv_prog_OBJDUMP"
5213fi
5214
5215  ;;
5216esac
5217
5218test -z "$AS" && AS=as
5219
5220
5221
5222
5223
5224test -z "$DLLTOOL" && DLLTOOL=dlltool
5225
5226
5227
5228
5229
5230test -z "$OBJDUMP" && OBJDUMP=objdump
5231
5232
5233
5234
5235
5236
5237
5238case `pwd` in
5239  *\ * | *\     *)
5240    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5241$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5242esac
5243
5244
5245
5246macro_version='2.2.6b'
5247macro_revision='1.3017'
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261ltmain="$ac_aux_dir/ltmain.sh"
5262
5263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5264$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5265if test "${ac_cv_path_SED+set}" = set; then :
5266  $as_echo_n "(cached) " >&6
5267else
5268            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5269     for ac_i in 1 2 3 4 5 6 7; do
5270       ac_script="$ac_script$as_nl$ac_script"
5271     done
5272     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5273     { ac_script=; unset ac_script;}
5274     if test -z "$SED"; then
5275  ac_path_SED_found=false
5276  # Loop through the user's path and test for each of PROGNAME-LIST
5277  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5278for as_dir in $PATH
5279do
5280  IFS=$as_save_IFS
5281  test -z "$as_dir" && as_dir=.
5282    for ac_prog in sed gsed; do
5283    for ac_exec_ext in '' $ac_executable_extensions; do
5284      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5285      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5286# Check for GNU ac_path_SED and select it if it is found.
5287  # Check for GNU $ac_path_SED
5288case `"$ac_path_SED" --version 2>&1` in
5289*GNU*)
5290  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5291*)
5292  ac_count=0
5293  $as_echo_n 0123456789 >"conftest.in"
5294  while :
5295  do
5296    cat "conftest.in" "conftest.in" >"conftest.tmp"
5297    mv "conftest.tmp" "conftest.in"
5298    cp "conftest.in" "conftest.nl"
5299    $as_echo '' >> "conftest.nl"
5300    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5301    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5302    as_fn_arith $ac_count + 1 && ac_count=$as_val
5303    if test $ac_count -gt ${ac_path_SED_max-0}; then
5304      # Best one so far, save it but keep looking for a better one
5305      ac_cv_path_SED="$ac_path_SED"
5306      ac_path_SED_max=$ac_count
5307    fi
5308    # 10*(2^10) chars as input seems more than enough
5309    test $ac_count -gt 10 && break
5310  done
5311  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5312esac
5313
5314      $ac_path_SED_found && break 3
5315    done
5316  done
5317  done
5318IFS=$as_save_IFS
5319  if test -z "$ac_cv_path_SED"; then
5320    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5321  fi
5322else
5323  ac_cv_path_SED=$SED
5324fi
5325
5326fi
5327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5328$as_echo "$ac_cv_path_SED" >&6; }
5329 SED="$ac_cv_path_SED"
5330  rm -f conftest.sed
5331
5332test -z "$SED" && SED=sed
5333Xsed="$SED -e 1s/^X//"
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5346$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5347if test "${ac_cv_path_GREP+set}" = set; then :
5348  $as_echo_n "(cached) " >&6
5349else
5350  if test -z "$GREP"; then
5351  ac_path_GREP_found=false
5352  # Loop through the user's path and test for each of PROGNAME-LIST
5353  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5354for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5355do
5356  IFS=$as_save_IFS
5357  test -z "$as_dir" && as_dir=.
5358    for ac_prog in grep ggrep; do
5359    for ac_exec_ext in '' $ac_executable_extensions; do
5360      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5361      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5362# Check for GNU ac_path_GREP and select it if it is found.
5363  # Check for GNU $ac_path_GREP
5364case `"$ac_path_GREP" --version 2>&1` in
5365*GNU*)
5366  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5367*)
5368  ac_count=0
5369  $as_echo_n 0123456789 >"conftest.in"
5370  while :
5371  do
5372    cat "conftest.in" "conftest.in" >"conftest.tmp"
5373    mv "conftest.tmp" "conftest.in"
5374    cp "conftest.in" "conftest.nl"
5375    $as_echo 'GREP' >> "conftest.nl"
5376    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5377    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5378    as_fn_arith $ac_count + 1 && ac_count=$as_val
5379    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5380      # Best one so far, save it but keep looking for a better one
5381      ac_cv_path_GREP="$ac_path_GREP"
5382      ac_path_GREP_max=$ac_count
5383    fi
5384    # 10*(2^10) chars as input seems more than enough
5385    test $ac_count -gt 10 && break
5386  done
5387  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5388esac
5389
5390      $ac_path_GREP_found && break 3
5391    done
5392  done
5393  done
5394IFS=$as_save_IFS
5395  if test -z "$ac_cv_path_GREP"; then
5396    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5397  fi
5398else
5399  ac_cv_path_GREP=$GREP
5400fi
5401
5402fi
5403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5404$as_echo "$ac_cv_path_GREP" >&6; }
5405 GREP="$ac_cv_path_GREP"
5406
5407
5408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5409$as_echo_n "checking for egrep... " >&6; }
5410if test "${ac_cv_path_EGREP+set}" = set; then :
5411  $as_echo_n "(cached) " >&6
5412else
5413  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5414   then ac_cv_path_EGREP="$GREP -E"
5415   else
5416     if test -z "$EGREP"; then
5417  ac_path_EGREP_found=false
5418  # Loop through the user's path and test for each of PROGNAME-LIST
5419  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5420for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5421do
5422  IFS=$as_save_IFS
5423  test -z "$as_dir" && as_dir=.
5424    for ac_prog in egrep; do
5425    for ac_exec_ext in '' $ac_executable_extensions; do
5426      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5427      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5428# Check for GNU ac_path_EGREP and select it if it is found.
5429  # Check for GNU $ac_path_EGREP
5430case `"$ac_path_EGREP" --version 2>&1` in
5431*GNU*)
5432  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5433*)
5434  ac_count=0
5435  $as_echo_n 0123456789 >"conftest.in"
5436  while :
5437  do
5438    cat "conftest.in" "conftest.in" >"conftest.tmp"
5439    mv "conftest.tmp" "conftest.in"
5440    cp "conftest.in" "conftest.nl"
5441    $as_echo 'EGREP' >> "conftest.nl"
5442    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5443    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5444    as_fn_arith $ac_count + 1 && ac_count=$as_val
5445    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5446      # Best one so far, save it but keep looking for a better one
5447      ac_cv_path_EGREP="$ac_path_EGREP"
5448      ac_path_EGREP_max=$ac_count
5449    fi
5450    # 10*(2^10) chars as input seems more than enough
5451    test $ac_count -gt 10 && break
5452  done
5453  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5454esac
5455
5456      $ac_path_EGREP_found && break 3
5457    done
5458  done
5459  done
5460IFS=$as_save_IFS
5461  if test -z "$ac_cv_path_EGREP"; then
5462    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5463  fi
5464else
5465  ac_cv_path_EGREP=$EGREP
5466fi
5467
5468   fi
5469fi
5470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5471$as_echo "$ac_cv_path_EGREP" >&6; }
5472 EGREP="$ac_cv_path_EGREP"
5473
5474
5475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5476$as_echo_n "checking for fgrep... " >&6; }
5477if test "${ac_cv_path_FGREP+set}" = set; then :
5478  $as_echo_n "(cached) " >&6
5479else
5480  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5481   then ac_cv_path_FGREP="$GREP -F"
5482   else
5483     if test -z "$FGREP"; then
5484  ac_path_FGREP_found=false
5485  # Loop through the user's path and test for each of PROGNAME-LIST
5486  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5487for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5488do
5489  IFS=$as_save_IFS
5490  test -z "$as_dir" && as_dir=.
5491    for ac_prog in fgrep; do
5492    for ac_exec_ext in '' $ac_executable_extensions; do
5493      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5494      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5495# Check for GNU ac_path_FGREP and select it if it is found.
5496  # Check for GNU $ac_path_FGREP
5497case `"$ac_path_FGREP" --version 2>&1` in
5498*GNU*)
5499  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5500*)
5501  ac_count=0
5502  $as_echo_n 0123456789 >"conftest.in"
5503  while :
5504  do
5505    cat "conftest.in" "conftest.in" >"conftest.tmp"
5506    mv "conftest.tmp" "conftest.in"
5507    cp "conftest.in" "conftest.nl"
5508    $as_echo 'FGREP' >> "conftest.nl"
5509    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5510    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5511    as_fn_arith $ac_count + 1 && ac_count=$as_val
5512    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5513      # Best one so far, save it but keep looking for a better one
5514      ac_cv_path_FGREP="$ac_path_FGREP"
5515      ac_path_FGREP_max=$ac_count
5516    fi
5517    # 10*(2^10) chars as input seems more than enough
5518    test $ac_count -gt 10 && break
5519  done
5520  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5521esac
5522
5523      $ac_path_FGREP_found && break 3
5524    done
5525  done
5526  done
5527IFS=$as_save_IFS
5528  if test -z "$ac_cv_path_FGREP"; then
5529    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5530  fi
5531else
5532  ac_cv_path_FGREP=$FGREP
5533fi
5534
5535   fi
5536fi
5537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5538$as_echo "$ac_cv_path_FGREP" >&6; }
5539 FGREP="$ac_cv_path_FGREP"
5540
5541
5542test -z "$GREP" && GREP=grep
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562# Check whether --with-gnu-ld was given.
5563if test "${with_gnu_ld+set}" = set; then :
5564  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5565else
5566  with_gnu_ld=no
5567fi
5568
5569ac_prog=ld
5570if test "$GCC" = yes; then
5571  # Check if gcc -print-prog-name=ld gives a path.
5572  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5573$as_echo_n "checking for ld used by $CC... " >&6; }
5574  case $host in
5575  *-*-mingw*)
5576    # gcc leaves a trailing carriage return which upsets mingw
5577    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5578  *)
5579    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5580  esac
5581  case $ac_prog in
5582    # Accept absolute paths.
5583    [\\/]* | ?:[\\/]*)
5584      re_direlt='/[^/][^/]*/\.\./'
5585      # Canonicalize the pathname of ld
5586      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5587      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5588        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5589      done
5590      test -z "$LD" && LD="$ac_prog"
5591      ;;
5592  "")
5593    # If it fails, then pretend we aren't using GCC.
5594    ac_prog=ld
5595    ;;
5596  *)
5597    # If it is relative, then search for the first ld in PATH.
5598    with_gnu_ld=unknown
5599    ;;
5600  esac
5601elif test "$with_gnu_ld" = yes; then
5602  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5603$as_echo_n "checking for GNU ld... " >&6; }
5604else
5605  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5606$as_echo_n "checking for non-GNU ld... " >&6; }
5607fi
5608if test "${lt_cv_path_LD+set}" = set; then :
5609  $as_echo_n "(cached) " >&6
5610else
5611  if test -z "$LD"; then
5612  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5613  for ac_dir in $PATH; do
5614    IFS="$lt_save_ifs"
5615    test -z "$ac_dir" && ac_dir=.
5616    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5617      lt_cv_path_LD="$ac_dir/$ac_prog"
5618      # Check to see if the program is GNU ld.  I'd rather use --version,
5619      # but apparently some variants of GNU ld only accept -v.
5620      # Break only if it was the GNU/non-GNU ld that we prefer.
5621      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5622      *GNU* | *'with BFD'*)
5623        test "$with_gnu_ld" != no && break
5624        ;;
5625      *)
5626        test "$with_gnu_ld" != yes && break
5627        ;;
5628      esac
5629    fi
5630  done
5631  IFS="$lt_save_ifs"
5632else
5633  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5634fi
5635fi
5636
5637LD="$lt_cv_path_LD"
5638if test -n "$LD"; then
5639  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5640$as_echo "$LD" >&6; }
5641else
5642  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5643$as_echo "no" >&6; }
5644fi
5645test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5647$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5648if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5649  $as_echo_n "(cached) " >&6
5650else
5651  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5652case `$LD -v 2>&1 </dev/null` in
5653*GNU* | *'with BFD'*)
5654  lt_cv_prog_gnu_ld=yes
5655  ;;
5656*)
5657  lt_cv_prog_gnu_ld=no
5658  ;;
5659esac
5660fi
5661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5662$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5663with_gnu_ld=$lt_cv_prog_gnu_ld
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5674$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5675if test "${lt_cv_path_NM+set}" = set; then :
5676  $as_echo_n "(cached) " >&6
5677else
5678  if test -n "$NM"; then
5679  # Let the user override the test.
5680  lt_cv_path_NM="$NM"
5681else
5682  lt_nm_to_check="${ac_tool_prefix}nm"
5683  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5684    lt_nm_to_check="$lt_nm_to_check nm"
5685  fi
5686  for lt_tmp_nm in $lt_nm_to_check; do
5687    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5688    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5689      IFS="$lt_save_ifs"
5690      test -z "$ac_dir" && ac_dir=.
5691      tmp_nm="$ac_dir/$lt_tmp_nm"
5692      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5693        # Check to see if the nm accepts a BSD-compat flag.
5694        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5695        #   nm: unknown option "B" ignored
5696        # Tru64's nm complains that /dev/null is an invalid object file
5697        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5698        */dev/null* | *'Invalid file or object type'*)
5699          lt_cv_path_NM="$tmp_nm -B"
5700          break
5701          ;;
5702        *)
5703          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5704          */dev/null*)
5705            lt_cv_path_NM="$tmp_nm -p"
5706            break
5707            ;;
5708          *)
5709            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5710            continue # so that we can try to find one that supports BSD flags
5711            ;;
5712          esac
5713          ;;
5714        esac
5715      fi
5716    done
5717    IFS="$lt_save_ifs"
5718  done
5719  : ${lt_cv_path_NM=no}
5720fi
5721fi
5722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5723$as_echo "$lt_cv_path_NM" >&6; }
5724if test "$lt_cv_path_NM" != "no"; then
5725  NM="$lt_cv_path_NM"
5726else
5727  # Didn't find any BSD compatible name lister, look for dumpbin.
5728  if test -n "$ac_tool_prefix"; then
5729  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5730  do
5731    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5732set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5734$as_echo_n "checking for $ac_word... " >&6; }
5735if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5736  $as_echo_n "(cached) " >&6
5737else
5738  if test -n "$DUMPBIN"; then
5739  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5740else
5741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5742for as_dir in $PATH
5743do
5744  IFS=$as_save_IFS
5745  test -z "$as_dir" && as_dir=.
5746    for ac_exec_ext in '' $ac_executable_extensions; do
5747  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5748    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5749    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5750    break 2
5751  fi
5752done
5753  done
5754IFS=$as_save_IFS
5755
5756fi
5757fi
5758DUMPBIN=$ac_cv_prog_DUMPBIN
5759if test -n "$DUMPBIN"; then
5760  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5761$as_echo "$DUMPBIN" >&6; }
5762else
5763  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5764$as_echo "no" >&6; }
5765fi
5766
5767
5768    test -n "$DUMPBIN" && break
5769  done
5770fi
5771if test -z "$DUMPBIN"; then
5772  ac_ct_DUMPBIN=$DUMPBIN
5773  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5774do
5775  # Extract the first word of "$ac_prog", so it can be a program name with args.
5776set dummy $ac_prog; ac_word=$2
5777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5778$as_echo_n "checking for $ac_word... " >&6; }
5779if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5780  $as_echo_n "(cached) " >&6
5781else
5782  if test -n "$ac_ct_DUMPBIN"; then
5783  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5784else
5785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5786for as_dir in $PATH
5787do
5788  IFS=$as_save_IFS
5789  test -z "$as_dir" && as_dir=.
5790    for ac_exec_ext in '' $ac_executable_extensions; do
5791  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5792    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5793    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5794    break 2
5795  fi
5796done
5797  done
5798IFS=$as_save_IFS
5799
5800fi
5801fi
5802ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5803if test -n "$ac_ct_DUMPBIN"; then
5804  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5805$as_echo "$ac_ct_DUMPBIN" >&6; }
5806else
5807  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5808$as_echo "no" >&6; }
5809fi
5810
5811
5812  test -n "$ac_ct_DUMPBIN" && break
5813done
5814
5815  if test "x$ac_ct_DUMPBIN" = x; then
5816    DUMPBIN=":"
5817  else
5818    case $cross_compiling:$ac_tool_warned in
5819yes:)
5820{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5821$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5822ac_tool_warned=yes ;;
5823esac
5824    DUMPBIN=$ac_ct_DUMPBIN
5825  fi
5826fi
5827
5828
5829  if test "$DUMPBIN" != ":"; then
5830    NM="$DUMPBIN"
5831  fi
5832fi
5833test -z "$NM" && NM=nm
5834
5835
5836
5837
5838
5839
5840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5841$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5842if test "${lt_cv_nm_interface+set}" = set; then :
5843  $as_echo_n "(cached) " >&6
5844else
5845  lt_cv_nm_interface="BSD nm"
5846  echo "int some_variable = 0;" > conftest.$ac_ext
5847  (eval echo "\"\$as_me:5847: $ac_compile\"" >&5)
5848  (eval "$ac_compile" 2>conftest.err)
5849  cat conftest.err >&5
5850  (eval echo "\"\$as_me:5850: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5851  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5852  cat conftest.err >&5
5853  (eval echo "\"\$as_me:5853: output\"" >&5)
5854  cat conftest.out >&5
5855  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5856    lt_cv_nm_interface="MS dumpbin"
5857  fi
5858  rm -f conftest*
5859fi
5860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5861$as_echo "$lt_cv_nm_interface" >&6; }
5862
5863# find the maximum length of command line arguments
5864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5865$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5866if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5867  $as_echo_n "(cached) " >&6
5868else
5869    i=0
5870  teststring="ABCD"
5871
5872  case $build_os in
5873  msdosdjgpp*)
5874    # On DJGPP, this test can blow up pretty badly due to problems in libc
5875    # (any single argument exceeding 2000 bytes causes a buffer overrun
5876    # during glob expansion).  Even if it were fixed, the result of this
5877    # check would be larger than it should be.
5878    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5879    ;;
5880
5881  gnu*)
5882    # Under GNU Hurd, this test is not required because there is
5883    # no limit to the length of command line arguments.
5884    # Libtool will interpret -1 as no limit whatsoever
5885    lt_cv_sys_max_cmd_len=-1;
5886    ;;
5887
5888  cygwin* | mingw* | cegcc*)
5889    # On Win9x/ME, this test blows up -- it succeeds, but takes
5890    # about 5 minutes as the teststring grows exponentially.
5891    # Worse, since 9x/ME are not pre-emptively multitasking,
5892    # you end up with a "frozen" computer, even though with patience
5893    # the test eventually succeeds (with a max line length of 256k).
5894    # Instead, let's just punt: use the minimum linelength reported by
5895    # all of the supported platforms: 8192 (on NT/2K/XP).
5896    lt_cv_sys_max_cmd_len=8192;
5897    ;;
5898
5899  amigaos*)
5900    # On AmigaOS with pdksh, this test takes hours, literally.
5901    # So we just punt and use a minimum line length of 8192.
5902    lt_cv_sys_max_cmd_len=8192;
5903    ;;
5904
5905  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5906    # This has been around since 386BSD, at least.  Likely further.
5907    if test -x /sbin/sysctl; then
5908      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5909    elif test -x /usr/sbin/sysctl; then
5910      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5911    else
5912      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5913    fi
5914    # And add a safety zone
5915    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5916    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5917    ;;
5918
5919  interix*)
5920    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5921    lt_cv_sys_max_cmd_len=196608
5922    ;;
5923
5924  osf*)
5925    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5926    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5927    # nice to cause kernel panics so lets avoid the loop below.
5928    # First set a reasonable default.
5929    lt_cv_sys_max_cmd_len=16384
5930    #
5931    if test -x /sbin/sysconfig; then
5932      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5933        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5934      esac
5935    fi
5936    ;;
5937  sco3.2v5*)
5938    lt_cv_sys_max_cmd_len=102400
5939    ;;
5940  sysv5* | sco5v6* | sysv4.2uw2*)
5941    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5942    if test -n "$kargmax"; then
5943      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5944    else
5945      lt_cv_sys_max_cmd_len=32768
5946    fi
5947    ;;
5948  *)
5949    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5950    if test -n "$lt_cv_sys_max_cmd_len"; then
5951      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5952      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5953    else
5954      # Make teststring a little bigger before we do anything with it.
5955      # a 1K string should be a reasonable start.
5956      for i in 1 2 3 4 5 6 7 8 ; do
5957        teststring=$teststring$teststring
5958      done
5959      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5960      # If test is not a shell built-in, we'll probably end up computing a
5961      # maximum length that is only half of the actual maximum length, but
5962      # we can't tell.
5963      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5964                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5965              test $i != 17 # 1/2 MB should be enough
5966      do
5967        i=`expr $i + 1`
5968        teststring=$teststring$teststring
5969      done
5970      # Only check the string length outside the loop.
5971      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5972      teststring=
5973      # Add a significant safety factor because C++ compilers can tack on
5974      # massive amounts of additional arguments before passing them to the
5975      # linker.  It appears as though 1/2 is a usable value.
5976      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5977    fi
5978    ;;
5979  esac
5980
5981fi
5982
5983if test -n $lt_cv_sys_max_cmd_len ; then
5984  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5985$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5986else
5987  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5988$as_echo "none" >&6; }
5989fi
5990max_cmd_len=$lt_cv_sys_max_cmd_len
5991
5992
5993
5994
5995
5996
5997: ${CP="cp -f"}
5998: ${MV="mv -f"}
5999: ${RM="rm -f"}
6000
6001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6002$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6003# Try some XSI features
6004xsi_shell=no
6005( _lt_dummy="a/b/c"
6006  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6007      = c,a/b,, \
6008    && eval 'test $(( 1 + 1 )) -eq 2 \
6009    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6010  && xsi_shell=yes
6011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6012$as_echo "$xsi_shell" >&6; }
6013
6014
6015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6016$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6017lt_shell_append=no
6018( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6019    >/dev/null 2>&1 \
6020  && lt_shell_append=yes
6021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6022$as_echo "$lt_shell_append" >&6; }
6023
6024
6025if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6026  lt_unset=unset
6027else
6028  lt_unset=false
6029fi
6030
6031
6032
6033
6034
6035# test EBCDIC or ASCII
6036case `echo X|tr X '\101'` in
6037 A) # ASCII based system
6038    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6039  lt_SP2NL='tr \040 \012'
6040  lt_NL2SP='tr \015\012 \040\040'
6041  ;;
6042 *) # EBCDIC based system
6043  lt_SP2NL='tr \100 \n'
6044  lt_NL2SP='tr \r\n \100\100'
6045  ;;
6046esac
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6057$as_echo_n "checking for $LD option to reload object files... " >&6; }
6058if test "${lt_cv_ld_reload_flag+set}" = set; then :
6059  $as_echo_n "(cached) " >&6
6060else
6061  lt_cv_ld_reload_flag='-r'
6062fi
6063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6064$as_echo "$lt_cv_ld_reload_flag" >&6; }
6065reload_flag=$lt_cv_ld_reload_flag
6066case $reload_flag in
6067"" | " "*) ;;
6068*) reload_flag=" $reload_flag" ;;
6069esac
6070reload_cmds='$LD$reload_flag -o $output$reload_objs'
6071case $host_os in
6072  darwin*)
6073    if test "$GCC" = yes; then
6074      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6075    else
6076      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6077    fi
6078    ;;
6079esac
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089if test -n "$ac_tool_prefix"; then
6090  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6091set dummy ${ac_tool_prefix}objdump; ac_word=$2
6092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6093$as_echo_n "checking for $ac_word... " >&6; }
6094if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6095  $as_echo_n "(cached) " >&6
6096else
6097  if test -n "$OBJDUMP"; then
6098  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6099else
6100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6101for as_dir in $PATH
6102do
6103  IFS=$as_save_IFS
6104  test -z "$as_dir" && as_dir=.
6105    for ac_exec_ext in '' $ac_executable_extensions; do
6106  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6107    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6108    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6109    break 2
6110  fi
6111done
6112  done
6113IFS=$as_save_IFS
6114
6115fi
6116fi
6117OBJDUMP=$ac_cv_prog_OBJDUMP
6118if test -n "$OBJDUMP"; then
6119  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6120$as_echo "$OBJDUMP" >&6; }
6121else
6122  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6123$as_echo "no" >&6; }
6124fi
6125
6126
6127fi
6128if test -z "$ac_cv_prog_OBJDUMP"; then
6129  ac_ct_OBJDUMP=$OBJDUMP
6130  # Extract the first word of "objdump", so it can be a program name with args.
6131set dummy objdump; ac_word=$2
6132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6133$as_echo_n "checking for $ac_word... " >&6; }
6134if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6135  $as_echo_n "(cached) " >&6
6136else
6137  if test -n "$ac_ct_OBJDUMP"; then
6138  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6139else
6140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6141for as_dir in $PATH
6142do
6143  IFS=$as_save_IFS
6144  test -z "$as_dir" && as_dir=.
6145    for ac_exec_ext in '' $ac_executable_extensions; do
6146  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6147    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6148    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6149    break 2
6150  fi
6151done
6152  done
6153IFS=$as_save_IFS
6154
6155fi
6156fi
6157ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6158if test -n "$ac_ct_OBJDUMP"; then
6159  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6160$as_echo "$ac_ct_OBJDUMP" >&6; }
6161else
6162  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6163$as_echo "no" >&6; }
6164fi
6165
6166  if test "x$ac_ct_OBJDUMP" = x; then
6167    OBJDUMP="false"
6168  else
6169    case $cross_compiling:$ac_tool_warned in
6170yes:)
6171{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6172$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6173ac_tool_warned=yes ;;
6174esac
6175    OBJDUMP=$ac_ct_OBJDUMP
6176  fi
6177else
6178  OBJDUMP="$ac_cv_prog_OBJDUMP"
6179fi
6180
6181test -z "$OBJDUMP" && OBJDUMP=objdump
6182
6183
6184
6185
6186
6187
6188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6189$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6190if test "${lt_cv_deplibs_check_method+set}" = set; then :
6191  $as_echo_n "(cached) " >&6
6192else
6193  lt_cv_file_magic_cmd='$MAGIC_CMD'
6194lt_cv_file_magic_test_file=
6195lt_cv_deplibs_check_method='unknown'
6196# Need to set the preceding variable on all platforms that support
6197# interlibrary dependencies.
6198# 'none' -- dependencies not supported.
6199# `unknown' -- same as none, but documents that we really don't know.
6200# 'pass_all' -- all dependencies passed with no checks.
6201# 'test_compile' -- check by making test program.
6202# 'file_magic [[regex]]' -- check by looking for files in library path
6203# which responds to the $file_magic_cmd with a given extended regex.
6204# If you have `file' or equivalent on your system and you're not sure
6205# whether `pass_all' will *always* work, you probably want this one.
6206
6207case $host_os in
6208aix[4-9]*)
6209  lt_cv_deplibs_check_method=pass_all
6210  ;;
6211
6212beos*)
6213  lt_cv_deplibs_check_method=pass_all
6214  ;;
6215
6216bsdi[45]*)
6217  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6218  lt_cv_file_magic_cmd='/usr/bin/file -L'
6219  lt_cv_file_magic_test_file=/shlib/libc.so
6220  ;;
6221
6222cygwin*)
6223  # func_win32_libid is a shell function defined in ltmain.sh
6224  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6225  lt_cv_file_magic_cmd='func_win32_libid'
6226  ;;
6227
6228mingw* | pw32*)
6229  # Base MSYS/MinGW do not provide the 'file' command needed by
6230  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6231  # unless we find 'file', for example because we are cross-compiling.
6232  if ( file / ) >/dev/null 2>&1; then
6233    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6234    lt_cv_file_magic_cmd='func_win32_libid'
6235  else
6236    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6237    lt_cv_file_magic_cmd='$OBJDUMP -f'
6238  fi
6239  ;;
6240
6241cegcc)
6242  # use the weaker test based on 'objdump'. See mingw*.
6243  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6244  lt_cv_file_magic_cmd='$OBJDUMP -f'
6245  ;;
6246
6247darwin* | rhapsody*)
6248  lt_cv_deplibs_check_method=pass_all
6249  ;;
6250
6251freebsd* | dragonfly*)
6252  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6253    case $host_cpu in
6254    i*86 )
6255      # Not sure whether the presence of OpenBSD here was a mistake.
6256      # Let's accept both of them until this is cleared up.
6257      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6258      lt_cv_file_magic_cmd=/usr/bin/file
6259      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6260      ;;
6261    esac
6262  else
6263    lt_cv_deplibs_check_method=pass_all
6264  fi
6265  ;;
6266
6267gnu*)
6268  lt_cv_deplibs_check_method=pass_all
6269  ;;
6270
6271hpux10.20* | hpux11*)
6272  lt_cv_file_magic_cmd=/usr/bin/file
6273  case $host_cpu in
6274  ia64*)
6275    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6276    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6277    ;;
6278  hppa*64*)
6279    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6280    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6281    ;;
6282  *)
6283    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6284    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6285    ;;
6286  esac
6287  ;;
6288
6289interix[3-9]*)
6290  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6291  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6292  ;;
6293
6294irix5* | irix6* | nonstopux*)
6295  case $LD in
6296  *-32|*"-32 ") libmagic=32-bit;;
6297  *-n32|*"-n32 ") libmagic=N32;;
6298  *-64|*"-64 ") libmagic=64-bit;;
6299  *) libmagic=never-match;;
6300  esac
6301  lt_cv_deplibs_check_method=pass_all
6302  ;;
6303
6304# This must be Linux ELF.
6305linux* | k*bsd*-gnu)
6306  lt_cv_deplibs_check_method=pass_all
6307  ;;
6308
6309netbsd*)
6310  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6311    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6312  else
6313    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6314  fi
6315  ;;
6316
6317newos6*)
6318  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6319  lt_cv_file_magic_cmd=/usr/bin/file
6320  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6321  ;;
6322
6323*nto* | *qnx*)
6324  lt_cv_deplibs_check_method=pass_all
6325  ;;
6326
6327openbsd*)
6328  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6329    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6330  else
6331    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6332  fi
6333  ;;
6334
6335osf3* | osf4* | osf5*)
6336  lt_cv_deplibs_check_method=pass_all
6337  ;;
6338
6339rdos*)
6340  lt_cv_deplibs_check_method=pass_all
6341  ;;
6342
6343solaris*)
6344  lt_cv_deplibs_check_method=pass_all
6345  ;;
6346
6347sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6348  lt_cv_deplibs_check_method=pass_all
6349  ;;
6350
6351sysv4 | sysv4.3*)
6352  case $host_vendor in
6353  motorola)
6354    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]'
6355    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6356    ;;
6357  ncr)
6358    lt_cv_deplibs_check_method=pass_all
6359    ;;
6360  sequent)
6361    lt_cv_file_magic_cmd='/bin/file'
6362    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6363    ;;
6364  sni)
6365    lt_cv_file_magic_cmd='/bin/file'
6366    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6367    lt_cv_file_magic_test_file=/lib/libc.so
6368    ;;
6369  siemens)
6370    lt_cv_deplibs_check_method=pass_all
6371    ;;
6372  pc)
6373    lt_cv_deplibs_check_method=pass_all
6374    ;;
6375  esac
6376  ;;
6377
6378tpf*)
6379  lt_cv_deplibs_check_method=pass_all
6380  ;;
6381esac
6382
6383fi
6384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6385$as_echo "$lt_cv_deplibs_check_method" >&6; }
6386file_magic_cmd=$lt_cv_file_magic_cmd
6387deplibs_check_method=$lt_cv_deplibs_check_method
6388test -z "$deplibs_check_method" && deplibs_check_method=unknown
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401if test -n "$ac_tool_prefix"; then
6402  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6403set dummy ${ac_tool_prefix}ar; ac_word=$2
6404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6405$as_echo_n "checking for $ac_word... " >&6; }
6406if test "${ac_cv_prog_AR+set}" = set; then :
6407  $as_echo_n "(cached) " >&6
6408else
6409  if test -n "$AR"; then
6410  ac_cv_prog_AR="$AR" # Let the user override the test.
6411else
6412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6413for as_dir in $PATH
6414do
6415  IFS=$as_save_IFS
6416  test -z "$as_dir" && as_dir=.
6417    for ac_exec_ext in '' $ac_executable_extensions; do
6418  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6419    ac_cv_prog_AR="${ac_tool_prefix}ar"
6420    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6421    break 2
6422  fi
6423done
6424  done
6425IFS=$as_save_IFS
6426
6427fi
6428fi
6429AR=$ac_cv_prog_AR
6430if test -n "$AR"; then
6431  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6432$as_echo "$AR" >&6; }
6433else
6434  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6435$as_echo "no" >&6; }
6436fi
6437
6438
6439fi
6440if test -z "$ac_cv_prog_AR"; then
6441  ac_ct_AR=$AR
6442  # Extract the first word of "ar", so it can be a program name with args.
6443set dummy ar; ac_word=$2
6444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6445$as_echo_n "checking for $ac_word... " >&6; }
6446if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6447  $as_echo_n "(cached) " >&6
6448else
6449  if test -n "$ac_ct_AR"; then
6450  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6451else
6452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6453for as_dir in $PATH
6454do
6455  IFS=$as_save_IFS
6456  test -z "$as_dir" && as_dir=.
6457    for ac_exec_ext in '' $ac_executable_extensions; do
6458  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6459    ac_cv_prog_ac_ct_AR="ar"
6460    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6461    break 2
6462  fi
6463done
6464  done
6465IFS=$as_save_IFS
6466
6467fi
6468fi
6469ac_ct_AR=$ac_cv_prog_ac_ct_AR
6470if test -n "$ac_ct_AR"; then
6471  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6472$as_echo "$ac_ct_AR" >&6; }
6473else
6474  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6475$as_echo "no" >&6; }
6476fi
6477
6478  if test "x$ac_ct_AR" = x; then
6479    AR="false"
6480  else
6481    case $cross_compiling:$ac_tool_warned in
6482yes:)
6483{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6484$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6485ac_tool_warned=yes ;;
6486esac
6487    AR=$ac_ct_AR
6488  fi
6489else
6490  AR="$ac_cv_prog_AR"
6491fi
6492
6493test -z "$AR" && AR=ar
6494test -z "$AR_FLAGS" && AR_FLAGS=cru
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506if test -n "$ac_tool_prefix"; then
6507  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6508set dummy ${ac_tool_prefix}strip; ac_word=$2
6509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6510$as_echo_n "checking for $ac_word... " >&6; }
6511if test "${ac_cv_prog_STRIP+set}" = set; then :
6512  $as_echo_n "(cached) " >&6
6513else
6514  if test -n "$STRIP"; then
6515  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6516else
6517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6518for as_dir in $PATH
6519do
6520  IFS=$as_save_IFS
6521  test -z "$as_dir" && as_dir=.
6522    for ac_exec_ext in '' $ac_executable_extensions; do
6523  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6524    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6525    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6526    break 2
6527  fi
6528done
6529  done
6530IFS=$as_save_IFS
6531
6532fi
6533fi
6534STRIP=$ac_cv_prog_STRIP
6535if test -n "$STRIP"; then
6536  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6537$as_echo "$STRIP" >&6; }
6538else
6539  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6540$as_echo "no" >&6; }
6541fi
6542
6543
6544fi
6545if test -z "$ac_cv_prog_STRIP"; then
6546  ac_ct_STRIP=$STRIP
6547  # Extract the first word of "strip", so it can be a program name with args.
6548set dummy strip; ac_word=$2
6549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6550$as_echo_n "checking for $ac_word... " >&6; }
6551if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6552  $as_echo_n "(cached) " >&6
6553else
6554  if test -n "$ac_ct_STRIP"; then
6555  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6556else
6557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6558for as_dir in $PATH
6559do
6560  IFS=$as_save_IFS
6561  test -z "$as_dir" && as_dir=.
6562    for ac_exec_ext in '' $ac_executable_extensions; do
6563  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6564    ac_cv_prog_ac_ct_STRIP="strip"
6565    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6566    break 2
6567  fi
6568done
6569  done
6570IFS=$as_save_IFS
6571
6572fi
6573fi
6574ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6575if test -n "$ac_ct_STRIP"; then
6576  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6577$as_echo "$ac_ct_STRIP" >&6; }
6578else
6579  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6580$as_echo "no" >&6; }
6581fi
6582
6583  if test "x$ac_ct_STRIP" = x; then
6584    STRIP=":"
6585  else
6586    case $cross_compiling:$ac_tool_warned in
6587yes:)
6588{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6589$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6590ac_tool_warned=yes ;;
6591esac
6592    STRIP=$ac_ct_STRIP
6593  fi
6594else
6595  STRIP="$ac_cv_prog_STRIP"
6596fi
6597
6598test -z "$STRIP" && STRIP=:
6599
6600
6601
6602
6603
6604
6605if test -n "$ac_tool_prefix"; then
6606  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6607set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6609$as_echo_n "checking for $ac_word... " >&6; }
6610if test "${ac_cv_prog_RANLIB+set}" = set; then :
6611  $as_echo_n "(cached) " >&6
6612else
6613  if test -n "$RANLIB"; then
6614  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6615else
6616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6617for as_dir in $PATH
6618do
6619  IFS=$as_save_IFS
6620  test -z "$as_dir" && as_dir=.
6621    for ac_exec_ext in '' $ac_executable_extensions; do
6622  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6623    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6624    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6625    break 2
6626  fi
6627done
6628  done
6629IFS=$as_save_IFS
6630
6631fi
6632fi
6633RANLIB=$ac_cv_prog_RANLIB
6634if test -n "$RANLIB"; then
6635  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6636$as_echo "$RANLIB" >&6; }
6637else
6638  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6639$as_echo "no" >&6; }
6640fi
6641
6642
6643fi
6644if test -z "$ac_cv_prog_RANLIB"; then
6645  ac_ct_RANLIB=$RANLIB
6646  # Extract the first word of "ranlib", so it can be a program name with args.
6647set dummy ranlib; ac_word=$2
6648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6649$as_echo_n "checking for $ac_word... " >&6; }
6650if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6651  $as_echo_n "(cached) " >&6
6652else
6653  if test -n "$ac_ct_RANLIB"; then
6654  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6655else
6656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6657for as_dir in $PATH
6658do
6659  IFS=$as_save_IFS
6660  test -z "$as_dir" && as_dir=.
6661    for ac_exec_ext in '' $ac_executable_extensions; do
6662  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6663    ac_cv_prog_ac_ct_RANLIB="ranlib"
6664    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6665    break 2
6666  fi
6667done
6668  done
6669IFS=$as_save_IFS
6670
6671fi
6672fi
6673ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6674if test -n "$ac_ct_RANLIB"; then
6675  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6676$as_echo "$ac_ct_RANLIB" >&6; }
6677else
6678  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6679$as_echo "no" >&6; }
6680fi
6681
6682  if test "x$ac_ct_RANLIB" = x; then
6683    RANLIB=":"
6684  else
6685    case $cross_compiling:$ac_tool_warned in
6686yes:)
6687{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6688$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6689ac_tool_warned=yes ;;
6690esac
6691    RANLIB=$ac_ct_RANLIB
6692  fi
6693else
6694  RANLIB="$ac_cv_prog_RANLIB"
6695fi
6696
6697test -z "$RANLIB" && RANLIB=:
6698
6699
6700
6701
6702
6703
6704# Determine commands to create old-style static archives.
6705old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6706old_postinstall_cmds='chmod 644 $oldlib'
6707old_postuninstall_cmds=
6708
6709if test -n "$RANLIB"; then
6710  case $host_os in
6711  openbsd*)
6712    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6713    ;;
6714  *)
6715    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6716    ;;
6717  esac
6718  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6719fi
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754# If no C compiler was specified, use CC.
6755LTCC=${LTCC-"$CC"}
6756
6757# If no C compiler flags were specified, use CFLAGS.
6758LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6759
6760# Allow CC to be a program name with arguments.
6761compiler=$CC
6762
6763
6764# Check for command to grab the raw symbol name followed by C symbol from nm.
6765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6766$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6767if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6768  $as_echo_n "(cached) " >&6
6769else
6770
6771# These are sane defaults that work on at least a few old systems.
6772# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6773
6774# Character class describing NM global symbol codes.
6775symcode='[BCDEGRST]'
6776
6777# Regexp to match symbols that can be accessed directly from C.
6778sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6779
6780# Define system-specific variables.
6781case $host_os in
6782aix*)
6783  symcode='[BCDT]'
6784  ;;
6785cygwin* | mingw* | pw32* | cegcc*)
6786  symcode='[ABCDGISTW]'
6787  ;;
6788hpux*)
6789  if test "$host_cpu" = ia64; then
6790    symcode='[ABCDEGRST]'
6791  fi
6792  ;;
6793irix* | nonstopux*)
6794  symcode='[BCDEGRST]'
6795  ;;
6796osf*)
6797  symcode='[BCDEGQRST]'
6798  ;;
6799solaris*)
6800  symcode='[BDRT]'
6801  ;;
6802sco3.2v5*)
6803  symcode='[DT]'
6804  ;;
6805sysv4.2uw2*)
6806  symcode='[DT]'
6807  ;;
6808sysv5* | sco5v6* | unixware* | OpenUNIX*)
6809  symcode='[ABDT]'
6810  ;;
6811sysv4)
6812  symcode='[DFNSTU]'
6813  ;;
6814esac
6815
6816# If we're using GNU nm, then use its standard symbol codes.
6817case `$NM -V 2>&1` in
6818*GNU* | *'with BFD'*)
6819  symcode='[ABCDGIRSTW]' ;;
6820esac
6821
6822# Transform an extracted symbol line into a proper C declaration.
6823# Some systems (esp. on ia64) link data and code symbols differently,
6824# so use this general approach.
6825lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6826
6827# Transform an extracted symbol line into symbol name and symbol address
6828lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6829lt_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'"
6830
6831# Handle CRLF in mingw tool chain
6832opt_cr=
6833case $build_os in
6834mingw*)
6835  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6836  ;;
6837esac
6838
6839# Try without a prefix underscore, then with it.
6840for ac_symprfx in "" "_"; do
6841
6842  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6843  symxfrm="\\1 $ac_symprfx\\2 \\2"
6844
6845  # Write the raw and C identifiers.
6846  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6847    # Fake it for dumpbin and say T for any non-static function
6848    # and D for any global variable.
6849    # Also find C++ and __fastcall symbols from MSVC++,
6850    # which start with @ or ?.
6851    lt_cv_sys_global_symbol_pipe="$AWK '"\
6852"     {last_section=section; section=\$ 3};"\
6853"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6854"     \$ 0!~/External *\|/{next};"\
6855"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6856"     {if(hide[section]) next};"\
6857"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6858"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6859"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6860"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6861"     ' prfx=^$ac_symprfx"
6862  else
6863    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6864  fi
6865
6866  # Check to see that the pipe works correctly.
6867  pipe_works=no
6868
6869  rm -f conftest*
6870  cat > conftest.$ac_ext <<_LT_EOF
6871#ifdef __cplusplus
6872extern "C" {
6873#endif
6874char nm_test_var;
6875void nm_test_func(void);
6876void nm_test_func(void){}
6877#ifdef __cplusplus
6878}
6879#endif
6880int main(){nm_test_var='a';nm_test_func();return(0);}
6881_LT_EOF
6882
6883  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6884  (eval $ac_compile) 2>&5
6885  ac_status=$?
6886  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6887  test $ac_status = 0; }; then
6888    # Now try to grab the symbols.
6889    nlist=conftest.nm
6890    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6891  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6892  ac_status=$?
6893  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6894  test $ac_status = 0; } && test -s "$nlist"; then
6895      # Try sorting and uniquifying the output.
6896      if sort "$nlist" | uniq > "$nlist"T; then
6897        mv -f "$nlist"T "$nlist"
6898      else
6899        rm -f "$nlist"T
6900      fi
6901
6902      # Make sure that we snagged all the symbols we need.
6903      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6904        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6905          cat <<_LT_EOF > conftest.$ac_ext
6906#ifdef __cplusplus
6907extern "C" {
6908#endif
6909
6910_LT_EOF
6911          # Now generate the symbol file.
6912          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6913
6914          cat <<_LT_EOF >> conftest.$ac_ext
6915
6916/* The mapping between symbol names and symbols.  */
6917const struct {
6918  const char *name;
6919  void       *address;
6920}
6921lt__PROGRAM__LTX_preloaded_symbols[] =
6922{
6923  { "@PROGRAM@", (void *) 0 },
6924_LT_EOF
6925          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6926          cat <<\_LT_EOF >> conftest.$ac_ext
6927  {0, (void *) 0}
6928};
6929
6930/* This works around a problem in FreeBSD linker */
6931#ifdef FREEBSD_WORKAROUND
6932static const void *lt_preloaded_setup() {
6933  return lt__PROGRAM__LTX_preloaded_symbols;
6934}
6935#endif
6936
6937#ifdef __cplusplus
6938}
6939#endif
6940_LT_EOF
6941          # Now try linking the two files.
6942          mv conftest.$ac_objext conftstm.$ac_objext
6943          lt_save_LIBS="$LIBS"
6944          lt_save_CFLAGS="$CFLAGS"
6945          LIBS="conftstm.$ac_objext"
6946          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6947          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6948  (eval $ac_link) 2>&5
6949  ac_status=$?
6950  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6951  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6952            pipe_works=yes
6953          fi
6954          LIBS="$lt_save_LIBS"
6955          CFLAGS="$lt_save_CFLAGS"
6956        else
6957          echo "cannot find nm_test_func in $nlist" >&5
6958        fi
6959      else
6960        echo "cannot find nm_test_var in $nlist" >&5
6961      fi
6962    else
6963      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6964    fi
6965  else
6966    echo "$progname: failed program was:" >&5
6967    cat conftest.$ac_ext >&5
6968  fi
6969  rm -rf conftest* conftst*
6970
6971  # Do not use the global_symbol_pipe unless it works.
6972  if test "$pipe_works" = yes; then
6973    break
6974  else
6975    lt_cv_sys_global_symbol_pipe=
6976  fi
6977done
6978
6979fi
6980
6981if test -z "$lt_cv_sys_global_symbol_pipe"; then
6982  lt_cv_sys_global_symbol_to_cdecl=
6983fi
6984if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6985  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6986$as_echo "failed" >&6; }
6987else
6988  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6989$as_echo "ok" >&6; }
6990fi
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013# Check whether --enable-libtool-lock was given.
7014if test "${enable_libtool_lock+set}" = set; then :
7015  enableval=$enable_libtool_lock;
7016fi
7017
7018test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7019
7020# Some flags need to be propagated to the compiler or linker for good
7021# libtool support.
7022case $host in
7023ia64-*-hpux*)
7024  # Find out which ABI we are using.
7025  echo 'int i;' > conftest.$ac_ext
7026  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7027  (eval $ac_compile) 2>&5
7028  ac_status=$?
7029  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7030  test $ac_status = 0; }; then
7031    case `/usr/bin/file conftest.$ac_objext` in
7032      *ELF-32*)
7033        HPUX_IA64_MODE="32"
7034        ;;
7035      *ELF-64*)
7036        HPUX_IA64_MODE="64"
7037        ;;
7038    esac
7039  fi
7040  rm -rf conftest*
7041  ;;
7042*-*-irix6*)
7043  # Find out which ABI we are using.
7044  echo '#line 7044 "configure"' > conftest.$ac_ext
7045  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7046  (eval $ac_compile) 2>&5
7047  ac_status=$?
7048  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7049  test $ac_status = 0; }; then
7050    if test "$lt_cv_prog_gnu_ld" = yes; then
7051      case `/usr/bin/file conftest.$ac_objext` in
7052        *32-bit*)
7053          LD="${LD-ld} -melf32bsmip"
7054          ;;
7055        *N32*)
7056          LD="${LD-ld} -melf32bmipn32"
7057          ;;
7058        *64-bit*)
7059          LD="${LD-ld} -melf64bmip"
7060        ;;
7061      esac
7062    else
7063      case `/usr/bin/file conftest.$ac_objext` in
7064        *32-bit*)
7065          LD="${LD-ld} -32"
7066          ;;
7067        *N32*)
7068          LD="${LD-ld} -n32"
7069          ;;
7070        *64-bit*)
7071          LD="${LD-ld} -64"
7072          ;;
7073      esac
7074    fi
7075  fi
7076  rm -rf conftest*
7077  ;;
7078
7079x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7080s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7081  # Find out which ABI we are using.
7082  echo 'int i;' > conftest.$ac_ext
7083  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7084  (eval $ac_compile) 2>&5
7085  ac_status=$?
7086  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7087  test $ac_status = 0; }; then
7088    case `/usr/bin/file conftest.o` in
7089      *32-bit*)
7090        case $host in
7091          x86_64-*kfreebsd*-gnu)
7092            LD="${LD-ld} -m elf_i386_fbsd"
7093            ;;
7094          x86_64-*linux*)
7095            LD="${LD-ld} -m elf_i386"
7096            ;;
7097          ppc64-*linux*|powerpc64-*linux*)
7098            LD="${LD-ld} -m elf32ppclinux"
7099            ;;
7100          s390x-*linux*)
7101            LD="${LD-ld} -m elf_s390"
7102            ;;
7103          sparc64-*linux*)
7104            LD="${LD-ld} -m elf32_sparc"
7105            ;;
7106        esac
7107        ;;
7108      *64-bit*)
7109        case $host in
7110          x86_64-*kfreebsd*-gnu)
7111            LD="${LD-ld} -m elf_x86_64_fbsd"
7112            ;;
7113          x86_64-*linux*)
7114            LD="${LD-ld} -m elf_x86_64"
7115            ;;
7116          ppc*-*linux*|powerpc*-*linux*)
7117            LD="${LD-ld} -m elf64ppc"
7118            ;;
7119          s390*-*linux*|s390*-*tpf*)
7120            LD="${LD-ld} -m elf64_s390"
7121            ;;
7122          sparc*-*linux*)
7123            LD="${LD-ld} -m elf64_sparc"
7124            ;;
7125        esac
7126        ;;
7127    esac
7128  fi
7129  rm -rf conftest*
7130  ;;
7131
7132*-*-sco3.2v5*)
7133  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7134  SAVE_CFLAGS="$CFLAGS"
7135  CFLAGS="$CFLAGS -belf"
7136  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7137$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7138if test "${lt_cv_cc_needs_belf+set}" = set; then :
7139  $as_echo_n "(cached) " >&6
7140else
7141  ac_ext=c
7142ac_cpp='$CPP $CPPFLAGS'
7143ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7144ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7145ac_compiler_gnu=$ac_cv_c_compiler_gnu
7146
7147     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7148/* end confdefs.h.  */
7149
7150int
7151main ()
7152{
7153
7154  ;
7155  return 0;
7156}
7157_ACEOF
7158if ac_fn_c_try_link "$LINENO"; then :
7159  lt_cv_cc_needs_belf=yes
7160else
7161  lt_cv_cc_needs_belf=no
7162fi
7163rm -f core conftest.err conftest.$ac_objext \
7164    conftest$ac_exeext conftest.$ac_ext
7165     ac_ext=c
7166ac_cpp='$CPP $CPPFLAGS'
7167ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7168ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7169ac_compiler_gnu=$ac_cv_c_compiler_gnu
7170
7171fi
7172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7173$as_echo "$lt_cv_cc_needs_belf" >&6; }
7174  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7175    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7176    CFLAGS="$SAVE_CFLAGS"
7177  fi
7178  ;;
7179sparc*-*solaris*)
7180  # Find out which ABI we are using.
7181  echo 'int i;' > conftest.$ac_ext
7182  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7183  (eval $ac_compile) 2>&5
7184  ac_status=$?
7185  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7186  test $ac_status = 0; }; then
7187    case `/usr/bin/file conftest.o` in
7188    *64-bit*)
7189      case $lt_cv_prog_gnu_ld in
7190      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7191      *)
7192        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7193          LD="${LD-ld} -64"
7194        fi
7195        ;;
7196      esac
7197      ;;
7198    esac
7199  fi
7200  rm -rf conftest*
7201  ;;
7202esac
7203
7204need_locks="$enable_libtool_lock"
7205
7206
7207  case $host_os in
7208    rhapsody* | darwin*)
7209    if test -n "$ac_tool_prefix"; then
7210  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7211set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7213$as_echo_n "checking for $ac_word... " >&6; }
7214if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7215  $as_echo_n "(cached) " >&6
7216else
7217  if test -n "$DSYMUTIL"; then
7218  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7219else
7220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7221for as_dir in $PATH
7222do
7223  IFS=$as_save_IFS
7224  test -z "$as_dir" && as_dir=.
7225    for ac_exec_ext in '' $ac_executable_extensions; do
7226  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7227    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7228    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7229    break 2
7230  fi
7231done
7232  done
7233IFS=$as_save_IFS
7234
7235fi
7236fi
7237DSYMUTIL=$ac_cv_prog_DSYMUTIL
7238if test -n "$DSYMUTIL"; then
7239  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7240$as_echo "$DSYMUTIL" >&6; }
7241else
7242  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7243$as_echo "no" >&6; }
7244fi
7245
7246
7247fi
7248if test -z "$ac_cv_prog_DSYMUTIL"; then
7249  ac_ct_DSYMUTIL=$DSYMUTIL
7250  # Extract the first word of "dsymutil", so it can be a program name with args.
7251set dummy dsymutil; ac_word=$2
7252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7253$as_echo_n "checking for $ac_word... " >&6; }
7254if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7255  $as_echo_n "(cached) " >&6
7256else
7257  if test -n "$ac_ct_DSYMUTIL"; then
7258  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7259else
7260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7261for as_dir in $PATH
7262do
7263  IFS=$as_save_IFS
7264  test -z "$as_dir" && as_dir=.
7265    for ac_exec_ext in '' $ac_executable_extensions; do
7266  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7267    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7268    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7269    break 2
7270  fi
7271done
7272  done
7273IFS=$as_save_IFS
7274
7275fi
7276fi
7277ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7278if test -n "$ac_ct_DSYMUTIL"; then
7279  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7280$as_echo "$ac_ct_DSYMUTIL" >&6; }
7281else
7282  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7283$as_echo "no" >&6; }
7284fi
7285
7286  if test "x$ac_ct_DSYMUTIL" = x; then
7287    DSYMUTIL=":"
7288  else
7289    case $cross_compiling:$ac_tool_warned in
7290yes:)
7291{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7292$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7293ac_tool_warned=yes ;;
7294esac
7295    DSYMUTIL=$ac_ct_DSYMUTIL
7296  fi
7297else
7298  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7299fi
7300
7301    if test -n "$ac_tool_prefix"; then
7302  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7303set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7305$as_echo_n "checking for $ac_word... " >&6; }
7306if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7307  $as_echo_n "(cached) " >&6
7308else
7309  if test -n "$NMEDIT"; then
7310  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7311else
7312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7313for as_dir in $PATH
7314do
7315  IFS=$as_save_IFS
7316  test -z "$as_dir" && as_dir=.
7317    for ac_exec_ext in '' $ac_executable_extensions; do
7318  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7319    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7320    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7321    break 2
7322  fi
7323done
7324  done
7325IFS=$as_save_IFS
7326
7327fi
7328fi
7329NMEDIT=$ac_cv_prog_NMEDIT
7330if test -n "$NMEDIT"; then
7331  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7332$as_echo "$NMEDIT" >&6; }
7333else
7334  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7335$as_echo "no" >&6; }
7336fi
7337
7338
7339fi
7340if test -z "$ac_cv_prog_NMEDIT"; then
7341  ac_ct_NMEDIT=$NMEDIT
7342  # Extract the first word of "nmedit", so it can be a program name with args.
7343set dummy nmedit; ac_word=$2
7344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7345$as_echo_n "checking for $ac_word... " >&6; }
7346if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7347  $as_echo_n "(cached) " >&6
7348else
7349  if test -n "$ac_ct_NMEDIT"; then
7350  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7351else
7352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7353for as_dir in $PATH
7354do
7355  IFS=$as_save_IFS
7356  test -z "$as_dir" && as_dir=.
7357    for ac_exec_ext in '' $ac_executable_extensions; do
7358  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7359    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7360    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7361    break 2
7362  fi
7363done
7364  done
7365IFS=$as_save_IFS
7366
7367fi
7368fi
7369ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7370if test -n "$ac_ct_NMEDIT"; then
7371  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7372$as_echo "$ac_ct_NMEDIT" >&6; }
7373else
7374  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7375$as_echo "no" >&6; }
7376fi
7377
7378  if test "x$ac_ct_NMEDIT" = x; then
7379    NMEDIT=":"
7380  else
7381    case $cross_compiling:$ac_tool_warned in
7382yes:)
7383{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7384$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7385ac_tool_warned=yes ;;
7386esac
7387    NMEDIT=$ac_ct_NMEDIT
7388  fi
7389else
7390  NMEDIT="$ac_cv_prog_NMEDIT"
7391fi
7392
7393    if test -n "$ac_tool_prefix"; then
7394  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7395set dummy ${ac_tool_prefix}lipo; ac_word=$2
7396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7397$as_echo_n "checking for $ac_word... " >&6; }
7398if test "${ac_cv_prog_LIPO+set}" = set; then :
7399  $as_echo_n "(cached) " >&6
7400else
7401  if test -n "$LIPO"; then
7402  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7403else
7404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7405for as_dir in $PATH
7406do
7407  IFS=$as_save_IFS
7408  test -z "$as_dir" && as_dir=.
7409    for ac_exec_ext in '' $ac_executable_extensions; do
7410  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7411    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7412    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7413    break 2
7414  fi
7415done
7416  done
7417IFS=$as_save_IFS
7418
7419fi
7420fi
7421LIPO=$ac_cv_prog_LIPO
7422if test -n "$LIPO"; then
7423  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7424$as_echo "$LIPO" >&6; }
7425else
7426  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7427$as_echo "no" >&6; }
7428fi
7429
7430
7431fi
7432if test -z "$ac_cv_prog_LIPO"; then
7433  ac_ct_LIPO=$LIPO
7434  # Extract the first word of "lipo", so it can be a program name with args.
7435set dummy lipo; ac_word=$2
7436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7437$as_echo_n "checking for $ac_word... " >&6; }
7438if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7439  $as_echo_n "(cached) " >&6
7440else
7441  if test -n "$ac_ct_LIPO"; then
7442  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7443else
7444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7445for as_dir in $PATH
7446do
7447  IFS=$as_save_IFS
7448  test -z "$as_dir" && as_dir=.
7449    for ac_exec_ext in '' $ac_executable_extensions; do
7450  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7451    ac_cv_prog_ac_ct_LIPO="lipo"
7452    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7453    break 2
7454  fi
7455done
7456  done
7457IFS=$as_save_IFS
7458
7459fi
7460fi
7461ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7462if test -n "$ac_ct_LIPO"; then
7463  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7464$as_echo "$ac_ct_LIPO" >&6; }
7465else
7466  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7467$as_echo "no" >&6; }
7468fi
7469
7470  if test "x$ac_ct_LIPO" = x; then
7471    LIPO=":"
7472  else
7473    case $cross_compiling:$ac_tool_warned in
7474yes:)
7475{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7476$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7477ac_tool_warned=yes ;;
7478esac
7479    LIPO=$ac_ct_LIPO
7480  fi
7481else
7482  LIPO="$ac_cv_prog_LIPO"
7483fi
7484
7485    if test -n "$ac_tool_prefix"; then
7486  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7487set dummy ${ac_tool_prefix}otool; ac_word=$2
7488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7489$as_echo_n "checking for $ac_word... " >&6; }
7490if test "${ac_cv_prog_OTOOL+set}" = set; then :
7491  $as_echo_n "(cached) " >&6
7492else
7493  if test -n "$OTOOL"; then
7494  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7495else
7496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7497for as_dir in $PATH
7498do
7499  IFS=$as_save_IFS
7500  test -z "$as_dir" && as_dir=.
7501    for ac_exec_ext in '' $ac_executable_extensions; do
7502  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7503    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7504    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7505    break 2
7506  fi
7507done
7508  done
7509IFS=$as_save_IFS
7510
7511fi
7512fi
7513OTOOL=$ac_cv_prog_OTOOL
7514if test -n "$OTOOL"; then
7515  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7516$as_echo "$OTOOL" >&6; }
7517else
7518  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7519$as_echo "no" >&6; }
7520fi
7521
7522
7523fi
7524if test -z "$ac_cv_prog_OTOOL"; then
7525  ac_ct_OTOOL=$OTOOL
7526  # Extract the first word of "otool", so it can be a program name with args.
7527set dummy otool; ac_word=$2
7528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7529$as_echo_n "checking for $ac_word... " >&6; }
7530if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7531  $as_echo_n "(cached) " >&6
7532else
7533  if test -n "$ac_ct_OTOOL"; then
7534  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7535else
7536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7537for as_dir in $PATH
7538do
7539  IFS=$as_save_IFS
7540  test -z "$as_dir" && as_dir=.
7541    for ac_exec_ext in '' $ac_executable_extensions; do
7542  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7543    ac_cv_prog_ac_ct_OTOOL="otool"
7544    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7545    break 2
7546  fi
7547done
7548  done
7549IFS=$as_save_IFS
7550
7551fi
7552fi
7553ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7554if test -n "$ac_ct_OTOOL"; then
7555  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7556$as_echo "$ac_ct_OTOOL" >&6; }
7557else
7558  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7559$as_echo "no" >&6; }
7560fi
7561
7562  if test "x$ac_ct_OTOOL" = x; then
7563    OTOOL=":"
7564  else
7565    case $cross_compiling:$ac_tool_warned in
7566yes:)
7567{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7568$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7569ac_tool_warned=yes ;;
7570esac
7571    OTOOL=$ac_ct_OTOOL
7572  fi
7573else
7574  OTOOL="$ac_cv_prog_OTOOL"
7575fi
7576
7577    if test -n "$ac_tool_prefix"; then
7578  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7579set dummy ${ac_tool_prefix}otool64; ac_word=$2
7580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7581$as_echo_n "checking for $ac_word... " >&6; }
7582if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7583  $as_echo_n "(cached) " >&6
7584else
7585  if test -n "$OTOOL64"; then
7586  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7587else
7588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7589for as_dir in $PATH
7590do
7591  IFS=$as_save_IFS
7592  test -z "$as_dir" && as_dir=.
7593    for ac_exec_ext in '' $ac_executable_extensions; do
7594  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7595    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7596    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7597    break 2
7598  fi
7599done
7600  done
7601IFS=$as_save_IFS
7602
7603fi
7604fi
7605OTOOL64=$ac_cv_prog_OTOOL64
7606if test -n "$OTOOL64"; then
7607  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7608$as_echo "$OTOOL64" >&6; }
7609else
7610  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7611$as_echo "no" >&6; }
7612fi
7613
7614
7615fi
7616if test -z "$ac_cv_prog_OTOOL64"; then
7617  ac_ct_OTOOL64=$OTOOL64
7618  # Extract the first word of "otool64", so it can be a program name with args.
7619set dummy otool64; ac_word=$2
7620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7621$as_echo_n "checking for $ac_word... " >&6; }
7622if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7623  $as_echo_n "(cached) " >&6
7624else
7625  if test -n "$ac_ct_OTOOL64"; then
7626  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7627else
7628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7629for as_dir in $PATH
7630do
7631  IFS=$as_save_IFS
7632  test -z "$as_dir" && as_dir=.
7633    for ac_exec_ext in '' $ac_executable_extensions; do
7634  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7635    ac_cv_prog_ac_ct_OTOOL64="otool64"
7636    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7637    break 2
7638  fi
7639done
7640  done
7641IFS=$as_save_IFS
7642
7643fi
7644fi
7645ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7646if test -n "$ac_ct_OTOOL64"; then
7647  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7648$as_echo "$ac_ct_OTOOL64" >&6; }
7649else
7650  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7651$as_echo "no" >&6; }
7652fi
7653
7654  if test "x$ac_ct_OTOOL64" = x; then
7655    OTOOL64=":"
7656  else
7657    case $cross_compiling:$ac_tool_warned in
7658yes:)
7659{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7660$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7661ac_tool_warned=yes ;;
7662esac
7663    OTOOL64=$ac_ct_OTOOL64
7664  fi
7665else
7666  OTOOL64="$ac_cv_prog_OTOOL64"
7667fi
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7696$as_echo_n "checking for -single_module linker flag... " >&6; }
7697if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7698  $as_echo_n "(cached) " >&6
7699else
7700  lt_cv_apple_cc_single_mod=no
7701      if test -z "${LT_MULTI_MODULE}"; then
7702        # By default we will add the -single_module flag. You can override
7703        # by either setting the environment variable LT_MULTI_MODULE
7704        # non-empty at configure time, or by adding -multi_module to the
7705        # link flags.
7706        rm -rf libconftest.dylib*
7707        echo "int foo(void){return 1;}" > conftest.c
7708        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7709-dynamiclib -Wl,-single_module conftest.c" >&5
7710        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7711          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7712        _lt_result=$?
7713        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7714          lt_cv_apple_cc_single_mod=yes
7715        else
7716          cat conftest.err >&5
7717        fi
7718        rm -rf libconftest.dylib*
7719        rm -f conftest.*
7720      fi
7721fi
7722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7723$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7724    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7725$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7726if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7727  $as_echo_n "(cached) " >&6
7728else
7729  lt_cv_ld_exported_symbols_list=no
7730      save_LDFLAGS=$LDFLAGS
7731      echo "_main" > conftest.sym
7732      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7733      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7734/* end confdefs.h.  */
7735
7736int
7737main ()
7738{
7739
7740  ;
7741  return 0;
7742}
7743_ACEOF
7744if ac_fn_c_try_link "$LINENO"; then :
7745  lt_cv_ld_exported_symbols_list=yes
7746else
7747  lt_cv_ld_exported_symbols_list=no
7748fi
7749rm -f core conftest.err conftest.$ac_objext \
7750    conftest$ac_exeext conftest.$ac_ext
7751        LDFLAGS="$save_LDFLAGS"
7752
7753fi
7754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7755$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7756    case $host_os in
7757    rhapsody* | darwin1.[012])
7758      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7759    darwin1.*)
7760      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7761    darwin*) # darwin 5.x on
7762      # if running on 10.5 or later, the deployment target defaults
7763      # to the OS version, if on x86, and 10.4, the deployment
7764      # target defaults to 10.4. Don't you love it?
7765      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7766        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7767          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7768        10.[012]*)
7769          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7770        10.*)
7771          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7772      esac
7773    ;;
7774  esac
7775    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7776      _lt_dar_single_mod='$single_module'
7777    fi
7778    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7779      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7780    else
7781      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7782    fi
7783    if test "$DSYMUTIL" != ":"; then
7784      _lt_dsymutil='~$DSYMUTIL $lib || :'
7785    else
7786      _lt_dsymutil=
7787    fi
7788    ;;
7789  esac
7790
7791
7792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7793$as_echo_n "checking for ANSI C header files... " >&6; }
7794if test "${ac_cv_header_stdc+set}" = set; then :
7795  $as_echo_n "(cached) " >&6
7796else
7797  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7798/* end confdefs.h.  */
7799#include <stdlib.h>
7800#include <stdarg.h>
7801#include <string.h>
7802#include <float.h>
7803
7804int
7805main ()
7806{
7807
7808  ;
7809  return 0;
7810}
7811_ACEOF
7812if ac_fn_c_try_compile "$LINENO"; then :
7813  ac_cv_header_stdc=yes
7814else
7815  ac_cv_header_stdc=no
7816fi
7817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7818
7819if test $ac_cv_header_stdc = yes; then
7820  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7821  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7822/* end confdefs.h.  */
7823#include <string.h>
7824
7825_ACEOF
7826if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7827  $EGREP "memchr" >/dev/null 2>&1; then :
7828
7829else
7830  ac_cv_header_stdc=no
7831fi
7832rm -f conftest*
7833
7834fi
7835
7836if test $ac_cv_header_stdc = yes; then
7837  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7838  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7839/* end confdefs.h.  */
7840#include <stdlib.h>
7841
7842_ACEOF
7843if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7844  $EGREP "free" >/dev/null 2>&1; then :
7845
7846else
7847  ac_cv_header_stdc=no
7848fi
7849rm -f conftest*
7850
7851fi
7852
7853if test $ac_cv_header_stdc = yes; then
7854  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7855  if test "$cross_compiling" = yes; then :
7856  :
7857else
7858  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7859/* end confdefs.h.  */
7860#include <ctype.h>
7861#include <stdlib.h>
7862#if ((' ' & 0x0FF) == 0x020)
7863# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7864# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7865#else
7866# define ISLOWER(c) \
7867                   (('a' <= (c) && (c) <= 'i') \
7868                     || ('j' <= (c) && (c) <= 'r') \
7869                     || ('s' <= (c) && (c) <= 'z'))
7870# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7871#endif
7872
7873#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7874int
7875main ()
7876{
7877  int i;
7878  for (i = 0; i < 256; i++)
7879    if (XOR (islower (i), ISLOWER (i))
7880        || toupper (i) != TOUPPER (i))
7881      return 2;
7882  return 0;
7883}
7884_ACEOF
7885if ac_fn_c_try_run "$LINENO"; then :
7886
7887else
7888  ac_cv_header_stdc=no
7889fi
7890rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7891  conftest.$ac_objext conftest.beam conftest.$ac_ext
7892fi
7893
7894fi
7895fi
7896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7897$as_echo "$ac_cv_header_stdc" >&6; }
7898if test $ac_cv_header_stdc = yes; then
7899
7900$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7901
7902fi
7903
7904# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7905for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7906                  inttypes.h stdint.h unistd.h
7907do :
7908  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7909ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7910"
7911eval as_val=\$$as_ac_Header
7912   if test "x$as_val" = x""yes; then :
7913  cat >>confdefs.h <<_ACEOF
7914#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7915_ACEOF
7916
7917fi
7918
7919done
7920
7921
7922for ac_header in dlfcn.h
7923do :
7924  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7925"
7926if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7927  cat >>confdefs.h <<_ACEOF
7928#define HAVE_DLFCN_H 1
7929_ACEOF
7930
7931fi
7932
7933done
7934
7935
7936
7937ac_ext=cpp
7938ac_cpp='$CXXCPP $CPPFLAGS'
7939ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7940ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7941ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7942if test -z "$CXX"; then
7943  if test -n "$CCC"; then
7944    CXX=$CCC
7945  else
7946    if test -n "$ac_tool_prefix"; then
7947  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7948  do
7949    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7950set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7952$as_echo_n "checking for $ac_word... " >&6; }
7953if test "${ac_cv_prog_CXX+set}" = set; then :
7954  $as_echo_n "(cached) " >&6
7955else
7956  if test -n "$CXX"; then
7957  ac_cv_prog_CXX="$CXX" # Let the user override the test.
7958else
7959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7960for as_dir in $PATH
7961do
7962  IFS=$as_save_IFS
7963  test -z "$as_dir" && as_dir=.
7964    for ac_exec_ext in '' $ac_executable_extensions; do
7965  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7966    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7967    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7968    break 2
7969  fi
7970done
7971  done
7972IFS=$as_save_IFS
7973
7974fi
7975fi
7976CXX=$ac_cv_prog_CXX
7977if test -n "$CXX"; then
7978  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7979$as_echo "$CXX" >&6; }
7980else
7981  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7982$as_echo "no" >&6; }
7983fi
7984
7985
7986    test -n "$CXX" && break
7987  done
7988fi
7989if test -z "$CXX"; then
7990  ac_ct_CXX=$CXX
7991  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7992do
7993  # Extract the first word of "$ac_prog", so it can be a program name with args.
7994set dummy $ac_prog; ac_word=$2
7995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7996$as_echo_n "checking for $ac_word... " >&6; }
7997if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
7998  $as_echo_n "(cached) " >&6
7999else
8000  if test -n "$ac_ct_CXX"; then
8001  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8002else
8003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8004for as_dir in $PATH
8005do
8006  IFS=$as_save_IFS
8007  test -z "$as_dir" && as_dir=.
8008    for ac_exec_ext in '' $ac_executable_extensions; do
8009  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8010    ac_cv_prog_ac_ct_CXX="$ac_prog"
8011    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8012    break 2
8013  fi
8014done
8015  done
8016IFS=$as_save_IFS
8017
8018fi
8019fi
8020ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8021if test -n "$ac_ct_CXX"; then
8022  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
8023$as_echo "$ac_ct_CXX" >&6; }
8024else
8025  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8026$as_echo "no" >&6; }
8027fi
8028
8029
8030  test -n "$ac_ct_CXX" && break
8031done
8032
8033  if test "x$ac_ct_CXX" = x; then
8034    CXX="g++"
8035  else
8036    case $cross_compiling:$ac_tool_warned in
8037yes:)
8038{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8039$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8040ac_tool_warned=yes ;;
8041esac
8042    CXX=$ac_ct_CXX
8043  fi
8044fi
8045
8046  fi
8047fi
8048# Provide some information about the compiler.
8049$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
8050set X $ac_compile
8051ac_compiler=$2
8052for ac_option in --version -v -V -qversion; do
8053  { { ac_try="$ac_compiler $ac_option >&5"
8054case "(($ac_try" in
8055  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8056  *) ac_try_echo=$ac_try;;
8057esac
8058eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8059$as_echo "$ac_try_echo"; } >&5
8060  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
8061  ac_status=$?
8062  if test -s conftest.err; then
8063    sed '10a\
8064... rest of stderr output deleted ...
8065         10q' conftest.err >conftest.er1
8066    cat conftest.er1 >&5
8067  fi
8068  rm -f conftest.er1 conftest.err
8069  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8070  test $ac_status = 0; }
8071done
8072
8073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
8074$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
8075if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
8076  $as_echo_n "(cached) " >&6
8077else
8078  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8079/* end confdefs.h.  */
8080
8081int
8082main ()
8083{
8084#ifndef __GNUC__
8085       choke me
8086#endif
8087
8088  ;
8089  return 0;
8090}
8091_ACEOF
8092if ac_fn_cxx_try_compile "$LINENO"; then :
8093  ac_compiler_gnu=yes
8094else
8095  ac_compiler_gnu=no
8096fi
8097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8098ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8099
8100fi
8101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
8102$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
8103if test $ac_compiler_gnu = yes; then
8104  GXX=yes
8105else
8106  GXX=
8107fi
8108ac_test_CXXFLAGS=${CXXFLAGS+set}
8109ac_save_CXXFLAGS=$CXXFLAGS
8110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
8111$as_echo_n "checking whether $CXX accepts -g... " >&6; }
8112if test "${ac_cv_prog_cxx_g+set}" = set; then :
8113  $as_echo_n "(cached) " >&6
8114else
8115  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8116   ac_cxx_werror_flag=yes
8117   ac_cv_prog_cxx_g=no
8118   CXXFLAGS="-g"
8119   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8120/* end confdefs.h.  */
8121
8122int
8123main ()
8124{
8125
8126  ;
8127  return 0;
8128}
8129_ACEOF
8130if ac_fn_cxx_try_compile "$LINENO"; then :
8131  ac_cv_prog_cxx_g=yes
8132else
8133  CXXFLAGS=""
8134      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8135/* end confdefs.h.  */
8136
8137int
8138main ()
8139{
8140
8141  ;
8142  return 0;
8143}
8144_ACEOF
8145if ac_fn_cxx_try_compile "$LINENO"; then :
8146
8147else
8148  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8149         CXXFLAGS="-g"
8150         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8151/* end confdefs.h.  */
8152
8153int
8154main ()
8155{
8156
8157  ;
8158  return 0;
8159}
8160_ACEOF
8161if ac_fn_cxx_try_compile "$LINENO"; then :
8162  ac_cv_prog_cxx_g=yes
8163fi
8164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8165fi
8166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8167fi
8168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8169   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8170fi
8171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
8172$as_echo "$ac_cv_prog_cxx_g" >&6; }
8173if test "$ac_test_CXXFLAGS" = set; then
8174  CXXFLAGS=$ac_save_CXXFLAGS
8175elif test $ac_cv_prog_cxx_g = yes; then
8176  if test "$GXX" = yes; then
8177    CXXFLAGS="-g -O2"
8178  else
8179    CXXFLAGS="-g"
8180  fi
8181else
8182  if test "$GXX" = yes; then
8183    CXXFLAGS="-O2"
8184  else
8185    CXXFLAGS=
8186  fi
8187fi
8188ac_ext=c
8189ac_cpp='$CPP $CPPFLAGS'
8190ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8191ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8192ac_compiler_gnu=$ac_cv_c_compiler_gnu
8193
8194depcc="$CXX"  am_compiler_list=
8195
8196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8197$as_echo_n "checking dependency style of $depcc... " >&6; }
8198if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
8199  $as_echo_n "(cached) " >&6
8200else
8201  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8202  # We make a subdir and do the tests there.  Otherwise we can end up
8203  # making bogus files that we don't know about and never remove.  For
8204  # instance it was reported that on HP-UX the gcc test will end up
8205  # making a dummy file named `D' -- because `-MD' means `put the output
8206  # in D'.
8207  mkdir conftest.dir
8208  # Copy depcomp to subdir because otherwise we won't find it if we're
8209  # using a relative directory.
8210  cp "$am_depcomp" conftest.dir
8211  cd conftest.dir
8212  # We will build objects and dependencies in a subdirectory because
8213  # it helps to detect inapplicable dependency modes.  For instance
8214  # both Tru64's cc and ICC support -MD to output dependencies as a
8215  # side effect of compilation, but ICC will put the dependencies in
8216  # the current directory while Tru64 will put them in the object
8217  # directory.
8218  mkdir sub
8219
8220  am_cv_CXX_dependencies_compiler_type=none
8221  if test "$am_compiler_list" = ""; then
8222     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8223  fi
8224  am__universal=false
8225  case " $depcc " in #(
8226     *\ -arch\ *\ -arch\ *) am__universal=true ;;
8227     esac
8228
8229  for depmode in $am_compiler_list; do
8230    # Setup a source with many dependencies, because some compilers
8231    # like to wrap large dependency lists on column 80 (with \), and
8232    # we should not choose a depcomp mode which is confused by this.
8233    #
8234    # We need to recreate these files for each test, as the compiler may
8235    # overwrite some of them when testing with obscure command lines.
8236    # This happens at least with the AIX C compiler.
8237    : > sub/conftest.c
8238    for i in 1 2 3 4 5 6; do
8239      echo '#include "conftst'$i'.h"' >> sub/conftest.c
8240      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8241      # Solaris 8's {/usr,}/bin/sh.
8242      touch sub/conftst$i.h
8243    done
8244    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8245
8246    # We check with `-c' and `-o' for the sake of the "dashmstdout"
8247    # mode.  It turns out that the SunPro C++ compiler does not properly
8248    # handle `-M -o', and we need to detect this.  Also, some Intel
8249    # versions had trouble with output in subdirs
8250    am__obj=sub/conftest.${OBJEXT-o}
8251    am__minus_obj="-o $am__obj"
8252    case $depmode in
8253    gcc)
8254      # This depmode causes a compiler race in universal mode.
8255      test "$am__universal" = false || continue
8256      ;;
8257    nosideeffect)
8258      # after this tag, mechanisms are not by side-effect, so they'll
8259      # only be used when explicitly requested
8260      if test "x$enable_dependency_tracking" = xyes; then
8261        continue
8262      else
8263        break
8264      fi
8265      ;;
8266    msvisualcpp | msvcmsys)
8267      # This compiler won't grok `-c -o', but also, the minuso test has
8268      # not run yet.  These depmodes are late enough in the game, and
8269      # so weak that their functioning should not be impacted.
8270      am__obj=conftest.${OBJEXT-o}
8271      am__minus_obj=
8272      ;;
8273    none) break ;;
8274    esac
8275    if depmode=$depmode \
8276       source=sub/conftest.c object=$am__obj \
8277       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8278       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
8279         >/dev/null 2>conftest.err &&
8280       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
8281       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8282       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
8283       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8284      # icc doesn't choke on unknown options, it will just issue warnings
8285      # or remarks (even with -Werror).  So we grep stderr for any message
8286      # that says an option was ignored or not supported.
8287      # When given -MP, icc 7.0 and 7.1 complain thusly:
8288      #   icc: Command line warning: ignoring option '-M'; no argument required
8289      # The diagnosis changed in icc 8.0:
8290      #   icc: Command line remark: option '-MP' not supported
8291      if (grep 'ignoring option' conftest.err ||
8292          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8293        am_cv_CXX_dependencies_compiler_type=$depmode
8294        break
8295      fi
8296    fi
8297  done
8298
8299  cd ..
8300  rm -rf conftest.dir
8301else
8302  am_cv_CXX_dependencies_compiler_type=none
8303fi
8304
8305fi
8306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
8307$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
8308CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8309
8310 if
8311  test "x$enable_dependency_tracking" != xno \
8312  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8313  am__fastdepCXX_TRUE=
8314  am__fastdepCXX_FALSE='#'
8315else
8316  am__fastdepCXX_TRUE='#'
8317  am__fastdepCXX_FALSE=
8318fi
8319
8320
8321if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8322    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8323    (test "X$CXX" != "Xg++"))) ; then
8324  ac_ext=cpp
8325ac_cpp='$CXXCPP $CPPFLAGS'
8326ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8327ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8328ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8330$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8331if test -z "$CXXCPP"; then
8332  if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8333  $as_echo_n "(cached) " >&6
8334else
8335      # Double quotes because CXXCPP needs to be expanded
8336    for CXXCPP in "$CXX -E" "/lib/cpp"
8337    do
8338      ac_preproc_ok=false
8339for ac_cxx_preproc_warn_flag in '' yes
8340do
8341  # Use a header file that comes with gcc, so configuring glibc
8342  # with a fresh cross-compiler works.
8343  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8344  # <limits.h> exists even on freestanding compilers.
8345  # On the NeXT, cc -E runs the code through the compiler's parser,
8346  # not just through cpp. "Syntax error" is here to catch this case.
8347  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8348/* end confdefs.h.  */
8349#ifdef __STDC__
8350# include <limits.h>
8351#else
8352# include <assert.h>
8353#endif
8354                     Syntax error
8355_ACEOF
8356if ac_fn_cxx_try_cpp "$LINENO"; then :
8357
8358else
8359  # Broken: fails on valid input.
8360continue
8361fi
8362rm -f conftest.err conftest.$ac_ext
8363
8364  # OK, works on sane cases.  Now check whether nonexistent headers
8365  # can be detected and how.
8366  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8367/* end confdefs.h.  */
8368#include <ac_nonexistent.h>
8369_ACEOF
8370if ac_fn_cxx_try_cpp "$LINENO"; then :
8371  # Broken: success on invalid input.
8372continue
8373else
8374  # Passes both tests.
8375ac_preproc_ok=:
8376break
8377fi
8378rm -f conftest.err conftest.$ac_ext
8379
8380done
8381# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8382rm -f conftest.err conftest.$ac_ext
8383if $ac_preproc_ok; then :
8384  break
8385fi
8386
8387    done
8388    ac_cv_prog_CXXCPP=$CXXCPP
8389
8390fi
8391  CXXCPP=$ac_cv_prog_CXXCPP
8392else
8393  ac_cv_prog_CXXCPP=$CXXCPP
8394fi
8395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8396$as_echo "$CXXCPP" >&6; }
8397ac_preproc_ok=false
8398for ac_cxx_preproc_warn_flag in '' yes
8399do
8400  # Use a header file that comes with gcc, so configuring glibc
8401  # with a fresh cross-compiler works.
8402  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8403  # <limits.h> exists even on freestanding compilers.
8404  # On the NeXT, cc -E runs the code through the compiler's parser,
8405  # not just through cpp. "Syntax error" is here to catch this case.
8406  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8407/* end confdefs.h.  */
8408#ifdef __STDC__
8409# include <limits.h>
8410#else
8411# include <assert.h>
8412#endif
8413                     Syntax error
8414_ACEOF
8415if ac_fn_cxx_try_cpp "$LINENO"; then :
8416
8417else
8418  # Broken: fails on valid input.
8419continue
8420fi
8421rm -f conftest.err conftest.$ac_ext
8422
8423  # OK, works on sane cases.  Now check whether nonexistent headers
8424  # can be detected and how.
8425  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8426/* end confdefs.h.  */
8427#include <ac_nonexistent.h>
8428_ACEOF
8429if ac_fn_cxx_try_cpp "$LINENO"; then :
8430  # Broken: success on invalid input.
8431continue
8432else
8433  # Passes both tests.
8434ac_preproc_ok=:
8435break
8436fi
8437rm -f conftest.err conftest.$ac_ext
8438
8439done
8440# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8441rm -f conftest.err conftest.$ac_ext
8442if $ac_preproc_ok; then :
8443
8444else
8445  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8446$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8447_lt_caught_CXX_error=yes; }
8448fi
8449
8450ac_ext=c
8451ac_cpp='$CPP $CPPFLAGS'
8452ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8453ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8454ac_compiler_gnu=$ac_cv_c_compiler_gnu
8455
8456else
8457  _lt_caught_CXX_error=yes
8458fi
8459
8460
8461
8462
8463
8464# Set options
8465
8466
8467
8468        enable_dlopen=no
8469
8470
8471
8472            # Check whether --enable-shared was given.
8473if test "${enable_shared+set}" = set; then :
8474  enableval=$enable_shared; p=${PACKAGE-default}
8475    case $enableval in
8476    yes) enable_shared=yes ;;
8477    no) enable_shared=no ;;
8478    *)
8479      enable_shared=no
8480      # Look at the argument we got.  We use all the common list separators.
8481      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8482      for pkg in $enableval; do
8483        IFS="$lt_save_ifs"
8484        if test "X$pkg" = "X$p"; then
8485          enable_shared=yes
8486        fi
8487      done
8488      IFS="$lt_save_ifs"
8489      ;;
8490    esac
8491else
8492  enable_shared=yes
8493fi
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503  # Check whether --enable-static was given.
8504if test "${enable_static+set}" = set; then :
8505  enableval=$enable_static; p=${PACKAGE-default}
8506    case $enableval in
8507    yes) enable_static=yes ;;
8508    no) enable_static=no ;;
8509    *)
8510     enable_static=no
8511      # Look at the argument we got.  We use all the common list separators.
8512      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8513      for pkg in $enableval; do
8514        IFS="$lt_save_ifs"
8515        if test "X$pkg" = "X$p"; then
8516          enable_static=yes
8517        fi
8518      done
8519      IFS="$lt_save_ifs"
8520      ;;
8521    esac
8522else
8523  enable_static=yes
8524fi
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535# Check whether --with-pic was given.
8536if test "${with_pic+set}" = set; then :
8537  withval=$with_pic; pic_mode="$withval"
8538else
8539  pic_mode=default
8540fi
8541
8542
8543test -z "$pic_mode" && pic_mode=default
8544
8545
8546
8547
8548
8549
8550
8551  # Check whether --enable-fast-install was given.
8552if test "${enable_fast_install+set}" = set; then :
8553  enableval=$enable_fast_install; p=${PACKAGE-default}
8554    case $enableval in
8555    yes) enable_fast_install=yes ;;
8556    no) enable_fast_install=no ;;
8557    *)
8558      enable_fast_install=no
8559      # Look at the argument we got.  We use all the common list separators.
8560      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8561      for pkg in $enableval; do
8562        IFS="$lt_save_ifs"
8563        if test "X$pkg" = "X$p"; then
8564          enable_fast_install=yes
8565        fi
8566      done
8567      IFS="$lt_save_ifs"
8568      ;;
8569    esac
8570else
8571  enable_fast_install=yes
8572fi
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584# This can be used to rebuild libtool when needed
8585LIBTOOL_DEPS="$ltmain"
8586
8587# Always use our own libtool.
8588LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614test -z "$LN_S" && LN_S="ln -s"
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629if test -n "${ZSH_VERSION+set}" ; then
8630   setopt NO_GLOB_SUBST
8631fi
8632
8633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8634$as_echo_n "checking for objdir... " >&6; }
8635if test "${lt_cv_objdir+set}" = set; then :
8636  $as_echo_n "(cached) " >&6
8637else
8638  rm -f .libs 2>/dev/null
8639mkdir .libs 2>/dev/null
8640if test -d .libs; then
8641  lt_cv_objdir=.libs
8642else
8643  # MS-DOS does not allow filenames that begin with a dot.
8644  lt_cv_objdir=_libs
8645fi
8646rmdir .libs 2>/dev/null
8647fi
8648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8649$as_echo "$lt_cv_objdir" >&6; }
8650objdir=$lt_cv_objdir
8651
8652
8653
8654
8655
8656cat >>confdefs.h <<_ACEOF
8657#define LT_OBJDIR "$lt_cv_objdir/"
8658_ACEOF
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676case $host_os in
8677aix3*)
8678  # AIX sometimes has problems with the GCC collect2 program.  For some
8679  # reason, if we set the COLLECT_NAMES environment variable, the problems
8680  # vanish in a puff of smoke.
8681  if test "X${COLLECT_NAMES+set}" != Xset; then
8682    COLLECT_NAMES=
8683    export COLLECT_NAMES
8684  fi
8685  ;;
8686esac
8687
8688# Sed substitution that helps us do robust quoting.  It backslashifies
8689# metacharacters that are still active within double-quoted strings.
8690sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8691
8692# Same as above, but do not quote variable references.
8693double_quote_subst='s/\(["`\\]\)/\\\1/g'
8694
8695# Sed substitution to delay expansion of an escaped shell variable in a
8696# double_quote_subst'ed string.
8697delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8698
8699# Sed substitution to delay expansion of an escaped single quote.
8700delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8701
8702# Sed substitution to avoid accidental globbing in evaled expressions
8703no_glob_subst='s/\*/\\\*/g'
8704
8705# Global variables:
8706ofile=libtool
8707can_build_shared=yes
8708
8709# All known linkers require a `.a' archive for static linking (except MSVC,
8710# which needs '.lib').
8711libext=a
8712
8713with_gnu_ld="$lt_cv_prog_gnu_ld"
8714
8715old_CC="$CC"
8716old_CFLAGS="$CFLAGS"
8717
8718# Set sane defaults for various variables
8719test -z "$CC" && CC=cc
8720test -z "$LTCC" && LTCC=$CC
8721test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8722test -z "$LD" && LD=ld
8723test -z "$ac_objext" && ac_objext=o
8724
8725for cc_temp in $compiler""; do
8726  case $cc_temp in
8727    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8728    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8729    \-*) ;;
8730    *) break;;
8731  esac
8732done
8733cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8734
8735
8736# Only perform the check for file, if the check method requires it
8737test -z "$MAGIC_CMD" && MAGIC_CMD=file
8738case $deplibs_check_method in
8739file_magic*)
8740  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8741    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8742$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8743if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8744  $as_echo_n "(cached) " >&6
8745else
8746  case $MAGIC_CMD in
8747[\\/*] |  ?:[\\/]*)
8748  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8749  ;;
8750*)
8751  lt_save_MAGIC_CMD="$MAGIC_CMD"
8752  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8753  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8754  for ac_dir in $ac_dummy; do
8755    IFS="$lt_save_ifs"
8756    test -z "$ac_dir" && ac_dir=.
8757    if test -f $ac_dir/${ac_tool_prefix}file; then
8758      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8759      if test -n "$file_magic_test_file"; then
8760        case $deplibs_check_method in
8761        "file_magic "*)
8762          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8763          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8764          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8765            $EGREP "$file_magic_regex" > /dev/null; then
8766            :
8767          else
8768            cat <<_LT_EOF 1>&2
8769
8770*** Warning: the command libtool uses to detect shared libraries,
8771*** $file_magic_cmd, produces output that libtool cannot recognize.
8772*** The result is that libtool may fail to recognize shared libraries
8773*** as such.  This will affect the creation of libtool libraries that
8774*** depend on shared libraries, but programs linked with such libtool
8775*** libraries will work regardless of this problem.  Nevertheless, you
8776*** may want to report the problem to your system manager and/or to
8777*** bug-libtool@gnu.org
8778
8779_LT_EOF
8780          fi ;;
8781        esac
8782      fi
8783      break
8784    fi
8785  done
8786  IFS="$lt_save_ifs"
8787  MAGIC_CMD="$lt_save_MAGIC_CMD"
8788  ;;
8789esac
8790fi
8791
8792MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8793if test -n "$MAGIC_CMD"; then
8794  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8795$as_echo "$MAGIC_CMD" >&6; }
8796else
8797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8798$as_echo "no" >&6; }
8799fi
8800
8801
8802
8803
8804
8805if test -z "$lt_cv_path_MAGIC_CMD"; then
8806  if test -n "$ac_tool_prefix"; then
8807    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8808$as_echo_n "checking for file... " >&6; }
8809if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8810  $as_echo_n "(cached) " >&6
8811else
8812  case $MAGIC_CMD in
8813[\\/*] |  ?:[\\/]*)
8814  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8815  ;;
8816*)
8817  lt_save_MAGIC_CMD="$MAGIC_CMD"
8818  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8819  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8820  for ac_dir in $ac_dummy; do
8821    IFS="$lt_save_ifs"
8822    test -z "$ac_dir" && ac_dir=.
8823    if test -f $ac_dir/file; then
8824      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8825      if test -n "$file_magic_test_file"; then
8826        case $deplibs_check_method in
8827        "file_magic "*)
8828          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8829          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8830          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8831            $EGREP "$file_magic_regex" > /dev/null; then
8832            :
8833          else
8834            cat <<_LT_EOF 1>&2
8835
8836*** Warning: the command libtool uses to detect shared libraries,
8837*** $file_magic_cmd, produces output that libtool cannot recognize.
8838*** The result is that libtool may fail to recognize shared libraries
8839*** as such.  This will affect the creation of libtool libraries that
8840*** depend on shared libraries, but programs linked with such libtool
8841*** libraries will work regardless of this problem.  Nevertheless, you
8842*** may want to report the problem to your system manager and/or to
8843*** bug-libtool@gnu.org
8844
8845_LT_EOF
8846          fi ;;
8847        esac
8848      fi
8849      break
8850    fi
8851  done
8852  IFS="$lt_save_ifs"
8853  MAGIC_CMD="$lt_save_MAGIC_CMD"
8854  ;;
8855esac
8856fi
8857
8858MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8859if test -n "$MAGIC_CMD"; then
8860  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8861$as_echo "$MAGIC_CMD" >&6; }
8862else
8863  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8864$as_echo "no" >&6; }
8865fi
8866
8867
8868  else
8869    MAGIC_CMD=:
8870  fi
8871fi
8872
8873  fi
8874  ;;
8875esac
8876
8877# Use C for the default configuration in the libtool script
8878
8879lt_save_CC="$CC"
8880ac_ext=c
8881ac_cpp='$CPP $CPPFLAGS'
8882ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8883ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8884ac_compiler_gnu=$ac_cv_c_compiler_gnu
8885
8886
8887# Source file extension for C test sources.
8888ac_ext=c
8889
8890# Object file extension for compiled C test sources.
8891objext=o
8892objext=$objext
8893
8894# Code to be used in simple compile tests
8895lt_simple_compile_test_code="int some_variable = 0;"
8896
8897# Code to be used in simple link tests
8898lt_simple_link_test_code='int main(){return(0);}'
8899
8900
8901
8902
8903
8904
8905
8906# If no C compiler was specified, use CC.
8907LTCC=${LTCC-"$CC"}
8908
8909# If no C compiler flags were specified, use CFLAGS.
8910LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8911
8912# Allow CC to be a program name with arguments.
8913compiler=$CC
8914
8915# Save the default compiler, since it gets overwritten when the other
8916# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8917compiler_DEFAULT=$CC
8918
8919# save warnings/boilerplate of simple test code
8920ac_outfile=conftest.$ac_objext
8921echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8922eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8923_lt_compiler_boilerplate=`cat conftest.err`
8924$RM conftest*
8925
8926ac_outfile=conftest.$ac_objext
8927echo "$lt_simple_link_test_code" >conftest.$ac_ext
8928eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8929_lt_linker_boilerplate=`cat conftest.err`
8930$RM -r conftest*
8931
8932
8933if test -n "$compiler"; then
8934
8935lt_prog_compiler_no_builtin_flag=
8936
8937if test "$GCC" = yes; then
8938  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8939
8940  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8941$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8942if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8943  $as_echo_n "(cached) " >&6
8944else
8945  lt_cv_prog_compiler_rtti_exceptions=no
8946   ac_outfile=conftest.$ac_objext
8947   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8948   lt_compiler_flag="-fno-rtti -fno-exceptions"
8949   # Insert the option either (1) after the last *FLAGS variable, or
8950   # (2) before a word containing "conftest.", or (3) at the end.
8951   # Note that $ac_compile itself does not contain backslashes and begins
8952   # with a dollar sign (not a hyphen), so the echo should work correctly.
8953   # The option is referenced via a variable to avoid confusing sed.
8954   lt_compile=`echo "$ac_compile" | $SED \
8955   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8956   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8957   -e 's:$: $lt_compiler_flag:'`
8958   (eval echo "\"\$as_me:8958: $lt_compile\"" >&5)
8959   (eval "$lt_compile" 2>conftest.err)
8960   ac_status=$?
8961   cat conftest.err >&5
8962   echo "$as_me:8962: \$? = $ac_status" >&5
8963   if (exit $ac_status) && test -s "$ac_outfile"; then
8964     # The compiler can only warn and ignore the option if not recognized
8965     # So say no if there are warnings other than the usual output.
8966     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8967     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8968     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8969       lt_cv_prog_compiler_rtti_exceptions=yes
8970     fi
8971   fi
8972   $RM conftest*
8973
8974fi
8975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8976$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8977
8978if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8979    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8980else
8981    :
8982fi
8983
8984fi
8985
8986
8987
8988
8989
8990
8991  lt_prog_compiler_wl=
8992lt_prog_compiler_pic=
8993lt_prog_compiler_static=
8994
8995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8996$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8997
8998  if test "$GCC" = yes; then
8999    lt_prog_compiler_wl='-Wl,'
9000    lt_prog_compiler_static='-static'
9001
9002    case $host_os in
9003      aix*)
9004      # All AIX code is PIC.
9005      if test "$host_cpu" = ia64; then
9006        # AIX 5 now supports IA64 processor
9007        lt_prog_compiler_static='-Bstatic'
9008      fi
9009      ;;
9010
9011    amigaos*)
9012      case $host_cpu in
9013      powerpc)
9014            # see comment about AmigaOS4 .so support
9015            lt_prog_compiler_pic='-fPIC'
9016        ;;
9017      m68k)
9018            # FIXME: we need at least 68020 code to build shared libraries, but
9019            # adding the `-m68020' flag to GCC prevents building anything better,
9020            # like `-m68040'.
9021            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9022        ;;
9023      esac
9024      ;;
9025
9026    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9027      # PIC is the default for these OSes.
9028      ;;
9029
9030    mingw* | cygwin* | pw32* | os2* | cegcc*)
9031      # This hack is so that the source file can tell whether it is being
9032      # built for inclusion in a dll (and should export symbols for example).
9033      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9034      # (--disable-auto-import) libraries
9035      lt_prog_compiler_pic='-DDLL_EXPORT'
9036      ;;
9037
9038    darwin* | rhapsody*)
9039      # PIC is the default on this platform
9040      # Common symbols not allowed in MH_DYLIB files
9041      lt_prog_compiler_pic='-fno-common'
9042      ;;
9043
9044    hpux*)
9045      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9046      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9047      # sets the default TLS model and affects inlining.
9048      case $host_cpu in
9049      hppa*64*)
9050        # +Z the default
9051        ;;
9052      *)
9053        lt_prog_compiler_pic='-fPIC'
9054        ;;
9055      esac
9056      ;;
9057
9058    interix[3-9]*)
9059      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9060      # Instead, we relocate shared libraries at runtime.
9061      ;;
9062
9063    msdosdjgpp*)
9064      # Just because we use GCC doesn't mean we suddenly get shared libraries
9065      # on systems that don't support them.
9066      lt_prog_compiler_can_build_shared=no
9067      enable_shared=no
9068      ;;
9069
9070    *nto* | *qnx*)
9071      # QNX uses GNU C++, but need to define -shared option too, otherwise
9072      # it will coredump.
9073      lt_prog_compiler_pic='-fPIC -shared'
9074      ;;
9075
9076    sysv4*MP*)
9077      if test -d /usr/nec; then
9078        lt_prog_compiler_pic=-Kconform_pic
9079      fi
9080      ;;
9081
9082    *)
9083      lt_prog_compiler_pic='-fPIC'
9084      ;;
9085    esac
9086  else
9087    # PORTME Check for flag to pass linker flags through the system compiler.
9088    case $host_os in
9089    aix*)
9090      lt_prog_compiler_wl='-Wl,'
9091      if test "$host_cpu" = ia64; then
9092        # AIX 5 now supports IA64 processor
9093        lt_prog_compiler_static='-Bstatic'
9094      else
9095        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9096      fi
9097      ;;
9098
9099    mingw* | cygwin* | pw32* | os2* | cegcc*)
9100      # This hack is so that the source file can tell whether it is being
9101      # built for inclusion in a dll (and should export symbols for example).
9102      lt_prog_compiler_pic='-DDLL_EXPORT'
9103      ;;
9104
9105    hpux9* | hpux10* | hpux11*)
9106      lt_prog_compiler_wl='-Wl,'
9107      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9108      # not for PA HP-UX.
9109      case $host_cpu in
9110      hppa*64*|ia64*)
9111        # +Z the default
9112        ;;
9113      *)
9114        lt_prog_compiler_pic='+Z'
9115        ;;
9116      esac
9117      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9118      lt_prog_compiler_static='${wl}-a ${wl}archive'
9119      ;;
9120
9121    irix5* | irix6* | nonstopux*)
9122      lt_prog_compiler_wl='-Wl,'
9123      # PIC (with -KPIC) is the default.
9124      lt_prog_compiler_static='-non_shared'
9125      ;;
9126
9127    linux* | k*bsd*-gnu)
9128      case $cc_basename in
9129      # old Intel for x86_64 which still supported -KPIC.
9130      ecc*)
9131        lt_prog_compiler_wl='-Wl,'
9132        lt_prog_compiler_pic='-KPIC'
9133        lt_prog_compiler_static='-static'
9134        ;;
9135      # icc used to be incompatible with GCC.
9136      # ICC 10 doesn't accept -KPIC any more.
9137      icc* | ifort*)
9138        lt_prog_compiler_wl='-Wl,'
9139        lt_prog_compiler_pic='-fPIC'
9140        lt_prog_compiler_static='-static'
9141        ;;
9142      # Lahey Fortran 8.1.
9143      lf95*)
9144        lt_prog_compiler_wl='-Wl,'
9145        lt_prog_compiler_pic='--shared'
9146        lt_prog_compiler_static='--static'
9147        ;;
9148      pgcc* | pgf77* | pgf90* | pgf95*)
9149        # Portland Group compilers (*not* the Pentium gcc compiler,
9150        # which looks to be a dead project)
9151        lt_prog_compiler_wl='-Wl,'
9152        lt_prog_compiler_pic='-fpic'
9153        lt_prog_compiler_static='-Bstatic'
9154        ;;
9155      ccc*)
9156        lt_prog_compiler_wl='-Wl,'
9157        # All Alpha code is PIC.
9158        lt_prog_compiler_static='-non_shared'
9159        ;;
9160      xl*)
9161        # IBM XL C 8.0/Fortran 10.1 on PPC
9162        lt_prog_compiler_wl='-Wl,'
9163        lt_prog_compiler_pic='-qpic'
9164        lt_prog_compiler_static='-qstaticlink'
9165        ;;
9166      *)
9167        case `$CC -V 2>&1 | sed 5q` in
9168        *Sun\ C*)
9169          # Sun C 5.9
9170          lt_prog_compiler_pic='-KPIC'
9171          lt_prog_compiler_static='-Bstatic'
9172          lt_prog_compiler_wl='-Wl,'
9173          ;;
9174        *Sun\ F*)
9175          # Sun Fortran 8.3 passes all unrecognized flags to the linker
9176          lt_prog_compiler_pic='-KPIC'
9177          lt_prog_compiler_static='-Bstatic'
9178          lt_prog_compiler_wl=''
9179          ;;
9180        esac
9181        ;;
9182      esac
9183      ;;
9184
9185    newsos6)
9186      lt_prog_compiler_pic='-KPIC'
9187      lt_prog_compiler_static='-Bstatic'
9188      ;;
9189
9190    *nto* | *qnx*)
9191      # QNX uses GNU C++, but need to define -shared option too, otherwise
9192      # it will coredump.
9193      lt_prog_compiler_pic='-fPIC -shared'
9194      ;;
9195
9196    osf3* | osf4* | osf5*)
9197      lt_prog_compiler_wl='-Wl,'
9198      # All OSF/1 code is PIC.
9199      lt_prog_compiler_static='-non_shared'
9200      ;;
9201
9202    rdos*)
9203      lt_prog_compiler_static='-non_shared'
9204      ;;
9205
9206    solaris*)
9207      lt_prog_compiler_pic='-KPIC'
9208      lt_prog_compiler_static='-Bstatic'
9209      case $cc_basename in
9210      f77* | f90* | f95*)
9211        lt_prog_compiler_wl='-Qoption ld ';;
9212      *)
9213        lt_prog_compiler_wl='-Wl,';;
9214      esac
9215      ;;
9216
9217    sunos4*)
9218      lt_prog_compiler_wl='-Qoption ld '
9219      lt_prog_compiler_pic='-PIC'
9220      lt_prog_compiler_static='-Bstatic'
9221      ;;
9222
9223    sysv4 | sysv4.2uw2* | sysv4.3*)
9224      lt_prog_compiler_wl='-Wl,'
9225      lt_prog_compiler_pic='-KPIC'
9226      lt_prog_compiler_static='-Bstatic'
9227      ;;
9228
9229    sysv4*MP*)
9230      if test -d /usr/nec ;then
9231        lt_prog_compiler_pic='-Kconform_pic'
9232        lt_prog_compiler_static='-Bstatic'
9233      fi
9234      ;;
9235
9236    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9237      lt_prog_compiler_wl='-Wl,'
9238      lt_prog_compiler_pic='-KPIC'
9239      lt_prog_compiler_static='-Bstatic'
9240      ;;
9241
9242    unicos*)
9243      lt_prog_compiler_wl='-Wl,'
9244      lt_prog_compiler_can_build_shared=no
9245      ;;
9246
9247    uts4*)
9248      lt_prog_compiler_pic='-pic'
9249      lt_prog_compiler_static='-Bstatic'
9250      ;;
9251
9252    *)
9253      lt_prog_compiler_can_build_shared=no
9254      ;;
9255    esac
9256  fi
9257
9258case $host_os in
9259  # For platforms which do not support PIC, -DPIC is meaningless:
9260  *djgpp*)
9261    lt_prog_compiler_pic=
9262    ;;
9263  *)
9264    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9265    ;;
9266esac
9267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9268$as_echo "$lt_prog_compiler_pic" >&6; }
9269
9270
9271
9272
9273
9274
9275#
9276# Check to make sure the PIC flag actually works.
9277#
9278if test -n "$lt_prog_compiler_pic"; then
9279  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9280$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9281if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9282  $as_echo_n "(cached) " >&6
9283else
9284  lt_cv_prog_compiler_pic_works=no
9285   ac_outfile=conftest.$ac_objext
9286   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9287   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9288   # Insert the option either (1) after the last *FLAGS variable, or
9289   # (2) before a word containing "conftest.", or (3) at the end.
9290   # Note that $ac_compile itself does not contain backslashes and begins
9291   # with a dollar sign (not a hyphen), so the echo should work correctly.
9292   # The option is referenced via a variable to avoid confusing sed.
9293   lt_compile=`echo "$ac_compile" | $SED \
9294   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9295   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9296   -e 's:$: $lt_compiler_flag:'`
9297   (eval echo "\"\$as_me:9297: $lt_compile\"" >&5)
9298   (eval "$lt_compile" 2>conftest.err)
9299   ac_status=$?
9300   cat conftest.err >&5
9301   echo "$as_me:9301: \$? = $ac_status" >&5
9302   if (exit $ac_status) && test -s "$ac_outfile"; then
9303     # The compiler can only warn and ignore the option if not recognized
9304     # So say no if there are warnings other than the usual output.
9305     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9306     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9307     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9308       lt_cv_prog_compiler_pic_works=yes
9309     fi
9310   fi
9311   $RM conftest*
9312
9313fi
9314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9315$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9316
9317if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9318    case $lt_prog_compiler_pic in
9319     "" | " "*) ;;
9320     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9321     esac
9322else
9323    lt_prog_compiler_pic=
9324     lt_prog_compiler_can_build_shared=no
9325fi
9326
9327fi
9328
9329
9330
9331
9332
9333
9334#
9335# Check to make sure the static flag actually works.
9336#
9337wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9339$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9340if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9341  $as_echo_n "(cached) " >&6
9342else
9343  lt_cv_prog_compiler_static_works=no
9344   save_LDFLAGS="$LDFLAGS"
9345   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9346   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9347   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9348     # The linker can only warn and ignore the option if not recognized
9349     # So say no if there are warnings
9350     if test -s conftest.err; then
9351       # Append any errors to the config.log.
9352       cat conftest.err 1>&5
9353       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9354       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9355       if diff conftest.exp conftest.er2 >/dev/null; then
9356         lt_cv_prog_compiler_static_works=yes
9357       fi
9358     else
9359       lt_cv_prog_compiler_static_works=yes
9360     fi
9361   fi
9362   $RM -r conftest*
9363   LDFLAGS="$save_LDFLAGS"
9364
9365fi
9366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9367$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9368
9369if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9370    :
9371else
9372    lt_prog_compiler_static=
9373fi
9374
9375
9376
9377
9378
9379
9380
9381  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9382$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9383if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9384  $as_echo_n "(cached) " >&6
9385else
9386  lt_cv_prog_compiler_c_o=no
9387   $RM -r conftest 2>/dev/null
9388   mkdir conftest
9389   cd conftest
9390   mkdir out
9391   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9392
9393   lt_compiler_flag="-o out/conftest2.$ac_objext"
9394   # Insert the option either (1) after the last *FLAGS variable, or
9395   # (2) before a word containing "conftest.", or (3) at the end.
9396   # Note that $ac_compile itself does not contain backslashes and begins
9397   # with a dollar sign (not a hyphen), so the echo should work correctly.
9398   lt_compile=`echo "$ac_compile" | $SED \
9399   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9400   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9401   -e 's:$: $lt_compiler_flag:'`
9402   (eval echo "\"\$as_me:9402: $lt_compile\"" >&5)
9403   (eval "$lt_compile" 2>out/conftest.err)
9404   ac_status=$?
9405   cat out/conftest.err >&5
9406   echo "$as_me:9406: \$? = $ac_status" >&5
9407   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9408   then
9409     # The compiler can only warn and ignore the option if not recognized
9410     # So say no if there are warnings
9411     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9412     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9413     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9414       lt_cv_prog_compiler_c_o=yes
9415     fi
9416   fi
9417   chmod u+w . 2>&5
9418   $RM conftest*
9419   # SGI C++ compiler will create directory out/ii_files/ for
9420   # template instantiation
9421   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9422   $RM out/* && rmdir out
9423   cd ..
9424   $RM -r conftest
9425   $RM conftest*
9426
9427fi
9428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9429$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9430
9431
9432
9433
9434
9435
9436  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9437$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9438if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9439  $as_echo_n "(cached) " >&6
9440else
9441  lt_cv_prog_compiler_c_o=no
9442   $RM -r conftest 2>/dev/null
9443   mkdir conftest
9444   cd conftest
9445   mkdir out
9446   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9447
9448   lt_compiler_flag="-o out/conftest2.$ac_objext"
9449   # Insert the option either (1) after the last *FLAGS variable, or
9450   # (2) before a word containing "conftest.", or (3) at the end.
9451   # Note that $ac_compile itself does not contain backslashes and begins
9452   # with a dollar sign (not a hyphen), so the echo should work correctly.
9453   lt_compile=`echo "$ac_compile" | $SED \
9454   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9455   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9456   -e 's:$: $lt_compiler_flag:'`
9457   (eval echo "\"\$as_me:9457: $lt_compile\"" >&5)
9458   (eval "$lt_compile" 2>out/conftest.err)
9459   ac_status=$?
9460   cat out/conftest.err >&5
9461   echo "$as_me:9461: \$? = $ac_status" >&5
9462   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9463   then
9464     # The compiler can only warn and ignore the option if not recognized
9465     # So say no if there are warnings
9466     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9467     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9468     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9469       lt_cv_prog_compiler_c_o=yes
9470     fi
9471   fi
9472   chmod u+w . 2>&5
9473   $RM conftest*
9474   # SGI C++ compiler will create directory out/ii_files/ for
9475   # template instantiation
9476   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9477   $RM out/* && rmdir out
9478   cd ..
9479   $RM -r conftest
9480   $RM conftest*
9481
9482fi
9483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9484$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9485
9486
9487
9488
9489hard_links="nottested"
9490if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9491  # do not overwrite the value of need_locks provided by the user
9492  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9493$as_echo_n "checking if we can lock with hard links... " >&6; }
9494  hard_links=yes
9495  $RM conftest*
9496  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9497  touch conftest.a
9498  ln conftest.a conftest.b 2>&5 || hard_links=no
9499  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9500  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9501$as_echo "$hard_links" >&6; }
9502  if test "$hard_links" = no; then
9503    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9504$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9505    need_locks=warn
9506  fi
9507else
9508  need_locks=no
9509fi
9510
9511
9512
9513
9514
9515
9516  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9517$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9518
9519  runpath_var=
9520  allow_undefined_flag=
9521  always_export_symbols=no
9522  archive_cmds=
9523  archive_expsym_cmds=
9524  compiler_needs_object=no
9525  enable_shared_with_static_runtimes=no
9526  export_dynamic_flag_spec=
9527  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9528  hardcode_automatic=no
9529  hardcode_direct=no
9530  hardcode_direct_absolute=no
9531  hardcode_libdir_flag_spec=
9532  hardcode_libdir_flag_spec_ld=
9533  hardcode_libdir_separator=
9534  hardcode_minus_L=no
9535  hardcode_shlibpath_var=unsupported
9536  inherit_rpath=no
9537  link_all_deplibs=unknown
9538  module_cmds=
9539  module_expsym_cmds=
9540  old_archive_from_new_cmds=
9541  old_archive_from_expsyms_cmds=
9542  thread_safe_flag_spec=
9543  whole_archive_flag_spec=
9544  # include_expsyms should be a list of space-separated symbols to be *always*
9545  # included in the symbol list
9546  include_expsyms=
9547  # exclude_expsyms can be an extended regexp of symbols to exclude
9548  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9549  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9550  # as well as any symbol that contains `d'.
9551  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9552  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9553  # platforms (ab)use it in PIC code, but their linkers get confused if
9554  # the symbol is explicitly referenced.  Since portable code cannot
9555  # rely on this symbol name, it's probably fine to never include it in
9556  # preloaded symbol tables.
9557  # Exclude shared library initialization/finalization symbols.
9558  extract_expsyms_cmds=
9559
9560  case $host_os in
9561  cygwin* | mingw* | pw32* | cegcc*)
9562    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9563    # When not using gcc, we currently assume that we are using
9564    # Microsoft Visual C++.
9565    if test "$GCC" != yes; then
9566      with_gnu_ld=no
9567    fi
9568    ;;
9569  interix*)
9570    # we just hope/assume this is gcc and not c89 (= MSVC++)
9571    with_gnu_ld=yes
9572    ;;
9573  openbsd*)
9574    with_gnu_ld=no
9575    ;;
9576  esac
9577
9578  ld_shlibs=yes
9579  if test "$with_gnu_ld" = yes; then
9580    # If archive_cmds runs LD, not CC, wlarc should be empty
9581    wlarc='${wl}'
9582
9583    # Set some defaults for GNU ld with shared library support. These
9584    # are reset later if shared libraries are not supported. Putting them
9585    # here allows them to be overridden if necessary.
9586    runpath_var=LD_RUN_PATH
9587    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9588    export_dynamic_flag_spec='${wl}--export-dynamic'
9589    # ancient GNU ld didn't support --whole-archive et. al.
9590    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9591      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9592    else
9593      whole_archive_flag_spec=
9594    fi
9595    supports_anon_versioning=no
9596    case `$LD -v 2>&1` in
9597      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9598      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9599      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9600      *\ 2.11.*) ;; # other 2.11 versions
9601      *) supports_anon_versioning=yes ;;
9602    esac
9603
9604    # See if GNU ld supports shared libraries.
9605    case $host_os in
9606    aix[3-9]*)
9607      # On AIX/PPC, the GNU linker is very broken
9608      if test "$host_cpu" != ia64; then
9609        ld_shlibs=no
9610        cat <<_LT_EOF 1>&2
9611
9612*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9613*** to be unable to reliably create shared libraries on AIX.
9614*** Therefore, libtool is disabling shared libraries support.  If you
9615*** really care for shared libraries, you may want to modify your PATH
9616*** so that a non-GNU linker is found, and then restart.
9617
9618_LT_EOF
9619      fi
9620      ;;
9621
9622    amigaos*)
9623      case $host_cpu in
9624      powerpc)
9625            # see comment about AmigaOS4 .so support
9626            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9627            archive_expsym_cmds=''
9628        ;;
9629      m68k)
9630            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)'
9631            hardcode_libdir_flag_spec='-L$libdir'
9632            hardcode_minus_L=yes
9633        ;;
9634      esac
9635      ;;
9636
9637    beos*)
9638      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9639        allow_undefined_flag=unsupported
9640        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9641        # support --undefined.  This deserves some investigation.  FIXME
9642        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9643      else
9644        ld_shlibs=no
9645      fi
9646      ;;
9647
9648    cygwin* | mingw* | pw32* | cegcc*)
9649      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9650      # as there is no search path for DLLs.
9651      hardcode_libdir_flag_spec='-L$libdir'
9652      allow_undefined_flag=unsupported
9653      always_export_symbols=no
9654      enable_shared_with_static_runtimes=yes
9655      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9656
9657      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9658        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9659        # If the export-symbols file already is a .def file (1st line
9660        # is EXPORTS), use it as is; otherwise, prepend...
9661        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9662          cp $export_symbols $output_objdir/$soname.def;
9663        else
9664          echo EXPORTS > $output_objdir/$soname.def;
9665          cat $export_symbols >> $output_objdir/$soname.def;
9666        fi~
9667        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9668      else
9669        ld_shlibs=no
9670      fi
9671      ;;
9672
9673    interix[3-9]*)
9674      hardcode_direct=no
9675      hardcode_shlibpath_var=no
9676      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9677      export_dynamic_flag_spec='${wl}-E'
9678      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9679      # Instead, shared libraries are loaded at an image base (0x10000000 by
9680      # default) and relocated if they conflict, which is a slow very memory
9681      # consuming and fragmenting process.  To avoid this, we pick a random,
9682      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9683      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9684      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9685      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'
9686      ;;
9687
9688    gnu* | linux* | tpf* | k*bsd*-gnu)
9689      tmp_diet=no
9690      if test "$host_os" = linux-dietlibc; then
9691        case $cc_basename in
9692          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9693        esac
9694      fi
9695      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9696         && test "$tmp_diet" = no
9697      then
9698        tmp_addflag=
9699        tmp_sharedflag='-shared'
9700        case $cc_basename,$host_cpu in
9701        pgcc*)                          # Portland Group C compiler
9702          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9703          tmp_addflag=' $pic_flag'
9704          ;;
9705        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9706          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9707          tmp_addflag=' $pic_flag -Mnomain' ;;
9708        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9709          tmp_addflag=' -i_dynamic' ;;
9710        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9711          tmp_addflag=' -i_dynamic -nofor_main' ;;
9712        ifc* | ifort*)                  # Intel Fortran compiler
9713          tmp_addflag=' -nofor_main' ;;
9714        lf95*)                          # Lahey Fortran 8.1
9715          whole_archive_flag_spec=
9716          tmp_sharedflag='--shared' ;;
9717        xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
9718          tmp_sharedflag='-qmkshrobj'
9719          tmp_addflag= ;;
9720        esac
9721        case `$CC -V 2>&1 | sed 5q` in
9722        *Sun\ C*)                       # Sun C 5.9
9723          whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9724          compiler_needs_object=yes
9725          tmp_sharedflag='-G' ;;
9726        *Sun\ F*)                       # Sun Fortran 8.3
9727          tmp_sharedflag='-G' ;;
9728        esac
9729        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9730
9731        if test "x$supports_anon_versioning" = xyes; then
9732          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9733            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9734            echo "local: *; };" >> $output_objdir/$libname.ver~
9735            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9736        fi
9737
9738        case $cc_basename in
9739        xlf*)
9740          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9741          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9742          hardcode_libdir_flag_spec=
9743          hardcode_libdir_flag_spec_ld='-rpath $libdir'
9744          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9745          if test "x$supports_anon_versioning" = xyes; then
9746            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9747              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9748              echo "local: *; };" >> $output_objdir/$libname.ver~
9749              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9750          fi
9751          ;;
9752        esac
9753      else
9754        ld_shlibs=no
9755      fi
9756      ;;
9757
9758    netbsd*)
9759      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9760        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9761        wlarc=
9762      else
9763        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9764        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9765      fi
9766      ;;
9767
9768    solaris*)
9769      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9770        ld_shlibs=no
9771        cat <<_LT_EOF 1>&2
9772
9773*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9774*** create shared libraries on Solaris systems.  Therefore, libtool
9775*** is disabling shared libraries support.  We urge you to upgrade GNU
9776*** binutils to release 2.9.1 or newer.  Another option is to modify
9777*** your PATH or compiler configuration so that the native linker is
9778*** used, and then restart.
9779
9780_LT_EOF
9781      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9782        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9783        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9784      else
9785        ld_shlibs=no
9786      fi
9787      ;;
9788
9789    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9790      case `$LD -v 2>&1` in
9791        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9792        ld_shlibs=no
9793        cat <<_LT_EOF 1>&2
9794
9795*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9796*** reliably create shared libraries on SCO systems.  Therefore, libtool
9797*** is disabling shared libraries support.  We urge you to upgrade GNU
9798*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9799*** your PATH or compiler configuration so that the native linker is
9800*** used, and then restart.
9801
9802_LT_EOF
9803        ;;
9804        *)
9805          # For security reasons, it is highly recommended that you always
9806          # use absolute paths for naming shared libraries, and exclude the
9807          # DT_RUNPATH tag from executables and libraries.  But doing so
9808          # requires that you compile everything twice, which is a pain.
9809          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9810            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9811            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9812            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9813          else
9814            ld_shlibs=no
9815          fi
9816        ;;
9817      esac
9818      ;;
9819
9820    sunos4*)
9821      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9822      wlarc=
9823      hardcode_direct=yes
9824      hardcode_shlibpath_var=no
9825      ;;
9826
9827    *)
9828      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9829        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9830        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9831      else
9832        ld_shlibs=no
9833      fi
9834      ;;
9835    esac
9836
9837    if test "$ld_shlibs" = no; then
9838      runpath_var=
9839      hardcode_libdir_flag_spec=
9840      export_dynamic_flag_spec=
9841      whole_archive_flag_spec=
9842    fi
9843  else
9844    # PORTME fill in a description of your system's linker (not GNU ld)
9845    case $host_os in
9846    aix3*)
9847      allow_undefined_flag=unsupported
9848      always_export_symbols=yes
9849      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'
9850      # Note: this linker hardcodes the directories in LIBPATH if there
9851      # are no directories specified by -L.
9852      hardcode_minus_L=yes
9853      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9854        # Neither direct hardcoding nor static linking is supported with a
9855        # broken collect2.
9856        hardcode_direct=unsupported
9857      fi
9858      ;;
9859
9860    aix[4-9]*)
9861      if test "$host_cpu" = ia64; then
9862        # On IA64, the linker does run time linking by default, so we don't
9863        # have to do anything special.
9864        aix_use_runtimelinking=no
9865        exp_sym_flag='-Bexport'
9866        no_entry_flag=""
9867      else
9868        # If we're using GNU nm, then we don't want the "-C" option.
9869        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9870        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9871          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9872        else
9873          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'
9874        fi
9875        aix_use_runtimelinking=no
9876
9877        # Test if we are trying to use run time linking or normal
9878        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9879        # need to do runtime linking.
9880        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9881          for ld_flag in $LDFLAGS; do
9882          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9883            aix_use_runtimelinking=yes
9884            break
9885          fi
9886          done
9887          ;;
9888        esac
9889
9890        exp_sym_flag='-bexport'
9891        no_entry_flag='-bnoentry'
9892      fi
9893
9894      # When large executables or shared objects are built, AIX ld can
9895      # have problems creating the table of contents.  If linking a library
9896      # or program results in "error TOC overflow" add -mminimal-toc to
9897      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9898      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9899
9900      archive_cmds=''
9901      hardcode_direct=yes
9902      hardcode_direct_absolute=yes
9903      hardcode_libdir_separator=':'
9904      link_all_deplibs=yes
9905      file_list_spec='${wl}-f,'
9906
9907      if test "$GCC" = yes; then
9908        case $host_os in aix4.[012]|aix4.[012].*)
9909        # We only want to do this on AIX 4.2 and lower, the check
9910        # below for broken collect2 doesn't work under 4.3+
9911          collect2name=`${CC} -print-prog-name=collect2`
9912          if test -f "$collect2name" &&
9913           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9914          then
9915          # We have reworked collect2
9916          :
9917          else
9918          # We have old collect2
9919          hardcode_direct=unsupported
9920          # It fails to find uninstalled libraries when the uninstalled
9921          # path is not listed in the libpath.  Setting hardcode_minus_L
9922          # to unsupported forces relinking
9923          hardcode_minus_L=yes
9924          hardcode_libdir_flag_spec='-L$libdir'
9925          hardcode_libdir_separator=
9926          fi
9927          ;;
9928        esac
9929        shared_flag='-shared'
9930        if test "$aix_use_runtimelinking" = yes; then
9931          shared_flag="$shared_flag "'${wl}-G'
9932        fi
9933      else
9934        # not using gcc
9935        if test "$host_cpu" = ia64; then
9936        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9937        # chokes on -Wl,-G. The following line is correct:
9938          shared_flag='-G'
9939        else
9940          if test "$aix_use_runtimelinking" = yes; then
9941            shared_flag='${wl}-G'
9942          else
9943            shared_flag='${wl}-bM:SRE'
9944          fi
9945        fi
9946      fi
9947
9948      export_dynamic_flag_spec='${wl}-bexpall'
9949      # It seems that -bexpall does not export symbols beginning with
9950      # underscore (_), so it is better to generate a list of symbols to export.
9951      always_export_symbols=yes
9952      if test "$aix_use_runtimelinking" = yes; then
9953        # Warning - without using the other runtime loading flags (-brtl),
9954        # -berok will link without error, but may produce a broken library.
9955        allow_undefined_flag='-berok'
9956        # Determine the default libpath from the value encoded in an
9957        # empty executable.
9958        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9959/* end confdefs.h.  */
9960
9961int
9962main ()
9963{
9964
9965  ;
9966  return 0;
9967}
9968_ACEOF
9969if ac_fn_c_try_link "$LINENO"; then :
9970
9971lt_aix_libpath_sed='
9972    /Import File Strings/,/^$/ {
9973        /^0/ {
9974            s/^0  *\(.*\)$/\1/
9975            p
9976        }
9977    }'
9978aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9979# Check for a 64-bit object if we didn't find anything.
9980if test -z "$aix_libpath"; then
9981  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9982fi
9983fi
9984rm -f core conftest.err conftest.$ac_objext \
9985    conftest$ac_exeext conftest.$ac_ext
9986if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9987
9988        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9989        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9990      else
9991        if test "$host_cpu" = ia64; then
9992          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9993          allow_undefined_flag="-z nodefs"
9994          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"
9995        else
9996         # Determine the default libpath from the value encoded in an
9997         # empty executable.
9998         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9999/* end confdefs.h.  */
10000
10001int
10002main ()
10003{
10004
10005  ;
10006  return 0;
10007}
10008_ACEOF
10009if ac_fn_c_try_link "$LINENO"; then :
10010
10011lt_aix_libpath_sed='
10012    /Import File Strings/,/^$/ {
10013        /^0/ {
10014            s/^0  *\(.*\)$/\1/
10015            p
10016        }
10017    }'
10018aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10019# Check for a 64-bit object if we didn't find anything.
10020if test -z "$aix_libpath"; then
10021  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10022fi
10023fi
10024rm -f core conftest.err conftest.$ac_objext \
10025    conftest$ac_exeext conftest.$ac_ext
10026if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10027
10028         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10029          # Warning - without using the other run time loading flags,
10030          # -berok will link without error, but may produce a broken library.
10031          no_undefined_flag=' ${wl}-bernotok'
10032          allow_undefined_flag=' ${wl}-berok'
10033          # Exported symbols can be pulled into shared objects from archives
10034          whole_archive_flag_spec='$convenience'
10035          archive_cmds_need_lc=yes
10036          # This is similar to how AIX traditionally builds its shared libraries.
10037          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'
10038        fi
10039      fi
10040      ;;
10041
10042    amigaos*)
10043      case $host_cpu in
10044      powerpc)
10045            # see comment about AmigaOS4 .so support
10046            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10047            archive_expsym_cmds=''
10048        ;;
10049      m68k)
10050            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)'
10051            hardcode_libdir_flag_spec='-L$libdir'
10052            hardcode_minus_L=yes
10053        ;;
10054      esac
10055      ;;
10056
10057    bsdi[45]*)
10058      export_dynamic_flag_spec=-rdynamic
10059      ;;
10060
10061    cygwin* | mingw* | pw32* | cegcc*)
10062      # When not using gcc, we currently assume that we are using
10063      # Microsoft Visual C++.
10064      # hardcode_libdir_flag_spec is actually meaningless, as there is
10065      # no search path for DLLs.
10066      hardcode_libdir_flag_spec=' '
10067      allow_undefined_flag=unsupported
10068      # Tell ltmain to make .lib files, not .a files.
10069      libext=lib
10070      # Tell ltmain to make .dll files, not .so files.
10071      shrext_cmds=".dll"
10072      # FIXME: Setting linknames here is a bad hack.
10073      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10074      # The linker will automatically build a .lib file if we build a DLL.
10075      old_archive_from_new_cmds='true'
10076      # FIXME: Should let the user specify the lib program.
10077      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10078      fix_srcfile_path='`cygpath -w "$srcfile"`'
10079      enable_shared_with_static_runtimes=yes
10080      ;;
10081
10082    darwin* | rhapsody*)
10083
10084
10085  archive_cmds_need_lc=no
10086  hardcode_direct=no
10087  hardcode_automatic=yes
10088  hardcode_shlibpath_var=unsupported
10089  whole_archive_flag_spec=''
10090  link_all_deplibs=yes
10091  allow_undefined_flag="$_lt_dar_allow_undefined"
10092  case $cc_basename in
10093     ifort*) _lt_dar_can_shared=yes ;;
10094     *) _lt_dar_can_shared=$GCC ;;
10095  esac
10096  if test "$_lt_dar_can_shared" = "yes"; then
10097    output_verbose_link_cmd=echo
10098    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10099    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10100    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}"
10101    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}"
10102
10103  else
10104  ld_shlibs=no
10105  fi
10106
10107      ;;
10108
10109    dgux*)
10110      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10111      hardcode_libdir_flag_spec='-L$libdir'
10112      hardcode_shlibpath_var=no
10113      ;;
10114
10115    freebsd1*)
10116      ld_shlibs=no
10117      ;;
10118
10119    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10120    # support.  Future versions do this automatically, but an explicit c++rt0.o
10121    # does not break anything, and helps significantly (at the cost of a little
10122    # extra space).
10123    freebsd2.2*)
10124      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10125      hardcode_libdir_flag_spec='-R$libdir'
10126      hardcode_direct=yes
10127      hardcode_shlibpath_var=no
10128      ;;
10129
10130    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10131    freebsd2*)
10132      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10133      hardcode_direct=yes
10134      hardcode_minus_L=yes
10135      hardcode_shlibpath_var=no
10136      ;;
10137
10138    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10139    freebsd* | dragonfly*)
10140      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10141      hardcode_libdir_flag_spec='-R$libdir'
10142      hardcode_direct=yes
10143      hardcode_shlibpath_var=no
10144      ;;
10145
10146    hpux9*)
10147      if test "$GCC" = yes; then
10148        archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10149      else
10150        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'
10151      fi
10152      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10153      hardcode_libdir_separator=:
10154      hardcode_direct=yes
10155
10156      # hardcode_minus_L: Not really in the search PATH,
10157      # but as the default location of the library.
10158      hardcode_minus_L=yes
10159      export_dynamic_flag_spec='${wl}-E'
10160      ;;
10161
10162    hpux10*)
10163      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10164        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10165      else
10166        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10167      fi
10168      if test "$with_gnu_ld" = no; then
10169        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10170        hardcode_libdir_flag_spec_ld='+b $libdir'
10171        hardcode_libdir_separator=:
10172        hardcode_direct=yes
10173        hardcode_direct_absolute=yes
10174        export_dynamic_flag_spec='${wl}-E'
10175        # hardcode_minus_L: Not really in the search PATH,
10176        # but as the default location of the library.
10177        hardcode_minus_L=yes
10178      fi
10179      ;;
10180
10181    hpux11*)
10182      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10183        case $host_cpu in
10184        hppa*64*)
10185          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10186          ;;
10187        ia64*)
10188          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10189          ;;
10190        *)
10191          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10192          ;;
10193        esac
10194      else
10195        case $host_cpu in
10196        hppa*64*)
10197          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10198          ;;
10199        ia64*)
10200          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10201          ;;
10202        *)
10203          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10204          ;;
10205        esac
10206      fi
10207      if test "$with_gnu_ld" = no; then
10208        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10209        hardcode_libdir_separator=:
10210
10211        case $host_cpu in
10212        hppa*64*|ia64*)
10213          hardcode_direct=no
10214          hardcode_shlibpath_var=no
10215          ;;
10216        *)
10217          hardcode_direct=yes
10218          hardcode_direct_absolute=yes
10219          export_dynamic_flag_spec='${wl}-E'
10220
10221          # hardcode_minus_L: Not really in the search PATH,
10222          # but as the default location of the library.
10223          hardcode_minus_L=yes
10224          ;;
10225        esac
10226      fi
10227      ;;
10228
10229    irix5* | irix6* | nonstopux*)
10230      if test "$GCC" = yes; then
10231        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10232        # Try to use the -exported_symbol ld option, if it does not
10233        # work, assume that -exports_file does not work either and
10234        # implicitly export all symbols.
10235        save_LDFLAGS="$LDFLAGS"
10236        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10237        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10238/* end confdefs.h.  */
10239int foo(void) {}
10240_ACEOF
10241if ac_fn_c_try_link "$LINENO"; then :
10242  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10243
10244fi
10245rm -f core conftest.err conftest.$ac_objext \
10246    conftest$ac_exeext conftest.$ac_ext
10247        LDFLAGS="$save_LDFLAGS"
10248      else
10249        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10250        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10251      fi
10252      archive_cmds_need_lc='no'
10253      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10254      hardcode_libdir_separator=:
10255      inherit_rpath=yes
10256      link_all_deplibs=yes
10257      ;;
10258
10259    netbsd*)
10260      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10261        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10262      else
10263        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10264      fi
10265      hardcode_libdir_flag_spec='-R$libdir'
10266      hardcode_direct=yes
10267      hardcode_shlibpath_var=no
10268      ;;
10269
10270    newsos6)
10271      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10272      hardcode_direct=yes
10273      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10274      hardcode_libdir_separator=:
10275      hardcode_shlibpath_var=no
10276      ;;
10277
10278    *nto* | *qnx*)
10279      ;;
10280
10281    openbsd*)
10282      if test -f /usr/libexec/ld.so; then
10283        hardcode_direct=yes
10284        hardcode_shlibpath_var=no
10285        hardcode_direct_absolute=yes
10286        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10287          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10288          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10289          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10290          export_dynamic_flag_spec='${wl}-E'
10291        else
10292          case $host_os in
10293           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10294             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10295             hardcode_libdir_flag_spec='-R$libdir'
10296             ;;
10297           *)
10298             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10299             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10300             ;;
10301          esac
10302        fi
10303      else
10304        ld_shlibs=no
10305      fi
10306      ;;
10307
10308    os2*)
10309      hardcode_libdir_flag_spec='-L$libdir'
10310      hardcode_minus_L=yes
10311      allow_undefined_flag=unsupported
10312      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'
10313      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10314      ;;
10315
10316    osf3*)
10317      if test "$GCC" = yes; then
10318        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10319        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10320      else
10321        allow_undefined_flag=' -expect_unresolved \*'
10322        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10323      fi
10324      archive_cmds_need_lc='no'
10325      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10326      hardcode_libdir_separator=:
10327      ;;
10328
10329    osf4* | osf5*)      # as osf3* with the addition of -msym flag
10330      if test "$GCC" = yes; then
10331        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10332        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10333        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10334      else
10335        allow_undefined_flag=' -expect_unresolved \*'
10336        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10337        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~
10338        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10339
10340        # Both c and cxx compiler support -rpath directly
10341        hardcode_libdir_flag_spec='-rpath $libdir'
10342      fi
10343      archive_cmds_need_lc='no'
10344      hardcode_libdir_separator=:
10345      ;;
10346
10347    solaris*)
10348      no_undefined_flag=' -z defs'
10349      if test "$GCC" = yes; then
10350        wlarc='${wl}'
10351        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10352        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10353          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10354      else
10355        case `$CC -V 2>&1` in
10356        *"Compilers 5.0"*)
10357          wlarc=''
10358          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10359          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10360          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10361          ;;
10362        *)
10363          wlarc='${wl}'
10364          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10365          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10366          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10367          ;;
10368        esac
10369      fi
10370      hardcode_libdir_flag_spec='-R$libdir'
10371      hardcode_shlibpath_var=no
10372      case $host_os in
10373      solaris2.[0-5] | solaris2.[0-5].*) ;;
10374      *)
10375        # The compiler driver will combine and reorder linker options,
10376        # but understands `-z linker_flag'.  GCC discards it without `$wl',
10377        # but is careful enough not to reorder.
10378        # Supported since Solaris 2.6 (maybe 2.5.1?)
10379        if test "$GCC" = yes; then
10380          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10381        else
10382          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10383        fi
10384        ;;
10385      esac
10386      link_all_deplibs=yes
10387      ;;
10388
10389    sunos4*)
10390      if test "x$host_vendor" = xsequent; then
10391        # Use $CC to link under sequent, because it throws in some extra .o
10392        # files that make .init and .fini sections work.
10393        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10394      else
10395        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10396      fi
10397      hardcode_libdir_flag_spec='-L$libdir'
10398      hardcode_direct=yes
10399      hardcode_minus_L=yes
10400      hardcode_shlibpath_var=no
10401      ;;
10402
10403    sysv4)
10404      case $host_vendor in
10405        sni)
10406          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10407          hardcode_direct=yes # is this really true???
10408        ;;
10409        siemens)
10410          ## LD is ld it makes a PLAMLIB
10411          ## CC just makes a GrossModule.
10412          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10413          reload_cmds='$CC -r -o $output$reload_objs'
10414          hardcode_direct=no
10415        ;;
10416        motorola)
10417          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10418          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10419        ;;
10420      esac
10421      runpath_var='LD_RUN_PATH'
10422      hardcode_shlibpath_var=no
10423      ;;
10424
10425    sysv4.3*)
10426      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10427      hardcode_shlibpath_var=no
10428      export_dynamic_flag_spec='-Bexport'
10429      ;;
10430
10431    sysv4*MP*)
10432      if test -d /usr/nec; then
10433        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10434        hardcode_shlibpath_var=no
10435        runpath_var=LD_RUN_PATH
10436        hardcode_runpath_var=yes
10437        ld_shlibs=yes
10438      fi
10439      ;;
10440
10441    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10442      no_undefined_flag='${wl}-z,text'
10443      archive_cmds_need_lc=no
10444      hardcode_shlibpath_var=no
10445      runpath_var='LD_RUN_PATH'
10446
10447      if test "$GCC" = yes; then
10448        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10449        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10450      else
10451        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10452        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10453      fi
10454      ;;
10455
10456    sysv5* | sco3.2v5* | sco5v6*)
10457      # Note: We can NOT use -z defs as we might desire, because we do not
10458      # link with -lc, and that would cause any symbols used from libc to
10459      # always be unresolved, which means just about no library would
10460      # ever link correctly.  If we're not using GNU ld we use -z text
10461      # though, which does catch some bad symbols but isn't as heavy-handed
10462      # as -z defs.
10463      no_undefined_flag='${wl}-z,text'
10464      allow_undefined_flag='${wl}-z,nodefs'
10465      archive_cmds_need_lc=no
10466      hardcode_shlibpath_var=no
10467      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10468      hardcode_libdir_separator=':'
10469      link_all_deplibs=yes
10470      export_dynamic_flag_spec='${wl}-Bexport'
10471      runpath_var='LD_RUN_PATH'
10472
10473      if test "$GCC" = yes; then
10474        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10475        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10476      else
10477        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10478        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10479      fi
10480      ;;
10481
10482    uts4*)
10483      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10484      hardcode_libdir_flag_spec='-L$libdir'
10485      hardcode_shlibpath_var=no
10486      ;;
10487
10488    *)
10489      ld_shlibs=no
10490      ;;
10491    esac
10492
10493    if test x$host_vendor = xsni; then
10494      case $host in
10495      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10496        export_dynamic_flag_spec='${wl}-Blargedynsym'
10497        ;;
10498      esac
10499    fi
10500  fi
10501
10502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10503$as_echo "$ld_shlibs" >&6; }
10504test "$ld_shlibs" = no && can_build_shared=no
10505
10506with_gnu_ld=$with_gnu_ld
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522#
10523# Do we need to explicitly link libc?
10524#
10525case "x$archive_cmds_need_lc" in
10526x|xyes)
10527  # Assume -lc should be added
10528  archive_cmds_need_lc=yes
10529
10530  if test "$enable_shared" = yes && test "$GCC" = yes; then
10531    case $archive_cmds in
10532    *'~'*)
10533      # FIXME: we may have to deal with multi-command sequences.
10534      ;;
10535    '$CC '*)
10536      # Test whether the compiler implicitly links with -lc since on some
10537      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10538      # to ld, don't add -lc before -lgcc.
10539      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10540$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10541      $RM conftest*
10542      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10543
10544      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10545  (eval $ac_compile) 2>&5
10546  ac_status=$?
10547  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10548  test $ac_status = 0; } 2>conftest.err; then
10549        soname=conftest
10550        lib=conftest
10551        libobjs=conftest.$ac_objext
10552        deplibs=
10553        wl=$lt_prog_compiler_wl
10554        pic_flag=$lt_prog_compiler_pic
10555        compiler_flags=-v
10556        linker_flags=-v
10557        verstring=
10558        output_objdir=.
10559        libname=conftest
10560        lt_save_allow_undefined_flag=$allow_undefined_flag
10561        allow_undefined_flag=
10562        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10563  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10564  ac_status=$?
10565  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10566  test $ac_status = 0; }
10567        then
10568          archive_cmds_need_lc=no
10569        else
10570          archive_cmds_need_lc=yes
10571        fi
10572        allow_undefined_flag=$lt_save_allow_undefined_flag
10573      else
10574        cat conftest.err 1>&5
10575      fi
10576      $RM conftest*
10577      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
10578$as_echo "$archive_cmds_need_lc" >&6; }
10579      ;;
10580    esac
10581  fi
10582  ;;
10583esac
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
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
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10742$as_echo_n "checking dynamic linker characteristics... " >&6; }
10743
10744if test "$GCC" = yes; then
10745  case $host_os in
10746    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10747    *) lt_awk_arg="/^libraries:/" ;;
10748  esac
10749  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10750  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10751    # if the path contains ";" then we assume it to be the separator
10752    # otherwise default to the standard path separator (i.e. ":") - it is
10753    # assumed that no part of a normal pathname contains ";" but that should
10754    # okay in the real world where ";" in dirpaths is itself problematic.
10755    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10756  else
10757    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10758  fi
10759  # Ok, now we have the path, separated by spaces, we can step through it
10760  # and add multilib dir if necessary.
10761  lt_tmp_lt_search_path_spec=
10762  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10763  for lt_sys_path in $lt_search_path_spec; do
10764    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10765      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10766    else
10767      test -d "$lt_sys_path" && \
10768        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10769    fi
10770  done
10771  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10772BEGIN {RS=" "; FS="/|\n";} {
10773  lt_foo="";
10774  lt_count=0;
10775  for (lt_i = NF; lt_i > 0; lt_i--) {
10776    if ($lt_i != "" && $lt_i != ".") {
10777      if ($lt_i == "..") {
10778        lt_count++;
10779      } else {
10780        if (lt_count == 0) {
10781          lt_foo="/" $lt_i lt_foo;
10782        } else {
10783          lt_count--;
10784        }
10785      }
10786    }
10787  }
10788  if (lt_foo != "") { lt_freq[lt_foo]++; }
10789  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10790}'`
10791  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10792else
10793  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10794fi
10795library_names_spec=
10796libname_spec='lib$name'
10797soname_spec=
10798shrext_cmds=".so"
10799postinstall_cmds=
10800postuninstall_cmds=
10801finish_cmds=
10802finish_eval=
10803shlibpath_var=
10804shlibpath_overrides_runpath=unknown
10805version_type=none
10806dynamic_linker="$host_os ld.so"
10807sys_lib_dlsearch_path_spec="/lib /usr/lib"
10808need_lib_prefix=unknown
10809hardcode_into_libs=no
10810
10811# when you set need_version to no, make sure it does not cause -set_version
10812# flags to be left without arguments
10813need_version=unknown
10814
10815case $host_os in
10816aix3*)
10817  version_type=linux
10818  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10819  shlibpath_var=LIBPATH
10820
10821  # AIX 3 has no versioning support, so we append a major version to the name.
10822  soname_spec='${libname}${release}${shared_ext}$major'
10823  ;;
10824
10825aix[4-9]*)
10826  version_type=linux
10827  need_lib_prefix=no
10828  need_version=no
10829  hardcode_into_libs=yes
10830  if test "$host_cpu" = ia64; then
10831    # AIX 5 supports IA64
10832    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10833    shlibpath_var=LD_LIBRARY_PATH
10834  else
10835    # With GCC up to 2.95.x, collect2 would create an import file
10836    # for dependence libraries.  The import file would start with
10837    # the line `#! .'.  This would cause the generated library to
10838    # depend on `.', always an invalid library.  This was fixed in
10839    # development snapshots of GCC prior to 3.0.
10840    case $host_os in
10841      aix4 | aix4.[01] | aix4.[01].*)
10842      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10843           echo ' yes '
10844           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10845        :
10846      else
10847        can_build_shared=no
10848      fi
10849      ;;
10850    esac
10851    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10852    # soname into executable. Probably we can add versioning support to
10853    # collect2, so additional links can be useful in future.
10854    if test "$aix_use_runtimelinking" = yes; then
10855      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10856      # instead of lib<name>.a to let people know that these are not
10857      # typical AIX shared libraries.
10858      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10859    else
10860      # We preserve .a as extension for shared libraries through AIX4.2
10861      # and later when we are not doing run time linking.
10862      library_names_spec='${libname}${release}.a $libname.a'
10863      soname_spec='${libname}${release}${shared_ext}$major'
10864    fi
10865    shlibpath_var=LIBPATH
10866  fi
10867  ;;
10868
10869amigaos*)
10870  case $host_cpu in
10871  powerpc)
10872    # Since July 2007 AmigaOS4 officially supports .so libraries.
10873    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10874    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10875    ;;
10876  m68k)
10877    library_names_spec='$libname.ixlibrary $libname.a'
10878    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10879    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
10880    ;;
10881  esac
10882  ;;
10883
10884beos*)
10885  library_names_spec='${libname}${shared_ext}'
10886  dynamic_linker="$host_os ld.so"
10887  shlibpath_var=LIBRARY_PATH
10888  ;;
10889
10890bsdi[45]*)
10891  version_type=linux
10892  need_version=no
10893  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10894  soname_spec='${libname}${release}${shared_ext}$major'
10895  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10896  shlibpath_var=LD_LIBRARY_PATH
10897  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10898  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10899  # the default ld.so.conf also contains /usr/contrib/lib and
10900  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10901  # libtool to hard-code these into programs
10902  ;;
10903
10904cygwin* | mingw* | pw32* | cegcc*)
10905  version_type=windows
10906  shrext_cmds=".dll"
10907  need_version=no
10908  need_lib_prefix=no
10909
10910  case $GCC,$host_os in
10911  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10912    library_names_spec='$libname.dll.a'
10913    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10914    postinstall_cmds='base_file=`basename \${file}`~
10915      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10916      dldir=$destdir/`dirname \$dlpath`~
10917      test -d \$dldir || mkdir -p \$dldir~
10918      $install_prog $dir/$dlname \$dldir/$dlname~
10919      chmod a+x \$dldir/$dlname~
10920      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10921        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10922      fi'
10923    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10924      dlpath=$dir/\$dldll~
10925       $RM \$dlpath'
10926    shlibpath_overrides_runpath=yes
10927
10928    case $host_os in
10929    cygwin*)
10930      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10931      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10932      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10933      ;;
10934    mingw* | cegcc*)
10935      # MinGW DLLs use traditional 'lib' prefix
10936      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10937      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10938      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10939        # It is most probably a Windows format PATH printed by
10940        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10941        # path with ; separators, and with drive letters. We can handle the
10942        # drive letters (cygwin fileutils understands them), so leave them,
10943        # especially as we might pass files found there to a mingw objdump,
10944        # which wouldn't understand a cygwinified path. Ahh.
10945        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10946      else
10947        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10948      fi
10949      ;;
10950    pw32*)
10951      # pw32 DLLs use 'pw' prefix rather than 'lib'
10952      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10953      ;;
10954    esac
10955    ;;
10956
10957  *)
10958    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10959    ;;
10960  esac
10961  dynamic_linker='Win32 ld.exe'
10962  # FIXME: first we should search . and the directory the executable is in
10963  shlibpath_var=PATH
10964  ;;
10965
10966darwin* | rhapsody*)
10967  dynamic_linker="$host_os dyld"
10968  version_type=darwin
10969  need_lib_prefix=no
10970  need_version=no
10971  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10972  soname_spec='${libname}${release}${major}$shared_ext'
10973  shlibpath_overrides_runpath=yes
10974  shlibpath_var=DYLD_LIBRARY_PATH
10975  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10976
10977  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10978  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10979  ;;
10980
10981dgux*)
10982  version_type=linux
10983  need_lib_prefix=no
10984  need_version=no
10985  library_n