~ubuntu-branches/ubuntu/trusty/vdpau-video/trusty-proposed

« back to all changes in this revision

Viewing changes to configure

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2011-09-22 11:35:45 UTC
  • mfrom: (1.2.1 upstream) (2.1.2 experimental)
  • Revision ID: package-import@ubuntu.com-20110922113545-037dkroelik2be0y
Tags: 0.7.3-0ubuntu1
New upstream version, fix FTBFS with libav 0.7. Closes: #614485, LP: #756021.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Guess values for system-dependent variables and create Makefiles.
3
 
# Generated by GNU Autoconf 2.65 for vdpau_video 0.6.3.
 
3
# Generated by GNU Autoconf 2.61 for vdpau_video 0.7.3.
4
4
#
5
5
# Report bugs to <gbeauchesne@splitted-desktop.com>.
6
6
#
7
 
#
8
7
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9
 
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10
 
# Inc.
11
 
#
12
 
#
 
8
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
13
9
# This configure script is free software; the Free Software Foundation
14
10
# gives unlimited permission to copy, distribute and modify it.
15
 
## -------------------- ##
16
 
## M4sh Initialization. ##
17
 
## -------------------- ##
 
11
## --------------------- ##
 
12
## M4sh Initialization.  ##
 
13
## --------------------- ##
18
14
 
19
15
# Be more Bourne compatible
20
16
DUALCASE=1; export DUALCASE # for MKS sh
21
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
 
17
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22
18
  emulate sh
23
19
  NULLCMD=:
24
 
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
20
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25
21
  # is contrary to our usage.  Disable this feature.
26
22
  alias -g '${1+"$@"}'='"$@"'
27
23
  setopt NO_GLOB_SUBST
28
24
else
29
 
  case `(set -o) 2>/dev/null` in #(
30
 
  *posix*) :
31
 
    set -o posix ;; #(
32
 
  *) :
33
 
     ;;
 
25
  case `(set -o) 2>/dev/null` in
 
26
  *posix*) set -o posix ;;
34
27
esac
35
 
fi
36
 
 
37
 
 
38
 
as_nl='
39
 
'
40
 
export as_nl
41
 
# Printing a long string crashes Solaris 7 /usr/bin/printf.
42
 
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43
 
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44
 
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45
 
# Prefer a ksh shell builtin over an external printf program on Solaris,
46
 
# but without wasting forks for bash or zsh.
47
 
if test -z "$BASH_VERSION$ZSH_VERSION" \
48
 
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49
 
  as_echo='print -r --'
50
 
  as_echo_n='print -rn --'
51
 
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52
 
  as_echo='printf %s\n'
53
 
  as_echo_n='printf %s'
54
 
else
55
 
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56
 
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57
 
    as_echo_n='/usr/ucb/echo -n'
58
 
  else
59
 
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60
 
    as_echo_n_body='eval
61
 
      arg=$1;
62
 
      case $arg in #(
63
 
      *"$as_nl"*)
64
 
        expr "X$arg" : "X\\(.*\\)$as_nl";
65
 
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66
 
      esac;
67
 
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68
 
    '
69
 
    export as_echo_n_body
70
 
    as_echo_n='sh -c $as_echo_n_body as_echo'
71
 
  fi
72
 
  export as_echo_body
73
 
  as_echo='sh -c $as_echo_body as_echo'
74
 
fi
 
28
 
 
29
fi
 
30
 
 
31
 
 
32
 
 
33
 
 
34
# PATH needs CR
 
35
# Avoid depending upon Character Ranges.
 
36
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
37
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
38
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
39
as_cr_digits='0123456789'
 
40
as_cr_alnum=$as_cr_Letters$as_cr_digits
75
41
 
76
42
# The user is always right.
77
43
if test "${PATH_SEPARATOR+set}" != set; then
78
 
  PATH_SEPARATOR=:
79
 
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80
 
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81
 
      PATH_SEPARATOR=';'
82
 
  }
 
44
  echo "#! /bin/sh" >conf$$.sh
 
45
  echo  "exit 0"   >>conf$$.sh
 
46
  chmod +x conf$$.sh
 
47
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
48
    PATH_SEPARATOR=';'
 
49
  else
 
50
    PATH_SEPARATOR=:
 
51
  fi
 
52
  rm -f conf$$.sh
 
53
fi
 
54
 
 
55
# Support unset when possible.
 
56
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
57
  as_unset=unset
 
58
else
 
59
  as_unset=false
83
60
fi
84
61
 
85
62
 
88
65
# there to prevent editors from complaining about space-tab.
89
66
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90
67
# splitting by setting IFS to empty value.)
 
68
as_nl='
 
69
'
91
70
IFS=" ""        $as_nl"
92
71
 
93
72
# Find who we are.  Look in the path if we contain no directory separator.
94
 
case $0 in #((
 
73
case $0 in
95
74
  *[\\/]* ) as_myself=$0 ;;
96
75
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97
76
for as_dir in $PATH
98
77
do
99
78
  IFS=$as_save_IFS
100
79
  test -z "$as_dir" && as_dir=.
101
 
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102
 
  done
 
80
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
81
done
103
82
IFS=$as_save_IFS
104
83
 
105
84
     ;;
110
89
  as_myself=$0
111
90
fi
112
91
if test ! -f "$as_myself"; then
113
 
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114
 
  exit 1
 
92
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
93
  { (exit 1); exit 1; }
115
94
fi
116
95
 
117
 
# Unset variables that we do not need and which cause bugs (e.g. in
118
 
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119
 
# suppresses any "Segmentation fault" message there.  '((' could
120
 
# trigger a bug in pdksh 5.2.14.
121
 
for as_var in BASH_ENV ENV MAIL MAILPATH
122
 
do eval test x\${$as_var+set} = xset \
123
 
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 
96
# Work around bugs in pre-3.0 UWIN ksh.
 
97
for as_var in ENV MAIL MAILPATH
 
98
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
124
99
done
125
100
PS1='$ '
126
101
PS2='> '
127
102
PS4='+ '
128
103
 
129
104
# NLS nuisances.
130
 
LC_ALL=C
131
 
export LC_ALL
132
 
LANGUAGE=C
133
 
export LANGUAGE
 
105
for as_var in \
 
106
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
107
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
108
  LC_TELEPHONE LC_TIME
 
109
do
 
110
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
111
    eval $as_var=C; export $as_var
 
112
  else
 
113
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
114
  fi
 
115
done
 
116
 
 
117
# Required to use basename.
 
118
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
119
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
120
  as_expr=expr
 
121
else
 
122
  as_expr=false
 
123
fi
 
124
 
 
125
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
126
  as_basename=basename
 
127
else
 
128
  as_basename=false
 
129
fi
 
130
 
 
131
 
 
132
# Name of the executable.
 
133
as_me=`$as_basename -- "$0" ||
 
134
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
135
         X"$0" : 'X\(//\)$' \| \
 
136
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
137
echo X/"$0" |
 
138
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
139
            s//\1/
 
140
            q
 
141
          }
 
142
          /^X\/\(\/\/\)$/{
 
143
            s//\1/
 
144
            q
 
145
          }
 
146
          /^X\/\(\/\).*/{
 
147
            s//\1/
 
148
            q
 
149
          }
 
150
          s/.*/./; q'`
134
151
 
135
152
# CDPATH.
136
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
153
$as_unset CDPATH
 
154
 
137
155
 
138
156
if test "x$CONFIG_SHELL" = x; then
139
 
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140
 
  emulate sh
141
 
  NULLCMD=:
142
 
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143
 
  # is contrary to our usage.  Disable this feature.
144
 
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
145
 
  setopt NO_GLOB_SUBST
146
 
else
147
 
  case \`(set -o) 2>/dev/null\` in #(
148
 
  *posix*) :
149
 
    set -o posix ;; #(
150
 
  *) :
151
 
     ;;
152
 
esac
153
 
fi
154
 
"
155
 
  as_required="as_fn_return () { (exit \$1); }
156
 
as_fn_success () { as_fn_return 0; }
157
 
as_fn_failure () { as_fn_return 1; }
158
 
as_fn_ret_success () { return 0; }
159
 
as_fn_ret_failure () { return 1; }
160
 
 
161
 
exitcode=0
162
 
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163
 
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164
 
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165
 
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166
 
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
 
 
168
 
else
169
 
  exitcode=1; echo positional parameters were not saved.
170
 
fi
171
 
test x\$exitcode = x0 || exit 1"
172
 
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173
 
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174
 
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175
 
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176
 
test \$(( 1 + 1 )) = 2 || exit 1"
177
 
  if (eval "$as_required") 2>/dev/null; then :
 
157
  if (eval ":") 2>/dev/null; then
178
158
  as_have_required=yes
179
159
else
180
160
  as_have_required=no
181
161
fi
182
 
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
 
 
184
 
else
185
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186
 
as_found=false
 
162
 
 
163
  if test $as_have_required = yes &&     (eval ":
 
164
(as_func_return () {
 
165
  (exit \$1)
 
166
}
 
167
as_func_success () {
 
168
  as_func_return 0
 
169
}
 
170
as_func_failure () {
 
171
  as_func_return 1
 
172
}
 
173
as_func_ret_success () {
 
174
  return 0
 
175
}
 
176
as_func_ret_failure () {
 
177
  return 1
 
178
}
 
179
 
 
180
exitcode=0
 
181
if as_func_success; then
 
182
  :
 
183
else
 
184
  exitcode=1
 
185
  echo as_func_success failed.
 
186
fi
 
187
 
 
188
if as_func_failure; then
 
189
  exitcode=1
 
190
  echo as_func_failure succeeded.
 
191
fi
 
192
 
 
193
if as_func_ret_success; then
 
194
  :
 
195
else
 
196
  exitcode=1
 
197
  echo as_func_ret_success failed.
 
198
fi
 
199
 
 
200
if as_func_ret_failure; then
 
201
  exitcode=1
 
202
  echo as_func_ret_failure succeeded.
 
203
fi
 
204
 
 
205
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
 
206
  :
 
207
else
 
208
  exitcode=1
 
209
  echo positional parameters were not saved.
 
210
fi
 
211
 
 
212
test \$exitcode = 0) || { (exit 1); exit 1; }
 
213
 
 
214
(
 
215
  as_lineno_1=\$LINENO
 
216
  as_lineno_2=\$LINENO
 
217
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
 
218
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
 
219
") 2> /dev/null; then
 
220
  :
 
221
else
 
222
  as_candidate_shells=
 
223
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187
224
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188
225
do
189
226
  IFS=$as_save_IFS
190
227
  test -z "$as_dir" && as_dir=.
191
 
  as_found=:
192
 
  case $as_dir in #(
 
228
  case $as_dir in
193
229
         /*)
194
230
           for as_base in sh bash ksh sh5; do
195
 
             # Try only shells that exist, to save several forks.
196
 
             as_shell=$as_dir/$as_base
197
 
             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198
 
                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199
 
  CONFIG_SHELL=$as_shell as_have_required=yes
200
 
                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201
 
  break 2
202
 
fi
203
 
fi
 
231
             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
204
232
           done;;
205
233
       esac
206
 
  as_found=false
207
234
done
208
 
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209
 
              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210
 
  CONFIG_SHELL=$SHELL as_have_required=yes
211
 
fi; }
212
235
IFS=$as_save_IFS
213
236
 
214
237
 
215
 
      if test "x$CONFIG_SHELL" != x; then :
216
 
  # We cannot yet assume a decent shell, so we have to provide a
217
 
        # neutralization value for shells without unset; and this also
218
 
        # works around shells that cannot unset nonexistent variables.
219
 
        BASH_ENV=/dev/null
220
 
        ENV=/dev/null
221
 
        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222
 
        export CONFIG_SHELL
223
 
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224
 
fi
225
 
 
226
 
    if test x$as_have_required = xno; then :
227
 
  $as_echo "$0: This script requires a shell more modern than all"
228
 
  $as_echo "$0: the shells that I found on your system."
229
 
  if test x${ZSH_VERSION+set} = xset ; then
230
 
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231
 
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232
 
  else
233
 
    $as_echo "$0: Please tell bug-autoconf@gnu.org and
234
 
$0: gbeauchesne@splitted-desktop.com about your system,
235
 
$0: including any error possibly output before this
236
 
$0: message. Then install a modern shell, or manually run
237
 
$0: the script under such a shell if you do have one."
238
 
  fi
239
 
  exit 1
240
 
fi
241
 
fi
242
 
fi
243
 
SHELL=${CONFIG_SHELL-/bin/sh}
244
 
export SHELL
245
 
# Unset more variables known to interfere with behavior of common tools.
246
 
CLICOLOR_FORCE= GREP_OPTIONS=
247
 
unset CLICOLOR_FORCE GREP_OPTIONS
248
 
 
249
 
## --------------------- ##
250
 
## M4sh Shell Functions. ##
251
 
## --------------------- ##
252
 
# as_fn_unset VAR
253
 
# ---------------
254
 
# Portably unset VAR.
255
 
as_fn_unset ()
256
 
{
257
 
  { eval $1=; unset $1;}
258
 
}
259
 
as_unset=as_fn_unset
260
 
 
261
 
# as_fn_set_status STATUS
262
 
# -----------------------
263
 
# Set $? to STATUS, without forking.
264
 
as_fn_set_status ()
265
 
{
266
 
  return $1
267
 
} # as_fn_set_status
268
 
 
269
 
# as_fn_exit STATUS
270
 
# -----------------
271
 
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272
 
as_fn_exit ()
273
 
{
274
 
  set +e
275
 
  as_fn_set_status $1
276
 
  exit $1
277
 
} # as_fn_exit
278
 
 
279
 
# as_fn_mkdir_p
280
 
# -------------
281
 
# Create "$as_dir" as a directory, including parents if necessary.
282
 
as_fn_mkdir_p ()
283
 
{
284
 
 
285
 
  case $as_dir in #(
286
 
  -*) as_dir=./$as_dir;;
287
 
  esac
288
 
  test -d "$as_dir" || eval $as_mkdir_p || {
289
 
    as_dirs=
290
 
    while :; do
291
 
      case $as_dir in #(
292
 
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293
 
      *) as_qdir=$as_dir;;
294
 
      esac
295
 
      as_dirs="'$as_qdir' $as_dirs"
296
 
      as_dir=`$as_dirname -- "$as_dir" ||
297
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
299
 
         X"$as_dir" : 'X\(//\)$' \| \
300
 
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301
 
$as_echo X"$as_dir" |
302
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303
 
            s//\1/
304
 
            q
305
 
          }
306
 
          /^X\(\/\/\)[^/].*/{
307
 
            s//\1/
308
 
            q
309
 
          }
310
 
          /^X\(\/\/\)$/{
311
 
            s//\1/
312
 
            q
313
 
          }
314
 
          /^X\(\/\).*/{
315
 
            s//\1/
316
 
            q
317
 
          }
318
 
          s/.*/./; q'`
319
 
      test -d "$as_dir" && break
320
 
    done
321
 
    test -z "$as_dirs" || eval "mkdir $as_dirs"
322
 
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323
 
 
324
 
 
325
 
} # as_fn_mkdir_p
326
 
# as_fn_append VAR VALUE
327
 
# ----------------------
328
 
# Append the text in VALUE to the end of the definition contained in VAR. Take
329
 
# advantage of any shell optimizations that allow amortized linear growth over
330
 
# repeated appends, instead of the typical quadratic growth present in naive
331
 
# implementations.
332
 
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333
 
  eval 'as_fn_append ()
334
 
  {
335
 
    eval $1+=\$2
336
 
  }'
337
 
else
338
 
  as_fn_append ()
339
 
  {
340
 
    eval $1=\$$1\$2
341
 
  }
342
 
fi # as_fn_append
343
 
 
344
 
# as_fn_arith ARG...
345
 
# ------------------
346
 
# Perform arithmetic evaluation on the ARGs, and store the result in the
347
 
# global $as_val. Take advantage of shells that can avoid forks. The arguments
348
 
# must be portable across $(()) and expr.
349
 
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350
 
  eval 'as_fn_arith ()
351
 
  {
352
 
    as_val=$(( $* ))
353
 
  }'
354
 
else
355
 
  as_fn_arith ()
356
 
  {
357
 
    as_val=`expr "$@" || test $? -eq 1`
358
 
  }
359
 
fi # as_fn_arith
360
 
 
361
 
 
362
 
# as_fn_error ERROR [LINENO LOG_FD]
363
 
# ---------------------------------
364
 
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365
 
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366
 
# script with status $?, using 1 if that was 0.
367
 
as_fn_error ()
368
 
{
369
 
  as_status=$?; test $as_status -eq 0 && as_status=1
370
 
  if test "$3"; then
371
 
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372
 
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
373
 
  fi
374
 
  $as_echo "$as_me: error: $1" >&2
375
 
  as_fn_exit $as_status
376
 
} # as_fn_error
377
 
 
378
 
if expr a : '\(a\)' >/dev/null 2>&1 &&
379
 
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
380
 
  as_expr=expr
381
 
else
382
 
  as_expr=false
383
 
fi
384
 
 
385
 
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386
 
  as_basename=basename
387
 
else
388
 
  as_basename=false
389
 
fi
390
 
 
391
 
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392
 
  as_dirname=dirname
393
 
else
394
 
  as_dirname=false
395
 
fi
396
 
 
397
 
as_me=`$as_basename -- "$0" ||
398
 
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399
 
         X"$0" : 'X\(//\)$' \| \
400
 
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401
 
$as_echo X/"$0" |
402
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{
403
 
            s//\1/
404
 
            q
405
 
          }
406
 
          /^X\/\(\/\/\)$/{
407
 
            s//\1/
408
 
            q
409
 
          }
410
 
          /^X\/\(\/\).*/{
411
 
            s//\1/
412
 
            q
413
 
          }
414
 
          s/.*/./; q'`
415
 
 
416
 
# Avoid depending upon Character Ranges.
417
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420
 
as_cr_digits='0123456789'
421
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
422
 
 
423
 
 
424
 
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
425
 
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
426
 
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427
 
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428
 
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
 
238
      for as_shell in $as_candidate_shells $SHELL; do
 
239
         # Try only shells that exist, to save several forks.
 
240
         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 
241
                { ("$as_shell") 2> /dev/null <<\_ASEOF
 
242
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
243
  emulate sh
 
244
  NULLCMD=:
 
245
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
246
  # is contrary to our usage.  Disable this feature.
 
247
  alias -g '${1+"$@"}'='"$@"'
 
248
  setopt NO_GLOB_SUBST
 
249
else
 
250
  case `(set -o) 2>/dev/null` in
 
251
  *posix*) set -o posix ;;
 
252
esac
 
253
 
 
254
fi
 
255
 
 
256
 
 
257
:
 
258
_ASEOF
 
259
}; then
 
260
  CONFIG_SHELL=$as_shell
 
261
               as_have_required=yes
 
262
               if { "$as_shell" 2> /dev/null <<\_ASEOF
 
263
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
264
  emulate sh
 
265
  NULLCMD=:
 
266
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
267
  # is contrary to our usage.  Disable this feature.
 
268
  alias -g '${1+"$@"}'='"$@"'
 
269
  setopt NO_GLOB_SUBST
 
270
else
 
271
  case `(set -o) 2>/dev/null` in
 
272
  *posix*) set -o posix ;;
 
273
esac
 
274
 
 
275
fi
 
276
 
 
277
 
 
278
:
 
279
(as_func_return () {
 
280
  (exit $1)
 
281
}
 
282
as_func_success () {
 
283
  as_func_return 0
 
284
}
 
285
as_func_failure () {
 
286
  as_func_return 1
 
287
}
 
288
as_func_ret_success () {
 
289
  return 0
 
290
}
 
291
as_func_ret_failure () {
 
292
  return 1
 
293
}
 
294
 
 
295
exitcode=0
 
296
if as_func_success; then
 
297
  :
 
298
else
 
299
  exitcode=1
 
300
  echo as_func_success failed.
 
301
fi
 
302
 
 
303
if as_func_failure; then
 
304
  exitcode=1
 
305
  echo as_func_failure succeeded.
 
306
fi
 
307
 
 
308
if as_func_ret_success; then
 
309
  :
 
310
else
 
311
  exitcode=1
 
312
  echo as_func_ret_success failed.
 
313
fi
 
314
 
 
315
if as_func_ret_failure; then
 
316
  exitcode=1
 
317
  echo as_func_ret_failure succeeded.
 
318
fi
 
319
 
 
320
if ( set x; as_func_ret_success y && test x = "$1" ); then
 
321
  :
 
322
else
 
323
  exitcode=1
 
324
  echo positional parameters were not saved.
 
325
fi
 
326
 
 
327
test $exitcode = 0) || { (exit 1); exit 1; }
 
328
 
 
329
(
 
330
  as_lineno_1=$LINENO
 
331
  as_lineno_2=$LINENO
 
332
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
333
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
 
334
 
 
335
_ASEOF
 
336
}; then
 
337
  break
 
338
fi
 
339
 
 
340
fi
 
341
 
 
342
      done
 
343
 
 
344
      if test "x$CONFIG_SHELL" != x; then
 
345
  for as_var in BASH_ENV ENV
 
346
        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
347
        done
 
348
        export CONFIG_SHELL
 
349
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
 
350
fi
 
351
 
 
352
 
 
353
    if test $as_have_required = no; then
 
354
  echo This script requires a shell more modern than all the
 
355
      echo shells that I found on your system.  Please install a
 
356
      echo modern shell, or manually run the script under such a
 
357
      echo shell if you do have one.
 
358
      { (exit 1); exit 1; }
 
359
fi
 
360
 
 
361
 
 
362
fi
 
363
 
 
364
fi
 
365
 
 
366
 
 
367
 
 
368
(eval "as_func_return () {
 
369
  (exit \$1)
 
370
}
 
371
as_func_success () {
 
372
  as_func_return 0
 
373
}
 
374
as_func_failure () {
 
375
  as_func_return 1
 
376
}
 
377
as_func_ret_success () {
 
378
  return 0
 
379
}
 
380
as_func_ret_failure () {
 
381
  return 1
 
382
}
 
383
 
 
384
exitcode=0
 
385
if as_func_success; then
 
386
  :
 
387
else
 
388
  exitcode=1
 
389
  echo as_func_success failed.
 
390
fi
 
391
 
 
392
if as_func_failure; then
 
393
  exitcode=1
 
394
  echo as_func_failure succeeded.
 
395
fi
 
396
 
 
397
if as_func_ret_success; then
 
398
  :
 
399
else
 
400
  exitcode=1
 
401
  echo as_func_ret_success failed.
 
402
fi
 
403
 
 
404
if as_func_ret_failure; then
 
405
  exitcode=1
 
406
  echo as_func_ret_failure succeeded.
 
407
fi
 
408
 
 
409
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
 
410
  :
 
411
else
 
412
  exitcode=1
 
413
  echo positional parameters were not saved.
 
414
fi
 
415
 
 
416
test \$exitcode = 0") || {
 
417
  echo No shell found that supports shell functions.
 
418
  echo Please tell autoconf@gnu.org about your system,
 
419
  echo including any error possibly output before this
 
420
  echo message
 
421
}
 
422
 
 
423
 
 
424
 
 
425
  as_lineno_1=$LINENO
 
426
  as_lineno_2=$LINENO
 
427
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
428
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
 
429
 
 
430
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
431
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
432
  # line-number line after each line using $LINENO; the second 'sed'
 
433
  # does the real work.  The second script uses 'N' to pair each
 
434
  # line-number line with the line containing $LINENO, and appends
 
435
  # trailing '-' during substitution so that $LINENO is not a special
 
436
  # case at line end.
 
437
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
438
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
 
439
  # E. McMahon (1931-1989) for sed's syntax.  :-)
429
440
  sed -n '
430
441
    p
431
442
    /[$]LINENO/=
442
453
      s/-\n.*//
443
454
    ' >$as_me.lineno &&
444
455
  chmod +x "$as_me.lineno" ||
445
 
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
 
456
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
457
   { (exit 1); exit 1; }; }
446
458
 
447
459
  # Don't try to exec as it changes $[0], causing all sort of problems
448
460
  # (the dirname of $[0] is not the place where we might find the
452
464
  exit
453
465
}
454
466
 
 
467
 
 
468
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
469
  as_dirname=dirname
 
470
else
 
471
  as_dirname=false
 
472
fi
 
473
 
455
474
ECHO_C= ECHO_N= ECHO_T=
456
 
case `echo -n x` in #(((((
 
475
case `echo -n x` in
457
476
-n*)
458
 
  case `echo 'xy\c'` in
 
477
  case `echo 'x\c'` in
459
478
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
460
 
  xy)  ECHO_C='\c';;
461
 
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
462
 
       ECHO_T=' ';;
 
479
  *)   ECHO_C='\c';;
463
480
  esac;;
464
481
*)
465
482
  ECHO_N='-n';;
466
483
esac
467
484
 
 
485
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
486
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
487
  as_expr=expr
 
488
else
 
489
  as_expr=false
 
490
fi
 
491
 
468
492
rm -f conf$$ conf$$.exe conf$$.file
469
493
if test -d conf$$.dir; then
470
494
  rm -f conf$$.dir/conf$$.file
471
495
else
472
496
  rm -f conf$$.dir
473
 
  mkdir conf$$.dir 2>/dev/null
 
497
  mkdir conf$$.dir
474
498
fi
475
 
if (echo >conf$$.file) 2>/dev/null; then
476
 
  if ln -s conf$$.file conf$$ 2>/dev/null; then
477
 
    as_ln_s='ln -s'
478
 
    # ... but there are two gotchas:
479
 
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480
 
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481
 
    # In both cases, we have to default to `cp -p'.
482
 
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483
 
      as_ln_s='cp -p'
484
 
  elif ln conf$$.file conf$$ 2>/dev/null; then
485
 
    as_ln_s=ln
486
 
  else
 
499
echo >conf$$.file
 
500
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
501
  as_ln_s='ln -s'
 
502
  # ... but there are two gotchas:
 
503
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
504
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
505
  # In both cases, we have to default to `cp -p'.
 
506
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
487
507
    as_ln_s='cp -p'
488
 
  fi
 
508
elif ln conf$$.file conf$$ 2>/dev/null; then
 
509
  as_ln_s=ln
489
510
else
490
511
  as_ln_s='cp -p'
491
512
fi
493
514
rmdir conf$$.dir 2>/dev/null
494
515
 
495
516
if mkdir -p . 2>/dev/null; then
496
 
  as_mkdir_p='mkdir -p "$as_dir"'
 
517
  as_mkdir_p=:
497
518
else
498
519
  test -d ./-p && rmdir ./-p
499
520
  as_mkdir_p=false
510
531
  as_test_x='
511
532
    eval sh -c '\''
512
533
      if test -d "$1"; then
513
 
        test -d "$1/.";
 
534
        test -d "$1/.";
514
535
      else
515
 
        case $1 in #(
516
 
        -*)set "./$1";;
 
536
        case $1 in
 
537
        -*)set "./$1";;
517
538
        esac;
518
 
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
 
539
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
519
540
        ???[sx]*):;;*)false;;esac;fi
520
541
    '\'' sh
521
542
  '
530
551
 
531
552
 
532
553
 
 
554
 
533
555
# Check that we are running under the correct shell.
534
556
SHELL=${CONFIG_SHELL-/bin/sh}
535
557
 
536
 
case X$lt_ECHO in
 
558
case X$ECHO in
537
559
X*--fallback-echo)
538
560
  # Remove one level of quotation (which was required for Make).
539
 
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
 
561
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
540
562
  ;;
541
563
esac
542
564
 
543
 
ECHO=${lt_ECHO-echo}
 
565
echo=${ECHO-echo}
544
566
if test "X$1" = X--no-reexec; then
545
567
  # Discard the --no-reexec flag, and continue.
546
568
  shift
547
569
elif test "X$1" = X--fallback-echo; then
548
570
  # Avoid inline document here, it may be left over
549
571
  :
550
 
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
551
 
  # Yippee, $ECHO works!
 
572
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
 
573
  # Yippee, $echo works!
552
574
  :
553
575
else
554
576
  # Restart under the correct shell.
558
580
if test "X$1" = X--fallback-echo; then
559
581
  # used as fallback echo
560
582
  shift
561
 
  cat <<_LT_EOF
 
583
  cat <<EOF
562
584
$*
563
 
_LT_EOF
 
585
EOF
564
586
  exit 0
565
587
fi
566
588
 
568
590
# if CDPATH is set.
569
591
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
570
592
 
571
 
if test -z "$lt_ECHO"; then
572
 
  if test "X${echo_test_string+set}" != Xset; then
573
 
    # find a string as large as possible, as long as the shell can cope with it
574
 
    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
575
 
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
576
 
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
577
 
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
578
 
      then
579
 
        break
580
 
      fi
581
 
    done
582
 
  fi
583
 
 
584
 
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
585
 
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
586
 
     test "X$echo_testing_string" = "X$echo_test_string"; then
587
 
    :
588
 
  else
589
 
    # The Solaris, AIX, and Digital Unix default echo programs unquote
590
 
    # backslashes.  This makes it impossible to quote backslashes using
591
 
    #   echo "$something" | sed 's/\\/\\\\/g'
592
 
    #
593
 
    # So, first we look for a working echo in the user's PATH.
594
 
 
595
 
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
596
 
    for dir in $PATH /usr/ucb; do
597
 
      IFS="$lt_save_ifs"
598
 
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
599
 
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
600
 
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
601
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
602
 
        ECHO="$dir/echo"
603
 
        break
604
 
      fi
605
 
    done
 
593
if test -z "$ECHO"; then
 
594
if test "X${echo_test_string+set}" != Xset; then
 
595
# find a string as large as possible, as long as the shell can cope with it
 
596
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
 
597
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
598
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
 
599
       echo_test_string=`eval $cmd` &&
 
600
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
 
601
    then
 
602
      break
 
603
    fi
 
604
  done
 
605
fi
 
606
 
 
607
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
608
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
609
   test "X$echo_testing_string" = "X$echo_test_string"; then
 
610
  :
 
611
else
 
612
  # The Solaris, AIX, and Digital Unix default echo programs unquote
 
613
  # backslashes.  This makes it impossible to quote backslashes using
 
614
  #   echo "$something" | sed 's/\\/\\\\/g'
 
615
  #
 
616
  # So, first we look for a working echo in the user's PATH.
 
617
 
 
618
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
619
  for dir in $PATH /usr/ucb; do
606
620
    IFS="$lt_save_ifs"
 
621
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
622
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
623
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
624
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
625
      echo="$dir/echo"
 
626
      break
 
627
    fi
 
628
  done
 
629
  IFS="$lt_save_ifs"
607
630
 
608
 
    if test "X$ECHO" = Xecho; then
609
 
      # We didn't find a better echo, so look for alternatives.
610
 
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
611
 
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
612
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
613
 
        # This shell has a builtin print -r that does the trick.
614
 
        ECHO='print -r'
615
 
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
616
 
           test "X$CONFIG_SHELL" != X/bin/ksh; then
617
 
        # If we have ksh, try running configure again with it.
618
 
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
619
 
        export ORIGINAL_CONFIG_SHELL
620
 
        CONFIG_SHELL=/bin/ksh
621
 
        export CONFIG_SHELL
622
 
        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
 
631
  if test "X$echo" = Xecho; then
 
632
    # We didn't find a better echo, so look for alternatives.
 
633
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
 
634
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
 
635
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
636
      # This shell has a builtin print -r that does the trick.
 
637
      echo='print -r'
 
638
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
 
639
         test "X$CONFIG_SHELL" != X/bin/ksh; then
 
640
      # If we have ksh, try running configure again with it.
 
641
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
642
      export ORIGINAL_CONFIG_SHELL
 
643
      CONFIG_SHELL=/bin/ksh
 
644
      export CONFIG_SHELL
 
645
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
 
646
    else
 
647
      # Try using printf.
 
648
      echo='printf %s\n'
 
649
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
650
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
651
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
652
        # Cool, printf works
 
653
        :
 
654
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
655
           test "X$echo_testing_string" = 'X\t' &&
 
656
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
657
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
658
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
659
        export CONFIG_SHELL
 
660
        SHELL="$CONFIG_SHELL"
 
661
        export SHELL
 
662
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
663
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
664
           test "X$echo_testing_string" = 'X\t' &&
 
665
           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
666
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
667
        echo="$CONFIG_SHELL $0 --fallback-echo"
623
668
      else
624
 
        # Try using printf.
625
 
        ECHO='printf %s\n'
626
 
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627
 
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
629
 
          # Cool, printf works
630
 
          :
631
 
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
632
 
             test "X$echo_testing_string" = 'X\t' &&
633
 
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
634
 
             test "X$echo_testing_string" = "X$echo_test_string"; then
635
 
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
636
 
          export CONFIG_SHELL
637
 
          SHELL="$CONFIG_SHELL"
638
 
          export SHELL
639
 
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
640
 
        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641
 
             test "X$echo_testing_string" = 'X\t' &&
642
 
             echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643
 
             test "X$echo_testing_string" = "X$echo_test_string"; then
644
 
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
645
 
        else
646
 
          # maybe with a smaller string...
647
 
          prev=:
648
 
 
649
 
          for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
650
 
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
651
 
            then
652
 
              break
653
 
            fi
654
 
            prev="$cmd"
655
 
          done
656
 
 
657
 
          if test "$prev" != 'sed 50q "$0"'; then
658
 
            echo_test_string=`eval $prev`
659
 
            export echo_test_string
660
 
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
661
 
          else
662
 
            # Oops.  We lost completely, so just stick with echo.
663
 
            ECHO=echo
 
669
        # maybe with a smaller string...
 
670
        prev=:
 
671
 
 
672
        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
 
673
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
 
674
          then
 
675
            break
664
676
          fi
665
 
        fi
 
677
          prev="$cmd"
 
678
        done
 
679
 
 
680
        if test "$prev" != 'sed 50q "$0"'; then
 
681
          echo_test_string=`eval $prev`
 
682
          export echo_test_string
 
683
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
 
684
        else
 
685
          # Oops.  We lost completely, so just stick with echo.
 
686
          echo=echo
 
687
        fi
666
688
      fi
667
689
    fi
668
690
  fi
669
691
fi
 
692
fi
670
693
 
671
694
# Copy echo and quote the copy suitably for passing to libtool from
672
695
# the Makefile, instead of quoting the original, which is used later.
673
 
lt_ECHO=$ECHO
674
 
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
675
 
   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
 
696
ECHO=$echo
 
697
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
 
698
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
676
699
fi
677
700
 
678
701
 
679
702
 
680
703
 
681
 
test -n "$DJDIR" || exec 7<&0 </dev/null
682
 
exec 6>&1
 
704
tagnames=${tagnames+${tagnames},}CXX
 
705
 
 
706
tagnames=${tagnames+${tagnames},}F77
 
707
 
 
708
exec 7<&0 </dev/null 6>&1
683
709
 
684
710
# Name of the host.
685
711
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
697
723
subdirs=
698
724
MFLAGS=
699
725
MAKEFLAGS=
 
726
SHELL=${CONFIG_SHELL-/bin/sh}
700
727
 
701
728
# Identity of this package.
702
729
PACKAGE_NAME='vdpau_video'
703
730
PACKAGE_TARNAME='vdpau-video'
704
 
PACKAGE_VERSION='0.6.3'
705
 
PACKAGE_STRING='vdpau_video 0.6.3'
 
731
PACKAGE_VERSION='0.7.3'
 
732
PACKAGE_STRING='vdpau_video 0.7.3'
706
733
PACKAGE_BUGREPORT='gbeauchesne@splitted-desktop.com'
707
 
PACKAGE_URL=''
708
734
 
709
735
ac_unique_file="Makefile.am"
710
736
# Factoring default headers for most tests.
743
769
# include <unistd.h>
744
770
#endif"
745
771
 
746
 
ac_subst_vars='am__EXEEXT_FALSE
747
 
am__EXEEXT_TRUE
748
 
LTLIBOBJS
749
 
LIBOBJS
750
 
VDPAU_VIDEO_LIBS
751
 
VDPAU_VIDEO_CFLAGS
752
 
USE_GLX_FALSE
753
 
USE_GLX_TRUE
754
 
LIBVA_DRIVERS_PATH
755
 
LIBVA_GLX_DEPS_LIBS
756
 
LIBVA_GLX_DEPS_CFLAGS
757
 
LIBVA_X11_DEPS_LIBS
758
 
LIBVA_X11_DEPS_CFLAGS
759
 
LIBVA_DEPS_LIBS
760
 
LIBVA_DEPS_CFLAGS
761
 
PKG_CONFIG
762
 
GL_DEPS_LIBS
763
 
GL_DEPS_CFLAGS
764
 
CPP
765
 
OTOOL64
766
 
OTOOL
767
 
LIPO
768
 
NMEDIT
769
 
DSYMUTIL
770
 
lt_ECHO
 
772
ac_subst_vars='SHELL
 
773
PATH_SEPARATOR
 
774
PACKAGE_NAME
 
775
PACKAGE_TARNAME
 
776
PACKAGE_VERSION
 
777
PACKAGE_STRING
 
778
PACKAGE_BUGREPORT
 
779
exec_prefix
 
780
prefix
 
781
program_transform_name
 
782
bindir
 
783
sbindir
 
784
libexecdir
 
785
datarootdir
 
786
datadir
 
787
sysconfdir
 
788
sharedstatedir
 
789
localstatedir
 
790
includedir
 
791
oldincludedir
 
792
docdir
 
793
infodir
 
794
htmldir
 
795
dvidir
 
796
pdfdir
 
797
psdir
 
798
libdir
 
799
localedir
 
800
mandir
 
801
DEFS
 
802
ECHO_C
 
803
ECHO_N
 
804
ECHO_T
 
805
LIBS
 
806
build_alias
 
807
host_alias
 
808
target_alias
 
809
INSTALL_PROGRAM
 
810
INSTALL_SCRIPT
 
811
INSTALL_DATA
 
812
CYGPATH_W
 
813
PACKAGE
 
814
VERSION
 
815
ACLOCAL
 
816
AUTOCONF
 
817
AUTOMAKE
 
818
AUTOHEADER
 
819
MAKEINFO
 
820
install_sh
 
821
STRIP
 
822
INSTALL_STRIP_PROGRAM
 
823
mkdir_p
 
824
AWK
 
825
SET_MAKE
 
826
am__leading_dot
 
827
AMTAR
 
828
am__tar
 
829
am__untar
 
830
LIBVA_SDS_PACKAGE_VERSION
 
831
VDPAU_VIDEO_LT_LDFLAGS
 
832
build
 
833
build_cpu
 
834
build_vendor
 
835
build_os
 
836
host
 
837
host_cpu
 
838
host_vendor
 
839
host_os
 
840
CC
 
841
CFLAGS
 
842
LDFLAGS
 
843
CPPFLAGS
 
844
ac_ct_CC
 
845
EXEEXT
 
846
OBJEXT
 
847
DEPDIR
 
848
am__include
 
849
am__quote
 
850
AMDEP_TRUE
 
851
AMDEP_FALSE
 
852
AMDEPBACKSLASH
 
853
CCDEPMODE
 
854
am__fastdepCC_TRUE
 
855
am__fastdepCC_FALSE
 
856
GREP
 
857
EGREP
 
858
LN_S
 
859
ECHO
 
860
AR
771
861
RANLIB
772
 
AR
773
 
OBJDUMP
774
 
LN_S
775
 
NM
776
 
ac_ct_DUMPBIN
777
 
DUMPBIN
778
 
LD
779
 
FGREP
780
 
EGREP
781
 
GREP
782
 
SED
783
 
am__fastdepCC_FALSE
784
 
am__fastdepCC_TRUE
785
 
CCDEPMODE
786
 
AMDEPBACKSLASH
787
 
AMDEP_FALSE
788
 
AMDEP_TRUE
789
 
am__quote
790
 
am__include
791
 
DEPDIR
792
 
OBJEXT
793
 
EXEEXT
794
 
ac_ct_CC
795
 
CPPFLAGS
796
 
LDFLAGS
797
 
CFLAGS
798
 
CC
799
 
host_os
800
 
host_vendor
801
 
host_cpu
802
 
host
803
 
build_os
804
 
build_vendor
805
 
build_cpu
806
 
build
 
862
CPP
 
863
CXX
 
864
CXXFLAGS
 
865
ac_ct_CXX
 
866
CXXDEPMODE
 
867
am__fastdepCXX_TRUE
 
868
am__fastdepCXX_FALSE
 
869
CXXCPP
 
870
F77
 
871
FFLAGS
 
872
ac_ct_F77
807
873
LIBTOOL
808
 
VDPAU_VIDEO_LT_LDFLAGS
809
 
LIBVA_SDS_PACKAGE_VERSION
810
 
am__untar
811
 
am__tar
812
 
AMTAR
813
 
am__leading_dot
814
 
SET_MAKE
815
 
AWK
816
 
mkdir_p
817
 
MKDIR_P
818
 
INSTALL_STRIP_PROGRAM
819
 
STRIP
820
 
install_sh
821
 
MAKEINFO
822
 
AUTOHEADER
823
 
AUTOMAKE
824
 
AUTOCONF
825
 
ACLOCAL
826
 
VERSION
827
 
PACKAGE
828
 
CYGPATH_W
829
 
am__isrc
830
 
INSTALL_DATA
831
 
INSTALL_SCRIPT
832
 
INSTALL_PROGRAM
833
 
target_alias
834
 
host_alias
835
 
build_alias
836
 
LIBS
837
 
ECHO_T
838
 
ECHO_N
839
 
ECHO_C
840
 
DEFS
841
 
mandir
842
 
localedir
843
 
libdir
844
 
psdir
845
 
pdfdir
846
 
dvidir
847
 
htmldir
848
 
infodir
849
 
docdir
850
 
oldincludedir
851
 
includedir
852
 
localstatedir
853
 
sharedstatedir
854
 
sysconfdir
855
 
datadir
856
 
datarootdir
857
 
libexecdir
858
 
sbindir
859
 
bindir
860
 
program_transform_name
861
 
prefix
862
 
exec_prefix
863
 
PACKAGE_URL
864
 
PACKAGE_BUGREPORT
865
 
PACKAGE_STRING
866
 
PACKAGE_VERSION
867
 
PACKAGE_TARNAME
868
 
PACKAGE_NAME
869
 
PATH_SEPARATOR
870
 
SHELL'
 
874
GL_DEPS_CFLAGS
 
875
GL_DEPS_LIBS
 
876
PKG_CONFIG
 
877
LIBVA_DEPS_CFLAGS
 
878
LIBVA_DEPS_LIBS
 
879
LIBVA_X11_DEPS_CFLAGS
 
880
LIBVA_X11_DEPS_LIBS
 
881
LIBVA_GLX_DEPS_CFLAGS
 
882
LIBVA_GLX_DEPS_LIBS
 
883
LIBVA_DRIVERS_PATH
 
884
USE_GLX_TRUE
 
885
USE_GLX_FALSE
 
886
VDPAU_VIDEO_CFLAGS
 
887
VDPAU_VIDEO_LIBS
 
888
LIBOBJS
 
889
LTLIBOBJS'
871
890
ac_subst_files=''
872
 
ac_user_opts='
873
 
enable_option_checking
874
 
enable_glx
875
 
enable_debug
876
 
enable_tracer
877
 
enable_static
878
 
enable_shared
879
 
with_pic
880
 
enable_fast_install
881
 
enable_dependency_tracking
882
 
with_gnu_ld
883
 
enable_libtool_lock
884
 
enable_largefile
885
 
'
886
891
      ac_precious_vars='build_alias
887
892
host_alias
888
893
target_alias
892
897
LIBS
893
898
CPPFLAGS
894
899
CPP
 
900
CXX
 
901
CXXFLAGS
 
902
CCC
 
903
CXXCPP
 
904
F77
 
905
FFLAGS
895
906
PKG_CONFIG
896
907
LIBVA_DEPS_CFLAGS
897
908
LIBVA_DEPS_LIBS
904
915
# Initialize some variables set by options.
905
916
ac_init_help=
906
917
ac_init_version=false
907
 
ac_unrecognized_opts=
908
 
ac_unrecognized_sep=
909
918
# The variables have the same names as the options, with
910
919
# dashes changed to underlines.
911
920
cache_file=/dev/null
1004
1013
    datarootdir=$ac_optarg ;;
1005
1014
 
1006
1015
  -disable-* | --disable-*)
1007
 
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
1016
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1008
1017
    # Reject names that are not valid shell variable names.
1009
 
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1010
 
      as_fn_error "invalid feature name: $ac_useropt"
1011
 
    ac_useropt_orig=$ac_useropt
1012
 
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1013
 
    case $ac_user_opts in
1014
 
      *"
1015
 
"enable_$ac_useropt"
1016
 
"*) ;;
1017
 
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1018
 
         ac_unrecognized_sep=', ';;
1019
 
    esac
1020
 
    eval enable_$ac_useropt=no ;;
 
1018
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1019
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
1020
   { (exit 1); exit 1; }; }
 
1021
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
 
1022
    eval enable_$ac_feature=no ;;
1021
1023
 
1022
1024
  -docdir | --docdir | --docdi | --doc | --do)
1023
1025
    ac_prev=docdir ;;
1030
1032
    dvidir=$ac_optarg ;;
1031
1033
 
1032
1034
  -enable-* | --enable-*)
1033
 
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
1035
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1034
1036
    # Reject names that are not valid shell variable names.
1035
 
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1036
 
      as_fn_error "invalid feature name: $ac_useropt"
1037
 
    ac_useropt_orig=$ac_useropt
1038
 
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1039
 
    case $ac_user_opts in
1040
 
      *"
1041
 
"enable_$ac_useropt"
1042
 
"*) ;;
1043
 
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1044
 
         ac_unrecognized_sep=', ';;
1045
 
    esac
1046
 
    eval enable_$ac_useropt=\$ac_optarg ;;
 
1037
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1038
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
1039
   { (exit 1); exit 1; }; }
 
1040
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
 
1041
    eval enable_$ac_feature=\$ac_optarg ;;
1047
1042
 
1048
1043
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1049
1044
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1234
1229
    ac_init_version=: ;;
1235
1230
 
1236
1231
  -with-* | --with-*)
1237
 
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
1232
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1238
1233
    # Reject names that are not valid shell variable names.
1239
 
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1240
 
      as_fn_error "invalid package name: $ac_useropt"
1241
 
    ac_useropt_orig=$ac_useropt
1242
 
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1243
 
    case $ac_user_opts in
1244
 
      *"
1245
 
"with_$ac_useropt"
1246
 
"*) ;;
1247
 
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1248
 
         ac_unrecognized_sep=', ';;
1249
 
    esac
1250
 
    eval with_$ac_useropt=\$ac_optarg ;;
 
1234
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1235
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
1236
   { (exit 1); exit 1; }; }
 
1237
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
 
1238
    eval with_$ac_package=\$ac_optarg ;;
1251
1239
 
1252
1240
  -without-* | --without-*)
1253
 
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
1241
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1254
1242
    # Reject names that are not valid shell variable names.
1255
 
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1256
 
      as_fn_error "invalid package name: $ac_useropt"
1257
 
    ac_useropt_orig=$ac_useropt
1258
 
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1259
 
    case $ac_user_opts in
1260
 
      *"
1261
 
"with_$ac_useropt"
1262
 
"*) ;;
1263
 
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1264
 
         ac_unrecognized_sep=', ';;
1265
 
    esac
1266
 
    eval with_$ac_useropt=no ;;
 
1243
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1244
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
1245
   { (exit 1); exit 1; }; }
 
1246
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
 
1247
    eval with_$ac_package=no ;;
1267
1248
 
1268
1249
  --x)
1269
1250
    # Obsolete; use --with-x.
1283
1264
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1284
1265
    x_libraries=$ac_optarg ;;
1285
1266
 
1286
 
  -*) as_fn_error "unrecognized option: \`$ac_option'
1287
 
Try \`$0 --help' for more information."
 
1267
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
1268
Try \`$0 --help' for more information." >&2
 
1269
   { (exit 1); exit 1; }; }
1288
1270
    ;;
1289
1271
 
1290
1272
  *=*)
1291
1273
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1292
1274
    # Reject names that are not valid shell variable names.
1293
 
    case $ac_envvar in #(
1294
 
      '' | [0-9]* | *[!_$as_cr_alnum]* )
1295
 
      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1296
 
    esac
 
1275
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
1276
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
1277
   { (exit 1); exit 1; }; }
1297
1278
    eval $ac_envvar=\$ac_optarg
1298
1279
    export $ac_envvar ;;
1299
1280
 
1300
1281
  *)
1301
1282
    # FIXME: should be removed in autoconf 3.0.
1302
 
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
1283
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1303
1284
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1304
 
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
1285
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1305
1286
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1306
1287
    ;;
1307
1288
 
1310
1291
 
1311
1292
if test -n "$ac_prev"; then
1312
1293
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1313
 
  as_fn_error "missing argument to $ac_option"
1314
 
fi
1315
 
 
1316
 
if test -n "$ac_unrecognized_opts"; then
1317
 
  case $enable_option_checking in
1318
 
    no) ;;
1319
 
    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1320
 
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1321
 
  esac
1322
 
fi
1323
 
 
1324
 
# Check all directory arguments for consistency.
 
1294
  { echo "$as_me: error: missing argument to $ac_option" >&2
 
1295
   { (exit 1); exit 1; }; }
 
1296
fi
 
1297
 
 
1298
# Be sure to have absolute directory names.
1325
1299
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1326
1300
                datadir sysconfdir sharedstatedir localstatedir includedir \
1327
1301
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1328
1302
                libdir localedir mandir
1329
1303
do
1330
1304
  eval ac_val=\$$ac_var
1331
 
  # Remove trailing slashes.
1332
 
  case $ac_val in
1333
 
    */ )
1334
 
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1335
 
      eval $ac_var=\$ac_val;;
1336
 
  esac
1337
 
  # Be sure to have absolute directory names.
1338
1305
  case $ac_val in
1339
1306
    [\\/$]* | ?:[\\/]* )  continue;;
1340
1307
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1341
1308
  esac
1342
 
  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
 
1309
  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
1310
   { (exit 1); exit 1; }; }
1343
1311
done
1344
1312
 
1345
1313
# There might be people who depend on the old broken behavior: `$host'
1353
1321
if test "x$host_alias" != x; then
1354
1322
  if test "x$build_alias" = x; then
1355
1323
    cross_compiling=maybe
1356
 
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
1324
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1357
1325
    If a cross compiler is detected then cross compile mode will be used." >&2
1358
1326
  elif test "x$build_alias" != "x$host_alias"; then
1359
1327
    cross_compiling=yes
1369
1337
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1370
1338
ac_ls_di=`ls -di .` &&
1371
1339
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1372
 
  as_fn_error "working directory cannot be determined"
 
1340
  { echo "$as_me: error: Working directory cannot be determined" >&2
 
1341
   { (exit 1); exit 1; }; }
1373
1342
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1374
 
  as_fn_error "pwd does not report name of working directory"
 
1343
  { echo "$as_me: error: pwd does not report name of working directory" >&2
 
1344
   { (exit 1); exit 1; }; }
1375
1345
 
1376
1346
 
1377
1347
# Find the source files, if location was not specified.
1378
1348
if test -z "$srcdir"; then
1379
1349
  ac_srcdir_defaulted=yes
1380
1350
  # Try the directory containing this script, then the parent directory.
1381
 
  ac_confdir=`$as_dirname -- "$as_myself" ||
1382
 
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1383
 
         X"$as_myself" : 'X\(//\)[^/]' \| \
1384
 
         X"$as_myself" : 'X\(//\)$' \| \
1385
 
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1386
 
$as_echo X"$as_myself" |
 
1351
  ac_confdir=`$as_dirname -- "$0" ||
 
1352
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
1353
         X"$0" : 'X\(//\)[^/]' \| \
 
1354
         X"$0" : 'X\(//\)$' \| \
 
1355
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
1356
echo X"$0" |
1387
1357
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1388
1358
            s//\1/
1389
1359
            q
1410
1380
fi
1411
1381
if test ! -r "$srcdir/$ac_unique_file"; then
1412
1382
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1413
 
  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
 
1383
  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
1384
   { (exit 1); exit 1; }; }
1414
1385
fi
1415
1386
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1416
1387
ac_abs_confdir=`(
1417
 
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
 
1388
        cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
 
1389
   { (exit 1); exit 1; }; }
1418
1390
        pwd)`
1419
1391
# When building in place, set srcdir=.
1420
1392
if test "$ac_abs_confdir" = "$ac_pwd"; then
1440
1412
  # Omit some internal or obsolete options to make the list less imposing.
1441
1413
  # This message is too long to be a string in the A/UX 3.1 sh.
1442
1414
  cat <<_ACEOF
1443
 
\`configure' configures vdpau_video 0.6.3 to adapt to many kinds of systems.
 
1415
\`configure' configures vdpau_video 0.7.3 to adapt to many kinds of systems.
1444
1416
 
1445
1417
Usage: $0 [OPTION]... [VAR=VALUE]...
1446
1418
 
1462
1434
 
1463
1435
Installation directories:
1464
1436
  --prefix=PREFIX         install architecture-independent files in PREFIX
1465
 
                          [$ac_default_prefix]
 
1437
                          [$ac_default_prefix]
1466
1438
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1467
 
                          [PREFIX]
 
1439
                          [PREFIX]
1468
1440
 
1469
1441
By default, \`make install' will install all the files in
1470
1442
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1474
1446
For better control, use the options below.
1475
1447
 
1476
1448
Fine tuning of the installation directories:
1477
 
  --bindir=DIR            user executables [EPREFIX/bin]
1478
 
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1479
 
  --libexecdir=DIR        program executables [EPREFIX/libexec]
1480
 
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1481
 
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1482
 
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1483
 
  --libdir=DIR            object code libraries [EPREFIX/lib]
1484
 
  --includedir=DIR        C header files [PREFIX/include]
1485
 
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1486
 
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1487
 
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1488
 
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1489
 
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1490
 
  --mandir=DIR            man documentation [DATAROOTDIR/man]
1491
 
  --docdir=DIR            documentation root [DATAROOTDIR/doc/vdpau-video]
1492
 
  --htmldir=DIR           html documentation [DOCDIR]
1493
 
  --dvidir=DIR            dvi documentation [DOCDIR]
1494
 
  --pdfdir=DIR            pdf documentation [DOCDIR]
1495
 
  --psdir=DIR             ps documentation [DOCDIR]
 
1449
  --bindir=DIR           user executables [EPREFIX/bin]
 
1450
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
 
1451
  --libexecdir=DIR       program executables [EPREFIX/libexec]
 
1452
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
 
1453
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
 
1454
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
 
1455
  --libdir=DIR           object code libraries [EPREFIX/lib]
 
1456
  --includedir=DIR       C header files [PREFIX/include]
 
1457
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
 
1458
  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
 
1459
  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
 
1460
  --infodir=DIR          info documentation [DATAROOTDIR/info]
 
1461
  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
 
1462
  --mandir=DIR           man documentation [DATAROOTDIR/man]
 
1463
  --docdir=DIR           documentation root [DATAROOTDIR/doc/vdpau-video]
 
1464
  --htmldir=DIR          html documentation [DOCDIR]
 
1465
  --dvidir=DIR           dvi documentation [DOCDIR]
 
1466
  --pdfdir=DIR           pdf documentation [DOCDIR]
 
1467
  --psdir=DIR            ps documentation [DOCDIR]
1496
1468
_ACEOF
1497
1469
 
1498
1470
  cat <<\_ACEOF
1510
1482
 
1511
1483
if test -n "$ac_init_help"; then
1512
1484
  case $ac_init_help in
1513
 
     short | recursive ) echo "Configuration of vdpau_video 0.6.3:";;
 
1485
     short | recursive ) echo "Configuration of vdpau_video 0.7.3:";;
1514
1486
   esac
1515
1487
  cat <<\_ACEOF
1516
1488
 
1517
1489
Optional Features:
1518
 
  --disable-option-checking  ignore unrecognized --enable/--with options
1519
1490
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1520
1491
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1521
1492
  --enable-glx            enable OpenGL/X11 [default=yes]
1533
1504
Optional Packages:
1534
1505
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1535
1506
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1507
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1536
1508
  --with-pic              try to use only PIC/non-PIC objects [default=use
1537
1509
                          both]
1538
 
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1510
  --with-tags[=TAGS]      include additional configurations [automatic]
1539
1511
 
1540
1512
Some influential environment variables:
1541
1513
  CC          C compiler command
1543
1515
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1544
1516
              nonstandard directory <lib dir>
1545
1517
  LIBS        libraries to pass to the linker, e.g. -l<library>
1546
 
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
 
1518
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1547
1519
              you have headers in a nonstandard directory <include dir>
1548
1520
  CPP         C preprocessor
 
1521
  CXX         C++ compiler command
 
1522
  CXXFLAGS    C++ compiler flags
 
1523
  CXXCPP      C++ preprocessor
 
1524
  F77         Fortran 77 compiler command
 
1525
  FFLAGS      Fortran 77 compiler flags
1549
1526
  PKG_CONFIG  path to pkg-config utility
1550
1527
  LIBVA_DEPS_CFLAGS
1551
1528
              C compiler flags for LIBVA_DEPS, overriding pkg-config
1571
1548
if test "$ac_init_help" = "recursive"; then
1572
1549
  # If there are subdirs, report their specific --help.
1573
1550
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1574
 
    test -d "$ac_dir" ||
1575
 
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1576
 
      continue
 
1551
    test -d "$ac_dir" || continue
1577
1552
    ac_builddir=.
1578
1553
 
1579
1554
case "$ac_dir" in
1580
1555
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1581
1556
*)
1582
 
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
1557
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1583
1558
  # A ".." for each directory in $ac_dir_suffix.
1584
 
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
1559
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1585
1560
  case $ac_top_builddir_sub in
1586
1561
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1587
1562
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1617
1592
      echo &&
1618
1593
      $SHELL "$ac_srcdir/configure" --help=recursive
1619
1594
    else
1620
 
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1595
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1621
1596
    fi || ac_status=$?
1622
1597
    cd "$ac_pwd" || { ac_status=$?; break; }
1623
1598
  done
1626
1601
test -n "$ac_init_help" && exit $ac_status
1627
1602
if $ac_init_version; then
1628
1603
  cat <<\_ACEOF
1629
 
vdpau_video configure 0.6.3
1630
 
generated by GNU Autoconf 2.65
 
1604
vdpau_video configure 0.7.3
 
1605
generated by GNU Autoconf 2.61
1631
1606
 
1632
 
Copyright (C) 2009 Free Software Foundation, Inc.
 
1607
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
1608
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1633
1609
This configure script is free software; the Free Software Foundation
1634
1610
gives unlimited permission to copy, distribute and modify it.
1635
1611
_ACEOF
1636
1612
  exit
1637
1613
fi
1638
 
 
1639
 
## ------------------------ ##
1640
 
## Autoconf initialization. ##
1641
 
## ------------------------ ##
1642
 
 
1643
 
# ac_fn_c_try_compile LINENO
1644
 
# --------------------------
1645
 
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1646
 
ac_fn_c_try_compile ()
1647
 
{
1648
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1649
 
  rm -f conftest.$ac_objext
1650
 
  if { { ac_try="$ac_compile"
1651
 
case "(($ac_try" in
1652
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1653
 
  *) ac_try_echo=$ac_try;;
1654
 
esac
1655
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1656
 
$as_echo "$ac_try_echo"; } >&5
1657
 
  (eval "$ac_compile") 2>conftest.err
1658
 
  ac_status=$?
1659
 
  if test -s conftest.err; then
1660
 
    grep -v '^ *+' conftest.err >conftest.er1
1661
 
    cat conftest.er1 >&5
1662
 
    mv -f conftest.er1 conftest.err
1663
 
  fi
1664
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1665
 
  test $ac_status = 0; } && {
1666
 
         test -z "$ac_c_werror_flag" ||
1667
 
         test ! -s conftest.err
1668
 
       } && test -s conftest.$ac_objext; then :
1669
 
  ac_retval=0
1670
 
else
1671
 
  $as_echo "$as_me: failed program was:" >&5
1672
 
sed 's/^/| /' conftest.$ac_ext >&5
1673
 
 
1674
 
        ac_retval=1
1675
 
fi
1676
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1677
 
  as_fn_set_status $ac_retval
1678
 
 
1679
 
} # ac_fn_c_try_compile
1680
 
 
1681
 
# ac_fn_c_try_link LINENO
1682
 
# -----------------------
1683
 
# Try to link conftest.$ac_ext, and return whether this succeeded.
1684
 
ac_fn_c_try_link ()
1685
 
{
1686
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687
 
  rm -f conftest.$ac_objext conftest$ac_exeext
1688
 
  if { { ac_try="$ac_link"
1689
 
case "(($ac_try" in
1690
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1691
 
  *) ac_try_echo=$ac_try;;
1692
 
esac
1693
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1694
 
$as_echo "$ac_try_echo"; } >&5
1695
 
  (eval "$ac_link") 2>conftest.err
1696
 
  ac_status=$?
1697
 
  if test -s conftest.err; then
1698
 
    grep -v '^ *+' conftest.err >conftest.er1
1699
 
    cat conftest.er1 >&5
1700
 
    mv -f conftest.er1 conftest.err
1701
 
  fi
1702
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703
 
  test $ac_status = 0; } && {
1704
 
         test -z "$ac_c_werror_flag" ||
1705
 
         test ! -s conftest.err
1706
 
       } && test -s conftest$ac_exeext && {
1707
 
         test "$cross_compiling" = yes ||
1708
 
         $as_test_x conftest$ac_exeext
1709
 
       }; then :
1710
 
  ac_retval=0
1711
 
else
1712
 
  $as_echo "$as_me: failed program was:" >&5
1713
 
sed 's/^/| /' conftest.$ac_ext >&5
1714
 
 
1715
 
        ac_retval=1
1716
 
fi
1717
 
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1718
 
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1719
 
  # interfere with the next link command; also delete a directory that is
1720
 
  # left behind by Apple's compiler.  We do this before executing the actions.
1721
 
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
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_c_try_link
1726
 
 
1727
 
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1728
 
# -------------------------------------------------------
1729
 
# Tests whether HEADER exists and can be compiled using the include files in
1730
 
# INCLUDES, setting the cache variable VAR accordingly.
1731
 
ac_fn_c_check_header_compile ()
1732
 
{
1733
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1734
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1735
 
$as_echo_n "checking for $2... " >&6; }
1736
 
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1737
 
  $as_echo_n "(cached) " >&6
1738
 
else
1739
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1740
 
/* end confdefs.h.  */
1741
 
$4
1742
 
#include <$2>
1743
 
_ACEOF
1744
 
if ac_fn_c_try_compile "$LINENO"; then :
1745
 
  eval "$3=yes"
1746
 
else
1747
 
  eval "$3=no"
1748
 
fi
1749
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1750
 
fi
1751
 
eval ac_res=\$$3
1752
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1753
 
$as_echo "$ac_res" >&6; }
1754
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1755
 
 
1756
 
} # ac_fn_c_check_header_compile
1757
 
 
1758
 
# ac_fn_c_try_cpp LINENO
1759
 
# ----------------------
1760
 
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1761
 
ac_fn_c_try_cpp ()
1762
 
{
1763
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764
 
  if { { ac_try="$ac_cpp conftest.$ac_ext"
1765
 
case "(($ac_try" in
1766
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1767
 
  *) ac_try_echo=$ac_try;;
1768
 
esac
1769
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1770
 
$as_echo "$ac_try_echo"; } >&5
1771
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1772
 
  ac_status=$?
1773
 
  if test -s conftest.err; then
1774
 
    grep -v '^ *+' conftest.err >conftest.er1
1775
 
    cat conftest.er1 >&5
1776
 
    mv -f conftest.er1 conftest.err
1777
 
  fi
1778
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779
 
  test $ac_status = 0; } >/dev/null && {
1780
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1781
 
         test ! -s conftest.err
1782
 
       }; then :
1783
 
  ac_retval=0
1784
 
else
1785
 
  $as_echo "$as_me: failed program was:" >&5
1786
 
sed 's/^/| /' conftest.$ac_ext >&5
1787
 
 
1788
 
    ac_retval=1
1789
 
fi
1790
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1791
 
  as_fn_set_status $ac_retval
1792
 
 
1793
 
} # ac_fn_c_try_cpp
1794
 
 
1795
 
# ac_fn_c_try_run LINENO
1796
 
# ----------------------
1797
 
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1798
 
# that executables *can* be run.
1799
 
ac_fn_c_try_run ()
1800
 
{
1801
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802
 
  if { { ac_try="$ac_link"
1803
 
case "(($ac_try" in
1804
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1805
 
  *) ac_try_echo=$ac_try;;
1806
 
esac
1807
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1808
 
$as_echo "$ac_try_echo"; } >&5
1809
 
  (eval "$ac_link") 2>&5
1810
 
  ac_status=$?
1811
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1812
 
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1813
 
  { { case "(($ac_try" in
1814
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1815
 
  *) ac_try_echo=$ac_try;;
1816
 
esac
1817
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1818
 
$as_echo "$ac_try_echo"; } >&5
1819
 
  (eval "$ac_try") 2>&5
1820
 
  ac_status=$?
1821
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1822
 
  test $ac_status = 0; }; }; then :
1823
 
  ac_retval=0
1824
 
else
1825
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
1826
 
       $as_echo "$as_me: failed program was:" >&5
1827
 
sed 's/^/| /' conftest.$ac_ext >&5
1828
 
 
1829
 
       ac_retval=$ac_status
1830
 
fi
1831
 
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1832
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1833
 
  as_fn_set_status $ac_retval
1834
 
 
1835
 
} # ac_fn_c_try_run
1836
 
 
1837
 
# ac_fn_c_check_func LINENO FUNC VAR
1838
 
# ----------------------------------
1839
 
# Tests whether FUNC exists, setting the cache variable VAR accordingly
1840
 
ac_fn_c_check_func ()
1841
 
{
1842
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1844
 
$as_echo_n "checking for $2... " >&6; }
1845
 
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1846
 
  $as_echo_n "(cached) " >&6
1847
 
else
1848
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1849
 
/* end confdefs.h.  */
1850
 
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1851
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1852
 
#define $2 innocuous_$2
1853
 
 
1854
 
/* System header to define __stub macros and hopefully few prototypes,
1855
 
    which can conflict with char $2 (); below.
1856
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1857
 
    <limits.h> exists even on freestanding compilers.  */
1858
 
 
1859
 
#ifdef __STDC__
1860
 
# include <limits.h>
1861
 
#else
1862
 
# include <assert.h>
1863
 
#endif
1864
 
 
1865
 
#undef $2
1866
 
 
1867
 
/* Override any GCC internal prototype to avoid an error.
1868
 
   Use char because int might match the return type of a GCC
1869
 
   builtin and then its argument prototype would still apply.  */
1870
 
#ifdef __cplusplus
1871
 
extern "C"
1872
 
#endif
1873
 
char $2 ();
1874
 
/* The GNU C library defines this for functions which it implements
1875
 
    to always fail with ENOSYS.  Some functions are actually named
1876
 
    something starting with __ and the normal name is an alias.  */
1877
 
#if defined __stub_$2 || defined __stub___$2
1878
 
choke me
1879
 
#endif
1880
 
 
1881
 
int
1882
 
main ()
1883
 
{
1884
 
return $2 ();
1885
 
  ;
1886
 
  return 0;
1887
 
}
1888
 
_ACEOF
1889
 
if ac_fn_c_try_link "$LINENO"; then :
1890
 
  eval "$3=yes"
1891
 
else
1892
 
  eval "$3=no"
1893
 
fi
1894
 
rm -f core conftest.err conftest.$ac_objext \
1895
 
    conftest$ac_exeext conftest.$ac_ext
1896
 
fi
1897
 
eval ac_res=\$$3
1898
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1899
 
$as_echo "$ac_res" >&6; }
1900
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1901
 
 
1902
 
} # ac_fn_c_check_func
1903
1614
cat >config.log <<_ACEOF
1904
1615
This file contains any messages produced by compilers while
1905
1616
running configure, to aid debugging if configure makes a mistake.
1906
1617
 
1907
 
It was created by vdpau_video $as_me 0.6.3, which was
1908
 
generated by GNU Autoconf 2.65.  Invocation command line was
 
1618
It was created by vdpau_video $as_me 0.7.3, which was
 
1619
generated by GNU Autoconf 2.61.  Invocation command line was
1909
1620
 
1910
1621
  $ $0 $@
1911
1622
 
1941
1652
do
1942
1653
  IFS=$as_save_IFS
1943
1654
  test -z "$as_dir" && as_dir=.
1944
 
    $as_echo "PATH: $as_dir"
1945
 
  done
 
1655
  echo "PATH: $as_dir"
 
1656
done
1946
1657
IFS=$as_save_IFS
1947
1658
 
1948
1659
} >&5
1976
1687
    | -silent | --silent | --silen | --sile | --sil)
1977
1688
      continue ;;
1978
1689
    *\'*)
1979
 
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1690
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1980
1691
    esac
1981
1692
    case $ac_pass in
1982
 
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
 
1693
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1983
1694
    2)
1984
 
      as_fn_append ac_configure_args1 " '$ac_arg'"
 
1695
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1985
1696
      if test $ac_must_keep_next = true; then
1986
1697
        ac_must_keep_next=false # Got value, back to normal.
1987
1698
      else
1997
1708
          -* ) ac_must_keep_next=true ;;
1998
1709
        esac
1999
1710
      fi
2000
 
      as_fn_append ac_configure_args " '$ac_arg'"
 
1711
      ac_configure_args="$ac_configure_args '$ac_arg'"
2001
1712
      ;;
2002
1713
    esac
2003
1714
  done
2004
1715
done
2005
 
{ ac_configure_args0=; unset ac_configure_args0;}
2006
 
{ ac_configure_args1=; unset ac_configure_args1;}
 
1716
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1717
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2007
1718
 
2008
1719
# When interrupted or exit'd, cleanup temporary files, and complete
2009
1720
# config.log.  We remove comments because anyway the quotes in there
2028
1739
    case $ac_val in #(
2029
1740
    *${as_nl}*)
2030
1741
      case $ac_var in #(
2031
 
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2032
 
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
1742
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
 
1743
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
2033
1744
      esac
2034
1745
      case $ac_var in #(
2035
1746
      _ | IFS | as_nl) ;; #(
2036
 
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2037
 
      *) { eval $ac_var=; unset $ac_var;} ;;
 
1747
      *) $as_unset $ac_var ;;
2038
1748
      esac ;;
2039
1749
    esac
2040
1750
  done
2063
1773
    do
2064
1774
      eval ac_val=\$$ac_var
2065
1775
      case $ac_val in
2066
 
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1776
      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2067
1777
      esac
2068
 
      $as_echo "$ac_var='\''$ac_val'\''"
 
1778
      echo "$ac_var='\''$ac_val'\''"
2069
1779
    done | sort
2070
1780
    echo
2071
1781
 
2080
1790
      do
2081
1791
        eval ac_val=\$$ac_var
2082
1792
        case $ac_val in
2083
 
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1793
        *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2084
1794
        esac
2085
 
        $as_echo "$ac_var='\''$ac_val'\''"
 
1795
        echo "$ac_var='\''$ac_val'\''"
2086
1796
      done | sort
2087
1797
      echo
2088
1798
    fi
2098
1808
      echo
2099
1809
    fi
2100
1810
    test "$ac_signal" != 0 &&
2101
 
      $as_echo "$as_me: caught signal $ac_signal"
2102
 
    $as_echo "$as_me: exit $exit_status"
 
1811
      echo "$as_me: caught signal $ac_signal"
 
1812
    echo "$as_me: exit $exit_status"
2103
1813
  } >&5
2104
1814
  rm -f core *.core core.conftest.* &&
2105
1815
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2106
1816
    exit $exit_status
2107
1817
' 0
2108
1818
for ac_signal in 1 2 13 15; do
2109
 
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
 
1819
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2110
1820
done
2111
1821
ac_signal=0
2112
1822
 
2113
1823
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2114
1824
rm -f -r conftest* confdefs.h
2115
1825
 
2116
 
$as_echo "/* confdefs.h */" > confdefs.h
2117
 
 
2118
1826
# Predefined preprocessor variables.
2119
1827
 
2120
1828
cat >>confdefs.h <<_ACEOF
2121
1829
#define PACKAGE_NAME "$PACKAGE_NAME"
2122
1830
_ACEOF
2123
1831
 
 
1832
 
2124
1833
cat >>confdefs.h <<_ACEOF
2125
1834
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2126
1835
_ACEOF
2127
1836
 
 
1837
 
2128
1838
cat >>confdefs.h <<_ACEOF
2129
1839
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2130
1840
_ACEOF
2131
1841
 
 
1842
 
2132
1843
cat >>confdefs.h <<_ACEOF
2133
1844
#define PACKAGE_STRING "$PACKAGE_STRING"
2134
1845
_ACEOF
2135
1846
 
 
1847
 
2136
1848
cat >>confdefs.h <<_ACEOF
2137
1849
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2138
1850
_ACEOF
2139
1851
 
2140
 
cat >>confdefs.h <<_ACEOF
2141
 
#define PACKAGE_URL "$PACKAGE_URL"
2142
 
_ACEOF
2143
 
 
2144
1852
 
2145
1853
# Let the site file select an alternate cache file if it wants to.
2146
 
# Prefer an explicitly selected file to automatically selected ones.
2147
 
ac_site_file1=NONE
2148
 
ac_site_file2=NONE
 
1854
# Prefer explicitly selected file to automatically selected ones.
2149
1855
if test -n "$CONFIG_SITE"; then
2150
 
  ac_site_file1=$CONFIG_SITE
 
1856
  set x "$CONFIG_SITE"
2151
1857
elif test "x$prefix" != xNONE; then
2152
 
  ac_site_file1=$prefix/share/config.site
2153
 
  ac_site_file2=$prefix/etc/config.site
 
1858
  set x "$prefix/share/config.site" "$prefix/etc/config.site"
2154
1859
else
2155
 
  ac_site_file1=$ac_default_prefix/share/config.site
2156
 
  ac_site_file2=$ac_default_prefix/etc/config.site
 
1860
  set x "$ac_default_prefix/share/config.site" \
 
1861
        "$ac_default_prefix/etc/config.site"
2157
1862
fi
2158
 
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
 
1863
shift
 
1864
for ac_site_file
2159
1865
do
2160
 
  test "x$ac_site_file" = xNONE && continue
2161
 
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2162
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2163
 
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
 
1866
  if test -r "$ac_site_file"; then
 
1867
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1868
echo "$as_me: loading site script $ac_site_file" >&6;}
2164
1869
    sed 's/^/| /' "$ac_site_file" >&5
2165
1870
    . "$ac_site_file"
2166
1871
  fi
2167
1872
done
2168
1873
 
2169
1874
if test -r "$cache_file"; then
2170
 
  # Some versions of bash will fail to source /dev/null (special files
2171
 
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2172
 
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2173
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2174
 
$as_echo "$as_me: loading cache $cache_file" >&6;}
 
1875
  # Some versions of bash will fail to source /dev/null (special
 
1876
  # files actually), so we avoid doing that.
 
1877
  if test -f "$cache_file"; then
 
1878
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1879
echo "$as_me: loading cache $cache_file" >&6;}
2175
1880
    case $cache_file in
2176
1881
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2177
1882
      *)                      . "./$cache_file";;
2178
1883
    esac
2179
1884
  fi
2180
1885
else
2181
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2182
 
$as_echo "$as_me: creating cache $cache_file" >&6;}
 
1886
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1887
echo "$as_me: creating cache $cache_file" >&6;}
2183
1888
  >$cache_file
2184
1889
fi
2185
1890
 
2193
1898
  eval ac_new_val=\$ac_env_${ac_var}_value
2194
1899
  case $ac_old_set,$ac_new_set in
2195
1900
    set,)
2196
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2197
 
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1901
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1902
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2198
1903
      ac_cache_corrupted=: ;;
2199
1904
    ,set)
2200
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2201
 
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1905
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
1906
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2202
1907
      ac_cache_corrupted=: ;;
2203
1908
    ,);;
2204
1909
    *)
2205
1910
      if test "x$ac_old_val" != "x$ac_new_val"; then
2206
 
        # differences in whitespace do not lead to failure.
2207
 
        ac_old_val_w=`echo x $ac_old_val`
2208
 
        ac_new_val_w=`echo x $ac_new_val`
2209
 
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
2210
 
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2211
 
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2212
 
          ac_cache_corrupted=:
2213
 
        else
2214
 
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2215
 
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2216
 
          eval $ac_var=\$ac_old_val
2217
 
        fi
2218
 
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2219
 
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2220
 
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2221
 
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
 
1911
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1912
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
1913
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1914
echo "$as_me:   former value:  $ac_old_val" >&2;}
 
1915
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1916
echo "$as_me:   current value: $ac_new_val" >&2;}
 
1917
        ac_cache_corrupted=:
2222
1918
      fi;;
2223
1919
  esac
2224
1920
  # Pass precious variables to config.status.
2225
1921
  if test "$ac_new_set" = set; then
2226
1922
    case $ac_new_val in
2227
 
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1923
    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2228
1924
    *) ac_arg=$ac_var=$ac_new_val ;;
2229
1925
    esac
2230
1926
    case " $ac_configure_args " in
2231
1927
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2232
 
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
 
1928
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2233
1929
    esac
2234
1930
  fi
2235
1931
done
2236
1932
if $ac_cache_corrupted; then
2237
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2238
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2239
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2240
 
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2241
 
  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
 
1933
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
1934
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
1935
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1936
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
1937
   { (exit 1); exit 1; }; }
2242
1938
fi
2243
 
## -------------------- ##
2244
 
## Main body of script. ##
2245
 
## -------------------- ##
 
1939
 
 
1940
 
 
1941
 
 
1942
 
 
1943
 
 
1944
 
 
1945
 
 
1946
 
 
1947
 
 
1948
 
 
1949
 
 
1950
 
 
1951
 
 
1952
 
 
1953
 
 
1954
 
 
1955
 
 
1956
 
 
1957
 
 
1958
 
 
1959
 
 
1960
 
 
1961
 
 
1962
 
2246
1963
 
2247
1964
ac_ext=c
2248
1965
ac_cpp='$CPP $CPPFLAGS'
2252
1969
 
2253
1970
 
2254
1971
 
2255
 
am__api_version='1.11'
2256
 
 
 
1972
am__api_version="1.9"
2257
1973
ac_aux_dir=
2258
1974
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2259
 
  for ac_t in install-sh install.sh shtool; do
2260
 
    if test -f "$ac_dir/$ac_t"; then
2261
 
      ac_aux_dir=$ac_dir
2262
 
      ac_install_sh="$ac_aux_dir/$ac_t -c"
2263
 
      break 2
2264
 
    fi
2265
 
  done
 
1975
  if test -f "$ac_dir/install-sh"; then
 
1976
    ac_aux_dir=$ac_dir
 
1977
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
1978
    break
 
1979
  elif test -f "$ac_dir/install.sh"; then
 
1980
    ac_aux_dir=$ac_dir
 
1981
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
1982
    break
 
1983
  elif test -f "$ac_dir/shtool"; then
 
1984
    ac_aux_dir=$ac_dir
 
1985
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
1986
    break
 
1987
  fi
2266
1988
done
2267
1989
if test -z "$ac_aux_dir"; then
2268
 
  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
 
1990
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
 
1991
echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
 
1992
   { (exit 1); exit 1; }; }
2269
1993
fi
2270
1994
 
2271
1995
# These three variables are undocumented and unsupported,
2290
2014
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2291
2015
# OS/2's system install, which has a completely different semantic
2292
2016
# ./install, which can be erroneously created by make from ./install.sh.
2293
 
# Reject install programs that cannot install multiple files.
2294
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2295
 
$as_echo_n "checking for a BSD-compatible install... " >&6; }
 
2017
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
2018
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2296
2019
if test -z "$INSTALL"; then
2297
 
if test "${ac_cv_path_install+set}" = set; then :
2298
 
  $as_echo_n "(cached) " >&6
 
2020
if test "${ac_cv_path_install+set}" = set; then
 
2021
  echo $ECHO_N "(cached) $ECHO_C" >&6
2299
2022
else
2300
2023
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2301
2024
for as_dir in $PATH
2302
2025
do
2303
2026
  IFS=$as_save_IFS
2304
2027
  test -z "$as_dir" && as_dir=.
2305
 
    # Account for people who put trailing slashes in PATH elements.
2306
 
case $as_dir/ in #((
2307
 
  ./ | .// | /[cC]/* | \
 
2028
  # Account for people who put trailing slashes in PATH elements.
 
2029
case $as_dir/ in
 
2030
  ./ | .// | /cC/* | \
2308
2031
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2309
 
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
 
2032
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2310
2033
  /usr/ucb/* ) ;;
2311
2034
  *)
2312
2035
    # OSF1 and SCO ODT 3.0 have their own names for install.
2324
2047
            # program-specific install script used by HP pwplus--don't use.
2325
2048
            :
2326
2049
          else
2327
 
            rm -rf conftest.one conftest.two conftest.dir
2328
 
            echo one > conftest.one
2329
 
            echo two > conftest.two
2330
 
            mkdir conftest.dir
2331
 
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2332
 
              test -s conftest.one && test -s conftest.two &&
2333
 
              test -s conftest.dir/conftest.one &&
2334
 
              test -s conftest.dir/conftest.two
2335
 
            then
2336
 
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2337
 
              break 3
2338
 
            fi
 
2050
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
2051
            break 3
2339
2052
          fi
2340
2053
        fi
2341
2054
      done
2342
2055
    done
2343
2056
    ;;
2344
2057
esac
2345
 
 
2346
 
  done
 
2058
done
2347
2059
IFS=$as_save_IFS
2348
2060
 
2349
 
rm -rf conftest.one conftest.two conftest.dir
2350
2061
 
2351
2062
fi
2352
2063
  if test "${ac_cv_path_install+set}" = set; then
2359
2070
    INSTALL=$ac_install_sh
2360
2071
  fi
2361
2072
fi
2362
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2363
 
$as_echo "$INSTALL" >&6; }
 
2073
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
 
2074
echo "${ECHO_T}$INSTALL" >&6; }
2364
2075
 
2365
2076
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2366
2077
# It thinks the first close brace ends the variable substitution.
2370
2081
 
2371
2082
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2372
2083
 
2373
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2374
 
$as_echo_n "checking whether build environment is sane... " >&6; }
 
2084
{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
2085
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2375
2086
# Just in case
2376
2087
sleep 1
2377
2088
echo timestamp > conftest.file
2378
 
# Reject unsafe characters in $srcdir or the absolute working directory
2379
 
# name.  Accept space and tab only in the latter.
2380
 
am_lf='
2381
 
'
2382
 
case `pwd` in
2383
 
  *[\\\"\#\$\&\'\`$am_lf]*)
2384
 
    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2385
 
esac
2386
 
case $srcdir in
2387
 
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2388
 
    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2389
 
esac
2390
 
 
2391
2089
# Do `set' in a subshell so we don't clobber the current shell's
2392
2090
# arguments.  Must try -L first in case configure is actually a
2393
2091
# symlink; some systems play weird games with the mod time of symlinks
2394
2092
# (eg FreeBSD returns the mod time of the symlink's containing
2395
2093
# directory).
2396
2094
if (
2397
 
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
 
2095
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2398
2096
   if test "$*" = "X"; then
2399
2097
      # -L didn't work.
2400
 
      set X `ls -t "$srcdir/configure" conftest.file`
 
2098
      set X `ls -t $srcdir/configure conftest.file`
2401
2099
   fi
2402
2100
   rm -f conftest.file
2403
2101
   if test "$*" != "X $srcdir/configure conftest.file" \
2407
2105
      # if, for instance, CONFIG_SHELL is bash and it inherits a
2408
2106
      # broken ls alias from the environment.  This has actually
2409
2107
      # happened.  Such a system could not be considered "sane".
2410
 
      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2411
 
alias in your environment" "$LINENO" 5
 
2108
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
 
2109
alias in your environment" >&5
 
2110
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
 
2111
alias in your environment" >&2;}
 
2112
   { (exit 1); exit 1; }; }
2412
2113
   fi
2413
2114
 
2414
2115
   test "$2" = conftest.file
2417
2118
   # Ok.
2418
2119
   :
2419
2120
else
2420
 
   as_fn_error "newly created file is older than distributed files!
2421
 
Check your system clock" "$LINENO" 5
 
2121
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
 
2122
Check your system clock" >&5
 
2123
echo "$as_me: error: newly created file is older than distributed files!
 
2124
Check your system clock" >&2;}
 
2125
   { (exit 1); exit 1; }; }
2422
2126
fi
2423
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2424
 
$as_echo "yes" >&6; }
 
2127
{ echo "$as_me:$LINENO: result: yes" >&5
 
2128
echo "${ECHO_T}yes" >&6; }
2425
2129
test "$program_prefix" != NONE &&
2426
2130
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2427
2131
# Use a double $ so make ignores it.
2428
2132
test "$program_suffix" != NONE &&
2429
2133
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2430
 
# Double any \ or $.
 
2134
# Double any \ or $.  echo might interpret backslashes.
2431
2135
# By default was `s,x,x', remove it if useless.
2432
 
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2433
 
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
 
2136
cat <<\_ACEOF >conftest.sed
 
2137
s/[\\$]/&&/g;s/;s,x,x,$//
 
2138
_ACEOF
 
2139
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
 
2140
rm -f conftest.sed
2434
2141
 
2435
2142
# expand $ac_aux_dir to an absolute path
2436
2143
am_aux_dir=`cd $ac_aux_dir && pwd`
2437
2144
 
2438
 
if test x"${MISSING+set}" != xset; then
2439
 
  case $am_aux_dir in
2440
 
  *\ * | *\     *)
2441
 
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2442
 
  *)
2443
 
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2444
 
  esac
2445
 
fi
 
2145
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2446
2146
# Use eval to expand $SHELL
2447
2147
if eval "$MISSING --run true"; then
2448
2148
  am_missing_run="$MISSING --run "
2449
2149
else
2450
2150
  am_missing_run=
2451
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2452
 
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2453
 
fi
2454
 
 
2455
 
if test x"${install_sh}" != xset; then
2456
 
  case $am_aux_dir in
2457
 
  *\ * | *\     *)
2458
 
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2459
 
  *)
2460
 
    install_sh="\${SHELL} $am_aux_dir/install-sh"
2461
 
  esac
2462
 
fi
2463
 
 
2464
 
# Installed binaries are usually stripped using `strip' when the user
2465
 
# run `make install-strip'.  However `strip' might not be the right
2466
 
# tool to use in cross-compilation environments, therefore Automake
2467
 
# will honor the `STRIP' environment variable to overrule this program.
2468
 
if test "$cross_compiling" != no; then
2469
 
  if test -n "$ac_tool_prefix"; then
2470
 
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2471
 
set dummy ${ac_tool_prefix}strip; ac_word=$2
2472
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2473
 
$as_echo_n "checking for $ac_word... " >&6; }
2474
 
if test "${ac_cv_prog_STRIP+set}" = set; then :
2475
 
  $as_echo_n "(cached) " >&6
2476
 
else
2477
 
  if test -n "$STRIP"; then
2478
 
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2479
 
else
2480
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2481
 
for as_dir in $PATH
2482
 
do
2483
 
  IFS=$as_save_IFS
2484
 
  test -z "$as_dir" && as_dir=.
2485
 
    for ac_exec_ext in '' $ac_executable_extensions; do
2486
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2487
 
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2488
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2489
 
    break 2
2490
 
  fi
2491
 
done
2492
 
  done
2493
 
IFS=$as_save_IFS
2494
 
 
2495
 
fi
2496
 
fi
2497
 
STRIP=$ac_cv_prog_STRIP
2498
 
if test -n "$STRIP"; then
2499
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2500
 
$as_echo "$STRIP" >&6; }
2501
 
else
2502
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2503
 
$as_echo "no" >&6; }
2504
 
fi
2505
 
 
2506
 
 
2507
 
fi
2508
 
if test -z "$ac_cv_prog_STRIP"; then
2509
 
  ac_ct_STRIP=$STRIP
2510
 
  # Extract the first word of "strip", so it can be a program name with args.
2511
 
set dummy strip; ac_word=$2
2512
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2513
 
$as_echo_n "checking for $ac_word... " >&6; }
2514
 
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2515
 
  $as_echo_n "(cached) " >&6
2516
 
else
2517
 
  if test -n "$ac_ct_STRIP"; then
2518
 
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2519
 
else
2520
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2521
 
for as_dir in $PATH
2522
 
do
2523
 
  IFS=$as_save_IFS
2524
 
  test -z "$as_dir" && as_dir=.
2525
 
    for ac_exec_ext in '' $ac_executable_extensions; do
2526
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2527
 
    ac_cv_prog_ac_ct_STRIP="strip"
2528
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2529
 
    break 2
2530
 
  fi
2531
 
done
2532
 
  done
2533
 
IFS=$as_save_IFS
2534
 
 
2535
 
fi
2536
 
fi
2537
 
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2538
 
if test -n "$ac_ct_STRIP"; then
2539
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2540
 
$as_echo "$ac_ct_STRIP" >&6; }
2541
 
else
2542
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2543
 
$as_echo "no" >&6; }
2544
 
fi
2545
 
 
2546
 
  if test "x$ac_ct_STRIP" = x; then
2547
 
    STRIP=":"
2548
 
  else
2549
 
    case $cross_compiling:$ac_tool_warned in
2550
 
yes:)
2551
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2552
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2553
 
ac_tool_warned=yes ;;
2554
 
esac
2555
 
    STRIP=$ac_ct_STRIP
2556
 
  fi
2557
 
else
2558
 
  STRIP="$ac_cv_prog_STRIP"
2559
 
fi
2560
 
 
2561
 
fi
2562
 
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2563
 
 
2564
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2565
 
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2566
 
if test -z "$MKDIR_P"; then
2567
 
  if test "${ac_cv_path_mkdir+set}" = set; then :
2568
 
  $as_echo_n "(cached) " >&6
2569
 
else
2570
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2571
 
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2572
 
do
2573
 
  IFS=$as_save_IFS
2574
 
  test -z "$as_dir" && as_dir=.
2575
 
    for ac_prog in mkdir gmkdir; do
2576
 
         for ac_exec_ext in '' $ac_executable_extensions; do
2577
 
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2578
 
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2579
 
             'mkdir (GNU coreutils) '* | \
2580
 
             'mkdir (coreutils) '* | \
2581
 
             'mkdir (fileutils) '4.1*)
2582
 
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2583
 
               break 3;;
2584
 
           esac
2585
 
         done
2586
 
       done
2587
 
  done
2588
 
IFS=$as_save_IFS
2589
 
 
2590
 
fi
2591
 
 
2592
 
  test -d ./--version && rmdir ./--version
2593
 
  if test "${ac_cv_path_mkdir+set}" = set; then
2594
 
    MKDIR_P="$ac_cv_path_mkdir -p"
2595
 
  else
2596
 
    # As a last resort, use the slow shell script.  Don't cache a
2597
 
    # value for MKDIR_P within a source directory, because that will
2598
 
    # break other packages using the cache if that directory is
2599
 
    # removed, or if the value is a relative name.
2600
 
    MKDIR_P="$ac_install_sh -d"
2601
 
  fi
2602
 
fi
2603
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2604
 
$as_echo "$MKDIR_P" >&6; }
2605
 
 
2606
 
mkdir_p="$MKDIR_P"
2607
 
case $mkdir_p in
2608
 
  [\\/$]* | ?:[\\/]*) ;;
2609
 
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2610
 
esac
 
2151
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
 
2152
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
2153
fi
 
2154
 
 
2155
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
 
2156
  # We used to keeping the `.' as first argument, in order to
 
2157
  # allow $(mkdir_p) to be used without argument.  As in
 
2158
  #   $(mkdir_p) $(somedir)
 
2159
  # where $(somedir) is conditionally defined.  However this is wrong
 
2160
  # for two reasons:
 
2161
  #  1. if the package is installed by a user who cannot write `.'
 
2162
  #     make install will fail,
 
2163
  #  2. the above comment should most certainly read
 
2164
  #     $(mkdir_p) $(DESTDIR)$(somedir)
 
2165
  #     so it does not work when $(somedir) is undefined and
 
2166
  #     $(DESTDIR) is not.
 
2167
  #  To support the latter case, we have to write
 
2168
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
 
2169
  #  so the `.' trick is pointless.
 
2170
  mkdir_p='mkdir -p --'
 
2171
else
 
2172
  # On NextStep and OpenStep, the `mkdir' command does not
 
2173
  # recognize any option.  It will interpret all options as
 
2174
  # directories to create, and then abort because `.' already
 
2175
  # exists.
 
2176
  for d in ./-p ./--version;
 
2177
  do
 
2178
    test -d $d && rmdir $d
 
2179
  done
 
2180
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
 
2181
  if test -f "$ac_aux_dir/mkinstalldirs"; then
 
2182
    mkdir_p='$(mkinstalldirs)'
 
2183
  else
 
2184
    mkdir_p='$(install_sh) -d'
 
2185
  fi
 
2186
fi
2611
2187
 
2612
2188
for ac_prog in gawk mawk nawk awk
2613
2189
do
2614
2190
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2615
2191
set dummy $ac_prog; ac_word=$2
2616
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2617
 
$as_echo_n "checking for $ac_word... " >&6; }
2618
 
if test "${ac_cv_prog_AWK+set}" = set; then :
2619
 
  $as_echo_n "(cached) " >&6
 
2192
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2193
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2194
if test "${ac_cv_prog_AWK+set}" = set; then
 
2195
  echo $ECHO_N "(cached) $ECHO_C" >&6
2620
2196
else
2621
2197
  if test -n "$AWK"; then
2622
2198
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2626
2202
do
2627
2203
  IFS=$as_save_IFS
2628
2204
  test -z "$as_dir" && as_dir=.
2629
 
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2205
  for ac_exec_ext in '' $ac_executable_extensions; do
2630
2206
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2631
2207
    ac_cv_prog_AWK="$ac_prog"
2632
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2208
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2633
2209
    break 2
2634
2210
  fi
2635
2211
done
2636
 
  done
 
2212
done
2637
2213
IFS=$as_save_IFS
2638
2214
 
2639
2215
fi
2640
2216
fi
2641
2217
AWK=$ac_cv_prog_AWK
2642
2218
if test -n "$AWK"; then
2643
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2644
 
$as_echo "$AWK" >&6; }
 
2219
  { echo "$as_me:$LINENO: result: $AWK" >&5
 
2220
echo "${ECHO_T}$AWK" >&6; }
2645
2221
else
2646
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2647
 
$as_echo "no" >&6; }
 
2222
  { echo "$as_me:$LINENO: result: no" >&5
 
2223
echo "${ECHO_T}no" >&6; }
2648
2224
fi
2649
2225
 
2650
2226
 
2651
2227
  test -n "$AWK" && break
2652
2228
done
2653
2229
 
2654
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2655
 
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2656
 
set x ${MAKE-make}
2657
 
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2658
 
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2659
 
  $as_echo_n "(cached) " >&6
 
2230
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
2231
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
 
2232
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
2233
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
 
2234
  echo $ECHO_N "(cached) $ECHO_C" >&6
2660
2235
else
2661
2236
  cat >conftest.make <<\_ACEOF
2662
2237
SHELL = /bin/sh
2673
2248
rm -f conftest.make
2674
2249
fi
2675
2250
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2676
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2677
 
$as_echo "yes" >&6; }
 
2251
  { echo "$as_me:$LINENO: result: yes" >&5
 
2252
echo "${ECHO_T}yes" >&6; }
2678
2253
  SET_MAKE=
2679
2254
else
2680
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2681
 
$as_echo "no" >&6; }
 
2255
  { echo "$as_me:$LINENO: result: no" >&5
 
2256
echo "${ECHO_T}no" >&6; }
2682
2257
  SET_MAKE="MAKE=${MAKE-make}"
2683
2258
fi
2684
2259
 
2691
2266
fi
2692
2267
rmdir .tst 2>/dev/null
2693
2268
 
2694
 
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2695
 
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2696
 
  # is not polluted with repeated "-I."
2697
 
  am__isrc=' -I$(srcdir)'
2698
 
  # test to see if srcdir already configured
2699
 
  if test -f $srcdir/config.status; then
2700
 
    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2701
 
  fi
 
2269
# test to see if srcdir already configured
 
2270
if test "`cd $srcdir && pwd`" != "`pwd`" &&
 
2271
   test -f $srcdir/config.status; then
 
2272
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
 
2273
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
 
2274
   { (exit 1); exit 1; }; }
2702
2275
fi
2703
2276
 
2704
2277
# test whether we have cygpath
2713
2286
 
2714
2287
# Define the identity of the package.
2715
2288
 PACKAGE='vdpau-video'
2716
 
 VERSION='0.6.3'
 
2289
 VERSION='0.7.3'
2717
2290
 
2718
2291
 
2719
2292
cat >>confdefs.h <<_ACEOF
2741
2314
 
2742
2315
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2743
2316
 
 
2317
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
2318
 
 
2319
# Installed binaries are usually stripped using `strip' when the user
 
2320
# run `make install-strip'.  However `strip' might not be the right
 
2321
# tool to use in cross-compilation environments, therefore Automake
 
2322
# will honor the `STRIP' environment variable to overrule this program.
 
2323
if test "$cross_compiling" != no; then
 
2324
  if test -n "$ac_tool_prefix"; then
 
2325
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
2326
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
2327
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2328
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2329
if test "${ac_cv_prog_STRIP+set}" = set; then
 
2330
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2331
else
 
2332
  if test -n "$STRIP"; then
 
2333
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
2334
else
 
2335
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2336
for as_dir in $PATH
 
2337
do
 
2338
  IFS=$as_save_IFS
 
2339
  test -z "$as_dir" && as_dir=.
 
2340
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2341
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2342
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
2343
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2344
    break 2
 
2345
  fi
 
2346
done
 
2347
done
 
2348
IFS=$as_save_IFS
 
2349
 
 
2350
fi
 
2351
fi
 
2352
STRIP=$ac_cv_prog_STRIP
 
2353
if test -n "$STRIP"; then
 
2354
  { echo "$as_me:$LINENO: result: $STRIP" >&5
 
2355
echo "${ECHO_T}$STRIP" >&6; }
 
2356
else
 
2357
  { echo "$as_me:$LINENO: result: no" >&5
 
2358
echo "${ECHO_T}no" >&6; }
 
2359
fi
 
2360
 
 
2361
 
 
2362
fi
 
2363
if test -z "$ac_cv_prog_STRIP"; then
 
2364
  ac_ct_STRIP=$STRIP
 
2365
  # Extract the first word of "strip", so it can be a program name with args.
 
2366
set dummy strip; ac_word=$2
 
2367
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2368
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2369
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
2370
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2371
else
 
2372
  if test -n "$ac_ct_STRIP"; then
 
2373
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
2374
else
 
2375
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2376
for as_dir in $PATH
 
2377
do
 
2378
  IFS=$as_save_IFS
 
2379
  test -z "$as_dir" && as_dir=.
 
2380
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2381
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2382
    ac_cv_prog_ac_ct_STRIP="strip"
 
2383
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2384
    break 2
 
2385
  fi
 
2386
done
 
2387
done
 
2388
IFS=$as_save_IFS
 
2389
 
 
2390
fi
 
2391
fi
 
2392
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
2393
if test -n "$ac_ct_STRIP"; then
 
2394
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
2395
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
 
2396
else
 
2397
  { echo "$as_me:$LINENO: result: no" >&5
 
2398
echo "${ECHO_T}no" >&6; }
 
2399
fi
 
2400
 
 
2401
  if test "x$ac_ct_STRIP" = x; then
 
2402
    STRIP=":"
 
2403
  else
 
2404
    case $cross_compiling:$ac_tool_warned in
 
2405
yes:)
 
2406
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
2407
whose name does not start with the host triplet.  If you think this
 
2408
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
2409
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
2410
whose name does not start with the host triplet.  If you think this
 
2411
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
2412
ac_tool_warned=yes ;;
 
2413
esac
 
2414
    STRIP=$ac_ct_STRIP
 
2415
  fi
 
2416
else
 
2417
  STRIP="$ac_cv_prog_STRIP"
 
2418
fi
 
2419
 
 
2420
fi
 
2421
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
2422
 
2744
2423
# We need awk for the "check" target.  The system "awk" is bad on
2745
2424
# some platforms.
2746
2425
# Always define AMTAR for backward compatibility.
2766
2445
 
2767
2446
 
2768
2447
VDPAU_VIDEO_MAJOR_VERSION=0
2769
 
VDPAU_VIDEO_MINOR_VERSION=6
 
2448
VDPAU_VIDEO_MINOR_VERSION=7
2770
2449
VDPAU_VIDEO_MICRO_VERSION=3
2771
2450
 
2772
 
$as_echo "#define VDPAU_VIDEO_MAJOR_VERSION 0" >>confdefs.h
2773
 
 
2774
 
 
2775
 
$as_echo "#define VDPAU_VIDEO_MINOR_VERSION 6" >>confdefs.h
2776
 
 
2777
 
 
2778
 
$as_echo "#define VDPAU_VIDEO_MICRO_VERSION 3" >>confdefs.h
 
2451
cat >>confdefs.h <<\_ACEOF
 
2452
#define VDPAU_VIDEO_MAJOR_VERSION 0
 
2453
_ACEOF
 
2454
 
 
2455
 
 
2456
cat >>confdefs.h <<\_ACEOF
 
2457
#define VDPAU_VIDEO_MINOR_VERSION 7
 
2458
_ACEOF
 
2459
 
 
2460
 
 
2461
cat >>confdefs.h <<\_ACEOF
 
2462
#define VDPAU_VIDEO_MICRO_VERSION 3
 
2463
_ACEOF
 
2464
 
 
2465
 
 
2466
cat >>confdefs.h <<\_ACEOF
 
2467
#define VDPAU_VIDEO_PRE_VERSION 0
 
2468
_ACEOF
2779
2469
 
2780
2470
 
2781
2471
VDPAU_VIDEO_LT_LDFLAGS="-avoid-version"
2784
2474
 
2785
2475
 
2786
2476
# Check whether --enable-glx was given.
2787
 
if test "${enable_glx+set}" = set; then :
 
2477
if test "${enable_glx+set}" = set; then
2788
2478
  enableval=$enable_glx;
2789
2479
else
2790
2480
  enable_glx="yes"
2792
2482
 
2793
2483
 
2794
2484
# Check whether --enable-debug was given.
2795
 
if test "${enable_debug+set}" = set; then :
 
2485
if test "${enable_debug+set}" = set; then
2796
2486
  enableval=$enable_debug;
2797
2487
else
2798
2488
  enable_debug="yes"
2802
2492
 
2803
2493
    if test ""$enable_debug"" = "yes" -o ""$enable_debug"" = "guessing yes"; then
2804
2494
 
2805
 
$as_echo "#define USE_DEBUG 1" >>confdefs.h
 
2495
cat >>confdefs.h <<\_ACEOF
 
2496
#define USE_DEBUG 1
 
2497
_ACEOF
2806
2498
 
2807
2499
    else
2808
2500
 
2809
 
$as_echo "#define USE_DEBUG 0" >>confdefs.h
 
2501
cat >>confdefs.h <<\_ACEOF
 
2502
#define USE_DEBUG 0
 
2503
_ACEOF
2810
2504
 
2811
2505
    fi
2812
2506
 
2813
2507
 
2814
2508
# Check whether --enable-tracer was given.
2815
 
if test "${enable_tracer+set}" = set; then :
 
2509
if test "${enable_tracer+set}" = set; then
2816
2510
  enableval=$enable_tracer;
2817
2511
else
2818
2512
  enable_tracer="yes"
2822
2516
 
2823
2517
    if test ""$enable_tracer"" = "yes" -o ""$enable_tracer"" = "guessing yes"; then
2824
2518
 
2825
 
$as_echo "#define USE_TRACER 1" >>confdefs.h
 
2519
cat >>confdefs.h <<\_ACEOF
 
2520
#define USE_TRACER 1
 
2521
_ACEOF
2826
2522
 
2827
2523
    else
2828
2524
 
2829
 
$as_echo "#define USE_TRACER 0" >>confdefs.h
 
2525
cat >>confdefs.h <<\_ACEOF
 
2526
#define USE_TRACER 0
 
2527
_ACEOF
2830
2528
 
2831
2529
    fi
2832
2530
 
2833
2531
 
2834
2532
# Check whether --enable-static was given.
2835
 
if test "${enable_static+set}" = set; then :
 
2533
if test "${enable_static+set}" = set; then
2836
2534
  enableval=$enable_static; p=${PACKAGE-default}
2837
2535
    case $enableval in
2838
2536
    yes) enable_static=yes ;;
2856
2554
 
2857
2555
 
2858
2556
 
2859
 
 
2860
 
 
2861
 
 
2862
 
 
2863
 
 
2864
 
 
2865
 
case `pwd` in
2866
 
  *\ * | *\     *)
2867
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2868
 
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2869
 
esac
2870
 
 
2871
 
 
2872
 
 
2873
 
macro_version='2.2.6b'
2874
 
macro_revision='1.3017'
2875
 
 
2876
 
 
2877
 
 
2878
 
 
2879
 
 
2880
 
 
2881
 
 
2882
 
 
2883
 
 
2884
 
 
2885
 
 
2886
 
 
2887
 
 
2888
 
ltmain="$ac_aux_dir/ltmain.sh"
 
2557
# Check whether --enable-shared was given.
 
2558
if test "${enable_shared+set}" = set; then
 
2559
  enableval=$enable_shared; p=${PACKAGE-default}
 
2560
    case $enableval in
 
2561
    yes) enable_shared=yes ;;
 
2562
    no) enable_shared=no ;;
 
2563
    *)
 
2564
      enable_shared=no
 
2565
      # Look at the argument we got.  We use all the common list separators.
 
2566
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
2567
      for pkg in $enableval; do
 
2568
        IFS="$lt_save_ifs"
 
2569
        if test "X$pkg" = "X$p"; then
 
2570
          enable_shared=yes
 
2571
        fi
 
2572
      done
 
2573
      IFS="$lt_save_ifs"
 
2574
      ;;
 
2575
    esac
 
2576
else
 
2577
  enable_shared=yes
 
2578
fi
 
2579
 
 
2580
 
 
2581
# Check whether --enable-fast-install was given.
 
2582
if test "${enable_fast_install+set}" = set; then
 
2583
  enableval=$enable_fast_install; p=${PACKAGE-default}
 
2584
    case $enableval in
 
2585
    yes) enable_fast_install=yes ;;
 
2586
    no) enable_fast_install=no ;;
 
2587
    *)
 
2588
      enable_fast_install=no
 
2589
      # Look at the argument we got.  We use all the common list separators.
 
2590
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
2591
      for pkg in $enableval; do
 
2592
        IFS="$lt_save_ifs"
 
2593
        if test "X$pkg" = "X$p"; then
 
2594
          enable_fast_install=yes
 
2595
        fi
 
2596
      done
 
2597
      IFS="$lt_save_ifs"
 
2598
      ;;
 
2599
    esac
 
2600
else
 
2601
  enable_fast_install=yes
 
2602
fi
 
2603
 
2889
2604
 
2890
2605
# Make sure we can run config.sub.
2891
2606
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2892
 
  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
 
2607
  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
 
2608
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
 
2609
   { (exit 1); exit 1; }; }
2893
2610
 
2894
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2895
 
$as_echo_n "checking build system type... " >&6; }
2896
 
if test "${ac_cv_build+set}" = set; then :
2897
 
  $as_echo_n "(cached) " >&6
 
2611
{ echo "$as_me:$LINENO: checking build system type" >&5
 
2612
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
 
2613
if test "${ac_cv_build+set}" = set; then
 
2614
  echo $ECHO_N "(cached) $ECHO_C" >&6
2898
2615
else
2899
2616
  ac_build_alias=$build_alias
2900
2617
test "x$ac_build_alias" = x &&
2901
2618
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2902
2619
test "x$ac_build_alias" = x &&
2903
 
  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
 
2620
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
2621
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
2622
   { (exit 1); exit 1; }; }
2904
2623
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2905
 
  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
 
2624
  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
 
2625
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
 
2626
   { (exit 1); exit 1; }; }
2906
2627
 
2907
2628
fi
2908
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2909
 
$as_echo "$ac_cv_build" >&6; }
 
2629
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
2630
echo "${ECHO_T}$ac_cv_build" >&6; }
2910
2631
case $ac_cv_build in
2911
2632
*-*-*) ;;
2912
 
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
 
2633
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
 
2634
echo "$as_me: error: invalid value of canonical build" >&2;}
 
2635
   { (exit 1); exit 1; }; };;
2913
2636
esac
2914
2637
build=$ac_cv_build
2915
2638
ac_save_IFS=$IFS; IFS='-'
2925
2648
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2926
2649
 
2927
2650
 
2928
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2929
 
$as_echo_n "checking host system type... " >&6; }
2930
 
if test "${ac_cv_host+set}" = set; then :
2931
 
  $as_echo_n "(cached) " >&6
 
2651
{ echo "$as_me:$LINENO: checking host system type" >&5
 
2652
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
 
2653
if test "${ac_cv_host+set}" = set; then
 
2654
  echo $ECHO_N "(cached) $ECHO_C" >&6
2932
2655
else
2933
2656
  if test "x$host_alias" = x; then
2934
2657
  ac_cv_host=$ac_cv_build
2935
2658
else
2936
2659
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2937
 
    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
 
2660
    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
 
2661
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
 
2662
   { (exit 1); exit 1; }; }
2938
2663
fi
2939
2664
 
2940
2665
fi
2941
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2942
 
$as_echo "$ac_cv_host" >&6; }
 
2666
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
2667
echo "${ECHO_T}$ac_cv_host" >&6; }
2943
2668
case $ac_cv_host in
2944
2669
*-*-*) ;;
2945
 
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
 
2670
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
 
2671
echo "$as_me: error: invalid value of canonical host" >&2;}
 
2672
   { (exit 1); exit 1; }; };;
2946
2673
esac
2947
2674
host=$ac_cv_host
2948
2675
ac_save_IFS=$IFS; IFS='-'
2966
2693
am_make=${MAKE-make}
2967
2694
cat > confinc << 'END'
2968
2695
am__doit:
2969
 
        @echo this is the am__doit target
 
2696
        @echo done
2970
2697
.PHONY: am__doit
2971
2698
END
2972
2699
# If we don't find an include directive, just comment out the code.
2973
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2974
 
$as_echo_n "checking for style of include used by $am_make... " >&6; }
 
2700
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
 
2701
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2975
2702
am__include="#"
2976
2703
am__quote=
2977
2704
_am_result=none
2978
2705
# First try GNU make style include.
2979
2706
echo "include confinc" > confmf
2980
 
# Ignore all kinds of additional output from `make'.
2981
 
case `$am_make -s -f confmf 2> /dev/null` in #(
2982
 
*the\ am__doit\ target*)
2983
 
  am__include=include
2984
 
  am__quote=
2985
 
  _am_result=GNU
2986
 
  ;;
2987
 
esac
 
2707
# We grep out `Entering directory' and `Leaving directory'
 
2708
# messages which can occur if `w' ends up in MAKEFLAGS.
 
2709
# In particular we don't look at `^make:' because GNU make might
 
2710
# be invoked under some other name (usually "gmake"), in which
 
2711
# case it prints its new name instead of `make'.
 
2712
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
 
2713
   am__include=include
 
2714
   am__quote=
 
2715
   _am_result=GNU
 
2716
fi
2988
2717
# Now try BSD make style include.
2989
2718
if test "$am__include" = "#"; then
2990
2719
   echo '.include "confinc"' > confmf
2991
 
   case `$am_make -s -f confmf 2> /dev/null` in #(
2992
 
   *the\ am__doit\ target*)
2993
 
     am__include=.include
2994
 
     am__quote="\""
2995
 
     _am_result=BSD
2996
 
     ;;
2997
 
   esac
 
2720
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
2721
      am__include=.include
 
2722
      am__quote="\""
 
2723
      _am_result=BSD
 
2724
   fi
2998
2725
fi
2999
2726
 
3000
2727
 
3001
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3002
 
$as_echo "$_am_result" >&6; }
 
2728
{ echo "$as_me:$LINENO: result: $_am_result" >&5
 
2729
echo "${ECHO_T}$_am_result" >&6; }
3003
2730
rm -f confinc confmf
3004
2731
 
3005
2732
# Check whether --enable-dependency-tracking was given.
3006
 
if test "${enable_dependency_tracking+set}" = set; then :
 
2733
if test "${enable_dependency_tracking+set}" = set; then
3007
2734
  enableval=$enable_dependency_tracking;
3008
2735
fi
3009
2736
 
3011
2738
  am_depcomp="$ac_aux_dir/depcomp"
3012
2739
  AMDEPBACKSLASH='\'
3013
2740
fi
3014
 
 if test "x$enable_dependency_tracking" != xno; then
 
2741
 
 
2742
 
 
2743
if test "x$enable_dependency_tracking" != xno; then
3015
2744
  AMDEP_TRUE=
3016
2745
  AMDEP_FALSE='#'
3017
2746
else
3020
2749
fi
3021
2750
 
3022
2751
 
 
2752
 
3023
2753
ac_ext=c
3024
2754
ac_cpp='$CPP $CPPFLAGS'
3025
2755
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3028
2758
if test -n "$ac_tool_prefix"; then
3029
2759
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3030
2760
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3031
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3032
 
$as_echo_n "checking for $ac_word... " >&6; }
3033
 
if test "${ac_cv_prog_CC+set}" = set; then :
3034
 
  $as_echo_n "(cached) " >&6
 
2761
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2762
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2763
if test "${ac_cv_prog_CC+set}" = set; then
 
2764
  echo $ECHO_N "(cached) $ECHO_C" >&6
3035
2765
else
3036
2766
  if test -n "$CC"; then
3037
2767
  ac_cv_prog_CC="$CC" # Let the user override the test.
3041
2771
do
3042
2772
  IFS=$as_save_IFS
3043
2773
  test -z "$as_dir" && as_dir=.
3044
 
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2774
  for ac_exec_ext in '' $ac_executable_extensions; do
3045
2775
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3046
2776
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3047
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2777
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3048
2778
    break 2
3049
2779
  fi
3050
2780
done
3051
 
  done
 
2781
done
3052
2782
IFS=$as_save_IFS
3053
2783
 
3054
2784
fi
3055
2785
fi
3056
2786
CC=$ac_cv_prog_CC
3057
2787
if test -n "$CC"; then
3058
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3059
 
$as_echo "$CC" >&6; }
 
2788
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2789
echo "${ECHO_T}$CC" >&6; }
3060
2790
else
3061
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3062
 
$as_echo "no" >&6; }
 
2791
  { echo "$as_me:$LINENO: result: no" >&5
 
2792
echo "${ECHO_T}no" >&6; }
3063
2793
fi
3064
2794
 
3065
2795
 
3068
2798
  ac_ct_CC=$CC
3069
2799
  # Extract the first word of "gcc", so it can be a program name with args.
3070
2800
set dummy gcc; ac_word=$2
3071
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3072
 
$as_echo_n "checking for $ac_word... " >&6; }
3073
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3074
 
  $as_echo_n "(cached) " >&6
 
2801
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2802
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2803
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2804
  echo $ECHO_N "(cached) $ECHO_C" >&6
3075
2805
else
3076
2806
  if test -n "$ac_ct_CC"; then
3077
2807
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3081
2811
do
3082
2812
  IFS=$as_save_IFS
3083
2813
  test -z "$as_dir" && as_dir=.
3084
 
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2814
  for ac_exec_ext in '' $ac_executable_extensions; do
3085
2815
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3086
2816
    ac_cv_prog_ac_ct_CC="gcc"
3087
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2817
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3088
2818
    break 2
3089
2819
  fi
3090
2820
done
3091
 
  done
 
2821
done
3092
2822
IFS=$as_save_IFS
3093
2823
 
3094
2824
fi
3095
2825
fi
3096
2826
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3097
2827
if test -n "$ac_ct_CC"; then
3098
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3099
 
$as_echo "$ac_ct_CC" >&6; }
 
2828
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2829
echo "${ECHO_T}$ac_ct_CC" >&6; }
3100
2830
else
3101
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3102
 
$as_echo "no" >&6; }
 
2831
  { echo "$as_me:$LINENO: result: no" >&5
 
2832
echo "${ECHO_T}no" >&6; }
3103
2833
fi
3104
2834
 
3105
2835
  if test "x$ac_ct_CC" = x; then
3107
2837
  else
3108
2838
    case $cross_compiling:$ac_tool_warned in
3109
2839
yes:)
3110
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3111
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2840
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
2841
whose name does not start with the host triplet.  If you think this
 
2842
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
2843
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
2844
whose name does not start with the host triplet.  If you think this
 
2845
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3112
2846
ac_tool_warned=yes ;;
3113
2847
esac
3114
2848
    CC=$ac_ct_CC
3121
2855
          if test -n "$ac_tool_prefix"; then
3122
2856
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3123
2857
set dummy ${ac_tool_prefix}cc; ac_word=$2
3124
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3125
 
$as_echo_n "checking for $ac_word... " >&6; }
3126
 
if test "${ac_cv_prog_CC+set}" = set; then :
3127
 
  $as_echo_n "(cached) " >&6
 
2858
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2859
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2860
if test "${ac_cv_prog_CC+set}" = set; then
 
2861
  echo $ECHO_N "(cached) $ECHO_C" >&6
3128
2862
else
3129
2863
  if test -n "$CC"; then
3130
2864
  ac_cv_prog_CC="$CC" # Let the user override the test.
3134
2868
do
3135
2869
  IFS=$as_save_IFS
3136
2870
  test -z "$as_dir" && as_dir=.
3137
 
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2871
  for ac_exec_ext in '' $ac_executable_extensions; do
3138
2872
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3139
2873
    ac_cv_prog_CC="${ac_tool_prefix}cc"
3140
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2874
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3141
2875
    break 2
3142
2876
  fi
3143
2877
done
3144
 
  done
 
2878
done
3145
2879
IFS=$as_save_IFS
3146
2880
 
3147
2881
fi
3148
2882
fi
3149
2883
CC=$ac_cv_prog_CC
3150
2884
if test -n "$CC"; then
3151
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3152
 
$as_echo "$CC" >&6; }
 
2885
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2886
echo "${ECHO_T}$CC" >&6; }
3153
2887
else
3154
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3155
 
$as_echo "no" >&6; }
 
2888
  { echo "$as_me:$LINENO: result: no" >&5
 
2889
echo "${ECHO_T}no" >&6; }
3156
2890
fi
3157
2891
 
3158
2892
 
3161
2895
if test -z "$CC"; then
3162
2896
  # Extract the first word of "cc", so it can be a program name with args.
3163
2897
set dummy cc; ac_word=$2
3164
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3165
 
$as_echo_n "checking for $ac_word... " >&6; }
3166
 
if test "${ac_cv_prog_CC+set}" = set; then :
3167
 
  $as_echo_n "(cached) " >&6
 
2898
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2899
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2900
if test "${ac_cv_prog_CC+set}" = set; then
 
2901
  echo $ECHO_N "(cached) $ECHO_C" >&6
3168
2902
else
3169
2903
  if test -n "$CC"; then
3170
2904
  ac_cv_prog_CC="$CC" # Let the user override the test.
3175
2909
do
3176
2910
  IFS=$as_save_IFS
3177
2911
  test -z "$as_dir" && as_dir=.
3178
 
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2912
  for ac_exec_ext in '' $ac_executable_extensions; do
3179
2913
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3180
2914
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3181
2915
       ac_prog_rejected=yes
3182
2916
       continue
3183
2917
     fi
3184
2918
    ac_cv_prog_CC="cc"
3185
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2919
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3186
2920
    break 2
3187
2921
  fi
3188
2922
done
3189
 
  done
 
2923
done
3190
2924
IFS=$as_save_IFS
3191
2925
 
3192
2926
if test $ac_prog_rejected = yes; then
3205
2939
fi
3206
2940
CC=$ac_cv_prog_CC
3207
2941
if test -n "$CC"; then
3208
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3209
 
$as_echo "$CC" >&6; }
 
2942
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2943
echo "${ECHO_T}$CC" >&6; }
3210
2944
else
3211
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3212
 
$as_echo "no" >&6; }
 
2945
  { echo "$as_me:$LINENO: result: no" >&5
 
2946
echo "${ECHO_T}no" >&6; }
3213
2947
fi
3214
2948
 
3215
2949
 
3220
2954
  do
3221
2955
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3222
2956
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3223
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3224
 
$as_echo_n "checking for $ac_word... " >&6; }
3225
 
if test "${ac_cv_prog_CC+set}" = set; then :
3226
 
  $as_echo_n "(cached) " >&6
 
2957
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2958
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2959
if test "${ac_cv_prog_CC+set}" = set; then
 
2960
  echo $ECHO_N "(cached) $ECHO_C" >&6
3227
2961
else
3228
2962
  if test -n "$CC"; then
3229
2963
  ac_cv_prog_CC="$CC" # Let the user override the test.
3233
2967
do
3234
2968
  IFS=$as_save_IFS
3235
2969
  test -z "$as_dir" && as_dir=.
3236
 
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2970
  for ac_exec_ext in '' $ac_executable_extensions; do
3237
2971
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3238
2972
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3239
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2973
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3240
2974
    break 2
3241
2975
  fi
3242
2976
done
3243
 
  done
 
2977
done
3244
2978
IFS=$as_save_IFS
3245
2979
 
3246
2980
fi
3247
2981
fi
3248
2982
CC=$ac_cv_prog_CC
3249
2983
if test -n "$CC"; then
3250
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3251
 
$as_echo "$CC" >&6; }
 
2984
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2985
echo "${ECHO_T}$CC" >&6; }
3252
2986
else
3253
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3254
 
$as_echo "no" >&6; }
 
2987
  { echo "$as_me:$LINENO: result: no" >&5
 
2988
echo "${ECHO_T}no" >&6; }
3255
2989
fi
3256
2990
 
3257
2991
 
3264
2998
do
3265
2999
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3266
3000
set dummy $ac_prog; ac_word=$2
3267
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3268
 
$as_echo_n "checking for $ac_word... " >&6; }
3269
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3270
 
  $as_echo_n "(cached) " >&6
 
3001
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3002
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
3003
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
3004
  echo $ECHO_N "(cached) $ECHO_C" >&6
3271
3005
else
3272
3006
  if test -n "$ac_ct_CC"; then
3273
3007
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3277
3011
do
3278
3012
  IFS=$as_save_IFS
3279
3013
  test -z "$as_dir" && as_dir=.
3280
 
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3014
  for ac_exec_ext in '' $ac_executable_extensions; do
3281
3015
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3282
3016
    ac_cv_prog_ac_ct_CC="$ac_prog"
3283
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3017
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3284
3018
    break 2
3285
3019
  fi
3286
3020
done
3287
 
  done
 
3021
done
3288
3022
IFS=$as_save_IFS
3289
3023
 
3290
3024
fi
3291
3025
fi
3292
3026
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3293
3027
if test -n "$ac_ct_CC"; then
3294
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3295
 
$as_echo "$ac_ct_CC" >&6; }
 
3028
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
3029
echo "${ECHO_T}$ac_ct_CC" >&6; }
3296
3030
else
3297
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3298
 
$as_echo "no" >&6; }
 
3031
  { echo "$as_me:$LINENO: result: no" >&5
 
3032
echo "${ECHO_T}no" >&6; }
3299
3033
fi
3300
3034
 
3301
3035
 
3307
3041
  else
3308
3042
    case $cross_compiling:$ac_tool_warned in
3309
3043
yes:)
3310
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3311
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3044
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
3045
whose name does not start with the host triplet.  If you think this
 
3046
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
3047
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
3048
whose name does not start with the host triplet.  If you think this
 
3049
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3312
3050
ac_tool_warned=yes ;;
3313
3051
esac
3314
3052
    CC=$ac_ct_CC
3318
3056
fi
3319
3057
 
3320
3058
 
3321
 
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3322
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3323
 
as_fn_error "no acceptable C compiler found in \$PATH
3324
 
See \`config.log' for more details." "$LINENO" 5; }
 
3059
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
3060
See \`config.log' for more details." >&5
 
3061
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
3062
See \`config.log' for more details." >&2;}
 
3063
   { (exit 1); exit 1; }; }
3325
3064
 
3326
3065
# Provide some information about the compiler.
3327
 
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3328
 
set X $ac_compile
3329
 
ac_compiler=$2
3330
 
for ac_option in --version -v -V -qversion; do
3331
 
  { { ac_try="$ac_compiler $ac_option >&5"
3332
 
case "(($ac_try" in
3333
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334
 
  *) ac_try_echo=$ac_try;;
3335
 
esac
3336
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3337
 
$as_echo "$ac_try_echo"; } >&5
3338
 
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3339
 
  ac_status=$?
3340
 
  if test -s conftest.err; then
3341
 
    sed '10a\
3342
 
... rest of stderr output deleted ...
3343
 
         10q' conftest.err >conftest.er1
3344
 
    cat conftest.er1 >&5
3345
 
  fi
3346
 
  rm -f conftest.er1 conftest.err
3347
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3348
 
  test $ac_status = 0; }
3349
 
done
 
3066
echo "$as_me:$LINENO: checking for C compiler version" >&5
 
3067
ac_compiler=`set X $ac_compile; echo $2`
 
3068
{ (ac_try="$ac_compiler --version >&5"
 
3069
case "(($ac_try" in
 
3070
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3071
  *) ac_try_echo=$ac_try;;
 
3072
esac
 
3073
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3074
  (eval "$ac_compiler --version >&5") 2>&5
 
3075
  ac_status=$?
 
3076
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3077
  (exit $ac_status); }
 
3078
{ (ac_try="$ac_compiler -v >&5"
 
3079
case "(($ac_try" in
 
3080
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3081
  *) ac_try_echo=$ac_try;;
 
3082
esac
 
3083
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3084
  (eval "$ac_compiler -v >&5") 2>&5
 
3085
  ac_status=$?
 
3086
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3087
  (exit $ac_status); }
 
3088
{ (ac_try="$ac_compiler -V >&5"
 
3089
case "(($ac_try" in
 
3090
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3091
  *) ac_try_echo=$ac_try;;
 
3092
esac
 
3093
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3094
  (eval "$ac_compiler -V >&5") 2>&5
 
3095
  ac_status=$?
 
3096
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3097
  (exit $ac_status); }
3350
3098
 
3351
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3099
cat >conftest.$ac_ext <<_ACEOF
 
3100
/* confdefs.h.  */
 
3101
_ACEOF
 
3102
cat confdefs.h >>conftest.$ac_ext
 
3103
cat >>conftest.$ac_ext <<_ACEOF
3352
3104
/* end confdefs.h.  */
3353
3105
 
3354
3106
int
3360
3112
}
3361
3113
_ACEOF
3362
3114
ac_clean_files_save=$ac_clean_files
3363
 
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
 
3115
ac_clean_files="$ac_clean_files a.out a.exe b.out"
3364
3116
# Try to create an executable without -o first, disregard a.out.
3365
3117
# It will help us diagnose broken compilers, and finding out an intuition
3366
3118
# of exeext.
3367
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3368
 
$as_echo_n "checking whether the C compiler works... " >&6; }
3369
 
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3370
 
 
3371
 
# The possible output files:
3372
 
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3373
 
 
 
3119
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
3120
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
 
3121
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
3122
#
 
3123
# List of possible output files, starting from the most likely.
 
3124
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
 
3125
# only as a last resort.  b.out is created by i960 compilers.
 
3126
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
 
3127
#
 
3128
# The IRIX 6 linker writes into existing files which may not be
 
3129
# executable, retaining their permissions.  Remove them first so a
 
3130
# subsequent execution test works.
3374
3131
ac_rmfiles=
3375
3132
for ac_file in $ac_files
3376
3133
do
3377
3134
  case $ac_file in
3378
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
3135
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3379
3136
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3380
3137
  esac
3381
3138
done
3382
3139
rm -f $ac_rmfiles
3383
3140
 
3384
 
if { { ac_try="$ac_link_default"
 
3141
if { (ac_try="$ac_link_default"
3385
3142
case "(($ac_try" in
3386
3143
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3387
3144
  *) ac_try_echo=$ac_try;;
3388
3145
esac
3389
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3390
 
$as_echo "$ac_try_echo"; } >&5
 
3146
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3391
3147
  (eval "$ac_link_default") 2>&5
3392
3148
  ac_status=$?
3393
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3394
 
  test $ac_status = 0; }; then :
 
3149
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3150
  (exit $ac_status); }; then
3395
3151
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3396
3152
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3397
3153
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3401
3157
do
3402
3158
  test -f "$ac_file" || continue
3403
3159
  case $ac_file in
3404
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
 
3160
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3405
3161
        ;;
3406
3162
    [ab].out )
3407
3163
        # We found the default executable, but exeext='' is most
3408
3164
        # certainly right.
3409
3165
        break;;
3410
3166
    *.* )
3411
 
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
3167
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3412
3168
        then :; else
3413
3169
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3414
3170
        fi
3427
3183
else
3428
3184
  ac_file=''
3429
3185
fi
3430
 
if test -z "$ac_file"; then :
3431
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3432
 
$as_echo "no" >&6; }
3433
 
$as_echo "$as_me: failed program was:" >&5
 
3186
 
 
3187
{ echo "$as_me:$LINENO: result: $ac_file" >&5
 
3188
echo "${ECHO_T}$ac_file" >&6; }
 
3189
if test -z "$ac_file"; then
 
3190
  echo "$as_me: failed program was:" >&5
3434
3191
sed 's/^/| /' conftest.$ac_ext >&5
3435
3192
 
3436
 
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3437
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3438
 
{ as_fn_set_status 77
3439
 
as_fn_error "C compiler cannot create executables
3440
 
See \`config.log' for more details." "$LINENO" 5; }; }
3441
 
else
3442
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3443
 
$as_echo "yes" >&6; }
 
3193
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
 
3194
See \`config.log' for more details." >&5
 
3195
echo "$as_me: error: C compiler cannot create executables
 
3196
See \`config.log' for more details." >&2;}
 
3197
   { (exit 77); exit 77; }; }
3444
3198
fi
3445
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3446
 
$as_echo_n "checking for C compiler default output file name... " >&6; }
3447
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3448
 
$as_echo "$ac_file" >&6; }
 
3199
 
3449
3200
ac_exeext=$ac_cv_exeext
3450
3201
 
3451
 
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
 
3202
# Check that the compiler produces executables we can run.  If not, either
 
3203
# the compiler is broken, or we cross compile.
 
3204
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
3205
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
 
3206
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
3207
# If not cross compiling, check that we can run a simple program.
 
3208
if test "$cross_compiling" != yes; then
 
3209
  if { ac_try='./$ac_file'
 
3210
  { (case "(($ac_try" in
 
3211
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3212
  *) ac_try_echo=$ac_try;;
 
3213
esac
 
3214
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3215
  (eval "$ac_try") 2>&5
 
3216
  ac_status=$?
 
3217
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3218
  (exit $ac_status); }; }; then
 
3219
    cross_compiling=no
 
3220
  else
 
3221
    if test "$cross_compiling" = maybe; then
 
3222
        cross_compiling=yes
 
3223
    else
 
3224
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
3225
If you meant to cross compile, use \`--host'.
 
3226
See \`config.log' for more details." >&5
 
3227
echo "$as_me: error: cannot run C compiled programs.
 
3228
If you meant to cross compile, use \`--host'.
 
3229
See \`config.log' for more details." >&2;}
 
3230
   { (exit 1); exit 1; }; }
 
3231
    fi
 
3232
  fi
 
3233
fi
 
3234
{ echo "$as_me:$LINENO: result: yes" >&5
 
3235
echo "${ECHO_T}yes" >&6; }
 
3236
 
 
3237
rm -f a.out a.exe conftest$ac_cv_exeext b.out
3452
3238
ac_clean_files=$ac_clean_files_save
3453
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3454
 
$as_echo_n "checking for suffix of executables... " >&6; }
3455
 
if { { ac_try="$ac_link"
 
3239
# Check that the compiler produces executables we can run.  If not, either
 
3240
# the compiler is broken, or we cross compile.
 
3241
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
3242
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
 
3243
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
3244
echo "${ECHO_T}$cross_compiling" >&6; }
 
3245
 
 
3246
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
3247
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
 
3248
if { (ac_try="$ac_link"
3456
3249
case "(($ac_try" in
3457
3250
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3458
3251
  *) ac_try_echo=$ac_try;;
3459
3252
esac
3460
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3461
 
$as_echo "$ac_try_echo"; } >&5
 
3253
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3462
3254
  (eval "$ac_link") 2>&5
3463
3255
  ac_status=$?
3464
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3465
 
  test $ac_status = 0; }; then :
 
3256
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3257
  (exit $ac_status); }; then
3466
3258
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3467
3259
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3468
3260
# work properly (i.e., refer to `conftest.exe'), while it won't with
3470
3262
for ac_file in conftest.exe conftest conftest.*; do
3471
3263
  test -f "$ac_file" || continue
3472
3264
  case $ac_file in
3473
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
3265
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3474
3266
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3475
3267
          break;;
3476
3268
    * ) break;;
3477
3269
  esac
3478
3270
done
3479
3271
else
3480
 
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3481
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3482
 
as_fn_error "cannot compute suffix of executables: cannot compile and link
3483
 
See \`config.log' for more details." "$LINENO" 5; }
 
3272
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
3273
See \`config.log' for more details." >&5
 
3274
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
3275
See \`config.log' for more details." >&2;}
 
3276
   { (exit 1); exit 1; }; }
3484
3277
fi
3485
 
rm -f conftest conftest$ac_cv_exeext
3486
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3487
 
$as_echo "$ac_cv_exeext" >&6; }
 
3278
 
 
3279
rm -f conftest$ac_cv_exeext
 
3280
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
3281
echo "${ECHO_T}$ac_cv_exeext" >&6; }
3488
3282
 
3489
3283
rm -f conftest.$ac_ext
3490
3284
EXEEXT=$ac_cv_exeext
3491
3285
ac_exeext=$EXEEXT
3492
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3493
 
/* end confdefs.h.  */
3494
 
#include <stdio.h>
3495
 
int
3496
 
main ()
3497
 
{
3498
 
FILE *f = fopen ("conftest.out", "w");
3499
 
 return ferror (f) || fclose (f) != 0;
3500
 
 
3501
 
  ;
3502
 
  return 0;
3503
 
}
3504
 
_ACEOF
3505
 
ac_clean_files="$ac_clean_files conftest.out"
3506
 
# Check that the compiler produces executables we can run.  If not, either
3507
 
# the compiler is broken, or we cross compile.
3508
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3509
 
$as_echo_n "checking whether we are cross compiling... " >&6; }
3510
 
if test "$cross_compiling" != yes; then
3511
 
  { { ac_try="$ac_link"
3512
 
case "(($ac_try" in
3513
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3514
 
  *) ac_try_echo=$ac_try;;
3515
 
esac
3516
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3517
 
$as_echo "$ac_try_echo"; } >&5
3518
 
  (eval "$ac_link") 2>&5
3519
 
  ac_status=$?
3520
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3521
 
  test $ac_status = 0; }
3522
 
  if { ac_try='./conftest$ac_cv_exeext'
3523
 
  { { case "(($ac_try" in
3524
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3525
 
  *) ac_try_echo=$ac_try;;
3526
 
esac
3527
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3528
 
$as_echo "$ac_try_echo"; } >&5
3529
 
  (eval "$ac_try") 2>&5
3530
 
  ac_status=$?
3531
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3532
 
  test $ac_status = 0; }; }; then
3533
 
    cross_compiling=no
3534
 
  else
3535
 
    if test "$cross_compiling" = maybe; then
3536
 
        cross_compiling=yes
3537
 
    else
3538
 
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3539
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3540
 
as_fn_error "cannot run C compiled programs.
3541
 
If you meant to cross compile, use \`--host'.
3542
 
See \`config.log' for more details." "$LINENO" 5; }
3543
 
    fi
3544
 
  fi
3545
 
fi
3546
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3547
 
$as_echo "$cross_compiling" >&6; }
3548
 
 
3549
 
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3550
 
ac_clean_files=$ac_clean_files_save
3551
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3552
 
$as_echo_n "checking for suffix of object files... " >&6; }
3553
 
if test "${ac_cv_objext+set}" = set; then :
3554
 
  $as_echo_n "(cached) " >&6
 
3286
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
3287
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
 
3288
if test "${ac_cv_objext+set}" = set; then
 
3289
  echo $ECHO_N "(cached) $ECHO_C" >&6
3555
3290
else
3556
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3291
  cat >conftest.$ac_ext <<_ACEOF
 
3292
/* confdefs.h.  */
 
3293
_ACEOF
 
3294
cat confdefs.h >>conftest.$ac_ext
 
3295
cat >>conftest.$ac_ext <<_ACEOF
3557
3296
/* end confdefs.h.  */
3558
3297
 
3559
3298
int
3565
3304
}
3566
3305
_ACEOF
3567
3306
rm -f conftest.o conftest.obj
3568
 
if { { ac_try="$ac_compile"
 
3307
if { (ac_try="$ac_compile"
3569
3308
case "(($ac_try" in
3570
3309
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3571
3310
  *) ac_try_echo=$ac_try;;
3572
3311
esac
3573
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3574
 
$as_echo "$ac_try_echo"; } >&5
 
3312
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3575
3313
  (eval "$ac_compile") 2>&5
3576
3314
  ac_status=$?
3577
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3578
 
  test $ac_status = 0; }; then :
 
3315
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3316
  (exit $ac_status); }; then
3579
3317
  for ac_file in conftest.o conftest.obj conftest.*; do
3580
3318
  test -f "$ac_file" || continue;
3581
3319
  case $ac_file in
3582
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
 
3320
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3583
3321
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3584
3322
       break;;
3585
3323
  esac
3586
3324
done
3587
3325
else
3588
 
  $as_echo "$as_me: failed program was:" >&5
 
3326
  echo "$as_me: failed program was:" >&5
3589
3327
sed 's/^/| /' conftest.$ac_ext >&5
3590
3328
 
3591
 
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3592
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3593
 
as_fn_error "cannot compute suffix of object files: cannot compile
3594
 
See \`config.log' for more details." "$LINENO" 5; }
 
3329
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
3330
See \`config.log' for more details." >&5
 
3331
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
3332
See \`config.log' for more details." >&2;}
 
3333
   { (exit 1); exit 1; }; }
3595
3334
fi
 
3335
 
3596
3336
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3597
3337
fi
3598
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3599
 
$as_echo "$ac_cv_objext" >&6; }
 
3338
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
3339
echo "${ECHO_T}$ac_cv_objext" >&6; }
3600
3340
OBJEXT=$ac_cv_objext
3601
3341
ac_objext=$OBJEXT
3602
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3603
 
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3604
 
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3605
 
  $as_echo_n "(cached) " >&6
 
3342
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
3343
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
 
3344
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
3345
  echo $ECHO_N "(cached) $ECHO_C" >&6
3606
3346
else
3607
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3347
  cat >conftest.$ac_ext <<_ACEOF
 
3348
/* confdefs.h.  */
 
3349
_ACEOF
 
3350
cat confdefs.h >>conftest.$ac_ext
 
3351
cat >>conftest.$ac_ext <<_ACEOF
3608
3352
/* end confdefs.h.  */
3609
3353
 
3610
3354
int
3618
3362
  return 0;
3619
3363
}
3620
3364
_ACEOF
3621
 
if ac_fn_c_try_compile "$LINENO"; then :
 
3365
rm -f conftest.$ac_objext
 
3366
if { (ac_try="$ac_compile"
 
3367
case "(($ac_try" in
 
3368
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3369
  *) ac_try_echo=$ac_try;;
 
3370
esac
 
3371
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3372
  (eval "$ac_compile") 2>conftest.er1
 
3373
  ac_status=$?
 
3374
  grep -v '^ *+' conftest.er1 >conftest.err
 
3375
  rm -f conftest.er1
 
3376
  cat conftest.err >&5
 
3377
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3378
  (exit $ac_status); } && {
 
3379
         test -z "$ac_c_werror_flag" ||
 
3380
         test ! -s conftest.err
 
3381
       } && test -s conftest.$ac_objext; then
3622
3382
  ac_compiler_gnu=yes
3623
3383
else
3624
 
  ac_compiler_gnu=no
 
3384
  echo "$as_me: failed program was:" >&5
 
3385
sed 's/^/| /' conftest.$ac_ext >&5
 
3386
 
 
3387
        ac_compiler_gnu=no
3625
3388
fi
 
3389
 
3626
3390
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3627
3391
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3628
3392
 
3629
3393
fi
3630
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3631
 
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3632
 
if test $ac_compiler_gnu = yes; then
3633
 
  GCC=yes
3634
 
else
3635
 
  GCC=
3636
 
fi
 
3394
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
3395
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
 
3396
GCC=`test $ac_compiler_gnu = yes && echo yes`
3637
3397
ac_test_CFLAGS=${CFLAGS+set}
3638
3398
ac_save_CFLAGS=$CFLAGS
3639
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3640
 
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3641
 
if test "${ac_cv_prog_cc_g+set}" = set; then :
3642
 
  $as_echo_n "(cached) " >&6
 
3399
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
3400
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
 
3401
if test "${ac_cv_prog_cc_g+set}" = set; then
 
3402
  echo $ECHO_N "(cached) $ECHO_C" >&6
3643
3403
else
3644
3404
  ac_save_c_werror_flag=$ac_c_werror_flag
3645
3405
   ac_c_werror_flag=yes
3646
3406
   ac_cv_prog_cc_g=no
3647
3407
   CFLAGS="-g"
3648
 
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3408
   cat >conftest.$ac_ext <<_ACEOF
 
3409
/* confdefs.h.  */
 
3410
_ACEOF
 
3411
cat confdefs.h >>conftest.$ac_ext
 
3412
cat >>conftest.$ac_ext <<_ACEOF
3649
3413
/* end confdefs.h.  */
3650
3414
 
3651
3415
int
3656
3420
  return 0;
3657
3421
}
3658
3422
_ACEOF
3659
 
if ac_fn_c_try_compile "$LINENO"; then :
 
3423
rm -f conftest.$ac_objext
 
3424
if { (ac_try="$ac_compile"
 
3425
case "(($ac_try" in
 
3426
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3427
  *) ac_try_echo=$ac_try;;
 
3428
esac
 
3429
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3430
  (eval "$ac_compile") 2>conftest.er1
 
3431
  ac_status=$?
 
3432
  grep -v '^ *+' conftest.er1 >conftest.err
 
3433
  rm -f conftest.er1
 
3434
  cat conftest.err >&5
 
3435
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3436
  (exit $ac_status); } && {
 
3437
         test -z "$ac_c_werror_flag" ||
 
3438
         test ! -s conftest.err
 
3439
       } && test -s conftest.$ac_objext; then
3660
3440
  ac_cv_prog_cc_g=yes
3661
3441
else
3662
 
  CFLAGS=""
3663
 
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3442
  echo "$as_me: failed program was:" >&5
 
3443
sed 's/^/| /' conftest.$ac_ext >&5
 
3444
 
 
3445
        CFLAGS=""
 
3446
      cat >conftest.$ac_ext <<_ACEOF
 
3447
/* confdefs.h.  */
 
3448
_ACEOF
 
3449
cat confdefs.h >>conftest.$ac_ext
 
3450
cat >>conftest.$ac_ext <<_ACEOF
3664
3451
/* end confdefs.h.  */
3665
3452
 
3666
3453
int
3671
3458
  return 0;
3672
3459
}
3673
3460
_ACEOF
3674
 
if ac_fn_c_try_compile "$LINENO"; then :
 
3461
rm -f conftest.$ac_objext
 
3462
if { (ac_try="$ac_compile"
 
3463
case "(($ac_try" in
 
3464
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3465
  *) ac_try_echo=$ac_try;;
 
3466
esac
 
3467
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3468
  (eval "$ac_compile") 2>conftest.er1
 
3469
  ac_status=$?
 
3470
  grep -v '^ *+' conftest.er1 >conftest.err
 
3471
  rm -f conftest.er1
 
3472
  cat conftest.err >&5
 
3473
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3474
  (exit $ac_status); } && {
 
3475
         test -z "$ac_c_werror_flag" ||
 
3476
         test ! -s conftest.err
 
3477
       } && test -s conftest.$ac_objext; then
 
3478
  :
 
3479
else
 
3480
  echo "$as_me: failed program was:" >&5
 
3481
sed 's/^/| /' conftest.$ac_ext >&5
3675
3482
 
3676
 
else
3677
 
  ac_c_werror_flag=$ac_save_c_werror_flag
 
3483
        ac_c_werror_flag=$ac_save_c_werror_flag
3678
3484
         CFLAGS="-g"
3679
 
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3485
         cat >conftest.$ac_ext <<_ACEOF
 
3486
/* confdefs.h.  */
 
3487
_ACEOF
 
3488
cat confdefs.h >>conftest.$ac_ext
 
3489
cat >>conftest.$ac_ext <<_ACEOF
3680
3490
/* end confdefs.h.  */
3681
3491
 
3682
3492
int
3687
3497
  return 0;
3688
3498
}
3689
3499
_ACEOF
3690
 
if ac_fn_c_try_compile "$LINENO"; then :
 
3500
rm -f conftest.$ac_objext
 
3501
if { (ac_try="$ac_compile"
 
3502
case "(($ac_try" in
 
3503
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3504
  *) ac_try_echo=$ac_try;;
 
3505
esac
 
3506
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3507
  (eval "$ac_compile") 2>conftest.er1
 
3508
  ac_status=$?
 
3509
  grep -v '^ *+' conftest.er1 >conftest.err
 
3510
  rm -f conftest.er1
 
3511
  cat conftest.err >&5
 
3512
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3513
  (exit $ac_status); } && {
 
3514
         test -z "$ac_c_werror_flag" ||
 
3515
         test ! -s conftest.err
 
3516
       } && test -s conftest.$ac_objext; then
3691
3517
  ac_cv_prog_cc_g=yes
3692
 
fi
3693
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3694
 
fi
3695
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3696
 
fi
 
3518
else
 
3519
  echo "$as_me: failed program was:" >&5
 
3520
sed 's/^/| /' conftest.$ac_ext >&5
 
3521
 
 
3522
 
 
3523
fi
 
3524
 
 
3525
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3526
fi
 
3527
 
 
3528
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3529
fi
 
3530
 
3697
3531
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3698
3532
   ac_c_werror_flag=$ac_save_c_werror_flag
3699
3533
fi
3700
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3701
 
$as_echo "$ac_cv_prog_cc_g" >&6; }
 
3534
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
3535
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3702
3536
if test "$ac_test_CFLAGS" = set; then
3703
3537
  CFLAGS=$ac_save_CFLAGS
3704
3538
elif test $ac_cv_prog_cc_g = yes; then
3714
3548
    CFLAGS=
3715
3549
  fi
3716
3550
fi
3717
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3718
 
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3719
 
if test "${ac_cv_prog_cc_c89+set}" = set; then :
3720
 
  $as_echo_n "(cached) " >&6
 
3551
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
 
3552
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
 
3553
if test "${ac_cv_prog_cc_c89+set}" = set; then
 
3554
  echo $ECHO_N "(cached) $ECHO_C" >&6
3721
3555
else
3722
3556
  ac_cv_prog_cc_c89=no
3723
3557
ac_save_CC=$CC
3724
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3558
cat >conftest.$ac_ext <<_ACEOF
 
3559
/* confdefs.h.  */
 
3560
_ACEOF
 
3561
cat confdefs.h >>conftest.$ac_ext
 
3562
cat >>conftest.$ac_ext <<_ACEOF
3725
3563
/* end confdefs.h.  */
3726
3564
#include <stdarg.h>
3727
3565
#include <stdio.h>
3778
3616
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3779
3617
do
3780
3618
  CC="$ac_save_CC $ac_arg"
3781
 
  if ac_fn_c_try_compile "$LINENO"; then :
 
3619
  rm -f conftest.$ac_objext
 
3620
if { (ac_try="$ac_compile"
 
3621
case "(($ac_try" in
 
3622
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3623
  *) ac_try_echo=$ac_try;;
 
3624
esac
 
3625
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3626
  (eval "$ac_compile") 2>conftest.er1
 
3627
  ac_status=$?
 
3628
  grep -v '^ *+' conftest.er1 >conftest.err
 
3629
  rm -f conftest.er1
 
3630
  cat conftest.err >&5
 
3631
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3632
  (exit $ac_status); } && {
 
3633
         test -z "$ac_c_werror_flag" ||
 
3634
         test ! -s conftest.err
 
3635
       } && test -s conftest.$ac_objext; then
3782
3636
  ac_cv_prog_cc_c89=$ac_arg
 
3637
else
 
3638
  echo "$as_me: failed program was:" >&5
 
3639
sed 's/^/| /' conftest.$ac_ext >&5
 
3640
 
 
3641
 
3783
3642
fi
 
3643
 
3784
3644
rm -f core conftest.err conftest.$ac_objext
3785
3645
  test "x$ac_cv_prog_cc_c89" != "xno" && break
3786
3646
done
3791
3651
# AC_CACHE_VAL
3792
3652
case "x$ac_cv_prog_cc_c89" in
3793
3653
  x)
3794
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3795
 
$as_echo "none needed" >&6; } ;;
 
3654
    { echo "$as_me:$LINENO: result: none needed" >&5
 
3655
echo "${ECHO_T}none needed" >&6; } ;;
3796
3656
  xno)
3797
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3798
 
$as_echo "unsupported" >&6; } ;;
 
3657
    { echo "$as_me:$LINENO: result: unsupported" >&5
 
3658
echo "${ECHO_T}unsupported" >&6; } ;;
3799
3659
  *)
3800
3660
    CC="$CC $ac_cv_prog_cc_c89"
3801
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3802
 
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 
3661
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
 
3662
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3803
3663
esac
3804
 
if test "x$ac_cv_prog_cc_c89" != xno; then :
3805
3664
 
3806
 
fi
3807
3665
 
3808
3666
ac_ext=c
3809
3667
ac_cpp='$CPP $CPPFLAGS'
3813
3671
 
3814
3672
depcc="$CC"   am_compiler_list=
3815
3673
 
3816
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3817
 
$as_echo_n "checking dependency style of $depcc... " >&6; }
3818
 
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3819
 
  $as_echo_n "(cached) " >&6
 
3674
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
3675
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
 
3676
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
3677
  echo $ECHO_N "(cached) $ECHO_C" >&6
3820
3678
else
3821
3679
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3822
3680
  # We make a subdir and do the tests there.  Otherwise we can end up
3841
3699
  if test "$am_compiler_list" = ""; then
3842
3700
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3843
3701
  fi
3844
 
  am__universal=false
3845
 
  case " $depcc " in #(
3846
 
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3847
 
     esac
3848
 
 
3849
3702
  for depmode in $am_compiler_list; do
3850
3703
    # Setup a source with many dependencies, because some compilers
3851
3704
    # like to wrap large dependency lists on column 80 (with \), and
3863
3716
    done
3864
3717
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3865
3718
 
3866
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3867
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
3868
 
    # handle `-M -o', and we need to detect this.  Also, some Intel
3869
 
    # versions had trouble with output in subdirs
3870
 
    am__obj=sub/conftest.${OBJEXT-o}
3871
 
    am__minus_obj="-o $am__obj"
3872
3719
    case $depmode in
3873
 
    gcc)
3874
 
      # This depmode causes a compiler race in universal mode.
3875
 
      test "$am__universal" = false || continue
3876
 
      ;;
3877
3720
    nosideeffect)
3878
3721
      # after this tag, mechanisms are not by side-effect, so they'll
3879
3722
      # only be used when explicitly requested
3883
3726
        break
3884
3727
      fi
3885
3728
      ;;
3886
 
    msvisualcpp | msvcmsys)
3887
 
      # This compiler won't grok `-c -o', but also, the minuso test has
3888
 
      # not run yet.  These depmodes are late enough in the game, and
3889
 
      # so weak that their functioning should not be impacted.
3890
 
      am__obj=conftest.${OBJEXT-o}
3891
 
      am__minus_obj=
3892
 
      ;;
3893
3729
    none) break ;;
3894
3730
    esac
 
3731
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3732
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3733
    # handle `-M -o', and we need to detect this.
3895
3734
    if depmode=$depmode \
3896
 
       source=sub/conftest.c object=$am__obj \
 
3735
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3897
3736
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3898
 
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
3737
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3899
3738
         >/dev/null 2>conftest.err &&
3900
 
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3901
3739
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3902
 
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
3740
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3903
3741
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3904
3742
      # icc doesn't choke on unknown options, it will just issue warnings
3905
3743
      # or remarks (even with -Werror).  So we grep stderr for any message
3923
3761
fi
3924
3762
 
3925
3763
fi
3926
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3927
 
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
 
3764
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
3765
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3928
3766
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3929
3767
 
3930
 
 if
 
3768
 
 
3769
 
 
3770
if
3931
3771
  test "x$enable_dependency_tracking" != xno \
3932
3772
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3933
3773
  am__fastdepCC_TRUE=
3938
3778
fi
3939
3779
 
3940
3780
 
3941
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3942
 
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3943
 
if test "${ac_cv_path_SED+set}" = set; then :
3944
 
  $as_echo_n "(cached) " >&6
 
3781
{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
3782
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
 
3783
if test "${lt_cv_path_SED+set}" = set; then
 
3784
  echo $ECHO_N "(cached) $ECHO_C" >&6
3945
3785
else
3946
 
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3947
 
     for ac_i in 1 2 3 4 5 6 7; do
3948
 
       ac_script="$ac_script$as_nl$ac_script"
3949
 
     done
3950
 
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3951
 
     { ac_script=; unset ac_script;}
3952
 
     if test -z "$SED"; then
3953
 
  ac_path_SED_found=false
3954
 
  # Loop through the user's path and test for each of PROGNAME-LIST
3955
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3786
  # Loop through the user's path and test for sed and gsed.
 
3787
# Then use that list of sed's as ones to test for truncation.
 
3788
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3956
3789
for as_dir in $PATH
3957
3790
do
3958
3791
  IFS=$as_save_IFS
3959
3792
  test -z "$as_dir" && as_dir=.
3960
 
    for ac_prog in sed gsed; do
 
3793
  for lt_ac_prog in sed gsed; do
3961
3794
    for ac_exec_ext in '' $ac_executable_extensions; do
3962
 
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3963
 
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3964
 
# Check for GNU ac_path_SED and select it if it is found.
3965
 
  # Check for GNU $ac_path_SED
3966
 
case `"$ac_path_SED" --version 2>&1` in
3967
 
*GNU*)
3968
 
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3969
 
*)
3970
 
  ac_count=0
3971
 
  $as_echo_n 0123456789 >"conftest.in"
3972
 
  while :
3973
 
  do
3974
 
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3975
 
    mv "conftest.tmp" "conftest.in"
3976
 
    cp "conftest.in" "conftest.nl"
3977
 
    $as_echo '' >> "conftest.nl"
3978
 
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3979
 
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3980
 
    as_fn_arith $ac_count + 1 && ac_count=$as_val
3981
 
    if test $ac_count -gt ${ac_path_SED_max-0}; then
3982
 
      # Best one so far, save it but keep looking for a better one
3983
 
      ac_cv_path_SED="$ac_path_SED"
3984
 
      ac_path_SED_max=$ac_count
3985
 
    fi
3986
 
    # 10*(2^10) chars as input seems more than enough
3987
 
    test $ac_count -gt 10 && break
3988
 
  done
3989
 
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3990
 
esac
3991
 
 
3992
 
      $ac_path_SED_found && break 3
 
3795
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
3796
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
 
3797
      fi
3993
3798
    done
3994
3799
  done
3995
 
  done
3996
 
IFS=$as_save_IFS
3997
 
  if test -z "$ac_cv_path_SED"; then
3998
 
    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
 
3800
done
 
3801
lt_ac_max=0
 
3802
lt_ac_count=0
 
3803
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
 
3804
# along with /bin/sed that truncates output.
 
3805
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
 
3806
  test ! -f $lt_ac_sed && continue
 
3807
  cat /dev/null > conftest.in
 
3808
  lt_ac_count=0
 
3809
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
 
3810
  # Check for GNU sed and select it if it is found.
 
3811
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
 
3812
    lt_cv_path_SED=$lt_ac_sed
 
3813
    break
3999
3814
  fi
4000
 
else
4001
 
  ac_cv_path_SED=$SED
4002
 
fi
4003
 
 
4004
 
fi
4005
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4006
 
$as_echo "$ac_cv_path_SED" >&6; }
4007
 
 SED="$ac_cv_path_SED"
4008
 
  rm -f conftest.sed
4009
 
 
4010
 
test -z "$SED" && SED=sed
4011
 
Xsed="$SED -e 1s/^X//"
4012
 
 
4013
 
 
4014
 
 
4015
 
 
4016
 
 
4017
 
 
4018
 
 
4019
 
 
4020
 
 
4021
 
 
4022
 
 
4023
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4024
 
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4025
 
if test "${ac_cv_path_GREP+set}" = set; then :
4026
 
  $as_echo_n "(cached) " >&6
4027
 
else
4028
 
  if test -z "$GREP"; then
 
3815
  while true; do
 
3816
    cat conftest.in conftest.in >conftest.tmp
 
3817
    mv conftest.tmp conftest.in
 
3818
    cp conftest.in conftest.nl
 
3819
    echo >>conftest.nl
 
3820
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
 
3821
    cmp -s conftest.out conftest.nl || break
 
3822
    # 10000 chars as input seems more than enough
 
3823
    test $lt_ac_count -gt 10 && break
 
3824
    lt_ac_count=`expr $lt_ac_count + 1`
 
3825
    if test $lt_ac_count -gt $lt_ac_max; then
 
3826
      lt_ac_max=$lt_ac_count
 
3827
      lt_cv_path_SED=$lt_ac_sed
 
3828
    fi
 
3829
  done
 
3830
done
 
3831
 
 
3832
fi
 
3833
 
 
3834
SED=$lt_cv_path_SED
 
3835
{ echo "$as_me:$LINENO: result: $SED" >&5
 
3836
echo "${ECHO_T}$SED" >&6; }
 
3837
 
 
3838
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
 
3839
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
 
3840
if test "${ac_cv_path_GREP+set}" = set; then
 
3841
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3842
else
 
3843
  # Extract the first word of "grep ggrep" to use in msg output
 
3844
if test -z "$GREP"; then
 
3845
set dummy grep ggrep; ac_prog_name=$2
 
3846
if test "${ac_cv_path_GREP+set}" = set; then
 
3847
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3848
else
4029
3849
  ac_path_GREP_found=false
4030
 
  # Loop through the user's path and test for each of PROGNAME-LIST
4031
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3850
# Loop through the user's path and test for each of PROGNAME-LIST
 
3851
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4032
3852
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4033
3853
do
4034
3854
  IFS=$as_save_IFS
4035
3855
  test -z "$as_dir" && as_dir=.
4036
 
    for ac_prog in grep ggrep; do
4037
 
    for ac_exec_ext in '' $ac_executable_extensions; do
4038
 
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4039
 
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4040
 
# Check for GNU ac_path_GREP and select it if it is found.
 
3856
  for ac_prog in grep ggrep; do
 
3857
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3858
    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
3859
    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
 
3860
    # Check for GNU ac_path_GREP and select it if it is found.
4041
3861
  # Check for GNU $ac_path_GREP
4042
3862
case `"$ac_path_GREP" --version 2>&1` in
4043
3863
*GNU*)
4044
3864
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4045
3865
*)
4046
3866
  ac_count=0
4047
 
  $as_echo_n 0123456789 >"conftest.in"
 
3867
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4048
3868
  while :
4049
3869
  do
4050
3870
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4051
3871
    mv "conftest.tmp" "conftest.in"
4052
3872
    cp "conftest.in" "conftest.nl"
4053
 
    $as_echo 'GREP' >> "conftest.nl"
 
3873
    echo 'GREP' >> "conftest.nl"
4054
3874
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4055
3875
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4056
 
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
3876
    ac_count=`expr $ac_count + 1`
4057
3877
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4058
3878
      # Best one so far, save it but keep looking for a better one
4059
3879
      ac_cv_path_GREP="$ac_path_GREP"
4065
3885
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4066
3886
esac
4067
3887
 
4068
 
      $ac_path_GREP_found && break 3
4069
 
    done
4070
 
  done
4071
 
  done
 
3888
 
 
3889
    $ac_path_GREP_found && break 3
 
3890
  done
 
3891
done
 
3892
 
 
3893
done
4072
3894
IFS=$as_save_IFS
4073
 
  if test -z "$ac_cv_path_GREP"; then
4074
 
    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4075
 
  fi
 
3895
 
 
3896
 
 
3897
fi
 
3898
 
 
3899
GREP="$ac_cv_path_GREP"
 
3900
if test -z "$GREP"; then
 
3901
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
3902
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
3903
   { (exit 1); exit 1; }; }
 
3904
fi
 
3905
 
4076
3906
else
4077
3907
  ac_cv_path_GREP=$GREP
4078
3908
fi
4079
3909
 
 
3910
 
4080
3911
fi
4081
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4082
 
$as_echo "$ac_cv_path_GREP" >&6; }
 
3912
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
 
3913
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4083
3914
 GREP="$ac_cv_path_GREP"
4084
3915
 
4085
3916
 
4086
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4087
 
$as_echo_n "checking for egrep... " >&6; }
4088
 
if test "${ac_cv_path_EGREP+set}" = set; then :
4089
 
  $as_echo_n "(cached) " >&6
 
3917
{ echo "$as_me:$LINENO: checking for egrep" >&5
 
3918
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
 
3919
if test "${ac_cv_path_EGREP+set}" = set; then
 
3920
  echo $ECHO_N "(cached) $ECHO_C" >&6
4090
3921
else
4091
3922
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4092
3923
   then ac_cv_path_EGREP="$GREP -E"
4093
3924
   else
4094
 
     if test -z "$EGREP"; then
 
3925
     # Extract the first word of "egrep" to use in msg output
 
3926
if test -z "$EGREP"; then
 
3927
set dummy egrep; ac_prog_name=$2
 
3928
if test "${ac_cv_path_EGREP+set}" = set; then
 
3929
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3930
else
4095
3931
  ac_path_EGREP_found=false
4096
 
  # Loop through the user's path and test for each of PROGNAME-LIST
4097
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3932
# Loop through the user's path and test for each of PROGNAME-LIST
 
3933
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4098
3934
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4099
3935
do
4100
3936
  IFS=$as_save_IFS
4101
3937
  test -z "$as_dir" && as_dir=.
4102
 
    for ac_prog in egrep; do
4103
 
    for ac_exec_ext in '' $ac_executable_extensions; do
4104
 
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4105
 
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4106
 
# Check for GNU ac_path_EGREP and select it if it is found.
 
3938
  for ac_prog in egrep; do
 
3939
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3940
    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
3941
    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
 
3942
    # Check for GNU ac_path_EGREP and select it if it is found.
4107
3943
  # Check for GNU $ac_path_EGREP
4108
3944
case `"$ac_path_EGREP" --version 2>&1` in
4109
3945
*GNU*)
4110
3946
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4111
3947
*)
4112
3948
  ac_count=0
4113
 
  $as_echo_n 0123456789 >"conftest.in"
 
3949
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4114
3950
  while :
4115
3951
  do
4116
3952
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4117
3953
    mv "conftest.tmp" "conftest.in"
4118
3954
    cp "conftest.in" "conftest.nl"
4119
 
    $as_echo 'EGREP' >> "conftest.nl"
 
3955
    echo 'EGREP' >> "conftest.nl"
4120
3956
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4121
3957
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4122
 
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
3958
    ac_count=`expr $ac_count + 1`
4123
3959
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4124
3960
      # Best one so far, save it but keep looking for a better one
4125
3961
      ac_cv_path_EGREP="$ac_path_EGREP"
4131
3967
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4132
3968
esac
4133
3969
 
4134
 
      $ac_path_EGREP_found && break 3
4135
 
    done
4136
 
  done
4137
 
  done
 
3970
 
 
3971
    $ac_path_EGREP_found && break 3
 
3972
  done
 
3973
done
 
3974
 
 
3975
done
4138
3976
IFS=$as_save_IFS
4139
 
  if test -z "$ac_cv_path_EGREP"; then
4140
 
    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4141
 
  fi
 
3977
 
 
3978
 
 
3979
fi
 
3980
 
 
3981
EGREP="$ac_cv_path_EGREP"
 
3982
if test -z "$EGREP"; then
 
3983
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
3984
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
3985
   { (exit 1); exit 1; }; }
 
3986
fi
 
3987
 
4142
3988
else
4143
3989
  ac_cv_path_EGREP=$EGREP
4144
3990
fi
4145
3991
 
 
3992
 
4146
3993
   fi
4147
3994
fi
4148
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4149
 
$as_echo "$ac_cv_path_EGREP" >&6; }
 
3995
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
 
3996
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4150
3997
 EGREP="$ac_cv_path_EGREP"
4151
3998
 
4152
3999
 
4153
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4154
 
$as_echo_n "checking for fgrep... " >&6; }
4155
 
if test "${ac_cv_path_FGREP+set}" = set; then :
4156
 
  $as_echo_n "(cached) " >&6
4157
 
else
4158
 
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4159
 
   then ac_cv_path_FGREP="$GREP -F"
4160
 
   else
4161
 
     if test -z "$FGREP"; then
4162
 
  ac_path_FGREP_found=false
4163
 
  # Loop through the user's path and test for each of PROGNAME-LIST
4164
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4165
 
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4166
 
do
4167
 
  IFS=$as_save_IFS
4168
 
  test -z "$as_dir" && as_dir=.
4169
 
    for ac_prog in fgrep; do
4170
 
    for ac_exec_ext in '' $ac_executable_extensions; do
4171
 
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4172
 
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4173
 
# Check for GNU ac_path_FGREP and select it if it is found.
4174
 
  # Check for GNU $ac_path_FGREP
4175
 
case `"$ac_path_FGREP" --version 2>&1` in
4176
 
*GNU*)
4177
 
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4178
 
*)
4179
 
  ac_count=0
4180
 
  $as_echo_n 0123456789 >"conftest.in"
4181
 
  while :
4182
 
  do
4183
 
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4184
 
    mv "conftest.tmp" "conftest.in"
4185
 
    cp "conftest.in" "conftest.nl"
4186
 
    $as_echo 'FGREP' >> "conftest.nl"
4187
 
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4188
 
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4189
 
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4190
 
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4191
 
      # Best one so far, save it but keep looking for a better one
4192
 
      ac_cv_path_FGREP="$ac_path_FGREP"
4193
 
      ac_path_FGREP_max=$ac_count
4194
 
    fi
4195
 
    # 10*(2^10) chars as input seems more than enough
4196
 
    test $ac_count -gt 10 && break
4197
 
  done
4198
 
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4199
 
esac
4200
 
 
4201
 
      $ac_path_FGREP_found && break 3
4202
 
    done
4203
 
  done
4204
 
  done
4205
 
IFS=$as_save_IFS
4206
 
  if test -z "$ac_cv_path_FGREP"; then
4207
 
    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4208
 
  fi
4209
 
else
4210
 
  ac_cv_path_FGREP=$FGREP
4211
 
fi
4212
 
 
4213
 
   fi
4214
 
fi
4215
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4216
 
$as_echo "$ac_cv_path_FGREP" >&6; }
4217
 
 FGREP="$ac_cv_path_FGREP"
4218
 
 
4219
 
 
4220
 
test -z "$GREP" && GREP=grep
4221
 
 
4222
 
 
4223
 
 
4224
 
 
4225
 
 
4226
 
 
4227
 
 
4228
 
 
4229
 
 
4230
 
 
4231
 
 
4232
 
 
4233
 
 
4234
 
 
4235
 
 
4236
 
 
4237
 
 
4238
 
 
4239
4000
 
4240
4001
# Check whether --with-gnu-ld was given.
4241
 
if test "${with_gnu_ld+set}" = set; then :
 
4002
if test "${with_gnu_ld+set}" = set; then
4242
4003
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4243
4004
else
4244
4005
  with_gnu_ld=no
4247
4008
ac_prog=ld
4248
4009
if test "$GCC" = yes; then
4249
4010
  # Check if gcc -print-prog-name=ld gives a path.
4250
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4251
 
$as_echo_n "checking for ld used by $CC... " >&6; }
 
4011
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
4012
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4252
4013
  case $host in
4253
4014
  *-*-mingw*)
4254
4015
    # gcc leaves a trailing carriage return which upsets mingw
4261
4022
    [\\/]* | ?:[\\/]*)
4262
4023
      re_direlt='/[^/][^/]*/\.\./'
4263
4024
      # Canonicalize the pathname of ld
4264
 
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4265
 
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4266
 
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
 
4025
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
4026
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
4027
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4267
4028
      done
4268
4029
      test -z "$LD" && LD="$ac_prog"
4269
4030
      ;;
4277
4038
    ;;
4278
4039
  esac
4279
4040
elif test "$with_gnu_ld" = yes; then
4280
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4281
 
$as_echo_n "checking for GNU ld... " >&6; }
 
4041
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
 
4042
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4282
4043
else
4283
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4284
 
$as_echo_n "checking for non-GNU ld... " >&6; }
 
4044
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
4045
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4285
4046
fi
4286
 
if test "${lt_cv_path_LD+set}" = set; then :
4287
 
  $as_echo_n "(cached) " >&6
 
4047
if test "${lt_cv_path_LD+set}" = set; then
 
4048
  echo $ECHO_N "(cached) $ECHO_C" >&6
4288
4049
else
4289
4050
  if test -z "$LD"; then
4290
4051
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4314
4075
 
4315
4076
LD="$lt_cv_path_LD"
4316
4077
if test -n "$LD"; then
4317
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4318
 
$as_echo "$LD" >&6; }
 
4078
  { echo "$as_me:$LINENO: result: $LD" >&5
 
4079
echo "${ECHO_T}$LD" >&6; }
4319
4080
else
4320
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4321
 
$as_echo "no" >&6; }
 
4081
  { echo "$as_me:$LINENO: result: no" >&5
 
4082
echo "${ECHO_T}no" >&6; }
4322
4083
fi
4323
 
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4324
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4325
 
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4326
 
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4327
 
  $as_echo_n "(cached) " >&6
 
4084
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
4085
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
4086
   { (exit 1); exit 1; }; }
 
4087
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
4088
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
 
4089
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
4090
  echo $ECHO_N "(cached) $ECHO_C" >&6
4328
4091
else
4329
4092
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4330
4093
case `$LD -v 2>&1 </dev/null` in
4336
4099
  ;;
4337
4100
esac
4338
4101
fi
4339
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4340
 
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
 
4102
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
4103
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4341
4104
with_gnu_ld=$lt_cv_prog_gnu_ld
4342
4105
 
4343
4106
 
4344
 
 
4345
 
 
4346
 
 
4347
 
 
4348
 
 
4349
 
 
4350
 
 
4351
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4352
 
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4353
 
if test "${lt_cv_path_NM+set}" = set; then :
4354
 
  $as_echo_n "(cached) " >&6
 
4107
{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
4108
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
 
4109
if test "${lt_cv_ld_reload_flag+set}" = set; then
 
4110
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4111
else
 
4112
  lt_cv_ld_reload_flag='-r'
 
4113
fi
 
4114
{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
4115
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
 
4116
reload_flag=$lt_cv_ld_reload_flag
 
4117
case $reload_flag in
 
4118
"" | " "*) ;;
 
4119
*) reload_flag=" $reload_flag" ;;
 
4120
esac
 
4121
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
4122
case $host_os in
 
4123
  darwin*)
 
4124
    if test "$GCC" = yes; then
 
4125
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
4126
    else
 
4127
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
4128
    fi
 
4129
    ;;
 
4130
esac
 
4131
 
 
4132
{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
 
4133
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
 
4134
if test "${lt_cv_path_NM+set}" = set; then
 
4135
  echo $ECHO_N "(cached) $ECHO_C" >&6
4355
4136
else
4356
4137
  if test -n "$NM"; then
4357
4138
  # Let the user override the test.
4394
4175
    done
4395
4176
    IFS="$lt_save_ifs"
4396
4177
  done
4397
 
  : ${lt_cv_path_NM=no}
4398
 
fi
4399
 
fi
4400
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4401
 
$as_echo "$lt_cv_path_NM" >&6; }
4402
 
if test "$lt_cv_path_NM" != "no"; then
4403
 
  NM="$lt_cv_path_NM"
4404
 
else
4405
 
  # Didn't find any BSD compatible name lister, look for dumpbin.
4406
 
  if test -n "$ac_tool_prefix"; then
4407
 
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4408
 
  do
4409
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4410
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4411
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4412
 
$as_echo_n "checking for $ac_word... " >&6; }
4413
 
if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4414
 
  $as_echo_n "(cached) " >&6
4415
 
else
4416
 
  if test -n "$DUMPBIN"; then
4417
 
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4418
 
else
4419
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4420
 
for as_dir in $PATH
4421
 
do
4422
 
  IFS=$as_save_IFS
4423
 
  test -z "$as_dir" && as_dir=.
4424
 
    for ac_exec_ext in '' $ac_executable_extensions; do
4425
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4426
 
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4427
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4428
 
    break 2
4429
 
  fi
4430
 
done
4431
 
  done
4432
 
IFS=$as_save_IFS
4433
 
 
4434
 
fi
4435
 
fi
4436
 
DUMPBIN=$ac_cv_prog_DUMPBIN
4437
 
if test -n "$DUMPBIN"; then
4438
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4439
 
$as_echo "$DUMPBIN" >&6; }
4440
 
else
4441
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4442
 
$as_echo "no" >&6; }
4443
 
fi
4444
 
 
4445
 
 
4446
 
    test -n "$DUMPBIN" && break
4447
 
  done
4448
 
fi
4449
 
if test -z "$DUMPBIN"; then
4450
 
  ac_ct_DUMPBIN=$DUMPBIN
4451
 
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4452
 
do
4453
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4454
 
set dummy $ac_prog; ac_word=$2
4455
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4456
 
$as_echo_n "checking for $ac_word... " >&6; }
4457
 
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4458
 
  $as_echo_n "(cached) " >&6
4459
 
else
4460
 
  if test -n "$ac_ct_DUMPBIN"; then
4461
 
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4462
 
else
4463
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4464
 
for as_dir in $PATH
4465
 
do
4466
 
  IFS=$as_save_IFS
4467
 
  test -z "$as_dir" && as_dir=.
4468
 
    for ac_exec_ext in '' $ac_executable_extensions; do
4469
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4470
 
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4471
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4472
 
    break 2
4473
 
  fi
4474
 
done
4475
 
  done
4476
 
IFS=$as_save_IFS
4477
 
 
4478
 
fi
4479
 
fi
4480
 
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4481
 
if test -n "$ac_ct_DUMPBIN"; then
4482
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4483
 
$as_echo "$ac_ct_DUMPBIN" >&6; }
4484
 
else
4485
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4486
 
$as_echo "no" >&6; }
4487
 
fi
4488
 
 
4489
 
 
4490
 
  test -n "$ac_ct_DUMPBIN" && break
4491
 
done
4492
 
 
4493
 
  if test "x$ac_ct_DUMPBIN" = x; then
4494
 
    DUMPBIN=":"
4495
 
  else
4496
 
    case $cross_compiling:$ac_tool_warned in
4497
 
yes:)
4498
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4499
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4500
 
ac_tool_warned=yes ;;
4501
 
esac
4502
 
    DUMPBIN=$ac_ct_DUMPBIN
4503
 
  fi
4504
 
fi
4505
 
 
4506
 
 
4507
 
  if test "$DUMPBIN" != ":"; then
4508
 
    NM="$DUMPBIN"
4509
 
  fi
4510
 
fi
4511
 
test -z "$NM" && NM=nm
4512
 
 
4513
 
 
4514
 
 
4515
 
 
4516
 
 
4517
 
 
4518
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4519
 
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4520
 
if test "${lt_cv_nm_interface+set}" = set; then :
4521
 
  $as_echo_n "(cached) " >&6
4522
 
else
4523
 
  lt_cv_nm_interface="BSD nm"
4524
 
  echo "int some_variable = 0;" > conftest.$ac_ext
4525
 
  (eval echo "\"\$as_me:4525: $ac_compile\"" >&5)
4526
 
  (eval "$ac_compile" 2>conftest.err)
4527
 
  cat conftest.err >&5
4528
 
  (eval echo "\"\$as_me:4528: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4529
 
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4530
 
  cat conftest.err >&5
4531
 
  (eval echo "\"\$as_me:4531: output\"" >&5)
4532
 
  cat conftest.out >&5
4533
 
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4534
 
    lt_cv_nm_interface="MS dumpbin"
4535
 
  fi
4536
 
  rm -f conftest*
4537
 
fi
4538
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4539
 
$as_echo "$lt_cv_nm_interface" >&6; }
4540
 
 
4541
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4542
 
$as_echo_n "checking whether ln -s works... " >&6; }
 
4178
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
4179
fi
 
4180
fi
 
4181
{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
 
4182
echo "${ECHO_T}$lt_cv_path_NM" >&6; }
 
4183
NM="$lt_cv_path_NM"
 
4184
 
 
4185
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
4186
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4543
4187
LN_S=$as_ln_s
4544
4188
if test "$LN_S" = "ln -s"; then
4545
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4546
 
$as_echo "yes" >&6; }
4547
 
else
4548
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4549
 
$as_echo "no, using $LN_S" >&6; }
4550
 
fi
4551
 
 
4552
 
# find the maximum length of command line arguments
4553
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4554
 
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4555
 
if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4556
 
  $as_echo_n "(cached) " >&6
4557
 
else
4558
 
    i=0
4559
 
  teststring="ABCD"
4560
 
 
4561
 
  case $build_os in
4562
 
  msdosdjgpp*)
4563
 
    # On DJGPP, this test can blow up pretty badly due to problems in libc
4564
 
    # (any single argument exceeding 2000 bytes causes a buffer overrun
4565
 
    # during glob expansion).  Even if it were fixed, the result of this
4566
 
    # check would be larger than it should be.
4567
 
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4568
 
    ;;
4569
 
 
4570
 
  gnu*)
4571
 
    # Under GNU Hurd, this test is not required because there is
4572
 
    # no limit to the length of command line arguments.
4573
 
    # Libtool will interpret -1 as no limit whatsoever
4574
 
    lt_cv_sys_max_cmd_len=-1;
4575
 
    ;;
4576
 
 
4577
 
  cygwin* | mingw* | cegcc*)
4578
 
    # On Win9x/ME, this test blows up -- it succeeds, but takes
4579
 
    # about 5 minutes as the teststring grows exponentially.
4580
 
    # Worse, since 9x/ME are not pre-emptively multitasking,
4581
 
    # you end up with a "frozen" computer, even though with patience
4582
 
    # the test eventually succeeds (with a max line length of 256k).
4583
 
    # Instead, let's just punt: use the minimum linelength reported by
4584
 
    # all of the supported platforms: 8192 (on NT/2K/XP).
4585
 
    lt_cv_sys_max_cmd_len=8192;
4586
 
    ;;
4587
 
 
4588
 
  amigaos*)
4589
 
    # On AmigaOS with pdksh, this test takes hours, literally.
4590
 
    # So we just punt and use a minimum line length of 8192.
4591
 
    lt_cv_sys_max_cmd_len=8192;
4592
 
    ;;
4593
 
 
4594
 
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4595
 
    # This has been around since 386BSD, at least.  Likely further.
4596
 
    if test -x /sbin/sysctl; then
4597
 
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4598
 
    elif test -x /usr/sbin/sysctl; then
4599
 
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4600
 
    else
4601
 
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4602
 
    fi
4603
 
    # And add a safety zone
4604
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4605
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4606
 
    ;;
4607
 
 
4608
 
  interix*)
4609
 
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4610
 
    lt_cv_sys_max_cmd_len=196608
4611
 
    ;;
4612
 
 
4613
 
  osf*)
4614
 
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4615
 
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4616
 
    # nice to cause kernel panics so lets avoid the loop below.
4617
 
    # First set a reasonable default.
4618
 
    lt_cv_sys_max_cmd_len=16384
4619
 
    #
4620
 
    if test -x /sbin/sysconfig; then
4621
 
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4622
 
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4623
 
      esac
4624
 
    fi
4625
 
    ;;
4626
 
  sco3.2v5*)
4627
 
    lt_cv_sys_max_cmd_len=102400
4628
 
    ;;
4629
 
  sysv5* | sco5v6* | sysv4.2uw2*)
4630
 
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4631
 
    if test -n "$kargmax"; then
4632
 
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4633
 
    else
4634
 
      lt_cv_sys_max_cmd_len=32768
4635
 
    fi
4636
 
    ;;
4637
 
  *)
4638
 
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4639
 
    if test -n "$lt_cv_sys_max_cmd_len"; then
4640
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4641
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4642
 
    else
4643
 
      # Make teststring a little bigger before we do anything with it.
4644
 
      # a 1K string should be a reasonable start.
4645
 
      for i in 1 2 3 4 5 6 7 8 ; do
4646
 
        teststring=$teststring$teststring
4647
 
      done
4648
 
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4649
 
      # If test is not a shell built-in, we'll probably end up computing a
4650
 
      # maximum length that is only half of the actual maximum length, but
4651
 
      # we can't tell.
4652
 
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4653
 
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4654
 
              test $i != 17 # 1/2 MB should be enough
4655
 
      do
4656
 
        i=`expr $i + 1`
4657
 
        teststring=$teststring$teststring
4658
 
      done
4659
 
      # Only check the string length outside the loop.
4660
 
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4661
 
      teststring=
4662
 
      # Add a significant safety factor because C++ compilers can tack on
4663
 
      # massive amounts of additional arguments before passing them to the
4664
 
      # linker.  It appears as though 1/2 is a usable value.
4665
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4666
 
    fi
4667
 
    ;;
4668
 
  esac
4669
 
 
4670
 
fi
4671
 
 
4672
 
if test -n $lt_cv_sys_max_cmd_len ; then
4673
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4674
 
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4675
 
else
4676
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4677
 
$as_echo "none" >&6; }
4678
 
fi
4679
 
max_cmd_len=$lt_cv_sys_max_cmd_len
4680
 
 
4681
 
 
4682
 
 
4683
 
 
4684
 
 
4685
 
 
4686
 
: ${CP="cp -f"}
4687
 
: ${MV="mv -f"}
4688
 
: ${RM="rm -f"}
4689
 
 
4690
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4691
 
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4692
 
# Try some XSI features
4693
 
xsi_shell=no
4694
 
( _lt_dummy="a/b/c"
4695
 
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4696
 
      = c,a/b,, \
4697
 
    && eval 'test $(( 1 + 1 )) -eq 2 \
4698
 
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4699
 
  && xsi_shell=yes
4700
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4701
 
$as_echo "$xsi_shell" >&6; }
4702
 
 
4703
 
 
4704
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4705
 
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4706
 
lt_shell_append=no
4707
 
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4708
 
    >/dev/null 2>&1 \
4709
 
  && lt_shell_append=yes
4710
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4711
 
$as_echo "$lt_shell_append" >&6; }
4712
 
 
4713
 
 
4714
 
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4715
 
  lt_unset=unset
4716
 
else
4717
 
  lt_unset=false
4718
 
fi
4719
 
 
4720
 
 
4721
 
 
4722
 
 
4723
 
 
4724
 
# test EBCDIC or ASCII
4725
 
case `echo X|tr X '\101'` in
4726
 
 A) # ASCII based system
4727
 
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4728
 
  lt_SP2NL='tr \040 \012'
4729
 
  lt_NL2SP='tr \015\012 \040\040'
4730
 
  ;;
4731
 
 *) # EBCDIC based system
4732
 
  lt_SP2NL='tr \100 \n'
4733
 
  lt_NL2SP='tr \r\n \100\100'
4734
 
  ;;
4735
 
esac
4736
 
 
4737
 
 
4738
 
 
4739
 
 
4740
 
 
4741
 
 
4742
 
 
4743
 
 
4744
 
 
4745
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4746
 
$as_echo_n "checking for $LD option to reload object files... " >&6; }
4747
 
if test "${lt_cv_ld_reload_flag+set}" = set; then :
4748
 
  $as_echo_n "(cached) " >&6
4749
 
else
4750
 
  lt_cv_ld_reload_flag='-r'
4751
 
fi
4752
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4753
 
$as_echo "$lt_cv_ld_reload_flag" >&6; }
4754
 
reload_flag=$lt_cv_ld_reload_flag
4755
 
case $reload_flag in
4756
 
"" | " "*) ;;
4757
 
*) reload_flag=" $reload_flag" ;;
4758
 
esac
4759
 
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4760
 
case $host_os in
4761
 
  darwin*)
4762
 
    if test "$GCC" = yes; then
4763
 
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4764
 
    else
4765
 
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4766
 
    fi
4767
 
    ;;
4768
 
esac
4769
 
 
4770
 
 
4771
 
 
4772
 
 
4773
 
 
4774
 
 
4775
 
 
4776
 
 
4777
 
 
4778
 
if test -n "$ac_tool_prefix"; then
4779
 
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4780
 
set dummy ${ac_tool_prefix}objdump; ac_word=$2
4781
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4782
 
$as_echo_n "checking for $ac_word... " >&6; }
4783
 
if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4784
 
  $as_echo_n "(cached) " >&6
4785
 
else
4786
 
  if test -n "$OBJDUMP"; then
4787
 
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4788
 
else
4789
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4790
 
for as_dir in $PATH
4791
 
do
4792
 
  IFS=$as_save_IFS
4793
 
  test -z "$as_dir" && as_dir=.
4794
 
    for ac_exec_ext in '' $ac_executable_extensions; do
4795
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4796
 
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4797
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4798
 
    break 2
4799
 
  fi
4800
 
done
4801
 
  done
4802
 
IFS=$as_save_IFS
4803
 
 
4804
 
fi
4805
 
fi
4806
 
OBJDUMP=$ac_cv_prog_OBJDUMP
4807
 
if test -n "$OBJDUMP"; then
4808
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4809
 
$as_echo "$OBJDUMP" >&6; }
4810
 
else
4811
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4812
 
$as_echo "no" >&6; }
4813
 
fi
4814
 
 
4815
 
 
4816
 
fi
4817
 
if test -z "$ac_cv_prog_OBJDUMP"; then
4818
 
  ac_ct_OBJDUMP=$OBJDUMP
4819
 
  # Extract the first word of "objdump", so it can be a program name with args.
4820
 
set dummy objdump; ac_word=$2
4821
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4822
 
$as_echo_n "checking for $ac_word... " >&6; }
4823
 
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4824
 
  $as_echo_n "(cached) " >&6
4825
 
else
4826
 
  if test -n "$ac_ct_OBJDUMP"; then
4827
 
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4828
 
else
4829
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4830
 
for as_dir in $PATH
4831
 
do
4832
 
  IFS=$as_save_IFS
4833
 
  test -z "$as_dir" && as_dir=.
4834
 
    for ac_exec_ext in '' $ac_executable_extensions; do
4835
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4836
 
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4837
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4838
 
    break 2
4839
 
  fi
4840
 
done
4841
 
  done
4842
 
IFS=$as_save_IFS
4843
 
 
4844
 
fi
4845
 
fi
4846
 
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4847
 
if test -n "$ac_ct_OBJDUMP"; then
4848
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4849
 
$as_echo "$ac_ct_OBJDUMP" >&6; }
4850
 
else
4851
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4852
 
$as_echo "no" >&6; }
4853
 
fi
4854
 
 
4855
 
  if test "x$ac_ct_OBJDUMP" = x; then
4856
 
    OBJDUMP="false"
4857
 
  else
4858
 
    case $cross_compiling:$ac_tool_warned in
4859
 
yes:)
4860
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4861
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4862
 
ac_tool_warned=yes ;;
4863
 
esac
4864
 
    OBJDUMP=$ac_ct_OBJDUMP
4865
 
  fi
4866
 
else
4867
 
  OBJDUMP="$ac_cv_prog_OBJDUMP"
4868
 
fi
4869
 
 
4870
 
test -z "$OBJDUMP" && OBJDUMP=objdump
4871
 
 
4872
 
 
4873
 
 
4874
 
 
4875
 
 
4876
 
 
4877
 
 
4878
 
 
4879
 
 
4880
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4881
 
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4882
 
if test "${lt_cv_deplibs_check_method+set}" = set; then :
4883
 
  $as_echo_n "(cached) " >&6
 
4189
  { echo "$as_me:$LINENO: result: yes" >&5
 
4190
echo "${ECHO_T}yes" >&6; }
 
4191
else
 
4192
  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
4193
echo "${ECHO_T}no, using $LN_S" >&6; }
 
4194
fi
 
4195
 
 
4196
{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
 
4197
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
 
4198
if test "${lt_cv_deplibs_check_method+set}" = set; then
 
4199
  echo $ECHO_N "(cached) $ECHO_C" >&6
4884
4200
else
4885
4201
  lt_cv_file_magic_cmd='$MAGIC_CMD'
4886
4202
lt_cv_file_magic_test_file=
4897
4213
# whether `pass_all' will *always* work, you probably want this one.
4898
4214
 
4899
4215
case $host_os in
4900
 
aix[4-9]*)
 
4216
aix4* | aix5*)
4901
4217
  lt_cv_deplibs_check_method=pass_all
4902
4218
  ;;
4903
4219
 
4919
4235
 
4920
4236
mingw* | pw32*)
4921
4237
  # Base MSYS/MinGW do not provide the 'file' command needed by
4922
 
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4923
 
  # unless we find 'file', for example because we are cross-compiling.
4924
 
  if ( file / ) >/dev/null 2>&1; then
4925
 
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4926
 
    lt_cv_file_magic_cmd='func_win32_libid'
4927
 
  else
4928
 
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4929
 
    lt_cv_file_magic_cmd='$OBJDUMP -f'
4930
 
  fi
4931
 
  ;;
4932
 
 
4933
 
cegcc)
4934
 
  # use the weaker test based on 'objdump'. See mingw*.
4935
 
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
 
4238
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
 
4239
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4936
4240
  lt_cv_file_magic_cmd='$OBJDUMP -f'
4937
4241
  ;;
4938
4242
 
4941
4245
  ;;
4942
4246
 
4943
4247
freebsd* | dragonfly*)
4944
 
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
4248
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4945
4249
    case $host_cpu in
4946
4250
    i*86 )
4947
4251
      # Not sure whether the presence of OpenBSD here was a mistake.
4978
4282
  esac
4979
4283
  ;;
4980
4284
 
4981
 
interix[3-9]*)
 
4285
interix3*)
4982
4286
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4983
4287
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4984
4288
  ;;
4994
4298
  ;;
4995
4299
 
4996
4300
# This must be Linux ELF.
4997
 
linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
4301
linux* | k*bsd*-gnu)
4998
4302
  lt_cv_deplibs_check_method=pass_all
4999
4303
  ;;
5000
4304
 
5001
4305
netbsd* | netbsdelf*-gnu)
5002
 
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
4306
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5003
4307
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5004
4308
  else
5005
4309
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5012
4316
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5013
4317
  ;;
5014
4318
 
5015
 
*nto* | *qnx*)
5016
 
  lt_cv_deplibs_check_method=pass_all
 
4319
nto-qnx*)
 
4320
  lt_cv_deplibs_check_method=unknown
5017
4321
  ;;
5018
4322
 
5019
4323
openbsd*)
5020
 
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
4324
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5021
4325
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5022
4326
  else
5023
4327
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5028
4332
  lt_cv_deplibs_check_method=pass_all
5029
4333
  ;;
5030
4334
 
5031
 
rdos*)
5032
 
  lt_cv_deplibs_check_method=pass_all
5033
 
  ;;
5034
 
 
5035
4335
solaris*)
5036
4336
  lt_cv_deplibs_check_method=pass_all
5037
4337
  ;;
5038
4338
 
5039
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5040
 
  lt_cv_deplibs_check_method=pass_all
5041
 
  ;;
5042
 
 
5043
4339
sysv4 | sysv4.3*)
5044
4340
  case $host_vendor in
5045
4341
  motorola)
5067
4363
  esac
5068
4364
  ;;
5069
4365
 
5070
 
tpf*)
 
4366
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5071
4367
  lt_cv_deplibs_check_method=pass_all
5072
4368
  ;;
5073
4369
esac
5074
4370
 
5075
4371
fi
5076
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5077
 
$as_echo "$lt_cv_deplibs_check_method" >&6; }
 
4372
{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
 
4373
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5078
4374
file_magic_cmd=$lt_cv_file_magic_cmd
5079
4375
deplibs_check_method=$lt_cv_deplibs_check_method
5080
4376
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5082
4378
 
5083
4379
 
5084
4380
 
5085
 
 
5086
 
 
5087
 
 
5088
 
 
5089
 
 
5090
 
 
5091
 
 
5092
 
 
5093
 
if test -n "$ac_tool_prefix"; then
5094
 
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5095
 
set dummy ${ac_tool_prefix}ar; ac_word=$2
5096
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5097
 
$as_echo_n "checking for $ac_word... " >&6; }
5098
 
if test "${ac_cv_prog_AR+set}" = set; then :
5099
 
  $as_echo_n "(cached) " >&6
5100
 
else
5101
 
  if test -n "$AR"; then
5102
 
  ac_cv_prog_AR="$AR" # Let the user override the test.
5103
 
else
5104
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5105
 
for as_dir in $PATH
5106
 
do
5107
 
  IFS=$as_save_IFS
5108
 
  test -z "$as_dir" && as_dir=.
5109
 
    for ac_exec_ext in '' $ac_executable_extensions; do
5110
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5111
 
    ac_cv_prog_AR="${ac_tool_prefix}ar"
5112
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5113
 
    break 2
5114
 
  fi
5115
 
done
5116
 
  done
5117
 
IFS=$as_save_IFS
5118
 
 
5119
 
fi
5120
 
fi
5121
 
AR=$ac_cv_prog_AR
5122
 
if test -n "$AR"; then
5123
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5124
 
$as_echo "$AR" >&6; }
5125
 
else
5126
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5127
 
$as_echo "no" >&6; }
5128
 
fi
5129
 
 
5130
 
 
5131
 
fi
5132
 
if test -z "$ac_cv_prog_AR"; then
5133
 
  ac_ct_AR=$AR
5134
 
  # Extract the first word of "ar", so it can be a program name with args.
5135
 
set dummy ar; ac_word=$2
5136
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5137
 
$as_echo_n "checking for $ac_word... " >&6; }
5138
 
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5139
 
  $as_echo_n "(cached) " >&6
5140
 
else
5141
 
  if test -n "$ac_ct_AR"; then
5142
 
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5143
 
else
5144
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5145
 
for as_dir in $PATH
5146
 
do
5147
 
  IFS=$as_save_IFS
5148
 
  test -z "$as_dir" && as_dir=.
5149
 
    for ac_exec_ext in '' $ac_executable_extensions; do
5150
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5151
 
    ac_cv_prog_ac_ct_AR="ar"
5152
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5153
 
    break 2
5154
 
  fi
5155
 
done
5156
 
  done
5157
 
IFS=$as_save_IFS
5158
 
 
5159
 
fi
5160
 
fi
5161
 
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5162
 
if test -n "$ac_ct_AR"; then
5163
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5164
 
$as_echo "$ac_ct_AR" >&6; }
5165
 
else
5166
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5167
 
$as_echo "no" >&6; }
5168
 
fi
5169
 
 
5170
 
  if test "x$ac_ct_AR" = x; then
5171
 
    AR="false"
5172
 
  else
5173
 
    case $cross_compiling:$ac_tool_warned in
5174
 
yes:)
5175
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5176
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5177
 
ac_tool_warned=yes ;;
5178
 
esac
5179
 
    AR=$ac_ct_AR
5180
 
  fi
5181
 
else
5182
 
  AR="$ac_cv_prog_AR"
5183
 
fi
5184
 
 
5185
 
test -z "$AR" && AR=ar
5186
 
test -z "$AR_FLAGS" && AR_FLAGS=cru
5187
 
 
5188
 
 
5189
 
 
5190
 
 
5191
 
 
5192
 
 
5193
 
 
5194
 
 
5195
 
 
5196
 
 
5197
 
 
5198
 
if test -n "$ac_tool_prefix"; then
5199
 
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5200
 
set dummy ${ac_tool_prefix}strip; ac_word=$2
5201
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5202
 
$as_echo_n "checking for $ac_word... " >&6; }
5203
 
if test "${ac_cv_prog_STRIP+set}" = set; then :
5204
 
  $as_echo_n "(cached) " >&6
5205
 
else
5206
 
  if test -n "$STRIP"; then
5207
 
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5208
 
else
5209
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5210
 
for as_dir in $PATH
5211
 
do
5212
 
  IFS=$as_save_IFS
5213
 
  test -z "$as_dir" && as_dir=.
5214
 
    for ac_exec_ext in '' $ac_executable_extensions; do
5215
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5216
 
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5217
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5218
 
    break 2
5219
 
  fi
5220
 
done
5221
 
  done
5222
 
IFS=$as_save_IFS
5223
 
 
5224
 
fi
5225
 
fi
5226
 
STRIP=$ac_cv_prog_STRIP
5227
 
if test -n "$STRIP"; then
5228
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5229
 
$as_echo "$STRIP" >&6; }
5230
 
else
5231
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5232
 
$as_echo "no" >&6; }
5233
 
fi
5234
 
 
5235
 
 
5236
 
fi
5237
 
if test -z "$ac_cv_prog_STRIP"; then
5238
 
  ac_ct_STRIP=$STRIP
5239
 
  # Extract the first word of "strip", so it can be a program name with args.
5240
 
set dummy strip; ac_word=$2
5241
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5242
 
$as_echo_n "checking for $ac_word... " >&6; }
5243
 
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5244
 
  $as_echo_n "(cached) " >&6
5245
 
else
5246
 
  if test -n "$ac_ct_STRIP"; then
5247
 
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5248
 
else
5249
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5250
 
for as_dir in $PATH
5251
 
do
5252
 
  IFS=$as_save_IFS
5253
 
  test -z "$as_dir" && as_dir=.
5254
 
    for ac_exec_ext in '' $ac_executable_extensions; do
5255
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5256
 
    ac_cv_prog_ac_ct_STRIP="strip"
5257
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5258
 
    break 2
5259
 
  fi
5260
 
done
5261
 
  done
5262
 
IFS=$as_save_IFS
5263
 
 
5264
 
fi
5265
 
fi
5266
 
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5267
 
if test -n "$ac_ct_STRIP"; then
5268
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5269
 
$as_echo "$ac_ct_STRIP" >&6; }
5270
 
else
5271
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5272
 
$as_echo "no" >&6; }
5273
 
fi
5274
 
 
5275
 
  if test "x$ac_ct_STRIP" = x; then
5276
 
    STRIP=":"
5277
 
  else
5278
 
    case $cross_compiling:$ac_tool_warned in
5279
 
yes:)
5280
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5281
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5282
 
ac_tool_warned=yes ;;
5283
 
esac
5284
 
    STRIP=$ac_ct_STRIP
5285
 
  fi
5286
 
else
5287
 
  STRIP="$ac_cv_prog_STRIP"
5288
 
fi
5289
 
 
5290
 
test -z "$STRIP" && STRIP=:
5291
 
 
5292
 
 
5293
 
 
5294
 
 
5295
 
 
5296
 
 
5297
 
if test -n "$ac_tool_prefix"; then
5298
 
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5299
 
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5300
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5301
 
$as_echo_n "checking for $ac_word... " >&6; }
5302
 
if test "${ac_cv_prog_RANLIB+set}" = set; then :
5303
 
  $as_echo_n "(cached) " >&6
5304
 
else
5305
 
  if test -n "$RANLIB"; then
5306
 
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5307
 
else
5308
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5309
 
for as_dir in $PATH
5310
 
do
5311
 
  IFS=$as_save_IFS
5312
 
  test -z "$as_dir" && as_dir=.
5313
 
    for ac_exec_ext in '' $ac_executable_extensions; do
5314
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5315
 
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5316
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5317
 
    break 2
5318
 
  fi
5319
 
done
5320
 
  done
5321
 
IFS=$as_save_IFS
5322
 
 
5323
 
fi
5324
 
fi
5325
 
RANLIB=$ac_cv_prog_RANLIB
5326
 
if test -n "$RANLIB"; then
5327
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5328
 
$as_echo "$RANLIB" >&6; }
5329
 
else
5330
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5331
 
$as_echo "no" >&6; }
5332
 
fi
5333
 
 
5334
 
 
5335
 
fi
5336
 
if test -z "$ac_cv_prog_RANLIB"; then
5337
 
  ac_ct_RANLIB=$RANLIB
5338
 
  # Extract the first word of "ranlib", so it can be a program name with args.
5339
 
set dummy ranlib; ac_word=$2
5340
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5341
 
$as_echo_n "checking for $ac_word... " >&6; }
5342
 
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5343
 
  $as_echo_n "(cached) " >&6
5344
 
else
5345
 
  if test -n "$ac_ct_RANLIB"; then
5346
 
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5347
 
else
5348
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5349
 
for as_dir in $PATH
5350
 
do
5351
 
  IFS=$as_save_IFS
5352
 
  test -z "$as_dir" && as_dir=.
5353
 
    for ac_exec_ext in '' $ac_executable_extensions; do
5354
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5355
 
    ac_cv_prog_ac_ct_RANLIB="ranlib"
5356
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5357
 
    break 2
5358
 
  fi
5359
 
done
5360
 
  done
5361
 
IFS=$as_save_IFS
5362
 
 
5363
 
fi
5364
 
fi
5365
 
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5366
 
if test -n "$ac_ct_RANLIB"; then
5367
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5368
 
$as_echo "$ac_ct_RANLIB" >&6; }
5369
 
else
5370
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5371
 
$as_echo "no" >&6; }
5372
 
fi
5373
 
 
5374
 
  if test "x$ac_ct_RANLIB" = x; then
5375
 
    RANLIB=":"
5376
 
  else
5377
 
    case $cross_compiling:$ac_tool_warned in
5378
 
yes:)
5379
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5380
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5381
 
ac_tool_warned=yes ;;
5382
 
esac
5383
 
    RANLIB=$ac_ct_RANLIB
5384
 
  fi
5385
 
else
5386
 
  RANLIB="$ac_cv_prog_RANLIB"
5387
 
fi
5388
 
 
5389
 
test -z "$RANLIB" && RANLIB=:
5390
 
 
5391
 
 
5392
 
 
5393
 
 
5394
 
 
5395
 
 
5396
 
# Determine commands to create old-style static archives.
5397
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5398
 
old_postinstall_cmds='chmod 644 $oldlib'
5399
 
old_postuninstall_cmds=
5400
 
 
5401
 
if test -n "$RANLIB"; then
5402
 
  case $host_os in
5403
 
  openbsd*)
5404
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5405
 
    ;;
5406
 
  *)
5407
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5408
 
    ;;
5409
 
  esac
5410
 
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5411
 
fi
5412
 
 
5413
 
 
5414
 
 
5415
 
 
5416
 
 
5417
 
 
5418
 
 
5419
 
 
5420
 
 
5421
 
 
5422
 
 
5423
 
 
5424
 
 
5425
 
 
5426
 
 
5427
 
 
5428
 
 
5429
 
 
5430
 
 
5431
 
 
5432
 
 
5433
 
 
5434
 
 
5435
 
 
5436
 
 
5437
 
 
5438
 
 
5439
 
 
5440
 
 
5441
 
 
5442
 
 
5443
 
 
5444
 
 
5445
 
 
5446
4381
# If no C compiler was specified, use CC.
5447
4382
LTCC=${LTCC-"$CC"}
5448
4383
 
5453
4388
compiler=$CC
5454
4389
 
5455
4390
 
 
4391
# Check whether --enable-libtool-lock was given.
 
4392
if test "${enable_libtool_lock+set}" = set; then
 
4393
  enableval=$enable_libtool_lock;
 
4394
fi
 
4395
 
 
4396
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
4397
 
 
4398
# Some flags need to be propagated to the compiler or linker for good
 
4399
# libtool support.
 
4400
case $host in
 
4401
ia64-*-hpux*)
 
4402
  # Find out which ABI we are using.
 
4403
  echo 'int i;' > conftest.$ac_ext
 
4404
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4405
  (eval $ac_compile) 2>&5
 
4406
  ac_status=$?
 
4407
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4408
  (exit $ac_status); }; then
 
4409
    case `/usr/bin/file conftest.$ac_objext` in
 
4410
    *ELF-32*)
 
4411
      HPUX_IA64_MODE="32"
 
4412
      ;;
 
4413
    *ELF-64*)
 
4414
      HPUX_IA64_MODE="64"
 
4415
      ;;
 
4416
    esac
 
4417
  fi
 
4418
  rm -rf conftest*
 
4419
  ;;
 
4420
*-*-irix6*)
 
4421
  # Find out which ABI we are using.
 
4422
  echo '#line 4422 "configure"' > conftest.$ac_ext
 
4423
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4424
  (eval $ac_compile) 2>&5
 
4425
  ac_status=$?
 
4426
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4427
  (exit $ac_status); }; then
 
4428
   if test "$lt_cv_prog_gnu_ld" = yes; then
 
4429
    case `/usr/bin/file conftest.$ac_objext` in
 
4430
    *32-bit*)
 
4431
      LD="${LD-ld} -melf32bsmip"
 
4432
      ;;
 
4433
    *N32*)
 
4434
      LD="${LD-ld} -melf32bmipn32"
 
4435
      ;;
 
4436
    *64-bit*)
 
4437
      LD="${LD-ld} -melf64bmip"
 
4438
      ;;
 
4439
    esac
 
4440
   else
 
4441
    case `/usr/bin/file conftest.$ac_objext` in
 
4442
    *32-bit*)
 
4443
      LD="${LD-ld} -32"
 
4444
      ;;
 
4445
    *N32*)
 
4446
      LD="${LD-ld} -n32"
 
4447
      ;;
 
4448
    *64-bit*)
 
4449
      LD="${LD-ld} -64"
 
4450
      ;;
 
4451
    esac
 
4452
   fi
 
4453
  fi
 
4454
  rm -rf conftest*
 
4455
  ;;
 
4456
 
 
4457
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 
4458
  # Find out which ABI we are using.
 
4459
  echo 'int i;' > conftest.$ac_ext
 
4460
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4461
  (eval $ac_compile) 2>&5
 
4462
  ac_status=$?
 
4463
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4464
  (exit $ac_status); }; then
 
4465
    case `/usr/bin/file conftest.o` in
 
4466
    *32-bit*)
 
4467
      case $host in
 
4468
        x86_64-*linux*)
 
4469
          LD="${LD-ld} -m elf_i386"
 
4470
          ;;
 
4471
        ppc64-*linux*|powerpc64-*linux*)
 
4472
          LD="${LD-ld} -m elf32ppclinux"
 
4473
          ;;
 
4474
        s390x-*linux*)
 
4475
          LD="${LD-ld} -m elf_s390"
 
4476
          ;;
 
4477
        sparc64-*linux*)
 
4478
          LD="${LD-ld} -m elf32_sparc"
 
4479
          ;;
 
4480
      esac
 
4481
      ;;
 
4482
    *64-bit*)
 
4483
      case $host in
 
4484
        x86_64-*linux*)
 
4485
          LD="${LD-ld} -m elf_x86_64"
 
4486
          ;;
 
4487
        ppc*-*linux*|powerpc*-*linux*)
 
4488
          LD="${LD-ld} -m elf64ppc"
 
4489
          ;;
 
4490
        s390*-*linux*)
 
4491
          LD="${LD-ld} -m elf64_s390"
 
4492
          ;;
 
4493
        sparc*-*linux*)
 
4494
          LD="${LD-ld} -m elf64_sparc"
 
4495
          ;;
 
4496
      esac
 
4497
      ;;
 
4498
    esac
 
4499
  fi
 
4500
  rm -rf conftest*
 
4501
  ;;
 
4502
 
 
4503
*-*-sco3.2v5*)
 
4504
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
4505
  SAVE_CFLAGS="$CFLAGS"
 
4506
  CFLAGS="$CFLAGS -belf"
 
4507
  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
4508
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
 
4509
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
4510
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4511
else
 
4512
  ac_ext=c
 
4513
ac_cpp='$CPP $CPPFLAGS'
 
4514
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4515
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4516
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4517
 
 
4518
     cat >conftest.$ac_ext <<_ACEOF
 
4519
/* confdefs.h.  */
 
4520
_ACEOF
 
4521
cat confdefs.h >>conftest.$ac_ext
 
4522
cat >>conftest.$ac_ext <<_ACEOF
 
4523
/* end confdefs.h.  */
 
4524
 
 
4525
int
 
4526
main ()
 
4527
{
 
4528
 
 
4529
  ;
 
4530
  return 0;
 
4531
}
 
4532
_ACEOF
 
4533
rm -f conftest.$ac_objext conftest$ac_exeext
 
4534
if { (ac_try="$ac_link"
 
4535
case "(($ac_try" in
 
4536
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4537
  *) ac_try_echo=$ac_try;;
 
4538
esac
 
4539
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4540
  (eval "$ac_link") 2>conftest.er1
 
4541
  ac_status=$?
 
4542
  grep -v '^ *+' conftest.er1 >conftest.err
 
4543
  rm -f conftest.er1
 
4544
  cat conftest.err >&5
 
4545
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4546
  (exit $ac_status); } && {
 
4547
         test -z "$ac_c_werror_flag" ||
 
4548
         test ! -s conftest.err
 
4549
       } && test -s conftest$ac_exeext &&
 
4550
       $as_test_x conftest$ac_exeext; then
 
4551
  lt_cv_cc_needs_belf=yes
 
4552
else
 
4553
  echo "$as_me: failed program was:" >&5
 
4554
sed 's/^/| /' conftest.$ac_ext >&5
 
4555
 
 
4556
        lt_cv_cc_needs_belf=no
 
4557
fi
 
4558
 
 
4559
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
4560
      conftest$ac_exeext conftest.$ac_ext
 
4561
     ac_ext=c
 
4562
ac_cpp='$CPP $CPPFLAGS'
 
4563
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4564
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4565
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4566
 
 
4567
fi
 
4568
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
4569
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
 
4570
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
4571
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
4572
    CFLAGS="$SAVE_CFLAGS"
 
4573
  fi
 
4574
  ;;
 
4575
sparc*-*solaris*)
 
4576
  # Find out which ABI we are using.
 
4577
  echo 'int i;' > conftest.$ac_ext
 
4578
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4579
  (eval $ac_compile) 2>&5
 
4580
  ac_status=$?
 
4581
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4582
  (exit $ac_status); }; then
 
4583
    case `/usr/bin/file conftest.o` in
 
4584
    *64-bit*)
 
4585
      case $lt_cv_prog_gnu_ld in
 
4586
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
4587
      *)    LD="${LD-ld} -64" ;;
 
4588
      esac
 
4589
      ;;
 
4590
    esac
 
4591
  fi
 
4592
  rm -rf conftest*
 
4593
  ;;
 
4594
 
 
4595
 
 
4596
esac
 
4597
 
 
4598
need_locks="$enable_libtool_lock"
 
4599
 
 
4600
 
 
4601
ac_ext=c
 
4602
ac_cpp='$CPP $CPPFLAGS'
 
4603
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4604
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4605
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4606
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
4607
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
 
4608
# On Suns, sometimes $CPP names a directory.
 
4609
if test -n "$CPP" && test -d "$CPP"; then
 
4610
  CPP=
 
4611
fi
 
4612
if test -z "$CPP"; then
 
4613
  if test "${ac_cv_prog_CPP+set}" = set; then
 
4614
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4615
else
 
4616
      # Double quotes because CPP needs to be expanded
 
4617
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
4618
    do
 
4619
      ac_preproc_ok=false
 
4620
for ac_c_preproc_warn_flag in '' yes
 
4621
do
 
4622
  # Use a header file that comes with gcc, so configuring glibc
 
4623
  # with a fresh cross-compiler works.
 
4624
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4625
  # <limits.h> exists even on freestanding compilers.
 
4626
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4627
  # not just through cpp. "Syntax error" is here to catch this case.
 
4628
  cat >conftest.$ac_ext <<_ACEOF
 
4629
/* confdefs.h.  */
 
4630
_ACEOF
 
4631
cat confdefs.h >>conftest.$ac_ext
 
4632
cat >>conftest.$ac_ext <<_ACEOF
 
4633
/* end confdefs.h.  */
 
4634
#ifdef __STDC__
 
4635
# include <limits.h>
 
4636
#else
 
4637
# include <assert.h>
 
4638
#endif
 
4639
                     Syntax error
 
4640
_ACEOF
 
4641
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4642
case "(($ac_try" in
 
4643
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4644
  *) ac_try_echo=$ac_try;;
 
4645
esac
 
4646
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4647
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4648
  ac_status=$?
 
4649
  grep -v '^ *+' conftest.er1 >conftest.err
 
4650
  rm -f conftest.er1
 
4651
  cat conftest.err >&5
 
4652
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4653
  (exit $ac_status); } >/dev/null && {
 
4654
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4655
         test ! -s conftest.err
 
4656
       }; then
 
4657
  :
 
4658
else
 
4659
  echo "$as_me: failed program was:" >&5
 
4660
sed 's/^/| /' conftest.$ac_ext >&5
 
4661
 
 
4662
  # Broken: fails on valid input.
 
4663
continue
 
4664
fi
 
4665
 
 
4666
rm -f conftest.err conftest.$ac_ext
 
4667
 
 
4668
  # OK, works on sane cases.  Now check whether nonexistent headers
 
4669
  # can be detected and how.
 
4670
  cat >conftest.$ac_ext <<_ACEOF
 
4671
/* confdefs.h.  */
 
4672
_ACEOF
 
4673
cat confdefs.h >>conftest.$ac_ext
 
4674
cat >>conftest.$ac_ext <<_ACEOF
 
4675
/* end confdefs.h.  */
 
4676
#include <ac_nonexistent.h>
 
4677
_ACEOF
 
4678
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4679
case "(($ac_try" in
 
4680
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4681
  *) ac_try_echo=$ac_try;;
 
4682
esac
 
4683
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4684
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4685
  ac_status=$?
 
4686
  grep -v '^ *+' conftest.er1 >conftest.err
 
4687
  rm -f conftest.er1
 
4688
  cat conftest.err >&5
 
4689
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4690
  (exit $ac_status); } >/dev/null && {
 
4691
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4692
         test ! -s conftest.err
 
4693
       }; then
 
4694
  # Broken: success on invalid input.
 
4695
continue
 
4696
else
 
4697
  echo "$as_me: failed program was:" >&5
 
4698
sed 's/^/| /' conftest.$ac_ext >&5
 
4699
 
 
4700
  # Passes both tests.
 
4701
ac_preproc_ok=:
 
4702
break
 
4703
fi
 
4704
 
 
4705
rm -f conftest.err conftest.$ac_ext
 
4706
 
 
4707
done
 
4708
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4709
rm -f conftest.err conftest.$ac_ext
 
4710
if $ac_preproc_ok; then
 
4711
  break
 
4712
fi
 
4713
 
 
4714
    done
 
4715
    ac_cv_prog_CPP=$CPP
 
4716
 
 
4717
fi
 
4718
  CPP=$ac_cv_prog_CPP
 
4719
else
 
4720
  ac_cv_prog_CPP=$CPP
 
4721
fi
 
4722
{ echo "$as_me:$LINENO: result: $CPP" >&5
 
4723
echo "${ECHO_T}$CPP" >&6; }
 
4724
ac_preproc_ok=false
 
4725
for ac_c_preproc_warn_flag in '' yes
 
4726
do
 
4727
  # Use a header file that comes with gcc, so configuring glibc
 
4728
  # with a fresh cross-compiler works.
 
4729
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4730
  # <limits.h> exists even on freestanding compilers.
 
4731
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4732
  # not just through cpp. "Syntax error" is here to catch this case.
 
4733
  cat >conftest.$ac_ext <<_ACEOF
 
4734
/* confdefs.h.  */
 
4735
_ACEOF
 
4736
cat confdefs.h >>conftest.$ac_ext
 
4737
cat >>conftest.$ac_ext <<_ACEOF
 
4738
/* end confdefs.h.  */
 
4739
#ifdef __STDC__
 
4740
# include <limits.h>
 
4741
#else
 
4742
# include <assert.h>
 
4743
#endif
 
4744
                     Syntax error
 
4745
_ACEOF
 
4746
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4747
case "(($ac_try" in
 
4748
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4749
  *) ac_try_echo=$ac_try;;
 
4750
esac
 
4751
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4752
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4753
  ac_status=$?
 
4754
  grep -v '^ *+' conftest.er1 >conftest.err
 
4755
  rm -f conftest.er1
 
4756
  cat conftest.err >&5
 
4757
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4758
  (exit $ac_status); } >/dev/null && {
 
4759
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4760
         test ! -s conftest.err
 
4761
       }; then
 
4762
  :
 
4763
else
 
4764
  echo "$as_me: failed program was:" >&5
 
4765
sed 's/^/| /' conftest.$ac_ext >&5
 
4766
 
 
4767
  # Broken: fails on valid input.
 
4768
continue
 
4769
fi
 
4770
 
 
4771
rm -f conftest.err conftest.$ac_ext
 
4772
 
 
4773
  # OK, works on sane cases.  Now check whether nonexistent headers
 
4774
  # can be detected and how.
 
4775
  cat >conftest.$ac_ext <<_ACEOF
 
4776
/* confdefs.h.  */
 
4777
_ACEOF
 
4778
cat confdefs.h >>conftest.$ac_ext
 
4779
cat >>conftest.$ac_ext <<_ACEOF
 
4780
/* end confdefs.h.  */
 
4781
#include <ac_nonexistent.h>
 
4782
_ACEOF
 
4783
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4784
case "(($ac_try" in
 
4785
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4786
  *) ac_try_echo=$ac_try;;
 
4787
esac
 
4788
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4789
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4790
  ac_status=$?
 
4791
  grep -v '^ *+' conftest.er1 >conftest.err
 
4792
  rm -f conftest.er1
 
4793
  cat conftest.err >&5
 
4794
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4795
  (exit $ac_status); } >/dev/null && {
 
4796
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4797
         test ! -s conftest.err
 
4798
       }; then
 
4799
  # Broken: success on invalid input.
 
4800
continue
 
4801
else
 
4802
  echo "$as_me: failed program was:" >&5
 
4803
sed 's/^/| /' conftest.$ac_ext >&5
 
4804
 
 
4805
  # Passes both tests.
 
4806
ac_preproc_ok=:
 
4807
break
 
4808
fi
 
4809
 
 
4810
rm -f conftest.err conftest.$ac_ext
 
4811
 
 
4812
done
 
4813
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4814
rm -f conftest.err conftest.$ac_ext
 
4815
if $ac_preproc_ok; then
 
4816
  :
 
4817
else
 
4818
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
4819
See \`config.log' for more details." >&5
 
4820
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
4821
See \`config.log' for more details." >&2;}
 
4822
   { (exit 1); exit 1; }; }
 
4823
fi
 
4824
 
 
4825
ac_ext=c
 
4826
ac_cpp='$CPP $CPPFLAGS'
 
4827
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4828
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4829
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4830
 
 
4831
 
 
4832
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
4833
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
 
4834
if test "${ac_cv_header_stdc+set}" = set; then
 
4835
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4836
else
 
4837
  cat >conftest.$ac_ext <<_ACEOF
 
4838
/* confdefs.h.  */
 
4839
_ACEOF
 
4840
cat confdefs.h >>conftest.$ac_ext
 
4841
cat >>conftest.$ac_ext <<_ACEOF
 
4842
/* end confdefs.h.  */
 
4843
#include <stdlib.h>
 
4844
#include <stdarg.h>
 
4845
#include <string.h>
 
4846
#include <float.h>
 
4847
 
 
4848
int
 
4849
main ()
 
4850
{
 
4851
 
 
4852
  ;
 
4853
  return 0;
 
4854
}
 
4855
_ACEOF
 
4856
rm -f conftest.$ac_objext
 
4857
if { (ac_try="$ac_compile"
 
4858
case "(($ac_try" in
 
4859
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4860
  *) ac_try_echo=$ac_try;;
 
4861
esac
 
4862
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4863
  (eval "$ac_compile") 2>conftest.er1
 
4864
  ac_status=$?
 
4865
  grep -v '^ *+' conftest.er1 >conftest.err
 
4866
  rm -f conftest.er1
 
4867
  cat conftest.err >&5
 
4868
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4869
  (exit $ac_status); } && {
 
4870
         test -z "$ac_c_werror_flag" ||
 
4871
         test ! -s conftest.err
 
4872
       } && test -s conftest.$ac_objext; then
 
4873
  ac_cv_header_stdc=yes
 
4874
else
 
4875
  echo "$as_me: failed program was:" >&5
 
4876
sed 's/^/| /' conftest.$ac_ext >&5
 
4877
 
 
4878
        ac_cv_header_stdc=no
 
4879
fi
 
4880
 
 
4881
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4882
 
 
4883
if test $ac_cv_header_stdc = yes; then
 
4884
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
4885
  cat >conftest.$ac_ext <<_ACEOF
 
4886
/* confdefs.h.  */
 
4887
_ACEOF
 
4888
cat confdefs.h >>conftest.$ac_ext
 
4889
cat >>conftest.$ac_ext <<_ACEOF
 
4890
/* end confdefs.h.  */
 
4891
#include <string.h>
 
4892
 
 
4893
_ACEOF
 
4894
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4895
  $EGREP "memchr" >/dev/null 2>&1; then
 
4896
  :
 
4897
else
 
4898
  ac_cv_header_stdc=no
 
4899
fi
 
4900
rm -f conftest*
 
4901
 
 
4902
fi
 
4903
 
 
4904
if test $ac_cv_header_stdc = yes; then
 
4905
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
4906
  cat >conftest.$ac_ext <<_ACEOF
 
4907
/* confdefs.h.  */
 
4908
_ACEOF
 
4909
cat confdefs.h >>conftest.$ac_ext
 
4910
cat >>conftest.$ac_ext <<_ACEOF
 
4911
/* end confdefs.h.  */
 
4912
#include <stdlib.h>
 
4913
 
 
4914
_ACEOF
 
4915
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4916
  $EGREP "free" >/dev/null 2>&1; then
 
4917
  :
 
4918
else
 
4919
  ac_cv_header_stdc=no
 
4920
fi
 
4921
rm -f conftest*
 
4922
 
 
4923
fi
 
4924
 
 
4925
if test $ac_cv_header_stdc = yes; then
 
4926
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
4927
  if test "$cross_compiling" = yes; then
 
4928
  :
 
4929
else
 
4930
  cat >conftest.$ac_ext <<_ACEOF
 
4931
/* confdefs.h.  */
 
4932
_ACEOF
 
4933
cat confdefs.h >>conftest.$ac_ext
 
4934
cat >>conftest.$ac_ext <<_ACEOF
 
4935
/* end confdefs.h.  */
 
4936
#include <ctype.h>
 
4937
#include <stdlib.h>
 
4938
#if ((' ' & 0x0FF) == 0x020)
 
4939
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
4940
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
4941
#else
 
4942
# define ISLOWER(c) \
 
4943
                   (('a' <= (c) && (c) <= 'i') \
 
4944
                     || ('j' <= (c) && (c) <= 'r') \
 
4945
                     || ('s' <= (c) && (c) <= 'z'))
 
4946
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
4947
#endif
 
4948
 
 
4949
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
4950
int
 
4951
main ()
 
4952
{
 
4953
  int i;
 
4954
  for (i = 0; i < 256; i++)
 
4955
    if (XOR (islower (i), ISLOWER (i))
 
4956
        || toupper (i) != TOUPPER (i))
 
4957
      return 2;
 
4958
  return 0;
 
4959
}
 
4960
_ACEOF
 
4961
rm -f conftest$ac_exeext
 
4962
if { (ac_try="$ac_link"
 
4963
case "(($ac_try" in
 
4964
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4965
  *) ac_try_echo=$ac_try;;
 
4966
esac
 
4967
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4968
  (eval "$ac_link") 2>&5
 
4969
  ac_status=$?
 
4970
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4971
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
4972
  { (case "(($ac_try" in
 
4973
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4974
  *) ac_try_echo=$ac_try;;
 
4975
esac
 
4976
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4977
  (eval "$ac_try") 2>&5
 
4978
  ac_status=$?
 
4979
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4980
  (exit $ac_status); }; }; then
 
4981
  :
 
4982
else
 
4983
  echo "$as_me: program exited with status $ac_status" >&5
 
4984
echo "$as_me: failed program was:" >&5
 
4985
sed 's/^/| /' conftest.$ac_ext >&5
 
4986
 
 
4987
( exit $ac_status )
 
4988
ac_cv_header_stdc=no
 
4989
fi
 
4990
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
4991
fi
 
4992
 
 
4993
 
 
4994
fi
 
4995
fi
 
4996
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
4997
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
 
4998
if test $ac_cv_header_stdc = yes; then
 
4999
 
 
5000
cat >>confdefs.h <<\_ACEOF
 
5001
#define STDC_HEADERS 1
 
5002
_ACEOF
 
5003
 
 
5004
fi
 
5005
 
 
5006
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
5007
 
 
5008
 
 
5009
 
 
5010
 
 
5011
 
 
5012
 
 
5013
 
 
5014
 
 
5015
 
 
5016
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
5017
                  inttypes.h stdint.h unistd.h
 
5018
do
 
5019
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5020
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5021
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
5022
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5023
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5024
else
 
5025
  cat >conftest.$ac_ext <<_ACEOF
 
5026
/* confdefs.h.  */
 
5027
_ACEOF
 
5028
cat confdefs.h >>conftest.$ac_ext
 
5029
cat >>conftest.$ac_ext <<_ACEOF
 
5030
/* end confdefs.h.  */
 
5031
$ac_includes_default
 
5032
 
 
5033
#include <$ac_header>
 
5034
_ACEOF
 
5035
rm -f conftest.$ac_objext
 
5036
if { (ac_try="$ac_compile"
 
5037
case "(($ac_try" in
 
5038
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5039
  *) ac_try_echo=$ac_try;;
 
5040
esac
 
5041
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5042
  (eval "$ac_compile") 2>conftest.er1
 
5043
  ac_status=$?
 
5044
  grep -v '^ *+' conftest.er1 >conftest.err
 
5045
  rm -f conftest.er1
 
5046
  cat conftest.err >&5
 
5047
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5048
  (exit $ac_status); } && {
 
5049
         test -z "$ac_c_werror_flag" ||
 
5050
         test ! -s conftest.err
 
5051
       } && test -s conftest.$ac_objext; then
 
5052
  eval "$as_ac_Header=yes"
 
5053
else
 
5054
  echo "$as_me: failed program was:" >&5
 
5055
sed 's/^/| /' conftest.$ac_ext >&5
 
5056
 
 
5057
        eval "$as_ac_Header=no"
 
5058
fi
 
5059
 
 
5060
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5061
fi
 
5062
ac_res=`eval echo '${'$as_ac_Header'}'`
 
5063
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
5064
echo "${ECHO_T}$ac_res" >&6; }
 
5065
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5066
  cat >>confdefs.h <<_ACEOF
 
5067
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5068
_ACEOF
 
5069
 
 
5070
fi
 
5071
 
 
5072
done
 
5073
 
 
5074
 
 
5075
 
 
5076
for ac_header in dlfcn.h
 
5077
do
 
5078
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5079
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5080
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5081
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
5082
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5083
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5084
fi
 
5085
ac_res=`eval echo '${'$as_ac_Header'}'`
 
5086
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
5087
echo "${ECHO_T}$ac_res" >&6; }
 
5088
else
 
5089
  # Is the header compilable?
 
5090
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
5091
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
5092
cat >conftest.$ac_ext <<_ACEOF
 
5093
/* confdefs.h.  */
 
5094
_ACEOF
 
5095
cat confdefs.h >>conftest.$ac_ext
 
5096
cat >>conftest.$ac_ext <<_ACEOF
 
5097
/* end confdefs.h.  */
 
5098
$ac_includes_default
 
5099
#include <$ac_header>
 
5100
_ACEOF
 
5101
rm -f conftest.$ac_objext
 
5102
if { (ac_try="$ac_compile"
 
5103
case "(($ac_try" in
 
5104
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5105
  *) ac_try_echo=$ac_try;;
 
5106
esac
 
5107
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5108
  (eval "$ac_compile") 2>conftest.er1
 
5109
  ac_status=$?
 
5110
  grep -v '^ *+' conftest.er1 >conftest.err
 
5111
  rm -f conftest.er1
 
5112
  cat conftest.err >&5
 
5113
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5114
  (exit $ac_status); } && {
 
5115
         test -z "$ac_c_werror_flag" ||
 
5116
         test ! -s conftest.err
 
5117
       } && test -s conftest.$ac_objext; then
 
5118
  ac_header_compiler=yes
 
5119
else
 
5120
  echo "$as_me: failed program was:" >&5
 
5121
sed 's/^/| /' conftest.$ac_ext >&5
 
5122
 
 
5123
        ac_header_compiler=no
 
5124
fi
 
5125
 
 
5126
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5127
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
5128
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
5129
 
 
5130
# Is the header present?
 
5131
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
5132
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
5133
cat >conftest.$ac_ext <<_ACEOF
 
5134
/* confdefs.h.  */
 
5135
_ACEOF
 
5136
cat confdefs.h >>conftest.$ac_ext
 
5137
cat >>conftest.$ac_ext <<_ACEOF
 
5138
/* end confdefs.h.  */
 
5139
#include <$ac_header>
 
5140
_ACEOF
 
5141
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5142
case "(($ac_try" in
 
5143
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5144
  *) ac_try_echo=$ac_try;;
 
5145
esac
 
5146
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5147
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5148
  ac_status=$?
 
5149
  grep -v '^ *+' conftest.er1 >conftest.err
 
5150
  rm -f conftest.er1
 
5151
  cat conftest.err >&5
 
5152
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5153
  (exit $ac_status); } >/dev/null && {
 
5154
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
5155
         test ! -s conftest.err
 
5156
       }; then
 
5157
  ac_header_preproc=yes
 
5158
else
 
5159
  echo "$as_me: failed program was:" >&5
 
5160
sed 's/^/| /' conftest.$ac_ext >&5
 
5161
 
 
5162
  ac_header_preproc=no
 
5163
fi
 
5164
 
 
5165
rm -f conftest.err conftest.$ac_ext
 
5166
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
5167
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
5168
 
 
5169
# So?  What about this header?
 
5170
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
5171
  yes:no: )
 
5172
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
5173
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
5174
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
5175
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
5176
    ac_header_preproc=yes
 
5177
    ;;
 
5178
  no:yes:* )
 
5179
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
5180
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
5181
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
5182
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
5183
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
5184
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
5185
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
5186
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
5187
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
5188
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
5189
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
5190
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
5191
    ( cat <<\_ASBOX
 
5192
## ----------------------------------------------- ##
 
5193
## Report this to gbeauchesne@splitted-desktop.com ##
 
5194
## ----------------------------------------------- ##
 
5195
_ASBOX
 
5196
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
5197
    ;;
 
5198
esac
 
5199
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5200
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
5201
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5202
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5203
else
 
5204
  eval "$as_ac_Header=\$ac_header_preproc"
 
5205
fi
 
5206
ac_res=`eval echo '${'$as_ac_Header'}'`
 
5207
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
5208
echo "${ECHO_T}$ac_res" >&6; }
 
5209
 
 
5210
fi
 
5211
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5212
  cat >>confdefs.h <<_ACEOF
 
5213
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5214
_ACEOF
 
5215
 
 
5216
fi
 
5217
 
 
5218
done
 
5219
 
 
5220
ac_ext=cpp
 
5221
ac_cpp='$CXXCPP $CPPFLAGS'
 
5222
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5223
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5224
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5225
if test -z "$CXX"; then
 
5226
  if test -n "$CCC"; then
 
5227
    CXX=$CCC
 
5228
  else
 
5229
    if test -n "$ac_tool_prefix"; then
 
5230
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
5231
  do
 
5232
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
5233
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
5234
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5235
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
5236
if test "${ac_cv_prog_CXX+set}" = set; then
 
5237
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5238
else
 
5239
  if test -n "$CXX"; then
 
5240
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
5241
else
 
5242
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5243
for as_dir in $PATH
 
5244
do
 
5245
  IFS=$as_save_IFS
 
5246
  test -z "$as_dir" && as_dir=.
 
5247
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5248
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5249
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
5250
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5251
    break 2
 
5252
  fi
 
5253
done
 
5254
done
 
5255
IFS=$as_save_IFS
 
5256
 
 
5257
fi
 
5258
fi
 
5259
CXX=$ac_cv_prog_CXX
 
5260
if test -n "$CXX"; then
 
5261
  { echo "$as_me:$LINENO: result: $CXX" >&5
 
5262
echo "${ECHO_T}$CXX" >&6; }
 
5263
else
 
5264
  { echo "$as_me:$LINENO: result: no" >&5
 
5265
echo "${ECHO_T}no" >&6; }
 
5266
fi
 
5267
 
 
5268
 
 
5269
    test -n "$CXX" && break
 
5270
  done
 
5271
fi
 
5272
if test -z "$CXX"; then
 
5273
  ac_ct_CXX=$CXX
 
5274
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
5275
do
 
5276
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5277
set dummy $ac_prog; ac_word=$2
 
5278
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5279
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
5280
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
5281
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5282
else
 
5283
  if test -n "$ac_ct_CXX"; then
 
5284
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
5285
else
 
5286
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5287
for as_dir in $PATH
 
5288
do
 
5289
  IFS=$as_save_IFS
 
5290
  test -z "$as_dir" && as_dir=.
 
5291
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5292
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5293
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
5294
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5295
    break 2
 
5296
  fi
 
5297
done
 
5298
done
 
5299
IFS=$as_save_IFS
 
5300
 
 
5301
fi
 
5302
fi
 
5303
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
5304
if test -n "$ac_ct_CXX"; then
 
5305
  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
5306
echo "${ECHO_T}$ac_ct_CXX" >&6; }
 
5307
else
 
5308
  { echo "$as_me:$LINENO: result: no" >&5
 
5309
echo "${ECHO_T}no" >&6; }
 
5310
fi
 
5311
 
 
5312
 
 
5313
  test -n "$ac_ct_CXX" && break
 
5314
done
 
5315
 
 
5316
  if test "x$ac_ct_CXX" = x; then
 
5317
    CXX="g++"
 
5318
  else
 
5319
    case $cross_compiling:$ac_tool_warned in
 
5320
yes:)
 
5321
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
5322
whose name does not start with the host triplet.  If you think this
 
5323
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
5324
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
5325
whose name does not start with the host triplet.  If you think this
 
5326
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
5327
ac_tool_warned=yes ;;
 
5328
esac
 
5329
    CXX=$ac_ct_CXX
 
5330
  fi
 
5331
fi
 
5332
 
 
5333
  fi
 
5334
fi
 
5335
# Provide some information about the compiler.
 
5336
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
 
5337
ac_compiler=`set X $ac_compile; echo $2`
 
5338
{ (ac_try="$ac_compiler --version >&5"
 
5339
case "(($ac_try" in
 
5340
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5341
  *) ac_try_echo=$ac_try;;
 
5342
esac
 
5343
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5344
  (eval "$ac_compiler --version >&5") 2>&5
 
5345
  ac_status=$?
 
5346
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5347
  (exit $ac_status); }
 
5348
{ (ac_try="$ac_compiler -v >&5"
 
5349
case "(($ac_try" in
 
5350
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5351
  *) ac_try_echo=$ac_try;;
 
5352
esac
 
5353
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5354
  (eval "$ac_compiler -v >&5") 2>&5
 
5355
  ac_status=$?
 
5356
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5357
  (exit $ac_status); }
 
5358
{ (ac_try="$ac_compiler -V >&5"
 
5359
case "(($ac_try" in
 
5360
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5361
  *) ac_try_echo=$ac_try;;
 
5362
esac
 
5363
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5364
  (eval "$ac_compiler -V >&5") 2>&5
 
5365
  ac_status=$?
 
5366
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5367
  (exit $ac_status); }
 
5368
 
 
5369
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
5370
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
 
5371
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
5372
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5373
else
 
5374
  cat >conftest.$ac_ext <<_ACEOF
 
5375
/* confdefs.h.  */
 
5376
_ACEOF
 
5377
cat confdefs.h >>conftest.$ac_ext
 
5378
cat >>conftest.$ac_ext <<_ACEOF
 
5379
/* end confdefs.h.  */
 
5380
 
 
5381
int
 
5382
main ()
 
5383
{
 
5384
#ifndef __GNUC__
 
5385
       choke me
 
5386
#endif
 
5387
 
 
5388
  ;
 
5389
  return 0;
 
5390
}
 
5391
_ACEOF
 
5392
rm -f conftest.$ac_objext
 
5393
if { (ac_try="$ac_compile"
 
5394
case "(($ac_try" in
 
5395
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5396
  *) ac_try_echo=$ac_try;;
 
5397
esac
 
5398
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5399
  (eval "$ac_compile") 2>conftest.er1
 
5400
  ac_status=$?
 
5401
  grep -v '^ *+' conftest.er1 >conftest.err
 
5402
  rm -f conftest.er1
 
5403
  cat conftest.err >&5
 
5404
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5405
  (exit $ac_status); } && {
 
5406
         test -z "$ac_cxx_werror_flag" ||
 
5407
         test ! -s conftest.err
 
5408
       } && test -s conftest.$ac_objext; then
 
5409
  ac_compiler_gnu=yes
 
5410
else
 
5411
  echo "$as_me: failed program was:" >&5
 
5412
sed 's/^/| /' conftest.$ac_ext >&5
 
5413
 
 
5414
        ac_compiler_gnu=no
 
5415
fi
 
5416
 
 
5417
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5418
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
5419
 
 
5420
fi
 
5421
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
5422
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
 
5423
GXX=`test $ac_compiler_gnu = yes && echo yes`
 
5424
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
5425
ac_save_CXXFLAGS=$CXXFLAGS
 
5426
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
5427
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
 
5428
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
5429
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5430
else
 
5431
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
 
5432
   ac_cxx_werror_flag=yes
 
5433
   ac_cv_prog_cxx_g=no
 
5434
   CXXFLAGS="-g"
 
5435
   cat >conftest.$ac_ext <<_ACEOF
 
5436
/* confdefs.h.  */
 
5437
_ACEOF
 
5438
cat confdefs.h >>conftest.$ac_ext
 
5439
cat >>conftest.$ac_ext <<_ACEOF
 
5440
/* end confdefs.h.  */
 
5441
 
 
5442
int
 
5443
main ()
 
5444
{
 
5445
 
 
5446
  ;
 
5447
  return 0;
 
5448
}
 
5449
_ACEOF
 
5450
rm -f conftest.$ac_objext
 
5451
if { (ac_try="$ac_compile"
 
5452
case "(($ac_try" in
 
5453
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5454
  *) ac_try_echo=$ac_try;;
 
5455
esac
 
5456
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5457
  (eval "$ac_compile") 2>conftest.er1
 
5458
  ac_status=$?
 
5459
  grep -v '^ *+' conftest.er1 >conftest.err
 
5460
  rm -f conftest.er1
 
5461
  cat conftest.err >&5
 
5462
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5463
  (exit $ac_status); } && {
 
5464
         test -z "$ac_cxx_werror_flag" ||
 
5465
         test ! -s conftest.err
 
5466
       } && test -s conftest.$ac_objext; then
 
5467
  ac_cv_prog_cxx_g=yes
 
5468
else
 
5469
  echo "$as_me: failed program was:" >&5
 
5470
sed 's/^/| /' conftest.$ac_ext >&5
 
5471
 
 
5472
        CXXFLAGS=""
 
5473
      cat >conftest.$ac_ext <<_ACEOF
 
5474
/* confdefs.h.  */
 
5475
_ACEOF
 
5476
cat confdefs.h >>conftest.$ac_ext
 
5477
cat >>conftest.$ac_ext <<_ACEOF
 
5478
/* end confdefs.h.  */
 
5479
 
 
5480
int
 
5481
main ()
 
5482
{
 
5483
 
 
5484
  ;
 
5485
  return 0;
 
5486
}
 
5487
_ACEOF
 
5488
rm -f conftest.$ac_objext
 
5489
if { (ac_try="$ac_compile"
 
5490
case "(($ac_try" in
 
5491
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5492
  *) ac_try_echo=$ac_try;;
 
5493
esac
 
5494
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5495
  (eval "$ac_compile") 2>conftest.er1
 
5496
  ac_status=$?
 
5497
  grep -v '^ *+' conftest.er1 >conftest.err
 
5498
  rm -f conftest.er1
 
5499
  cat conftest.err >&5
 
5500
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5501
  (exit $ac_status); } && {
 
5502
         test -z "$ac_cxx_werror_flag" ||
 
5503
         test ! -s conftest.err
 
5504
       } && test -s conftest.$ac_objext; then
 
5505
  :
 
5506
else
 
5507
  echo "$as_me: failed program was:" >&5
 
5508
sed 's/^/| /' conftest.$ac_ext >&5
 
5509
 
 
5510
        ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
5511
         CXXFLAGS="-g"
 
5512
         cat >conftest.$ac_ext <<_ACEOF
 
5513
/* confdefs.h.  */
 
5514
_ACEOF
 
5515
cat confdefs.h >>conftest.$ac_ext
 
5516
cat >>conftest.$ac_ext <<_ACEOF
 
5517
/* end confdefs.h.  */
 
5518
 
 
5519
int
 
5520
main ()
 
5521
{
 
5522
 
 
5523
  ;
 
5524
  return 0;
 
5525
}
 
5526
_ACEOF
 
5527
rm -f conftest.$ac_objext
 
5528
if { (ac_try="$ac_compile"
 
5529
case "(($ac_try" in
 
5530
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5531
  *) ac_try_echo=$ac_try;;
 
5532
esac
 
5533
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5534
  (eval "$ac_compile") 2>conftest.er1
 
5535
  ac_status=$?
 
5536
  grep -v '^ *+' conftest.er1 >conftest.err
 
5537
  rm -f conftest.er1
 
5538
  cat conftest.err >&5
 
5539
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5540
  (exit $ac_status); } && {
 
5541
         test -z "$ac_cxx_werror_flag" ||
 
5542
         test ! -s conftest.err
 
5543
       } && test -s conftest.$ac_objext; then
 
5544
  ac_cv_prog_cxx_g=yes
 
5545
else
 
5546
  echo "$as_me: failed program was:" >&5
 
5547
sed 's/^/| /' conftest.$ac_ext >&5
 
5548
 
 
5549
 
 
5550
fi
 
5551
 
 
5552
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5553
fi
 
5554
 
 
5555
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5556
fi
 
5557
 
 
5558
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5559
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
5560
fi
 
5561
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
5562
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
 
5563
if test "$ac_test_CXXFLAGS" = set; then
 
5564
  CXXFLAGS=$ac_save_CXXFLAGS
 
5565
elif test $ac_cv_prog_cxx_g = yes; then
 
5566
  if test "$GXX" = yes; then
 
5567
    CXXFLAGS="-g -O2"
 
5568
  else
 
5569
    CXXFLAGS="-g"
 
5570
  fi
 
5571
else
 
5572
  if test "$GXX" = yes; then
 
5573
    CXXFLAGS="-O2"
 
5574
  else
 
5575
    CXXFLAGS=
 
5576
  fi
 
5577
fi
 
5578
ac_ext=cpp
 
5579
ac_cpp='$CXXCPP $CPPFLAGS'
 
5580
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5581
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5582
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5583
 
 
5584
depcc="$CXX"  am_compiler_list=
 
5585
 
 
5586
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
5587
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
 
5588
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
 
5589
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5590
else
 
5591
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
5592
  # We make a subdir and do the tests there.  Otherwise we can end up
 
5593
  # making bogus files that we don't know about and never remove.  For
 
5594
  # instance it was reported that on HP-UX the gcc test will end up
 
5595
  # making a dummy file named `D' -- because `-MD' means `put the output
 
5596
  # in D'.
 
5597
  mkdir conftest.dir
 
5598
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
5599
  # using a relative directory.
 
5600
  cp "$am_depcomp" conftest.dir
 
5601
  cd conftest.dir
 
5602
  # We will build objects and dependencies in a subdirectory because
 
5603
  # it helps to detect inapplicable dependency modes.  For instance
 
5604
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
5605
  # side effect of compilation, but ICC will put the dependencies in
 
5606
  # the current directory while Tru64 will put them in the object
 
5607
  # directory.
 
5608
  mkdir sub
 
5609
 
 
5610
  am_cv_CXX_dependencies_compiler_type=none
 
5611
  if test "$am_compiler_list" = ""; then
 
5612
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
5613
  fi
 
5614
  for depmode in $am_compiler_list; do
 
5615
    # Setup a source with many dependencies, because some compilers
 
5616
    # like to wrap large dependency lists on column 80 (with \), and
 
5617
    # we should not choose a depcomp mode which is confused by this.
 
5618
    #
 
5619
    # We need to recreate these files for each test, as the compiler may
 
5620
    # overwrite some of them when testing with obscure command lines.
 
5621
    # This happens at least with the AIX C compiler.
 
5622
    : > sub/conftest.c
 
5623
    for i in 1 2 3 4 5 6; do
 
5624
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
5625
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
5626
      # Solaris 8's {/usr,}/bin/sh.
 
5627
      touch sub/conftst$i.h
 
5628
    done
 
5629
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
5630
 
 
5631
    case $depmode in
 
5632
    nosideeffect)
 
5633
      # after this tag, mechanisms are not by side-effect, so they'll
 
5634
      # only be used when explicitly requested
 
5635
      if test "x$enable_dependency_tracking" = xyes; then
 
5636
        continue
 
5637
      else
 
5638
        break
 
5639
      fi
 
5640
      ;;
 
5641
    none) break ;;
 
5642
    esac
 
5643
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
5644
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
5645
    # handle `-M -o', and we need to detect this.
 
5646
    if depmode=$depmode \
 
5647
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
5648
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
5649
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
5650
         >/dev/null 2>conftest.err &&
 
5651
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
5652
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
5653
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
5654
      # icc doesn't choke on unknown options, it will just issue warnings
 
5655
      # or remarks (even with -Werror).  So we grep stderr for any message
 
5656
      # that says an option was ignored or not supported.
 
5657
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
5658
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
5659
      # The diagnosis changed in icc 8.0:
 
5660
      #   icc: Command line remark: option '-MP' not supported
 
5661
      if (grep 'ignoring option' conftest.err ||
 
5662
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
5663
        am_cv_CXX_dependencies_compiler_type=$depmode
 
5664
        break
 
5665
      fi
 
5666
    fi
 
5667
  done
 
5668
 
 
5669
  cd ..
 
5670
  rm -rf conftest.dir
 
5671
else
 
5672
  am_cv_CXX_dependencies_compiler_type=none
 
5673
fi
 
5674
 
 
5675
fi
 
5676
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
5677
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
 
5678
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
5679
 
 
5680
 
 
5681
 
 
5682
if
 
5683
  test "x$enable_dependency_tracking" != xno \
 
5684
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
5685
  am__fastdepCXX_TRUE=
 
5686
  am__fastdepCXX_FALSE='#'
 
5687
else
 
5688
  am__fastdepCXX_TRUE='#'
 
5689
  am__fastdepCXX_FALSE=
 
5690
fi
 
5691
 
 
5692
 
 
5693
 
 
5694
 
 
5695
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
5696
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
5697
    (test "X$CXX" != "Xg++"))) ; then
 
5698
  ac_ext=cpp
 
5699
ac_cpp='$CXXCPP $CPPFLAGS'
 
5700
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5701
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5702
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5703
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
 
5704
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
 
5705
if test -z "$CXXCPP"; then
 
5706
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
 
5707
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5708
else
 
5709
      # Double quotes because CXXCPP needs to be expanded
 
5710
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
5711
    do
 
5712
      ac_preproc_ok=false
 
5713
for ac_cxx_preproc_warn_flag in '' yes
 
5714
do
 
5715
  # Use a header file that comes with gcc, so configuring glibc
 
5716
  # with a fresh cross-compiler works.
 
5717
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5718
  # <limits.h> exists even on freestanding compilers.
 
5719
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
5720
  # not just through cpp. "Syntax error" is here to catch this case.
 
5721
  cat >conftest.$ac_ext <<_ACEOF
 
5722
/* confdefs.h.  */
 
5723
_ACEOF
 
5724
cat confdefs.h >>conftest.$ac_ext
 
5725
cat >>conftest.$ac_ext <<_ACEOF
 
5726
/* end confdefs.h.  */
 
5727
#ifdef __STDC__
 
5728
# include <limits.h>
 
5729
#else
 
5730
# include <assert.h>
 
5731
#endif
 
5732
                     Syntax error
 
5733
_ACEOF
 
5734
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5735
case "(($ac_try" in
 
5736
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5737
  *) ac_try_echo=$ac_try;;
 
5738
esac
 
5739
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5740
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5741
  ac_status=$?
 
5742
  grep -v '^ *+' conftest.er1 >conftest.err
 
5743
  rm -f conftest.er1
 
5744
  cat conftest.err >&5
 
5745
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5746
  (exit $ac_status); } >/dev/null && {
 
5747
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
5748
         test ! -s conftest.err
 
5749
       }; then
 
5750
  :
 
5751
else
 
5752
  echo "$as_me: failed program was:" >&5
 
5753
sed 's/^/| /' conftest.$ac_ext >&5
 
5754
 
 
5755
  # Broken: fails on valid input.
 
5756
continue
 
5757
fi
 
5758
 
 
5759
rm -f conftest.err conftest.$ac_ext
 
5760
 
 
5761
  # OK, works on sane cases.  Now check whether nonexistent headers
 
5762
  # can be detected and how.
 
5763
  cat >conftest.$ac_ext <<_ACEOF
 
5764
/* confdefs.h.  */
 
5765
_ACEOF
 
5766
cat confdefs.h >>conftest.$ac_ext
 
5767
cat >>conftest.$ac_ext <<_ACEOF
 
5768
/* end confdefs.h.  */
 
5769
#include <ac_nonexistent.h>
 
5770
_ACEOF
 
5771
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5772
case "(($ac_try" in
 
5773
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5774
  *) ac_try_echo=$ac_try;;
 
5775
esac
 
5776
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5777
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5778
  ac_status=$?
 
5779
  grep -v '^ *+' conftest.er1 >conftest.err
 
5780
  rm -f conftest.er1
 
5781
  cat conftest.err >&5
 
5782
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5783
  (exit $ac_status); } >/dev/null && {
 
5784
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
5785
         test ! -s conftest.err
 
5786
       }; then
 
5787
  # Broken: success on invalid input.
 
5788
continue
 
5789
else
 
5790
  echo "$as_me: failed program was:" >&5
 
5791
sed 's/^/| /' conftest.$ac_ext >&5
 
5792
 
 
5793
  # Passes both tests.
 
5794
ac_preproc_ok=:
 
5795
break
 
5796
fi
 
5797
 
 
5798
rm -f conftest.err conftest.$ac_ext
 
5799
 
 
5800
done
 
5801
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
5802
rm -f conftest.err conftest.$ac_ext
 
5803
if $ac_preproc_ok; then
 
5804
  break
 
5805
fi
 
5806
 
 
5807
    done
 
5808
    ac_cv_prog_CXXCPP=$CXXCPP
 
5809
 
 
5810
fi
 
5811
  CXXCPP=$ac_cv_prog_CXXCPP
 
5812
else
 
5813
  ac_cv_prog_CXXCPP=$CXXCPP
 
5814
fi
 
5815
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
 
5816
echo "${ECHO_T}$CXXCPP" >&6; }
 
5817
ac_preproc_ok=false
 
5818
for ac_cxx_preproc_warn_flag in '' yes
 
5819
do
 
5820
  # Use a header file that comes with gcc, so configuring glibc
 
5821
  # with a fresh cross-compiler works.
 
5822
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5823
  # <limits.h> exists even on freestanding compilers.
 
5824
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
5825
  # not just through cpp. "Syntax error" is here to catch this case.
 
5826
  cat >conftest.$ac_ext <<_ACEOF
 
5827
/* confdefs.h.  */
 
5828
_ACEOF
 
5829
cat confdefs.h >>conftest.$ac_ext
 
5830
cat >>conftest.$ac_ext <<_ACEOF
 
5831
/* end confdefs.h.  */
 
5832
#ifdef __STDC__
 
5833
# include <limits.h>
 
5834
#else
 
5835
# include <assert.h>
 
5836
#endif
 
5837
                     Syntax error
 
5838
_ACEOF
 
5839
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5840
case "(($ac_try" in
 
5841
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5842
  *) ac_try_echo=$ac_try;;
 
5843
esac
 
5844
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5845
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5846
  ac_status=$?
 
5847
  grep -v '^ *+' conftest.er1 >conftest.err
 
5848
  rm -f conftest.er1
 
5849
  cat conftest.err >&5
 
5850
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5851
  (exit $ac_status); } >/dev/null && {
 
5852
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
5853
         test ! -s conftest.err
 
5854
       }; then
 
5855
  :
 
5856
else
 
5857
  echo "$as_me: failed program was:" >&5
 
5858
sed 's/^/| /' conftest.$ac_ext >&5
 
5859
 
 
5860
  # Broken: fails on valid input.
 
5861
continue
 
5862
fi
 
5863
 
 
5864
rm -f conftest.err conftest.$ac_ext
 
5865
 
 
5866
  # OK, works on sane cases.  Now check whether nonexistent headers
 
5867
  # can be detected and how.
 
5868
  cat >conftest.$ac_ext <<_ACEOF
 
5869
/* confdefs.h.  */
 
5870
_ACEOF
 
5871
cat confdefs.h >>conftest.$ac_ext
 
5872
cat >>conftest.$ac_ext <<_ACEOF
 
5873
/* end confdefs.h.  */
 
5874
#include <ac_nonexistent.h>
 
5875
_ACEOF
 
5876
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5877
case "(($ac_try" in
 
5878
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5879
  *) ac_try_echo=$ac_try;;
 
5880
esac
 
5881
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5882
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5883
  ac_status=$?
 
5884
  grep -v '^ *+' conftest.er1 >conftest.err
 
5885
  rm -f conftest.er1
 
5886
  cat conftest.err >&5
 
5887
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5888
  (exit $ac_status); } >/dev/null && {
 
5889
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
5890
         test ! -s conftest.err
 
5891
       }; then
 
5892
  # Broken: success on invalid input.
 
5893
continue
 
5894
else
 
5895
  echo "$as_me: failed program was:" >&5
 
5896
sed 's/^/| /' conftest.$ac_ext >&5
 
5897
 
 
5898
  # Passes both tests.
 
5899
ac_preproc_ok=:
 
5900
break
 
5901
fi
 
5902
 
 
5903
rm -f conftest.err conftest.$ac_ext
 
5904
 
 
5905
done
 
5906
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
5907
rm -f conftest.err conftest.$ac_ext
 
5908
if $ac_preproc_ok; then
 
5909
  :
 
5910
else
 
5911
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
5912
See \`config.log' for more details." >&5
 
5913
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
5914
See \`config.log' for more details." >&2;}
 
5915
   { (exit 1); exit 1; }; }
 
5916
fi
 
5917
 
 
5918
ac_ext=cpp
 
5919
ac_cpp='$CXXCPP $CPPFLAGS'
 
5920
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5921
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5922
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5923
 
 
5924
fi
 
5925
 
 
5926
 
 
5927
ac_ext=f
 
5928
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
5929
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5930
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
5931
if test -n "$ac_tool_prefix"; then
 
5932
  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
 
5933
  do
 
5934
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
5935
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
5936
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5937
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
5938
if test "${ac_cv_prog_F77+set}" = set; then
 
5939
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5940
else
 
5941
  if test -n "$F77"; then
 
5942
  ac_cv_prog_F77="$F77" # Let the user override the test.
 
5943
else
 
5944
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5945
for as_dir in $PATH
 
5946
do
 
5947
  IFS=$as_save_IFS
 
5948
  test -z "$as_dir" && as_dir=.
 
5949
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5950
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5951
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
 
5952
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5953
    break 2
 
5954
  fi
 
5955
done
 
5956
done
 
5957
IFS=$as_save_IFS
 
5958
 
 
5959
fi
 
5960
fi
 
5961
F77=$ac_cv_prog_F77
 
5962
if test -n "$F77"; then
 
5963
  { echo "$as_me:$LINENO: result: $F77" >&5
 
5964
echo "${ECHO_T}$F77" >&6; }
 
5965
else
 
5966
  { echo "$as_me:$LINENO: result: no" >&5
 
5967
echo "${ECHO_T}no" >&6; }
 
5968
fi
 
5969
 
 
5970
 
 
5971
    test -n "$F77" && break
 
5972
  done
 
5973
fi
 
5974
if test -z "$F77"; then
 
5975
  ac_ct_F77=$F77
 
5976
  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
 
5977
do
 
5978
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5979
set dummy $ac_prog; ac_word=$2
 
5980
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5981
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
5982
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
 
5983
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5984
else
 
5985
  if test -n "$ac_ct_F77"; then
 
5986
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
 
5987
else
 
5988
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5989
for as_dir in $PATH
 
5990
do
 
5991
  IFS=$as_save_IFS
 
5992
  test -z "$as_dir" && as_dir=.
 
5993
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5994
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5995
    ac_cv_prog_ac_ct_F77="$ac_prog"
 
5996
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5997
    break 2
 
5998
  fi
 
5999
done
 
6000
done
 
6001
IFS=$as_save_IFS
 
6002
 
 
6003
fi
 
6004
fi
 
6005
ac_ct_F77=$ac_cv_prog_ac_ct_F77
 
6006
if test -n "$ac_ct_F77"; then
 
6007
  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
 
6008
echo "${ECHO_T}$ac_ct_F77" >&6; }
 
6009
else
 
6010
  { echo "$as_me:$LINENO: result: no" >&5
 
6011
echo "${ECHO_T}no" >&6; }
 
6012
fi
 
6013
 
 
6014
 
 
6015
  test -n "$ac_ct_F77" && break
 
6016
done
 
6017
 
 
6018
  if test "x$ac_ct_F77" = x; then
 
6019
    F77=""
 
6020
  else
 
6021
    case $cross_compiling:$ac_tool_warned in
 
6022
yes:)
 
6023
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
6024
whose name does not start with the host triplet.  If you think this
 
6025
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
6026
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
6027
whose name does not start with the host triplet.  If you think this
 
6028
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
6029
ac_tool_warned=yes ;;
 
6030
esac
 
6031
    F77=$ac_ct_F77
 
6032
  fi
 
6033
fi
 
6034
 
 
6035
 
 
6036
# Provide some information about the compiler.
 
6037
echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
 
6038
ac_compiler=`set X $ac_compile; echo $2`
 
6039
{ (ac_try="$ac_compiler --version >&5"
 
6040
case "(($ac_try" in
 
6041
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6042
  *) ac_try_echo=$ac_try;;
 
6043
esac
 
6044
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6045
  (eval "$ac_compiler --version >&5") 2>&5
 
6046
  ac_status=$?
 
6047
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6048
  (exit $ac_status); }
 
6049
{ (ac_try="$ac_compiler -v >&5"
 
6050
case "(($ac_try" in
 
6051
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6052
  *) ac_try_echo=$ac_try;;
 
6053
esac
 
6054
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6055
  (eval "$ac_compiler -v >&5") 2>&5
 
6056
  ac_status=$?
 
6057
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6058
  (exit $ac_status); }
 
6059
{ (ac_try="$ac_compiler -V >&5"
 
6060
case "(($ac_try" in
 
6061
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6062
  *) ac_try_echo=$ac_try;;
 
6063
esac
 
6064
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6065
  (eval "$ac_compiler -V >&5") 2>&5
 
6066
  ac_status=$?
 
6067
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6068
  (exit $ac_status); }
 
6069
rm -f a.out
 
6070
 
 
6071
# If we don't use `.F' as extension, the preprocessor is not run on the
 
6072
# input file.  (Note that this only needs to work for GNU compilers.)
 
6073
ac_save_ext=$ac_ext
 
6074
ac_ext=F
 
6075
{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
 
6076
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
 
6077
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
 
6078
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6079
else
 
6080
  cat >conftest.$ac_ext <<_ACEOF
 
6081
      program main
 
6082
#ifndef __GNUC__
 
6083
       choke me
 
6084
#endif
 
6085
 
 
6086
      end
 
6087
_ACEOF
 
6088
rm -f conftest.$ac_objext
 
6089
if { (ac_try="$ac_compile"
 
6090
case "(($ac_try" in
 
6091
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6092
  *) ac_try_echo=$ac_try;;
 
6093
esac
 
6094
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6095
  (eval "$ac_compile") 2>conftest.er1
 
6096
  ac_status=$?
 
6097
  grep -v '^ *+' conftest.er1 >conftest.err
 
6098
  rm -f conftest.er1
 
6099
  cat conftest.err >&5
 
6100
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6101
  (exit $ac_status); } && {
 
6102
         test -z "$ac_f77_werror_flag" ||
 
6103
         test ! -s conftest.err
 
6104
       } && test -s conftest.$ac_objext; then
 
6105
  ac_compiler_gnu=yes
 
6106
else
 
6107
  echo "$as_me: failed program was:" >&5
 
6108
sed 's/^/| /' conftest.$ac_ext >&5
 
6109
 
 
6110
        ac_compiler_gnu=no
 
6111
fi
 
6112
 
 
6113
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6114
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
 
6115
 
 
6116
fi
 
6117
{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
 
6118
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
 
6119
ac_ext=$ac_save_ext
 
6120
ac_test_FFLAGS=${FFLAGS+set}
 
6121
ac_save_FFLAGS=$FFLAGS
 
6122
FFLAGS=
 
6123
{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
 
6124
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
 
6125
if test "${ac_cv_prog_f77_g+set}" = set; then
 
6126
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6127
else
 
6128
  FFLAGS=-g
 
6129
cat >conftest.$ac_ext <<_ACEOF
 
6130
      program main
 
6131
 
 
6132
      end
 
6133
_ACEOF
 
6134
rm -f conftest.$ac_objext
 
6135
if { (ac_try="$ac_compile"
 
6136
case "(($ac_try" in
 
6137
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6138
  *) ac_try_echo=$ac_try;;
 
6139
esac
 
6140
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6141
  (eval "$ac_compile") 2>conftest.er1
 
6142
  ac_status=$?
 
6143
  grep -v '^ *+' conftest.er1 >conftest.err
 
6144
  rm -f conftest.er1
 
6145
  cat conftest.err >&5
 
6146
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6147
  (exit $ac_status); } && {
 
6148
         test -z "$ac_f77_werror_flag" ||
 
6149
         test ! -s conftest.err
 
6150
       } && test -s conftest.$ac_objext; then
 
6151
  ac_cv_prog_f77_g=yes
 
6152
else
 
6153
  echo "$as_me: failed program was:" >&5
 
6154
sed 's/^/| /' conftest.$ac_ext >&5
 
6155
 
 
6156
        ac_cv_prog_f77_g=no
 
6157
fi
 
6158
 
 
6159
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6160
 
 
6161
fi
 
6162
{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
 
6163
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
 
6164
if test "$ac_test_FFLAGS" = set; then
 
6165
  FFLAGS=$ac_save_FFLAGS
 
6166
elif test $ac_cv_prog_f77_g = yes; then
 
6167
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
6168
    FFLAGS="-g -O2"
 
6169
  else
 
6170
    FFLAGS="-g"
 
6171
  fi
 
6172
else
 
6173
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
6174
    FFLAGS="-O2"
 
6175
  else
 
6176
    FFLAGS=
 
6177
  fi
 
6178
fi
 
6179
 
 
6180
G77=`test $ac_compiler_gnu = yes && echo yes`
 
6181
ac_ext=c
 
6182
ac_cpp='$CPP $CPPFLAGS'
 
6183
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6184
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6185
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6186
 
 
6187
 
 
6188
 
 
6189
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
 
6190
 
 
6191
# find the maximum length of command line arguments
 
6192
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
6193
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
 
6194
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
 
6195
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6196
else
 
6197
    i=0
 
6198
  teststring="ABCD"
 
6199
 
 
6200
  case $build_os in
 
6201
  msdosdjgpp*)
 
6202
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
6203
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
6204
    # during glob expansion).  Even if it were fixed, the result of this
 
6205
    # check would be larger than it should be.
 
6206
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
6207
    ;;
 
6208
 
 
6209
  gnu*)
 
6210
    # Under GNU Hurd, this test is not required because there is
 
6211
    # no limit to the length of command line arguments.
 
6212
    # Libtool will interpret -1 as no limit whatsoever
 
6213
    lt_cv_sys_max_cmd_len=-1;
 
6214
    ;;
 
6215
 
 
6216
  cygwin* | mingw*)
 
6217
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
6218
    # about 5 minutes as the teststring grows exponentially.
 
6219
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
6220
    # you end up with a "frozen" computer, even though with patience
 
6221
    # the test eventually succeeds (with a max line length of 256k).
 
6222
    # Instead, let's just punt: use the minimum linelength reported by
 
6223
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
6224
    lt_cv_sys_max_cmd_len=8192;
 
6225
    ;;
 
6226
 
 
6227
  amigaos*)
 
6228
    # On AmigaOS with pdksh, this test takes hours, literally.
 
6229
    # So we just punt and use a minimum line length of 8192.
 
6230
    lt_cv_sys_max_cmd_len=8192;
 
6231
    ;;
 
6232
 
 
6233
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
6234
    # This has been around since 386BSD, at least.  Likely further.
 
6235
    if test -x /sbin/sysctl; then
 
6236
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
6237
    elif test -x /usr/sbin/sysctl; then
 
6238
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
6239
    else
 
6240
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
6241
    fi
 
6242
    # And add a safety zone
 
6243
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
6244
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
6245
    ;;
 
6246
 
 
6247
  interix*)
 
6248
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
6249
    lt_cv_sys_max_cmd_len=196608
 
6250
    ;;
 
6251
 
 
6252
  osf*)
 
6253
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
6254
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
6255
    # nice to cause kernel panics so lets avoid the loop below.
 
6256
    # First set a reasonable default.
 
6257
    lt_cv_sys_max_cmd_len=16384
 
6258
    #
 
6259
    if test -x /sbin/sysconfig; then
 
6260
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
6261
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
6262
      esac
 
6263
    fi
 
6264
    ;;
 
6265
  sco3.2v5*)
 
6266
    lt_cv_sys_max_cmd_len=102400
 
6267
    ;;
 
6268
  sysv5* | sco5v6* | sysv4.2uw2*)
 
6269
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
6270
    if test -n "$kargmax"; then
 
6271
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
 
6272
    else
 
6273
      lt_cv_sys_max_cmd_len=32768
 
6274
    fi
 
6275
    ;;
 
6276
  *)
 
6277
    # If test is not a shell built-in, we'll probably end up computing a
 
6278
    # maximum length that is only half of the actual maximum length, but
 
6279
    # we can't tell.
 
6280
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
6281
    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
 
6282
               = "XX$teststring") >/dev/null 2>&1 &&
 
6283
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
6284
            lt_cv_sys_max_cmd_len=$new_result &&
 
6285
            test $i != 17 # 1/2 MB should be enough
 
6286
    do
 
6287
      i=`expr $i + 1`
 
6288
      teststring=$teststring$teststring
 
6289
    done
 
6290
    teststring=
 
6291
    # Add a significant safety factor because C++ compilers can tack on massive
 
6292
    # amounts of additional arguments before passing them to the linker.
 
6293
    # It appears as though 1/2 is a usable value.
 
6294
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
6295
    ;;
 
6296
  esac
 
6297
 
 
6298
fi
 
6299
 
 
6300
if test -n $lt_cv_sys_max_cmd_len ; then
 
6301
  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
6302
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
 
6303
else
 
6304
  { echo "$as_me:$LINENO: result: none" >&5
 
6305
echo "${ECHO_T}none" >&6; }
 
6306
fi
 
6307
 
 
6308
 
 
6309
 
 
6310
 
5456
6311
# Check for command to grab the raw symbol name followed by C symbol from nm.
5457
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5458
 
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5459
 
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5460
 
  $as_echo_n "(cached) " >&6
 
6312
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
 
6313
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
 
6314
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
 
6315
  echo $ECHO_N "(cached) $ECHO_C" >&6
5461
6316
else
5462
6317
 
5463
6318
# These are sane defaults that work on at least a few old systems.
5469
6324
# Regexp to match symbols that can be accessed directly from C.
5470
6325
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5471
6326
 
 
6327
# Transform an extracted symbol line into a proper C declaration
 
6328
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
 
6329
 
 
6330
# Transform an extracted symbol line into symbol name and symbol address
 
6331
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
 
6332
 
5472
6333
# Define system-specific variables.
5473
6334
case $host_os in
5474
6335
aix*)
5475
6336
  symcode='[BCDT]'
5476
6337
  ;;
5477
 
cygwin* | mingw* | pw32* | cegcc*)
 
6338
cygwin* | mingw* | pw32*)
5478
6339
  symcode='[ABCDGISTW]'
5479
6340
  ;;
5480
 
hpux*)
 
6341
hpux*) # Its linker distinguishes data from code symbols
5481
6342
  if test "$host_cpu" = ia64; then
5482
6343
    symcode='[ABCDEGRST]'
5483
6344
  fi
 
6345
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
6346
  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
 
6347
  ;;
 
6348
linux* | k*bsd*-gnu)
 
6349
  if test "$host_cpu" = ia64; then
 
6350
    symcode='[ABCDGIRSTW]'
 
6351
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
6352
    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
 
6353
  fi
5484
6354
  ;;
5485
6355
irix* | nonstopux*)
5486
6356
  symcode='[BCDEGRST]'
5505
6375
  ;;
5506
6376
esac
5507
6377
 
5508
 
# If we're using GNU nm, then use its standard symbol codes.
5509
 
case `$NM -V 2>&1` in
5510
 
*GNU* | *'with BFD'*)
5511
 
  symcode='[ABCDGIRSTW]' ;;
5512
 
esac
5513
 
 
5514
 
# Transform an extracted symbol line into a proper C declaration.
5515
 
# Some systems (esp. on ia64) link data and code symbols differently,
5516
 
# so use this general approach.
5517
 
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5518
 
 
5519
 
# Transform an extracted symbol line into symbol name and symbol address
5520
 
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5521
 
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
5522
 
 
5523
6378
# Handle CRLF in mingw tool chain
5524
6379
opt_cr=
5525
6380
case $build_os in
5526
6381
mingw*)
5527
 
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
6382
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5528
6383
  ;;
5529
6384
esac
5530
6385
 
5531
 
# Try without a prefix underscore, then with it.
 
6386
# If we're using GNU nm, then use its standard symbol codes.
 
6387
case `$NM -V 2>&1` in
 
6388
*GNU* | *'with BFD'*)
 
6389
  symcode='[ABCDGIRSTW]' ;;
 
6390
esac
 
6391
 
 
6392
# Try without a prefix undercore, then with it.
5532
6393
for ac_symprfx in "" "_"; do
5533
6394
 
5534
6395
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5535
6396
  symxfrm="\\1 $ac_symprfx\\2 \\2"
5536
6397
 
5537
6398
  # Write the raw and C identifiers.
5538
 
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5539
 
    # Fake it for dumpbin and say T for any non-static function
5540
 
    # and D for any global variable.
5541
 
    # Also find C++ and __fastcall symbols from MSVC++,
5542
 
    # which start with @ or ?.
5543
 
    lt_cv_sys_global_symbol_pipe="$AWK '"\
5544
 
"     {last_section=section; section=\$ 3};"\
5545
 
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5546
 
"     \$ 0!~/External *\|/{next};"\
5547
 
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5548
 
"     {if(hide[section]) next};"\
5549
 
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5550
 
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5551
 
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5552
 
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5553
 
"     ' prfx=^$ac_symprfx"
5554
 
  else
5555
 
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5556
 
  fi
 
6399
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5557
6400
 
5558
6401
  # Check to see that the pipe works correctly.
5559
6402
  pipe_works=no
5560
6403
 
5561
6404
  rm -f conftest*
5562
 
  cat > conftest.$ac_ext <<_LT_EOF
 
6405
  cat > conftest.$ac_ext <<EOF
5563
6406
#ifdef __cplusplus
5564
6407
extern "C" {
5565
6408
#endif
5566
6409
char nm_test_var;
5567
 
void nm_test_func(void);
5568
 
void nm_test_func(void){}
 
6410
void nm_test_func(){}
5569
6411
#ifdef __cplusplus
5570
6412
}
5571
6413
#endif
5572
6414
int main(){nm_test_var='a';nm_test_func();return(0);}
5573
 
_LT_EOF
 
6415
EOF
5574
6416
 
5575
 
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6417
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5576
6418
  (eval $ac_compile) 2>&5
5577
6419
  ac_status=$?
5578
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5579
 
  test $ac_status = 0; }; then
 
6420
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6421
  (exit $ac_status); }; then
5580
6422
    # Now try to grab the symbols.
5581
6423
    nlist=conftest.nm
5582
 
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
 
6424
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5583
6425
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5584
6426
  ac_status=$?
5585
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5586
 
  test $ac_status = 0; } && test -s "$nlist"; then
 
6427
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6428
  (exit $ac_status); } && test -s "$nlist"; then
5587
6429
      # Try sorting and uniquifying the output.
5588
6430
      if sort "$nlist" | uniq > "$nlist"T; then
5589
6431
        mv -f "$nlist"T "$nlist"
5592
6434
      fi
5593
6435
 
5594
6436
      # Make sure that we snagged all the symbols we need.
5595
 
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5596
 
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5597
 
          cat <<_LT_EOF > conftest.$ac_ext
 
6437
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
 
6438
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
 
6439
          cat <<EOF > conftest.$ac_ext
5598
6440
#ifdef __cplusplus
5599
6441
extern "C" {
5600
6442
#endif
5601
6443
 
5602
 
_LT_EOF
 
6444
EOF
5603
6445
          # Now generate the symbol file.
5604
 
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5605
 
 
5606
 
          cat <<_LT_EOF >> conftest.$ac_ext
5607
 
 
5608
 
/* The mapping between symbol names and symbols.  */
 
6446
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
 
6447
 
 
6448
          cat <<EOF >> conftest.$ac_ext
 
6449
#if defined (__STDC__) && __STDC__
 
6450
# define lt_ptr_t void *
 
6451
#else
 
6452
# define lt_ptr_t char *
 
6453
# define const
 
6454
#endif
 
6455
 
 
6456
/* The mapping between symbol names and symbols. */
5609
6457
const struct {
5610
6458
  const char *name;
5611
 
  void       *address;
 
6459
  lt_ptr_t address;
5612
6460
}
5613
 
lt__PROGRAM__LTX_preloaded_symbols[] =
 
6461
lt_preloaded_symbols[] =
5614
6462
{
5615
 
  { "@PROGRAM@", (void *) 0 },
5616
 
_LT_EOF
5617
 
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5618
 
          cat <<\_LT_EOF >> conftest.$ac_ext
5619
 
  {0, (void *) 0}
 
6463
EOF
 
6464
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
 
6465
          cat <<\EOF >> conftest.$ac_ext
 
6466
  {0, (lt_ptr_t) 0}
5620
6467
};
5621
6468
 
5622
 
/* This works around a problem in FreeBSD linker */
5623
 
#ifdef FREEBSD_WORKAROUND
5624
 
static const void *lt_preloaded_setup() {
5625
 
  return lt__PROGRAM__LTX_preloaded_symbols;
5626
 
}
5627
 
#endif
5628
 
 
5629
6469
#ifdef __cplusplus
5630
6470
}
5631
6471
#endif
5632
 
_LT_EOF
 
6472
EOF
5633
6473
          # Now try linking the two files.
5634
6474
          mv conftest.$ac_objext conftstm.$ac_objext
5635
6475
          lt_save_LIBS="$LIBS"
5636
6476
          lt_save_CFLAGS="$CFLAGS"
5637
6477
          LIBS="conftstm.$ac_objext"
5638
6478
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5639
 
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
6479
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5640
6480
  (eval $ac_link) 2>&5
5641
6481
  ac_status=$?
5642
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5643
 
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
 
6482
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6483
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5644
6484
            pipe_works=yes
5645
6485
          fi
5646
6486
          LIBS="$lt_save_LIBS"
5658
6498
    echo "$progname: failed program was:" >&5
5659
6499
    cat conftest.$ac_ext >&5
5660
6500
  fi
5661
 
  rm -rf conftest* conftst*
 
6501
  rm -f conftest* conftst*
5662
6502
 
5663
6503
  # Do not use the global_symbol_pipe unless it works.
5664
6504
  if test "$pipe_works" = yes; then
5674
6514
  lt_cv_sys_global_symbol_to_cdecl=
5675
6515
fi
5676
6516
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5677
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5678
 
$as_echo "failed" >&6; }
5679
 
else
5680
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5681
 
$as_echo "ok" >&6; }
5682
 
fi
5683
 
 
5684
 
 
5685
 
 
5686
 
 
5687
 
 
5688
 
 
5689
 
 
5690
 
 
5691
 
 
5692
 
 
5693
 
 
5694
 
 
5695
 
 
5696
 
 
5697
 
 
5698
 
 
5699
 
 
5700
 
 
5701
 
 
5702
 
 
5703
 
 
5704
 
 
5705
 
 
5706
 
# Check whether --enable-libtool-lock was given.
5707
 
if test "${enable_libtool_lock+set}" = set; then :
5708
 
  enableval=$enable_libtool_lock;
5709
 
fi
5710
 
 
5711
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5712
 
 
5713
 
# Some flags need to be propagated to the compiler or linker for good
5714
 
# libtool support.
5715
 
case $host in
5716
 
ia64-*-hpux*)
5717
 
  # Find out which ABI we are using.
5718
 
  echo 'int i;' > conftest.$ac_ext
5719
 
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5720
 
  (eval $ac_compile) 2>&5
5721
 
  ac_status=$?
5722
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5723
 
  test $ac_status = 0; }; then
5724
 
    case `/usr/bin/file conftest.$ac_objext` in
5725
 
      *ELF-32*)
5726
 
        HPUX_IA64_MODE="32"
5727
 
        ;;
5728
 
      *ELF-64*)
5729
 
        HPUX_IA64_MODE="64"
5730
 
        ;;
5731
 
    esac
5732
 
  fi
5733
 
  rm -rf conftest*
5734
 
  ;;
5735
 
*-*-irix6*)
5736
 
  # Find out which ABI we are using.
5737
 
  echo '#line 5737 "configure"' > conftest.$ac_ext
5738
 
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5739
 
  (eval $ac_compile) 2>&5
5740
 
  ac_status=$?
5741
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5742
 
  test $ac_status = 0; }; then
5743
 
    if test "$lt_cv_prog_gnu_ld" = yes; then
5744
 
      case `/usr/bin/file conftest.$ac_objext` in
5745
 
        *32-bit*)
5746
 
          LD="${LD-ld} -melf32bsmip"
5747
 
          ;;
5748
 
        *N32*)
5749
 
          LD="${LD-ld} -melf32bmipn32"
5750
 
          ;;
5751
 
        *64-bit*)
5752
 
          LD="${LD-ld} -melf64bmip"
5753
 
        ;;
5754
 
      esac
5755
 
    else
5756
 
      case `/usr/bin/file conftest.$ac_objext` in
5757
 
        *32-bit*)
5758
 
          LD="${LD-ld} -32"
5759
 
          ;;
5760
 
        *N32*)
5761
 
          LD="${LD-ld} -n32"
5762
 
          ;;
5763
 
        *64-bit*)
5764
 
          LD="${LD-ld} -64"
5765
 
          ;;
5766
 
      esac
5767
 
    fi
5768
 
  fi
5769
 
  rm -rf conftest*
5770
 
  ;;
5771
 
 
5772
 
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5773
 
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5774
 
  # Find out which ABI we are using.
5775
 
  echo 'int i;' > conftest.$ac_ext
5776
 
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5777
 
  (eval $ac_compile) 2>&5
5778
 
  ac_status=$?
5779
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5780
 
  test $ac_status = 0; }; then
5781
 
    case `/usr/bin/file conftest.o` in
5782
 
      *32-bit*)
5783
 
        case $host in
5784
 
          x86_64-*kfreebsd*-gnu)
5785
 
            LD="${LD-ld} -m elf_i386_fbsd"
5786
 
            ;;
5787
 
          x86_64-*linux*)
5788
 
            LD="${LD-ld} -m elf_i386"
5789
 
            ;;
5790
 
          ppc64-*linux*|powerpc64-*linux*)
5791
 
            LD="${LD-ld} -m elf32ppclinux"
5792
 
            ;;
5793
 
          s390x-*linux*)
5794
 
            LD="${LD-ld} -m elf_s390"
5795
 
            ;;
5796
 
          sparc64-*linux*)
5797
 
            LD="${LD-ld} -m elf32_sparc"
5798
 
            ;;
5799
 
        esac
5800
 
        ;;
5801
 
      *64-bit*)
5802
 
        case $host in
5803
 
          x86_64-*kfreebsd*-gnu)
5804
 
            LD="${LD-ld} -m elf_x86_64_fbsd"
5805
 
            ;;
5806
 
          x86_64-*linux*)
5807
 
            LD="${LD-ld} -m elf_x86_64"
5808
 
            ;;
5809
 
          ppc*-*linux*|powerpc*-*linux*)
5810
 
            LD="${LD-ld} -m elf64ppc"
5811
 
            ;;
5812
 
          s390*-*linux*|s390*-*tpf*)
5813
 
            LD="${LD-ld} -m elf64_s390"
5814
 
            ;;
5815
 
          sparc*-*linux*)
5816
 
            LD="${LD-ld} -m elf64_sparc"
5817
 
            ;;
5818
 
        esac
5819
 
        ;;
5820
 
    esac
5821
 
  fi
5822
 
  rm -rf conftest*
5823
 
  ;;
5824
 
 
5825
 
*-*-sco3.2v5*)
5826
 
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5827
 
  SAVE_CFLAGS="$CFLAGS"
5828
 
  CFLAGS="$CFLAGS -belf"
5829
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5830
 
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5831
 
if test "${lt_cv_cc_needs_belf+set}" = set; then :
5832
 
  $as_echo_n "(cached) " >&6
5833
 
else
5834
 
  ac_ext=c
5835
 
ac_cpp='$CPP $CPPFLAGS'
5836
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5837
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5838
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5839
 
 
5840
 
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5841
 
/* end confdefs.h.  */
5842
 
 
5843
 
int
5844
 
main ()
5845
 
{
5846
 
 
5847
 
  ;
5848
 
  return 0;
5849
 
}
5850
 
_ACEOF
5851
 
if ac_fn_c_try_link "$LINENO"; then :
5852
 
  lt_cv_cc_needs_belf=yes
5853
 
else
5854
 
  lt_cv_cc_needs_belf=no
5855
 
fi
5856
 
rm -f core conftest.err conftest.$ac_objext \
5857
 
    conftest$ac_exeext conftest.$ac_ext
5858
 
     ac_ext=c
5859
 
ac_cpp='$CPP $CPPFLAGS'
5860
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5861
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5862
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5863
 
 
5864
 
fi
5865
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5866
 
$as_echo "$lt_cv_cc_needs_belf" >&6; }
5867
 
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5868
 
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5869
 
    CFLAGS="$SAVE_CFLAGS"
5870
 
  fi
5871
 
  ;;
5872
 
sparc*-*solaris*)
5873
 
  # Find out which ABI we are using.
5874
 
  echo 'int i;' > conftest.$ac_ext
5875
 
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5876
 
  (eval $ac_compile) 2>&5
5877
 
  ac_status=$?
5878
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5879
 
  test $ac_status = 0; }; then
5880
 
    case `/usr/bin/file conftest.o` in
5881
 
    *64-bit*)
5882
 
      case $lt_cv_prog_gnu_ld in
5883
 
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5884
 
      *)
5885
 
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5886
 
          LD="${LD-ld} -64"
5887
 
        fi
5888
 
        ;;
5889
 
      esac
5890
 
      ;;
5891
 
    esac
5892
 
  fi
5893
 
  rm -rf conftest*
5894
 
  ;;
5895
 
esac
5896
 
 
5897
 
need_locks="$enable_libtool_lock"
5898
 
 
5899
 
 
5900
 
  case $host_os in
5901
 
    rhapsody* | darwin*)
5902
 
    if test -n "$ac_tool_prefix"; then
5903
 
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5904
 
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5905
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5906
 
$as_echo_n "checking for $ac_word... " >&6; }
5907
 
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
5908
 
  $as_echo_n "(cached) " >&6
5909
 
else
5910
 
  if test -n "$DSYMUTIL"; then
5911
 
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5912
 
else
5913
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5914
 
for as_dir in $PATH
5915
 
do
5916
 
  IFS=$as_save_IFS
5917
 
  test -z "$as_dir" && as_dir=.
5918
 
    for ac_exec_ext in '' $ac_executable_extensions; do
5919
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5920
 
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5921
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5922
 
    break 2
5923
 
  fi
5924
 
done
5925
 
  done
5926
 
IFS=$as_save_IFS
5927
 
 
5928
 
fi
5929
 
fi
5930
 
DSYMUTIL=$ac_cv_prog_DSYMUTIL
5931
 
if test -n "$DSYMUTIL"; then
5932
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5933
 
$as_echo "$DSYMUTIL" >&6; }
5934
 
else
5935
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5936
 
$as_echo "no" >&6; }
5937
 
fi
5938
 
 
5939
 
 
5940
 
fi
5941
 
if test -z "$ac_cv_prog_DSYMUTIL"; then
5942
 
  ac_ct_DSYMUTIL=$DSYMUTIL
5943
 
  # Extract the first word of "dsymutil", so it can be a program name with args.
5944
 
set dummy dsymutil; ac_word=$2
5945
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5946
 
$as_echo_n "checking for $ac_word... " >&6; }
5947
 
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
5948
 
  $as_echo_n "(cached) " >&6
5949
 
else
5950
 
  if test -n "$ac_ct_DSYMUTIL"; then
5951
 
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5952
 
else
5953
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5954
 
for as_dir in $PATH
5955
 
do
5956
 
  IFS=$as_save_IFS
5957
 
  test -z "$as_dir" && as_dir=.
5958
 
    for ac_exec_ext in '' $ac_executable_extensions; do
5959
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5960
 
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5961
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5962
 
    break 2
5963
 
  fi
5964
 
done
5965
 
  done
5966
 
IFS=$as_save_IFS
5967
 
 
5968
 
fi
5969
 
fi
5970
 
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5971
 
if test -n "$ac_ct_DSYMUTIL"; then
5972
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5973
 
$as_echo "$ac_ct_DSYMUTIL" >&6; }
5974
 
else
5975
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5976
 
$as_echo "no" >&6; }
5977
 
fi
5978
 
 
5979
 
  if test "x$ac_ct_DSYMUTIL" = x; then
5980
 
    DSYMUTIL=":"
5981
 
  else
5982
 
    case $cross_compiling:$ac_tool_warned in
5983
 
yes:)
5984
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5985
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5986
 
ac_tool_warned=yes ;;
5987
 
esac
5988
 
    DSYMUTIL=$ac_ct_DSYMUTIL
5989
 
  fi
5990
 
else
5991
 
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5992
 
fi
5993
 
 
5994
 
    if test -n "$ac_tool_prefix"; then
5995
 
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5996
 
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5997
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5998
 
$as_echo_n "checking for $ac_word... " >&6; }
5999
 
if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6000
 
  $as_echo_n "(cached) " >&6
6001
 
else
6002
 
  if test -n "$NMEDIT"; then
6003
 
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6004
 
else
6005
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6006
 
for as_dir in $PATH
6007
 
do
6008
 
  IFS=$as_save_IFS
6009
 
  test -z "$as_dir" && as_dir=.
6010
 
    for ac_exec_ext in '' $ac_executable_extensions; do
6011
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6012
 
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6013
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6014
 
    break 2
6015
 
  fi
6016
 
done
6017
 
  done
6018
 
IFS=$as_save_IFS
6019
 
 
6020
 
fi
6021
 
fi
6022
 
NMEDIT=$ac_cv_prog_NMEDIT
6023
 
if test -n "$NMEDIT"; then
6024
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6025
 
$as_echo "$NMEDIT" >&6; }
6026
 
else
6027
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6028
 
$as_echo "no" >&6; }
6029
 
fi
6030
 
 
6031
 
 
6032
 
fi
6033
 
if test -z "$ac_cv_prog_NMEDIT"; then
6034
 
  ac_ct_NMEDIT=$NMEDIT
6035
 
  # Extract the first word of "nmedit", so it can be a program name with args.
6036
 
set dummy nmedit; ac_word=$2
6037
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6038
 
$as_echo_n "checking for $ac_word... " >&6; }
6039
 
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6040
 
  $as_echo_n "(cached) " >&6
6041
 
else
6042
 
  if test -n "$ac_ct_NMEDIT"; then
6043
 
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6044
 
else
6045
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6046
 
for as_dir in $PATH
6047
 
do
6048
 
  IFS=$as_save_IFS
6049
 
  test -z "$as_dir" && as_dir=.
6050
 
    for ac_exec_ext in '' $ac_executable_extensions; do
6051
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6052
 
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6053
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6054
 
    break 2
6055
 
  fi
6056
 
done
6057
 
  done
6058
 
IFS=$as_save_IFS
6059
 
 
6060
 
fi
6061
 
fi
6062
 
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6063
 
if test -n "$ac_ct_NMEDIT"; then
6064
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6065
 
$as_echo "$ac_ct_NMEDIT" >&6; }
6066
 
else
6067
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6068
 
$as_echo "no" >&6; }
6069
 
fi
6070
 
 
6071
 
  if test "x$ac_ct_NMEDIT" = x; then
6072
 
    NMEDIT=":"
6073
 
  else
6074
 
    case $cross_compiling:$ac_tool_warned in
6075
 
yes:)
6076
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6077
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6078
 
ac_tool_warned=yes ;;
6079
 
esac
6080
 
    NMEDIT=$ac_ct_NMEDIT
6081
 
  fi
6082
 
else
6083
 
  NMEDIT="$ac_cv_prog_NMEDIT"
6084
 
fi
6085
 
 
6086
 
    if test -n "$ac_tool_prefix"; then
6087
 
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6088
 
set dummy ${ac_tool_prefix}lipo; ac_word=$2
6089
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6090
 
$as_echo_n "checking for $ac_word... " >&6; }
6091
 
if test "${ac_cv_prog_LIPO+set}" = set; then :
6092
 
  $as_echo_n "(cached) " >&6
6093
 
else
6094
 
  if test -n "$LIPO"; then
6095
 
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6096
 
else
6097
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6098
 
for as_dir in $PATH
6099
 
do
6100
 
  IFS=$as_save_IFS
6101
 
  test -z "$as_dir" && as_dir=.
6102
 
    for ac_exec_ext in '' $ac_executable_extensions; do
6103
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6104
 
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6105
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6106
 
    break 2
6107
 
  fi
6108
 
done
6109
 
  done
6110
 
IFS=$as_save_IFS
6111
 
 
6112
 
fi
6113
 
fi
6114
 
LIPO=$ac_cv_prog_LIPO
6115
 
if test -n "$LIPO"; then
6116
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6117
 
$as_echo "$LIPO" >&6; }
6118
 
else
6119
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6120
 
$as_echo "no" >&6; }
6121
 
fi
6122
 
 
6123
 
 
6124
 
fi
6125
 
if test -z "$ac_cv_prog_LIPO"; then
6126
 
  ac_ct_LIPO=$LIPO
6127
 
  # Extract the first word of "lipo", so it can be a program name with args.
6128
 
set dummy lipo; ac_word=$2
6129
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6130
 
$as_echo_n "checking for $ac_word... " >&6; }
6131
 
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6132
 
  $as_echo_n "(cached) " >&6
6133
 
else
6134
 
  if test -n "$ac_ct_LIPO"; then
6135
 
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6136
 
else
6137
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6138
 
for as_dir in $PATH
6139
 
do
6140
 
  IFS=$as_save_IFS
6141
 
  test -z "$as_dir" && as_dir=.
6142
 
    for ac_exec_ext in '' $ac_executable_extensions; do
6143
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6144
 
    ac_cv_prog_ac_ct_LIPO="lipo"
6145
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6146
 
    break 2
6147
 
  fi
6148
 
done
6149
 
  done
6150
 
IFS=$as_save_IFS
6151
 
 
6152
 
fi
6153
 
fi
6154
 
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6155
 
if test -n "$ac_ct_LIPO"; then
6156
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6157
 
$as_echo "$ac_ct_LIPO" >&6; }
6158
 
else
6159
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6160
 
$as_echo "no" >&6; }
6161
 
fi
6162
 
 
6163
 
  if test "x$ac_ct_LIPO" = x; then
6164
 
    LIPO=":"
6165
 
  else
6166
 
    case $cross_compiling:$ac_tool_warned in
6167
 
yes:)
6168
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6169
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6170
 
ac_tool_warned=yes ;;
6171
 
esac
6172
 
    LIPO=$ac_ct_LIPO
6173
 
  fi
6174
 
else
6175
 
  LIPO="$ac_cv_prog_LIPO"
6176
 
fi
6177
 
 
6178
 
    if test -n "$ac_tool_prefix"; then
6179
 
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6180
 
set dummy ${ac_tool_prefix}otool; ac_word=$2
6181
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6182
 
$as_echo_n "checking for $ac_word... " >&6; }
6183
 
if test "${ac_cv_prog_OTOOL+set}" = set; then :
6184
 
  $as_echo_n "(cached) " >&6
6185
 
else
6186
 
  if test -n "$OTOOL"; then
6187
 
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6188
 
else
6189
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6190
 
for as_dir in $PATH
6191
 
do
6192
 
  IFS=$as_save_IFS
6193
 
  test -z "$as_dir" && as_dir=.
6194
 
    for ac_exec_ext in '' $ac_executable_extensions; do
6195
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6196
 
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6197
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6198
 
    break 2
6199
 
  fi
6200
 
done
6201
 
  done
6202
 
IFS=$as_save_IFS
6203
 
 
6204
 
fi
6205
 
fi
6206
 
OTOOL=$ac_cv_prog_OTOOL
6207
 
if test -n "$OTOOL"; then
6208
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6209
 
$as_echo "$OTOOL" >&6; }
6210
 
else
6211
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6212
 
$as_echo "no" >&6; }
6213
 
fi
6214
 
 
6215
 
 
6216
 
fi
6217
 
if test -z "$ac_cv_prog_OTOOL"; then
6218
 
  ac_ct_OTOOL=$OTOOL
6219
 
  # Extract the first word of "otool", so it can be a program name with args.
6220
 
set dummy otool; ac_word=$2
6221
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6222
 
$as_echo_n "checking for $ac_word... " >&6; }
6223
 
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6224
 
  $as_echo_n "(cached) " >&6
6225
 
else
6226
 
  if test -n "$ac_ct_OTOOL"; then
6227
 
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6228
 
else
6229
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6230
 
for as_dir in $PATH
6231
 
do
6232
 
  IFS=$as_save_IFS
6233
 
  test -z "$as_dir" && as_dir=.
6234
 
    for ac_exec_ext in '' $ac_executable_extensions; do
6235
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6236
 
    ac_cv_prog_ac_ct_OTOOL="otool"
6237
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6238
 
    break 2
6239
 
  fi
6240
 
done
6241
 
  done
6242
 
IFS=$as_save_IFS
6243
 
 
6244
 
fi
6245
 
fi
6246
 
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6247
 
if test -n "$ac_ct_OTOOL"; then
6248
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6249
 
$as_echo "$ac_ct_OTOOL" >&6; }
6250
 
else
6251
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6252
 
$as_echo "no" >&6; }
6253
 
fi
6254
 
 
6255
 
  if test "x$ac_ct_OTOOL" = x; then
6256
 
    OTOOL=":"
6257
 
  else
6258
 
    case $cross_compiling:$ac_tool_warned in
6259
 
yes:)
6260
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6261
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6262
 
ac_tool_warned=yes ;;
6263
 
esac
6264
 
    OTOOL=$ac_ct_OTOOL
6265
 
  fi
6266
 
else
6267
 
  OTOOL="$ac_cv_prog_OTOOL"
6268
 
fi
6269
 
 
6270
 
    if test -n "$ac_tool_prefix"; then
6271
 
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6272
 
set dummy ${ac_tool_prefix}otool64; ac_word=$2
6273
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6274
 
$as_echo_n "checking for $ac_word... " >&6; }
6275
 
if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6276
 
  $as_echo_n "(cached) " >&6
6277
 
else
6278
 
  if test -n "$OTOOL64"; then
6279
 
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6280
 
else
6281
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6282
 
for as_dir in $PATH
6283
 
do
6284
 
  IFS=$as_save_IFS
6285
 
  test -z "$as_dir" && as_dir=.
6286
 
    for ac_exec_ext in '' $ac_executable_extensions; do
6287
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6288
 
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6289
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6290
 
    break 2
6291
 
  fi
6292
 
done
6293
 
  done
6294
 
IFS=$as_save_IFS
6295
 
 
6296
 
fi
6297
 
fi
6298
 
OTOOL64=$ac_cv_prog_OTOOL64
6299
 
if test -n "$OTOOL64"; then
6300
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6301
 
$as_echo "$OTOOL64" >&6; }
6302
 
else
6303
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6304
 
$as_echo "no" >&6; }
6305
 
fi
6306
 
 
6307
 
 
6308
 
fi
6309
 
if test -z "$ac_cv_prog_OTOOL64"; then
6310
 
  ac_ct_OTOOL64=$OTOOL64
6311
 
  # Extract the first word of "otool64", so it can be a program name with args.
6312
 
set dummy otool64; ac_word=$2
6313
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6314
 
$as_echo_n "checking for $ac_word... " >&6; }
6315
 
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6316
 
  $as_echo_n "(cached) " >&6
6317
 
else
6318
 
  if test -n "$ac_ct_OTOOL64"; then
6319
 
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6320
 
else
6321
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6322
 
for as_dir in $PATH
6323
 
do
6324
 
  IFS=$as_save_IFS
6325
 
  test -z "$as_dir" && as_dir=.
6326
 
    for ac_exec_ext in '' $ac_executable_extensions; do
6327
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6328
 
    ac_cv_prog_ac_ct_OTOOL64="otool64"
6329
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6330
 
    break 2
6331
 
  fi
6332
 
done
6333
 
  done
6334
 
IFS=$as_save_IFS
6335
 
 
6336
 
fi
6337
 
fi
6338
 
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6339
 
if test -n "$ac_ct_OTOOL64"; then
6340
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6341
 
$as_echo "$ac_ct_OTOOL64" >&6; }
6342
 
else
6343
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6344
 
$as_echo "no" >&6; }
6345
 
fi
6346
 
 
6347
 
  if test "x$ac_ct_OTOOL64" = x; then
6348
 
    OTOOL64=":"
6349
 
  else
6350
 
    case $cross_compiling:$ac_tool_warned in
6351
 
yes:)
6352
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6353
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6354
 
ac_tool_warned=yes ;;
6355
 
esac
6356
 
    OTOOL64=$ac_ct_OTOOL64
6357
 
  fi
6358
 
else
6359
 
  OTOOL64="$ac_cv_prog_OTOOL64"
6360
 
fi
6361
 
 
6362
 
 
6363
 
 
6364
 
 
6365
 
 
6366
 
 
6367
 
 
6368
 
 
6369
 
 
6370
 
 
6371
 
 
6372
 
 
6373
 
 
6374
 
 
6375
 
 
6376
 
 
6377
 
 
6378
 
 
6379
 
 
6380
 
 
6381
 
 
6382
 
 
6383
 
 
6384
 
 
6385
 
 
6386
 
 
6387
 
 
6388
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6389
 
$as_echo_n "checking for -single_module linker flag... " >&6; }
6390
 
if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6391
 
  $as_echo_n "(cached) " >&6
6392
 
else
6393
 
  lt_cv_apple_cc_single_mod=no
6394
 
      if test -z "${LT_MULTI_MODULE}"; then
6395
 
        # By default we will add the -single_module flag. You can override
6396
 
        # by either setting the environment variable LT_MULTI_MODULE
6397
 
        # non-empty at configure time, or by adding -multi_module to the
6398
 
        # link flags.
6399
 
        rm -rf libconftest.dylib*
6400
 
        echo "int foo(void){return 1;}" > conftest.c
6401
 
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6402
 
-dynamiclib -Wl,-single_module conftest.c" >&5
6403
 
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6404
 
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6405
 
        _lt_result=$?
6406
 
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6407
 
          lt_cv_apple_cc_single_mod=yes
6408
 
        else
6409
 
          cat conftest.err >&5
6410
 
        fi
6411
 
        rm -rf libconftest.dylib*
6412
 
        rm -f conftest.*
6413
 
      fi
6414
 
fi
6415
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6416
 
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6417
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6418
 
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6419
 
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6420
 
  $as_echo_n "(cached) " >&6
6421
 
else
6422
 
  lt_cv_ld_exported_symbols_list=no
6423
 
      save_LDFLAGS=$LDFLAGS
6424
 
      echo "_main" > conftest.sym
6425
 
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6426
 
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6427
 
/* end confdefs.h.  */
6428
 
 
6429
 
int
6430
 
main ()
6431
 
{
6432
 
 
6433
 
  ;
6434
 
  return 0;
6435
 
}
6436
 
_ACEOF
6437
 
if ac_fn_c_try_link "$LINENO"; then :
6438
 
  lt_cv_ld_exported_symbols_list=yes
6439
 
else
6440
 
  lt_cv_ld_exported_symbols_list=no
6441
 
fi
6442
 
rm -f core conftest.err conftest.$ac_objext \
6443
 
    conftest$ac_exeext conftest.$ac_ext
6444
 
        LDFLAGS="$save_LDFLAGS"
6445
 
 
6446
 
fi
6447
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6448
 
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6449
 
    case $host_os in
6450
 
    rhapsody* | darwin1.[012])
6451
 
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6452
 
    darwin1.*)
6453
 
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6454
 
    darwin*) # darwin 5.x on
6455
 
      # if running on 10.5 or later, the deployment target defaults
6456
 
      # to the OS version, if on x86, and 10.4, the deployment
6457
 
      # target defaults to 10.4. Don't you love it?
6458
 
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6459
 
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6460
 
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6461
 
        10.[012]*)
6462
 
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6463
 
        10.*)
6464
 
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6465
 
      esac
6466
 
    ;;
6467
 
  esac
6468
 
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6469
 
      _lt_dar_single_mod='$single_module'
6470
 
    fi
6471
 
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6472
 
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6473
 
    else
6474
 
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6475
 
    fi
6476
 
    if test "$DSYMUTIL" != ":"; then
6477
 
      _lt_dsymutil='~$DSYMUTIL $lib || :'
6478
 
    else
6479
 
      _lt_dsymutil=
6480
 
    fi
6481
 
    ;;
6482
 
  esac
6483
 
 
6484
 
ac_ext=c
6485
 
ac_cpp='$CPP $CPPFLAGS'
6486
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6487
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6488
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6489
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6490
 
$as_echo_n "checking how to run the C preprocessor... " >&6; }
6491
 
# On Suns, sometimes $CPP names a directory.
6492
 
if test -n "$CPP" && test -d "$CPP"; then
6493
 
  CPP=
6494
 
fi
6495
 
if test -z "$CPP"; then
6496
 
  if test "${ac_cv_prog_CPP+set}" = set; then :
6497
 
  $as_echo_n "(cached) " >&6
6498
 
else
6499
 
      # Double quotes because CPP needs to be expanded
6500
 
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6501
 
    do
6502
 
      ac_preproc_ok=false
6503
 
for ac_c_preproc_warn_flag in '' yes
6504
 
do
6505
 
  # Use a header file that comes with gcc, so configuring glibc
6506
 
  # with a fresh cross-compiler works.
6507
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6508
 
  # <limits.h> exists even on freestanding compilers.
6509
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
6510
 
  # not just through cpp. "Syntax error" is here to catch this case.
6511
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6512
 
/* end confdefs.h.  */
6513
 
#ifdef __STDC__
6514
 
# include <limits.h>
6515
 
#else
6516
 
# include <assert.h>
6517
 
#endif
6518
 
                     Syntax error
6519
 
_ACEOF
6520
 
if ac_fn_c_try_cpp "$LINENO"; then :
6521
 
 
6522
 
else
6523
 
  # Broken: fails on valid input.
6524
 
continue
6525
 
fi
6526
 
rm -f conftest.err conftest.$ac_ext
6527
 
 
6528
 
  # OK, works on sane cases.  Now check whether nonexistent headers
6529
 
  # can be detected and how.
6530
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6531
 
/* end confdefs.h.  */
6532
 
#include <ac_nonexistent.h>
6533
 
_ACEOF
6534
 
if ac_fn_c_try_cpp "$LINENO"; then :
6535
 
  # Broken: success on invalid input.
6536
 
continue
6537
 
else
6538
 
  # Passes both tests.
6539
 
ac_preproc_ok=:
6540
 
break
6541
 
fi
6542
 
rm -f conftest.err conftest.$ac_ext
6543
 
 
6544
 
done
6545
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6546
 
rm -f conftest.err conftest.$ac_ext
6547
 
if $ac_preproc_ok; then :
6548
 
  break
6549
 
fi
6550
 
 
6551
 
    done
6552
 
    ac_cv_prog_CPP=$CPP
6553
 
 
6554
 
fi
6555
 
  CPP=$ac_cv_prog_CPP
6556
 
else
6557
 
  ac_cv_prog_CPP=$CPP
6558
 
fi
6559
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6560
 
$as_echo "$CPP" >&6; }
6561
 
ac_preproc_ok=false
6562
 
for ac_c_preproc_warn_flag in '' yes
6563
 
do
6564
 
  # Use a header file that comes with gcc, so configuring glibc
6565
 
  # with a fresh cross-compiler works.
6566
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6567
 
  # <limits.h> exists even on freestanding compilers.
6568
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
6569
 
  # not just through cpp. "Syntax error" is here to catch this case.
6570
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6571
 
/* end confdefs.h.  */
6572
 
#ifdef __STDC__
6573
 
# include <limits.h>
6574
 
#else
6575
 
# include <assert.h>
6576
 
#endif
6577
 
                     Syntax error
6578
 
_ACEOF
6579
 
if ac_fn_c_try_cpp "$LINENO"; then :
6580
 
 
6581
 
else
6582
 
  # Broken: fails on valid input.
6583
 
continue
6584
 
fi
6585
 
rm -f conftest.err conftest.$ac_ext
6586
 
 
6587
 
  # OK, works on sane cases.  Now check whether nonexistent headers
6588
 
  # can be detected and how.
6589
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6590
 
/* end confdefs.h.  */
6591
 
#include <ac_nonexistent.h>
6592
 
_ACEOF
6593
 
if ac_fn_c_try_cpp "$LINENO"; then :
6594
 
  # Broken: success on invalid input.
6595
 
continue
6596
 
else
6597
 
  # Passes both tests.
6598
 
ac_preproc_ok=:
6599
 
break
6600
 
fi
6601
 
rm -f conftest.err conftest.$ac_ext
6602
 
 
6603
 
done
6604
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6605
 
rm -f conftest.err conftest.$ac_ext
6606
 
if $ac_preproc_ok; then :
6607
 
 
6608
 
else
6609
 
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6610
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6611
 
as_fn_error "C preprocessor \"$CPP\" fails sanity check
6612
 
See \`config.log' for more details." "$LINENO" 5; }
6613
 
fi
6614
 
 
6615
 
ac_ext=c
6616
 
ac_cpp='$CPP $CPPFLAGS'
6617
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6618
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6619
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6620
 
 
6621
 
 
6622
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6623
 
$as_echo_n "checking for ANSI C header files... " >&6; }
6624
 
if test "${ac_cv_header_stdc+set}" = set; then :
6625
 
  $as_echo_n "(cached) " >&6
6626
 
else
6627
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6628
 
/* end confdefs.h.  */
6629
 
#include <stdlib.h>
6630
 
#include <stdarg.h>
6631
 
#include <string.h>
6632
 
#include <float.h>
6633
 
 
6634
 
int
6635
 
main ()
6636
 
{
6637
 
 
6638
 
  ;
6639
 
  return 0;
6640
 
}
6641
 
_ACEOF
6642
 
if ac_fn_c_try_compile "$LINENO"; then :
6643
 
  ac_cv_header_stdc=yes
6644
 
else
6645
 
  ac_cv_header_stdc=no
6646
 
fi
6647
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6648
 
 
6649
 
if test $ac_cv_header_stdc = yes; then
6650
 
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6651
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6652
 
/* end confdefs.h.  */
6653
 
#include <string.h>
6654
 
 
6655
 
_ACEOF
6656
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6657
 
  $EGREP "memchr" >/dev/null 2>&1; then :
6658
 
 
6659
 
else
6660
 
  ac_cv_header_stdc=no
6661
 
fi
6662
 
rm -f conftest*
6663
 
 
6664
 
fi
6665
 
 
6666
 
if test $ac_cv_header_stdc = yes; then
6667
 
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6668
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6669
 
/* end confdefs.h.  */
6670
 
#include <stdlib.h>
6671
 
 
6672
 
_ACEOF
6673
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6674
 
  $EGREP "free" >/dev/null 2>&1; then :
6675
 
 
6676
 
else
6677
 
  ac_cv_header_stdc=no
6678
 
fi
6679
 
rm -f conftest*
6680
 
 
6681
 
fi
6682
 
 
6683
 
if test $ac_cv_header_stdc = yes; then
6684
 
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6685
 
  if test "$cross_compiling" = yes; then :
6686
 
  :
6687
 
else
6688
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6689
 
/* end confdefs.h.  */
6690
 
#include <ctype.h>
6691
 
#include <stdlib.h>
6692
 
#if ((' ' & 0x0FF) == 0x020)
6693
 
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6694
 
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6695
 
#else
6696
 
# define ISLOWER(c) \
6697
 
                   (('a' <= (c) && (c) <= 'i') \
6698
 
                     || ('j' <= (c) && (c) <= 'r') \
6699
 
                     || ('s' <= (c) && (c) <= 'z'))
6700
 
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6701
 
#endif
6702
 
 
6703
 
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6704
 
int
6705
 
main ()
6706
 
{
6707
 
  int i;
6708
 
  for (i = 0; i < 256; i++)
6709
 
    if (XOR (islower (i), ISLOWER (i))
6710
 
        || toupper (i) != TOUPPER (i))
6711
 
      return 2;
6712
 
  return 0;
6713
 
}
6714
 
_ACEOF
6715
 
if ac_fn_c_try_run "$LINENO"; then :
6716
 
 
6717
 
else
6718
 
  ac_cv_header_stdc=no
6719
 
fi
6720
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6721
 
  conftest.$ac_objext conftest.beam conftest.$ac_ext
6722
 
fi
6723
 
 
6724
 
fi
6725
 
fi
6726
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6727
 
$as_echo "$ac_cv_header_stdc" >&6; }
6728
 
if test $ac_cv_header_stdc = yes; then
6729
 
 
6730
 
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6731
 
 
6732
 
fi
6733
 
 
6734
 
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6735
 
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6736
 
                  inttypes.h stdint.h unistd.h
6737
 
do :
6738
 
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6739
 
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6740
 
"
6741
 
eval as_val=\$$as_ac_Header
6742
 
   if test "x$as_val" = x""yes; then :
6743
 
  cat >>confdefs.h <<_ACEOF
6744
 
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6745
 
_ACEOF
6746
 
 
6747
 
fi
6748
 
 
6749
 
done
6750
 
 
6751
 
 
6752
 
for ac_header in dlfcn.h
6753
 
do :
6754
 
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6755
 
"
6756
 
if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6757
 
  cat >>confdefs.h <<_ACEOF
6758
 
#define HAVE_DLFCN_H 1
6759
 
_ACEOF
6760
 
 
6761
 
fi
6762
 
 
6763
 
done
6764
 
 
6765
 
 
6766
 
 
6767
 
# Set options
6768
 
 
6769
 
 
6770
 
 
6771
 
        enable_dlopen=no
6772
 
 
6773
 
 
6774
 
  enable_win32_dll=no
6775
 
 
6776
 
 
6777
 
            # Check whether --enable-shared was given.
6778
 
if test "${enable_shared+set}" = set; then :
6779
 
  enableval=$enable_shared; p=${PACKAGE-default}
6780
 
    case $enableval in
6781
 
    yes) enable_shared=yes ;;
6782
 
    no) enable_shared=no ;;
6783
 
    *)
6784
 
      enable_shared=no
6785
 
      # Look at the argument we got.  We use all the common list separators.
6786
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6787
 
      for pkg in $enableval; do
6788
 
        IFS="$lt_save_ifs"
6789
 
        if test "X$pkg" = "X$p"; then
6790
 
          enable_shared=yes
6791
 
        fi
6792
 
      done
6793
 
      IFS="$lt_save_ifs"
6794
 
      ;;
6795
 
    esac
6796
 
else
6797
 
  enable_shared=yes
6798
 
fi
6799
 
 
6800
 
 
6801
 
 
6802
 
 
6803
 
 
6804
 
 
6805
 
 
6806
 
 
6807
 
 
6808
 
 
6809
 
 
6810
 
# Check whether --with-pic was given.
6811
 
if test "${with_pic+set}" = set; then :
6812
 
  withval=$with_pic; pic_mode="$withval"
6813
 
else
6814
 
  pic_mode=default
6815
 
fi
6816
 
 
6817
 
 
6818
 
test -z "$pic_mode" && pic_mode=default
6819
 
 
6820
 
 
6821
 
 
6822
 
 
6823
 
 
6824
 
 
6825
 
 
6826
 
  # Check whether --enable-fast-install was given.
6827
 
if test "${enable_fast_install+set}" = set; then :
6828
 
  enableval=$enable_fast_install; p=${PACKAGE-default}
6829
 
    case $enableval in
6830
 
    yes) enable_fast_install=yes ;;
6831
 
    no) enable_fast_install=no ;;
6832
 
    *)
6833
 
      enable_fast_install=no
6834
 
      # Look at the argument we got.  We use all the common list separators.
6835
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6836
 
      for pkg in $enableval; do
6837
 
        IFS="$lt_save_ifs"
6838
 
        if test "X$pkg" = "X$p"; then
6839
 
          enable_fast_install=yes
6840
 
        fi
6841
 
      done
6842
 
      IFS="$lt_save_ifs"
6843
 
      ;;
6844
 
    esac
6845
 
else
6846
 
  enable_fast_install=yes
6847
 
fi
6848
 
 
6849
 
 
6850
 
 
6851
 
 
6852
 
 
6853
 
 
6854
 
 
6855
 
 
6856
 
 
6857
 
 
6858
 
 
6859
 
# This can be used to rebuild libtool when needed
6860
 
LIBTOOL_DEPS="$ltmain"
6861
 
 
6862
 
# Always use our own libtool.
6863
 
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6864
 
 
6865
 
 
6866
 
 
6867
 
 
6868
 
 
6869
 
 
6870
 
 
6871
 
 
6872
 
 
6873
 
 
6874
 
 
6875
 
 
6876
 
 
6877
 
 
6878
 
 
6879
 
 
6880
 
 
6881
 
 
6882
 
 
6883
 
 
6884
 
 
6885
 
 
6886
 
 
6887
 
 
6888
 
 
6889
 
test -z "$LN_S" && LN_S="ln -s"
6890
 
 
6891
 
 
6892
 
 
6893
 
 
6894
 
 
6895
 
 
6896
 
 
6897
 
 
6898
 
 
6899
 
 
6900
 
 
6901
 
 
6902
 
 
6903
 
 
6904
 
if test -n "${ZSH_VERSION+set}" ; then
6905
 
   setopt NO_GLOB_SUBST
6906
 
fi
6907
 
 
6908
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6909
 
$as_echo_n "checking for objdir... " >&6; }
6910
 
if test "${lt_cv_objdir+set}" = set; then :
6911
 
  $as_echo_n "(cached) " >&6
 
6517
  { echo "$as_me:$LINENO: result: failed" >&5
 
6518
echo "${ECHO_T}failed" >&6; }
 
6519
else
 
6520
  { echo "$as_me:$LINENO: result: ok" >&5
 
6521
echo "${ECHO_T}ok" >&6; }
 
6522
fi
 
6523
 
 
6524
{ echo "$as_me:$LINENO: checking for objdir" >&5
 
6525
echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
 
6526
if test "${lt_cv_objdir+set}" = set; then
 
6527
  echo $ECHO_N "(cached) $ECHO_C" >&6
6912
6528
else
6913
6529
  rm -f .libs 2>/dev/null
6914
6530
mkdir .libs 2>/dev/null
6920
6536
fi
6921
6537
rmdir .libs 2>/dev/null
6922
6538
fi
6923
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6924
 
$as_echo "$lt_cv_objdir" >&6; }
 
6539
{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
6540
echo "${ECHO_T}$lt_cv_objdir" >&6; }
6925
6541
objdir=$lt_cv_objdir
6926
6542
 
6927
6543
 
6928
6544
 
6929
6545
 
6930
6546
 
6931
 
cat >>confdefs.h <<_ACEOF
6932
 
#define LT_OBJDIR "$lt_cv_objdir/"
6933
 
_ACEOF
6934
 
 
6935
 
 
6936
 
 
6937
 
 
6938
 
 
6939
 
 
6940
 
 
6941
 
 
6942
 
 
6943
 
 
6944
 
 
6945
 
 
6946
 
 
6947
 
 
6948
 
 
6949
 
 
6950
 
 
6951
6547
case $host_os in
6952
6548
aix3*)
6953
6549
  # AIX sometimes has problems with the GCC collect2 program.  For some
6962
6558
 
6963
6559
# Sed substitution that helps us do robust quoting.  It backslashifies
6964
6560
# metacharacters that are still active within double-quoted strings.
6965
 
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
 
6561
Xsed='sed -e 1s/^X//'
 
6562
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6966
6563
 
6967
6564
# Same as above, but do not quote variable references.
6968
 
double_quote_subst='s/\(["`\\]\)/\\\1/g'
 
6565
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6969
6566
 
6970
6567
# Sed substitution to delay expansion of an escaped shell variable in a
6971
6568
# double_quote_subst'ed string.
6972
6569
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6973
6570
 
6974
 
# Sed substitution to delay expansion of an escaped single quote.
6975
 
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6976
 
 
6977
6571
# Sed substitution to avoid accidental globbing in evaled expressions
6978
6572
no_glob_subst='s/\*/\\\*/g'
6979
6573
 
 
6574
# Constants:
 
6575
rm="rm -f"
 
6576
 
6980
6577
# Global variables:
6981
 
ofile=libtool
 
6578
default_ofile=libtool
6982
6579
can_build_shared=yes
6983
6580
 
6984
6581
# All known linkers require a `.a' archive for static linking (except MSVC,
6985
6582
# which needs '.lib').
6986
6583
libext=a
6987
 
 
 
6584
ltmain="$ac_aux_dir/ltmain.sh"
 
6585
ofile="$default_ofile"
6988
6586
with_gnu_ld="$lt_cv_prog_gnu_ld"
6989
6587
 
 
6588
if test -n "$ac_tool_prefix"; then
 
6589
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
6590
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
6591
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6592
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6593
if test "${ac_cv_prog_AR+set}" = set; then
 
6594
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6595
else
 
6596
  if test -n "$AR"; then
 
6597
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
6598
else
 
6599
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6600
for as_dir in $PATH
 
6601
do
 
6602
  IFS=$as_save_IFS
 
6603
  test -z "$as_dir" && as_dir=.
 
6604
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6605
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6606
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
6607
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6608
    break 2
 
6609
  fi
 
6610
done
 
6611
done
 
6612
IFS=$as_save_IFS
 
6613
 
 
6614
fi
 
6615
fi
 
6616
AR=$ac_cv_prog_AR
 
6617
if test -n "$AR"; then
 
6618
  { echo "$as_me:$LINENO: result: $AR" >&5
 
6619
echo "${ECHO_T}$AR" >&6; }
 
6620
else
 
6621
  { echo "$as_me:$LINENO: result: no" >&5
 
6622
echo "${ECHO_T}no" >&6; }
 
6623
fi
 
6624
 
 
6625
 
 
6626
fi
 
6627
if test -z "$ac_cv_prog_AR"; then
 
6628
  ac_ct_AR=$AR
 
6629
  # Extract the first word of "ar", so it can be a program name with args.
 
6630
set dummy ar; ac_word=$2
 
6631
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6632
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6633
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
6634
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6635
else
 
6636
  if test -n "$ac_ct_AR"; then
 
6637
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
6638
else
 
6639
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6640
for as_dir in $PATH
 
6641
do
 
6642
  IFS=$as_save_IFS
 
6643
  test -z "$as_dir" && as_dir=.
 
6644
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6645
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6646
    ac_cv_prog_ac_ct_AR="ar"
 
6647
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6648
    break 2
 
6649
  fi
 
6650
done
 
6651
done
 
6652
IFS=$as_save_IFS
 
6653
 
 
6654
fi
 
6655
fi
 
6656
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
6657
if test -n "$ac_ct_AR"; then
 
6658
  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
6659
echo "${ECHO_T}$ac_ct_AR" >&6; }
 
6660
else
 
6661
  { echo "$as_me:$LINENO: result: no" >&5
 
6662
echo "${ECHO_T}no" >&6; }
 
6663
fi
 
6664
 
 
6665
  if test "x$ac_ct_AR" = x; then
 
6666
    AR="false"
 
6667
  else
 
6668
    case $cross_compiling:$ac_tool_warned in
 
6669
yes:)
 
6670
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
6671
whose name does not start with the host triplet.  If you think this
 
6672
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
6673
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
6674
whose name does not start with the host triplet.  If you think this
 
6675
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
6676
ac_tool_warned=yes ;;
 
6677
esac
 
6678
    AR=$ac_ct_AR
 
6679
  fi
 
6680
else
 
6681
  AR="$ac_cv_prog_AR"
 
6682
fi
 
6683
 
 
6684
if test -n "$ac_tool_prefix"; then
 
6685
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
6686
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
6687
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6688
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6689
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
6690
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6691
else
 
6692
  if test -n "$RANLIB"; then
 
6693
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
6694
else
 
6695
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6696
for as_dir in $PATH
 
6697
do
 
6698
  IFS=$as_save_IFS
 
6699
  test -z "$as_dir" && as_dir=.
 
6700
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6701
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6702
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
6703
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6704
    break 2
 
6705
  fi
 
6706
done
 
6707
done
 
6708
IFS=$as_save_IFS
 
6709
 
 
6710
fi
 
6711
fi
 
6712
RANLIB=$ac_cv_prog_RANLIB
 
6713
if test -n "$RANLIB"; then
 
6714
  { echo "$as_me:$LINENO: result: $RANLIB" >&5
 
6715
echo "${ECHO_T}$RANLIB" >&6; }
 
6716
else
 
6717
  { echo "$as_me:$LINENO: result: no" >&5
 
6718
echo "${ECHO_T}no" >&6; }
 
6719
fi
 
6720
 
 
6721
 
 
6722
fi
 
6723
if test -z "$ac_cv_prog_RANLIB"; then
 
6724
  ac_ct_RANLIB=$RANLIB
 
6725
  # Extract the first word of "ranlib", so it can be a program name with args.
 
6726
set dummy ranlib; ac_word=$2
 
6727
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6728
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6729
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
6730
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6731
else
 
6732
  if test -n "$ac_ct_RANLIB"; then
 
6733
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
6734
else
 
6735
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6736
for as_dir in $PATH
 
6737
do
 
6738
  IFS=$as_save_IFS
 
6739
  test -z "$as_dir" && as_dir=.
 
6740
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6741
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6742
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
6743
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6744
    break 2
 
6745
  fi
 
6746
done
 
6747
done
 
6748
IFS=$as_save_IFS
 
6749
 
 
6750
fi
 
6751
fi
 
6752
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
6753
if test -n "$ac_ct_RANLIB"; then
 
6754
  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
6755
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
 
6756
else
 
6757
  { echo "$as_me:$LINENO: result: no" >&5
 
6758
echo "${ECHO_T}no" >&6; }
 
6759
fi
 
6760
 
 
6761
  if test "x$ac_ct_RANLIB" = x; then
 
6762
    RANLIB=":"
 
6763
  else
 
6764
    case $cross_compiling:$ac_tool_warned in
 
6765
yes:)
 
6766
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
6767
whose name does not start with the host triplet.  If you think this
 
6768
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
6769
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
6770
whose name does not start with the host triplet.  If you think this
 
6771
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
6772
ac_tool_warned=yes ;;
 
6773
esac
 
6774
    RANLIB=$ac_ct_RANLIB
 
6775
  fi
 
6776
else
 
6777
  RANLIB="$ac_cv_prog_RANLIB"
 
6778
fi
 
6779
 
 
6780
if test -n "$ac_tool_prefix"; then
 
6781
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
6782
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
6783
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6784
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6785
if test "${ac_cv_prog_STRIP+set}" = set; then
 
6786
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6787
else
 
6788
  if test -n "$STRIP"; then
 
6789
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
6790
else
 
6791
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6792
for as_dir in $PATH
 
6793
do
 
6794
  IFS=$as_save_IFS
 
6795
  test -z "$as_dir" && as_dir=.
 
6796
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6797
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6798
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
6799
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6800
    break 2
 
6801
  fi
 
6802
done
 
6803
done
 
6804
IFS=$as_save_IFS
 
6805
 
 
6806
fi
 
6807
fi
 
6808
STRIP=$ac_cv_prog_STRIP
 
6809
if test -n "$STRIP"; then
 
6810
  { echo "$as_me:$LINENO: result: $STRIP" >&5
 
6811
echo "${ECHO_T}$STRIP" >&6; }
 
6812
else
 
6813
  { echo "$as_me:$LINENO: result: no" >&5
 
6814
echo "${ECHO_T}no" >&6; }
 
6815
fi
 
6816
 
 
6817
 
 
6818
fi
 
6819
if test -z "$ac_cv_prog_STRIP"; then
 
6820
  ac_ct_STRIP=$STRIP
 
6821
  # Extract the first word of "strip", so it can be a program name with args.
 
6822
set dummy strip; ac_word=$2
 
6823
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6824
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6825
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
6826
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6827
else
 
6828
  if test -n "$ac_ct_STRIP"; then
 
6829
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
6830
else
 
6831
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6832
for as_dir in $PATH
 
6833
do
 
6834
  IFS=$as_save_IFS
 
6835
  test -z "$as_dir" && as_dir=.
 
6836
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6837
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6838
    ac_cv_prog_ac_ct_STRIP="strip"
 
6839
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6840
    break 2
 
6841
  fi
 
6842
done
 
6843
done
 
6844
IFS=$as_save_IFS
 
6845
 
 
6846
fi
 
6847
fi
 
6848
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
6849
if test -n "$ac_ct_STRIP"; then
 
6850
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
6851
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
 
6852
else
 
6853
  { echo "$as_me:$LINENO: result: no" >&5
 
6854
echo "${ECHO_T}no" >&6; }
 
6855
fi
 
6856
 
 
6857
  if test "x$ac_ct_STRIP" = x; then
 
6858
    STRIP=":"
 
6859
  else
 
6860
    case $cross_compiling:$ac_tool_warned in
 
6861
yes:)
 
6862
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
6863
whose name does not start with the host triplet.  If you think this
 
6864
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
6865
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
6866
whose name does not start with the host triplet.  If you think this
 
6867
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
6868
ac_tool_warned=yes ;;
 
6869
esac
 
6870
    STRIP=$ac_ct_STRIP
 
6871
  fi
 
6872
else
 
6873
  STRIP="$ac_cv_prog_STRIP"
 
6874
fi
 
6875
 
 
6876
 
6990
6877
old_CC="$CC"
6991
6878
old_CFLAGS="$CFLAGS"
6992
6879
 
6993
6880
# Set sane defaults for various variables
 
6881
test -z "$AR" && AR=ar
 
6882
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
6883
test -z "$AS" && AS=as
6994
6884
test -z "$CC" && CC=cc
6995
6885
test -z "$LTCC" && LTCC=$CC
6996
6886
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
6887
test -z "$DLLTOOL" && DLLTOOL=dlltool
6997
6888
test -z "$LD" && LD=ld
 
6889
test -z "$LN_S" && LN_S="ln -s"
 
6890
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
6891
test -z "$NM" && NM=nm
 
6892
test -z "$SED" && SED=sed
 
6893
test -z "$OBJDUMP" && OBJDUMP=objdump
 
6894
test -z "$RANLIB" && RANLIB=:
 
6895
test -z "$STRIP" && STRIP=:
6998
6896
test -z "$ac_objext" && ac_objext=o
6999
6897
 
 
6898
# Determine commands to create old-style static archives.
 
6899
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 
6900
old_postinstall_cmds='chmod 644 $oldlib'
 
6901
old_postuninstall_cmds=
 
6902
 
 
6903
if test -n "$RANLIB"; then
 
6904
  case $host_os in
 
6905
  openbsd*)
 
6906
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
6907
    ;;
 
6908
  *)
 
6909
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
6910
    ;;
 
6911
  esac
 
6912
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
6913
fi
 
6914
 
7000
6915
for cc_temp in $compiler""; do
7001
6916
  case $cc_temp in
7002
6917
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7005
6920
    *) break;;
7006
6921
  esac
7007
6922
done
7008
 
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
6923
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7009
6924
 
7010
6925
 
7011
6926
# Only perform the check for file, if the check method requires it
7012
 
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7013
6927
case $deplibs_check_method in
7014
6928
file_magic*)
7015
6929
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7016
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7017
 
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7018
 
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7019
 
  $as_echo_n "(cached) " >&6
 
6930
    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
6931
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
 
6932
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
6933
  echo $ECHO_N "(cached) $ECHO_C" >&6
7020
6934
else
7021
6935
  case $MAGIC_CMD in
7022
6936
[\\/*] |  ?:[\\/]*)
7040
6954
            $EGREP "$file_magic_regex" > /dev/null; then
7041
6955
            :
7042
6956
          else
7043
 
            cat <<_LT_EOF 1>&2
 
6957
            cat <<EOF 1>&2
7044
6958
 
7045
6959
*** Warning: the command libtool uses to detect shared libraries,
7046
6960
*** $file_magic_cmd, produces output that libtool cannot recognize.
7051
6965
*** may want to report the problem to your system manager and/or to
7052
6966
*** bug-libtool@gnu.org
7053
6967
 
7054
 
_LT_EOF
 
6968
EOF
7055
6969
          fi ;;
7056
6970
        esac
7057
6971
      fi
7066
6980
 
7067
6981
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7068
6982
if test -n "$MAGIC_CMD"; then
7069
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7070
 
$as_echo "$MAGIC_CMD" >&6; }
 
6983
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
6984
echo "${ECHO_T}$MAGIC_CMD" >&6; }
7071
6985
else
7072
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7073
 
$as_echo "no" >&6; }
 
6986
  { echo "$as_me:$LINENO: result: no" >&5
 
6987
echo "${ECHO_T}no" >&6; }
7074
6988
fi
7075
6989
 
7076
 
 
7077
 
 
7078
 
 
7079
 
 
7080
6990
if test -z "$lt_cv_path_MAGIC_CMD"; then
7081
6991
  if test -n "$ac_tool_prefix"; then
7082
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7083
 
$as_echo_n "checking for file... " >&6; }
7084
 
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7085
 
  $as_echo_n "(cached) " >&6
 
6992
    { echo "$as_me:$LINENO: checking for file" >&5
 
6993
echo $ECHO_N "checking for file... $ECHO_C" >&6; }
 
6994
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
6995
  echo $ECHO_N "(cached) $ECHO_C" >&6
7086
6996
else
7087
6997
  case $MAGIC_CMD in
7088
6998
[\\/*] |  ?:[\\/]*)
7106
7016
            $EGREP "$file_magic_regex" > /dev/null; then
7107
7017
            :
7108
7018
          else
7109
 
            cat <<_LT_EOF 1>&2
 
7019
            cat <<EOF 1>&2
7110
7020
 
7111
7021
*** Warning: the command libtool uses to detect shared libraries,
7112
7022
*** $file_magic_cmd, produces output that libtool cannot recognize.
7117
7027
*** may want to report the problem to your system manager and/or to
7118
7028
*** bug-libtool@gnu.org
7119
7029
 
7120
 
_LT_EOF
 
7030
EOF
7121
7031
          fi ;;
7122
7032
        esac
7123
7033
      fi
7132
7042
 
7133
7043
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7134
7044
if test -n "$MAGIC_CMD"; then
7135
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7136
 
$as_echo "$MAGIC_CMD" >&6; }
 
7045
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
7046
echo "${ECHO_T}$MAGIC_CMD" >&6; }
7137
7047
else
7138
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7139
 
$as_echo "no" >&6; }
 
7048
  { echo "$as_me:$LINENO: result: no" >&5
 
7049
echo "${ECHO_T}no" >&6; }
7140
7050
fi
7141
7051
 
7142
 
 
7143
7052
  else
7144
7053
    MAGIC_CMD=:
7145
7054
  fi
7149
7058
  ;;
7150
7059
esac
7151
7060
 
 
7061
enable_dlopen=no
 
7062
enable_win32_dll=no
 
7063
 
 
7064
# Check whether --enable-libtool-lock was given.
 
7065
if test "${enable_libtool_lock+set}" = set; then
 
7066
  enableval=$enable_libtool_lock;
 
7067
fi
 
7068
 
 
7069
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
7070
 
 
7071
 
 
7072
# Check whether --with-pic was given.
 
7073
if test "${with_pic+set}" = set; then
 
7074
  withval=$with_pic; pic_mode="$withval"
 
7075
else
 
7076
  pic_mode=default
 
7077
fi
 
7078
 
 
7079
test -z "$pic_mode" && pic_mode=default
 
7080
 
7152
7081
# Use C for the default configuration in the libtool script
7153
 
 
 
7082
tagname=
7154
7083
lt_save_CC="$CC"
7155
7084
ac_ext=c
7156
7085
ac_cpp='$CPP $CPPFLAGS'
7167
7096
objext=$objext
7168
7097
 
7169
7098
# Code to be used in simple compile tests
7170
 
lt_simple_compile_test_code="int some_variable = 0;"
 
7099
lt_simple_compile_test_code="int some_variable = 0;\n"
7171
7100
 
7172
7101
# Code to be used in simple link tests
7173
 
lt_simple_link_test_code='int main(){return(0);}'
7174
 
 
7175
 
 
7176
 
 
7177
 
 
7178
 
 
 
7102
lt_simple_link_test_code='int main(){return(0);}\n'
7179
7103
 
7180
7104
 
7181
7105
# If no C compiler was specified, use CC.
7187
7111
# Allow CC to be a program name with arguments.
7188
7112
compiler=$CC
7189
7113
 
7190
 
# Save the default compiler, since it gets overwritten when the other
7191
 
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7192
 
compiler_DEFAULT=$CC
7193
7114
 
7194
7115
# save warnings/boilerplate of simple test code
7195
7116
ac_outfile=conftest.$ac_objext
7196
 
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
7117
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7197
7118
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7198
7119
_lt_compiler_boilerplate=`cat conftest.err`
7199
 
$RM conftest*
 
7120
$rm conftest*
7200
7121
 
7201
7122
ac_outfile=conftest.$ac_objext
7202
 
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
7123
printf "$lt_simple_link_test_code" >conftest.$ac_ext
7203
7124
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7204
7125
_lt_linker_boilerplate=`cat conftest.err`
7205
 
$RM -r conftest*
7206
 
 
7207
 
 
7208
 
if test -n "$compiler"; then
 
7126
$rm conftest*
 
7127
 
 
7128
 
7209
7129
 
7210
7130
lt_prog_compiler_no_builtin_flag=
7211
7131
 
7212
7132
if test "$GCC" = yes; then
7213
7133
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7214
7134
 
7215
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7216
 
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7217
 
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7218
 
  $as_echo_n "(cached) " >&6
 
7135
 
 
7136
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
7137
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
 
7138
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
7139
  echo $ECHO_N "(cached) $ECHO_C" >&6
7219
7140
else
7220
7141
  lt_cv_prog_compiler_rtti_exceptions=no
7221
 
   ac_outfile=conftest.$ac_objext
7222
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7142
  ac_outfile=conftest.$ac_objext
 
7143
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7223
7144
   lt_compiler_flag="-fno-rtti -fno-exceptions"
7224
7145
   # Insert the option either (1) after the last *FLAGS variable, or
7225
7146
   # (2) before a word containing "conftest.", or (3) at the end.
7230
7151
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7231
7152
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7232
7153
   -e 's:$: $lt_compiler_flag:'`
7233
 
   (eval echo "\"\$as_me:7233: $lt_compile\"" >&5)
 
7154
   (eval echo "\"\$as_me:7154: $lt_compile\"" >&5)
7234
7155
   (eval "$lt_compile" 2>conftest.err)
7235
7156
   ac_status=$?
7236
7157
   cat conftest.err >&5
7237
 
   echo "$as_me:7237: \$? = $ac_status" >&5
 
7158
   echo "$as_me:7158: \$? = $ac_status" >&5
7238
7159
   if (exit $ac_status) && test -s "$ac_outfile"; then
7239
7160
     # The compiler can only warn and ignore the option if not recognized
7240
7161
     # So say no if there are warnings other than the usual output.
7241
 
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
7162
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7242
7163
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7243
7164
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7244
7165
       lt_cv_prog_compiler_rtti_exceptions=yes
7245
7166
     fi
7246
7167
   fi
7247
 
   $RM conftest*
 
7168
   $rm conftest*
7248
7169
 
7249
7170
fi
7250
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7251
 
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
7171
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
7172
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7252
7173
 
7253
7174
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7254
7175
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7258
7179
 
7259
7180
fi
7260
7181
 
7261
 
 
7262
 
 
7263
 
 
7264
 
 
7265
 
 
7266
 
  lt_prog_compiler_wl=
 
7182
lt_prog_compiler_wl=
7267
7183
lt_prog_compiler_pic=
7268
7184
lt_prog_compiler_static=
7269
7185
 
7270
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7271
 
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
7186
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
7187
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7272
7188
 
7273
7189
  if test "$GCC" = yes; then
7274
7190
    lt_prog_compiler_wl='-Wl,'
7284
7200
      ;;
7285
7201
 
7286
7202
    amigaos*)
7287
 
      case $host_cpu in
7288
 
      powerpc)
7289
 
            # see comment about AmigaOS4 .so support
7290
 
            lt_prog_compiler_pic='-fPIC'
7291
 
        ;;
7292
 
      m68k)
7293
 
            # FIXME: we need at least 68020 code to build shared libraries, but
7294
 
            # adding the `-m68020' flag to GCC prevents building anything better,
7295
 
            # like `-m68040'.
7296
 
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7297
 
        ;;
7298
 
      esac
 
7203
      # FIXME: we need at least 68020 code to build shared libraries, but
 
7204
      # adding the `-m68020' flag to GCC prevents building anything better,
 
7205
      # like `-m68040'.
 
7206
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7299
7207
      ;;
7300
7208
 
7301
 
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
7209
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7302
7210
      # PIC is the default for these OSes.
7303
7211
      ;;
7304
7212
 
7305
 
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
7213
    mingw* | pw32* | os2*)
7306
7214
      # This hack is so that the source file can tell whether it is being
7307
7215
      # built for inclusion in a dll (and should export symbols for example).
7308
 
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7309
 
      # (--disable-auto-import) libraries
7310
7216
      lt_prog_compiler_pic='-DDLL_EXPORT'
7311
7217
      ;;
7312
7218
 
7316
7222
      lt_prog_compiler_pic='-fno-common'
7317
7223
      ;;
7318
7224
 
7319
 
    hpux*)
7320
 
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7321
 
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7322
 
      # sets the default TLS model and affects inlining.
7323
 
      case $host_cpu in
7324
 
      hppa*64*)
7325
 
        # +Z the default
7326
 
        ;;
7327
 
      *)
7328
 
        lt_prog_compiler_pic='-fPIC'
7329
 
        ;;
7330
 
      esac
7331
 
      ;;
7332
 
 
7333
 
    interix[3-9]*)
 
7225
    interix3*)
7334
7226
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7335
7227
      # Instead, we relocate shared libraries at runtime.
7336
7228
      ;;
7342
7234
      enable_shared=no
7343
7235
      ;;
7344
7236
 
7345
 
    *nto* | *qnx*)
7346
 
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7347
 
      # it will coredump.
7348
 
      lt_prog_compiler_pic='-fPIC -shared'
7349
 
      ;;
7350
 
 
7351
7237
    sysv4*MP*)
7352
7238
      if test -d /usr/nec; then
7353
7239
        lt_prog_compiler_pic=-Kconform_pic
7354
7240
      fi
7355
7241
      ;;
7356
7242
 
 
7243
    hpux*)
 
7244
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
7245
      # not for PA HP-UX.
 
7246
      case $host_cpu in
 
7247
      hppa*64*|ia64*)
 
7248
        # +Z the default
 
7249
        ;;
 
7250
      *)
 
7251
        lt_prog_compiler_pic='-fPIC'
 
7252
        ;;
 
7253
      esac
 
7254
      ;;
 
7255
 
7357
7256
    *)
7358
7257
      lt_prog_compiler_pic='-fPIC'
7359
7258
      ;;
7370
7269
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7371
7270
      fi
7372
7271
      ;;
 
7272
      darwin*)
 
7273
        # PIC is the default on this platform
 
7274
        # Common symbols not allowed in MH_DYLIB files
 
7275
       case $cc_basename in
 
7276
         xlc*)
 
7277
         lt_prog_compiler_pic='-qnocommon'
 
7278
         lt_prog_compiler_wl='-Wl,'
 
7279
         ;;
 
7280
       esac
 
7281
       ;;
7373
7282
 
7374
 
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
7283
    mingw* | pw32* | os2*)
7375
7284
      # This hack is so that the source file can tell whether it is being
7376
7285
      # built for inclusion in a dll (and should export symbols for example).
7377
7286
      lt_prog_compiler_pic='-DDLL_EXPORT'
7399
7308
      lt_prog_compiler_static='-non_shared'
7400
7309
      ;;
7401
7310
 
7402
 
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
7311
    newsos6)
 
7312
      lt_prog_compiler_pic='-KPIC'
 
7313
      lt_prog_compiler_static='-Bstatic'
 
7314
      ;;
 
7315
 
 
7316
    linux* | k*bsd*-gnu)
7403
7317
      case $cc_basename in
7404
 
      # old Intel for x86_64 which still supported -KPIC.
7405
 
      ecc*)
 
7318
      icc* | ecc*)
7406
7319
        lt_prog_compiler_wl='-Wl,'
7407
7320
        lt_prog_compiler_pic='-KPIC'
7408
7321
        lt_prog_compiler_static='-static'
7409
7322
        ;;
7410
 
      # icc used to be incompatible with GCC.
7411
 
      # ICC 10 doesn't accept -KPIC any more.
7412
 
      icc* | ifort*)
7413
 
        lt_prog_compiler_wl='-Wl,'
7414
 
        lt_prog_compiler_pic='-fPIC'
7415
 
        lt_prog_compiler_static='-static'
7416
 
        ;;
7417
 
      # Lahey Fortran 8.1.
7418
 
      lf95*)
7419
 
        lt_prog_compiler_wl='-Wl,'
7420
 
        lt_prog_compiler_pic='--shared'
7421
 
        lt_prog_compiler_static='--static'
7422
 
        ;;
7423
7323
      pgcc* | pgf77* | pgf90* | pgf95*)
7424
7324
        # Portland Group compilers (*not* the Pentium gcc compiler,
7425
7325
        # which looks to be a dead project)
7432
7332
        # All Alpha code is PIC.
7433
7333
        lt_prog_compiler_static='-non_shared'
7434
7334
        ;;
7435
 
      xl*)
7436
 
        # IBM XL C 8.0/Fortran 10.1 on PPC
7437
 
        lt_prog_compiler_wl='-Wl,'
7438
 
        lt_prog_compiler_pic='-qpic'
7439
 
        lt_prog_compiler_static='-qstaticlink'
7440
 
        ;;
7441
 
      *)
7442
 
        case `$CC -V 2>&1 | sed 5q` in
7443
 
        *Sun\ C*)
7444
 
          # Sun C 5.9
7445
 
          lt_prog_compiler_pic='-KPIC'
7446
 
          lt_prog_compiler_static='-Bstatic'
7447
 
          lt_prog_compiler_wl='-Wl,'
7448
 
          ;;
7449
 
        *Sun\ F*)
7450
 
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
7451
 
          lt_prog_compiler_pic='-KPIC'
7452
 
          lt_prog_compiler_static='-Bstatic'
7453
 
          lt_prog_compiler_wl=''
7454
 
          ;;
7455
 
        esac
7456
 
        ;;
7457
7335
      esac
7458
7336
      ;;
7459
7337
 
7460
 
    newsos6)
7461
 
      lt_prog_compiler_pic='-KPIC'
7462
 
      lt_prog_compiler_static='-Bstatic'
7463
 
      ;;
7464
 
 
7465
 
    *nto* | *qnx*)
7466
 
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7467
 
      # it will coredump.
7468
 
      lt_prog_compiler_pic='-fPIC -shared'
7469
 
      ;;
7470
 
 
7471
7338
    osf3* | osf4* | osf5*)
7472
7339
      lt_prog_compiler_wl='-Wl,'
7473
7340
      # All OSF/1 code is PIC.
7474
7341
      lt_prog_compiler_static='-non_shared'
7475
7342
      ;;
7476
7343
 
7477
 
    rdos*)
7478
 
      lt_prog_compiler_static='-non_shared'
7479
 
      ;;
7480
 
 
7481
7344
    solaris*)
7482
7345
      lt_prog_compiler_pic='-KPIC'
7483
7346
      lt_prog_compiler_static='-Bstatic'
7530
7393
    esac
7531
7394
  fi
7532
7395
 
7533
 
case $host_os in
7534
 
  # For platforms which do not support PIC, -DPIC is meaningless:
7535
 
  *djgpp*)
7536
 
    lt_prog_compiler_pic=
7537
 
    ;;
7538
 
  *)
7539
 
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7540
 
    ;;
7541
 
esac
7542
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7543
 
$as_echo "$lt_prog_compiler_pic" >&6; }
7544
 
 
7545
 
 
7546
 
 
7547
 
 
7548
 
 
 
7396
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
 
7397
echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7549
7398
 
7550
7399
#
7551
7400
# Check to make sure the PIC flag actually works.
7552
7401
#
7553
7402
if test -n "$lt_prog_compiler_pic"; then
7554
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7555
 
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7556
 
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7557
 
  $as_echo_n "(cached) " >&6
 
7403
 
 
7404
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
7405
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
 
7406
if test "${lt_prog_compiler_pic_works+set}" = set; then
 
7407
  echo $ECHO_N "(cached) $ECHO_C" >&6
7558
7408
else
7559
 
  lt_cv_prog_compiler_pic_works=no
7560
 
   ac_outfile=conftest.$ac_objext
7561
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7409
  lt_prog_compiler_pic_works=no
 
7410
  ac_outfile=conftest.$ac_objext
 
7411
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7562
7412
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7563
7413
   # Insert the option either (1) after the last *FLAGS variable, or
7564
7414
   # (2) before a word containing "conftest.", or (3) at the end.
7569
7419
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7570
7420
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7571
7421
   -e 's:$: $lt_compiler_flag:'`
7572
 
   (eval echo "\"\$as_me:7572: $lt_compile\"" >&5)
 
7422
   (eval echo "\"\$as_me:7422: $lt_compile\"" >&5)
7573
7423
   (eval "$lt_compile" 2>conftest.err)
7574
7424
   ac_status=$?
7575
7425
   cat conftest.err >&5
7576
 
   echo "$as_me:7576: \$? = $ac_status" >&5
 
7426
   echo "$as_me:7426: \$? = $ac_status" >&5
7577
7427
   if (exit $ac_status) && test -s "$ac_outfile"; then
7578
7428
     # The compiler can only warn and ignore the option if not recognized
7579
7429
     # So say no if there are warnings other than the usual output.
7580
 
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
7430
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7581
7431
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7582
7432
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7583
 
       lt_cv_prog_compiler_pic_works=yes
 
7433
       lt_prog_compiler_pic_works=yes
7584
7434
     fi
7585
7435
   fi
7586
 
   $RM conftest*
 
7436
   $rm conftest*
7587
7437
 
7588
7438
fi
7589
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7590
 
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
 
7439
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
 
7440
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7591
7441
 
7592
 
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
 
7442
if test x"$lt_prog_compiler_pic_works" = xyes; then
7593
7443
    case $lt_prog_compiler_pic in
7594
7444
     "" | " "*) ;;
7595
7445
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7600
7450
fi
7601
7451
 
7602
7452
fi
7603
 
 
7604
 
 
7605
 
 
7606
 
 
7607
 
 
 
7453
case $host_os in
 
7454
  # For platforms which do not support PIC, -DPIC is meaningless:
 
7455
  *djgpp*)
 
7456
    lt_prog_compiler_pic=
 
7457
    ;;
 
7458
  *)
 
7459
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
7460
    ;;
 
7461
esac
7608
7462
 
7609
7463
#
7610
7464
# Check to make sure the static flag actually works.
7611
7465
#
7612
7466
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7613
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7614
 
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7615
 
if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7616
 
  $as_echo_n "(cached) " >&6
 
7467
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
7468
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
 
7469
if test "${lt_prog_compiler_static_works+set}" = set; then
 
7470
  echo $ECHO_N "(cached) $ECHO_C" >&6
7617
7471
else
7618
 
  lt_cv_prog_compiler_static_works=no
 
7472
  lt_prog_compiler_static_works=no
7619
7473
   save_LDFLAGS="$LDFLAGS"
7620
7474
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7621
 
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
7475
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
7622
7476
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7623
7477
     # The linker can only warn and ignore the option if not recognized
7624
7478
     # So say no if there are warnings
7625
7479
     if test -s conftest.err; then
7626
7480
       # Append any errors to the config.log.
7627
7481
       cat conftest.err 1>&5
7628
 
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
7482
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7629
7483
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7630
7484
       if diff conftest.exp conftest.er2 >/dev/null; then
7631
 
         lt_cv_prog_compiler_static_works=yes
 
7485
         lt_prog_compiler_static_works=yes
7632
7486
       fi
7633
7487
     else
7634
 
       lt_cv_prog_compiler_static_works=yes
 
7488
       lt_prog_compiler_static_works=yes
7635
7489
     fi
7636
7490
   fi
7637
 
   $RM -r conftest*
 
7491
   $rm conftest*
7638
7492
   LDFLAGS="$save_LDFLAGS"
7639
7493
 
7640
7494
fi
7641
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7642
 
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
 
7495
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
 
7496
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7643
7497
 
7644
 
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
 
7498
if test x"$lt_prog_compiler_static_works" = xyes; then
7645
7499
    :
7646
7500
else
7647
7501
    lt_prog_compiler_static=
7648
7502
fi
7649
7503
 
7650
7504
 
7651
 
 
7652
 
 
7653
 
 
7654
 
 
7655
 
 
7656
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7657
 
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7658
 
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7659
 
  $as_echo_n "(cached) " >&6
7660
 
else
7661
 
  lt_cv_prog_compiler_c_o=no
7662
 
   $RM -r conftest 2>/dev/null
7663
 
   mkdir conftest
7664
 
   cd conftest
7665
 
   mkdir out
7666
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7667
 
 
7668
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7669
 
   # Insert the option either (1) after the last *FLAGS variable, or
7670
 
   # (2) before a word containing "conftest.", or (3) at the end.
7671
 
   # Note that $ac_compile itself does not contain backslashes and begins
7672
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7673
 
   lt_compile=`echo "$ac_compile" | $SED \
7674
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7675
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7676
 
   -e 's:$: $lt_compiler_flag:'`
7677
 
   (eval echo "\"\$as_me:7677: $lt_compile\"" >&5)
7678
 
   (eval "$lt_compile" 2>out/conftest.err)
7679
 
   ac_status=$?
7680
 
   cat out/conftest.err >&5
7681
 
   echo "$as_me:7681: \$? = $ac_status" >&5
7682
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7683
 
   then
7684
 
     # The compiler can only warn and ignore the option if not recognized
7685
 
     # So say no if there are warnings
7686
 
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7687
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7688
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7689
 
       lt_cv_prog_compiler_c_o=yes
7690
 
     fi
7691
 
   fi
7692
 
   chmod u+w . 2>&5
7693
 
   $RM conftest*
7694
 
   # SGI C++ compiler will create directory out/ii_files/ for
7695
 
   # template instantiation
7696
 
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7697
 
   $RM out/* && rmdir out
7698
 
   cd ..
7699
 
   $RM -r conftest
7700
 
   $RM conftest*
7701
 
 
7702
 
fi
7703
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7704
 
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7705
 
 
7706
 
 
7707
 
 
7708
 
 
7709
 
 
7710
 
 
7711
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7712
 
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7713
 
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7714
 
  $as_echo_n "(cached) " >&6
7715
 
else
7716
 
  lt_cv_prog_compiler_c_o=no
7717
 
   $RM -r conftest 2>/dev/null
7718
 
   mkdir conftest
7719
 
   cd conftest
7720
 
   mkdir out
7721
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7722
 
 
7723
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7724
 
   # Insert the option either (1) after the last *FLAGS variable, or
7725
 
   # (2) before a word containing "conftest.", or (3) at the end.
7726
 
   # Note that $ac_compile itself does not contain backslashes and begins
7727
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7728
 
   lt_compile=`echo "$ac_compile" | $SED \
7729
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7730
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7731
 
   -e 's:$: $lt_compiler_flag:'`
7732
 
   (eval echo "\"\$as_me:7732: $lt_compile\"" >&5)
7733
 
   (eval "$lt_compile" 2>out/conftest.err)
7734
 
   ac_status=$?
7735
 
   cat out/conftest.err >&5
7736
 
   echo "$as_me:7736: \$? = $ac_status" >&5
7737
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7738
 
   then
7739
 
     # The compiler can only warn and ignore the option if not recognized
7740
 
     # So say no if there are warnings
7741
 
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7742
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7743
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7744
 
       lt_cv_prog_compiler_c_o=yes
7745
 
     fi
7746
 
   fi
7747
 
   chmod u+w . 2>&5
7748
 
   $RM conftest*
7749
 
   # SGI C++ compiler will create directory out/ii_files/ for
7750
 
   # template instantiation
7751
 
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7752
 
   $RM out/* && rmdir out
7753
 
   cd ..
7754
 
   $RM -r conftest
7755
 
   $RM conftest*
7756
 
 
7757
 
fi
7758
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7759
 
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7760
 
 
7761
 
 
 
7505
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
7506
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
7507
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
7508
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7509
else
 
7510
  lt_cv_prog_compiler_c_o=no
 
7511
   $rm -r conftest 2>/dev/null
 
7512
   mkdir conftest
 
7513
   cd conftest
 
7514
   mkdir out
 
7515
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7516
 
 
7517
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
7518
   # Insert the option either (1) after the last *FLAGS variable, or
 
7519
   # (2) before a word containing "conftest.", or (3) at the end.
 
7520
   # Note that $ac_compile itself does not contain backslashes and begins
 
7521
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7522
   lt_compile=`echo "$ac_compile" | $SED \
 
7523
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
7524
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7525
   -e 's:$: $lt_compiler_flag:'`
 
7526
   (eval echo "\"\$as_me:7526: $lt_compile\"" >&5)
 
7527
   (eval "$lt_compile" 2>out/conftest.err)
 
7528
   ac_status=$?
 
7529
   cat out/conftest.err >&5
 
7530
   echo "$as_me:7530: \$? = $ac_status" >&5
 
7531
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
7532
   then
 
7533
     # The compiler can only warn and ignore the option if not recognized
 
7534
     # So say no if there are warnings
 
7535
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
7536
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
7537
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
7538
       lt_cv_prog_compiler_c_o=yes
 
7539
     fi
 
7540
   fi
 
7541
   chmod u+w . 2>&5
 
7542
   $rm conftest*
 
7543
   # SGI C++ compiler will create directory out/ii_files/ for
 
7544
   # template instantiation
 
7545
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
7546
   $rm out/* && rmdir out
 
7547
   cd ..
 
7548
   rmdir conftest
 
7549
   $rm conftest*
 
7550
 
 
7551
fi
 
7552
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
7553
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7762
7554
 
7763
7555
 
7764
7556
hard_links="nottested"
7765
7557
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7766
7558
  # do not overwrite the value of need_locks provided by the user
7767
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7768
 
$as_echo_n "checking if we can lock with hard links... " >&6; }
 
7559
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
7560
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7769
7561
  hard_links=yes
7770
 
  $RM conftest*
 
7562
  $rm conftest*
7771
7563
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7772
7564
  touch conftest.a
7773
7565
  ln conftest.a conftest.b 2>&5 || hard_links=no
7774
7566
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7775
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7776
 
$as_echo "$hard_links" >&6; }
 
7567
  { echo "$as_me:$LINENO: result: $hard_links" >&5
 
7568
echo "${ECHO_T}$hard_links" >&6; }
7777
7569
  if test "$hard_links" = no; then
7778
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7779
 
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
7570
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
7571
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7780
7572
    need_locks=warn
7781
7573
  fi
7782
7574
else
7783
7575
  need_locks=no
7784
7576
fi
7785
7577
 
7786
 
 
7787
 
 
7788
 
 
7789
 
 
7790
 
 
7791
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7792
 
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
7578
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
7579
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7793
7580
 
7794
7581
  runpath_var=
7795
7582
  allow_undefined_flag=
7796
 
  always_export_symbols=no
 
7583
  enable_shared_with_static_runtimes=no
7797
7584
  archive_cmds=
7798
7585
  archive_expsym_cmds=
7799
 
  compiler_needs_object=no
7800
 
  enable_shared_with_static_runtimes=no
 
7586
  old_archive_From_new_cmds=
 
7587
  old_archive_from_expsyms_cmds=
7801
7588
  export_dynamic_flag_spec=
7802
 
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7803
 
  hardcode_automatic=no
7804
 
  hardcode_direct=no
7805
 
  hardcode_direct_absolute=no
 
7589
  whole_archive_flag_spec=
 
7590
  thread_safe_flag_spec=
7806
7591
  hardcode_libdir_flag_spec=
7807
7592
  hardcode_libdir_flag_spec_ld=
7808
7593
  hardcode_libdir_separator=
 
7594
  hardcode_direct=no
7809
7595
  hardcode_minus_L=no
7810
7596
  hardcode_shlibpath_var=unsupported
7811
 
  inherit_rpath=no
7812
7597
  link_all_deplibs=unknown
 
7598
  hardcode_automatic=no
7813
7599
  module_cmds=
7814
7600
  module_expsym_cmds=
7815
 
  old_archive_from_new_cmds=
7816
 
  old_archive_from_expsyms_cmds=
7817
 
  thread_safe_flag_spec=
7818
 
  whole_archive_flag_spec=
 
7601
  always_export_symbols=no
 
7602
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7819
7603
  # include_expsyms should be a list of space-separated symbols to be *always*
7820
7604
  # included in the symbol list
7821
7605
  include_expsyms=
7823
7607
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7824
7608
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7825
7609
  # as well as any symbol that contains `d'.
7826
 
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
7610
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7827
7611
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7828
7612
  # platforms (ab)use it in PIC code, but their linkers get confused if
7829
7613
  # the symbol is explicitly referenced.  Since portable code cannot
7830
7614
  # rely on this symbol name, it's probably fine to never include it in
7831
7615
  # preloaded symbol tables.
7832
 
  # Exclude shared library initialization/finalization symbols.
7833
7616
  extract_expsyms_cmds=
 
7617
  # Just being paranoid about ensuring that cc_basename is set.
 
7618
  for cc_temp in $compiler""; do
 
7619
  case $cc_temp in
 
7620
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
7621
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
7622
    \-*) ;;
 
7623
    *) break;;
 
7624
  esac
 
7625
done
 
7626
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7834
7627
 
7835
7628
  case $host_os in
7836
 
  cygwin* | mingw* | pw32* | cegcc*)
 
7629
  cygwin* | mingw* | pw32*)
7837
7630
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7838
7631
    # When not using gcc, we currently assume that we are using
7839
7632
    # Microsoft Visual C++.
7848
7641
  openbsd*)
7849
7642
    with_gnu_ld=no
7850
7643
    ;;
7851
 
  linux* | k*bsd*-gnu)
7852
 
    link_all_deplibs=no
7853
 
    ;;
7854
7644
  esac
7855
7645
 
7856
7646
  ld_shlibs=yes
7862
7652
    # are reset later if shared libraries are not supported. Putting them
7863
7653
    # here allows them to be overridden if necessary.
7864
7654
    runpath_var=LD_RUN_PATH
7865
 
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
7655
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7866
7656
    export_dynamic_flag_spec='${wl}--export-dynamic'
7867
7657
    # ancient GNU ld didn't support --whole-archive et. al.
7868
 
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7869
 
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7870
 
    else
7871
 
      whole_archive_flag_spec=
 
7658
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
7659
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
7660
      else
 
7661
        whole_archive_flag_spec=
7872
7662
    fi
7873
7663
    supports_anon_versioning=no
7874
 
    case `$LD -v 2>&1` in
7875
 
      *GNU\ gold*) supports_anon_versioning=yes ;;
 
7664
    case `$LD -v 2>/dev/null` in
7876
7665
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7877
7666
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7878
7667
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7882
7671
 
7883
7672
    # See if GNU ld supports shared libraries.
7884
7673
    case $host_os in
7885
 
    aix[3-9]*)
 
7674
    aix3* | aix4* | aix5*)
7886
7675
      # On AIX/PPC, the GNU linker is very broken
7887
7676
      if test "$host_cpu" != ia64; then
7888
7677
        ld_shlibs=no
7889
 
        cat <<_LT_EOF 1>&2
 
7678
        cat <<EOF 1>&2
7890
7679
 
7891
7680
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7892
7681
*** to be unable to reliably create shared libraries on AIX.
7894
7683
*** really care for shared libraries, you may want to modify your PATH
7895
7684
*** so that a non-GNU linker is found, and then restart.
7896
7685
 
7897
 
_LT_EOF
 
7686
EOF
7898
7687
      fi
7899
7688
      ;;
7900
7689
 
7901
7690
    amigaos*)
7902
 
      case $host_cpu in
7903
 
      powerpc)
7904
 
            # see comment about AmigaOS4 .so support
7905
 
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7906
 
            archive_expsym_cmds=''
7907
 
        ;;
7908
 
      m68k)
7909
 
            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)'
7910
 
            hardcode_libdir_flag_spec='-L$libdir'
7911
 
            hardcode_minus_L=yes
7912
 
        ;;
7913
 
      esac
 
7691
      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)'
 
7692
      hardcode_libdir_flag_spec='-L$libdir'
 
7693
      hardcode_minus_L=yes
 
7694
 
 
7695
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
7696
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
7697
      # to version 4, is to share data among multiple programs linked
 
7698
      # with the same dynamic library.  Since this doesn't match the
 
7699
      # behavior of shared libraries on other platforms, we can't use
 
7700
      # them.
 
7701
      ld_shlibs=no
7914
7702
      ;;
7915
7703
 
7916
7704
    beos*)
7917
 
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
7705
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7918
7706
        allow_undefined_flag=unsupported
7919
7707
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7920
7708
        # support --undefined.  This deserves some investigation.  FIXME
7924
7712
      fi
7925
7713
      ;;
7926
7714
 
7927
 
    cygwin* | mingw* | pw32* | cegcc*)
7928
 
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
7715
    cygwin* | mingw* | pw32*)
 
7716
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7929
7717
      # as there is no search path for DLLs.
7930
7718
      hardcode_libdir_flag_spec='-L$libdir'
7931
7719
      allow_undefined_flag=unsupported
7932
7720
      always_export_symbols=no
7933
7721
      enable_shared_with_static_runtimes=yes
7934
 
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
7722
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7935
7723
 
7936
 
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
7724
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7937
7725
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7938
7726
        # If the export-symbols file already is a .def file (1st line
7939
7727
        # is EXPORTS), use it as is; otherwise, prepend...
7949
7737
      fi
7950
7738
      ;;
7951
7739
 
7952
 
    interix[3-9]*)
 
7740
    interix3*)
7953
7741
      hardcode_direct=no
7954
7742
      hardcode_shlibpath_var=no
7955
7743
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7964
7752
      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'
7965
7753
      ;;
7966
7754
 
7967
 
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
7968
 
      tmp_diet=no
7969
 
      if test "$host_os" = linux-dietlibc; then
7970
 
        case $cc_basename in
7971
 
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
7972
 
        esac
7973
 
      fi
7974
 
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7975
 
         && test "$tmp_diet" = no
7976
 
      then
 
7755
    linux* | k*bsd*-gnu)
 
7756
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7977
7757
        tmp_addflag=
7978
 
        tmp_sharedflag='-shared'
7979
7758
        case $cc_basename,$host_cpu in
7980
 
        pgcc*)                          # Portland Group C compiler
7981
 
          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'
 
7759
        pgcc*)                          # Portland Group C compiler
 
7760
          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'
7982
7761
          tmp_addflag=' $pic_flag'
7983
7762
          ;;
7984
7763
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7985
 
          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'
 
7764
          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'
7986
7765
          tmp_addflag=' $pic_flag -Mnomain' ;;
7987
 
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
 
7766
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7988
7767
          tmp_addflag=' -i_dynamic' ;;
7989
7768
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7990
7769
          tmp_addflag=' -i_dynamic -nofor_main' ;;
7991
7770
        ifc* | ifort*)                  # Intel Fortran compiler
7992
7771
          tmp_addflag=' -nofor_main' ;;
7993
 
        lf95*)                          # Lahey Fortran 8.1
7994
 
          whole_archive_flag_spec=
7995
 
          tmp_sharedflag='--shared' ;;
7996
 
        xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
7997
 
          tmp_sharedflag='-qmkshrobj'
7998
 
          tmp_addflag= ;;
7999
 
        esac
8000
 
        case `$CC -V 2>&1 | sed 5q` in
8001
 
        *Sun\ C*)                       # Sun C 5.9
8002
 
          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'
8003
 
          compiler_needs_object=yes
8004
 
          tmp_sharedflag='-G' ;;
8005
 
        *Sun\ F*)                       # Sun Fortran 8.3
8006
 
          tmp_sharedflag='-G' ;;
8007
 
        esac
8008
 
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8009
 
 
8010
 
        if test "x$supports_anon_versioning" = xyes; then
8011
 
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8012
 
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8013
 
            echo "local: *; };" >> $output_objdir/$libname.ver~
8014
 
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8015
 
        fi
8016
 
 
8017
 
        case $cc_basename in
8018
 
        xlf*)
8019
 
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8020
 
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8021
 
          hardcode_libdir_flag_spec=
8022
 
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
8023
 
          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8024
 
          if test "x$supports_anon_versioning" = xyes; then
8025
 
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8026
 
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8027
 
              echo "local: *; };" >> $output_objdir/$libname.ver~
8028
 
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8029
 
          fi
8030
 
          ;;
8031
 
        esac
 
7772
        esac
 
7773
        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7774
 
 
7775
        if test $supports_anon_versioning = yes; then
 
7776
          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
 
7777
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
7778
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
7779
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
7780
        fi
 
7781
        link_all_deplibs=no
8032
7782
      else
8033
 
        ld_shlibs=no
 
7783
        ld_shlibs=no
8034
7784
      fi
8035
7785
      ;;
8036
7786
 
8037
7787
    netbsd* | netbsdelf*-gnu)
8038
 
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
7788
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8039
7789
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8040
7790
        wlarc=
8041
7791
      else
8045
7795
      ;;
8046
7796
 
8047
7797
    solaris*)
8048
 
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
 
7798
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8049
7799
        ld_shlibs=no
8050
 
        cat <<_LT_EOF 1>&2
 
7800
        cat <<EOF 1>&2
8051
7801
 
8052
7802
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8053
7803
*** create shared libraries on Solaris systems.  Therefore, libtool
8056
7806
*** your PATH or compiler configuration so that the native linker is
8057
7807
*** used, and then restart.
8058
7808
 
8059
 
_LT_EOF
8060
 
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
7809
EOF
 
7810
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8061
7811
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8062
7812
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8063
7813
      else
8081
7831
_LT_EOF
8082
7832
        ;;
8083
7833
        *)
8084
 
          # For security reasons, it is highly recommended that you always
8085
 
          # use absolute paths for naming shared libraries, and exclude the
8086
 
          # DT_RUNPATH tag from executables and libraries.  But doing so
8087
 
          # requires that you compile everything twice, which is a pain.
8088
 
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8089
 
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8090
 
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8091
 
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
7834
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7835
            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
7836
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
7837
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8092
7838
          else
8093
7839
            ld_shlibs=no
8094
7840
          fi
8104
7850
      ;;
8105
7851
 
8106
7852
    *)
8107
 
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
7853
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8108
7854
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8109
7855
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8110
7856
      else
8136
7882
      fi
8137
7883
      ;;
8138
7884
 
8139
 
    aix[4-9]*)
 
7885
    aix4* | aix5*)
8140
7886
      if test "$host_cpu" = ia64; then
8141
7887
        # On IA64, the linker does run time linking by default, so we don't
8142
7888
        # have to do anything special.
8146
7892
      else
8147
7893
        # If we're using GNU nm, then we don't want the "-C" option.
8148
7894
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8149
 
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8150
 
          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'
 
7895
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
7896
          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'
8151
7897
        else
8152
 
          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'
 
7898
          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'
8153
7899
        fi
8154
7900
        aix_use_runtimelinking=no
8155
7901
 
8156
7902
        # Test if we are trying to use run time linking or normal
8157
7903
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8158
7904
        # need to do runtime linking.
8159
 
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
7905
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8160
7906
          for ld_flag in $LDFLAGS; do
8161
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8162
 
            aix_use_runtimelinking=yes
8163
 
            break
8164
 
          fi
 
7907
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
7908
            aix_use_runtimelinking=yes
 
7909
            break
 
7910
          fi
8165
7911
          done
8166
7912
          ;;
8167
7913
        esac
8178
7924
 
8179
7925
      archive_cmds=''
8180
7926
      hardcode_direct=yes
8181
 
      hardcode_direct_absolute=yes
8182
7927
      hardcode_libdir_separator=':'
8183
7928
      link_all_deplibs=yes
8184
 
      file_list_spec='${wl}-f,'
8185
7929
 
8186
7930
      if test "$GCC" = yes; then
8187
7931
        case $host_os in aix4.[012]|aix4.[012].*)
8188
7932
        # We only want to do this on AIX 4.2 and lower, the check
8189
7933
        # below for broken collect2 doesn't work under 4.3+
8190
7934
          collect2name=`${CC} -print-prog-name=collect2`
8191
 
          if test -f "$collect2name" &&
8192
 
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 
7935
          if test -f "$collect2name" && \
 
7936
           strings "$collect2name" | grep resolve_lib_name >/dev/null
8193
7937
          then
8194
 
          # We have reworked collect2
8195
 
          :
 
7938
          # We have reworked collect2
 
7939
          hardcode_direct=yes
8196
7940
          else
8197
 
          # We have old collect2
8198
 
          hardcode_direct=unsupported
8199
 
          # It fails to find uninstalled libraries when the uninstalled
8200
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
8201
 
          # to unsupported forces relinking
8202
 
          hardcode_minus_L=yes
8203
 
          hardcode_libdir_flag_spec='-L$libdir'
8204
 
          hardcode_libdir_separator=
 
7941
          # We have old collect2
 
7942
          hardcode_direct=unsupported
 
7943
          # It fails to find uninstalled libraries when the uninstalled
 
7944
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
7945
          # to unsupported forces relinking
 
7946
          hardcode_minus_L=yes
 
7947
          hardcode_libdir_flag_spec='-L$libdir'
 
7948
          hardcode_libdir_separator=
8205
7949
          fi
8206
7950
          ;;
8207
7951
        esac
8209
7953
        if test "$aix_use_runtimelinking" = yes; then
8210
7954
          shared_flag="$shared_flag "'${wl}-G'
8211
7955
        fi
8212
 
        link_all_deplibs=no
8213
7956
      else
8214
7957
        # not using gcc
8215
7958
        if test "$host_cpu" = ia64; then
8216
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8217
 
        # chokes on -Wl,-G. The following line is correct:
 
7959
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
7960
        # chokes on -Wl,-G. The following line is correct:
8218
7961
          shared_flag='-G'
8219
7962
        else
8220
7963
          if test "$aix_use_runtimelinking" = yes; then
8225
7968
        fi
8226
7969
      fi
8227
7970
 
8228
 
      export_dynamic_flag_spec='${wl}-bexpall'
8229
7971
      # It seems that -bexpall does not export symbols beginning with
8230
7972
      # underscore (_), so it is better to generate a list of symbols to export.
8231
7973
      always_export_symbols=yes
8233
7975
        # Warning - without using the other runtime loading flags (-brtl),
8234
7976
        # -berok will link without error, but may produce a broken library.
8235
7977
        allow_undefined_flag='-berok'
8236
 
        # Determine the default libpath from the value encoded in an
8237
 
        # empty executable.
8238
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7978
       # Determine the default libpath from the value encoded in an empty executable.
 
7979
       cat >conftest.$ac_ext <<_ACEOF
 
7980
/* confdefs.h.  */
 
7981
_ACEOF
 
7982
cat confdefs.h >>conftest.$ac_ext
 
7983
cat >>conftest.$ac_ext <<_ACEOF
8239
7984
/* end confdefs.h.  */
8240
7985
 
8241
7986
int
8246
7991
  return 0;
8247
7992
}
8248
7993
_ACEOF
8249
 
if ac_fn_c_try_link "$LINENO"; then :
 
7994
rm -f conftest.$ac_objext conftest$ac_exeext
 
7995
if { (ac_try="$ac_link"
 
7996
case "(($ac_try" in
 
7997
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7998
  *) ac_try_echo=$ac_try;;
 
7999
esac
 
8000
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8001
  (eval "$ac_link") 2>conftest.er1
 
8002
  ac_status=$?
 
8003
  grep -v '^ *+' conftest.er1 >conftest.err
 
8004
  rm -f conftest.er1
 
8005
  cat conftest.err >&5
 
8006
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8007
  (exit $ac_status); } && {
 
8008
         test -z "$ac_c_werror_flag" ||
 
8009
         test ! -s conftest.err
 
8010
       } && test -s conftest$ac_exeext &&
 
8011
       $as_test_x conftest$ac_exeext; then
8250
8012
 
8251
 
lt_aix_libpath_sed='
8252
 
    /Import File Strings/,/^$/ {
8253
 
        /^0/ {
8254
 
            s/^0  *\(.*\)$/\1/
8255
 
            p
8256
 
        }
8257
 
    }'
8258
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8013
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
8014
}'`
8259
8015
# Check for a 64-bit object if we didn't find anything.
8260
 
if test -z "$aix_libpath"; then
8261
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8262
 
fi
8263
 
fi
8264
 
rm -f core conftest.err conftest.$ac_objext \
8265
 
    conftest$ac_exeext conftest.$ac_ext
 
8016
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
8017
}'`; fi
 
8018
else
 
8019
  echo "$as_me: failed program was:" >&5
 
8020
sed 's/^/| /' conftest.$ac_ext >&5
 
8021
 
 
8022
 
 
8023
fi
 
8024
 
 
8025
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
8026
      conftest$ac_exeext conftest.$ac_ext
8266
8027
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8267
8028
 
8268
 
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8269
 
        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"
8270
 
      else
 
8029
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
8030
        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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
8031
       else
8271
8032
        if test "$host_cpu" = ia64; then
8272
8033
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8273
8034
          allow_undefined_flag="-z nodefs"
8274
8035
          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"
8275
8036
        else
8276
 
         # Determine the default libpath from the value encoded in an
8277
 
         # empty executable.
8278
 
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8037
         # Determine the default libpath from the value encoded in an empty executable.
 
8038
         cat >conftest.$ac_ext <<_ACEOF
 
8039
/* confdefs.h.  */
 
8040
_ACEOF
 
8041
cat confdefs.h >>conftest.$ac_ext
 
8042
cat >>conftest.$ac_ext <<_ACEOF
8279
8043
/* end confdefs.h.  */
8280
8044
 
8281
8045
int
8286
8050
  return 0;
8287
8051
}
8288
8052
_ACEOF
8289
 
if ac_fn_c_try_link "$LINENO"; then :
 
8053
rm -f conftest.$ac_objext conftest$ac_exeext
 
8054
if { (ac_try="$ac_link"
 
8055
case "(($ac_try" in
 
8056
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8057
  *) ac_try_echo=$ac_try;;
 
8058
esac
 
8059
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8060
  (eval "$ac_link") 2>conftest.er1
 
8061
  ac_status=$?
 
8062
  grep -v '^ *+' conftest.er1 >conftest.err
 
8063
  rm -f conftest.er1
 
8064
  cat conftest.err >&5
 
8065
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8066
  (exit $ac_status); } && {
 
8067
         test -z "$ac_c_werror_flag" ||
 
8068
         test ! -s conftest.err
 
8069
       } && test -s conftest$ac_exeext &&
 
8070
       $as_test_x conftest$ac_exeext; then
8290
8071
 
8291
 
lt_aix_libpath_sed='
8292
 
    /Import File Strings/,/^$/ {
8293
 
        /^0/ {
8294
 
            s/^0  *\(.*\)$/\1/
8295
 
            p
8296
 
        }
8297
 
    }'
8298
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8072
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
8073
}'`
8299
8074
# Check for a 64-bit object if we didn't find anything.
8300
 
if test -z "$aix_libpath"; then
8301
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8302
 
fi
8303
 
fi
8304
 
rm -f core conftest.err conftest.$ac_objext \
8305
 
    conftest$ac_exeext conftest.$ac_ext
 
8075
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
8076
}'`; fi
 
8077
else
 
8078
  echo "$as_me: failed program was:" >&5
 
8079
sed 's/^/| /' conftest.$ac_ext >&5
 
8080
 
 
8081
 
 
8082
fi
 
8083
 
 
8084
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
8085
      conftest$ac_exeext conftest.$ac_ext
8306
8086
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8307
8087
 
8308
8088
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8320
8100
      ;;
8321
8101
 
8322
8102
    amigaos*)
8323
 
      case $host_cpu in
8324
 
      powerpc)
8325
 
            # see comment about AmigaOS4 .so support
8326
 
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8327
 
            archive_expsym_cmds=''
8328
 
        ;;
8329
 
      m68k)
8330
 
            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)'
8331
 
            hardcode_libdir_flag_spec='-L$libdir'
8332
 
            hardcode_minus_L=yes
8333
 
        ;;
8334
 
      esac
 
8103
      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)'
 
8104
      hardcode_libdir_flag_spec='-L$libdir'
 
8105
      hardcode_minus_L=yes
 
8106
      # see comment about different semantics on the GNU ld section
 
8107
      ld_shlibs=no
8335
8108
      ;;
8336
8109
 
8337
8110
    bsdi[45]*)
8338
8111
      export_dynamic_flag_spec=-rdynamic
8339
8112
      ;;
8340
8113
 
8341
 
    cygwin* | mingw* | pw32* | cegcc*)
 
8114
    cygwin* | mingw* | pw32*)
8342
8115
      # When not using gcc, we currently assume that we are using
8343
8116
      # Microsoft Visual C++.
8344
8117
      # hardcode_libdir_flag_spec is actually meaningless, as there is
8350
8123
      # Tell ltmain to make .dll files, not .so files.
8351
8124
      shrext_cmds=".dll"
8352
8125
      # FIXME: Setting linknames here is a bad hack.
8353
 
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
8126
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8354
8127
      # The linker will automatically build a .lib file if we build a DLL.
8355
 
      old_archive_from_new_cmds='true'
 
8128
      old_archive_From_new_cmds='true'
8356
8129
      # FIXME: Should let the user specify the lib program.
8357
 
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
8130
      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8358
8131
      fix_srcfile_path='`cygpath -w "$srcfile"`'
8359
8132
      enable_shared_with_static_runtimes=yes
8360
8133
      ;;
8361
8134
 
8362
8135
    darwin* | rhapsody*)
8363
 
 
8364
 
 
8365
 
  archive_cmds_need_lc=no
8366
 
  hardcode_direct=no
8367
 
  hardcode_automatic=yes
8368
 
  hardcode_shlibpath_var=unsupported
8369
 
  whole_archive_flag_spec=''
8370
 
  link_all_deplibs=yes
8371
 
  allow_undefined_flag="$_lt_dar_allow_undefined"
8372
 
  case $cc_basename in
8373
 
     ifort*) _lt_dar_can_shared=yes ;;
8374
 
     *) _lt_dar_can_shared=$GCC ;;
8375
 
  esac
8376
 
  if test "$_lt_dar_can_shared" = "yes"; then
8377
 
    output_verbose_link_cmd=echo
8378
 
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8379
 
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8380
 
    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}"
8381
 
    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}"
8382
 
 
8383
 
  else
8384
 
  ld_shlibs=no
8385
 
  fi
8386
 
 
 
8136
      case $host_os in
 
8137
        rhapsody* | darwin1.[012])
 
8138
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
 
8139
         ;;
 
8140
       *) # Darwin 1.3 on
 
8141
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
8142
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
8143
         else
 
8144
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
8145
             10.[012])
 
8146
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
8147
               ;;
 
8148
             10.*)
 
8149
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
 
8150
               ;;
 
8151
           esac
 
8152
         fi
 
8153
         ;;
 
8154
      esac
 
8155
      archive_cmds_need_lc=no
 
8156
      hardcode_direct=no
 
8157
      hardcode_automatic=yes
 
8158
      hardcode_shlibpath_var=unsupported
 
8159
      whole_archive_flag_spec=''
 
8160
      link_all_deplibs=yes
 
8161
    if test "$GCC" = yes ; then
 
8162
        output_verbose_link_cmd='echo'
 
8163
        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
8164
      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
8165
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
8166
      archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
8167
      module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
8168
    else
 
8169
      case $cc_basename in
 
8170
        xlc*)
 
8171
         output_verbose_link_cmd='echo'
 
8172
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
8173
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
8174
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
8175
         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
8176
          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
8177
          ;;
 
8178
       *)
 
8179
         ld_shlibs=no
 
8180
          ;;
 
8181
      esac
 
8182
    fi
8387
8183
      ;;
8388
8184
 
8389
8185
    dgux*)
8425
8221
 
8426
8222
    hpux9*)
8427
8223
      if test "$GCC" = yes; then
8428
 
        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'
 
8224
        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'
8429
8225
      else
8430
 
        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'
 
8226
        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'
8431
8227
      fi
8432
8228
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8433
8229
      hardcode_libdir_separator=:
8447
8243
      fi
8448
8244
      if test "$with_gnu_ld" = no; then
8449
8245
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8450
 
        hardcode_libdir_flag_spec_ld='+b $libdir'
8451
8246
        hardcode_libdir_separator=:
 
8247
 
8452
8248
        hardcode_direct=yes
8453
 
        hardcode_direct_absolute=yes
8454
8249
        export_dynamic_flag_spec='${wl}-E'
 
8250
 
8455
8251
        # hardcode_minus_L: Not really in the search PATH,
8456
8252
        # but as the default location of the library.
8457
8253
        hardcode_minus_L=yes
8465
8261
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8466
8262
          ;;
8467
8263
        ia64*)
8468
 
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
8264
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8469
8265
          ;;
8470
8266
        *)
8471
8267
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8490
8286
 
8491
8287
        case $host_cpu in
8492
8288
        hppa*64*|ia64*)
 
8289
          hardcode_libdir_flag_spec_ld='+b $libdir'
8493
8290
          hardcode_direct=no
8494
8291
          hardcode_shlibpath_var=no
8495
8292
          ;;
8496
8293
        *)
8497
8294
          hardcode_direct=yes
8498
 
          hardcode_direct_absolute=yes
8499
8295
          export_dynamic_flag_spec='${wl}-E'
8500
8296
 
8501
8297
          # hardcode_minus_L: Not really in the search PATH,
8508
8304
 
8509
8305
    irix5* | irix6* | nonstopux*)
8510
8306
      if test "$GCC" = yes; then
8511
 
        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'
8512
 
        # Try to use the -exported_symbol ld option, if it does not
8513
 
        # work, assume that -exports_file does not work either and
8514
 
        # implicitly export all symbols.
8515
 
        save_LDFLAGS="$LDFLAGS"
8516
 
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8517
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8518
 
/* end confdefs.h.  */
8519
 
int foo(void) {}
8520
 
_ACEOF
8521
 
if ac_fn_c_try_link "$LINENO"; then :
8522
 
  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'
8523
 
 
8524
 
fi
8525
 
rm -f core conftest.err conftest.$ac_objext \
8526
 
    conftest$ac_exeext conftest.$ac_ext
8527
 
        LDFLAGS="$save_LDFLAGS"
 
8307
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8528
8308
      else
8529
 
        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'
8530
 
        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'
 
8309
        archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
8310
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
8531
8311
      fi
8532
 
      archive_cmds_need_lc='no'
8533
8312
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8534
8313
      hardcode_libdir_separator=:
8535
 
      inherit_rpath=yes
8536
8314
      link_all_deplibs=yes
8537
8315
      ;;
8538
8316
 
8539
8317
    netbsd* | netbsdelf*-gnu)
8540
 
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
8318
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8541
8319
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8542
8320
      else
8543
8321
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8555
8333
      hardcode_shlibpath_var=no
8556
8334
      ;;
8557
8335
 
8558
 
    *nto* | *qnx*)
8559
 
      ;;
8560
 
 
8561
8336
    openbsd*)
8562
 
      if test -f /usr/libexec/ld.so; then
8563
 
        hardcode_direct=yes
8564
 
        hardcode_shlibpath_var=no
8565
 
        hardcode_direct_absolute=yes
8566
 
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8567
 
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8568
 
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8569
 
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8570
 
          export_dynamic_flag_spec='${wl}-E'
8571
 
        else
8572
 
          case $host_os in
8573
 
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8574
 
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8575
 
             hardcode_libdir_flag_spec='-R$libdir'
8576
 
             ;;
8577
 
           *)
8578
 
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8579
 
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8580
 
             ;;
8581
 
          esac
8582
 
        fi
 
8337
      hardcode_direct=yes
 
8338
      hardcode_shlibpath_var=no
 
8339
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
8340
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
8341
        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
8342
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8343
        export_dynamic_flag_spec='${wl}-E'
8583
8344
      else
8584
 
        ld_shlibs=no
 
8345
       case $host_os in
 
8346
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
8347
           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8348
           hardcode_libdir_flag_spec='-R$libdir'
 
8349
           ;;
 
8350
         *)
 
8351
           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
8352
           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8353
           ;;
 
8354
       esac
8585
8355
      fi
8586
8356
      ;;
8587
8357
 
8589
8359
      hardcode_libdir_flag_spec='-L$libdir'
8590
8360
      hardcode_minus_L=yes
8591
8361
      allow_undefined_flag=unsupported
8592
 
      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'
8593
 
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
8362
      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'
 
8363
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8594
8364
      ;;
8595
8365
 
8596
8366
    osf3*)
8597
8367
      if test "$GCC" = yes; then
8598
8368
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8599
 
        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'
 
8369
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8600
8370
      else
8601
8371
        allow_undefined_flag=' -expect_unresolved \*'
8602
 
        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'
 
8372
        archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8603
8373
      fi
8604
 
      archive_cmds_need_lc='no'
8605
8374
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8606
8375
      hardcode_libdir_separator=:
8607
8376
      ;;
8609
8378
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
8610
8379
      if test "$GCC" = yes; then
8611
8380
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8612
 
        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'
 
8381
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8613
8382
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8614
8383
      else
8615
8384
        allow_undefined_flag=' -expect_unresolved \*'
8616
 
        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'
8617
 
        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~
8618
 
        $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'
 
8385
        archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
8386
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
8387
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8619
8388
 
8620
8389
        # Both c and cxx compiler support -rpath directly
8621
8390
        hardcode_libdir_flag_spec='-rpath $libdir'
8622
8391
      fi
8623
 
      archive_cmds_need_lc='no'
8624
8392
      hardcode_libdir_separator=:
8625
8393
      ;;
8626
8394
 
8627
8395
    solaris*)
8628
 
      no_undefined_flag=' -z defs'
 
8396
      no_undefined_flag=' -z text'
8629
8397
      if test "$GCC" = yes; then
8630
8398
        wlarc='${wl}'
8631
 
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8632
 
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8633
 
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
8399
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8400
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
8401
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8634
8402
      else
8635
 
        case `$CC -V 2>&1` in
8636
 
        *"Compilers 5.0"*)
8637
 
          wlarc=''
8638
 
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8639
 
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8640
 
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8641
 
          ;;
8642
 
        *)
8643
 
          wlarc='${wl}'
8644
 
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8645
 
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8646
 
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8647
 
          ;;
8648
 
        esac
 
8403
        wlarc=''
 
8404
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8405
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
8406
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8649
8407
      fi
8650
8408
      hardcode_libdir_flag_spec='-R$libdir'
8651
8409
      hardcode_shlibpath_var=no
8652
8410
      case $host_os in
8653
8411
      solaris2.[0-5] | solaris2.[0-5].*) ;;
8654
8412
      *)
8655
 
        # The compiler driver will combine and reorder linker options,
8656
 
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
8657
 
        # but is careful enough not to reorder.
8658
 
        # Supported since Solaris 2.6 (maybe 2.5.1?)
8659
 
        if test "$GCC" = yes; then
8660
 
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8661
 
        else
8662
 
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8663
 
        fi
8664
 
        ;;
 
8413
        # The compiler driver will combine linker options so we
 
8414
        # cannot just pass the convience library names through
 
8415
        # without $wl, iff we do not link with $LD.
 
8416
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
8417
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
8418
        case $wlarc in
 
8419
        '')
 
8420
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
8421
        *)
 
8422
          whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 
8423
        esac ;;
8665
8424
      esac
8666
8425
      link_all_deplibs=yes
8667
8426
      ;;
8718
8477
      fi
8719
8478
      ;;
8720
8479
 
8721
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
8480
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8722
8481
      no_undefined_flag='${wl}-z,text'
8723
8482
      archive_cmds_need_lc=no
8724
8483
      hardcode_shlibpath_var=no
8744
8503
      allow_undefined_flag='${wl}-z,nodefs'
8745
8504
      archive_cmds_need_lc=no
8746
8505
      hardcode_shlibpath_var=no
8747
 
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
 
8506
      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8748
8507
      hardcode_libdir_separator=':'
8749
8508
      link_all_deplibs=yes
8750
8509
      export_dynamic_flag_spec='${wl}-Bexport'
8751
8510
      runpath_var='LD_RUN_PATH'
8752
8511
 
8753
8512
      if test "$GCC" = yes; then
8754
 
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8755
 
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8513
        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8514
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8756
8515
      else
8757
 
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8758
 
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8516
        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8517
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8759
8518
      fi
8760
8519
      ;;
8761
8520
 
8769
8528
      ld_shlibs=no
8770
8529
      ;;
8771
8530
    esac
8772
 
 
8773
 
    if test x$host_vendor = xsni; then
8774
 
      case $host in
8775
 
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8776
 
        export_dynamic_flag_spec='${wl}-Blargedynsym'
8777
 
        ;;
8778
 
      esac
8779
 
    fi
8780
8531
  fi
8781
8532
 
8782
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8783
 
$as_echo "$ld_shlibs" >&6; }
 
8533
{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
 
8534
echo "${ECHO_T}$ld_shlibs" >&6; }
8784
8535
test "$ld_shlibs" = no && can_build_shared=no
8785
8536
 
8786
 
with_gnu_ld=$with_gnu_ld
8787
 
 
8788
 
 
8789
 
 
8790
 
 
8791
 
 
8792
 
 
8793
 
 
8794
 
 
8795
 
 
8796
 
 
8797
 
 
8798
 
 
8799
 
 
8800
 
 
8801
 
 
8802
8537
#
8803
8538
# Do we need to explicitly link libc?
8804
8539
#
8816
8551
      # Test whether the compiler implicitly links with -lc since on some
8817
8552
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8818
8553
      # to ld, don't add -lc before -lgcc.
8819
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8820
 
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8821
 
      $RM conftest*
8822
 
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8554
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
8555
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
 
8556
      $rm conftest*
 
8557
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8823
8558
 
8824
 
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
8559
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8825
8560
  (eval $ac_compile) 2>&5
8826
8561
  ac_status=$?
8827
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8828
 
  test $ac_status = 0; } 2>conftest.err; then
 
8562
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8563
  (exit $ac_status); } 2>conftest.err; then
8829
8564
        soname=conftest
8830
8565
        lib=conftest
8831
8566
        libobjs=conftest.$ac_objext
8839
8574
        libname=conftest
8840
8575
        lt_save_allow_undefined_flag=$allow_undefined_flag
8841
8576
        allow_undefined_flag=
8842
 
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8843
 
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
8577
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
8578
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8844
8579
  ac_status=$?
8845
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8846
 
  test $ac_status = 0; }
 
8580
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8581
  (exit $ac_status); }
8847
8582
        then
8848
8583
          archive_cmds_need_lc=no
8849
8584
        else
8853
8588
      else
8854
8589
        cat conftest.err 1>&5
8855
8590
      fi
8856
 
      $RM conftest*
8857
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8858
 
$as_echo "$archive_cmds_need_lc" >&6; }
 
8591
      $rm conftest*
 
8592
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
 
8593
echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8859
8594
      ;;
8860
8595
    esac
8861
8596
  fi
8862
8597
  ;;
8863
8598
esac
8864
8599
 
8865
 
 
8866
 
 
8867
 
 
8868
 
 
8869
 
 
8870
 
 
8871
 
 
8872
 
 
8873
 
 
8874
 
 
8875
 
 
8876
 
 
8877
 
 
8878
 
 
8879
 
 
8880
 
 
8881
 
 
8882
 
 
8883
 
 
8884
 
 
8885
 
 
8886
 
 
8887
 
 
8888
 
 
8889
 
 
8890
 
 
8891
 
 
8892
 
 
8893
 
 
8894
 
 
8895
 
 
8896
 
 
8897
 
 
8898
 
 
8899
 
 
8900
 
 
8901
 
 
8902
 
 
8903
 
 
8904
 
 
8905
 
 
8906
 
 
8907
 
 
8908
 
 
8909
 
 
8910
 
 
8911
 
 
8912
 
 
8913
 
 
8914
 
 
8915
 
 
8916
 
 
8917
 
 
8918
 
 
8919
 
 
8920
 
 
8921
 
 
8922
 
 
8923
 
 
8924
 
 
8925
 
 
8926
 
 
8927
 
 
8928
 
 
8929
 
 
8930
 
 
8931
 
 
8932
 
 
8933
 
 
8934
 
 
8935
 
 
8936
 
 
8937
 
 
8938
 
 
8939
 
 
8940
 
 
8941
 
 
8942
 
 
8943
 
 
8944
 
 
8945
 
 
8946
 
 
8947
 
 
8948
 
 
8949
 
 
8950
 
 
8951
 
 
8952
 
 
8953
 
 
8954
 
 
8955
 
 
8956
 
 
8957
 
 
8958
 
 
8959
 
 
8960
 
 
8961
 
 
8962
 
 
8963
 
 
8964
 
 
8965
 
 
8966
 
 
8967
 
 
8968
 
 
8969
 
 
8970
 
 
8971
 
 
8972
 
 
8973
 
 
8974
 
 
8975
 
 
8976
 
 
8977
 
 
8978
 
 
8979
 
 
8980
 
 
8981
 
 
8982
 
 
8983
 
 
8984
 
 
8985
 
 
8986
 
 
8987
 
 
8988
 
 
8989
 
 
8990
 
 
8991
 
 
8992
 
 
8993
 
 
8994
 
 
8995
 
 
8996
 
 
8997
 
 
8998
 
 
8999
 
 
9000
 
 
9001
 
 
9002
 
 
9003
 
 
9004
 
 
9005
 
 
9006
 
 
9007
 
 
9008
 
 
9009
 
 
9010
 
 
9011
 
 
9012
 
 
9013
 
 
9014
 
 
9015
 
 
9016
 
 
9017
 
 
9018
 
 
9019
 
 
9020
 
 
9021
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9022
 
$as_echo_n "checking dynamic linker characteristics... " >&6; }
9023
 
 
9024
 
if test "$GCC" = yes; then
9025
 
  case $host_os in
9026
 
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9027
 
    *) lt_awk_arg="/^libraries:/" ;;
9028
 
  esac
9029
 
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9030
 
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9031
 
    # if the path contains ";" then we assume it to be the separator
9032
 
    # otherwise default to the standard path separator (i.e. ":") - it is
9033
 
    # assumed that no part of a normal pathname contains ";" but that should
9034
 
    # okay in the real world where ";" in dirpaths is itself problematic.
9035
 
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9036
 
  else
9037
 
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9038
 
  fi
9039
 
  # Ok, now we have the path, separated by spaces, we can step through it
9040
 
  # and add multilib dir if necessary.
9041
 
  lt_tmp_lt_search_path_spec=
9042
 
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9043
 
  for lt_sys_path in $lt_search_path_spec; do
9044
 
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9045
 
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9046
 
    else
9047
 
      test -d "$lt_sys_path" && \
9048
 
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9049
 
    fi
9050
 
  done
9051
 
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9052
 
BEGIN {RS=" "; FS="/|\n";} {
9053
 
  lt_foo="";
9054
 
  lt_count=0;
9055
 
  for (lt_i = NF; lt_i > 0; lt_i--) {
9056
 
    if ($lt_i != "" && $lt_i != ".") {
9057
 
      if ($lt_i == "..") {
9058
 
        lt_count++;
9059
 
      } else {
9060
 
        if (lt_count == 0) {
9061
 
          lt_foo="/" $lt_i lt_foo;
9062
 
        } else {
9063
 
          lt_count--;
9064
 
        }
9065
 
      }
9066
 
    }
9067
 
  }
9068
 
  if (lt_foo != "") { lt_freq[lt_foo]++; }
9069
 
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9070
 
}'`
9071
 
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9072
 
else
9073
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9074
 
fi
 
8600
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
8601
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9075
8602
library_names_spec=
9076
8603
libname_spec='lib$name'
9077
8604
soname_spec=
9085
8612
version_type=none
9086
8613
dynamic_linker="$host_os ld.so"
9087
8614
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
8615
if test "$GCC" = yes; then
 
8616
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
8617
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
8618
    # if the path contains ";" then we assume it to be the separator
 
8619
    # otherwise default to the standard path separator (i.e. ":") - it is
 
8620
    # assumed that no part of a normal pathname contains ";" but that should
 
8621
    # okay in the real world where ";" in dirpaths is itself problematic.
 
8622
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
8623
  else
 
8624
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
8625
  fi
 
8626
else
 
8627
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
8628
fi
9088
8629
need_lib_prefix=unknown
9089
8630
hardcode_into_libs=no
9090
8631
 
9102
8643
  soname_spec='${libname}${release}${shared_ext}$major'
9103
8644
  ;;
9104
8645
 
9105
 
aix[4-9]*)
 
8646
aix4* | aix5*)
9106
8647
  version_type=linux
9107
8648
  need_lib_prefix=no
9108
8649
  need_version=no
9121
8662
      aix4 | aix4.[01] | aix4.[01].*)
9122
8663
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9123
8664
           echo ' yes '
9124
 
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
 
8665
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9125
8666
        :
9126
8667
      else
9127
8668
        can_build_shared=no
9147
8688
  ;;
9148
8689
 
9149
8690
amigaos*)
9150
 
  case $host_cpu in
9151
 
  powerpc)
9152
 
    # Since July 2007 AmigaOS4 officially supports .so libraries.
9153
 
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9154
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9155
 
    ;;
9156
 
  m68k)
9157
 
    library_names_spec='$libname.ixlibrary $libname.a'
9158
 
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9159
 
    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'
9160
 
    ;;
9161
 
  esac
 
8691
  library_names_spec='$libname.ixlibrary $libname.a'
 
8692
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
8693
  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'
9162
8694
  ;;
9163
8695
 
9164
8696
beos*)
9181
8713
  # libtool to hard-code these into programs
9182
8714
  ;;
9183
8715
 
9184
 
cygwin* | mingw* | pw32* | cegcc*)
 
8716
cygwin* | mingw* | pw32*)
9185
8717
  version_type=windows
9186
8718
  shrext_cmds=".dll"
9187
8719
  need_version=no
9188
8720
  need_lib_prefix=no
9189
8721
 
9190
8722
  case $GCC,$host_os in
9191
 
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
 
8723
  yes,cygwin* | yes,mingw* | yes,pw32*)
9192
8724
    library_names_spec='$libname.dll.a'
9193
8725
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9194
8726
    postinstall_cmds='base_file=`basename \${file}`~
9195
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
8727
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9196
8728
      dldir=$destdir/`dirname \$dlpath`~
9197
8729
      test -d \$dldir || mkdir -p \$dldir~
9198
8730
      $install_prog $dir/$dlname \$dldir/$dlname~
9199
 
      chmod a+x \$dldir/$dlname~
9200
 
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9201
 
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9202
 
      fi'
 
8731
      chmod a+x \$dldir/$dlname'
9203
8732
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9204
8733
      dlpath=$dir/\$dldll~
9205
 
       $RM \$dlpath'
 
8734
       $rm \$dlpath'
9206
8735
    shlibpath_overrides_runpath=yes
9207
8736
 
9208
8737
    case $host_os in
9211
8740
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9212
8741
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9213
8742
      ;;
9214
 
    mingw* | cegcc*)
 
8743
    mingw*)
9215
8744
      # MinGW DLLs use traditional 'lib' prefix
9216
8745
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9217
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9218
 
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
 
8746
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
8747
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9219
8748
        # It is most probably a Windows format PATH printed by
9220
8749
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9221
8750
        # path with ; separators, and with drive letters. We can handle the
9222
8751
        # drive letters (cygwin fileutils understands them), so leave them,
9223
8752
        # especially as we might pass files found there to a mingw objdump,
9224
8753
        # which wouldn't understand a cygwinified path. Ahh.
9225
 
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
8754
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9226
8755
      else
9227
 
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
8756
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9228
8757
      fi
9229
8758
      ;;
9230
8759
    pw32*)
9248
8777
  version_type=darwin
9249
8778
  need_lib_prefix=no
9250
8779
  need_version=no
9251
 
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
8780
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9252
8781
  soname_spec='${libname}${release}${major}$shared_ext'
9253
8782
  shlibpath_overrides_runpath=yes
9254
8783
  shlibpath_var=DYLD_LIBRARY_PATH
9255
8784
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9256
 
 
9257
 
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
 
8785
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
8786
  if test "$GCC" = yes; then
 
8787
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
 
8788
  else
 
8789
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
8790
  fi
9258
8791
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9259
8792
  ;;
9260
8793
 
9308
8841
    shlibpath_overrides_runpath=no
9309
8842
    hardcode_into_libs=yes
9310
8843
    ;;
9311
 
  *) # from 4.6 on, and DragonFly
 
8844
  freebsd*) # from 4.6 on
9312
8845
    shlibpath_overrides_runpath=yes
9313
8846
    hardcode_into_libs=yes
9314
8847
    ;;
9347
8880
    fi
9348
8881
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9349
8882
    ;;
9350
 
  hppa*64*)
9351
 
    shrext_cmds='.sl'
9352
 
    hardcode_into_libs=yes
9353
 
    dynamic_linker="$host_os dld.sl"
9354
 
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9355
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9356
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9357
 
    soname_spec='${libname}${release}${shared_ext}$major'
9358
 
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9359
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9360
 
    ;;
9361
 
  *)
 
8883
   hppa*64*)
 
8884
     shrext_cmds='.sl'
 
8885
     hardcode_into_libs=yes
 
8886
     dynamic_linker="$host_os dld.sl"
 
8887
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
8888
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
8889
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8890
     soname_spec='${libname}${release}${shared_ext}$major'
 
8891
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
8892
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
8893
     ;;
 
8894
   *)
9362
8895
    shrext_cmds='.sl'
9363
8896
    dynamic_linker="$host_os dld.sl"
9364
8897
    shlibpath_var=SHLIB_PATH
9371
8904
  postinstall_cmds='chmod 555 $lib'
9372
8905
  ;;
9373
8906
 
9374
 
interix[3-9]*)
 
8907
interix3*)
9375
8908
  version_type=linux
9376
8909
  need_lib_prefix=no
9377
8910
  need_version=no
9426
8959
  ;;
9427
8960
 
9428
8961
# This must be Linux ELF.
9429
 
linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
8962
linux* | k*bsd*-gnu)
9430
8963
  version_type=linux
9431
8964
  need_lib_prefix=no
9432
8965
  need_version=no
9435
8968
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9436
8969
  shlibpath_var=LD_LIBRARY_PATH
9437
8970
  shlibpath_overrides_runpath=no
9438
 
  # Some binutils ld are patched to set DT_RUNPATH
9439
 
  save_LDFLAGS=$LDFLAGS
9440
 
  save_libdir=$libdir
9441
 
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9442
 
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9443
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9444
 
/* end confdefs.h.  */
9445
 
 
9446
 
int
9447
 
main ()
9448
 
{
9449
 
 
9450
 
  ;
9451
 
  return 0;
9452
 
}
9453
 
_ACEOF
9454
 
if ac_fn_c_try_link "$LINENO"; then :
9455
 
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9456
 
  shlibpath_overrides_runpath=yes
9457
 
fi
9458
 
fi
9459
 
rm -f core conftest.err conftest.$ac_objext \
9460
 
    conftest$ac_exeext conftest.$ac_ext
9461
 
  LDFLAGS=$save_LDFLAGS
9462
 
  libdir=$save_libdir
9463
 
 
9464
8971
  # This implies no fast_install, which is unacceptable.
9465
8972
  # Some rework will be needed to allow for fast_install
9466
8973
  # before this can be enabled.
9468
8975
 
9469
8976
  # Append ld.so.conf contents to the search path
9470
8977
  if test -f /etc/ld.so.conf; then
9471
 
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
8978
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9472
8979
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9473
8980
  fi
9474
8981
 
9497
9004
  version_type=sunos
9498
9005
  need_lib_prefix=no
9499
9006
  need_version=no
9500
 
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
9007
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9501
9008
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9502
9009
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9503
9010
    dynamic_linker='NetBSD (a.out) ld.so'
9518
9025
  shlibpath_overrides_runpath=yes
9519
9026
  ;;
9520
9027
 
9521
 
*nto* | *qnx*)
9522
 
  version_type=qnx
 
9028
nto-qnx*)
 
9029
  version_type=linux
9523
9030
  need_lib_prefix=no
9524
9031
  need_version=no
9525
9032
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9526
9033
  soname_spec='${libname}${release}${shared_ext}$major'
9527
9034
  shlibpath_var=LD_LIBRARY_PATH
9528
 
  shlibpath_overrides_runpath=no
9529
 
  hardcode_into_libs=yes
9530
 
  dynamic_linker='ldqnx.so'
 
9035
  shlibpath_overrides_runpath=yes
9531
9036
  ;;
9532
9037
 
9533
9038
openbsd*)
9536
9041
  need_lib_prefix=no
9537
9042
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9538
9043
  case $host_os in
9539
 
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
9540
 
    *)                          need_version=no  ;;
 
9044
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
9045
    *)                         need_version=no  ;;
9541
9046
  esac
9542
9047
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9543
9048
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9544
9049
  shlibpath_var=LD_LIBRARY_PATH
9545
 
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
9050
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9546
9051
    case $host_os in
9547
9052
      openbsd2.[89] | openbsd2.[89].*)
9548
9053
        shlibpath_overrides_runpath=no
9576
9081
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9577
9082
  ;;
9578
9083
 
9579
 
rdos*)
9580
 
  dynamic_linker=no
9581
 
  ;;
9582
 
 
9583
9084
solaris*)
9584
9085
  version_type=linux
9585
9086
  need_lib_prefix=no
9614
9115
    sni)
9615
9116
      shlibpath_overrides_runpath=no
9616
9117
      need_lib_prefix=no
 
9118
      export_dynamic_flag_spec='${wl}-Blargedynsym'
9617
9119
      runpath_var=LD_RUN_PATH
9618
9120
      ;;
9619
9121
    siemens)
9644
9146
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9645
9147
  soname_spec='${libname}${release}${shared_ext}$major'
9646
9148
  shlibpath_var=LD_LIBRARY_PATH
9647
 
  shlibpath_overrides_runpath=yes
9648
9149
  hardcode_into_libs=yes
9649
9150
  if test "$with_gnu_ld" = yes; then
9650
9151
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
9152
    shlibpath_overrides_runpath=no
9651
9153
  else
9652
9154
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
9155
    shlibpath_overrides_runpath=yes
9653
9156
    case $host_os in
9654
9157
      sco3.2v5*)
9655
9158
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9659
9162
  sys_lib_dlsearch_path_spec='/usr/lib'
9660
9163
  ;;
9661
9164
 
9662
 
tpf*)
9663
 
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9664
 
  version_type=linux
9665
 
  need_lib_prefix=no
9666
 
  need_version=no
9667
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9668
 
  shlibpath_var=LD_LIBRARY_PATH
9669
 
  shlibpath_overrides_runpath=no
9670
 
  hardcode_into_libs=yes
9671
 
  ;;
9672
 
 
9673
9165
uts4*)
9674
9166
  version_type=linux
9675
9167
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9681
9173
  dynamic_linker=no
9682
9174
  ;;
9683
9175
esac
9684
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9685
 
$as_echo "$dynamic_linker" >&6; }
 
9176
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
9177
echo "${ECHO_T}$dynamic_linker" >&6; }
9686
9178
test "$dynamic_linker" = no && can_build_shared=no
9687
9179
 
9688
9180
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9690
9182
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9691
9183
fi
9692
9184
 
9693
 
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9694
 
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9695
 
fi
9696
 
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9697
 
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9698
 
fi
9699
 
 
9700
 
 
9701
 
 
9702
 
 
9703
 
 
9704
 
 
9705
 
 
9706
 
 
9707
 
 
9708
 
 
9709
 
 
9710
 
 
9711
 
 
9712
 
 
9713
 
 
9714
 
 
9715
 
 
9716
 
 
9717
 
 
9718
 
 
9719
 
 
9720
 
 
9721
 
 
9722
 
 
9723
 
 
9724
 
 
9725
 
 
9726
 
 
9727
 
 
9728
 
 
9729
 
 
9730
 
 
9731
 
 
9732
 
 
9733
 
 
9734
 
 
9735
 
 
9736
 
 
9737
 
 
9738
 
 
9739
 
 
9740
 
 
9741
 
 
9742
 
 
9743
 
 
9744
 
 
9745
 
 
9746
 
 
9747
 
 
9748
 
 
9749
 
 
9750
 
 
9751
 
 
9752
 
 
9753
 
 
9754
 
 
9755
 
 
9756
 
 
9757
 
 
9758
 
 
9759
 
 
9760
 
 
9761
 
 
9762
 
 
9763
 
 
9764
 
 
9765
 
 
9766
 
 
9767
 
 
9768
 
 
9769
 
 
9770
 
 
9771
 
 
9772
 
 
9773
 
 
9774
 
 
9775
 
 
9776
 
 
9777
 
 
9778
 
 
9779
 
 
9780
 
 
9781
 
 
9782
 
 
9783
 
 
9784
 
 
9785
 
 
9786
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9787
 
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 
9185
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
9186
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9788
9187
hardcode_action=
9789
 
if test -n "$hardcode_libdir_flag_spec" ||
9790
 
   test -n "$runpath_var" ||
 
9188
if test -n "$hardcode_libdir_flag_spec" || \
 
9189
   test -n "$runpath_var" || \
9791
9190
   test "X$hardcode_automatic" = "Xyes" ; then
9792
9191
 
9793
 
  # We can hardcode non-existent directories.
 
9192
  # We can hardcode non-existant directories.
9794
9193
  if test "$hardcode_direct" != no &&
9795
9194
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9796
9195
     # have to relink, otherwise we might link with an installed library
9797
9196
     # when we should be linking with a yet-to-be-installed one
9798
 
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
9197
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9799
9198
     test "$hardcode_minus_L" != no; then
9800
9199
    # Linking always hardcodes the temporary library directory.
9801
9200
    hardcode_action=relink
9808
9207
  # directories.
9809
9208
  hardcode_action=unsupported
9810
9209
fi
9811
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9812
 
$as_echo "$hardcode_action" >&6; }
 
9210
{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
 
9211
echo "${ECHO_T}$hardcode_action" >&6; }
9813
9212
 
9814
 
if test "$hardcode_action" = relink ||
9815
 
   test "$inherit_rpath" = yes; then
 
9213
if test "$hardcode_action" = relink; then
9816
9214
  # Fast installation is not supported
9817
9215
  enable_fast_install=no
9818
9216
elif test "$shlibpath_overrides_runpath" = yes ||
9821
9219
  enable_fast_install=needless
9822
9220
fi
9823
9221
 
9824
 
 
9825
 
 
9826
 
 
9827
 
 
9828
 
 
9829
 
  if test "x$enable_dlopen" != xyes; then
 
9222
striplib=
 
9223
old_striplib=
 
9224
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
9225
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
 
9226
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
9227
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
9228
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
9229
  { echo "$as_me:$LINENO: result: yes" >&5
 
9230
echo "${ECHO_T}yes" >&6; }
 
9231
else
 
9232
# FIXME - insert some real tests, host_os isn't really good enough
 
9233
  case $host_os in
 
9234
   darwin*)
 
9235
       if test -n "$STRIP" ; then
 
9236
         striplib="$STRIP -x"
 
9237
         { echo "$as_me:$LINENO: result: yes" >&5
 
9238
echo "${ECHO_T}yes" >&6; }
 
9239
       else
 
9240
  { echo "$as_me:$LINENO: result: no" >&5
 
9241
echo "${ECHO_T}no" >&6; }
 
9242
fi
 
9243
       ;;
 
9244
   *)
 
9245
  { echo "$as_me:$LINENO: result: no" >&5
 
9246
echo "${ECHO_T}no" >&6; }
 
9247
    ;;
 
9248
  esac
 
9249
fi
 
9250
 
 
9251
if test "x$enable_dlopen" != xyes; then
9830
9252
  enable_dlopen=unknown
9831
9253
  enable_dlopen_self=unknown
9832
9254
  enable_dlopen_self_static=unknown
9841
9263
    lt_cv_dlopen_self=yes
9842
9264
    ;;
9843
9265
 
9844
 
  mingw* | pw32* | cegcc*)
 
9266
  mingw* | pw32*)
9845
9267
    lt_cv_dlopen="LoadLibrary"
9846
9268
    lt_cv_dlopen_libs=
9847
 
    ;;
 
9269
   ;;
9848
9270
 
9849
9271
  cygwin*)
9850
9272
    lt_cv_dlopen="dlopen"
9851
9273
    lt_cv_dlopen_libs=
9852
 
    ;;
 
9274
   ;;
9853
9275
 
9854
9276
  darwin*)
9855
9277
  # if libdl is installed we need to link against it
9856
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9857
 
$as_echo_n "checking for dlopen in -ldl... " >&6; }
9858
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9859
 
  $as_echo_n "(cached) " >&6
 
9278
    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
9279
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
 
9280
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
9281
  echo $ECHO_N "(cached) $ECHO_C" >&6
9860
9282
else
9861
9283
  ac_check_lib_save_LIBS=$LIBS
9862
9284
LIBS="-ldl  $LIBS"
9863
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9285
cat >conftest.$ac_ext <<_ACEOF
 
9286
/* confdefs.h.  */
 
9287
_ACEOF
 
9288
cat confdefs.h >>conftest.$ac_ext
 
9289
cat >>conftest.$ac_ext <<_ACEOF
9864
9290
/* end confdefs.h.  */
9865
9291
 
9866
9292
/* Override any GCC internal prototype to avoid an error.
9878
9304
  return 0;
9879
9305
}
9880
9306
_ACEOF
9881
 
if ac_fn_c_try_link "$LINENO"; then :
 
9307
rm -f conftest.$ac_objext conftest$ac_exeext
 
9308
if { (ac_try="$ac_link"
 
9309
case "(($ac_try" in
 
9310
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9311
  *) ac_try_echo=$ac_try;;
 
9312
esac
 
9313
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9314
  (eval "$ac_link") 2>conftest.er1
 
9315
  ac_status=$?
 
9316
  grep -v '^ *+' conftest.er1 >conftest.err
 
9317
  rm -f conftest.er1
 
9318
  cat conftest.err >&5
 
9319
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9320
  (exit $ac_status); } && {
 
9321
         test -z "$ac_c_werror_flag" ||
 
9322
         test ! -s conftest.err
 
9323
       } && test -s conftest$ac_exeext &&
 
9324
       $as_test_x conftest$ac_exeext; then
9882
9325
  ac_cv_lib_dl_dlopen=yes
9883
9326
else
9884
 
  ac_cv_lib_dl_dlopen=no
 
9327
  echo "$as_me: failed program was:" >&5
 
9328
sed 's/^/| /' conftest.$ac_ext >&5
 
9329
 
 
9330
        ac_cv_lib_dl_dlopen=no
9885
9331
fi
9886
 
rm -f core conftest.err conftest.$ac_objext \
9887
 
    conftest$ac_exeext conftest.$ac_ext
 
9332
 
 
9333
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9334
      conftest$ac_exeext conftest.$ac_ext
9888
9335
LIBS=$ac_check_lib_save_LIBS
9889
9336
fi
9890
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9891
 
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9892
 
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
 
9337
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
9338
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
 
9339
if test $ac_cv_lib_dl_dlopen = yes; then
9893
9340
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9894
9341
else
9895
9342
 
9899
9346
 
9900
9347
fi
9901
9348
 
9902
 
    ;;
 
9349
   ;;
9903
9350
 
9904
9351
  *)
9905
 
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9906
 
if test "x$ac_cv_func_shl_load" = x""yes; then :
 
9352
    { echo "$as_me:$LINENO: checking for shl_load" >&5
 
9353
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
 
9354
if test "${ac_cv_func_shl_load+set}" = set; then
 
9355
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9356
else
 
9357
  cat >conftest.$ac_ext <<_ACEOF
 
9358
/* confdefs.h.  */
 
9359
_ACEOF
 
9360
cat confdefs.h >>conftest.$ac_ext
 
9361
cat >>conftest.$ac_ext <<_ACEOF
 
9362
/* end confdefs.h.  */
 
9363
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
9364
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
9365
#define shl_load innocuous_shl_load
 
9366
 
 
9367
/* System header to define __stub macros and hopefully few prototypes,
 
9368
    which can conflict with char shl_load (); below.
 
9369
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
9370
    <limits.h> exists even on freestanding compilers.  */
 
9371
 
 
9372
#ifdef __STDC__
 
9373
# include <limits.h>
 
9374
#else
 
9375
# include <assert.h>
 
9376
#endif
 
9377
 
 
9378
#undef shl_load
 
9379
 
 
9380
/* Override any GCC internal prototype to avoid an error.
 
9381
   Use char because int might match the return type of a GCC
 
9382
   builtin and then its argument prototype would still apply.  */
 
9383
#ifdef __cplusplus
 
9384
extern "C"
 
9385
#endif
 
9386
char shl_load ();
 
9387
/* The GNU C library defines this for functions which it implements
 
9388
    to always fail with ENOSYS.  Some functions are actually named
 
9389
    something starting with __ and the normal name is an alias.  */
 
9390
#if defined __stub_shl_load || defined __stub___shl_load
 
9391
choke me
 
9392
#endif
 
9393
 
 
9394
int
 
9395
main ()
 
9396
{
 
9397
return shl_load ();
 
9398
  ;
 
9399
  return 0;
 
9400
}
 
9401
_ACEOF
 
9402
rm -f conftest.$ac_objext conftest$ac_exeext
 
9403
if { (ac_try="$ac_link"
 
9404
case "(($ac_try" in
 
9405
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9406
  *) ac_try_echo=$ac_try;;
 
9407
esac
 
9408
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9409
  (eval "$ac_link") 2>conftest.er1
 
9410
  ac_status=$?
 
9411
  grep -v '^ *+' conftest.er1 >conftest.err
 
9412
  rm -f conftest.er1
 
9413
  cat conftest.err >&5
 
9414
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9415
  (exit $ac_status); } && {
 
9416
         test -z "$ac_c_werror_flag" ||
 
9417
         test ! -s conftest.err
 
9418
       } && test -s conftest$ac_exeext &&
 
9419
       $as_test_x conftest$ac_exeext; then
 
9420
  ac_cv_func_shl_load=yes
 
9421
else
 
9422
  echo "$as_me: failed program was:" >&5
 
9423
sed 's/^/| /' conftest.$ac_ext >&5
 
9424
 
 
9425
        ac_cv_func_shl_load=no
 
9426
fi
 
9427
 
 
9428
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9429
      conftest$ac_exeext conftest.$ac_ext
 
9430
fi
 
9431
{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
9432
echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
 
9433
if test $ac_cv_func_shl_load = yes; then
9907
9434
  lt_cv_dlopen="shl_load"
9908
9435
else
9909
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9910
 
$as_echo_n "checking for shl_load in -ldld... " >&6; }
9911
 
if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
9912
 
  $as_echo_n "(cached) " >&6
 
9436
  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
9437
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
 
9438
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
9439
  echo $ECHO_N "(cached) $ECHO_C" >&6
9913
9440
else
9914
9441
  ac_check_lib_save_LIBS=$LIBS
9915
9442
LIBS="-ldld  $LIBS"
9916
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9443
cat >conftest.$ac_ext <<_ACEOF
 
9444
/* confdefs.h.  */
 
9445
_ACEOF
 
9446
cat confdefs.h >>conftest.$ac_ext
 
9447
cat >>conftest.$ac_ext <<_ACEOF
9917
9448
/* end confdefs.h.  */
9918
9449
 
9919
9450
/* Override any GCC internal prototype to avoid an error.
9931
9462
  return 0;
9932
9463
}
9933
9464
_ACEOF
9934
 
if ac_fn_c_try_link "$LINENO"; then :
 
9465
rm -f conftest.$ac_objext conftest$ac_exeext
 
9466
if { (ac_try="$ac_link"
 
9467
case "(($ac_try" in
 
9468
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9469
  *) ac_try_echo=$ac_try;;
 
9470
esac
 
9471
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9472
  (eval "$ac_link") 2>conftest.er1
 
9473
  ac_status=$?
 
9474
  grep -v '^ *+' conftest.er1 >conftest.err
 
9475
  rm -f conftest.er1
 
9476
  cat conftest.err >&5
 
9477
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9478
  (exit $ac_status); } && {
 
9479
         test -z "$ac_c_werror_flag" ||
 
9480
         test ! -s conftest.err
 
9481
       } && test -s conftest$ac_exeext &&
 
9482
       $as_test_x conftest$ac_exeext; then
9935
9483
  ac_cv_lib_dld_shl_load=yes
9936
9484
else
9937
 
  ac_cv_lib_dld_shl_load=no
 
9485
  echo "$as_me: failed program was:" >&5
 
9486
sed 's/^/| /' conftest.$ac_ext >&5
 
9487
 
 
9488
        ac_cv_lib_dld_shl_load=no
9938
9489
fi
9939
 
rm -f core conftest.err conftest.$ac_objext \
9940
 
    conftest$ac_exeext conftest.$ac_ext
 
9490
 
 
9491
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9492
      conftest$ac_exeext conftest.$ac_ext
9941
9493
LIBS=$ac_check_lib_save_LIBS
9942
9494
fi
9943
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9944
 
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9945
 
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
9946
 
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9947
 
else
9948
 
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9949
 
if test "x$ac_cv_func_dlopen" = x""yes; then :
 
9495
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
9496
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
 
9497
if test $ac_cv_lib_dld_shl_load = yes; then
 
9498
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
9499
else
 
9500
  { echo "$as_me:$LINENO: checking for dlopen" >&5
 
9501
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
 
9502
if test "${ac_cv_func_dlopen+set}" = set; then
 
9503
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9504
else
 
9505
  cat >conftest.$ac_ext <<_ACEOF
 
9506
/* confdefs.h.  */
 
9507
_ACEOF
 
9508
cat confdefs.h >>conftest.$ac_ext
 
9509
cat >>conftest.$ac_ext <<_ACEOF
 
9510
/* end confdefs.h.  */
 
9511
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
9512
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
9513
#define dlopen innocuous_dlopen
 
9514
 
 
9515
/* System header to define __stub macros and hopefully few prototypes,
 
9516
    which can conflict with char dlopen (); below.
 
9517
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
9518
    <limits.h> exists even on freestanding compilers.  */
 
9519
 
 
9520
#ifdef __STDC__
 
9521
# include <limits.h>
 
9522
#else
 
9523
# include <assert.h>
 
9524
#endif
 
9525
 
 
9526
#undef dlopen
 
9527
 
 
9528
/* Override any GCC internal prototype to avoid an error.
 
9529
   Use char because int might match the return type of a GCC
 
9530
   builtin and then its argument prototype would still apply.  */
 
9531
#ifdef __cplusplus
 
9532
extern "C"
 
9533
#endif
 
9534
char dlopen ();
 
9535
/* The GNU C library defines this for functions which it implements
 
9536
    to always fail with ENOSYS.  Some functions are actually named
 
9537
    something starting with __ and the normal name is an alias.  */
 
9538
#if defined __stub_dlopen || defined __stub___dlopen
 
9539
choke me
 
9540
#endif
 
9541
 
 
9542
int
 
9543
main ()
 
9544
{
 
9545
return dlopen ();
 
9546
  ;
 
9547
  return 0;
 
9548
}
 
9549
_ACEOF
 
9550
rm -f conftest.$ac_objext conftest$ac_exeext
 
9551
if { (ac_try="$ac_link"
 
9552
case "(($ac_try" in
 
9553
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9554
  *) ac_try_echo=$ac_try;;
 
9555
esac
 
9556
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9557
  (eval "$ac_link") 2>conftest.er1
 
9558
  ac_status=$?
 
9559
  grep -v '^ *+' conftest.er1 >conftest.err
 
9560
  rm -f conftest.er1
 
9561
  cat conftest.err >&5
 
9562
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9563
  (exit $ac_status); } && {
 
9564
         test -z "$ac_c_werror_flag" ||
 
9565
         test ! -s conftest.err
 
9566
       } && test -s conftest$ac_exeext &&
 
9567
       $as_test_x conftest$ac_exeext; then
 
9568
  ac_cv_func_dlopen=yes
 
9569
else
 
9570
  echo "$as_me: failed program was:" >&5
 
9571
sed 's/^/| /' conftest.$ac_ext >&5
 
9572
 
 
9573
        ac_cv_func_dlopen=no
 
9574
fi
 
9575
 
 
9576
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9577
      conftest$ac_exeext conftest.$ac_ext
 
9578
fi
 
9579
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
9580
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
 
9581
if test $ac_cv_func_dlopen = yes; then
9950
9582
  lt_cv_dlopen="dlopen"
9951
9583
else
9952
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9953
 
$as_echo_n "checking for dlopen in -ldl... " >&6; }
9954
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9955
 
  $as_echo_n "(cached) " >&6
 
9584
  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
9585
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
 
9586
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
9587
  echo $ECHO_N "(cached) $ECHO_C" >&6
9956
9588
else
9957
9589
  ac_check_lib_save_LIBS=$LIBS
9958
9590
LIBS="-ldl  $LIBS"
9959
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9591
cat >conftest.$ac_ext <<_ACEOF
 
9592
/* confdefs.h.  */
 
9593
_ACEOF
 
9594
cat confdefs.h >>conftest.$ac_ext
 
9595
cat >>conftest.$ac_ext <<_ACEOF
9960
9596
/* end confdefs.h.  */
9961
9597
 
9962
9598
/* Override any GCC internal prototype to avoid an error.
9974
9610
  return 0;
9975
9611
}
9976
9612
_ACEOF
9977
 
if ac_fn_c_try_link "$LINENO"; then :
 
9613
rm -f conftest.$ac_objext conftest$ac_exeext
 
9614
if { (ac_try="$ac_link"
 
9615
case "(($ac_try" in
 
9616
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9617
  *) ac_try_echo=$ac_try;;
 
9618
esac
 
9619
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9620
  (eval "$ac_link") 2>conftest.er1
 
9621
  ac_status=$?
 
9622
  grep -v '^ *+' conftest.er1 >conftest.err
 
9623
  rm -f conftest.er1
 
9624
  cat conftest.err >&5
 
9625
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9626
  (exit $ac_status); } && {
 
9627
         test -z "$ac_c_werror_flag" ||
 
9628
         test ! -s conftest.err
 
9629
       } && test -s conftest$ac_exeext &&
 
9630
       $as_test_x conftest$ac_exeext; then
9978
9631
  ac_cv_lib_dl_dlopen=yes
9979
9632
else
9980
 
  ac_cv_lib_dl_dlopen=no
 
9633
  echo "$as_me: failed program was:" >&5
 
9634
sed 's/^/| /' conftest.$ac_ext >&5
 
9635
 
 
9636
        ac_cv_lib_dl_dlopen=no
9981
9637
fi
9982
 
rm -f core conftest.err conftest.$ac_objext \
9983
 
    conftest$ac_exeext conftest.$ac_ext
 
9638
 
 
9639
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9640
      conftest$ac_exeext conftest.$ac_ext
9984
9641
LIBS=$ac_check_lib_save_LIBS
9985
9642
fi
9986
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9987
 
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9988
 
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
 
9643
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
9644
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
 
9645
if test $ac_cv_lib_dl_dlopen = yes; then
9989
9646
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9990
9647
else
9991
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9992
 
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
9993
 
if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
9994
 
  $as_echo_n "(cached) " >&6
 
9648
  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
9649
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
 
9650
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
9651
  echo $ECHO_N "(cached) $ECHO_C" >&6
9995
9652
else
9996
9653
  ac_check_lib_save_LIBS=$LIBS
9997
9654
LIBS="-lsvld  $LIBS"
9998
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9655
cat >conftest.$ac_ext <<_ACEOF
 
9656
/* confdefs.h.  */
 
9657
_ACEOF
 
9658
cat confdefs.h >>conftest.$ac_ext
 
9659
cat >>conftest.$ac_ext <<_ACEOF
9999
9660
/* end confdefs.h.  */
10000
9661
 
10001
9662
/* Override any GCC internal prototype to avoid an error.
10013
9674
  return 0;
10014
9675
}
10015
9676
_ACEOF
10016
 
if ac_fn_c_try_link "$LINENO"; then :
 
9677
rm -f conftest.$ac_objext conftest$ac_exeext
 
9678
if { (ac_try="$ac_link"
 
9679
case "(($ac_try" in
 
9680
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9681
  *) ac_try_echo=$ac_try;;
 
9682
esac
 
9683
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9684
  (eval "$ac_link") 2>conftest.er1
 
9685
  ac_status=$?
 
9686
  grep -v '^ *+' conftest.er1 >conftest.err
 
9687
  rm -f conftest.er1
 
9688
  cat conftest.err >&5
 
9689
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9690
  (exit $ac_status); } && {
 
9691
         test -z "$ac_c_werror_flag" ||
 
9692
         test ! -s conftest.err
 
9693
       } && test -s conftest$ac_exeext &&
 
9694
       $as_test_x conftest$ac_exeext; then
10017
9695
  ac_cv_lib_svld_dlopen=yes
10018
9696
else
10019
 
  ac_cv_lib_svld_dlopen=no
 
9697
  echo "$as_me: failed program was:" >&5
 
9698
sed 's/^/| /' conftest.$ac_ext >&5
 
9699
 
 
9700
        ac_cv_lib_svld_dlopen=no
10020
9701
fi
10021
 
rm -f core conftest.err conftest.$ac_objext \
10022
 
    conftest$ac_exeext conftest.$ac_ext
 
9702
 
 
9703
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9704
      conftest$ac_exeext conftest.$ac_ext
10023
9705
LIBS=$ac_check_lib_save_LIBS
10024
9706
fi
10025
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10026
 
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10027
 
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
 
9707
{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
9708
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
 
9709
if test $ac_cv_lib_svld_dlopen = yes; then
10028
9710
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10029
9711
else
10030
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10031
 
$as_echo_n "checking for dld_link in -ldld... " >&6; }
10032
 
if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10033
 
  $as_echo_n "(cached) " >&6
 
9712
  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
9713
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
 
9714
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
9715
  echo $ECHO_N "(cached) $ECHO_C" >&6
10034
9716
else
10035
9717
  ac_check_lib_save_LIBS=$LIBS
10036
9718
LIBS="-ldld  $LIBS"
10037
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9719
cat >conftest.$ac_ext <<_ACEOF
 
9720
/* confdefs.h.  */
 
9721
_ACEOF
 
9722
cat confdefs.h >>conftest.$ac_ext
 
9723
cat >>conftest.$ac_ext <<_ACEOF
10038
9724
/* end confdefs.h.  */
10039
9725
 
10040
9726
/* Override any GCC internal prototype to avoid an error.
10052
9738
  return 0;
10053
9739
}
10054
9740
_ACEOF
10055
 
if ac_fn_c_try_link "$LINENO"; then :
 
9741
rm -f conftest.$ac_objext conftest$ac_exeext
 
9742
if { (ac_try="$ac_link"
 
9743
case "(($ac_try" in
 
9744
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9745
  *) ac_try_echo=$ac_try;;
 
9746
esac
 
9747
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9748
  (eval "$ac_link") 2>conftest.er1
 
9749
  ac_status=$?
 
9750
  grep -v '^ *+' conftest.er1 >conftest.err
 
9751
  rm -f conftest.er1
 
9752
  cat conftest.err >&5
 
9753
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9754
  (exit $ac_status); } && {
 
9755
         test -z "$ac_c_werror_flag" ||
 
9756
         test ! -s conftest.err
 
9757
       } && test -s conftest$ac_exeext &&
 
9758
       $as_test_x conftest$ac_exeext; then
10056
9759
  ac_cv_lib_dld_dld_link=yes
10057
9760
else
10058
 
  ac_cv_lib_dld_dld_link=no
 
9761
  echo "$as_me: failed program was:" >&5
 
9762
sed 's/^/| /' conftest.$ac_ext >&5
 
9763
 
 
9764
        ac_cv_lib_dld_dld_link=no
10059
9765
fi
10060
 
rm -f core conftest.err conftest.$ac_objext \
10061
 
    conftest$ac_exeext conftest.$ac_ext
 
9766
 
 
9767
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9768
      conftest$ac_exeext conftest.$ac_ext
10062
9769
LIBS=$ac_check_lib_save_LIBS
10063
9770
fi
10064
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10065
 
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10066
 
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10067
 
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
 
9771
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
9772
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
 
9773
if test $ac_cv_lib_dld_dld_link = yes; then
 
9774
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10068
9775
fi
10069
9776
 
10070
9777
 
10102
9809
    save_LIBS="$LIBS"
10103
9810
    LIBS="$lt_cv_dlopen_libs $LIBS"
10104
9811
 
10105
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10106
 
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10107
 
if test "${lt_cv_dlopen_self+set}" = set; then :
10108
 
  $as_echo_n "(cached) " >&6
 
9812
    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
9813
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
 
9814
if test "${lt_cv_dlopen_self+set}" = set; then
 
9815
  echo $ECHO_N "(cached) $ECHO_C" >&6
10109
9816
else
10110
9817
          if test "$cross_compiling" = yes; then :
10111
9818
  lt_cv_dlopen_self=cross
10112
9819
else
10113
9820
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10114
9821
  lt_status=$lt_dlunknown
10115
 
  cat > conftest.$ac_ext <<_LT_EOF
10116
 
#line 10116 "configure"
 
9822
  cat > conftest.$ac_ext <<EOF
 
9823
#line 9823 "configure"
10117
9824
#include "confdefs.h"
10118
9825
 
10119
9826
#if HAVE_DLFCN_H
10154
9861
#  endif
10155
9862
#endif
10156
9863
 
 
9864
#ifdef __cplusplus
 
9865
extern "C" void exit (int);
 
9866
#endif
 
9867
 
10157
9868
void fnord() { int i=42;}
10158
9869
int main ()
10159
9870
{
10169
9880
  else
10170
9881
    puts (dlerror ());
10171
9882
 
10172
 
  return status;
 
9883
    exit (status);
10173
9884
}
10174
 
_LT_EOF
10175
 
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
9885
EOF
 
9886
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10176
9887
  (eval $ac_link) 2>&5
10177
9888
  ac_status=$?
10178
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10179
 
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
 
9889
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9890
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10180
9891
    (./conftest; exit; ) >&5 2>/dev/null
10181
9892
    lt_status=$?
10182
9893
    case x$lt_status in
10193
9904
 
10194
9905
 
10195
9906
fi
10196
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10197
 
$as_echo "$lt_cv_dlopen_self" >&6; }
 
9907
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
9908
echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10198
9909
 
10199
9910
    if test "x$lt_cv_dlopen_self" = xyes; then
10200
9911
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10201
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10202
 
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10203
 
if test "${lt_cv_dlopen_self_static+set}" = set; then :
10204
 
  $as_echo_n "(cached) " >&6
 
9912
      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
9913
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
 
9914
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
9915
  echo $ECHO_N "(cached) $ECHO_C" >&6
10205
9916
else
10206
9917
          if test "$cross_compiling" = yes; then :
10207
9918
  lt_cv_dlopen_self_static=cross
10208
9919
else
10209
9920
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10210
9921
  lt_status=$lt_dlunknown
10211
 
  cat > conftest.$ac_ext <<_LT_EOF
10212
 
#line 10212 "configure"
 
9922
  cat > conftest.$ac_ext <<EOF
 
9923
#line 9923 "configure"
10213
9924
#include "confdefs.h"
10214
9925
 
10215
9926
#if HAVE_DLFCN_H
10250
9961
#  endif
10251
9962
#endif
10252
9963
 
 
9964
#ifdef __cplusplus
 
9965
extern "C" void exit (int);
 
9966
#endif
 
9967
 
10253
9968
void fnord() { int i=42;}
10254
9969
int main ()
10255
9970
{
10265
9980
  else
10266
9981
    puts (dlerror ());
10267
9982
 
10268
 
  return status;
 
9983
    exit (status);
10269
9984
}
10270
 
_LT_EOF
10271
 
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
9985
EOF
 
9986
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10272
9987
  (eval $ac_link) 2>&5
10273
9988
  ac_status=$?
10274
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10275
 
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
 
9989
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9990
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10276
9991
    (./conftest; exit; ) >&5 2>/dev/null
10277
9992
    lt_status=$?
10278
9993
    case x$lt_status in
10289
10004
 
10290
10005
 
10291
10006
fi
10292
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10293
 
$as_echo "$lt_cv_dlopen_self_static" >&6; }
 
10007
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
10008
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10294
10009
    fi
10295
10010
 
10296
10011
    CPPFLAGS="$save_CPPFLAGS"
10311
10026
fi
10312
10027
 
10313
10028
 
10314
 
 
10315
 
 
10316
 
 
10317
 
 
10318
 
 
10319
 
 
10320
 
 
10321
 
 
10322
 
 
10323
 
 
10324
 
 
10325
 
 
10326
 
 
10327
 
 
10328
 
 
10329
 
striplib=
10330
 
old_striplib=
10331
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10332
 
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10333
 
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10334
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10335
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10336
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10337
 
$as_echo "yes" >&6; }
10338
 
else
10339
 
# FIXME - insert some real tests, host_os isn't really good enough
10340
 
  case $host_os in
10341
 
  darwin*)
10342
 
    if test -n "$STRIP" ; then
10343
 
      striplib="$STRIP -x"
10344
 
      old_striplib="$STRIP -S"
10345
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10346
 
$as_echo "yes" >&6; }
10347
 
    else
10348
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10349
 
$as_echo "no" >&6; }
10350
 
    fi
10351
 
    ;;
10352
 
  *)
10353
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10354
 
$as_echo "no" >&6; }
10355
 
    ;;
10356
 
  esac
10357
 
fi
10358
 
 
10359
 
 
10360
 
 
10361
 
 
10362
 
 
10363
 
 
10364
 
 
10365
 
 
10366
 
 
10367
 
 
10368
 
 
10369
 
 
10370
 
  # Report which library types will actually be built
10371
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10372
 
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10373
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10374
 
$as_echo "$can_build_shared" >&6; }
10375
 
 
10376
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10377
 
$as_echo_n "checking whether to build shared libraries... " >&6; }
10378
 
  test "$can_build_shared" = "no" && enable_shared=no
10379
 
 
10380
 
  # On AIX, shared libraries and static libraries use the same namespace, and
10381
 
  # are all built from PIC.
10382
 
  case $host_os in
10383
 
  aix3*)
10384
 
    test "$enable_shared" = yes && enable_static=no
10385
 
    if test -n "$RANLIB"; then
10386
 
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10387
 
      postinstall_cmds='$RANLIB $lib'
10388
 
    fi
10389
 
    ;;
10390
 
 
10391
 
  aix[4-9]*)
10392
 
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10393
 
      test "$enable_shared" = yes && enable_static=no
10394
 
    fi
10395
 
    ;;
10396
 
  esac
10397
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10398
 
$as_echo "$enable_shared" >&6; }
10399
 
 
10400
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10401
 
$as_echo_n "checking whether to build static libraries... " >&6; }
10402
 
  # Make sure either enable_shared or enable_static is yes.
10403
 
  test "$enable_shared" = yes || enable_static=yes
10404
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10405
 
$as_echo "$enable_static" >&6; }
10406
 
 
10407
 
 
10408
 
 
10409
 
 
10410
 
fi
10411
 
ac_ext=c
10412
 
ac_cpp='$CPP $CPPFLAGS'
10413
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10414
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10415
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10416
 
 
10417
 
CC="$lt_save_CC"
10418
 
 
10419
 
 
10420
 
 
10421
 
 
10422
 
 
10423
 
 
10424
 
 
10425
 
 
10426
 
 
10427
 
 
10428
 
 
10429
 
 
10430
 
 
10431
 
        ac_config_commands="$ac_config_commands libtool"
10432
 
 
10433
 
 
10434
 
 
10435
 
 
10436
 
# Only expand once:
 
10029
# Report which library types will actually be built
 
10030
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
10031
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
 
10032
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
10033
echo "${ECHO_T}$can_build_shared" >&6; }
 
10034
 
 
10035
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
10036
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
 
10037
test "$can_build_shared" = "no" && enable_shared=no
 
10038
 
 
10039
# On AIX, shared libraries and static libraries use the same namespace, and
 
10040
# are all built from PIC.
 
10041
case $host_os in
 
10042
aix3*)
 
10043
  test "$enable_shared" = yes && enable_static=no
 
10044
  if test -n "$RANLIB"; then
 
10045
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
10046
    postinstall_cmds='$RANLIB $lib'
 
10047
  fi
 
10048
  ;;
 
10049
 
 
10050
aix4* | aix5*)
 
10051
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
10052
    test "$enable_shared" = yes && enable_static=no
 
10053
  fi
 
10054
    ;;
 
10055
esac
 
10056
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
 
10057
echo "${ECHO_T}$enable_shared" >&6; }
 
10058
 
 
10059
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
10060
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
 
10061
# Make sure either enable_shared or enable_static is yes.
 
10062
test "$enable_shared" = yes || enable_static=yes
 
10063
{ echo "$as_me:$LINENO: result: $enable_static" >&5
 
10064
echo "${ECHO_T}$enable_static" >&6; }
 
10065
 
 
10066
# The else clause should only fire when bootstrapping the
 
10067
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
10068
# with your package, and you will get complaints that there are
 
10069
# no rules to generate ltmain.sh.
 
10070
if test -f "$ltmain"; then
 
10071
  # See if we are running on zsh, and set the options which allow our commands through
 
10072
  # without removal of \ escapes.
 
10073
  if test -n "${ZSH_VERSION+set}" ; then
 
10074
    setopt NO_GLOB_SUBST
 
10075
  fi
 
10076
  # Now quote all the things that may contain metacharacters while being
 
10077
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
10078
  # variables and quote the copies for generation of the libtool script.
 
10079
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
10080
    SED SHELL STRIP \
 
10081
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
10082
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
10083
    deplibs_check_method reload_flag reload_cmds need_locks \
 
10084
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
10085
    lt_cv_sys_global_symbol_to_c_name_address \
 
10086
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
10087
    old_postinstall_cmds old_postuninstall_cmds \
 
10088
    compiler \
 
10089
    CC \
 
10090
    LD \
 
10091
    lt_prog_compiler_wl \
 
10092
    lt_prog_compiler_pic \
 
10093
    lt_prog_compiler_static \
 
10094
    lt_prog_compiler_no_builtin_flag \
 
10095
    export_dynamic_flag_spec \
 
10096
    thread_safe_flag_spec \
 
10097
    whole_archive_flag_spec \
 
10098
    enable_shared_with_static_runtimes \
 
10099
    old_archive_cmds \
 
10100
    old_archive_from_new_cmds \
 
10101
    predep_objects \
 
10102
    postdep_objects \
 
10103
    predeps \
 
10104
    postdeps \
 
10105
    compiler_lib_search_path \
 
10106
    archive_cmds \
 
10107
    archive_expsym_cmds \
 
10108
    postinstall_cmds \
 
10109
    postuninstall_cmds \
 
10110
    old_archive_from_expsyms_cmds \
 
10111
    allow_undefined_flag \
 
10112
    no_undefined_flag \
 
10113
    export_symbols_cmds \
 
10114
    hardcode_libdir_flag_spec \
 
10115
    hardcode_libdir_flag_spec_ld \
 
10116
    hardcode_libdir_separator \
 
10117
    hardcode_automatic \
 
10118
    module_cmds \
 
10119
    module_expsym_cmds \
 
10120
    lt_cv_prog_compiler_c_o \
 
10121
    exclude_expsyms \
 
10122
    include_expsyms; do
 
10123
 
 
10124
    case $var in
 
10125
    old_archive_cmds | \
 
10126
    old_archive_from_new_cmds | \
 
10127
    archive_cmds | \
 
10128
    archive_expsym_cmds | \
 
10129
    module_cmds | \
 
10130
    module_expsym_cmds | \
 
10131
    old_archive_from_expsyms_cmds | \
 
10132
    export_symbols_cmds | \
 
10133
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
10134
    postinstall_cmds | postuninstall_cmds | \
 
10135
    old_postinstall_cmds | old_postuninstall_cmds | \
 
10136
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
10137
      # Double-quote double-evaled strings.
 
10138
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
10139
      ;;
 
10140
    *)
 
10141
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
10142
      ;;
 
10143
    esac
 
10144
  done
 
10145
 
 
10146
  case $lt_echo in
 
10147
  *'\$0 --fallback-echo"')
 
10148
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
10149
    ;;
 
10150
  esac
 
10151
 
 
10152
cfgfile="${ofile}T"
 
10153
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
 
10154
  $rm -f "$cfgfile"
 
10155
  { echo "$as_me:$LINENO: creating $ofile" >&5
 
10156
echo "$as_me: creating $ofile" >&6;}
 
10157
 
 
10158
  cat <<__EOF__ >> "$cfgfile"
 
10159
#! $SHELL
 
10160
 
 
10161
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
10162
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
 
10163
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
10164
#
 
10165
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
 
10166
# Free Software Foundation, Inc.
 
10167
#
 
10168
# This file is part of GNU Libtool:
 
10169
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 
10170
#
 
10171
# This program is free software; you can redistribute it and/or modify
 
10172
# it under the terms of the GNU General Public License as published by
 
10173
# the Free Software Foundation; either version 2 of the License, or
 
10174
# (at your option) any later version.
 
10175
#
 
10176
# This program is distributed in the hope that it will be useful, but
 
10177
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
10178
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
10179
# General Public License for more details.
 
10180
#
 
10181
# You should have received a copy of the GNU General Public License
 
10182
# along with this program; if not, write to the Free Software
 
10183
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
10184
#
 
10185
# As a special exception to the GNU General Public License, if you
 
10186
# distribute this file as part of a program that contains a
 
10187
# configuration script generated by Autoconf, you may include it under
 
10188
# the same distribution terms that you use for the rest of that program.
 
10189
 
 
10190
# A sed program that does not truncate output.
 
10191
SED=$lt_SED
 
10192
 
 
10193
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
10194
Xsed="$SED -e 1s/^X//"
 
10195
 
 
10196
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
10197
# if CDPATH is set.
 
10198
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
10199
 
 
10200
# The names of the tagged configurations supported by this script.
 
10201
available_tags=
 
10202
 
 
10203
# ### BEGIN LIBTOOL CONFIG
 
10204
 
 
10205
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
10206
 
 
10207
# Shell to use when invoking shell scripts.
 
10208
SHELL=$lt_SHELL
 
10209
 
 
10210
# Whether or not to build shared libraries.
 
10211
build_libtool_libs=$enable_shared
 
10212
 
 
10213
# Whether or not to build static libraries.
 
10214
build_old_libs=$enable_static
 
10215
 
 
10216
# Whether or not to add -lc for building shared libraries.
 
10217
build_libtool_need_lc=$archive_cmds_need_lc
 
10218
 
 
10219
# Whether or not to disallow shared libs when runtime libs are static
 
10220
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
10221
 
 
10222
# Whether or not to optimize for fast installation.
 
10223
fast_install=$enable_fast_install
 
10224
 
 
10225
# The host system.
 
10226
host_alias=$host_alias
 
10227
host=$host
 
10228
host_os=$host_os
 
10229
 
 
10230
# The build system.
 
10231
build_alias=$build_alias
 
10232
build=$build
 
10233
build_os=$build_os
 
10234
 
 
10235
# An echo program that does not interpret backslashes.
 
10236
echo=$lt_echo
 
10237
 
 
10238
# The archiver.
 
10239
AR=$lt_AR
 
10240
AR_FLAGS=$lt_AR_FLAGS
 
10241
 
 
10242
# A C compiler.
 
10243
LTCC=$lt_LTCC
 
10244
 
 
10245
# LTCC compiler flags.
 
10246
LTCFLAGS=$lt_LTCFLAGS
 
10247
 
 
10248
# A language-specific compiler.
 
10249
CC=$lt_compiler
 
10250
 
 
10251
# Is the compiler the GNU C compiler?
 
10252
with_gcc=$GCC
 
10253
 
 
10254
# An ERE matcher.
 
10255
EGREP=$lt_EGREP
 
10256
 
 
10257
# The linker used to build libraries.
 
10258
LD=$lt_LD
 
10259
 
 
10260
# Whether we need hard or soft links.
 
10261
LN_S=$lt_LN_S
 
10262
 
 
10263
# A BSD-compatible nm program.
 
10264
NM=$lt_NM
 
10265
 
 
10266
# A symbol stripping program
 
10267
STRIP=$lt_STRIP
 
10268
 
 
10269
# Used to examine libraries when file_magic_cmd begins "file"
 
10270
MAGIC_CMD=$MAGIC_CMD
 
10271
 
 
10272
# Used on cygwin: DLL creation program.
 
10273
DLLTOOL="$DLLTOOL"
 
10274
 
 
10275
# Used on cygwin: object dumper.
 
10276
OBJDUMP="$OBJDUMP"
 
10277
 
 
10278
# Used on cygwin: assembler.
 
10279
AS="$AS"
 
10280
 
 
10281
# The name of the directory that contains temporary libtool files.
 
10282
objdir=$objdir
 
10283
 
 
10284
# How to create reloadable object files.
 
10285
reload_flag=$lt_reload_flag
 
10286
reload_cmds=$lt_reload_cmds
 
10287
 
 
10288
# How to pass a linker flag through the compiler.
 
10289
wl=$lt_lt_prog_compiler_wl
 
10290
 
 
10291
# Object file suffix (normally "o").
 
10292
objext="$ac_objext"
 
10293
 
 
10294
# Old archive suffix (normally "a").
 
10295
libext="$libext"
 
10296
 
 
10297
# Shared library suffix (normally ".so").
 
10298
shrext_cmds='$shrext_cmds'
 
10299
 
 
10300
# Executable file suffix (normally "").
 
10301
exeext="$exeext"
 
10302
 
 
10303
# Additional compiler flags for building library objects.
 
10304
pic_flag=$lt_lt_prog_compiler_pic
 
10305
pic_mode=$pic_mode
 
10306
 
 
10307
# What is the maximum length of a command?
 
10308
max_cmd_len=$lt_cv_sys_max_cmd_len
 
10309
 
 
10310
# Does compiler simultaneously support -c and -o options?
 
10311
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
10312
 
 
10313
# Must we lock files when doing compilation?
 
10314
need_locks=$lt_need_locks
 
10315
 
 
10316
# Do we need the lib prefix for modules?
 
10317
need_lib_prefix=$need_lib_prefix
 
10318
 
 
10319
# Do we need a version for libraries?
 
10320
need_version=$need_version
 
10321
 
 
10322
# Whether dlopen is supported.
 
10323
dlopen_support=$enable_dlopen
 
10324
 
 
10325
# Whether dlopen of programs is supported.
 
10326
dlopen_self=$enable_dlopen_self
 
10327
 
 
10328
# Whether dlopen of statically linked programs is supported.
 
10329
dlopen_self_static=$enable_dlopen_self_static
 
10330
 
 
10331
# Compiler flag to prevent dynamic linking.
 
10332
link_static_flag=$lt_lt_prog_compiler_static
 
10333
 
 
10334
# Compiler flag to turn off builtin functions.
 
10335
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
10336
 
 
10337
# Compiler flag to allow reflexive dlopens.
 
10338
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
10339
 
 
10340
# Compiler flag to generate shared objects directly from archives.
 
10341
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
10342
 
 
10343
# Compiler flag to generate thread-safe objects.
 
10344
thread_safe_flag_spec=$lt_thread_safe_flag_spec
 
10345
 
 
10346
# Library versioning type.
 
10347
version_type=$version_type
 
10348
 
 
10349
# Format of library name prefix.
 
10350
libname_spec=$lt_libname_spec
 
10351
 
 
10352
# List of archive names.  First name is the real one, the rest are links.
 
10353
# The last name is the one that the linker finds with -lNAME.
 
10354
library_names_spec=$lt_library_names_spec
 
10355
 
 
10356
# The coded name of the library, if different from the real name.
 
10357
soname_spec=$lt_soname_spec
 
10358
 
 
10359
# Commands used to build and install an old-style archive.
 
10360
RANLIB=$lt_RANLIB
 
10361
old_archive_cmds=$lt_old_archive_cmds
 
10362
old_postinstall_cmds=$lt_old_postinstall_cmds
 
10363
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
10364
 
 
10365
# Create an old-style archive from a shared archive.
 
10366
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
10367
 
 
10368
# Create a temporary old-style archive to link instead of a shared archive.
 
10369
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
10370
 
 
10371
# Commands used to build and install a shared archive.
 
10372
archive_cmds=$lt_archive_cmds
 
10373
archive_expsym_cmds=$lt_archive_expsym_cmds
 
10374
postinstall_cmds=$lt_postinstall_cmds
 
10375
postuninstall_cmds=$lt_postuninstall_cmds
 
10376
 
 
10377
# Commands used to build a loadable module (assumed same as above if empty)
 
10378
module_cmds=$lt_module_cmds
 
10379
module_expsym_cmds=$lt_module_expsym_cmds
 
10380
 
 
10381
# Commands to strip libraries.
 
10382
old_striplib=$lt_old_striplib
 
10383
striplib=$lt_striplib
 
10384
 
 
10385
# Dependencies to place before the objects being linked to create a
 
10386
# shared library.
 
10387
predep_objects=$lt_predep_objects
 
10388
 
 
10389
# Dependencies to place after the objects being linked to create a
 
10390
# shared library.
 
10391
postdep_objects=$lt_postdep_objects
 
10392
 
 
10393
# Dependencies to place before the objects being linked to create a
 
10394
# shared library.
 
10395
predeps=$lt_predeps
 
10396
 
 
10397
# Dependencies to place after the objects being linked to create a
 
10398
# shared library.
 
10399
postdeps=$lt_postdeps
 
10400
 
 
10401
# The library search path used internally by the compiler when linking
 
10402
# a shared library.
 
10403
compiler_lib_search_path=$lt_compiler_lib_search_path
 
10404
 
 
10405
# Method to check whether dependent libraries are shared objects.
 
10406
deplibs_check_method=$lt_deplibs_check_method
 
10407
 
 
10408
# Command to use when deplibs_check_method == file_magic.
 
10409
file_magic_cmd=$lt_file_magic_cmd
 
10410
 
 
10411
# Flag that allows shared libraries with undefined symbols to be built.
 
10412
allow_undefined_flag=$lt_allow_undefined_flag
 
10413
 
 
10414
# Flag that forces no undefined symbols.
 
10415
no_undefined_flag=$lt_no_undefined_flag
 
10416
 
 
10417
# Commands used to finish a libtool library installation in a directory.
 
10418
finish_cmds=$lt_finish_cmds
 
10419
 
 
10420
# Same as above, but a single script fragment to be evaled but not shown.
 
10421
finish_eval=$lt_finish_eval
 
10422
 
 
10423
# Take the output of nm and produce a listing of raw symbols and C names.
 
10424
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
10425
 
 
10426
# Transform the output of nm in a proper C declaration
 
10427
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
10428
 
 
10429
# Transform the output of nm in a C name address pair
 
10430
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
10431
 
 
10432
# This is the shared library runtime path variable.
 
10433
runpath_var=$runpath_var
 
10434
 
 
10435
# This is the shared library path variable.
 
10436
shlibpath_var=$shlibpath_var
 
10437
 
 
10438
# Is shlibpath searched before the hard-coded library search path?
 
10439
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
10440
 
 
10441
# How to hardcode a shared library path into an executable.
 
10442
hardcode_action=$hardcode_action
 
10443
 
 
10444
# Whether we should hardcode library paths into libraries.
 
10445
hardcode_into_libs=$hardcode_into_libs
 
10446
 
 
10447
# Flag to hardcode \$libdir into a binary during linking.
 
10448
# This must work even if \$libdir does not exist.
 
10449
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
10450
 
 
10451
# If ld is used when linking, flag to hardcode \$libdir into
 
10452
# a binary during linking. This must work even if \$libdir does
 
10453
# not exist.
 
10454
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
10455
 
 
10456
# Whether we need a single -rpath flag with a separated argument.
 
10457
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
10458
 
 
10459
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
10460
# resulting binary.
 
10461
hardcode_direct=$hardcode_direct
 
10462
 
 
10463
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
10464
# resulting binary.
 
10465
hardcode_minus_L=$hardcode_minus_L
 
10466
 
 
10467
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
10468
# the resulting binary.
 
10469
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
10470
 
 
10471
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
10472
# and all subsequent libraries and executables linked against it.
 
10473
hardcode_automatic=$hardcode_automatic
 
10474
 
 
10475
# Variables whose values should be saved in libtool wrapper scripts and
 
10476
# restored at relink time.
 
10477
variables_saved_for_relink="$variables_saved_for_relink"
 
10478
 
 
10479
# Whether libtool must link a program against all its dependency libraries.
 
10480
link_all_deplibs=$link_all_deplibs
 
10481
 
 
10482
# Compile-time system search path for libraries
 
10483
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
10484
 
 
10485
# Run-time system search path for libraries
 
10486
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
10487
 
 
10488
# Fix the shell variable \$srcfile for the compiler.
 
10489
fix_srcfile_path="$fix_srcfile_path"
 
10490
 
 
10491
# Set to yes if exported symbols are required.
 
10492
always_export_symbols=$always_export_symbols
 
10493
 
 
10494
# The commands to list exported symbols.
 
10495
export_symbols_cmds=$lt_export_symbols_cmds
 
10496
 
 
10497
# The commands to extract the exported symbol list from a shared archive.
 
10498
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
10499
 
 
10500
# Symbols that should not be listed in the preloaded symbols.
 
10501
exclude_expsyms=$lt_exclude_expsyms
 
10502
 
 
10503
# Symbols that must always be exported.
 
10504
include_expsyms=$lt_include_expsyms
 
10505
 
 
10506
# ### END LIBTOOL CONFIG
 
10507
 
 
10508
__EOF__
 
10509
 
 
10510
 
 
10511
  case $host_os in
 
10512
  aix3*)
 
10513
    cat <<\EOF >> "$cfgfile"
 
10514
 
 
10515
# AIX sometimes has problems with the GCC collect2 program.  For some
 
10516
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
10517
# vanish in a puff of smoke.
 
10518
if test "X${COLLECT_NAMES+set}" != Xset; then
 
10519
  COLLECT_NAMES=
 
10520
  export COLLECT_NAMES
 
10521
fi
 
10522
EOF
 
10523
    ;;
 
10524
  esac
 
10525
 
 
10526
  # We use sed instead of cat because bash on DJGPP gets confused if
 
10527
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
10528
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
10529
  # is reportedly fixed, but why not run on old versions too?
 
10530
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
 
10531
 
 
10532
  mv -f "$cfgfile" "$ofile" || \
 
10533
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
10534
  chmod +x "$ofile"
 
10535
 
 
10536
else
 
10537
  # If there is no Makefile yet, we rely on a make rule to execute
 
10538
  # `config.status --recheck' to rerun these tests and create the
 
10539
  # libtool script then.
 
10540
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
10541
  if test -f "$ltmain_in"; then
 
10542
    test -f Makefile && make "$ltmain"
 
10543
  fi
 
10544
fi
 
10545
 
 
10546
 
 
10547
ac_ext=c
 
10548
ac_cpp='$CPP $CPPFLAGS'
 
10549
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
10550
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
10551
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
10552
 
 
10553
CC="$lt_save_CC"
 
10554
 
 
10555
 
 
10556
# Check whether --with-tags was given.
 
10557
if test "${with_tags+set}" = set; then
 
10558
  withval=$with_tags; tagnames="$withval"
 
10559
fi
 
10560
 
 
10561
 
 
10562
if test -f "$ltmain" && test -n "$tagnames"; then
 
10563
  if test ! -f "${ofile}"; then
 
10564
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
 
10565
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
 
10566
  fi
 
10567
 
 
10568
  if test -z "$LTCC"; then
 
10569
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
 
10570
    if test -z "$LTCC"; then
 
10571
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
 
10572
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
 
10573
    else
 
10574
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
 
10575
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
 
10576
    fi
 
10577
  fi
 
10578
  if test -z "$LTCFLAGS"; then
 
10579
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
 
10580
  fi
 
10581
 
 
10582
  # Extract list of available tagged configurations in $ofile.
 
10583
  # Note that this assumes the entire list is on one line.
 
10584
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
 
10585
 
 
10586
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
10587
  for tagname in $tagnames; do
 
10588
    IFS="$lt_save_ifs"
 
10589
    # Check whether tagname contains only valid characters
 
10590
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
 
10591
    "") ;;
 
10592
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
 
10593
echo "$as_me: error: invalid tag name: $tagname" >&2;}
 
10594
   { (exit 1); exit 1; }; }
 
10595
        ;;
 
10596
    esac
 
10597
 
 
10598
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
 
10599
    then
 
10600
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
 
10601
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
 
10602
   { (exit 1); exit 1; }; }
 
10603
    fi
 
10604
 
 
10605
    # Update the list of available tags.
 
10606
    if test -n "$tagname"; then
 
10607
      echo appending configuration tag \"$tagname\" to $ofile
 
10608
 
 
10609
      case $tagname in
 
10610
      CXX)
 
10611
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
10612
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
10613
            (test "X$CXX" != "Xg++"))) ; then
 
10614
          ac_ext=cpp
 
10615
ac_cpp='$CXXCPP $CPPFLAGS'
 
10616
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
10617
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
10618
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
10619
 
 
10620
 
 
10621
 
 
10622
 
 
10623
archive_cmds_need_lc_CXX=no
 
10624
allow_undefined_flag_CXX=
 
10625
always_export_symbols_CXX=no
 
10626
archive_expsym_cmds_CXX=
 
10627
export_dynamic_flag_spec_CXX=
 
10628
hardcode_direct_CXX=no
 
10629
hardcode_libdir_flag_spec_CXX=
 
10630
hardcode_libdir_flag_spec_ld_CXX=
 
10631
hardcode_libdir_separator_CXX=
 
10632
hardcode_minus_L_CXX=no
 
10633
hardcode_shlibpath_var_CXX=unsupported
 
10634
hardcode_automatic_CXX=no
 
10635
module_cmds_CXX=
 
10636
module_expsym_cmds_CXX=
 
10637
link_all_deplibs_CXX=unknown
 
10638
old_archive_cmds_CXX=$old_archive_cmds
 
10639
no_undefined_flag_CXX=
 
10640
whole_archive_flag_spec_CXX=
 
10641
enable_shared_with_static_runtimes_CXX=no
 
10642
 
 
10643
# Dependencies to place before and after the object being linked:
 
10644
predep_objects_CXX=
 
10645
postdep_objects_CXX=
 
10646
predeps_CXX=
 
10647
postdeps_CXX=
 
10648
compiler_lib_search_path_CXX=
 
10649
 
 
10650
# Source file extension for C++ test sources.
 
10651
ac_ext=cpp
 
10652
 
 
10653
# Object file extension for compiled C++ test sources.
 
10654
objext=o
 
10655
objext_CXX=$objext
 
10656
 
 
10657
# Code to be used in simple compile tests
 
10658
lt_simple_compile_test_code="int some_variable = 0;\n"
 
10659
 
 
10660
# Code to be used in simple link tests
 
10661
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
 
10662
 
 
10663
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
10664
 
 
10665
# If no C compiler was specified, use CC.
 
10666
LTCC=${LTCC-"$CC"}
 
10667
 
 
10668
# If no C compiler flags were specified, use CFLAGS.
 
10669
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
10670
 
 
10671
# Allow CC to be a program name with arguments.
 
10672
compiler=$CC
 
10673
 
 
10674
 
 
10675
# save warnings/boilerplate of simple test code
 
10676
ac_outfile=conftest.$ac_objext
 
10677
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
10678
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
10679
_lt_compiler_boilerplate=`cat conftest.err`
 
10680
$rm conftest*
 
10681
 
 
10682
ac_outfile=conftest.$ac_objext
 
10683
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
10684
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
10685
_lt_linker_boilerplate=`cat conftest.err`
 
10686
$rm conftest*
 
10687
 
 
10688
 
 
10689
# Allow CC to be a program name with arguments.
 
10690
lt_save_CC=$CC
 
10691
lt_save_LD=$LD
 
10692
lt_save_GCC=$GCC
 
10693
GCC=$GXX
 
10694
lt_save_with_gnu_ld=$with_gnu_ld
 
10695
lt_save_path_LD=$lt_cv_path_LD
 
10696
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
10697
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
10698
else
 
10699
  $as_unset lt_cv_prog_gnu_ld
 
10700
fi
 
10701
if test -n "${lt_cv_path_LDCXX+set}"; then
 
10702
  lt_cv_path_LD=$lt_cv_path_LDCXX
 
10703
else
 
10704
  $as_unset lt_cv_path_LD
 
10705
fi
 
10706
test -z "${LDCXX+set}" || LD=$LDCXX
 
10707
CC=${CXX-"c++"}
 
10708
compiler=$CC
 
10709
compiler_CXX=$CC
 
10710
for cc_temp in $compiler""; do
 
10711
  case $cc_temp in
 
10712
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
10713
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
10714
    \-*) ;;
 
10715
    *) break;;
 
10716
  esac
 
10717
done
 
10718
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
10719
 
 
10720
 
 
10721
# We don't want -fno-exception wen compiling C++ code, so set the
 
10722
# no_builtin_flag separately
 
10723
if test "$GXX" = yes; then
 
10724
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 
10725
else
 
10726
  lt_prog_compiler_no_builtin_flag_CXX=
 
10727
fi
 
10728
 
 
10729
if test "$GXX" = yes; then
 
10730
  # Set up default GNU C++ configuration
 
10731
 
 
10732
 
 
10733
# Check whether --with-gnu-ld was given.
 
10734
if test "${with_gnu_ld+set}" = set; then
 
10735
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
10736
else
 
10737
  with_gnu_ld=no
 
10738
fi
 
10739
 
 
10740
ac_prog=ld
 
10741
if test "$GCC" = yes; then
 
10742
  # Check if gcc -print-prog-name=ld gives a path.
 
10743
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
10744
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
 
10745
  case $host in
 
10746
  *-*-mingw*)
 
10747
    # gcc leaves a trailing carriage return which upsets mingw
 
10748
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
10749
  *)
 
10750
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
10751
  esac
 
10752
  case $ac_prog in
 
10753
    # Accept absolute paths.
 
10754
    [\\/]* | ?:[\\/]*)
 
10755
      re_direlt='/[^/][^/]*/\.\./'
 
10756
      # Canonicalize the pathname of ld
 
10757
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
10758
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
10759
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
10760
      done
 
10761
      test -z "$LD" && LD="$ac_prog"
 
10762
      ;;
 
10763
  "")
 
10764
    # If it fails, then pretend we aren't using GCC.
 
10765
    ac_prog=ld
 
10766
    ;;
 
10767
  *)
 
10768
    # If it is relative, then search for the first ld in PATH.
 
10769
    with_gnu_ld=unknown
 
10770
    ;;
 
10771
  esac
 
10772
elif test "$with_gnu_ld" = yes; then
 
10773
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
 
10774
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
 
10775
else
 
10776
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
10777
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
 
10778
fi
 
10779
if test "${lt_cv_path_LD+set}" = set; then
 
10780
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10781
else
 
10782
  if test -z "$LD"; then
 
10783
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
10784
  for ac_dir in $PATH; do
 
10785
    IFS="$lt_save_ifs"
 
10786
    test -z "$ac_dir" && ac_dir=.
 
10787
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
10788
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
10789
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
10790
      # but apparently some variants of GNU ld only accept -v.
 
10791
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
10792
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
10793
      *GNU* | *'with BFD'*)
 
10794
        test "$with_gnu_ld" != no && break
 
10795
        ;;
 
10796
      *)
 
10797
        test "$with_gnu_ld" != yes && break
 
10798
        ;;
 
10799
      esac
 
10800
    fi
 
10801
  done
 
10802
  IFS="$lt_save_ifs"
 
10803
else
 
10804
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
10805
fi
 
10806
fi
 
10807
 
 
10808
LD="$lt_cv_path_LD"
 
10809
if test -n "$LD"; then
 
10810
  { echo "$as_me:$LINENO: result: $LD" >&5
 
10811
echo "${ECHO_T}$LD" >&6; }
 
10812
else
 
10813
  { echo "$as_me:$LINENO: result: no" >&5
 
10814
echo "${ECHO_T}no" >&6; }
 
10815
fi
 
10816
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
10817
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
10818
   { (exit 1); exit 1; }; }
 
10819
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
10820
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
 
10821
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
10822
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10823
else
 
10824
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
10825
case `$LD -v 2>&1 </dev/null` in
 
10826
*GNU* | *'with BFD'*)
 
10827
  lt_cv_prog_gnu_ld=yes
 
10828
  ;;
 
10829
*)
 
10830
  lt_cv_prog_gnu_ld=no
 
10831
  ;;
 
10832
esac
 
10833
fi
 
10834
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
10835
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
 
10836
with_gnu_ld=$lt_cv_prog_gnu_ld
 
10837
 
 
10838
 
 
10839
 
 
10840
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
10841
  # archiving commands below assume that GNU ld is being used.
 
10842
  if test "$with_gnu_ld" = yes; then
 
10843
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10844
    archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
10845
 
 
10846
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
10847
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
10848
 
 
10849
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
10850
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
10851
    #     investigate it a little bit more. (MM)
 
10852
    wlarc='${wl}'
 
10853
 
 
10854
    # ancient GNU ld didn't support --whole-archive et. al.
 
10855
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
 
10856
        grep 'no-whole-archive' > /dev/null; then
 
10857
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
10858
    else
 
10859
      whole_archive_flag_spec_CXX=
 
10860
    fi
 
10861
  else
 
10862
    with_gnu_ld=no
 
10863
    wlarc=
 
10864
 
 
10865
    # A generic and very simple default shared library creation
 
10866
    # command for GNU C++ for the case where it uses the native
 
10867
    # linker, instead of GNU ld.  If possible, this setting should
 
10868
    # overridden to take advantage of the native linker features on
 
10869
    # the platform it is being used on.
 
10870
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
10871
  fi
 
10872
 
 
10873
  # Commands to make compiler produce verbose output that lists
 
10874
  # what "hidden" libraries, object files and flags are used when
 
10875
  # linking a shared library.
 
10876
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
10877
 
 
10878
else
 
10879
  GXX=no
 
10880
  with_gnu_ld=no
 
10881
  wlarc=
 
10882
fi
 
10883
 
 
10884
# PORTME: fill in a description of your system's C++ link characteristics
 
10885
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
10886
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
10887
ld_shlibs_CXX=yes
 
10888
case $host_os in
 
10889
  aix3*)
 
10890
    # FIXME: insert proper C++ library support
 
10891
    ld_shlibs_CXX=no
 
10892
    ;;
 
10893
  aix4* | aix5*)
 
10894
    if test "$host_cpu" = ia64; then
 
10895
      # On IA64, the linker does run time linking by default, so we don't
 
10896
      # have to do anything special.
 
10897
      aix_use_runtimelinking=no
 
10898
      exp_sym_flag='-Bexport'
 
10899
      no_entry_flag=""
 
10900
    else
 
10901
      aix_use_runtimelinking=no
 
10902
 
 
10903
      # Test if we are trying to use run time linking or normal
 
10904
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
10905
      # need to do runtime linking.
 
10906
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
10907
        for ld_flag in $LDFLAGS; do
 
10908
          case $ld_flag in
 
10909
          *-brtl*)
 
10910
            aix_use_runtimelinking=yes
 
10911
            break
 
10912
            ;;
 
10913
          esac
 
10914
        done
 
10915
        ;;
 
10916
      esac
 
10917
 
 
10918
      exp_sym_flag='-bexport'
 
10919
      no_entry_flag='-bnoentry'
 
10920
    fi
 
10921
 
 
10922
    # When large executables or shared objects are built, AIX ld can
 
10923
    # have problems creating the table of contents.  If linking a library
 
10924
    # or program results in "error TOC overflow" add -mminimal-toc to
 
10925
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
10926
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
10927
 
 
10928
    archive_cmds_CXX=''
 
10929
    hardcode_direct_CXX=yes
 
10930
    hardcode_libdir_separator_CXX=':'
 
10931
    link_all_deplibs_CXX=yes
 
10932
 
 
10933
    if test "$GXX" = yes; then
 
10934
      case $host_os in aix4.[012]|aix4.[012].*)
 
10935
      # We only want to do this on AIX 4.2 and lower, the check
 
10936
      # below for broken collect2 doesn't work under 4.3+
 
10937
        collect2name=`${CC} -print-prog-name=collect2`
 
10938
        if test -f "$collect2name" && \
 
10939
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
10940
        then
 
10941
          # We have reworked collect2
 
10942
          hardcode_direct_CXX=yes
 
10943
        else
 
10944
          # We have old collect2
 
10945
          hardcode_direct_CXX=unsupported
 
10946
          # It fails to find uninstalled libraries when the uninstalled
 
10947
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
10948
          # to unsupported forces relinking
 
10949
          hardcode_minus_L_CXX=yes
 
10950
          hardcode_libdir_flag_spec_CXX='-L$libdir'
 
10951
          hardcode_libdir_separator_CXX=
 
10952
        fi
 
10953
        ;;
 
10954
      esac
 
10955
      shared_flag='-shared'
 
10956
      if test "$aix_use_runtimelinking" = yes; then
 
10957
        shared_flag="$shared_flag "'${wl}-G'
 
10958
      fi
 
10959
    else
 
10960
      # not using gcc
 
10961
      if test "$host_cpu" = ia64; then
 
10962
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
10963
        # chokes on -Wl,-G. The following line is correct:
 
10964
        shared_flag='-G'
 
10965
      else
 
10966
        if test "$aix_use_runtimelinking" = yes; then
 
10967
          shared_flag='${wl}-G'
 
10968
        else
 
10969
          shared_flag='${wl}-bM:SRE'
 
10970
        fi
 
10971
      fi
 
10972
    fi
 
10973
 
 
10974
    # It seems that -bexpall does not export symbols beginning with
 
10975
    # underscore (_), so it is better to generate a list of symbols to export.
 
10976
    always_export_symbols_CXX=yes
 
10977
    if test "$aix_use_runtimelinking" = yes; then
 
10978
      # Warning - without using the other runtime loading flags (-brtl),
 
10979
      # -berok will link without error, but may produce a broken library.
 
10980
      allow_undefined_flag_CXX='-berok'
 
10981
      # Determine the default libpath from the value encoded in an empty executable.
 
10982
      cat >conftest.$ac_ext <<_ACEOF
 
10983
/* confdefs.h.  */
 
10984
_ACEOF
 
10985
cat confdefs.h >>conftest.$ac_ext
 
10986
cat >>conftest.$ac_ext <<_ACEOF
 
10987
/* end confdefs.h.  */
 
10988
 
 
10989
int
 
10990
main ()
 
10991
{
 
10992
 
 
10993
  ;
 
10994
  return 0;
 
10995
}
 
10996
_ACEOF
 
10997
rm -f conftest.$ac_objext conftest$ac_exeext
 
10998
if { (ac_try="$ac_link"
 
10999
case "(($ac_try" in
 
11000
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11001
  *) ac_try_echo=$ac_try;;
 
11002
esac
 
11003
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11004
  (eval "$ac_link") 2>conftest.er1
 
11005
  ac_status=$?
 
11006
  grep -v '^ *+' conftest.er1 >conftest.err
 
11007
  rm -f conftest.er1
 
11008
  cat conftest.err >&5
 
11009
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11010
  (exit $ac_status); } && {
 
11011
         test -z "$ac_cxx_werror_flag" ||
 
11012
         test ! -s conftest.err
 
11013
       } && test -s conftest$ac_exeext &&
 
11014
       $as_test_x conftest$ac_exeext; then
 
11015
 
 
11016
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
11017
}'`
 
11018
# Check for a 64-bit object if we didn't find anything.
 
11019
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
11020
}'`; fi
 
11021
else
 
11022
  echo "$as_me: failed program was:" >&5
 
11023
sed 's/^/| /' conftest.$ac_ext >&5
 
11024
 
 
11025
 
 
11026
fi
 
11027
 
 
11028
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11029
      conftest$ac_exeext conftest.$ac_ext
 
11030
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
11031
 
 
11032
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
11033
 
 
11034
      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
11035
     else
 
11036
      if test "$host_cpu" = ia64; then
 
11037
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 
11038
        allow_undefined_flag_CXX="-z nodefs"
 
11039
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
 
11040
      else
 
11041
        # Determine the default libpath from the value encoded in an empty executable.
 
11042
        cat >conftest.$ac_ext <<_ACEOF
 
11043
/* confdefs.h.  */
 
11044
_ACEOF
 
11045
cat confdefs.h >>conftest.$ac_ext
 
11046
cat >>conftest.$ac_ext <<_ACEOF
 
11047
/* end confdefs.h.  */
 
11048
 
 
11049
int
 
11050
main ()
 
11051
{
 
11052
 
 
11053
  ;
 
11054
  return 0;
 
11055
}
 
11056
_ACEOF
 
11057
rm -f conftest.$ac_objext conftest$ac_exeext
 
11058
if { (ac_try="$ac_link"
 
11059
case "(($ac_try" in
 
11060
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11061
  *) ac_try_echo=$ac_try;;
 
11062
esac
 
11063
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11064
  (eval "$ac_link") 2>conftest.er1
 
11065
  ac_status=$?
 
11066
  grep -v '^ *+' conftest.er1 >conftest.err
 
11067
  rm -f conftest.er1
 
11068
  cat conftest.err >&5
 
11069
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11070
  (exit $ac_status); } && {
 
11071
         test -z "$ac_cxx_werror_flag" ||
 
11072
         test ! -s conftest.err
 
11073
       } && test -s conftest$ac_exeext &&
 
11074
       $as_test_x conftest$ac_exeext; then
 
11075
 
 
11076
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
11077
}'`
 
11078
# Check for a 64-bit object if we didn't find anything.
 
11079
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
11080
}'`; fi
 
11081
else
 
11082
  echo "$as_me: failed program was:" >&5
 
11083
sed 's/^/| /' conftest.$ac_ext >&5
 
11084
 
 
11085
 
 
11086
fi
 
11087
 
 
11088
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11089
      conftest$ac_exeext conftest.$ac_ext
 
11090
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
11091
 
 
11092
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
11093
        # Warning - without using the other run time loading flags,
 
11094
        # -berok will link without error, but may produce a broken library.
 
11095
        no_undefined_flag_CXX=' ${wl}-bernotok'
 
11096
        allow_undefined_flag_CXX=' ${wl}-berok'
 
11097
        # Exported symbols can be pulled into shared objects from archives
 
11098
        whole_archive_flag_spec_CXX='$convenience'
 
11099
        archive_cmds_need_lc_CXX=yes
 
11100
        # This is similar to how AIX traditionally builds its shared libraries.
 
11101
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
11102
      fi
 
11103
    fi
 
11104
    ;;
 
11105
 
 
11106
  beos*)
 
11107
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
11108
      allow_undefined_flag_CXX=unsupported
 
11109
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
11110
      # support --undefined.  This deserves some investigation.  FIXME
 
11111
      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11112
    else
 
11113
      ld_shlibs_CXX=no
 
11114
    fi
 
11115
    ;;
 
11116
 
 
11117
  chorus*)
 
11118
    case $cc_basename in
 
11119
      *)
 
11120
        # FIXME: insert proper C++ library support
 
11121
        ld_shlibs_CXX=no
 
11122
        ;;
 
11123
    esac
 
11124
    ;;
 
11125
 
 
11126
  cygwin* | mingw* | pw32*)
 
11127
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
11128
    # as there is no search path for DLLs.
 
11129
    hardcode_libdir_flag_spec_CXX='-L$libdir'
 
11130
    allow_undefined_flag_CXX=unsupported
 
11131
    always_export_symbols_CXX=no
 
11132
    enable_shared_with_static_runtimes_CXX=yes
 
11133
 
 
11134
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
11135
      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
11136
      # If the export-symbols file already is a .def file (1st line
 
11137
      # is EXPORTS), use it as is; otherwise, prepend...
 
11138
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
11139
        cp $export_symbols $output_objdir/$soname.def;
 
11140
      else
 
11141
        echo EXPORTS > $output_objdir/$soname.def;
 
11142
        cat $export_symbols >> $output_objdir/$soname.def;
 
11143
      fi~
 
11144
      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
11145
    else
 
11146
      ld_shlibs_CXX=no
 
11147
    fi
 
11148
  ;;
 
11149
      darwin* | rhapsody*)
 
11150
        case $host_os in
 
11151
        rhapsody* | darwin1.[012])
 
11152
         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
 
11153
         ;;
 
11154
       *) # Darwin 1.3 on
 
11155
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
11156
           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
11157
         else
 
11158
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
11159
             10.[012])
 
11160
               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
11161
               ;;
 
11162
             10.*)
 
11163
               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
 
11164
               ;;
 
11165
           esac
 
11166
         fi
 
11167
         ;;
 
11168
        esac
 
11169
      archive_cmds_need_lc_CXX=no
 
11170
      hardcode_direct_CXX=no
 
11171
      hardcode_automatic_CXX=yes
 
11172
      hardcode_shlibpath_var_CXX=unsupported
 
11173
      whole_archive_flag_spec_CXX=''
 
11174
      link_all_deplibs_CXX=yes
 
11175
 
 
11176
    if test "$GXX" = yes ; then
 
11177
      lt_int_apple_cc_single_mod=no
 
11178
      output_verbose_link_cmd='echo'
 
11179
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
 
11180
       lt_int_apple_cc_single_mod=yes
 
11181
      fi
 
11182
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
11183
       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
11184
      else
 
11185
          archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
11186
        fi
 
11187
        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
11188
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
11189
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
11190
            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
11191
          else
 
11192
            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
11193
          fi
 
11194
            module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
11195
      else
 
11196
      case $cc_basename in
 
11197
        xlc*)
 
11198
         output_verbose_link_cmd='echo'
 
11199
          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
11200
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
11201
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
11202
          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
11203
          module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
11204
          ;;
 
11205
       *)
 
11206
         ld_shlibs_CXX=no
 
11207
          ;;
 
11208
      esac
 
11209
      fi
 
11210
        ;;
 
11211
 
 
11212
  dgux*)
 
11213
    case $cc_basename in
 
11214
      ec++*)
 
11215
        # FIXME: insert proper C++ library support
 
11216
        ld_shlibs_CXX=no
 
11217
        ;;
 
11218
      ghcx*)
 
11219
        # Green Hills C++ Compiler
 
11220
        # FIXME: insert proper C++ library support
 
11221
        ld_shlibs_CXX=no
 
11222
        ;;
 
11223
      *)
 
11224
        # FIXME: insert proper C++ library support
 
11225
        ld_shlibs_CXX=no
 
11226
        ;;
 
11227
    esac
 
11228
    ;;
 
11229
  freebsd[12]*)
 
11230
    # C++ shared libraries reported to be fairly broken before switch to ELF
 
11231
    ld_shlibs_CXX=no
 
11232
    ;;
 
11233
  freebsd-elf*)
 
11234
    archive_cmds_need_lc_CXX=no
 
11235
    ;;
 
11236
  freebsd* | dragonfly*)
 
11237
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
11238
    # conventions
 
11239
    ld_shlibs_CXX=yes
 
11240
    ;;
 
11241
  gnu*)
 
11242
    ;;
 
11243
  hpux9*)
 
11244
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
11245
    hardcode_libdir_separator_CXX=:
 
11246
    export_dynamic_flag_spec_CXX='${wl}-E'
 
11247
    hardcode_direct_CXX=yes
 
11248
    hardcode_minus_L_CXX=yes # Not in the search PATH,
 
11249
                                # but as the default
 
11250
                                # location of the library.
 
11251
 
 
11252
    case $cc_basename in
 
11253
    CC*)
 
11254
      # FIXME: insert proper C++ library support
 
11255
      ld_shlibs_CXX=no
 
11256
      ;;
 
11257
    aCC*)
 
11258
      archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
11259
      # Commands to make compiler produce verbose output that lists
 
11260
      # what "hidden" libraries, object files and flags are used when
 
11261
      # linking a shared library.
 
11262
      #
 
11263
      # There doesn't appear to be a way to prevent this compiler from
 
11264
      # explicitly linking system object files so we need to strip them
 
11265
      # from the output so that they don't get included in the library
 
11266
      # dependencies.
 
11267
      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
11268
      ;;
 
11269
    *)
 
11270
      if test "$GXX" = yes; then
 
11271
        archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
11272
      else
 
11273
        # FIXME: insert proper C++ library support
 
11274
        ld_shlibs_CXX=no
 
11275
      fi
 
11276
      ;;
 
11277
    esac
 
11278
    ;;
 
11279
  hpux10*|hpux11*)
 
11280
    if test $with_gnu_ld = no; then
 
11281
      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
11282
      hardcode_libdir_separator_CXX=:
 
11283
 
 
11284
      case $host_cpu in
 
11285
      hppa*64*|ia64*)
 
11286
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
 
11287
        ;;
 
11288
      *)
 
11289
        export_dynamic_flag_spec_CXX='${wl}-E'
 
11290
        ;;
 
11291
      esac
 
11292
    fi
 
11293
    case $host_cpu in
 
11294
    hppa*64*|ia64*)
 
11295
      hardcode_direct_CXX=no
 
11296
      hardcode_shlibpath_var_CXX=no
 
11297
      ;;
 
11298
    *)
 
11299
      hardcode_direct_CXX=yes
 
11300
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
11301
                                              # but as the default
 
11302
                                              # location of the library.
 
11303
      ;;
 
11304
    esac
 
11305
 
 
11306
    case $cc_basename in
 
11307
      CC*)
 
11308
        # FIXME: insert proper C++ library support
 
11309
        ld_shlibs_CXX=no
 
11310
        ;;
 
11311
      aCC*)
 
11312
        case $host_cpu in
 
11313
        hppa*64*)
 
11314
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11315
          ;;
 
11316
        ia64*)
 
11317
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11318
          ;;
 
11319
        *)
 
11320
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11321
          ;;
 
11322
        esac
 
11323
        # Commands to make compiler produce verbose output that lists
 
11324
        # what "hidden" libraries, object files and flags are used when
 
11325
        # linking a shared library.
 
11326
        #
 
11327
        # There doesn't appear to be a way to prevent this compiler from
 
11328
        # explicitly linking system object files so we need to strip them
 
11329
        # from the output so that they don't get included in the library
 
11330
        # dependencies.
 
11331
        output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
11332
        ;;
 
11333
      *)
 
11334
        if test "$GXX" = yes; then
 
11335
          if test $with_gnu_ld = no; then
 
11336
            case $host_cpu in
 
11337
            hppa*64*)
 
11338
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11339
              ;;
 
11340
            ia64*)
 
11341
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11342
              ;;
 
11343
            *)
 
11344
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11345
              ;;
 
11346
            esac
 
11347
          fi
 
11348
        else
 
11349
          # FIXME: insert proper C++ library support
 
11350
          ld_shlibs_CXX=no
 
11351
        fi
 
11352
        ;;
 
11353
    esac
 
11354
    ;;
 
11355
  interix3*)
 
11356
    hardcode_direct_CXX=no
 
11357
    hardcode_shlibpath_var_CXX=no
 
11358
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11359
    export_dynamic_flag_spec_CXX='${wl}-E'
 
11360
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
11361
    # Instead, shared libraries are loaded at an image base (0x10000000 by
 
11362
    # default) and relocated if they conflict, which is a slow very memory
 
11363
    # consuming and fragmenting process.  To avoid this, we pick a random,
 
11364
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
11365
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
11366
    archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
11367
    archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
11368
    ;;
 
11369
  irix5* | irix6*)
 
11370
    case $cc_basename in
 
11371
      CC*)
 
11372
        # SGI C++
 
11373
        archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
11374
 
 
11375
        # Archives containing C++ object files must be created using
 
11376
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
11377
        # necessary to make sure instantiated templates are included
 
11378
        # in the archive.
 
11379
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
11380
        ;;
 
11381
      *)
 
11382
        if test "$GXX" = yes; then
 
11383
          if test "$with_gnu_ld" = no; then
 
11384
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
11385
          else
 
11386
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
 
11387
          fi
 
11388
        fi
 
11389
        link_all_deplibs_CXX=yes
 
11390
        ;;
 
11391
    esac
 
11392
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
11393
    hardcode_libdir_separator_CXX=:
 
11394
    ;;
 
11395
  linux* | k*bsd*-gnu)
 
11396
    case $cc_basename in
 
11397
      KCC*)
 
11398
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
11399
 
 
11400
        # KCC will only create a shared library if the output file
 
11401
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
11402
        # to its proper name (with version) after linking.
 
11403
        archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
 
11404
        archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
 
11405
        # Commands to make compiler produce verbose output that lists
 
11406
        # what "hidden" libraries, object files and flags are used when
 
11407
        # linking a shared library.
 
11408
        #
 
11409
        # There doesn't appear to be a way to prevent this compiler from
 
11410
        # explicitly linking system object files so we need to strip them
 
11411
        # from the output so that they don't get included in the library
 
11412
        # dependencies.
 
11413
        output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
11414
 
 
11415
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
 
11416
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
11417
 
 
11418
        # Archives containing C++ object files must be created using
 
11419
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
11420
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
11421
        ;;
 
11422
      icpc*)
 
11423
        # Intel C++
 
11424
        with_gnu_ld=yes
 
11425
        # version 8.0 and above of icpc choke on multiply defined symbols
 
11426
        # if we add $predep_objects and $postdep_objects, however 7.1 and
 
11427
        # earlier do not add the objects themselves.
 
11428
        case `$CC -V 2>&1` in
 
11429
        *"Version 7."*)
 
11430
          archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11431
          archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
11432
          ;;
 
11433
        *)  # Version 8.0 or newer
 
11434
          tmp_idyn=
 
11435
          case $host_cpu in
 
11436
            ia64*) tmp_idyn=' -i_dynamic';;
 
11437
          esac
 
11438
          archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11439
          archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
11440
          ;;
 
11441
        esac
 
11442
        archive_cmds_need_lc_CXX=no
 
11443
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11444
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
11445
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
11446
        ;;
 
11447
      pgCC*)
 
11448
        # Portland Group C++ compiler
 
11449
        archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
11450
        archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
 
11451
 
 
11452
        hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
11453
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
11454
        whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
11455
        ;;
 
11456
      cxx*)
 
11457
        # Compaq C++
 
11458
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11459
        archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
 
11460
 
 
11461
        runpath_var=LD_RUN_PATH
 
11462
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
11463
        hardcode_libdir_separator_CXX=:
 
11464
 
 
11465
        # Commands to make compiler produce verbose output that lists
 
11466
        # what "hidden" libraries, object files and flags are used when
 
11467
        # linking a shared library.
 
11468
        #
 
11469
        # There doesn't appear to be a way to prevent this compiler from
 
11470
        # explicitly linking system object files so we need to strip them
 
11471
        # from the output so that they don't get included in the library
 
11472
        # dependencies.
 
11473
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
11474
        ;;
 
11475
    esac
 
11476
    ;;
 
11477
  lynxos*)
 
11478
    # FIXME: insert proper C++ library support
 
11479
    ld_shlibs_CXX=no
 
11480
    ;;
 
11481
  m88k*)
 
11482
    # FIXME: insert proper C++ library support
 
11483
    ld_shlibs_CXX=no
 
11484
    ;;
 
11485
  mvs*)
 
11486
    case $cc_basename in
 
11487
      cxx*)
 
11488
        # FIXME: insert proper C++ library support
 
11489
        ld_shlibs_CXX=no
 
11490
        ;;
 
11491
      *)
 
11492
        # FIXME: insert proper C++ library support
 
11493
        ld_shlibs_CXX=no
 
11494
        ;;
 
11495
    esac
 
11496
    ;;
 
11497
  netbsd* | netbsdelf*-gnu)
 
11498
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
11499
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
11500
      wlarc=
 
11501
      hardcode_libdir_flag_spec_CXX='-R$libdir'
 
11502
      hardcode_direct_CXX=yes
 
11503
      hardcode_shlibpath_var_CXX=no
 
11504
    fi
 
11505
    # Workaround some broken pre-1.5 toolchains
 
11506
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
11507
    ;;
 
11508
  openbsd2*)
 
11509
    # C++ shared libraries are fairly broken
 
11510
    ld_shlibs_CXX=no
 
11511
    ;;
 
11512
  openbsd*)
 
11513
    hardcode_direct_CXX=yes
 
11514
    hardcode_shlibpath_var_CXX=no
 
11515
    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
11516
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11517
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
11518
      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
11519
      export_dynamic_flag_spec_CXX='${wl}-E'
 
11520
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
11521
    fi
 
11522
    output_verbose_link_cmd='echo'
 
11523
    ;;
 
11524
  osf3*)
 
11525
    case $cc_basename in
 
11526
      KCC*)
 
11527
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
11528
 
 
11529
        # KCC will only create a shared library if the output file
 
11530
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
11531
        # to its proper name (with version) after linking.
 
11532
        archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
 
11533
 
 
11534
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11535
        hardcode_libdir_separator_CXX=:
 
11536
 
 
11537
        # Archives containing C++ object files must be created using
 
11538
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
11539
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
11540
 
 
11541
        ;;
 
11542
      RCC*)
 
11543
        # Rational C++ 2.4.1
 
11544
        # FIXME: insert proper C++ library support
 
11545
        ld_shlibs_CXX=no
 
11546
        ;;
 
11547
      cxx*)
 
11548
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
11549
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
11550
 
 
11551
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
11552
        hardcode_libdir_separator_CXX=:
 
11553
 
 
11554
        # Commands to make compiler produce verbose output that lists
 
11555
        # what "hidden" libraries, object files and flags are used when
 
11556
        # linking a shared library.
 
11557
        #
 
11558
        # There doesn't appear to be a way to prevent this compiler from
 
11559
        # explicitly linking system object files so we need to strip them
 
11560
        # from the output so that they don't get included in the library
 
11561
        # dependencies.
 
11562
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
11563
        ;;
 
11564
      *)
 
11565
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
11566
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
11567
          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
11568
 
 
11569
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
11570
          hardcode_libdir_separator_CXX=:
 
11571
 
 
11572
          # Commands to make compiler produce verbose output that lists
 
11573
          # what "hidden" libraries, object files and flags are used when
 
11574
          # linking a shared library.
 
11575
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
11576
 
 
11577
        else
 
11578
          # FIXME: insert proper C++ library support
 
11579
          ld_shlibs_CXX=no
 
11580
        fi
 
11581
        ;;
 
11582
    esac
 
11583
    ;;
 
11584
  osf4* | osf5*)
 
11585
    case $cc_basename in
 
11586
      KCC*)
 
11587
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
11588
 
 
11589
        # KCC will only create a shared library if the output file
 
11590
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
11591
        # to its proper name (with version) after linking.
 
11592
        archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
 
11593
 
 
11594
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11595
        hardcode_libdir_separator_CXX=:
 
11596
 
 
11597
        # Archives containing C++ object files must be created using
 
11598
        # the KAI C++ compiler.
 
11599
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
 
11600
        ;;
 
11601
      RCC*)
 
11602
        # Rational C++ 2.4.1
 
11603
        # FIXME: insert proper C++ library support
 
11604
        ld_shlibs_CXX=no
 
11605
        ;;
 
11606
      cxx*)
 
11607
        allow_undefined_flag_CXX=' -expect_unresolved \*'
 
11608
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
11609
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
11610
          echo "-hidden">> $lib.exp~
 
11611
          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
 
11612
          $rm $lib.exp'
 
11613
 
 
11614
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
11615
        hardcode_libdir_separator_CXX=:
 
11616
 
 
11617
        # Commands to make compiler produce verbose output that lists
 
11618
        # what "hidden" libraries, object files and flags are used when
 
11619
        # linking a shared library.
 
11620
        #
 
11621
        # There doesn't appear to be a way to prevent this compiler from
 
11622
        # explicitly linking system object files so we need to strip them
 
11623
        # from the output so that they don't get included in the library
 
11624
        # dependencies.
 
11625
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
11626
        ;;
 
11627
      *)
 
11628
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
11629
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
11630
         archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
11631
 
 
11632
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
11633
          hardcode_libdir_separator_CXX=:
 
11634
 
 
11635
          # Commands to make compiler produce verbose output that lists
 
11636
          # what "hidden" libraries, object files and flags are used when
 
11637
          # linking a shared library.
 
11638
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
11639
 
 
11640
        else
 
11641
          # FIXME: insert proper C++ library support
 
11642
          ld_shlibs_CXX=no
 
11643
        fi
 
11644
        ;;
 
11645
    esac
 
11646
    ;;
 
11647
  psos*)
 
11648
    # FIXME: insert proper C++ library support
 
11649
    ld_shlibs_CXX=no
 
11650
    ;;
 
11651
  sunos4*)
 
11652
    case $cc_basename in
 
11653
      CC*)
 
11654
        # Sun C++ 4.x
 
11655
        # FIXME: insert proper C++ library support
 
11656
        ld_shlibs_CXX=no
 
11657
        ;;
 
11658
      lcc*)
 
11659
        # Lucid
 
11660
        # FIXME: insert proper C++ library support
 
11661
        ld_shlibs_CXX=no
 
11662
        ;;
 
11663
      *)
 
11664
        # FIXME: insert proper C++ library support
 
11665
        ld_shlibs_CXX=no
 
11666
        ;;
 
11667
    esac
 
11668
    ;;
 
11669
  solaris*)
 
11670
    case $cc_basename in
 
11671
      CC*)
 
11672
        # Sun C++ 4.2, 5.x and Centerline C++
 
11673
        archive_cmds_need_lc_CXX=yes
 
11674
        no_undefined_flag_CXX=' -zdefs'
 
11675
        archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11676
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
11677
        $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
11678
 
 
11679
        hardcode_libdir_flag_spec_CXX='-R$libdir'
 
11680
        hardcode_shlibpath_var_CXX=no
 
11681
        case $host_os in
 
11682
          solaris2.[0-5] | solaris2.[0-5].*) ;;
 
11683
          *)
 
11684
            # The C++ compiler is used as linker so we must use $wl
 
11685
            # flag to pass the commands to the underlying system
 
11686
            # linker. We must also pass each convience library through
 
11687
            # to the system linker between allextract/defaultextract.
 
11688
            # The C++ compiler will combine linker options so we
 
11689
            # cannot just pass the convience library names through
 
11690
            # without $wl.
 
11691
            # Supported since Solaris 2.6 (maybe 2.5.1?)
 
11692
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
 
11693
            ;;
 
11694
        esac
 
11695
        link_all_deplibs_CXX=yes
 
11696
 
 
11697
        output_verbose_link_cmd='echo'
 
11698
 
 
11699
        # Archives containing C++ object files must be created using
 
11700
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
11701
        # necessary to make sure instantiated templates are included
 
11702
        # in the archive.
 
11703
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
11704
        ;;
 
11705
      gcx*)
 
11706
        # Green Hills C++ Compiler
 
11707
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
11708
 
 
11709
        # The C++ compiler must be used to create the archive.
 
11710
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
11711
        ;;
 
11712
      *)
 
11713
        # GNU C++ compiler with Solaris linker
 
11714
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
11715
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
 
11716
          if $CC --version | grep -v '^2\.7' > /dev/null; then
 
11717
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
11718
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
11719
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
11720
 
 
11721
            # Commands to make compiler produce verbose output that lists
 
11722
            # what "hidden" libraries, object files and flags are used when
 
11723
            # linking a shared library.
 
11724
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
11725
          else
 
11726
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
11727
            # platform.
 
11728
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
11729
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
11730
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
11731
 
 
11732
            # Commands to make compiler produce verbose output that lists
 
11733
            # what "hidden" libraries, object files and flags are used when
 
11734
            # linking a shared library.
 
11735
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
11736
          fi
 
11737
 
 
11738
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
11739
        fi
 
11740
        ;;
 
11741
    esac
 
11742
    ;;
 
11743
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
11744
    no_undefined_flag_CXX='${wl}-z,text'
 
11745
    archive_cmds_need_lc_CXX=no
 
11746
    hardcode_shlibpath_var_CXX=no
 
11747
    runpath_var='LD_RUN_PATH'
 
11748
 
 
11749
    case $cc_basename in
 
11750
      CC*)
 
11751
        archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11752
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11753
        ;;
 
11754
      *)
 
11755
        archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11756
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11757
        ;;
 
11758
    esac
 
11759
    ;;
 
11760
  sysv5* | sco3.2v5* | sco5v6*)
 
11761
    # Note: We can NOT use -z defs as we might desire, because we do not
 
11762
    # link with -lc, and that would cause any symbols used from libc to
 
11763
    # always be unresolved, which means just about no library would
 
11764
    # ever link correctly.  If we're not using GNU ld we use -z text
 
11765
    # though, which does catch some bad symbols but isn't as heavy-handed
 
11766
    # as -z defs.
 
11767
    # For security reasons, it is highly recommended that you always
 
11768
    # use absolute paths for naming shared libraries, and exclude the
 
11769
    # DT_RUNPATH tag from executables and libraries.  But doing so
 
11770
    # requires that you compile everything twice, which is a pain.
 
11771
    # So that behaviour is only enabled if SCOABSPATH is set to a
 
11772
    # non-empty value in the environment.  Most likely only useful for
 
11773
    # creating official distributions of packages.
 
11774
    # This is a hack until libtool officially supports absolute path
 
11775
    # names for shared libraries.
 
11776
    no_undefined_flag_CXX='${wl}-z,text'
 
11777
    allow_undefined_flag_CXX='${wl}-z,nodefs'
 
11778
    archive_cmds_need_lc_CXX=no
 
11779
    hardcode_shlibpath_var_CXX=no
 
11780
    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
11781
    hardcode_libdir_separator_CXX=':'
 
11782
    link_all_deplibs_CXX=yes
 
11783
    export_dynamic_flag_spec_CXX='${wl}-Bexport'
 
11784
    runpath_var='LD_RUN_PATH'
 
11785
 
 
11786
    case $cc_basename in
 
11787
      CC*)
 
11788
        archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11789
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11790
        ;;
 
11791
      *)
 
11792
        archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11793
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11794
        ;;
 
11795
    esac
 
11796
    ;;
 
11797
  tandem*)
 
11798
    case $cc_basename in
 
11799
      NCC*)
 
11800
        # NonStop-UX NCC 3.20
 
11801
        # FIXME: insert proper C++ library support
 
11802
        ld_shlibs_CXX=no
 
11803
        ;;
 
11804
      *)
 
11805
        # FIXME: insert proper C++ library support
 
11806
        ld_shlibs_CXX=no
 
11807
        ;;
 
11808
    esac
 
11809
    ;;
 
11810
  vxworks*)
 
11811
    # FIXME: insert proper C++ library support
 
11812
    ld_shlibs_CXX=no
 
11813
    ;;
 
11814
  *)
 
11815
    # FIXME: insert proper C++ library support
 
11816
    ld_shlibs_CXX=no
 
11817
    ;;
 
11818
esac
 
11819
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
11820
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
 
11821
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
11822
 
 
11823
GCC_CXX="$GXX"
 
11824
LD_CXX="$LD"
 
11825
 
 
11826
 
 
11827
cat > conftest.$ac_ext <<EOF
 
11828
class Foo
 
11829
{
 
11830
public:
 
11831
  Foo (void) { a = 0; }
 
11832
private:
 
11833
  int a;
 
11834
};
 
11835
EOF
 
11836
 
 
11837
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11838
  (eval $ac_compile) 2>&5
 
11839
  ac_status=$?
 
11840
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11841
  (exit $ac_status); }; then
 
11842
  # Parse the compiler output and extract the necessary
 
11843
  # objects, libraries and library flags.
 
11844
 
 
11845
  # Sentinel used to keep track of whether or not we are before
 
11846
  # the conftest object file.
 
11847
  pre_test_object_deps_done=no
 
11848
 
 
11849
  # The `*' in the case matches for architectures that use `case' in
 
11850
  # $output_verbose_cmd can trigger glob expansion during the loop
 
11851
  # eval without this substitution.
 
11852
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
 
11853
 
 
11854
  for p in `eval $output_verbose_link_cmd`; do
 
11855
    case $p in
 
11856
 
 
11857
    -L* | -R* | -l*)
 
11858
       # Some compilers place space between "-{L,R}" and the path.
 
11859
       # Remove the space.
 
11860
       if test $p = "-L" \
 
11861
          || test $p = "-R"; then
 
11862
         prev=$p
 
11863
         continue
 
11864
       else
 
11865
         prev=
 
11866
       fi
 
11867
 
 
11868
       if test "$pre_test_object_deps_done" = no; then
 
11869
         case $p in
 
11870
         -L* | -R*)
 
11871
           # Internal compiler library paths should come after those
 
11872
           # provided the user.  The postdeps already come after the
 
11873
           # user supplied libs so there is no need to process them.
 
11874
           if test -z "$compiler_lib_search_path_CXX"; then
 
11875
             compiler_lib_search_path_CXX="${prev}${p}"
 
11876
           else
 
11877
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
 
11878
           fi
 
11879
           ;;
 
11880
         # The "-l" case would never come before the object being
 
11881
         # linked, so don't bother handling this case.
 
11882
         esac
 
11883
       else
 
11884
         if test -z "$postdeps_CXX"; then
 
11885
           postdeps_CXX="${prev}${p}"
 
11886
         else
 
11887
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
 
11888
         fi
 
11889
       fi
 
11890
       ;;
 
11891
 
 
11892
    *.$objext)
 
11893
       # This assumes that the test object file only shows up
 
11894
       # once in the compiler output.
 
11895
       if test "$p" = "conftest.$objext"; then
 
11896
         pre_test_object_deps_done=yes
 
11897
         continue
 
11898
       fi
 
11899
 
 
11900
       if test "$pre_test_object_deps_done" = no; then
 
11901
         if test -z "$predep_objects_CXX"; then
 
11902
           predep_objects_CXX="$p"
 
11903
         else
 
11904
           predep_objects_CXX="$predep_objects_CXX $p"
 
11905
         fi
 
11906
       else
 
11907
         if test -z "$postdep_objects_CXX"; then
 
11908
           postdep_objects_CXX="$p"
 
11909
         else
 
11910
           postdep_objects_CXX="$postdep_objects_CXX $p"
 
11911
         fi
 
11912
       fi
 
11913
       ;;
 
11914
 
 
11915
    *) ;; # Ignore the rest.
 
11916
 
 
11917
    esac
 
11918
  done
 
11919
 
 
11920
  # Clean up.
 
11921
  rm -f a.out a.exe
 
11922
else
 
11923
  echo "libtool.m4: error: problem compiling CXX test program"
 
11924
fi
 
11925
 
 
11926
$rm -f confest.$objext
 
11927
 
 
11928
# PORTME: override above test on systems where it is broken
 
11929
case $host_os in
 
11930
interix3*)
 
11931
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
11932
  # hack all around it, let's just trust "g++" to DTRT.
 
11933
  predep_objects_CXX=
 
11934
  postdep_objects_CXX=
 
11935
  postdeps_CXX=
 
11936
  ;;
 
11937
 
 
11938
solaris*)
 
11939
  case $cc_basename in
 
11940
  CC*)
 
11941
    # Adding this requires a known-good setup of shared libraries for
 
11942
    # Sun compiler versions before 5.6, else PIC objects from an old
 
11943
    # archive will be linked into the output, leading to subtle bugs.
 
11944
    postdeps_CXX='-lCstd -lCrun'
 
11945
    ;;
 
11946
  esac
 
11947
  ;;
 
11948
esac
 
11949
 
 
11950
 
 
11951
case " $postdeps_CXX " in
 
11952
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
 
11953
esac
 
11954
 
 
11955
lt_prog_compiler_wl_CXX=
 
11956
lt_prog_compiler_pic_CXX=
 
11957
lt_prog_compiler_static_CXX=
 
11958
 
 
11959
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
11960
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
 
11961
 
 
11962
  # C++ specific cases for pic, static, wl, etc.
 
11963
  if test "$GXX" = yes; then
 
11964
    lt_prog_compiler_wl_CXX='-Wl,'
 
11965
    lt_prog_compiler_static_CXX='-static'
 
11966
 
 
11967
    case $host_os in
 
11968
    aix*)
 
11969
      # All AIX code is PIC.
 
11970
      if test "$host_cpu" = ia64; then
 
11971
        # AIX 5 now supports IA64 processor
 
11972
        lt_prog_compiler_static_CXX='-Bstatic'
 
11973
      fi
 
11974
      ;;
 
11975
    amigaos*)
 
11976
      # FIXME: we need at least 68020 code to build shared libraries, but
 
11977
      # adding the `-m68020' flag to GCC prevents building anything better,
 
11978
      # like `-m68040'.
 
11979
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
11980
      ;;
 
11981
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
11982
      # PIC is the default for these OSes.
 
11983
      ;;
 
11984
    mingw* | os2* | pw32*)
 
11985
      # This hack is so that the source file can tell whether it is being
 
11986
      # built for inclusion in a dll (and should export symbols for example).
 
11987
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
11988
      ;;
 
11989
    darwin* | rhapsody*)
 
11990
      # PIC is the default on this platform
 
11991
      # Common symbols not allowed in MH_DYLIB files
 
11992
      lt_prog_compiler_pic_CXX='-fno-common'
 
11993
      ;;
 
11994
    *djgpp*)
 
11995
      # DJGPP does not support shared libraries at all
 
11996
      lt_prog_compiler_pic_CXX=
 
11997
      ;;
 
11998
    interix3*)
 
11999
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
12000
      # Instead, we relocate shared libraries at runtime.
 
12001
      ;;
 
12002
    sysv4*MP*)
 
12003
      if test -d /usr/nec; then
 
12004
        lt_prog_compiler_pic_CXX=-Kconform_pic
 
12005
      fi
 
12006
      ;;
 
12007
    hpux*)
 
12008
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
12009
      # not for PA HP-UX.
 
12010
      case $host_cpu in
 
12011
      hppa*64*|ia64*)
 
12012
        ;;
 
12013
      *)
 
12014
        lt_prog_compiler_pic_CXX='-fPIC'
 
12015
        ;;
 
12016
      esac
 
12017
      ;;
 
12018
    *)
 
12019
      lt_prog_compiler_pic_CXX='-fPIC'
 
12020
      ;;
 
12021
    esac
 
12022
  else
 
12023
    case $host_os in
 
12024
      aix4* | aix5*)
 
12025
        # All AIX code is PIC.
 
12026
        if test "$host_cpu" = ia64; then
 
12027
          # AIX 5 now supports IA64 processor
 
12028
          lt_prog_compiler_static_CXX='-Bstatic'
 
12029
        else
 
12030
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
 
12031
        fi
 
12032
        ;;
 
12033
      chorus*)
 
12034
        case $cc_basename in
 
12035
        cxch68*)
 
12036
          # Green Hills C++ Compiler
 
12037
          # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
 
12038
          ;;
 
12039
        esac
 
12040
        ;;
 
12041
       darwin*)
 
12042
         # PIC is the default on this platform
 
12043
         # Common symbols not allowed in MH_DYLIB files
 
12044
         case $cc_basename in
 
12045
           xlc*)
 
12046
           lt_prog_compiler_pic_CXX='-qnocommon'
 
12047
           lt_prog_compiler_wl_CXX='-Wl,'
 
12048
           ;;
 
12049
         esac
 
12050
       ;;
 
12051
      dgux*)
 
12052
        case $cc_basename in
 
12053
          ec++*)
 
12054
            lt_prog_compiler_pic_CXX='-KPIC'
 
12055
            ;;
 
12056
          ghcx*)
 
12057
            # Green Hills C++ Compiler
 
12058
            lt_prog_compiler_pic_CXX='-pic'
 
12059
            ;;
 
12060
          *)
 
12061
            ;;
 
12062
        esac
 
12063
        ;;
 
12064
      freebsd* | dragonfly*)
 
12065
        # FreeBSD uses GNU C++
 
12066
        ;;
 
12067
      hpux9* | hpux10* | hpux11*)
 
12068
        case $cc_basename in
 
12069
          CC*)
 
12070
            lt_prog_compiler_wl_CXX='-Wl,'
 
12071
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
12072
            if test "$host_cpu" != ia64; then
 
12073
              lt_prog_compiler_pic_CXX='+Z'
 
12074
            fi
 
12075
            ;;
 
12076
          aCC*)
 
12077
            lt_prog_compiler_wl_CXX='-Wl,'
 
12078
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
12079
            case $host_cpu in
 
12080
            hppa*64*|ia64*)
 
12081
              # +Z the default
 
12082
              ;;
 
12083
            *)
 
12084
              lt_prog_compiler_pic_CXX='+Z'
 
12085
              ;;
 
12086
            esac
 
12087
            ;;
 
12088
          *)
 
12089
            ;;
 
12090
        esac
 
12091
        ;;
 
12092
      interix*)
 
12093
        # This is c89, which is MS Visual C++ (no shared libs)
 
12094
        # Anyone wants to do a port?
 
12095
        ;;
 
12096
      irix5* | irix6* | nonstopux*)
 
12097
        case $cc_basename in
 
12098
          CC*)
 
12099
            lt_prog_compiler_wl_CXX='-Wl,'
 
12100
            lt_prog_compiler_static_CXX='-non_shared'
 
12101
            # CC pic flag -KPIC is the default.
 
12102
            ;;
 
12103
          *)
 
12104
            ;;
 
12105
        esac
 
12106
        ;;
 
12107
      linux* | k*bsd*-gnu)
 
12108
        case $cc_basename in
 
12109
          KCC*)
 
12110
            # KAI C++ Compiler
 
12111
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
12112
            lt_prog_compiler_pic_CXX='-fPIC'
 
12113
            ;;
 
12114
          icpc* | ecpc*)
 
12115
            # Intel C++
 
12116
            lt_prog_compiler_wl_CXX='-Wl,'
 
12117
            lt_prog_compiler_pic_CXX='-KPIC'
 
12118
            lt_prog_compiler_static_CXX='-static'
 
12119
            ;;
 
12120
          pgCC*)
 
12121
            # Portland Group C++ compiler.
 
12122
            lt_prog_compiler_wl_CXX='-Wl,'
 
12123
            lt_prog_compiler_pic_CXX='-fpic'
 
12124
            lt_prog_compiler_static_CXX='-Bstatic'
 
12125
            ;;
 
12126
          cxx*)
 
12127
            # Compaq C++
 
12128
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
12129
            # Linux and Compaq Tru64 Unix objects are PIC.
 
12130
            lt_prog_compiler_pic_CXX=
 
12131
            lt_prog_compiler_static_CXX='-non_shared'
 
12132
            ;;
 
12133
          *)
 
12134
            ;;
 
12135
        esac
 
12136
        ;;
 
12137
      lynxos*)
 
12138
        ;;
 
12139
      m88k*)
 
12140
        ;;
 
12141
      mvs*)
 
12142
        case $cc_basename in
 
12143
          cxx*)
 
12144
            lt_prog_compiler_pic_CXX='-W c,exportall'
 
12145
            ;;
 
12146
          *)
 
12147
            ;;
 
12148
        esac
 
12149
        ;;
 
12150
      netbsd* | netbsdelf*-gnu)
 
12151
        ;;
 
12152
      osf3* | osf4* | osf5*)
 
12153
        case $cc_basename in
 
12154
          KCC*)
 
12155
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
12156
            ;;
 
12157
          RCC*)
 
12158
            # Rational C++ 2.4.1
 
12159
            lt_prog_compiler_pic_CXX='-pic'
 
12160
            ;;
 
12161
          cxx*)
 
12162
            # Digital/Compaq C++
 
12163
            lt_prog_compiler_wl_CXX='-Wl,'
 
12164
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
12165
            # Linux and Compaq Tru64 Unix objects are PIC.
 
12166
            lt_prog_compiler_pic_CXX=
 
12167
            lt_prog_compiler_static_CXX='-non_shared'
 
12168
            ;;
 
12169
          *)
 
12170
            ;;
 
12171
        esac
 
12172
        ;;
 
12173
      psos*)
 
12174
        ;;
 
12175
      solaris*)
 
12176
        case $cc_basename in
 
12177
          CC*)
 
12178
            # Sun C++ 4.2, 5.x and Centerline C++
 
12179
            lt_prog_compiler_pic_CXX='-KPIC'
 
12180
            lt_prog_compiler_static_CXX='-Bstatic'
 
12181
            lt_prog_compiler_wl_CXX='-Qoption ld '
 
12182
            ;;
 
12183
          gcx*)
 
12184
            # Green Hills C++ Compiler
 
12185
            lt_prog_compiler_pic_CXX='-PIC'
 
12186
            ;;
 
12187
          *)
 
12188
            ;;
 
12189
        esac
 
12190
        ;;
 
12191
      sunos4*)
 
12192
        case $cc_basename in
 
12193
          CC*)
 
12194
            # Sun C++ 4.x
 
12195
            lt_prog_compiler_pic_CXX='-pic'
 
12196
            lt_prog_compiler_static_CXX='-Bstatic'
 
12197
            ;;
 
12198
          lcc*)
 
12199
            # Lucid
 
12200
            lt_prog_compiler_pic_CXX='-pic'
 
12201
            ;;
 
12202
          *)
 
12203
            ;;
 
12204
        esac
 
12205
        ;;
 
12206
      tandem*)
 
12207
        case $cc_basename in
 
12208
          NCC*)
 
12209
            # NonStop-UX NCC 3.20
 
12210
            lt_prog_compiler_pic_CXX='-KPIC'
 
12211
            ;;
 
12212
          *)
 
12213
            ;;
 
12214
        esac
 
12215
        ;;
 
12216
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
12217
        case $cc_basename in
 
12218
          CC*)
 
12219
            lt_prog_compiler_wl_CXX='-Wl,'
 
12220
            lt_prog_compiler_pic_CXX='-KPIC'
 
12221
            lt_prog_compiler_static_CXX='-Bstatic'
 
12222
            ;;
 
12223
        esac
 
12224
        ;;
 
12225
      vxworks*)
 
12226
        ;;
 
12227
      *)
 
12228
        lt_prog_compiler_can_build_shared_CXX=no
 
12229
        ;;
 
12230
    esac
 
12231
  fi
 
12232
 
 
12233
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
 
12234
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
 
12235
 
 
12236
#
 
12237
# Check to make sure the PIC flag actually works.
 
12238
#
 
12239
if test -n "$lt_prog_compiler_pic_CXX"; then
 
12240
 
 
12241
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
12242
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
 
12243
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
 
12244
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12245
else
 
12246
  lt_prog_compiler_pic_works_CXX=no
 
12247
  ac_outfile=conftest.$ac_objext
 
12248
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
12249
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
 
12250
   # Insert the option either (1) after the last *FLAGS variable, or
 
12251
   # (2) before a word containing "conftest.", or (3) at the end.
 
12252
   # Note that $ac_compile itself does not contain backslashes and begins
 
12253
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
12254
   # The option is referenced via a variable to avoid confusing sed.
 
12255
   lt_compile=`echo "$ac_compile" | $SED \
 
12256
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
12257
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
12258
   -e 's:$: $lt_compiler_flag:'`
 
12259
   (eval echo "\"\$as_me:12259: $lt_compile\"" >&5)
 
12260
   (eval "$lt_compile" 2>conftest.err)
 
12261
   ac_status=$?
 
12262
   cat conftest.err >&5
 
12263
   echo "$as_me:12263: \$? = $ac_status" >&5
 
12264
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
12265
     # The compiler can only warn and ignore the option if not recognized
 
12266
     # So say no if there are warnings other than the usual output.
 
12267
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
12268
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
12269
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
12270
       lt_prog_compiler_pic_works_CXX=yes
 
12271
     fi
 
12272
   fi
 
12273
   $rm conftest*
 
12274
 
 
12275
fi
 
12276
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
 
12277
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
 
12278
 
 
12279
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
 
12280
    case $lt_prog_compiler_pic_CXX in
 
12281
     "" | " "*) ;;
 
12282
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
 
12283
     esac
 
12284
else
 
12285
    lt_prog_compiler_pic_CXX=
 
12286
     lt_prog_compiler_can_build_shared_CXX=no
 
12287
fi
 
12288
 
 
12289
fi
 
12290
case $host_os in
 
12291
  # For platforms which do not support PIC, -DPIC is meaningless:
 
12292
  *djgpp*)
 
12293
    lt_prog_compiler_pic_CXX=
 
12294
    ;;
 
12295
  *)
 
12296
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
 
12297
    ;;
 
12298
esac
 
12299
 
 
12300
#
 
12301
# Check to make sure the static flag actually works.
 
12302
#
 
12303
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
 
12304
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
12305
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
 
12306
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
 
12307
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12308
else
 
12309
  lt_prog_compiler_static_works_CXX=no
 
12310
   save_LDFLAGS="$LDFLAGS"
 
12311
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
12312
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
12313
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
12314
     # The linker can only warn and ignore the option if not recognized
 
12315
     # So say no if there are warnings
 
12316
     if test -s conftest.err; then
 
12317
       # Append any errors to the config.log.
 
12318
       cat conftest.err 1>&5
 
12319
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
12320
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
12321
       if diff conftest.exp conftest.er2 >/dev/null; then
 
12322
         lt_prog_compiler_static_works_CXX=yes
 
12323
       fi
 
12324
     else
 
12325
       lt_prog_compiler_static_works_CXX=yes
 
12326
     fi
 
12327
   fi
 
12328
   $rm conftest*
 
12329
   LDFLAGS="$save_LDFLAGS"
 
12330
 
 
12331
fi
 
12332
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
 
12333
echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
 
12334
 
 
12335
if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
 
12336
    :
 
12337
else
 
12338
    lt_prog_compiler_static_CXX=
 
12339
fi
 
12340
 
 
12341
 
 
12342
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
12343
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
12344
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
 
12345
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12346
else
 
12347
  lt_cv_prog_compiler_c_o_CXX=no
 
12348
   $rm -r conftest 2>/dev/null
 
12349
   mkdir conftest
 
12350
   cd conftest
 
12351
   mkdir out
 
12352
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
12353
 
 
12354
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
12355
   # Insert the option either (1) after the last *FLAGS variable, or
 
12356
   # (2) before a word containing "conftest.", or (3) at the end.
 
12357
   # Note that $ac_compile itself does not contain backslashes and begins
 
12358
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
12359
   lt_compile=`echo "$ac_compile" | $SED \
 
12360
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
12361
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
12362
   -e 's:$: $lt_compiler_flag:'`
 
12363
   (eval echo "\"\$as_me:12363: $lt_compile\"" >&5)
 
12364
   (eval "$lt_compile" 2>out/conftest.err)
 
12365
   ac_status=$?
 
12366
   cat out/conftest.err >&5
 
12367
   echo "$as_me:12367: \$? = $ac_status" >&5
 
12368
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
12369
   then
 
12370
     # The compiler can only warn and ignore the option if not recognized
 
12371
     # So say no if there are warnings
 
12372
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
12373
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
12374
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
12375
       lt_cv_prog_compiler_c_o_CXX=yes
 
12376
     fi
 
12377
   fi
 
12378
   chmod u+w . 2>&5
 
12379
   $rm conftest*
 
12380
   # SGI C++ compiler will create directory out/ii_files/ for
 
12381
   # template instantiation
 
12382
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
12383
   $rm out/* && rmdir out
 
12384
   cd ..
 
12385
   rmdir conftest
 
12386
   $rm conftest*
 
12387
 
 
12388
fi
 
12389
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
12390
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
 
12391
 
 
12392
 
 
12393
hard_links="nottested"
 
12394
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
 
12395
  # do not overwrite the value of need_locks provided by the user
 
12396
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
12397
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
 
12398
  hard_links=yes
 
12399
  $rm conftest*
 
12400
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
12401
  touch conftest.a
 
12402
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
12403
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
12404
  { echo "$as_me:$LINENO: result: $hard_links" >&5
 
12405
echo "${ECHO_T}$hard_links" >&6; }
 
12406
  if test "$hard_links" = no; then
 
12407
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
12408
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
12409
    need_locks=warn
 
12410
  fi
 
12411
else
 
12412
  need_locks=no
 
12413
fi
 
12414
 
 
12415
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
12416
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
12417
 
 
12418
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
12419
  case $host_os in
 
12420
  aix4* | aix5*)
 
12421
    # If we're using GNU nm, then we don't want the "-C" option.
 
12422
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
12423
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
12424
      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
12425
    else
 
12426
      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
12427
    fi
 
12428
    ;;
 
12429
  pw32*)
 
12430
    export_symbols_cmds_CXX="$ltdll_cmds"
 
12431
  ;;
 
12432
  cygwin* | mingw*)
 
12433
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
12434
  ;;
 
12435
  linux* | k*bsd*-gnu)
 
12436
    link_all_deplibs_CXX=no
 
12437
  ;;
 
12438
  *)
 
12439
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
12440
  ;;
 
12441
  esac
 
12442
 
 
12443
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
12444
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
 
12445
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
12446
 
 
12447
#
 
12448
# Do we need to explicitly link libc?
 
12449
#
 
12450
case "x$archive_cmds_need_lc_CXX" in
 
12451
x|xyes)
 
12452
  # Assume -lc should be added
 
12453
  archive_cmds_need_lc_CXX=yes
 
12454
 
 
12455
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
12456
    case $archive_cmds_CXX in
 
12457
    *'~'*)
 
12458
      # FIXME: we may have to deal with multi-command sequences.
 
12459
      ;;
 
12460
    '$CC '*)
 
12461
      # Test whether the compiler implicitly links with -lc since on some
 
12462
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
12463
      # to ld, don't add -lc before -lgcc.
 
12464
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
12465
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
 
12466
      $rm conftest*
 
12467
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
12468
 
 
12469
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12470
  (eval $ac_compile) 2>&5
 
12471
  ac_status=$?
 
12472
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12473
  (exit $ac_status); } 2>conftest.err; then
 
12474
        soname=conftest
 
12475
        lib=conftest
 
12476
        libobjs=conftest.$ac_objext
 
12477
        deplibs=
 
12478
        wl=$lt_prog_compiler_wl_CXX
 
12479
        pic_flag=$lt_prog_compiler_pic_CXX
 
12480
        compiler_flags=-v
 
12481
        linker_flags=-v
 
12482
        verstring=
 
12483
        output_objdir=.
 
12484
        libname=conftest
 
12485
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
 
12486
        allow_undefined_flag_CXX=
 
12487
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
12488
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
12489
  ac_status=$?
 
12490
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12491
  (exit $ac_status); }
 
12492
        then
 
12493
          archive_cmds_need_lc_CXX=no
 
12494
        else
 
12495
          archive_cmds_need_lc_CXX=yes
 
12496
        fi
 
12497
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
 
12498
      else
 
12499
        cat conftest.err 1>&5
 
12500
      fi
 
12501
      $rm conftest*
 
12502
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
 
12503
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
 
12504
      ;;
 
12505
    esac
 
12506
  fi
 
12507
  ;;
 
12508
esac
 
12509
 
 
12510
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
12511
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
 
12512
library_names_spec=
 
12513
libname_spec='lib$name'
 
12514
soname_spec=
 
12515
shrext_cmds=".so"
 
12516
postinstall_cmds=
 
12517
postuninstall_cmds=
 
12518
finish_cmds=
 
12519
finish_eval=
 
12520
shlibpath_var=
 
12521
shlibpath_overrides_runpath=unknown
 
12522
version_type=none
 
12523
dynamic_linker="$host_os ld.so"
 
12524
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
12525
if test "$GCC" = yes; then
 
12526
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
12527
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
12528
    # if the path contains ";" then we assume it to be the separator
 
12529
    # otherwise default to the standard path separator (i.e. ":") - it is
 
12530
    # assumed that no part of a normal pathname contains ";" but that should
 
12531
    # okay in the real world where ";" in dirpaths is itself problematic.
 
12532
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
12533
  else
 
12534
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
12535
  fi
 
12536
else
 
12537
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
12538
fi
 
12539
need_lib_prefix=unknown
 
12540
hardcode_into_libs=no
 
12541
 
 
12542
# when you set need_version to no, make sure it does not cause -set_version
 
12543
# flags to be left without arguments
 
12544
need_version=unknown
 
12545
 
 
12546
case $host_os in
 
12547
aix3*)
 
12548
  version_type=linux
 
12549
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
12550
  shlibpath_var=LIBPATH
 
12551
 
 
12552
  # AIX 3 has no versioning support, so we append a major version to the name.
 
12553
  soname_spec='${libname}${release}${shared_ext}$major'
 
12554
  ;;
 
12555
 
 
12556
aix4* | aix5*)
 
12557
  version_type=linux
 
12558
  need_lib_prefix=no
 
12559
  need_version=no
 
12560
  hardcode_into_libs=yes
 
12561
  if test "$host_cpu" = ia64; then
 
12562
    # AIX 5 supports IA64
 
12563
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
12564
    shlibpath_var=LD_LIBRARY_PATH
 
12565
  else
 
12566
    # With GCC up to 2.95.x, collect2 would create an import file
 
12567
    # for dependence libraries.  The import file would start with
 
12568
    # the line `#! .'.  This would cause the generated library to
 
12569
    # depend on `.', always an invalid library.  This was fixed in
 
12570
    # development snapshots of GCC prior to 3.0.
 
12571
    case $host_os in
 
12572
      aix4 | aix4.[01] | aix4.[01].*)
 
12573
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
12574
           echo ' yes '
 
12575
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
12576
        :
 
12577
      else
 
12578
        can_build_shared=no
 
12579
      fi
 
12580
      ;;
 
12581
    esac
 
12582
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
12583
    # soname into executable. Probably we can add versioning support to
 
12584
    # collect2, so additional links can be useful in future.
 
12585
    if test "$aix_use_runtimelinking" = yes; then
 
12586
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
12587
      # instead of lib<name>.a to let people know that these are not
 
12588
      # typical AIX shared libraries.
 
12589
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12590
    else
 
12591
      # We preserve .a as extension for shared libraries through AIX4.2
 
12592
      # and later when we are not doing run time linking.
 
12593
      library_names_spec='${libname}${release}.a $libname.a'
 
12594
      soname_spec='${libname}${release}${shared_ext}$major'
 
12595
    fi
 
12596
    shlibpath_var=LIBPATH
 
12597
  fi
 
12598
  ;;
 
12599
 
 
12600
amigaos*)
 
12601
  library_names_spec='$libname.ixlibrary $libname.a'
 
12602
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
12603
  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'
 
12604
  ;;
 
12605
 
 
12606
beos*)
 
12607
  library_names_spec='${libname}${shared_ext}'
 
12608
  dynamic_linker="$host_os ld.so"
 
12609
  shlibpath_var=LIBRARY_PATH
 
12610
  ;;
 
12611
 
 
12612
bsdi[45]*)
 
12613
  version_type=linux
 
12614
  need_version=no
 
12615
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12616
  soname_spec='${libname}${release}${shared_ext}$major'
 
12617
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
12618
  shlibpath_var=LD_LIBRARY_PATH
 
12619
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
12620
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
12621
  # the default ld.so.conf also contains /usr/contrib/lib and
 
12622
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
12623
  # libtool to hard-code these into programs
 
12624
  ;;
 
12625
 
 
12626
cygwin* | mingw* | pw32*)
 
12627
  version_type=windows
 
12628
  shrext_cmds=".dll"
 
12629
  need_version=no
 
12630
  need_lib_prefix=no
 
12631
 
 
12632
  case $GCC,$host_os in
 
12633
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
12634
    library_names_spec='$libname.dll.a'
 
12635
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
12636
    postinstall_cmds='base_file=`basename \${file}`~
 
12637
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
12638
      dldir=$destdir/`dirname \$dlpath`~
 
12639
      test -d \$dldir || mkdir -p \$dldir~
 
12640
      $install_prog $dir/$dlname \$dldir/$dlname~
 
12641
      chmod a+x \$dldir/$dlname'
 
12642
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
12643
      dlpath=$dir/\$dldll~
 
12644
       $rm \$dlpath'
 
12645
    shlibpath_overrides_runpath=yes
 
12646
 
 
12647
    case $host_os in
 
12648
    cygwin*)
 
12649
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
12650
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
12651
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
12652
      ;;
 
12653
    mingw*)
 
12654
      # MinGW DLLs use traditional 'lib' prefix
 
12655
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
12656
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
12657
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
12658
        # It is most probably a Windows format PATH printed by
 
12659
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
12660
        # path with ; separators, and with drive letters. We can handle the
 
12661
        # drive letters (cygwin fileutils understands them), so leave them,
 
12662
        # especially as we might pass files found there to a mingw objdump,
 
12663
        # which wouldn't understand a cygwinified path. Ahh.
 
12664
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
12665
      else
 
12666
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
12667
      fi
 
12668
      ;;
 
12669
    pw32*)
 
12670
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
12671
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
12672
      ;;
 
12673
    esac
 
12674
    ;;
 
12675
 
 
12676
  *)
 
12677
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
12678
    ;;
 
12679
  esac
 
12680
  dynamic_linker='Win32 ld.exe'
 
12681
  # FIXME: first we should search . and the directory the executable is in
 
12682
  shlibpath_var=PATH
 
12683
  ;;
 
12684
 
 
12685
darwin* | rhapsody*)
 
12686
  dynamic_linker="$host_os dyld"
 
12687
  version_type=darwin
 
12688
  need_lib_prefix=no
 
12689
  need_version=no
 
12690
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
12691
  soname_spec='${libname}${release}${major}$shared_ext'
 
12692
  shlibpath_overrides_runpath=yes
 
12693
  shlibpath_var=DYLD_LIBRARY_PATH
 
12694
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
12695
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
12696
  if test "$GCC" = yes; then
 
12697
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
 
12698
  else
 
12699
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
12700
  fi
 
12701
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
12702
  ;;
 
12703
 
 
12704
dgux*)
 
12705
  version_type=linux
 
12706
  need_lib_prefix=no
 
12707
  need_version=no
 
12708
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
12709
  soname_spec='${libname}${release}${shared_ext}$major'
 
12710
  shlibpath_var=LD_LIBRARY_PATH
 
12711
  ;;
 
12712
 
 
12713
freebsd1*)
 
12714
  dynamic_linker=no
 
12715
  ;;
 
12716
 
 
12717
freebsd* | dragonfly*)
 
12718
  # DragonFly does not have aout.  When/if they implement a new
 
12719
  # versioning mechanism, adjust this.
 
12720
  if test -x /usr/bin/objformat; then
 
12721
    objformat=`/usr/bin/objformat`
 
12722
  else
 
12723
    case $host_os in
 
12724
    freebsd[123]*) objformat=aout ;;
 
12725
    *) objformat=elf ;;
 
12726
    esac
 
12727
  fi
 
12728
  version_type=freebsd-$objformat
 
12729
  case $version_type in
 
12730
    freebsd-elf*)
 
12731
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
12732
      need_version=no
 
12733
      need_lib_prefix=no
 
12734
      ;;
 
12735
    freebsd-*)
 
12736
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
12737
      need_version=yes
 
12738
      ;;
 
12739
  esac
 
12740
  shlibpath_var=LD_LIBRARY_PATH
 
12741
  case $host_os in
 
12742
  freebsd2*)
 
12743
    shlibpath_overrides_runpath=yes
 
12744
    ;;
 
12745
  freebsd3.[01]* | freebsdelf3.[01]*)
 
12746
    shlibpath_overrides_runpath=yes
 
12747
    hardcode_into_libs=yes
 
12748
    ;;
 
12749
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
12750
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
12751
    shlibpath_overrides_runpath=no
 
12752
    hardcode_into_libs=yes
 
12753
    ;;
 
12754
  freebsd*) # from 4.6 on
 
12755
    shlibpath_overrides_runpath=yes
 
12756
    hardcode_into_libs=yes
 
12757
    ;;
 
12758
  esac
 
12759
  ;;
 
12760
 
 
12761
gnu*)
 
12762
  version_type=linux
 
12763
  need_lib_prefix=no
 
12764
  need_version=no
 
12765
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
12766
  soname_spec='${libname}${release}${shared_ext}$major'
 
12767
  shlibpath_var=LD_LIBRARY_PATH
 
12768
  hardcode_into_libs=yes
 
12769
  ;;
 
12770
 
 
12771
hpux9* | hpux10* | hpux11*)
 
12772
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
12773
  # link against other versions.
 
12774
  version_type=sunos
 
12775
  need_lib_prefix=no
 
12776
  need_version=no
 
12777
  case $host_cpu in
 
12778
  ia64*)
 
12779
    shrext_cmds='.so'
 
12780
    hardcode_into_libs=yes
 
12781
    dynamic_linker="$host_os dld.so"
 
12782
    shlibpath_var=LD_LIBRARY_PATH
 
12783
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
12784
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12785
    soname_spec='${libname}${release}${shared_ext}$major'
 
12786
    if test "X$HPUX_IA64_MODE" = X32; then
 
12787
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
12788
    else
 
12789
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
12790
    fi
 
12791
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
12792
    ;;
 
12793
   hppa*64*)
 
12794
     shrext_cmds='.sl'
 
12795
     hardcode_into_libs=yes
 
12796
     dynamic_linker="$host_os dld.sl"
 
12797
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
12798
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
12799
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12800
     soname_spec='${libname}${release}${shared_ext}$major'
 
12801
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
12802
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
12803
     ;;
 
12804
   *)
 
12805
    shrext_cmds='.sl'
 
12806
    dynamic_linker="$host_os dld.sl"
 
12807
    shlibpath_var=SHLIB_PATH
 
12808
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
12809
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12810
    soname_spec='${libname}${release}${shared_ext}$major'
 
12811
    ;;
 
12812
  esac
 
12813
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
12814
  postinstall_cmds='chmod 555 $lib'
 
12815
  ;;
 
12816
 
 
12817
interix3*)
 
12818
  version_type=linux
 
12819
  need_lib_prefix=no
 
12820
  need_version=no
 
12821
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
12822
  soname_spec='${libname}${release}${shared_ext}$major'
 
12823
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
12824
  shlibpath_var=LD_LIBRARY_PATH
 
12825
  shlibpath_overrides_runpath=no
 
12826
  hardcode_into_libs=yes
 
12827
  ;;
 
12828
 
 
12829
irix5* | irix6* | nonstopux*)
 
12830
  case $host_os in
 
12831
    nonstopux*) version_type=nonstopux ;;
 
12832
    *)
 
12833
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
12834
                version_type=linux
 
12835
        else
 
12836
                version_type=irix
 
12837
        fi ;;
 
12838
  esac
 
12839
  need_lib_prefix=no
 
12840
  need_version=no
 
12841
  soname_spec='${libname}${release}${shared_ext}$major'
 
12842
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
12843
  case $host_os in
 
12844
  irix5* | nonstopux*)
 
12845
    libsuff= shlibsuff=
 
12846
    ;;
 
12847
  *)
 
12848
    case $LD in # libtool.m4 will add one of these switches to LD
 
12849
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
12850
      libsuff= shlibsuff= libmagic=32-bit;;
 
12851
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
12852
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
12853
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
12854
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
12855
    *) libsuff= shlibsuff= libmagic=never-match;;
 
12856
    esac
 
12857
    ;;
 
12858
  esac
 
12859
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
12860
  shlibpath_overrides_runpath=no
 
12861
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
12862
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
12863
  hardcode_into_libs=yes
 
12864
  ;;
 
12865
 
 
12866
# No shared lib support for Linux oldld, aout, or coff.
 
12867
linux*oldld* | linux*aout* | linux*coff*)
 
12868
  dynamic_linker=no
 
12869
  ;;
 
12870
 
 
12871
# This must be Linux ELF.
 
12872
linux* | k*bsd*-gnu)
 
12873
  version_type=linux
 
12874
  need_lib_prefix=no
 
12875
  need_version=no
 
12876
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12877
  soname_spec='${libname}${release}${shared_ext}$major'
 
12878
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
12879
  shlibpath_var=LD_LIBRARY_PATH
 
12880
  shlibpath_overrides_runpath=no
 
12881
  # This implies no fast_install, which is unacceptable.
 
12882
  # Some rework will be needed to allow for fast_install
 
12883
  # before this can be enabled.
 
12884
  hardcode_into_libs=yes
 
12885
 
 
12886
  # Append ld.so.conf contents to the search path
 
12887
  if test -f /etc/ld.so.conf; then
 
12888
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
12889
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
12890
  fi
 
12891
 
 
12892
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
12893
  # powerpc, because MkLinux only supported shared libraries with the
 
12894
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
12895
  # most powerpc-linux boxes support dynamic linking these days and
 
12896
  # people can always --disable-shared, the test was removed, and we
 
12897
  # assume the GNU/Linux dynamic linker is in use.
 
12898
  dynamic_linker='GNU/Linux ld.so'
 
12899
  ;;
 
12900
 
 
12901
netbsdelf*-gnu)
 
12902
  version_type=linux
 
12903
  need_lib_prefix=no
 
12904
  need_version=no
 
12905
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
12906
  soname_spec='${libname}${release}${shared_ext}$major'
 
12907
  shlibpath_var=LD_LIBRARY_PATH
 
12908
  shlibpath_overrides_runpath=no
 
12909
  hardcode_into_libs=yes
 
12910
  dynamic_linker='NetBSD ld.elf_so'
 
12911
  ;;
 
12912
 
 
12913
netbsd*)
 
12914
  version_type=sunos
 
12915
  need_lib_prefix=no
 
12916
  need_version=no
 
12917
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
12918
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
12919
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
12920
    dynamic_linker='NetBSD (a.out) ld.so'
 
12921
  else
 
12922
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
12923
    soname_spec='${libname}${release}${shared_ext}$major'
 
12924
    dynamic_linker='NetBSD ld.elf_so'
 
12925
  fi
 
12926
  shlibpath_var=LD_LIBRARY_PATH
 
12927
  shlibpath_overrides_runpath=yes
 
12928
  hardcode_into_libs=yes
 
12929
  ;;
 
12930
 
 
12931
newsos6)
 
12932
  version_type=linux
 
12933
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12934
  shlibpath_var=LD_LIBRARY_PATH
 
12935
  shlibpath_overrides_runpath=yes
 
12936
  ;;
 
12937
 
 
12938
nto-qnx*)
 
12939
  version_type=linux
 
12940
  need_lib_prefix=no
 
12941
  need_version=no
 
12942
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12943
  soname_spec='${libname}${release}${shared_ext}$major'
 
12944
  shlibpath_var=LD_LIBRARY_PATH
 
12945
  shlibpath_overrides_runpath=yes
 
12946
  ;;
 
12947
 
 
12948
openbsd*)
 
12949
  version_type=sunos
 
12950
  sys_lib_dlsearch_path_spec="/usr/lib"
 
12951
  need_lib_prefix=no
 
12952
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
12953
  case $host_os in
 
12954
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
12955
    *)                         need_version=no  ;;
 
12956
  esac
 
12957
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
12958
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
12959
  shlibpath_var=LD_LIBRARY_PATH
 
12960
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
12961
    case $host_os in
 
12962
      openbsd2.[89] | openbsd2.[89].*)
 
12963
        shlibpath_overrides_runpath=no
 
12964
        ;;
 
12965
      *)
 
12966
        shlibpath_overrides_runpath=yes
 
12967
        ;;
 
12968
      esac
 
12969
  else
 
12970
    shlibpath_overrides_runpath=yes
 
12971
  fi
 
12972
  ;;
 
12973
 
 
12974
os2*)
 
12975
  libname_spec='$name'
 
12976
  shrext_cmds=".dll"
 
12977
  need_lib_prefix=no
 
12978
  library_names_spec='$libname${shared_ext} $libname.a'
 
12979
  dynamic_linker='OS/2 ld.exe'
 
12980
  shlibpath_var=LIBPATH
 
12981
  ;;
 
12982
 
 
12983
osf3* | osf4* | osf5*)
 
12984
  version_type=osf
 
12985
  need_lib_prefix=no
 
12986
  need_version=no
 
12987
  soname_spec='${libname}${release}${shared_ext}$major'
 
12988
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12989
  shlibpath_var=LD_LIBRARY_PATH
 
12990
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
12991
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
12992
  ;;
 
12993
 
 
12994
solaris*)
 
12995
  version_type=linux
 
12996
  need_lib_prefix=no
 
12997
  need_version=no
 
12998
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12999
  soname_spec='${libname}${release}${shared_ext}$major'
 
13000
  shlibpath_var=LD_LIBRARY_PATH
 
13001
  shlibpath_overrides_runpath=yes
 
13002
  hardcode_into_libs=yes
 
13003
  # ldd complains unless libraries are executable
 
13004
  postinstall_cmds='chmod +x $lib'
 
13005
  ;;
 
13006
 
 
13007
sunos4*)
 
13008
  version_type=sunos
 
13009
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
13010
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
13011
  shlibpath_var=LD_LIBRARY_PATH
 
13012
  shlibpath_overrides_runpath=yes
 
13013
  if test "$with_gnu_ld" = yes; then
 
13014
    need_lib_prefix=no
 
13015
  fi
 
13016
  need_version=yes
 
13017
  ;;
 
13018
 
 
13019
sysv4 | sysv4.3*)
 
13020
  version_type=linux
 
13021
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13022
  soname_spec='${libname}${release}${shared_ext}$major'
 
13023
  shlibpath_var=LD_LIBRARY_PATH
 
13024
  case $host_vendor in
 
13025
    sni)
 
13026
      shlibpath_overrides_runpath=no
 
13027
      need_lib_prefix=no
 
13028
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
13029
      runpath_var=LD_RUN_PATH
 
13030
      ;;
 
13031
    siemens)
 
13032
      need_lib_prefix=no
 
13033
      ;;
 
13034
    motorola)
 
13035
      need_lib_prefix=no
 
13036
      need_version=no
 
13037
      shlibpath_overrides_runpath=no
 
13038
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
13039
      ;;
 
13040
  esac
 
13041
  ;;
 
13042
 
 
13043
sysv4*MP*)
 
13044
  if test -d /usr/nec ;then
 
13045
    version_type=linux
 
13046
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
13047
    soname_spec='$libname${shared_ext}.$major'
 
13048
    shlibpath_var=LD_LIBRARY_PATH
 
13049
  fi
 
13050
  ;;
 
13051
 
 
13052
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
13053
  version_type=freebsd-elf
 
13054
  need_lib_prefix=no
 
13055
  need_version=no
 
13056
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
13057
  soname_spec='${libname}${release}${shared_ext}$major'
 
13058
  shlibpath_var=LD_LIBRARY_PATH
 
13059
  hardcode_into_libs=yes
 
13060
  if test "$with_gnu_ld" = yes; then
 
13061
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
13062
    shlibpath_overrides_runpath=no
 
13063
  else
 
13064
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
13065
    shlibpath_overrides_runpath=yes
 
13066
    case $host_os in
 
13067
      sco3.2v5*)
 
13068
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
13069
        ;;
 
13070
    esac
 
13071
  fi
 
13072
  sys_lib_dlsearch_path_spec='/usr/lib'
 
13073
  ;;
 
13074
 
 
13075
uts4*)
 
13076
  version_type=linux
 
13077
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13078
  soname_spec='${libname}${release}${shared_ext}$major'
 
13079
  shlibpath_var=LD_LIBRARY_PATH
 
13080
  ;;
 
13081
 
 
13082
*)
 
13083
  dynamic_linker=no
 
13084
  ;;
 
13085
esac
 
13086
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
13087
echo "${ECHO_T}$dynamic_linker" >&6; }
 
13088
test "$dynamic_linker" = no && can_build_shared=no
 
13089
 
 
13090
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
13091
if test "$GCC" = yes; then
 
13092
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
13093
fi
 
13094
 
 
13095
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
13096
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
 
13097
hardcode_action_CXX=
 
13098
if test -n "$hardcode_libdir_flag_spec_CXX" || \
 
13099
   test -n "$runpath_var_CXX" || \
 
13100
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
 
13101
 
 
13102
  # We can hardcode non-existant directories.
 
13103
  if test "$hardcode_direct_CXX" != no &&
 
13104
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
13105
     # have to relink, otherwise we might link with an installed library
 
13106
     # when we should be linking with a yet-to-be-installed one
 
13107
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
 
13108
     test "$hardcode_minus_L_CXX" != no; then
 
13109
    # Linking always hardcodes the temporary library directory.
 
13110
    hardcode_action_CXX=relink
 
13111
  else
 
13112
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
13113
    hardcode_action_CXX=immediate
 
13114
  fi
 
13115
else
 
13116
  # We cannot hardcode anything, or else we can only hardcode existing
 
13117
  # directories.
 
13118
  hardcode_action_CXX=unsupported
 
13119
fi
 
13120
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
 
13121
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
 
13122
 
 
13123
if test "$hardcode_action_CXX" = relink; then
 
13124
  # Fast installation is not supported
 
13125
  enable_fast_install=no
 
13126
elif test "$shlibpath_overrides_runpath" = yes ||
 
13127
     test "$enable_shared" = no; then
 
13128
  # Fast installation is not necessary
 
13129
  enable_fast_install=needless
 
13130
fi
 
13131
 
 
13132
 
 
13133
# The else clause should only fire when bootstrapping the
 
13134
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
13135
# with your package, and you will get complaints that there are
 
13136
# no rules to generate ltmain.sh.
 
13137
if test -f "$ltmain"; then
 
13138
  # See if we are running on zsh, and set the options which allow our commands through
 
13139
  # without removal of \ escapes.
 
13140
  if test -n "${ZSH_VERSION+set}" ; then
 
13141
    setopt NO_GLOB_SUBST
 
13142
  fi
 
13143
  # Now quote all the things that may contain metacharacters while being
 
13144
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
13145
  # variables and quote the copies for generation of the libtool script.
 
13146
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
13147
    SED SHELL STRIP \
 
13148
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
13149
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
13150
    deplibs_check_method reload_flag reload_cmds need_locks \
 
13151
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
13152
    lt_cv_sys_global_symbol_to_c_name_address \
 
13153
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
13154
    old_postinstall_cmds old_postuninstall_cmds \
 
13155
    compiler_CXX \
 
13156
    CC_CXX \
 
13157
    LD_CXX \
 
13158
    lt_prog_compiler_wl_CXX \
 
13159
    lt_prog_compiler_pic_CXX \
 
13160
    lt_prog_compiler_static_CXX \
 
13161
    lt_prog_compiler_no_builtin_flag_CXX \
 
13162
    export_dynamic_flag_spec_CXX \
 
13163
    thread_safe_flag_spec_CXX \
 
13164
    whole_archive_flag_spec_CXX \
 
13165
    enable_shared_with_static_runtimes_CXX \
 
13166
    old_archive_cmds_CXX \
 
13167
    old_archive_from_new_cmds_CXX \
 
13168
    predep_objects_CXX \
 
13169
    postdep_objects_CXX \
 
13170
    predeps_CXX \
 
13171
    postdeps_CXX \
 
13172
    compiler_lib_search_path_CXX \
 
13173
    archive_cmds_CXX \
 
13174
    archive_expsym_cmds_CXX \
 
13175
    postinstall_cmds_CXX \
 
13176
    postuninstall_cmds_CXX \
 
13177
    old_archive_from_expsyms_cmds_CXX \
 
13178
    allow_undefined_flag_CXX \
 
13179
    no_undefined_flag_CXX \
 
13180
    export_symbols_cmds_CXX \
 
13181
    hardcode_libdir_flag_spec_CXX \
 
13182
    hardcode_libdir_flag_spec_ld_CXX \
 
13183
    hardcode_libdir_separator_CXX \
 
13184
    hardcode_automatic_CXX \
 
13185
    module_cmds_CXX \
 
13186
    module_expsym_cmds_CXX \
 
13187
    lt_cv_prog_compiler_c_o_CXX \
 
13188
    exclude_expsyms_CXX \
 
13189
    include_expsyms_CXX; do
 
13190
 
 
13191
    case $var in
 
13192
    old_archive_cmds_CXX | \
 
13193
    old_archive_from_new_cmds_CXX | \
 
13194
    archive_cmds_CXX | \
 
13195
    archive_expsym_cmds_CXX | \
 
13196
    module_cmds_CXX | \
 
13197
    module_expsym_cmds_CXX | \
 
13198
    old_archive_from_expsyms_cmds_CXX | \
 
13199
    export_symbols_cmds_CXX | \
 
13200
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
13201
    postinstall_cmds | postuninstall_cmds | \
 
13202
    old_postinstall_cmds | old_postuninstall_cmds | \
 
13203
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
13204
      # Double-quote double-evaled strings.
 
13205
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
13206
      ;;
 
13207
    *)
 
13208
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
13209
      ;;
 
13210
    esac
 
13211
  done
 
13212
 
 
13213
  case $lt_echo in
 
13214
  *'\$0 --fallback-echo"')
 
13215
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
13216
    ;;
 
13217
  esac
 
13218
 
 
13219
cfgfile="$ofile"
 
13220
 
 
13221
  cat <<__EOF__ >> "$cfgfile"
 
13222
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
13223
 
 
13224
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
13225
 
 
13226
# Shell to use when invoking shell scripts.
 
13227
SHELL=$lt_SHELL
 
13228
 
 
13229
# Whether or not to build shared libraries.
 
13230
build_libtool_libs=$enable_shared
 
13231
 
 
13232
# Whether or not to build static libraries.
 
13233
build_old_libs=$enable_static
 
13234
 
 
13235
# Whether or not to add -lc for building shared libraries.
 
13236
build_libtool_need_lc=$archive_cmds_need_lc_CXX
 
13237
 
 
13238
# Whether or not to disallow shared libs when runtime libs are static
 
13239
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
13240
 
 
13241
# Whether or not to optimize for fast installation.
 
13242
fast_install=$enable_fast_install
 
13243
 
 
13244
# The host system.
 
13245
host_alias=$host_alias
 
13246
host=$host
 
13247
host_os=$host_os
 
13248
 
 
13249
# The build system.
 
13250
build_alias=$build_alias
 
13251
build=$build
 
13252
build_os=$build_os
 
13253
 
 
13254
# An echo program that does not interpret backslashes.
 
13255
echo=$lt_echo
 
13256
 
 
13257
# The archiver.
 
13258
AR=$lt_AR
 
13259
AR_FLAGS=$lt_AR_FLAGS
 
13260
 
 
13261
# A C compiler.
 
13262
LTCC=$lt_LTCC
 
13263
 
 
13264
# LTCC compiler flags.
 
13265
LTCFLAGS=$lt_LTCFLAGS
 
13266
 
 
13267
# A language-specific compiler.
 
13268
CC=$lt_compiler_CXX
 
13269
 
 
13270
# Is the compiler the GNU C compiler?
 
13271
with_gcc=$GCC_CXX
 
13272
 
 
13273
# An ERE matcher.
 
13274
EGREP=$lt_EGREP
 
13275
 
 
13276
# The linker used to build libraries.
 
13277
LD=$lt_LD_CXX
 
13278
 
 
13279
# Whether we need hard or soft links.
 
13280
LN_S=$lt_LN_S
 
13281
 
 
13282
# A BSD-compatible nm program.
 
13283
NM=$lt_NM
 
13284
 
 
13285
# A symbol stripping program
 
13286
STRIP=$lt_STRIP
 
13287
 
 
13288
# Used to examine libraries when file_magic_cmd begins "file"
 
13289
MAGIC_CMD=$MAGIC_CMD
 
13290
 
 
13291
# Used on cygwin: DLL creation program.
 
13292
DLLTOOL="$DLLTOOL"
 
13293
 
 
13294
# Used on cygwin: object dumper.
 
13295
OBJDUMP="$OBJDUMP"
 
13296
 
 
13297
# Used on cygwin: assembler.
 
13298
AS="$AS"
 
13299
 
 
13300
# The name of the directory that contains temporary libtool files.
 
13301
objdir=$objdir
 
13302
 
 
13303
# How to create reloadable object files.
 
13304
reload_flag=$lt_reload_flag
 
13305
reload_cmds=$lt_reload_cmds
 
13306
 
 
13307
# How to pass a linker flag through the compiler.
 
13308
wl=$lt_lt_prog_compiler_wl_CXX
 
13309
 
 
13310
# Object file suffix (normally "o").
 
13311
objext="$ac_objext"
 
13312
 
 
13313
# Old archive suffix (normally "a").
 
13314
libext="$libext"
 
13315
 
 
13316
# Shared library suffix (normally ".so").
 
13317
shrext_cmds='$shrext_cmds'
 
13318
 
 
13319
# Executable file suffix (normally "").
 
13320
exeext="$exeext"
 
13321
 
 
13322
# Additional compiler flags for building library objects.
 
13323
pic_flag=$lt_lt_prog_compiler_pic_CXX
 
13324
pic_mode=$pic_mode
 
13325
 
 
13326
# What is the maximum length of a command?
 
13327
max_cmd_len=$lt_cv_sys_max_cmd_len
 
13328
 
 
13329
# Does compiler simultaneously support -c and -o options?
 
13330
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 
13331
 
 
13332
# Must we lock files when doing compilation?
 
13333
need_locks=$lt_need_locks
 
13334
 
 
13335
# Do we need the lib prefix for modules?
 
13336
need_lib_prefix=$need_lib_prefix
 
13337
 
 
13338
# Do we need a version for libraries?
 
13339
need_version=$need_version
 
13340
 
 
13341
# Whether dlopen is supported.
 
13342
dlopen_support=$enable_dlopen
 
13343
 
 
13344
# Whether dlopen of programs is supported.
 
13345
dlopen_self=$enable_dlopen_self
 
13346
 
 
13347
# Whether dlopen of statically linked programs is supported.
 
13348
dlopen_self_static=$enable_dlopen_self_static
 
13349
 
 
13350
# Compiler flag to prevent dynamic linking.
 
13351
link_static_flag=$lt_lt_prog_compiler_static_CXX
 
13352
 
 
13353
# Compiler flag to turn off builtin functions.
 
13354
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 
13355
 
 
13356
# Compiler flag to allow reflexive dlopens.
 
13357
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 
13358
 
 
13359
# Compiler flag to generate shared objects directly from archives.
 
13360
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 
13361
 
 
13362
# Compiler flag to generate thread-safe objects.
 
13363
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
 
13364
 
 
13365
# Library versioning type.
 
13366
version_type=$version_type
 
13367
 
 
13368
# Format of library name prefix.
 
13369
libname_spec=$lt_libname_spec
 
13370
 
 
13371
# List of archive names.  First name is the real one, the rest are links.
 
13372
# The last name is the one that the linker finds with -lNAME.
 
13373
library_names_spec=$lt_library_names_spec
 
13374
 
 
13375
# The coded name of the library, if different from the real name.
 
13376
soname_spec=$lt_soname_spec
 
13377
 
 
13378
# Commands used to build and install an old-style archive.
 
13379
RANLIB=$lt_RANLIB
 
13380
old_archive_cmds=$lt_old_archive_cmds_CXX
 
13381
old_postinstall_cmds=$lt_old_postinstall_cmds
 
13382
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
13383
 
 
13384
# Create an old-style archive from a shared archive.
 
13385
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 
13386
 
 
13387
# Create a temporary old-style archive to link instead of a shared archive.
 
13388
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 
13389
 
 
13390
# Commands used to build and install a shared archive.
 
13391
archive_cmds=$lt_archive_cmds_CXX
 
13392
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 
13393
postinstall_cmds=$lt_postinstall_cmds
 
13394
postuninstall_cmds=$lt_postuninstall_cmds
 
13395
 
 
13396
# Commands used to build a loadable module (assumed same as above if empty)
 
13397
module_cmds=$lt_module_cmds_CXX
 
13398
module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
13399
 
 
13400
# Commands to strip libraries.
 
13401
old_striplib=$lt_old_striplib
 
13402
striplib=$lt_striplib
 
13403
 
 
13404
# Dependencies to place before the objects being linked to create a
 
13405
# shared library.
 
13406
predep_objects=$lt_predep_objects_CXX
 
13407
 
 
13408
# Dependencies to place after the objects being linked to create a
 
13409
# shared library.
 
13410
postdep_objects=$lt_postdep_objects_CXX
 
13411
 
 
13412
# Dependencies to place before the objects being linked to create a
 
13413
# shared library.
 
13414
predeps=$lt_predeps_CXX
 
13415
 
 
13416
# Dependencies to place after the objects being linked to create a
 
13417
# shared library.
 
13418
postdeps=$lt_postdeps_CXX
 
13419
 
 
13420
# The library search path used internally by the compiler when linking
 
13421
# a shared library.
 
13422
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
13423
 
 
13424
# Method to check whether dependent libraries are shared objects.
 
13425
deplibs_check_method=$lt_deplibs_check_method
 
13426
 
 
13427
# Command to use when deplibs_check_method == file_magic.
 
13428
file_magic_cmd=$lt_file_magic_cmd
 
13429
 
 
13430
# Flag that allows shared libraries with undefined symbols to be built.
 
13431
allow_undefined_flag=$lt_allow_undefined_flag_CXX
 
13432
 
 
13433
# Flag that forces no undefined symbols.
 
13434
no_undefined_flag=$lt_no_undefined_flag_CXX
 
13435
 
 
13436
# Commands used to finish a libtool library installation in a directory.
 
13437
finish_cmds=$lt_finish_cmds
 
13438
 
 
13439
# Same as above, but a single script fragment to be evaled but not shown.
 
13440
finish_eval=$lt_finish_eval
 
13441
 
 
13442
# Take the output of nm and produce a listing of raw symbols and C names.
 
13443
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
13444
 
 
13445
# Transform the output of nm in a proper C declaration
 
13446
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
13447
 
 
13448
# Transform the output of nm in a C name address pair
 
13449
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
13450
 
 
13451
# This is the shared library runtime path variable.
 
13452
runpath_var=$runpath_var
 
13453
 
 
13454
# This is the shared library path variable.
 
13455
shlibpath_var=$shlibpath_var
 
13456
 
 
13457
# Is shlibpath searched before the hard-coded library search path?
 
13458
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
13459
 
 
13460
# How to hardcode a shared library path into an executable.
 
13461
hardcode_action=$hardcode_action_CXX
 
13462
 
 
13463
# Whether we should hardcode library paths into libraries.
 
13464
hardcode_into_libs=$hardcode_into_libs
 
13465
 
 
13466
# Flag to hardcode \$libdir into a binary during linking.
 
13467
# This must work even if \$libdir does not exist.
 
13468
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
 
13469
 
 
13470
# If ld is used when linking, flag to hardcode \$libdir into
 
13471
# a binary during linking. This must work even if \$libdir does
 
13472
# not exist.
 
13473
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
 
13474
 
 
13475
# Whether we need a single -rpath flag with a separated argument.
 
13476
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
 
13477
 
 
13478
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
13479
# resulting binary.
 
13480
hardcode_direct=$hardcode_direct_CXX
 
13481
 
 
13482
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
13483
# resulting binary.
 
13484
hardcode_minus_L=$hardcode_minus_L_CXX
 
13485
 
 
13486
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
13487
# the resulting binary.
 
13488
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
 
13489
 
 
13490
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
13491
# and all subsequent libraries and executables linked against it.
 
13492
hardcode_automatic=$hardcode_automatic_CXX
 
13493
 
 
13494
# Variables whose values should be saved in libtool wrapper scripts and
 
13495
# restored at relink time.
 
13496
variables_saved_for_relink="$variables_saved_for_relink"
 
13497
 
 
13498
# Whether libtool must link a program against all its dependency libraries.
 
13499
link_all_deplibs=$link_all_deplibs_CXX
 
13500
 
 
13501
# Compile-time system search path for libraries
 
13502
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
13503
 
 
13504
# Run-time system search path for libraries
 
13505
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
13506
 
 
13507
# Fix the shell variable \$srcfile for the compiler.
 
13508
fix_srcfile_path="$fix_srcfile_path_CXX"
 
13509
 
 
13510
# Set to yes if exported symbols are required.
 
13511
always_export_symbols=$always_export_symbols_CXX
 
13512
 
 
13513
# The commands to list exported symbols.
 
13514
export_symbols_cmds=$lt_export_symbols_cmds_CXX
 
13515
 
 
13516
# The commands to extract the exported symbol list from a shared archive.
 
13517
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
13518
 
 
13519
# Symbols that should not be listed in the preloaded symbols.
 
13520
exclude_expsyms=$lt_exclude_expsyms_CXX
 
13521
 
 
13522
# Symbols that must always be exported.
 
13523
include_expsyms=$lt_include_expsyms_CXX
 
13524
 
 
13525
# ### END LIBTOOL TAG CONFIG: $tagname
 
13526
 
 
13527
__EOF__
 
13528
 
 
13529
 
 
13530
else
 
13531
  # If there is no Makefile yet, we rely on a make rule to execute
 
13532
  # `config.status --recheck' to rerun these tests and create the
 
13533
  # libtool script then.
 
13534
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
13535
  if test -f "$ltmain_in"; then
 
13536
    test -f Makefile && make "$ltmain"
 
13537
  fi
 
13538
fi
 
13539
 
 
13540
 
 
13541
ac_ext=c
 
13542
ac_cpp='$CPP $CPPFLAGS'
 
13543
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
13544
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
13545
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
13546
 
 
13547
CC=$lt_save_CC
 
13548
LDCXX=$LD
 
13549
LD=$lt_save_LD
 
13550
GCC=$lt_save_GCC
 
13551
with_gnu_ldcxx=$with_gnu_ld
 
13552
with_gnu_ld=$lt_save_with_gnu_ld
 
13553
lt_cv_path_LDCXX=$lt_cv_path_LD
 
13554
lt_cv_path_LD=$lt_save_path_LD
 
13555
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
13556
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
13557
 
 
13558
        else
 
13559
          tagname=""
 
13560
        fi
 
13561
        ;;
 
13562
 
 
13563
      F77)
 
13564
        if test -n "$F77" && test "X$F77" != "Xno"; then
 
13565
 
 
13566
ac_ext=f
 
13567
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
13568
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
13569
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
13570
 
 
13571
 
 
13572
archive_cmds_need_lc_F77=no
 
13573
allow_undefined_flag_F77=
 
13574
always_export_symbols_F77=no
 
13575
archive_expsym_cmds_F77=
 
13576
export_dynamic_flag_spec_F77=
 
13577
hardcode_direct_F77=no
 
13578
hardcode_libdir_flag_spec_F77=
 
13579
hardcode_libdir_flag_spec_ld_F77=
 
13580
hardcode_libdir_separator_F77=
 
13581
hardcode_minus_L_F77=no
 
13582
hardcode_automatic_F77=no
 
13583
module_cmds_F77=
 
13584
module_expsym_cmds_F77=
 
13585
link_all_deplibs_F77=unknown
 
13586
old_archive_cmds_F77=$old_archive_cmds
 
13587
no_undefined_flag_F77=
 
13588
whole_archive_flag_spec_F77=
 
13589
enable_shared_with_static_runtimes_F77=no
 
13590
 
 
13591
# Source file extension for f77 test sources.
 
13592
ac_ext=f
 
13593
 
 
13594
# Object file extension for compiled f77 test sources.
 
13595
objext=o
 
13596
objext_F77=$objext
 
13597
 
 
13598
# Code to be used in simple compile tests
 
13599
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 
13600
 
 
13601
# Code to be used in simple link tests
 
13602
lt_simple_link_test_code="      program t\n      end\n"
 
13603
 
 
13604
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
13605
 
 
13606
# If no C compiler was specified, use CC.
 
13607
LTCC=${LTCC-"$CC"}
 
13608
 
 
13609
# If no C compiler flags were specified, use CFLAGS.
 
13610
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
13611
 
 
13612
# Allow CC to be a program name with arguments.
 
13613
compiler=$CC
 
13614
 
 
13615
 
 
13616
# save warnings/boilerplate of simple test code
 
13617
ac_outfile=conftest.$ac_objext
 
13618
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
13619
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
13620
_lt_compiler_boilerplate=`cat conftest.err`
 
13621
$rm conftest*
 
13622
 
 
13623
ac_outfile=conftest.$ac_objext
 
13624
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
13625
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
13626
_lt_linker_boilerplate=`cat conftest.err`
 
13627
$rm conftest*
 
13628
 
 
13629
 
 
13630
# Allow CC to be a program name with arguments.
 
13631
lt_save_CC="$CC"
 
13632
CC=${F77-"f77"}
 
13633
compiler=$CC
 
13634
compiler_F77=$CC
 
13635
for cc_temp in $compiler""; do
 
13636
  case $cc_temp in
 
13637
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
13638
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
13639
    \-*) ;;
 
13640
    *) break;;
 
13641
  esac
 
13642
done
 
13643
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
13644
 
 
13645
 
 
13646
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
13647
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
 
13648
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
13649
echo "${ECHO_T}$can_build_shared" >&6; }
 
13650
 
 
13651
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
13652
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
 
13653
test "$can_build_shared" = "no" && enable_shared=no
 
13654
 
 
13655
# On AIX, shared libraries and static libraries use the same namespace, and
 
13656
# are all built from PIC.
 
13657
case $host_os in
 
13658
aix3*)
 
13659
  test "$enable_shared" = yes && enable_static=no
 
13660
  if test -n "$RANLIB"; then
 
13661
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
13662
    postinstall_cmds='$RANLIB $lib'
 
13663
  fi
 
13664
  ;;
 
13665
aix4* | aix5*)
 
13666
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
13667
    test "$enable_shared" = yes && enable_static=no
 
13668
  fi
 
13669
  ;;
 
13670
esac
 
13671
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
 
13672
echo "${ECHO_T}$enable_shared" >&6; }
 
13673
 
 
13674
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
13675
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
 
13676
# Make sure either enable_shared or enable_static is yes.
 
13677
test "$enable_shared" = yes || enable_static=yes
 
13678
{ echo "$as_me:$LINENO: result: $enable_static" >&5
 
13679
echo "${ECHO_T}$enable_static" >&6; }
 
13680
 
 
13681
GCC_F77="$G77"
 
13682
LD_F77="$LD"
 
13683
 
 
13684
lt_prog_compiler_wl_F77=
 
13685
lt_prog_compiler_pic_F77=
 
13686
lt_prog_compiler_static_F77=
 
13687
 
 
13688
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
13689
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
 
13690
 
 
13691
  if test "$GCC" = yes; then
 
13692
    lt_prog_compiler_wl_F77='-Wl,'
 
13693
    lt_prog_compiler_static_F77='-static'
 
13694
 
 
13695
    case $host_os in
 
13696
      aix*)
 
13697
      # All AIX code is PIC.
 
13698
      if test "$host_cpu" = ia64; then
 
13699
        # AIX 5 now supports IA64 processor
 
13700
        lt_prog_compiler_static_F77='-Bstatic'
 
13701
      fi
 
13702
      ;;
 
13703
 
 
13704
    amigaos*)
 
13705
      # FIXME: we need at least 68020 code to build shared libraries, but
 
13706
      # adding the `-m68020' flag to GCC prevents building anything better,
 
13707
      # like `-m68040'.
 
13708
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
 
13709
      ;;
 
13710
 
 
13711
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
13712
      # PIC is the default for these OSes.
 
13713
      ;;
 
13714
 
 
13715
    mingw* | pw32* | os2*)
 
13716
      # This hack is so that the source file can tell whether it is being
 
13717
      # built for inclusion in a dll (and should export symbols for example).
 
13718
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
13719
      ;;
 
13720
 
 
13721
    darwin* | rhapsody*)
 
13722
      # PIC is the default on this platform
 
13723
      # Common symbols not allowed in MH_DYLIB files
 
13724
      lt_prog_compiler_pic_F77='-fno-common'
 
13725
      ;;
 
13726
 
 
13727
    interix3*)
 
13728
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
13729
      # Instead, we relocate shared libraries at runtime.
 
13730
      ;;
 
13731
 
 
13732
    msdosdjgpp*)
 
13733
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
13734
      # on systems that don't support them.
 
13735
      lt_prog_compiler_can_build_shared_F77=no
 
13736
      enable_shared=no
 
13737
      ;;
 
13738
 
 
13739
    sysv4*MP*)
 
13740
      if test -d /usr/nec; then
 
13741
        lt_prog_compiler_pic_F77=-Kconform_pic
 
13742
      fi
 
13743
      ;;
 
13744
 
 
13745
    hpux*)
 
13746
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
13747
      # not for PA HP-UX.
 
13748
      case $host_cpu in
 
13749
      hppa*64*|ia64*)
 
13750
        # +Z the default
 
13751
        ;;
 
13752
      *)
 
13753
        lt_prog_compiler_pic_F77='-fPIC'
 
13754
        ;;
 
13755
      esac
 
13756
      ;;
 
13757
 
 
13758
    *)
 
13759
      lt_prog_compiler_pic_F77='-fPIC'
 
13760
      ;;
 
13761
    esac
 
13762
  else
 
13763
    # PORTME Check for flag to pass linker flags through the system compiler.
 
13764
    case $host_os in
 
13765
    aix*)
 
13766
      lt_prog_compiler_wl_F77='-Wl,'
 
13767
      if test "$host_cpu" = ia64; then
 
13768
        # AIX 5 now supports IA64 processor
 
13769
        lt_prog_compiler_static_F77='-Bstatic'
 
13770
      else
 
13771
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
 
13772
      fi
 
13773
      ;;
 
13774
      darwin*)
 
13775
        # PIC is the default on this platform
 
13776
        # Common symbols not allowed in MH_DYLIB files
 
13777
       case $cc_basename in
 
13778
         xlc*)
 
13779
         lt_prog_compiler_pic_F77='-qnocommon'
 
13780
         lt_prog_compiler_wl_F77='-Wl,'
 
13781
         ;;
 
13782
       esac
 
13783
       ;;
 
13784
 
 
13785
    mingw* | pw32* | os2*)
 
13786
      # This hack is so that the source file can tell whether it is being
 
13787
      # built for inclusion in a dll (and should export symbols for example).
 
13788
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
13789
      ;;
 
13790
 
 
13791
    hpux9* | hpux10* | hpux11*)
 
13792
      lt_prog_compiler_wl_F77='-Wl,'
 
13793
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
13794
      # not for PA HP-UX.
 
13795
      case $host_cpu in
 
13796
      hppa*64*|ia64*)
 
13797
        # +Z the default
 
13798
        ;;
 
13799
      *)
 
13800
        lt_prog_compiler_pic_F77='+Z'
 
13801
        ;;
 
13802
      esac
 
13803
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
13804
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
 
13805
      ;;
 
13806
 
 
13807
    irix5* | irix6* | nonstopux*)
 
13808
      lt_prog_compiler_wl_F77='-Wl,'
 
13809
      # PIC (with -KPIC) is the default.
 
13810
      lt_prog_compiler_static_F77='-non_shared'
 
13811
      ;;
 
13812
 
 
13813
    newsos6)
 
13814
      lt_prog_compiler_pic_F77='-KPIC'
 
13815
      lt_prog_compiler_static_F77='-Bstatic'
 
13816
      ;;
 
13817
 
 
13818
    linux* | k*bsd*-gnu)
 
13819
      case $cc_basename in
 
13820
      icc* | ecc*)
 
13821
        lt_prog_compiler_wl_F77='-Wl,'
 
13822
        lt_prog_compiler_pic_F77='-KPIC'
 
13823
        lt_prog_compiler_static_F77='-static'
 
13824
        ;;
 
13825
      pgcc* | pgf77* | pgf90* | pgf95*)
 
13826
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
13827
        # which looks to be a dead project)
 
13828
        lt_prog_compiler_wl_F77='-Wl,'
 
13829
        lt_prog_compiler_pic_F77='-fpic'
 
13830
        lt_prog_compiler_static_F77='-Bstatic'
 
13831
        ;;
 
13832
      ccc*)
 
13833
        lt_prog_compiler_wl_F77='-Wl,'
 
13834
        # All Alpha code is PIC.
 
13835
        lt_prog_compiler_static_F77='-non_shared'
 
13836
        ;;
 
13837
      esac
 
13838
      ;;
 
13839
 
 
13840
    osf3* | osf4* | osf5*)
 
13841
      lt_prog_compiler_wl_F77='-Wl,'
 
13842
      # All OSF/1 code is PIC.
 
13843
      lt_prog_compiler_static_F77='-non_shared'
 
13844
      ;;
 
13845
 
 
13846
    solaris*)
 
13847
      lt_prog_compiler_pic_F77='-KPIC'
 
13848
      lt_prog_compiler_static_F77='-Bstatic'
 
13849
      case $cc_basename in
 
13850
      f77* | f90* | f95*)
 
13851
        lt_prog_compiler_wl_F77='-Qoption ld ';;
 
13852
      *)
 
13853
        lt_prog_compiler_wl_F77='-Wl,';;
 
13854
      esac
 
13855
      ;;
 
13856
 
 
13857
    sunos4*)
 
13858
      lt_prog_compiler_wl_F77='-Qoption ld '
 
13859
      lt_prog_compiler_pic_F77='-PIC'
 
13860
      lt_prog_compiler_static_F77='-Bstatic'
 
13861
      ;;
 
13862
 
 
13863
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
13864
      lt_prog_compiler_wl_F77='-Wl,'
 
13865
      lt_prog_compiler_pic_F77='-KPIC'
 
13866
      lt_prog_compiler_static_F77='-Bstatic'
 
13867
      ;;
 
13868
 
 
13869
    sysv4*MP*)
 
13870
      if test -d /usr/nec ;then
 
13871
        lt_prog_compiler_pic_F77='-Kconform_pic'
 
13872
        lt_prog_compiler_static_F77='-Bstatic'
 
13873
      fi
 
13874
      ;;
 
13875
 
 
13876
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
13877
      lt_prog_compiler_wl_F77='-Wl,'
 
13878
      lt_prog_compiler_pic_F77='-KPIC'
 
13879
      lt_prog_compiler_static_F77='-Bstatic'
 
13880
      ;;
 
13881
 
 
13882
    unicos*)
 
13883
      lt_prog_compiler_wl_F77='-Wl,'
 
13884
      lt_prog_compiler_can_build_shared_F77=no
 
13885
      ;;
 
13886
 
 
13887
    uts4*)
 
13888
      lt_prog_compiler_pic_F77='-pic'
 
13889
      lt_prog_compiler_static_F77='-Bstatic'
 
13890
      ;;
 
13891
 
 
13892
    *)
 
13893
      lt_prog_compiler_can_build_shared_F77=no
 
13894
      ;;
 
13895
    esac
 
13896
  fi
 
13897
 
 
13898
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
 
13899
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
 
13900
 
 
13901
#
 
13902
# Check to make sure the PIC flag actually works.
 
13903
#
 
13904
if test -n "$lt_prog_compiler_pic_F77"; then
 
13905
 
 
13906
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
 
13907
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
 
13908
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
 
13909
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13910
else
 
13911
  lt_prog_compiler_pic_works_F77=no
 
13912
  ac_outfile=conftest.$ac_objext
 
13913
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13914
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
 
13915
   # Insert the option either (1) after the last *FLAGS variable, or
 
13916
   # (2) before a word containing "conftest.", or (3) at the end.
 
13917
   # Note that $ac_compile itself does not contain backslashes and begins
 
13918
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13919
   # The option is referenced via a variable to avoid confusing sed.
 
13920
   lt_compile=`echo "$ac_compile" | $SED \
 
13921
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
13922
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13923
   -e 's:$: $lt_compiler_flag:'`
 
13924
   (eval echo "\"\$as_me:13924: $lt_compile\"" >&5)
 
13925
   (eval "$lt_compile" 2>conftest.err)
 
13926
   ac_status=$?
 
13927
   cat conftest.err >&5
 
13928
   echo "$as_me:13928: \$? = $ac_status" >&5
 
13929
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
13930
     # The compiler can only warn and ignore the option if not recognized
 
13931
     # So say no if there are warnings other than the usual output.
 
13932
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
13933
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
13934
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
13935
       lt_prog_compiler_pic_works_F77=yes
 
13936
     fi
 
13937
   fi
 
13938
   $rm conftest*
 
13939
 
 
13940
fi
 
13941
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
 
13942
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
 
13943
 
 
13944
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
 
13945
    case $lt_prog_compiler_pic_F77 in
 
13946
     "" | " "*) ;;
 
13947
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
 
13948
     esac
 
13949
else
 
13950
    lt_prog_compiler_pic_F77=
 
13951
     lt_prog_compiler_can_build_shared_F77=no
 
13952
fi
 
13953
 
 
13954
fi
 
13955
case $host_os in
 
13956
  # For platforms which do not support PIC, -DPIC is meaningless:
 
13957
  *djgpp*)
 
13958
    lt_prog_compiler_pic_F77=
 
13959
    ;;
 
13960
  *)
 
13961
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
 
13962
    ;;
 
13963
esac
 
13964
 
 
13965
#
 
13966
# Check to make sure the static flag actually works.
 
13967
#
 
13968
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
 
13969
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
13970
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
 
13971
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
 
13972
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13973
else
 
13974
  lt_prog_compiler_static_works_F77=no
 
13975
   save_LDFLAGS="$LDFLAGS"
 
13976
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
13977
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
13978
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
13979
     # The linker can only warn and ignore the option if not recognized
 
13980
     # So say no if there are warnings
 
13981
     if test -s conftest.err; then
 
13982
       # Append any errors to the config.log.
 
13983
       cat conftest.err 1>&5
 
13984
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
13985
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
13986
       if diff conftest.exp conftest.er2 >/dev/null; then
 
13987
         lt_prog_compiler_static_works_F77=yes
 
13988
       fi
 
13989
     else
 
13990
       lt_prog_compiler_static_works_F77=yes
 
13991
     fi
 
13992
   fi
 
13993
   $rm conftest*
 
13994
   LDFLAGS="$save_LDFLAGS"
 
13995
 
 
13996
fi
 
13997
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
 
13998
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
 
13999
 
 
14000
if test x"$lt_prog_compiler_static_works_F77" = xyes; then
 
14001
    :
 
14002
else
 
14003
    lt_prog_compiler_static_F77=
 
14004
fi
 
14005
 
 
14006
 
 
14007
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
14008
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
14009
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
 
14010
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14011
else
 
14012
  lt_cv_prog_compiler_c_o_F77=no
 
14013
   $rm -r conftest 2>/dev/null
 
14014
   mkdir conftest
 
14015
   cd conftest
 
14016
   mkdir out
 
14017
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14018
 
 
14019
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
14020
   # Insert the option either (1) after the last *FLAGS variable, or
 
14021
   # (2) before a word containing "conftest.", or (3) at the end.
 
14022
   # Note that $ac_compile itself does not contain backslashes and begins
 
14023
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14024
   lt_compile=`echo "$ac_compile" | $SED \
 
14025
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
14026
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14027
   -e 's:$: $lt_compiler_flag:'`
 
14028
   (eval echo "\"\$as_me:14028: $lt_compile\"" >&5)
 
14029
   (eval "$lt_compile" 2>out/conftest.err)
 
14030
   ac_status=$?
 
14031
   cat out/conftest.err >&5
 
14032
   echo "$as_me:14032: \$? = $ac_status" >&5
 
14033
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
14034
   then
 
14035
     # The compiler can only warn and ignore the option if not recognized
 
14036
     # So say no if there are warnings
 
14037
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
14038
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
14039
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
14040
       lt_cv_prog_compiler_c_o_F77=yes
 
14041
     fi
 
14042
   fi
 
14043
   chmod u+w . 2>&5
 
14044
   $rm conftest*
 
14045
   # SGI C++ compiler will create directory out/ii_files/ for
 
14046
   # template instantiation
 
14047
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
14048
   $rm out/* && rmdir out
 
14049
   cd ..
 
14050
   rmdir conftest
 
14051
   $rm conftest*
 
14052
 
 
14053
fi
 
14054
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
 
14055
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
 
14056
 
 
14057
 
 
14058
hard_links="nottested"
 
14059
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
 
14060
  # do not overwrite the value of need_locks provided by the user
 
14061
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
14062
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
 
14063
  hard_links=yes
 
14064
  $rm conftest*
 
14065
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
14066
  touch conftest.a
 
14067
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
14068
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
14069
  { echo "$as_me:$LINENO: result: $hard_links" >&5
 
14070
echo "${ECHO_T}$hard_links" >&6; }
 
14071
  if test "$hard_links" = no; then
 
14072
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
14073
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
14074
    need_locks=warn
 
14075
  fi
 
14076
else
 
14077
  need_locks=no
 
14078
fi
 
14079
 
 
14080
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
14081
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
14082
 
 
14083
  runpath_var=
 
14084
  allow_undefined_flag_F77=
 
14085
  enable_shared_with_static_runtimes_F77=no
 
14086
  archive_cmds_F77=
 
14087
  archive_expsym_cmds_F77=
 
14088
  old_archive_From_new_cmds_F77=
 
14089
  old_archive_from_expsyms_cmds_F77=
 
14090
  export_dynamic_flag_spec_F77=
 
14091
  whole_archive_flag_spec_F77=
 
14092
  thread_safe_flag_spec_F77=
 
14093
  hardcode_libdir_flag_spec_F77=
 
14094
  hardcode_libdir_flag_spec_ld_F77=
 
14095
  hardcode_libdir_separator_F77=
 
14096
  hardcode_direct_F77=no
 
14097
  hardcode_minus_L_F77=no
 
14098
  hardcode_shlibpath_var_F77=unsupported
 
14099
  link_all_deplibs_F77=unknown
 
14100
  hardcode_automatic_F77=no
 
14101
  module_cmds_F77=
 
14102
  module_expsym_cmds_F77=
 
14103
  always_export_symbols_F77=no
 
14104
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
14105
  # include_expsyms should be a list of space-separated symbols to be *always*
 
14106
  # included in the symbol list
 
14107
  include_expsyms_F77=
 
14108
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
14109
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
14110
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
14111
  # as well as any symbol that contains `d'.
 
14112
  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
 
14113
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
14114
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
14115
  # the symbol is explicitly referenced.  Since portable code cannot
 
14116
  # rely on this symbol name, it's probably fine to never include it in
 
14117
  # preloaded symbol tables.
 
14118
  extract_expsyms_cmds=
 
14119
  # Just being paranoid about ensuring that cc_basename is set.
 
14120
  for cc_temp in $compiler""; do
 
14121
  case $cc_temp in
 
14122
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
14123
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
14124
    \-*) ;;
 
14125
    *) break;;
 
14126
  esac
 
14127
done
 
14128
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
14129
 
 
14130
  case $host_os in
 
14131
  cygwin* | mingw* | pw32*)
 
14132
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
14133
    # When not using gcc, we currently assume that we are using
 
14134
    # Microsoft Visual C++.
 
14135
    if test "$GCC" != yes; then
 
14136
      with_gnu_ld=no
 
14137
    fi
 
14138
    ;;
 
14139
  interix*)
 
14140
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
14141
    with_gnu_ld=yes
 
14142
    ;;
 
14143
  openbsd*)
 
14144
    with_gnu_ld=no
 
14145
    ;;
 
14146
  esac
 
14147
 
 
14148
  ld_shlibs_F77=yes
 
14149
  if test "$with_gnu_ld" = yes; then
 
14150
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
14151
    wlarc='${wl}'
 
14152
 
 
14153
    # Set some defaults for GNU ld with shared library support. These
 
14154
    # are reset later if shared libraries are not supported. Putting them
 
14155
    # here allows them to be overridden if necessary.
 
14156
    runpath_var=LD_RUN_PATH
 
14157
    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
 
14158
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
 
14159
    # ancient GNU ld didn't support --whole-archive et. al.
 
14160
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
14161
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
14162
      else
 
14163
        whole_archive_flag_spec_F77=
 
14164
    fi
 
14165
    supports_anon_versioning=no
 
14166
    case `$LD -v 2>/dev/null` in
 
14167
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
14168
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
14169
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
14170
      *\ 2.11.*) ;; # other 2.11 versions
 
14171
      *) supports_anon_versioning=yes ;;
 
14172
    esac
 
14173
 
 
14174
    # See if GNU ld supports shared libraries.
 
14175
    case $host_os in
 
14176
    aix3* | aix4* | aix5*)
 
14177
      # On AIX/PPC, the GNU linker is very broken
 
14178
      if test "$host_cpu" != ia64; then
 
14179
        ld_shlibs_F77=no
 
14180
        cat <<EOF 1>&2
 
14181
 
 
14182
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
14183
*** to be unable to reliably create shared libraries on AIX.
 
14184
*** Therefore, libtool is disabling shared libraries support.  If you
 
14185
*** really care for shared libraries, you may want to modify your PATH
 
14186
*** so that a non-GNU linker is found, and then restart.
 
14187
 
 
14188
EOF
 
14189
      fi
 
14190
      ;;
 
14191
 
 
14192
    amigaos*)
 
14193
      archive_cmds_F77='$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)'
 
14194
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14195
      hardcode_minus_L_F77=yes
 
14196
 
 
14197
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
14198
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
14199
      # to version 4, is to share data among multiple programs linked
 
14200
      # with the same dynamic library.  Since this doesn't match the
 
14201
      # behavior of shared libraries on other platforms, we can't use
 
14202
      # them.
 
14203
      ld_shlibs_F77=no
 
14204
      ;;
 
14205
 
 
14206
    beos*)
 
14207
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14208
        allow_undefined_flag_F77=unsupported
 
14209
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
14210
        # support --undefined.  This deserves some investigation.  FIXME
 
14211
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14212
      else
 
14213
        ld_shlibs_F77=no
 
14214
      fi
 
14215
      ;;
 
14216
 
 
14217
    cygwin* | mingw* | pw32*)
 
14218
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
 
14219
      # as there is no search path for DLLs.
 
14220
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14221
      allow_undefined_flag_F77=unsupported
 
14222
      always_export_symbols_F77=no
 
14223
      enable_shared_with_static_runtimes_F77=yes
 
14224
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
14225
 
 
14226
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
14227
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
14228
        # If the export-symbols file already is a .def file (1st line
 
14229
        # is EXPORTS), use it as is; otherwise, prepend...
 
14230
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
14231
          cp $export_symbols $output_objdir/$soname.def;
 
14232
        else
 
14233
          echo EXPORTS > $output_objdir/$soname.def;
 
14234
          cat $export_symbols >> $output_objdir/$soname.def;
 
14235
        fi~
 
14236
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
14237
      else
 
14238
        ld_shlibs_F77=no
 
14239
      fi
 
14240
      ;;
 
14241
 
 
14242
    interix3*)
 
14243
      hardcode_direct_F77=no
 
14244
      hardcode_shlibpath_var_F77=no
 
14245
      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
14246
      export_dynamic_flag_spec_F77='${wl}-E'
 
14247
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
14248
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
14249
      # default) and relocated if they conflict, which is a slow very memory
 
14250
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
14251
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
14252
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
14253
      archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
14254
      archive_expsym_cmds_F77='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'
 
14255
      ;;
 
14256
 
 
14257
    linux* | k*bsd*-gnu)
 
14258
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14259
        tmp_addflag=
 
14260
        case $cc_basename,$host_cpu in
 
14261
        pgcc*)                          # Portland Group C compiler
 
14262
          whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
14263
          tmp_addflag=' $pic_flag'
 
14264
          ;;
 
14265
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
14266
          whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
14267
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
14268
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
14269
          tmp_addflag=' -i_dynamic' ;;
 
14270
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
14271
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
14272
        ifc* | ifort*)                  # Intel Fortran compiler
 
14273
          tmp_addflag=' -nofor_main' ;;
 
14274
        esac
 
14275
        archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14276
 
 
14277
        if test $supports_anon_versioning = yes; then
 
14278
          archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
 
14279
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
14280
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
14281
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
14282
        fi
 
14283
        link_all_deplibs_F77=no
 
14284
      else
 
14285
        ld_shlibs_F77=no
 
14286
      fi
 
14287
      ;;
 
14288
 
 
14289
    netbsd* | netbsdelf*-gnu)
 
14290
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
14291
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
14292
        wlarc=
 
14293
      else
 
14294
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14295
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14296
      fi
 
14297
      ;;
 
14298
 
 
14299
    solaris*)
 
14300
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
14301
        ld_shlibs_F77=no
 
14302
        cat <<EOF 1>&2
 
14303
 
 
14304
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
14305
*** create shared libraries on Solaris systems.  Therefore, libtool
 
14306
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
14307
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
14308
*** your PATH or compiler configuration so that the native linker is
 
14309
*** used, and then restart.
 
14310
 
 
14311
EOF
 
14312
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14313
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14314
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14315
      else
 
14316
        ld_shlibs_F77=no
 
14317
      fi
 
14318
      ;;
 
14319
 
 
14320
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
14321
      case `$LD -v 2>&1` in
 
14322
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
14323
        ld_shlibs_F77=no
 
14324
        cat <<_LT_EOF 1>&2
 
14325
 
 
14326
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
14327
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
14328
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
14329
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
14330
*** your PATH or compiler configuration so that the native linker is
 
14331
*** used, and then restart.
 
14332
 
 
14333
_LT_EOF
 
14334
        ;;
 
14335
        *)
 
14336
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14337
            hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
14338
            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
14339
            archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
14340
          else
 
14341
            ld_shlibs_F77=no
 
14342
          fi
 
14343
        ;;
 
14344
      esac
 
14345
      ;;
 
14346
 
 
14347
    sunos4*)
 
14348
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
14349
      wlarc=
 
14350
      hardcode_direct_F77=yes
 
14351
      hardcode_shlibpath_var_F77=no
 
14352
      ;;
 
14353
 
 
14354
    *)
 
14355
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14356
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14357
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14358
      else
 
14359
        ld_shlibs_F77=no
 
14360
      fi
 
14361
      ;;
 
14362
    esac
 
14363
 
 
14364
    if test "$ld_shlibs_F77" = no; then
 
14365
      runpath_var=
 
14366
      hardcode_libdir_flag_spec_F77=
 
14367
      export_dynamic_flag_spec_F77=
 
14368
      whole_archive_flag_spec_F77=
 
14369
    fi
 
14370
  else
 
14371
    # PORTME fill in a description of your system's linker (not GNU ld)
 
14372
    case $host_os in
 
14373
    aix3*)
 
14374
      allow_undefined_flag_F77=unsupported
 
14375
      always_export_symbols_F77=yes
 
14376
      archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
 
14377
      # Note: this linker hardcodes the directories in LIBPATH if there
 
14378
      # are no directories specified by -L.
 
14379
      hardcode_minus_L_F77=yes
 
14380
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
14381
        # Neither direct hardcoding nor static linking is supported with a
 
14382
        # broken collect2.
 
14383
        hardcode_direct_F77=unsupported
 
14384
      fi
 
14385
      ;;
 
14386
 
 
14387
    aix4* | aix5*)
 
14388
      if test "$host_cpu" = ia64; then
 
14389
        # On IA64, the linker does run time linking by default, so we don't
 
14390
        # have to do anything special.
 
14391
        aix_use_runtimelinking=no
 
14392
        exp_sym_flag='-Bexport'
 
14393
        no_entry_flag=""
 
14394
      else
 
14395
        # If we're using GNU nm, then we don't want the "-C" option.
 
14396
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
14397
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
14398
          export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
14399
        else
 
14400
          export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
14401
        fi
 
14402
        aix_use_runtimelinking=no
 
14403
 
 
14404
        # Test if we are trying to use run time linking or normal
 
14405
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
14406
        # need to do runtime linking.
 
14407
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
14408
          for ld_flag in $LDFLAGS; do
 
14409
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
14410
            aix_use_runtimelinking=yes
 
14411
            break
 
14412
          fi
 
14413
          done
 
14414
          ;;
 
14415
        esac
 
14416
 
 
14417
        exp_sym_flag='-bexport'
 
14418
        no_entry_flag='-bnoentry'
 
14419
      fi
 
14420
 
 
14421
      # When large executables or shared objects are built, AIX ld can
 
14422
      # have problems creating the table of contents.  If linking a library
 
14423
      # or program results in "error TOC overflow" add -mminimal-toc to
 
14424
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
14425
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
14426
 
 
14427
      archive_cmds_F77=''
 
14428
      hardcode_direct_F77=yes
 
14429
      hardcode_libdir_separator_F77=':'
 
14430
      link_all_deplibs_F77=yes
 
14431
 
 
14432
      if test "$GCC" = yes; then
 
14433
        case $host_os in aix4.[012]|aix4.[012].*)
 
14434
        # We only want to do this on AIX 4.2 and lower, the check
 
14435
        # below for broken collect2 doesn't work under 4.3+
 
14436
          collect2name=`${CC} -print-prog-name=collect2`
 
14437
          if test -f "$collect2name" && \
 
14438
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
14439
          then
 
14440
          # We have reworked collect2
 
14441
          hardcode_direct_F77=yes
 
14442
          else
 
14443
          # We have old collect2
 
14444
          hardcode_direct_F77=unsupported
 
14445
          # It fails to find uninstalled libraries when the uninstalled
 
14446
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
14447
          # to unsupported forces relinking
 
14448
          hardcode_minus_L_F77=yes
 
14449
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
14450
          hardcode_libdir_separator_F77=
 
14451
          fi
 
14452
          ;;
 
14453
        esac
 
14454
        shared_flag='-shared'
 
14455
        if test "$aix_use_runtimelinking" = yes; then
 
14456
          shared_flag="$shared_flag "'${wl}-G'
 
14457
        fi
 
14458
      else
 
14459
        # not using gcc
 
14460
        if test "$host_cpu" = ia64; then
 
14461
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
14462
        # chokes on -Wl,-G. The following line is correct:
 
14463
          shared_flag='-G'
 
14464
        else
 
14465
          if test "$aix_use_runtimelinking" = yes; then
 
14466
            shared_flag='${wl}-G'
 
14467
          else
 
14468
            shared_flag='${wl}-bM:SRE'
 
14469
          fi
 
14470
        fi
 
14471
      fi
 
14472
 
 
14473
      # It seems that -bexpall does not export symbols beginning with
 
14474
      # underscore (_), so it is better to generate a list of symbols to export.
 
14475
      always_export_symbols_F77=yes
 
14476
      if test "$aix_use_runtimelinking" = yes; then
 
14477
        # Warning - without using the other runtime loading flags (-brtl),
 
14478
        # -berok will link without error, but may produce a broken library.
 
14479
        allow_undefined_flag_F77='-berok'
 
14480
       # Determine the default libpath from the value encoded in an empty executable.
 
14481
       cat >conftest.$ac_ext <<_ACEOF
 
14482
      program main
 
14483
 
 
14484
      end
 
14485
_ACEOF
 
14486
rm -f conftest.$ac_objext conftest$ac_exeext
 
14487
if { (ac_try="$ac_link"
 
14488
case "(($ac_try" in
 
14489
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14490
  *) ac_try_echo=$ac_try;;
 
14491
esac
 
14492
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14493
  (eval "$ac_link") 2>conftest.er1
 
14494
  ac_status=$?
 
14495
  grep -v '^ *+' conftest.er1 >conftest.err
 
14496
  rm -f conftest.er1
 
14497
  cat conftest.err >&5
 
14498
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14499
  (exit $ac_status); } && {
 
14500
         test -z "$ac_f77_werror_flag" ||
 
14501
         test ! -s conftest.err
 
14502
       } && test -s conftest$ac_exeext &&
 
14503
       $as_test_x conftest$ac_exeext; then
 
14504
 
 
14505
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
14506
}'`
 
14507
# Check for a 64-bit object if we didn't find anything.
 
14508
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
14509
}'`; fi
 
14510
else
 
14511
  echo "$as_me: failed program was:" >&5
 
14512
sed 's/^/| /' conftest.$ac_ext >&5
 
14513
 
 
14514
 
 
14515
fi
 
14516
 
 
14517
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
14518
      conftest$ac_exeext conftest.$ac_ext
 
14519
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
14520
 
 
14521
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
14522
        archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
14523
       else
 
14524
        if test "$host_cpu" = ia64; then
 
14525
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
 
14526
          allow_undefined_flag_F77="-z nodefs"
 
14527
          archive_expsym_cmds_F77="\$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"
 
14528
        else
 
14529
         # Determine the default libpath from the value encoded in an empty executable.
 
14530
         cat >conftest.$ac_ext <<_ACEOF
 
14531
      program main
 
14532
 
 
14533
      end
 
14534
_ACEOF
 
14535
rm -f conftest.$ac_objext conftest$ac_exeext
 
14536
if { (ac_try="$ac_link"
 
14537
case "(($ac_try" in
 
14538
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14539
  *) ac_try_echo=$ac_try;;
 
14540
esac
 
14541
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14542
  (eval "$ac_link") 2>conftest.er1
 
14543
  ac_status=$?
 
14544
  grep -v '^ *+' conftest.er1 >conftest.err
 
14545
  rm -f conftest.er1
 
14546
  cat conftest.err >&5
 
14547
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14548
  (exit $ac_status); } && {
 
14549
         test -z "$ac_f77_werror_flag" ||
 
14550
         test ! -s conftest.err
 
14551
       } && test -s conftest$ac_exeext &&
 
14552
       $as_test_x conftest$ac_exeext; then
 
14553
 
 
14554
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
14555
}'`
 
14556
# Check for a 64-bit object if we didn't find anything.
 
14557
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
14558
}'`; fi
 
14559
else
 
14560
  echo "$as_me: failed program was:" >&5
 
14561
sed 's/^/| /' conftest.$ac_ext >&5
 
14562
 
 
14563
 
 
14564
fi
 
14565
 
 
14566
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
14567
      conftest$ac_exeext conftest.$ac_ext
 
14568
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
14569
 
 
14570
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
14571
          # Warning - without using the other run time loading flags,
 
14572
          # -berok will link without error, but may produce a broken library.
 
14573
          no_undefined_flag_F77=' ${wl}-bernotok'
 
14574
          allow_undefined_flag_F77=' ${wl}-berok'
 
14575
          # Exported symbols can be pulled into shared objects from archives
 
14576
          whole_archive_flag_spec_F77='$convenience'
 
14577
          archive_cmds_need_lc_F77=yes
 
14578
          # This is similar to how AIX traditionally builds its shared libraries.
 
14579
          archive_expsym_cmds_F77="\$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'
 
14580
        fi
 
14581
      fi
 
14582
      ;;
 
14583
 
 
14584
    amigaos*)
 
14585
      archive_cmds_F77='$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)'
 
14586
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14587
      hardcode_minus_L_F77=yes
 
14588
      # see comment about different semantics on the GNU ld section
 
14589
      ld_shlibs_F77=no
 
14590
      ;;
 
14591
 
 
14592
    bsdi[45]*)
 
14593
      export_dynamic_flag_spec_F77=-rdynamic
 
14594
      ;;
 
14595
 
 
14596
    cygwin* | mingw* | pw32*)
 
14597
      # When not using gcc, we currently assume that we are using
 
14598
      # Microsoft Visual C++.
 
14599
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
14600
      # no search path for DLLs.
 
14601
      hardcode_libdir_flag_spec_F77=' '
 
14602
      allow_undefined_flag_F77=unsupported
 
14603
      # Tell ltmain to make .lib files, not .a files.
 
14604
      libext=lib
 
14605
      # Tell ltmain to make .dll files, not .so files.
 
14606
      shrext_cmds=".dll"
 
14607
      # FIXME: Setting linknames here is a bad hack.
 
14608
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
14609
      # The linker will automatically build a .lib file if we build a DLL.
 
14610
      old_archive_From_new_cmds_F77='true'
 
14611
      # FIXME: Should let the user specify the lib program.
 
14612
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
14613
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
 
14614
      enable_shared_with_static_runtimes_F77=yes
 
14615
      ;;
 
14616
 
 
14617
    darwin* | rhapsody*)
 
14618
      case $host_os in
 
14619
        rhapsody* | darwin1.[012])
 
14620
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
 
14621
         ;;
 
14622
       *) # Darwin 1.3 on
 
14623
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
14624
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
14625
         else
 
14626
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
14627
             10.[012])
 
14628
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
14629
               ;;
 
14630
             10.*)
 
14631
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
 
14632
               ;;
 
14633
           esac
 
14634
         fi
 
14635
         ;;
 
14636
      esac
 
14637
      archive_cmds_need_lc_F77=no
 
14638
      hardcode_direct_F77=no
 
14639
      hardcode_automatic_F77=yes
 
14640
      hardcode_shlibpath_var_F77=unsupported
 
14641
      whole_archive_flag_spec_F77=''
 
14642
      link_all_deplibs_F77=yes
 
14643
    if test "$GCC" = yes ; then
 
14644
        output_verbose_link_cmd='echo'
 
14645
        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
14646
      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
14647
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
14648
      archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
14649
      module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
14650
    else
 
14651
      case $cc_basename in
 
14652
        xlc*)
 
14653
         output_verbose_link_cmd='echo'
 
14654
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
14655
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
14656
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
14657
         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
14658
          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
14659
          ;;
 
14660
       *)
 
14661
         ld_shlibs_F77=no
 
14662
          ;;
 
14663
      esac
 
14664
    fi
 
14665
      ;;
 
14666
 
 
14667
    dgux*)
 
14668
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14669
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14670
      hardcode_shlibpath_var_F77=no
 
14671
      ;;
 
14672
 
 
14673
    freebsd1*)
 
14674
      ld_shlibs_F77=no
 
14675
      ;;
 
14676
 
 
14677
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
14678
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
14679
    # does not break anything, and helps significantly (at the cost of a little
 
14680
    # extra space).
 
14681
    freebsd2.2*)
 
14682
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
14683
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
14684
      hardcode_direct_F77=yes
 
14685
      hardcode_shlibpath_var_F77=no
 
14686
      ;;
 
14687
 
 
14688
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
14689
    freebsd2*)
 
14690
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
14691
      hardcode_direct_F77=yes
 
14692
      hardcode_minus_L_F77=yes
 
14693
      hardcode_shlibpath_var_F77=no
 
14694
      ;;
 
14695
 
 
14696
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
14697
    freebsd* | dragonfly*)
 
14698
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
14699
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
14700
      hardcode_direct_F77=yes
 
14701
      hardcode_shlibpath_var_F77=no
 
14702
      ;;
 
14703
 
 
14704
    hpux9*)
 
14705
      if test "$GCC" = yes; then
 
14706
        archive_cmds_F77='$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'
 
14707
      else
 
14708
        archive_cmds_F77='$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'
 
14709
      fi
 
14710
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14711
      hardcode_libdir_separator_F77=:
 
14712
      hardcode_direct_F77=yes
 
14713
 
 
14714
      # hardcode_minus_L: Not really in the search PATH,
 
14715
      # but as the default location of the library.
 
14716
      hardcode_minus_L_F77=yes
 
14717
      export_dynamic_flag_spec_F77='${wl}-E'
 
14718
      ;;
 
14719
 
 
14720
    hpux10*)
 
14721
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
14722
        archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
14723
      else
 
14724
        archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
14725
      fi
 
14726
      if test "$with_gnu_ld" = no; then
 
14727
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14728
        hardcode_libdir_separator_F77=:
 
14729
 
 
14730
        hardcode_direct_F77=yes
 
14731
        export_dynamic_flag_spec_F77='${wl}-E'
 
14732
 
 
14733
        # hardcode_minus_L: Not really in the search PATH,
 
14734
        # but as the default location of the library.
 
14735
        hardcode_minus_L_F77=yes
 
14736
      fi
 
14737
      ;;
 
14738
 
 
14739
    hpux11*)
 
14740
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
14741
        case $host_cpu in
 
14742
        hppa*64*)
 
14743
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14744
          ;;
 
14745
        ia64*)
 
14746
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
14747
          ;;
 
14748
        *)
 
14749
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
14750
          ;;
 
14751
        esac
 
14752
      else
 
14753
        case $host_cpu in
 
14754
        hppa*64*)
 
14755
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14756
          ;;
 
14757
        ia64*)
 
14758
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
14759
          ;;
 
14760
        *)
 
14761
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
14762
          ;;
 
14763
        esac
 
14764
      fi
 
14765
      if test "$with_gnu_ld" = no; then
 
14766
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14767
        hardcode_libdir_separator_F77=:
 
14768
 
 
14769
        case $host_cpu in
 
14770
        hppa*64*|ia64*)
 
14771
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
 
14772
          hardcode_direct_F77=no
 
14773
          hardcode_shlibpath_var_F77=no
 
14774
          ;;
 
14775
        *)
 
14776
          hardcode_direct_F77=yes
 
14777
          export_dynamic_flag_spec_F77='${wl}-E'
 
14778
 
 
14779
          # hardcode_minus_L: Not really in the search PATH,
 
14780
          # but as the default location of the library.
 
14781
          hardcode_minus_L_F77=yes
 
14782
          ;;
 
14783
        esac
 
14784
      fi
 
14785
      ;;
 
14786
 
 
14787
    irix5* | irix6* | nonstopux*)
 
14788
      if test "$GCC" = yes; then
 
14789
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
14790
      else
 
14791
        archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
14792
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
 
14793
      fi
 
14794
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14795
      hardcode_libdir_separator_F77=:
 
14796
      link_all_deplibs_F77=yes
 
14797
      ;;
 
14798
 
 
14799
    netbsd* | netbsdelf*-gnu)
 
14800
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
14801
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
14802
      else
 
14803
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
14804
      fi
 
14805
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
14806
      hardcode_direct_F77=yes
 
14807
      hardcode_shlibpath_var_F77=no
 
14808
      ;;
 
14809
 
 
14810
    newsos6)
 
14811
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14812
      hardcode_direct_F77=yes
 
14813
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14814
      hardcode_libdir_separator_F77=:
 
14815
      hardcode_shlibpath_var_F77=no
 
14816
      ;;
 
14817
 
 
14818
    openbsd*)
 
14819
      hardcode_direct_F77=yes
 
14820
      hardcode_shlibpath_var_F77=no
 
14821
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
14822
        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
14823
        archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
14824
        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
14825
        export_dynamic_flag_spec_F77='${wl}-E'
 
14826
      else
 
14827
       case $host_os in
 
14828
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
14829
           archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
14830
           hardcode_libdir_flag_spec_F77='-R$libdir'
 
14831
           ;;
 
14832
         *)
 
14833
           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
14834
           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
14835
           ;;
 
14836
       esac
 
14837
      fi
 
14838
      ;;
 
14839
 
 
14840
    os2*)
 
14841
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14842
      hardcode_minus_L_F77=yes
 
14843
      allow_undefined_flag_F77=unsupported
 
14844
      archive_cmds_F77='$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'
 
14845
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
14846
      ;;
 
14847
 
 
14848
    osf3*)
 
14849
      if test "$GCC" = yes; then
 
14850
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
14851
        archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
14852
      else
 
14853
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
14854
        archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
14855
      fi
 
14856
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14857
      hardcode_libdir_separator_F77=:
 
14858
      ;;
 
14859
 
 
14860
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
14861
      if test "$GCC" = yes; then
 
14862
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
14863
        archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
14864
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14865
      else
 
14866
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
14867
        archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
14868
        archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
14869
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
 
14870
 
 
14871
        # Both c and cxx compiler support -rpath directly
 
14872
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
 
14873
      fi
 
14874
      hardcode_libdir_separator_F77=:
 
14875
      ;;
 
14876
 
 
14877
    solaris*)
 
14878
      no_undefined_flag_F77=' -z text'
 
14879
      if test "$GCC" = yes; then
 
14880
        wlarc='${wl}'
 
14881
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14882
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
14883
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
14884
      else
 
14885
        wlarc=''
 
14886
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14887
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
14888
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
14889
      fi
 
14890
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
14891
      hardcode_shlibpath_var_F77=no
 
14892
      case $host_os in
 
14893
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
14894
      *)
 
14895
        # The compiler driver will combine linker options so we
 
14896
        # cannot just pass the convience library names through
 
14897
        # without $wl, iff we do not link with $LD.
 
14898
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
14899
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
14900
        case $wlarc in
 
14901
        '')
 
14902
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
 
14903
        *)
 
14904
          whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 
14905
        esac ;;
 
14906
      esac
 
14907
      link_all_deplibs_F77=yes
 
14908
      ;;
 
14909
 
 
14910
    sunos4*)
 
14911
      if test "x$host_vendor" = xsequent; then
 
14912
        # Use $CC to link under sequent, because it throws in some extra .o
 
14913
        # files that make .init and .fini sections work.
 
14914
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
14915
      else
 
14916
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
14917
      fi
 
14918
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14919
      hardcode_direct_F77=yes
 
14920
      hardcode_minus_L_F77=yes
 
14921
      hardcode_shlibpath_var_F77=no
 
14922
      ;;
 
14923
 
 
14924
    sysv4)
 
14925
      case $host_vendor in
 
14926
        sni)
 
14927
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14928
          hardcode_direct_F77=yes # is this really true???
 
14929
        ;;
 
14930
        siemens)
 
14931
          ## LD is ld it makes a PLAMLIB
 
14932
          ## CC just makes a GrossModule.
 
14933
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
14934
          reload_cmds_F77='$CC -r -o $output$reload_objs'
 
14935
          hardcode_direct_F77=no
 
14936
        ;;
 
14937
        motorola)
 
14938
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14939
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
 
14940
        ;;
 
14941
      esac
 
14942
      runpath_var='LD_RUN_PATH'
 
14943
      hardcode_shlibpath_var_F77=no
 
14944
      ;;
 
14945
 
 
14946
    sysv4.3*)
 
14947
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14948
      hardcode_shlibpath_var_F77=no
 
14949
      export_dynamic_flag_spec_F77='-Bexport'
 
14950
      ;;
 
14951
 
 
14952
    sysv4*MP*)
 
14953
      if test -d /usr/nec; then
 
14954
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14955
        hardcode_shlibpath_var_F77=no
 
14956
        runpath_var=LD_RUN_PATH
 
14957
        hardcode_runpath_var=yes
 
14958
        ld_shlibs_F77=yes
 
14959
      fi
 
14960
      ;;
 
14961
 
 
14962
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
14963
      no_undefined_flag_F77='${wl}-z,text'
 
14964
      archive_cmds_need_lc_F77=no
 
14965
      hardcode_shlibpath_var_F77=no
 
14966
      runpath_var='LD_RUN_PATH'
 
14967
 
 
14968
      if test "$GCC" = yes; then
 
14969
        archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14970
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14971
      else
 
14972
        archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14973
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14974
      fi
 
14975
      ;;
 
14976
 
 
14977
    sysv5* | sco3.2v5* | sco5v6*)
 
14978
      # Note: We can NOT use -z defs as we might desire, because we do not
 
14979
      # link with -lc, and that would cause any symbols used from libc to
 
14980
      # always be unresolved, which means just about no library would
 
14981
      # ever link correctly.  If we're not using GNU ld we use -z text
 
14982
      # though, which does catch some bad symbols but isn't as heavy-handed
 
14983
      # as -z defs.
 
14984
      no_undefined_flag_F77='${wl}-z,text'
 
14985
      allow_undefined_flag_F77='${wl}-z,nodefs'
 
14986
      archive_cmds_need_lc_F77=no
 
14987
      hardcode_shlibpath_var_F77=no
 
14988
      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
14989
      hardcode_libdir_separator_F77=':'
 
14990
      link_all_deplibs_F77=yes
 
14991
      export_dynamic_flag_spec_F77='${wl}-Bexport'
 
14992
      runpath_var='LD_RUN_PATH'
 
14993
 
 
14994
      if test "$GCC" = yes; then
 
14995
        archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14996
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14997
      else
 
14998
        archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14999
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15000
      fi
 
15001
      ;;
 
15002
 
 
15003
    uts4*)
 
15004
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15005
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15006
      hardcode_shlibpath_var_F77=no
 
15007
      ;;
 
15008
 
 
15009
    *)
 
15010
      ld_shlibs_F77=no
 
15011
      ;;
 
15012
    esac
 
15013
  fi
 
15014
 
 
15015
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
 
15016
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
 
15017
test "$ld_shlibs_F77" = no && can_build_shared=no
 
15018
 
 
15019
#
 
15020
# Do we need to explicitly link libc?
 
15021
#
 
15022
case "x$archive_cmds_need_lc_F77" in
 
15023
x|xyes)
 
15024
  # Assume -lc should be added
 
15025
  archive_cmds_need_lc_F77=yes
 
15026
 
 
15027
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
15028
    case $archive_cmds_F77 in
 
15029
    *'~'*)
 
15030
      # FIXME: we may have to deal with multi-command sequences.
 
15031
      ;;
 
15032
    '$CC '*)
 
15033
      # Test whether the compiler implicitly links with -lc since on some
 
15034
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
15035
      # to ld, don't add -lc before -lgcc.
 
15036
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
15037
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
 
15038
      $rm conftest*
 
15039
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15040
 
 
15041
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15042
  (eval $ac_compile) 2>&5
 
15043
  ac_status=$?
 
15044
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15045
  (exit $ac_status); } 2>conftest.err; then
 
15046
        soname=conftest
 
15047
        lib=conftest
 
15048
        libobjs=conftest.$ac_objext
 
15049
        deplibs=
 
15050
        wl=$lt_prog_compiler_wl_F77
 
15051
        pic_flag=$lt_prog_compiler_pic_F77
 
15052
        compiler_flags=-v
 
15053
        linker_flags=-v
 
15054
        verstring=
 
15055
        output_objdir=.
 
15056
        libname=conftest
 
15057
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
 
15058
        allow_undefined_flag_F77=
 
15059
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
15060
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
15061
  ac_status=$?
 
15062
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15063
  (exit $ac_status); }
 
15064
        then
 
15065
          archive_cmds_need_lc_F77=no
 
15066
        else
 
15067
          archive_cmds_need_lc_F77=yes
 
15068
        fi
 
15069
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
 
15070
      else
 
15071
        cat conftest.err 1>&5
 
15072
      fi
 
15073
      $rm conftest*
 
15074
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
 
15075
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
 
15076
      ;;
 
15077
    esac
 
15078
  fi
 
15079
  ;;
 
15080
esac
 
15081
 
 
15082
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
15083
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
 
15084
library_names_spec=
 
15085
libname_spec='lib$name'
 
15086
soname_spec=
 
15087
shrext_cmds=".so"
 
15088
postinstall_cmds=
 
15089
postuninstall_cmds=
 
15090
finish_cmds=
 
15091
finish_eval=
 
15092
shlibpath_var=
 
15093
shlibpath_overrides_runpath=unknown
 
15094
version_type=none
 
15095
dynamic_linker="$host_os ld.so"
 
15096
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
15097
if test "$GCC" = yes; then
 
15098
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
15099
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
15100
    # if the path contains ";" then we assume it to be the separator
 
15101
    # otherwise default to the standard path separator (i.e. ":") - it is
 
15102
    # assumed that no part of a normal pathname contains ";" but that should
 
15103
    # okay in the real world where ";" in dirpaths is itself problematic.
 
15104
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
15105
  else
 
15106
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
15107
  fi
 
15108
else
 
15109
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
15110
fi
 
15111
need_lib_prefix=unknown
 
15112
hardcode_into_libs=no
 
15113
 
 
15114
# when you set need_version to no, make sure it does not cause -set_version
 
15115
# flags to be left without arguments
 
15116
need_version=unknown
 
15117
 
 
15118
case $host_os in
 
15119
aix3*)
 
15120
  version_type=linux
 
15121
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
15122
  shlibpath_var=LIBPATH
 
15123
 
 
15124
  # AIX 3 has no versioning support, so we append a major version to the name.
 
15125
  soname_spec='${libname}${release}${shared_ext}$major'
 
15126
  ;;
 
15127
 
 
15128
aix4* | aix5*)
 
15129
  version_type=linux
 
15130
  need_lib_prefix=no
 
15131
  need_version=no
 
15132
  hardcode_into_libs=yes
 
15133
  if test "$host_cpu" = ia64; then
 
15134
    # AIX 5 supports IA64
 
15135
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
15136
    shlibpath_var=LD_LIBRARY_PATH
 
15137
  else
 
15138
    # With GCC up to 2.95.x, collect2 would create an import file
 
15139
    # for dependence libraries.  The import file would start with
 
15140
    # the line `#! .'.  This would cause the generated library to
 
15141
    # depend on `.', always an invalid library.  This was fixed in
 
15142
    # development snapshots of GCC prior to 3.0.
 
15143
    case $host_os in
 
15144
      aix4 | aix4.[01] | aix4.[01].*)
 
15145
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
15146
           echo ' yes '
 
15147
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
15148
        :
 
15149
      else
 
15150
        can_build_shared=no
 
15151
      fi
 
15152
      ;;
 
15153
    esac
 
15154
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
15155
    # soname into executable. Probably we can add versioning support to
 
15156
    # collect2, so additional links can be useful in future.
 
15157
    if test "$aix_use_runtimelinking" = yes; then
 
15158
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
15159
      # instead of lib<name>.a to let people know that these are not
 
15160
      # typical AIX shared libraries.
 
15161
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15162
    else
 
15163
      # We preserve .a as extension for shared libraries through AIX4.2
 
15164
      # and later when we are not doing run time linking.
 
15165
      library_names_spec='${libname}${release}.a $libname.a'
 
15166
      soname_spec='${libname}${release}${shared_ext}$major'
 
15167
    fi
 
15168
    shlibpath_var=LIBPATH
 
15169
  fi
 
15170
  ;;
 
15171
 
 
15172
amigaos*)
 
15173
  library_names_spec='$libname.ixlibrary $libname.a'
 
15174
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
15175
  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'
 
15176
  ;;
 
15177
 
 
15178
beos*)
 
15179
  library_names_spec='${libname}${shared_ext}'
 
15180
  dynamic_linker="$host_os ld.so"
 
15181
  shlibpath_var=LIBRARY_PATH
 
15182
  ;;
 
15183
 
 
15184
bsdi[45]*)
 
15185
  version_type=linux
 
15186
  need_version=no
 
15187
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15188
  soname_spec='${libname}${release}${shared_ext}$major'
 
15189
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
15190
  shlibpath_var=LD_LIBRARY_PATH
 
15191
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
15192
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
15193
  # the default ld.so.conf also contains /usr/contrib/lib and
 
15194
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
15195
  # libtool to hard-code these into programs
 
15196
  ;;
 
15197
 
 
15198
cygwin* | mingw* | pw32*)
 
15199
  version_type=windows
 
15200
  shrext_cmds=".dll"
 
15201
  need_version=no
 
15202
  need_lib_prefix=no
 
15203
 
 
15204
  case $GCC,$host_os in
 
15205
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
15206
    library_names_spec='$libname.dll.a'
 
15207
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
15208
    postinstall_cmds='base_file=`basename \${file}`~
 
15209
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
15210
      dldir=$destdir/`dirname \$dlpath`~
 
15211
      test -d \$dldir || mkdir -p \$dldir~
 
15212
      $install_prog $dir/$dlname \$dldir/$dlname~
 
15213
      chmod a+x \$dldir/$dlname'
 
15214
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
15215
      dlpath=$dir/\$dldll~
 
15216
       $rm \$dlpath'
 
15217
    shlibpath_overrides_runpath=yes
 
15218
 
 
15219
    case $host_os in
 
15220
    cygwin*)
 
15221
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
15222
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15223
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
15224
      ;;
 
15225
    mingw*)
 
15226
      # MinGW DLLs use traditional 'lib' prefix
 
15227
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15228
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
15229
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
15230
        # It is most probably a Windows format PATH printed by
 
15231
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
15232
        # path with ; separators, and with drive letters. We can handle the
 
15233
        # drive letters (cygwin fileutils understands them), so leave them,
 
15234
        # especially as we might pass files found there to a mingw objdump,
 
15235
        # which wouldn't understand a cygwinified path. Ahh.
 
15236
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
15237
      else
 
15238
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
15239
      fi
 
15240
      ;;
 
15241
    pw32*)
 
15242
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
15243
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15244
      ;;
 
15245
    esac
 
15246
    ;;
 
15247
 
 
15248
  *)
 
15249
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
15250
    ;;
 
15251
  esac
 
15252
  dynamic_linker='Win32 ld.exe'
 
15253
  # FIXME: first we should search . and the directory the executable is in
 
15254
  shlibpath_var=PATH
 
15255
  ;;
 
15256
 
 
15257
darwin* | rhapsody*)
 
15258
  dynamic_linker="$host_os dyld"
 
15259
  version_type=darwin
 
15260
  need_lib_prefix=no
 
15261
  need_version=no
 
15262
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
15263
  soname_spec='${libname}${release}${major}$shared_ext'
 
15264
  shlibpath_overrides_runpath=yes
 
15265
  shlibpath_var=DYLD_LIBRARY_PATH
 
15266
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
15267
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
15268
  if test "$GCC" = yes; then
 
15269
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
 
15270
  else
 
15271
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
15272
  fi
 
15273
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
15274
  ;;
 
15275
 
 
15276
dgux*)
 
15277
  version_type=linux
 
15278
  need_lib_prefix=no
 
15279
  need_version=no
 
15280
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
15281
  soname_spec='${libname}${release}${shared_ext}$major'
 
15282
  shlibpath_var=LD_LIBRARY_PATH
 
15283
  ;;
 
15284
 
 
15285
freebsd1*)
 
15286
  dynamic_linker=no
 
15287
  ;;
 
15288
 
 
15289
freebsd* | dragonfly*)
 
15290
  # DragonFly does not have aout.  When/if they implement a new
 
15291
  # versioning mechanism, adjust this.
 
15292
  if test -x /usr/bin/objformat; then
 
15293
    objformat=`/usr/bin/objformat`
 
15294
  else
 
15295
    case $host_os in
 
15296
    freebsd[123]*) objformat=aout ;;
 
15297
    *) objformat=elf ;;
 
15298
    esac
 
15299
  fi
 
15300
  version_type=freebsd-$objformat
 
15301
  case $version_type in
 
15302
    freebsd-elf*)
 
15303
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15304
      need_version=no
 
15305
      need_lib_prefix=no
 
15306
      ;;
 
15307
    freebsd-*)
 
15308
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
15309
      need_version=yes
 
15310
      ;;
 
15311
  esac
 
15312
  shlibpath_var=LD_LIBRARY_PATH
 
15313
  case $host_os in
 
15314
  freebsd2*)
 
15315
    shlibpath_overrides_runpath=yes
 
15316
    ;;
 
15317
  freebsd3.[01]* | freebsdelf3.[01]*)
 
15318
    shlibpath_overrides_runpath=yes
 
15319
    hardcode_into_libs=yes
 
15320
    ;;
 
15321
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
15322
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
15323
    shlibpath_overrides_runpath=no
 
15324
    hardcode_into_libs=yes
 
15325
    ;;
 
15326
  freebsd*) # from 4.6 on
 
15327
    shlibpath_overrides_runpath=yes
 
15328
    hardcode_into_libs=yes
 
15329
    ;;
 
15330
  esac
 
15331
  ;;
 
15332
 
 
15333
gnu*)
 
15334
  version_type=linux
 
15335
  need_lib_prefix=no
 
15336
  need_version=no
 
15337
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
15338
  soname_spec='${libname}${release}${shared_ext}$major'
 
15339
  shlibpath_var=LD_LIBRARY_PATH
 
15340
  hardcode_into_libs=yes
 
15341
  ;;
 
15342
 
 
15343
hpux9* | hpux10* | hpux11*)
 
15344
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
15345
  # link against other versions.
 
15346
  version_type=sunos
 
15347
  need_lib_prefix=no
 
15348
  need_version=no
 
15349
  case $host_cpu in
 
15350
  ia64*)
 
15351
    shrext_cmds='.so'
 
15352
    hardcode_into_libs=yes
 
15353
    dynamic_linker="$host_os dld.so"
 
15354
    shlibpath_var=LD_LIBRARY_PATH
 
15355
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
15356
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15357
    soname_spec='${libname}${release}${shared_ext}$major'
 
15358
    if test "X$HPUX_IA64_MODE" = X32; then
 
15359
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
15360
    else
 
15361
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
15362
    fi
 
15363
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
15364
    ;;
 
15365
   hppa*64*)
 
15366
     shrext_cmds='.sl'
 
15367
     hardcode_into_libs=yes
 
15368
     dynamic_linker="$host_os dld.sl"
 
15369
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
15370
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
15371
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15372
     soname_spec='${libname}${release}${shared_ext}$major'
 
15373
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
15374
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
15375
     ;;
 
15376
   *)
 
15377
    shrext_cmds='.sl'
 
15378
    dynamic_linker="$host_os dld.sl"
 
15379
    shlibpath_var=SHLIB_PATH
 
15380
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
15381
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15382
    soname_spec='${libname}${release}${shared_ext}$major'
 
15383
    ;;
 
15384
  esac
 
15385
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
15386
  postinstall_cmds='chmod 555 $lib'
 
15387
  ;;
 
15388
 
 
15389
interix3*)
 
15390
  version_type=linux
 
15391
  need_lib_prefix=no
 
15392
  need_version=no
 
15393
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15394
  soname_spec='${libname}${release}${shared_ext}$major'
 
15395
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
15396
  shlibpath_var=LD_LIBRARY_PATH
 
15397
  shlibpath_overrides_runpath=no
 
15398
  hardcode_into_libs=yes
 
15399
  ;;
 
15400
 
 
15401
irix5* | irix6* | nonstopux*)
 
15402
  case $host_os in
 
15403
    nonstopux*) version_type=nonstopux ;;
 
15404
    *)
 
15405
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
15406
                version_type=linux
 
15407
        else
 
15408
                version_type=irix
 
15409
        fi ;;
 
15410
  esac
 
15411
  need_lib_prefix=no
 
15412
  need_version=no
 
15413
  soname_spec='${libname}${release}${shared_ext}$major'
 
15414
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15415
  case $host_os in
 
15416
  irix5* | nonstopux*)
 
15417
    libsuff= shlibsuff=
 
15418
    ;;
 
15419
  *)
 
15420
    case $LD in # libtool.m4 will add one of these switches to LD
 
15421
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
15422
      libsuff= shlibsuff= libmagic=32-bit;;
 
15423
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
15424
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
15425
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
15426
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
15427
    *) libsuff= shlibsuff= libmagic=never-match;;
 
15428
    esac
 
15429
    ;;
 
15430
  esac
 
15431
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
15432
  shlibpath_overrides_runpath=no
 
15433
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
15434
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
15435
  hardcode_into_libs=yes
 
15436
  ;;
 
15437
 
 
15438
# No shared lib support for Linux oldld, aout, or coff.
 
15439
linux*oldld* | linux*aout* | linux*coff*)
 
15440
  dynamic_linker=no
 
15441
  ;;
 
15442
 
 
15443
# This must be Linux ELF.
 
15444
linux* | k*bsd*-gnu)
 
15445
  version_type=linux
 
15446
  need_lib_prefix=no
 
15447
  need_version=no
 
15448
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15449
  soname_spec='${libname}${release}${shared_ext}$major'
 
15450
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
15451
  shlibpath_var=LD_LIBRARY_PATH
 
15452
  shlibpath_overrides_runpath=no
 
15453
  # This implies no fast_install, which is unacceptable.
 
15454
  # Some rework will be needed to allow for fast_install
 
15455
  # before this can be enabled.
 
15456
  hardcode_into_libs=yes
 
15457
 
 
15458
  # Append ld.so.conf contents to the search path
 
15459
  if test -f /etc/ld.so.conf; then
 
15460
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
15461
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
15462
  fi
 
15463
 
 
15464
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
15465
  # powerpc, because MkLinux only supported shared libraries with the
 
15466
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
15467
  # most powerpc-linux boxes support dynamic linking these days and
 
15468
  # people can always --disable-shared, the test was removed, and we
 
15469
  # assume the GNU/Linux dynamic linker is in use.
 
15470
  dynamic_linker='GNU/Linux ld.so'
 
15471
  ;;
 
15472
 
 
15473
netbsdelf*-gnu)
 
15474
  version_type=linux
 
15475
  need_lib_prefix=no
 
15476
  need_version=no
 
15477
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15478
  soname_spec='${libname}${release}${shared_ext}$major'
 
15479
  shlibpath_var=LD_LIBRARY_PATH
 
15480
  shlibpath_overrides_runpath=no
 
15481
  hardcode_into_libs=yes
 
15482
  dynamic_linker='NetBSD ld.elf_so'
 
15483
  ;;
 
15484
 
 
15485
netbsd*)
 
15486
  version_type=sunos
 
15487
  need_lib_prefix=no
 
15488
  need_version=no
 
15489
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
15490
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
15491
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
15492
    dynamic_linker='NetBSD (a.out) ld.so'
 
15493
  else
 
15494
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15495
    soname_spec='${libname}${release}${shared_ext}$major'
 
15496
    dynamic_linker='NetBSD ld.elf_so'
 
15497
  fi
 
15498
  shlibpath_var=LD_LIBRARY_PATH
 
15499
  shlibpath_overrides_runpath=yes
 
15500
  hardcode_into_libs=yes
 
15501
  ;;
 
15502
 
 
15503
newsos6)
 
15504
  version_type=linux
 
15505
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15506
  shlibpath_var=LD_LIBRARY_PATH
 
15507
  shlibpath_overrides_runpath=yes
 
15508
  ;;
 
15509
 
 
15510
nto-qnx*)
 
15511
  version_type=linux
 
15512
  need_lib_prefix=no
 
15513
  need_version=no
 
15514
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15515
  soname_spec='${libname}${release}${shared_ext}$major'
 
15516
  shlibpath_var=LD_LIBRARY_PATH
 
15517
  shlibpath_overrides_runpath=yes
 
15518
  ;;
 
15519
 
 
15520
openbsd*)
 
15521
  version_type=sunos
 
15522
  sys_lib_dlsearch_path_spec="/usr/lib"
 
15523
  need_lib_prefix=no
 
15524
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
15525
  case $host_os in
 
15526
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
15527
    *)                         need_version=no  ;;
 
15528
  esac
 
15529
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
15530
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
15531
  shlibpath_var=LD_LIBRARY_PATH
 
15532
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
15533
    case $host_os in
 
15534
      openbsd2.[89] | openbsd2.[89].*)
 
15535
        shlibpath_overrides_runpath=no
 
15536
        ;;
 
15537
      *)
 
15538
        shlibpath_overrides_runpath=yes
 
15539
        ;;
 
15540
      esac
 
15541
  else
 
15542
    shlibpath_overrides_runpath=yes
 
15543
  fi
 
15544
  ;;
 
15545
 
 
15546
os2*)
 
15547
  libname_spec='$name'
 
15548
  shrext_cmds=".dll"
 
15549
  need_lib_prefix=no
 
15550
  library_names_spec='$libname${shared_ext} $libname.a'
 
15551
  dynamic_linker='OS/2 ld.exe'
 
15552
  shlibpath_var=LIBPATH
 
15553
  ;;
 
15554
 
 
15555
osf3* | osf4* | osf5*)
 
15556
  version_type=osf
 
15557
  need_lib_prefix=no
 
15558
  need_version=no
 
15559
  soname_spec='${libname}${release}${shared_ext}$major'
 
15560
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15561
  shlibpath_var=LD_LIBRARY_PATH
 
15562
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
15563
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
15564
  ;;
 
15565
 
 
15566
solaris*)
 
15567
  version_type=linux
 
15568
  need_lib_prefix=no
 
15569
  need_version=no
 
15570
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15571
  soname_spec='${libname}${release}${shared_ext}$major'
 
15572
  shlibpath_var=LD_LIBRARY_PATH
 
15573
  shlibpath_overrides_runpath=yes
 
15574
  hardcode_into_libs=yes
 
15575
  # ldd complains unless libraries are executable
 
15576
  postinstall_cmds='chmod +x $lib'
 
15577
  ;;
 
15578
 
 
15579
sunos4*)
 
15580
  version_type=sunos
 
15581
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
15582
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
15583
  shlibpath_var=LD_LIBRARY_PATH
 
15584
  shlibpath_overrides_runpath=yes
 
15585
  if test "$with_gnu_ld" = yes; then
 
15586
    need_lib_prefix=no
 
15587
  fi
 
15588
  need_version=yes
 
15589
  ;;
 
15590
 
 
15591
sysv4 | sysv4.3*)
 
15592
  version_type=linux
 
15593
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15594
  soname_spec='${libname}${release}${shared_ext}$major'
 
15595
  shlibpath_var=LD_LIBRARY_PATH
 
15596
  case $host_vendor in
 
15597
    sni)
 
15598
      shlibpath_overrides_runpath=no
 
15599
      need_lib_prefix=no
 
15600
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
15601
      runpath_var=LD_RUN_PATH
 
15602
      ;;
 
15603
    siemens)
 
15604
      need_lib_prefix=no
 
15605
      ;;
 
15606
    motorola)
 
15607
      need_lib_prefix=no
 
15608
      need_version=no
 
15609
      shlibpath_overrides_runpath=no
 
15610
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
15611
      ;;
 
15612
  esac
 
15613
  ;;
 
15614
 
 
15615
sysv4*MP*)
 
15616
  if test -d /usr/nec ;then
 
15617
    version_type=linux
 
15618
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
15619
    soname_spec='$libname${shared_ext}.$major'
 
15620
    shlibpath_var=LD_LIBRARY_PATH
 
15621
  fi
 
15622
  ;;
 
15623
 
 
15624
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
15625
  version_type=freebsd-elf
 
15626
  need_lib_prefix=no
 
15627
  need_version=no
 
15628
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15629
  soname_spec='${libname}${release}${shared_ext}$major'
 
15630
  shlibpath_var=LD_LIBRARY_PATH
 
15631
  hardcode_into_libs=yes
 
15632
  if test "$with_gnu_ld" = yes; then
 
15633
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
15634
    shlibpath_overrides_runpath=no
 
15635
  else
 
15636
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
15637
    shlibpath_overrides_runpath=yes
 
15638
    case $host_os in
 
15639
      sco3.2v5*)
 
15640
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
15641
        ;;
 
15642
    esac
 
15643
  fi
 
15644
  sys_lib_dlsearch_path_spec='/usr/lib'
 
15645
  ;;
 
15646
 
 
15647
uts4*)
 
15648
  version_type=linux
 
15649
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15650
  soname_spec='${libname}${release}${shared_ext}$major'
 
15651
  shlibpath_var=LD_LIBRARY_PATH
 
15652
  ;;
 
15653
 
 
15654
*)
 
15655
  dynamic_linker=no
 
15656
  ;;
 
15657
esac
 
15658
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
15659
echo "${ECHO_T}$dynamic_linker" >&6; }
 
15660
test "$dynamic_linker" = no && can_build_shared=no
 
15661
 
 
15662
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
15663
if test "$GCC" = yes; then
 
15664
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
15665
fi
 
15666
 
 
15667
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
15668
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
 
15669
hardcode_action_F77=
 
15670
if test -n "$hardcode_libdir_flag_spec_F77" || \
 
15671
   test -n "$runpath_var_F77" || \
 
15672
   test "X$hardcode_automatic_F77" = "Xyes" ; then
 
15673
 
 
15674
  # We can hardcode non-existant directories.
 
15675
  if test "$hardcode_direct_F77" != no &&
 
15676
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
15677
     # have to relink, otherwise we might link with an installed library
 
15678
     # when we should be linking with a yet-to-be-installed one
 
15679
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
 
15680
     test "$hardcode_minus_L_F77" != no; then
 
15681
    # Linking always hardcodes the temporary library directory.
 
15682
    hardcode_action_F77=relink
 
15683
  else
 
15684
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
15685
    hardcode_action_F77=immediate
 
15686
  fi
 
15687
else
 
15688
  # We cannot hardcode anything, or else we can only hardcode existing
 
15689
  # directories.
 
15690
  hardcode_action_F77=unsupported
 
15691
fi
 
15692
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
 
15693
echo "${ECHO_T}$hardcode_action_F77" >&6; }
 
15694
 
 
15695
if test "$hardcode_action_F77" = relink; then
 
15696
  # Fast installation is not supported
 
15697
  enable_fast_install=no
 
15698
elif test "$shlibpath_overrides_runpath" = yes ||
 
15699
     test "$enable_shared" = no; then
 
15700
  # Fast installation is not necessary
 
15701
  enable_fast_install=needless
 
15702
fi
 
15703
 
 
15704
 
 
15705
# The else clause should only fire when bootstrapping the
 
15706
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
15707
# with your package, and you will get complaints that there are
 
15708
# no rules to generate ltmain.sh.
 
15709
if test -f "$ltmain"; then
 
15710
  # See if we are running on zsh, and set the options which allow our commands through
 
15711
  # without removal of \ escapes.
 
15712
  if test -n "${ZSH_VERSION+set}" ; then
 
15713
    setopt NO_GLOB_SUBST
 
15714
  fi
 
15715
  # Now quote all the things that may contain metacharacters while being
 
15716
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
15717
  # variables and quote the copies for generation of the libtool script.
 
15718
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
15719
    SED SHELL STRIP \
 
15720
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
15721
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
15722
    deplibs_check_method reload_flag reload_cmds need_locks \
 
15723
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
15724
    lt_cv_sys_global_symbol_to_c_name_address \
 
15725
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
15726
    old_postinstall_cmds old_postuninstall_cmds \
 
15727
    compiler_F77 \
 
15728
    CC_F77 \
 
15729
    LD_F77 \
 
15730
    lt_prog_compiler_wl_F77 \
 
15731
    lt_prog_compiler_pic_F77 \
 
15732
    lt_prog_compiler_static_F77 \
 
15733
    lt_prog_compiler_no_builtin_flag_F77 \
 
15734
    export_dynamic_flag_spec_F77 \
 
15735
    thread_safe_flag_spec_F77 \
 
15736
    whole_archive_flag_spec_F77 \
 
15737
    enable_shared_with_static_runtimes_F77 \
 
15738
    old_archive_cmds_F77 \
 
15739
    old_archive_from_new_cmds_F77 \
 
15740
    predep_objects_F77 \
 
15741
    postdep_objects_F77 \
 
15742
    predeps_F77 \
 
15743
    postdeps_F77 \
 
15744
    compiler_lib_search_path_F77 \
 
15745
    archive_cmds_F77 \
 
15746
    archive_expsym_cmds_F77 \
 
15747
    postinstall_cmds_F77 \
 
15748
    postuninstall_cmds_F77 \
 
15749
    old_archive_from_expsyms_cmds_F77 \
 
15750
    allow_undefined_flag_F77 \
 
15751
    no_undefined_flag_F77 \
 
15752
    export_symbols_cmds_F77 \
 
15753
    hardcode_libdir_flag_spec_F77 \
 
15754
    hardcode_libdir_flag_spec_ld_F77 \
 
15755
    hardcode_libdir_separator_F77 \
 
15756
    hardcode_automatic_F77 \
 
15757
    module_cmds_F77 \
 
15758
    module_expsym_cmds_F77 \
 
15759
    lt_cv_prog_compiler_c_o_F77 \
 
15760
    exclude_expsyms_F77 \
 
15761
    include_expsyms_F77; do
 
15762
 
 
15763
    case $var in
 
15764
    old_archive_cmds_F77 | \
 
15765
    old_archive_from_new_cmds_F77 | \
 
15766
    archive_cmds_F77 | \
 
15767
    archive_expsym_cmds_F77 | \
 
15768
    module_cmds_F77 | \
 
15769
    module_expsym_cmds_F77 | \
 
15770
    old_archive_from_expsyms_cmds_F77 | \
 
15771
    export_symbols_cmds_F77 | \
 
15772
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
15773
    postinstall_cmds | postuninstall_cmds | \
 
15774
    old_postinstall_cmds | old_postuninstall_cmds | \
 
15775
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
15776
      # Double-quote double-evaled strings.
 
15777
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
15778
      ;;
 
15779
    *)
 
15780
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
15781
      ;;
 
15782
    esac
 
15783
  done
 
15784
 
 
15785
  case $lt_echo in
 
15786
  *'\$0 --fallback-echo"')
 
15787
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
15788
    ;;
 
15789
  esac
 
15790
 
 
15791
cfgfile="$ofile"
 
15792
 
 
15793
  cat <<__EOF__ >> "$cfgfile"
 
15794
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
15795
 
 
15796
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
15797
 
 
15798
# Shell to use when invoking shell scripts.
 
15799
SHELL=$lt_SHELL
 
15800
 
 
15801
# Whether or not to build shared libraries.
 
15802
build_libtool_libs=$enable_shared
 
15803
 
 
15804
# Whether or not to build static libraries.
 
15805
build_old_libs=$enable_static
 
15806
 
 
15807
# Whether or not to add -lc for building shared libraries.
 
15808
build_libtool_need_lc=$archive_cmds_need_lc_F77
 
15809
 
 
15810
# Whether or not to disallow shared libs when runtime libs are static
 
15811
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
 
15812
 
 
15813
# Whether or not to optimize for fast installation.
 
15814
fast_install=$enable_fast_install
 
15815
 
 
15816
# The host system.
 
15817
host_alias=$host_alias
 
15818
host=$host
 
15819
host_os=$host_os
 
15820
 
 
15821
# The build system.
 
15822
build_alias=$build_alias
 
15823
build=$build
 
15824
build_os=$build_os
 
15825
 
 
15826
# An echo program that does not interpret backslashes.
 
15827
echo=$lt_echo
 
15828
 
 
15829
# The archiver.
 
15830
AR=$lt_AR
 
15831
AR_FLAGS=$lt_AR_FLAGS
 
15832
 
 
15833
# A C compiler.
 
15834
LTCC=$lt_LTCC
 
15835
 
 
15836
# LTCC compiler flags.
 
15837
LTCFLAGS=$lt_LTCFLAGS
 
15838
 
 
15839
# A language-specific compiler.
 
15840
CC=$lt_compiler_F77
 
15841
 
 
15842
# Is the compiler the GNU C compiler?
 
15843
with_gcc=$GCC_F77
 
15844
 
 
15845
# An ERE matcher.
 
15846
EGREP=$lt_EGREP
 
15847
 
 
15848
# The linker used to build libraries.
 
15849
LD=$lt_LD_F77
 
15850
 
 
15851
# Whether we need hard or soft links.
 
15852
LN_S=$lt_LN_S
 
15853
 
 
15854
# A BSD-compatible nm program.
 
15855
NM=$lt_NM
 
15856
 
 
15857
# A symbol stripping program
 
15858
STRIP=$lt_STRIP
 
15859
 
 
15860
# Used to examine libraries when file_magic_cmd begins "file"
 
15861
MAGIC_CMD=$MAGIC_CMD
 
15862
 
 
15863
# Used on cygwin: DLL creation program.
 
15864
DLLTOOL="$DLLTOOL"
 
15865
 
 
15866
# Used on cygwin: object dumper.
 
15867
OBJDUMP="$OBJDUMP"
 
15868
 
 
15869
# Used on cygwin: assembler.
 
15870
AS="$AS"
 
15871
 
 
15872
# The name of the directory that contains temporary libtool files.
 
15873
objdir=$objdir
 
15874
 
 
15875
# How to create reloadable object files.
 
15876
reload_flag=$lt_reload_flag
 
15877
reload_cmds=$lt_reload_cmds
 
15878
 
 
15879
# How to pass a linker flag through the compiler.
 
15880
wl=$lt_lt_prog_compiler_wl_F77
 
15881
 
 
15882
# Object file suffix (normally "o").
 
15883
objext="$ac_objext"
 
15884
 
 
15885
# Old archive suffix (normally "a").
 
15886
libext="$libext"
 
15887
 
 
15888
# Shared library suffix (normally ".so").
 
15889
shrext_cmds='$shrext_cmds'
 
15890
 
 
15891
# Executable file suffix (normally "").
 
15892
exeext="$exeext"
 
15893
 
 
15894
# Additional compiler flags for building library objects.
 
15895
pic_flag=$lt_lt_prog_compiler_pic_F77
 
15896
pic_mode=$pic_mode
 
15897
 
 
15898
# What is the maximum length of a command?
 
15899
max_cmd_len=$lt_cv_sys_max_cmd_len
 
15900
 
 
15901
# Does compiler simultaneously support -c and -o options?
 
15902
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
 
15903
 
 
15904
# Must we lock files when doing compilation?
 
15905
need_locks=$lt_need_locks
 
15906
 
 
15907
# Do we need the lib prefix for modules?
 
15908
need_lib_prefix=$need_lib_prefix
 
15909
 
 
15910
# Do we need a version for libraries?
 
15911
need_version=$need_version
 
15912
 
 
15913
# Whether dlopen is supported.
 
15914
dlopen_support=$enable_dlopen
 
15915
 
 
15916
# Whether dlopen of programs is supported.
 
15917
dlopen_self=$enable_dlopen_self
 
15918
 
 
15919
# Whether dlopen of statically linked programs is supported.
 
15920
dlopen_self_static=$enable_dlopen_self_static
 
15921
 
 
15922
# Compiler flag to prevent dynamic linking.
 
15923
link_static_flag=$lt_lt_prog_compiler_static_F77
 
15924
 
 
15925
# Compiler flag to turn off builtin functions.
 
15926
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
 
15927
 
 
15928
# Compiler flag to allow reflexive dlopens.
 
15929
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
 
15930
 
 
15931
# Compiler flag to generate shared objects directly from archives.
 
15932
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
 
15933
 
 
15934
# Compiler flag to generate thread-safe objects.
 
15935
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
 
15936
 
 
15937
# Library versioning type.
 
15938
version_type=$version_type
 
15939
 
 
15940
# Format of library name prefix.
 
15941
libname_spec=$lt_libname_spec
 
15942
 
 
15943
# List of archive names.  First name is the real one, the rest are links.
 
15944
# The last name is the one that the linker finds with -lNAME.
 
15945
library_names_spec=$lt_library_names_spec
 
15946
 
 
15947
# The coded name of the library, if different from the real name.
 
15948
soname_spec=$lt_soname_spec
 
15949
 
 
15950
# Commands used to build and install an old-style archive.
 
15951
RANLIB=$lt_RANLIB
 
15952
old_archive_cmds=$lt_old_archive_cmds_F77
 
15953
old_postinstall_cmds=$lt_old_postinstall_cmds
 
15954
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
15955
 
 
15956
# Create an old-style archive from a shared archive.
 
15957
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
 
15958
 
 
15959
# Create a temporary old-style archive to link instead of a shared archive.
 
15960
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
 
15961
 
 
15962
# Commands used to build and install a shared archive.
 
15963
archive_cmds=$lt_archive_cmds_F77
 
15964
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
 
15965
postinstall_cmds=$lt_postinstall_cmds
 
15966
postuninstall_cmds=$lt_postuninstall_cmds
 
15967
 
 
15968
# Commands used to build a loadable module (assumed same as above if empty)
 
15969
module_cmds=$lt_module_cmds_F77
 
15970
module_expsym_cmds=$lt_module_expsym_cmds_F77
 
15971
 
 
15972
# Commands to strip libraries.
 
15973
old_striplib=$lt_old_striplib
 
15974
striplib=$lt_striplib
 
15975
 
 
15976
# Dependencies to place before the objects being linked to create a
 
15977
# shared library.
 
15978
predep_objects=$lt_predep_objects_F77
 
15979
 
 
15980
# Dependencies to place after the objects being linked to create a
 
15981
# shared library.
 
15982
postdep_objects=$lt_postdep_objects_F77
 
15983
 
 
15984
# Dependencies to place before the objects being linked to create a
 
15985
# shared library.
 
15986
predeps=$lt_predeps_F77
 
15987
 
 
15988
# Dependencies to place after the objects being linked to create a
 
15989
# shared library.
 
15990
postdeps=$lt_postdeps_F77
 
15991
 
 
15992
# The library search path used internally by the compiler when linking
 
15993
# a shared library.
 
15994
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
 
15995
 
 
15996
# Method to check whether dependent libraries are shared objects.
 
15997
deplibs_check_method=$lt_deplibs_check_method
 
15998
 
 
15999
# Command to use when deplibs_check_method == file_magic.
 
16000
file_magic_cmd=$lt_file_magic_cmd
 
16001
 
 
16002
# Flag that allows shared libraries with undefined symbols to be built.
 
16003
allow_undefined_flag=$lt_allow_undefined_flag_F77
 
16004
 
 
16005
# Flag that forces no undefined symbols.
 
16006
no_undefined_flag=$lt_no_undefined_flag_F77
 
16007
 
 
16008
# Commands used to finish a libtool library installation in a directory.
 
16009
finish_cmds=$lt_finish_cmds
 
16010
 
 
16011
# Same as above, but a single script fragment to be evaled but not shown.
 
16012
finish_eval=$lt_finish_eval
 
16013
 
 
16014
# Take the output of nm and produce a listing of raw symbols and C names.
 
16015
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
16016
 
 
16017
# Transform the output of nm in a proper C declaration
 
16018
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
16019
 
 
16020
# Transform the output of nm in a C name address pair
 
16021
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
16022
 
 
16023
# This is the shared library runtime path variable.
 
16024
runpath_var=$runpath_var
 
16025
 
 
16026
# This is the shared library path variable.
 
16027
shlibpath_var=$shlibpath_var
 
16028
 
 
16029
# Is shlibpath searched before the hard-coded library search path?
 
16030
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
16031
 
 
16032
# How to hardcode a shared library path into an executable.
 
16033
hardcode_action=$hardcode_action_F77
 
16034
 
 
16035
# Whether we should hardcode library paths into libraries.
 
16036
hardcode_into_libs=$hardcode_into_libs
 
16037
 
 
16038
# Flag to hardcode \$libdir into a binary during linking.
 
16039
# This must work even if \$libdir does not exist.
 
16040
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
 
16041
 
 
16042
# If ld is used when linking, flag to hardcode \$libdir into
 
16043
# a binary during linking. This must work even if \$libdir does
 
16044
# not exist.
 
16045
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
 
16046
 
 
16047
# Whether we need a single -rpath flag with a separated argument.
 
16048
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
 
16049
 
 
16050
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
16051
# resulting binary.
 
16052
hardcode_direct=$hardcode_direct_F77
 
16053
 
 
16054
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
16055
# resulting binary.
 
16056
hardcode_minus_L=$hardcode_minus_L_F77
 
16057
 
 
16058
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
16059
# the resulting binary.
 
16060
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
 
16061
 
 
16062
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
16063
# and all subsequent libraries and executables linked against it.
 
16064
hardcode_automatic=$hardcode_automatic_F77
 
16065
 
 
16066
# Variables whose values should be saved in libtool wrapper scripts and
 
16067
# restored at relink time.
 
16068
variables_saved_for_relink="$variables_saved_for_relink"
 
16069
 
 
16070
# Whether libtool must link a program against all its dependency libraries.
 
16071
link_all_deplibs=$link_all_deplibs_F77
 
16072
 
 
16073
# Compile-time system search path for libraries
 
16074
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
16075
 
 
16076
# Run-time system search path for libraries
 
16077
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
16078
 
 
16079
# Fix the shell variable \$srcfile for the compiler.
 
16080
fix_srcfile_path="$fix_srcfile_path_F77"
 
16081
 
 
16082
# Set to yes if exported symbols are required.
 
16083
always_export_symbols=$always_export_symbols_F77
 
16084
 
 
16085
# The commands to list exported symbols.
 
16086
export_symbols_cmds=$lt_export_symbols_cmds_F77
 
16087
 
 
16088
# The commands to extract the exported symbol list from a shared archive.
 
16089
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
16090
 
 
16091
# Symbols that should not be listed in the preloaded symbols.
 
16092
exclude_expsyms=$lt_exclude_expsyms_F77
 
16093
 
 
16094
# Symbols that must always be exported.
 
16095
include_expsyms=$lt_include_expsyms_F77
 
16096
 
 
16097
# ### END LIBTOOL TAG CONFIG: $tagname
 
16098
 
 
16099
__EOF__
 
16100
 
 
16101
 
 
16102
else
 
16103
  # If there is no Makefile yet, we rely on a make rule to execute
 
16104
  # `config.status --recheck' to rerun these tests and create the
 
16105
  # libtool script then.
 
16106
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
16107
  if test -f "$ltmain_in"; then
 
16108
    test -f Makefile && make "$ltmain"
 
16109
  fi
 
16110
fi
 
16111
 
 
16112
 
 
16113
ac_ext=c
 
16114
ac_cpp='$CPP $CPPFLAGS'
 
16115
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
16116
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
16117
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
16118
 
 
16119
CC="$lt_save_CC"
 
16120
 
 
16121
        else
 
16122
          tagname=""
 
16123
        fi
 
16124
        ;;
 
16125
 
 
16126
      GCJ)
 
16127
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
 
16128
 
 
16129
 
 
16130
# Source file extension for Java test sources.
 
16131
ac_ext=java
 
16132
 
 
16133
# Object file extension for compiled Java test sources.
 
16134
objext=o
 
16135
objext_GCJ=$objext
 
16136
 
 
16137
# Code to be used in simple compile tests
 
16138
lt_simple_compile_test_code="class foo {}\n"
 
16139
 
 
16140
# Code to be used in simple link tests
 
16141
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
 
16142
 
 
16143
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
16144
 
 
16145
# If no C compiler was specified, use CC.
 
16146
LTCC=${LTCC-"$CC"}
 
16147
 
 
16148
# If no C compiler flags were specified, use CFLAGS.
 
16149
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
16150
 
 
16151
# Allow CC to be a program name with arguments.
 
16152
compiler=$CC
 
16153
 
 
16154
 
 
16155
# save warnings/boilerplate of simple test code
 
16156
ac_outfile=conftest.$ac_objext
 
16157
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
16158
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
16159
_lt_compiler_boilerplate=`cat conftest.err`
 
16160
$rm conftest*
 
16161
 
 
16162
ac_outfile=conftest.$ac_objext
 
16163
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
16164
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
16165
_lt_linker_boilerplate=`cat conftest.err`
 
16166
$rm conftest*
 
16167
 
 
16168
 
 
16169
# Allow CC to be a program name with arguments.
 
16170
lt_save_CC="$CC"
 
16171
CC=${GCJ-"gcj"}
 
16172
compiler=$CC
 
16173
compiler_GCJ=$CC
 
16174
for cc_temp in $compiler""; do
 
16175
  case $cc_temp in
 
16176
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
16177
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
16178
    \-*) ;;
 
16179
    *) break;;
 
16180
  esac
 
16181
done
 
16182
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
16183
 
 
16184
 
 
16185
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
16186
archive_cmds_need_lc_GCJ=no
 
16187
 
 
16188
old_archive_cmds_GCJ=$old_archive_cmds
 
16189
 
 
16190
 
 
16191
lt_prog_compiler_no_builtin_flag_GCJ=
 
16192
 
 
16193
if test "$GCC" = yes; then
 
16194
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
 
16195
 
 
16196
 
 
16197
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
16198
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
 
16199
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
16200
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16201
else
 
16202
  lt_cv_prog_compiler_rtti_exceptions=no
 
16203
  ac_outfile=conftest.$ac_objext
 
16204
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16205
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
16206
   # Insert the option either (1) after the last *FLAGS variable, or
 
16207
   # (2) before a word containing "conftest.", or (3) at the end.
 
16208
   # Note that $ac_compile itself does not contain backslashes and begins
 
16209
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
16210
   # The option is referenced via a variable to avoid confusing sed.
 
16211
   lt_compile=`echo "$ac_compile" | $SED \
 
16212
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
16213
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
16214
   -e 's:$: $lt_compiler_flag:'`
 
16215
   (eval echo "\"\$as_me:16215: $lt_compile\"" >&5)
 
16216
   (eval "$lt_compile" 2>conftest.err)
 
16217
   ac_status=$?
 
16218
   cat conftest.err >&5
 
16219
   echo "$as_me:16219: \$? = $ac_status" >&5
 
16220
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
16221
     # The compiler can only warn and ignore the option if not recognized
 
16222
     # So say no if there are warnings other than the usual output.
 
16223
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
16224
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
16225
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
16226
       lt_cv_prog_compiler_rtti_exceptions=yes
 
16227
     fi
 
16228
   fi
 
16229
   $rm conftest*
 
16230
 
 
16231
fi
 
16232
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
16233
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
16234
 
 
16235
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
16236
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
 
16237
else
 
16238
    :
 
16239
fi
 
16240
 
 
16241
fi
 
16242
 
 
16243
lt_prog_compiler_wl_GCJ=
 
16244
lt_prog_compiler_pic_GCJ=
 
16245
lt_prog_compiler_static_GCJ=
 
16246
 
 
16247
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
16248
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
 
16249
 
 
16250
  if test "$GCC" = yes; then
 
16251
    lt_prog_compiler_wl_GCJ='-Wl,'
 
16252
    lt_prog_compiler_static_GCJ='-static'
 
16253
 
 
16254
    case $host_os in
 
16255
      aix*)
 
16256
      # All AIX code is PIC.
 
16257
      if test "$host_cpu" = ia64; then
 
16258
        # AIX 5 now supports IA64 processor
 
16259
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16260
      fi
 
16261
      ;;
 
16262
 
 
16263
    amigaos*)
 
16264
      # FIXME: we need at least 68020 code to build shared libraries, but
 
16265
      # adding the `-m68020' flag to GCC prevents building anything better,
 
16266
      # like `-m68040'.
 
16267
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
 
16268
      ;;
 
16269
 
 
16270
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
16271
      # PIC is the default for these OSes.
 
16272
      ;;
 
16273
 
 
16274
    mingw* | pw32* | os2*)
 
16275
      # This hack is so that the source file can tell whether it is being
 
16276
      # built for inclusion in a dll (and should export symbols for example).
 
16277
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
16278
      ;;
 
16279
 
 
16280
    darwin* | rhapsody*)
 
16281
      # PIC is the default on this platform
 
16282
      # Common symbols not allowed in MH_DYLIB files
 
16283
      lt_prog_compiler_pic_GCJ='-fno-common'
 
16284
      ;;
 
16285
 
 
16286
    interix3*)
 
16287
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
16288
      # Instead, we relocate shared libraries at runtime.
 
16289
      ;;
 
16290
 
 
16291
    msdosdjgpp*)
 
16292
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
16293
      # on systems that don't support them.
 
16294
      lt_prog_compiler_can_build_shared_GCJ=no
 
16295
      enable_shared=no
 
16296
      ;;
 
16297
 
 
16298
    sysv4*MP*)
 
16299
      if test -d /usr/nec; then
 
16300
        lt_prog_compiler_pic_GCJ=-Kconform_pic
 
16301
      fi
 
16302
      ;;
 
16303
 
 
16304
    hpux*)
 
16305
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
16306
      # not for PA HP-UX.
 
16307
      case $host_cpu in
 
16308
      hppa*64*|ia64*)
 
16309
        # +Z the default
 
16310
        ;;
 
16311
      *)
 
16312
        lt_prog_compiler_pic_GCJ='-fPIC'
 
16313
        ;;
 
16314
      esac
 
16315
      ;;
 
16316
 
 
16317
    *)
 
16318
      lt_prog_compiler_pic_GCJ='-fPIC'
 
16319
      ;;
 
16320
    esac
 
16321
  else
 
16322
    # PORTME Check for flag to pass linker flags through the system compiler.
 
16323
    case $host_os in
 
16324
    aix*)
 
16325
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16326
      if test "$host_cpu" = ia64; then
 
16327
        # AIX 5 now supports IA64 processor
 
16328
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16329
      else
 
16330
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
 
16331
      fi
 
16332
      ;;
 
16333
      darwin*)
 
16334
        # PIC is the default on this platform
 
16335
        # Common symbols not allowed in MH_DYLIB files
 
16336
       case $cc_basename in
 
16337
         xlc*)
 
16338
         lt_prog_compiler_pic_GCJ='-qnocommon'
 
16339
         lt_prog_compiler_wl_GCJ='-Wl,'
 
16340
         ;;
 
16341
       esac
 
16342
       ;;
 
16343
 
 
16344
    mingw* | pw32* | os2*)
 
16345
      # This hack is so that the source file can tell whether it is being
 
16346
      # built for inclusion in a dll (and should export symbols for example).
 
16347
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
16348
      ;;
 
16349
 
 
16350
    hpux9* | hpux10* | hpux11*)
 
16351
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16352
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
16353
      # not for PA HP-UX.
 
16354
      case $host_cpu in
 
16355
      hppa*64*|ia64*)
 
16356
        # +Z the default
 
16357
        ;;
 
16358
      *)
 
16359
        lt_prog_compiler_pic_GCJ='+Z'
 
16360
        ;;
 
16361
      esac
 
16362
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
16363
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
 
16364
      ;;
 
16365
 
 
16366
    irix5* | irix6* | nonstopux*)
 
16367
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16368
      # PIC (with -KPIC) is the default.
 
16369
      lt_prog_compiler_static_GCJ='-non_shared'
 
16370
      ;;
 
16371
 
 
16372
    newsos6)
 
16373
      lt_prog_compiler_pic_GCJ='-KPIC'
 
16374
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16375
      ;;
 
16376
 
 
16377
    linux* | k*bsd*-gnu)
 
16378
      case $cc_basename in
 
16379
      icc* | ecc*)
 
16380
        lt_prog_compiler_wl_GCJ='-Wl,'
 
16381
        lt_prog_compiler_pic_GCJ='-KPIC'
 
16382
        lt_prog_compiler_static_GCJ='-static'
 
16383
        ;;
 
16384
      pgcc* | pgf77* | pgf90* | pgf95*)
 
16385
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
16386
        # which looks to be a dead project)
 
16387
        lt_prog_compiler_wl_GCJ='-Wl,'
 
16388
        lt_prog_compiler_pic_GCJ='-fpic'
 
16389
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16390
        ;;
 
16391
      ccc*)
 
16392
        lt_prog_compiler_wl_GCJ='-Wl,'
 
16393
        # All Alpha code is PIC.
 
16394
        lt_prog_compiler_static_GCJ='-non_shared'
 
16395
        ;;
 
16396
      esac
 
16397
      ;;
 
16398
 
 
16399
    osf3* | osf4* | osf5*)
 
16400
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16401
      # All OSF/1 code is PIC.
 
16402
      lt_prog_compiler_static_GCJ='-non_shared'
 
16403
      ;;
 
16404
 
 
16405
    solaris*)
 
16406
      lt_prog_compiler_pic_GCJ='-KPIC'
 
16407
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16408
      case $cc_basename in
 
16409
      f77* | f90* | f95*)
 
16410
        lt_prog_compiler_wl_GCJ='-Qoption ld ';;
 
16411
      *)
 
16412
        lt_prog_compiler_wl_GCJ='-Wl,';;
 
16413
      esac
 
16414
      ;;
 
16415
 
 
16416
    sunos4*)
 
16417
      lt_prog_compiler_wl_GCJ='-Qoption ld '
 
16418
      lt_prog_compiler_pic_GCJ='-PIC'
 
16419
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16420
      ;;
 
16421
 
 
16422
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
16423
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16424
      lt_prog_compiler_pic_GCJ='-KPIC'
 
16425
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16426
      ;;
 
16427
 
 
16428
    sysv4*MP*)
 
16429
      if test -d /usr/nec ;then
 
16430
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
 
16431
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16432
      fi
 
16433
      ;;
 
16434
 
 
16435
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
16436
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16437
      lt_prog_compiler_pic_GCJ='-KPIC'
 
16438
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16439
      ;;
 
16440
 
 
16441
    unicos*)
 
16442
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16443
      lt_prog_compiler_can_build_shared_GCJ=no
 
16444
      ;;
 
16445
 
 
16446
    uts4*)
 
16447
      lt_prog_compiler_pic_GCJ='-pic'
 
16448
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16449
      ;;
 
16450
 
 
16451
    *)
 
16452
      lt_prog_compiler_can_build_shared_GCJ=no
 
16453
      ;;
 
16454
    esac
 
16455
  fi
 
16456
 
 
16457
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
 
16458
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
 
16459
 
 
16460
#
 
16461
# Check to make sure the PIC flag actually works.
 
16462
#
 
16463
if test -n "$lt_prog_compiler_pic_GCJ"; then
 
16464
 
 
16465
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
 
16466
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
 
16467
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
 
16468
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16469
else
 
16470
  lt_prog_compiler_pic_works_GCJ=no
 
16471
  ac_outfile=conftest.$ac_objext
 
16472
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16473
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
 
16474
   # Insert the option either (1) after the last *FLAGS variable, or
 
16475
   # (2) before a word containing "conftest.", or (3) at the end.
 
16476
   # Note that $ac_compile itself does not contain backslashes and begins
 
16477
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
16478
   # The option is referenced via a variable to avoid confusing sed.
 
16479
   lt_compile=`echo "$ac_compile" | $SED \
 
16480
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
16481
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
16482
   -e 's:$: $lt_compiler_flag:'`
 
16483
   (eval echo "\"\$as_me:16483: $lt_compile\"" >&5)
 
16484
   (eval "$lt_compile" 2>conftest.err)
 
16485
   ac_status=$?
 
16486
   cat conftest.err >&5
 
16487
   echo "$as_me:16487: \$? = $ac_status" >&5
 
16488
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
16489
     # The compiler can only warn and ignore the option if not recognized
 
16490
     # So say no if there are warnings other than the usual output.
 
16491
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
16492
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
16493
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
16494
       lt_prog_compiler_pic_works_GCJ=yes
 
16495
     fi
 
16496
   fi
 
16497
   $rm conftest*
 
16498
 
 
16499
fi
 
16500
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
 
16501
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
 
16502
 
 
16503
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
 
16504
    case $lt_prog_compiler_pic_GCJ in
 
16505
     "" | " "*) ;;
 
16506
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
 
16507
     esac
 
16508
else
 
16509
    lt_prog_compiler_pic_GCJ=
 
16510
     lt_prog_compiler_can_build_shared_GCJ=no
 
16511
fi
 
16512
 
 
16513
fi
 
16514
case $host_os in
 
16515
  # For platforms which do not support PIC, -DPIC is meaningless:
 
16516
  *djgpp*)
 
16517
    lt_prog_compiler_pic_GCJ=
 
16518
    ;;
 
16519
  *)
 
16520
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
 
16521
    ;;
 
16522
esac
 
16523
 
 
16524
#
 
16525
# Check to make sure the static flag actually works.
 
16526
#
 
16527
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
 
16528
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
16529
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
 
16530
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
 
16531
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16532
else
 
16533
  lt_prog_compiler_static_works_GCJ=no
 
16534
   save_LDFLAGS="$LDFLAGS"
 
16535
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
16536
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
16537
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
16538
     # The linker can only warn and ignore the option if not recognized
 
16539
     # So say no if there are warnings
 
16540
     if test -s conftest.err; then
 
16541
       # Append any errors to the config.log.
 
16542
       cat conftest.err 1>&5
 
16543
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
16544
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
16545
       if diff conftest.exp conftest.er2 >/dev/null; then
 
16546
         lt_prog_compiler_static_works_GCJ=yes
 
16547
       fi
 
16548
     else
 
16549
       lt_prog_compiler_static_works_GCJ=yes
 
16550
     fi
 
16551
   fi
 
16552
   $rm conftest*
 
16553
   LDFLAGS="$save_LDFLAGS"
 
16554
 
 
16555
fi
 
16556
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
 
16557
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
 
16558
 
 
16559
if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
 
16560
    :
 
16561
else
 
16562
    lt_prog_compiler_static_GCJ=
 
16563
fi
 
16564
 
 
16565
 
 
16566
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
16567
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
16568
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
 
16569
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16570
else
 
16571
  lt_cv_prog_compiler_c_o_GCJ=no
 
16572
   $rm -r conftest 2>/dev/null
 
16573
   mkdir conftest
 
16574
   cd conftest
 
16575
   mkdir out
 
16576
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16577
 
 
16578
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
16579
   # Insert the option either (1) after the last *FLAGS variable, or
 
16580
   # (2) before a word containing "conftest.", or (3) at the end.
 
16581
   # Note that $ac_compile itself does not contain backslashes and begins
 
16582
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
16583
   lt_compile=`echo "$ac_compile" | $SED \
 
16584
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
16585
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
16586
   -e 's:$: $lt_compiler_flag:'`
 
16587
   (eval echo "\"\$as_me:16587: $lt_compile\"" >&5)
 
16588
   (eval "$lt_compile" 2>out/conftest.err)
 
16589
   ac_status=$?
 
16590
   cat out/conftest.err >&5
 
16591
   echo "$as_me:16591: \$? = $ac_status" >&5
 
16592
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
16593
   then
 
16594
     # The compiler can only warn and ignore the option if not recognized
 
16595
     # So say no if there are warnings
 
16596
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
16597
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
16598
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
16599
       lt_cv_prog_compiler_c_o_GCJ=yes
 
16600
     fi
 
16601
   fi
 
16602
   chmod u+w . 2>&5
 
16603
   $rm conftest*
 
16604
   # SGI C++ compiler will create directory out/ii_files/ for
 
16605
   # template instantiation
 
16606
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
16607
   $rm out/* && rmdir out
 
16608
   cd ..
 
16609
   rmdir conftest
 
16610
   $rm conftest*
 
16611
 
 
16612
fi
 
16613
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
 
16614
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
 
16615
 
 
16616
 
 
16617
hard_links="nottested"
 
16618
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
 
16619
  # do not overwrite the value of need_locks provided by the user
 
16620
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
16621
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
 
16622
  hard_links=yes
 
16623
  $rm conftest*
 
16624
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
16625
  touch conftest.a
 
16626
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
16627
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
16628
  { echo "$as_me:$LINENO: result: $hard_links" >&5
 
16629
echo "${ECHO_T}$hard_links" >&6; }
 
16630
  if test "$hard_links" = no; then
 
16631
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
16632
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
16633
    need_locks=warn
 
16634
  fi
 
16635
else
 
16636
  need_locks=no
 
16637
fi
 
16638
 
 
16639
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
16640
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
16641
 
 
16642
  runpath_var=
 
16643
  allow_undefined_flag_GCJ=
 
16644
  enable_shared_with_static_runtimes_GCJ=no
 
16645
  archive_cmds_GCJ=
 
16646
  archive_expsym_cmds_GCJ=
 
16647
  old_archive_From_new_cmds_GCJ=
 
16648
  old_archive_from_expsyms_cmds_GCJ=
 
16649
  export_dynamic_flag_spec_GCJ=
 
16650
  whole_archive_flag_spec_GCJ=
 
16651
  thread_safe_flag_spec_GCJ=
 
16652
  hardcode_libdir_flag_spec_GCJ=
 
16653
  hardcode_libdir_flag_spec_ld_GCJ=
 
16654
  hardcode_libdir_separator_GCJ=
 
16655
  hardcode_direct_GCJ=no
 
16656
  hardcode_minus_L_GCJ=no
 
16657
  hardcode_shlibpath_var_GCJ=unsupported
 
16658
  link_all_deplibs_GCJ=unknown
 
16659
  hardcode_automatic_GCJ=no
 
16660
  module_cmds_GCJ=
 
16661
  module_expsym_cmds_GCJ=
 
16662
  always_export_symbols_GCJ=no
 
16663
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
16664
  # include_expsyms should be a list of space-separated symbols to be *always*
 
16665
  # included in the symbol list
 
16666
  include_expsyms_GCJ=
 
16667
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
16668
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
16669
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
16670
  # as well as any symbol that contains `d'.
 
16671
  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
 
16672
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
16673
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
16674
  # the symbol is explicitly referenced.  Since portable code cannot
 
16675
  # rely on this symbol name, it's probably fine to never include it in
 
16676
  # preloaded symbol tables.
 
16677
  extract_expsyms_cmds=
 
16678
  # Just being paranoid about ensuring that cc_basename is set.
 
16679
  for cc_temp in $compiler""; do
 
16680
  case $cc_temp in
 
16681
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
16682
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
16683
    \-*) ;;
 
16684
    *) break;;
 
16685
  esac
 
16686
done
 
16687
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
16688
 
 
16689
  case $host_os in
 
16690
  cygwin* | mingw* | pw32*)
 
16691
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
16692
    # When not using gcc, we currently assume that we are using
 
16693
    # Microsoft Visual C++.
 
16694
    if test "$GCC" != yes; then
 
16695
      with_gnu_ld=no
 
16696
    fi
 
16697
    ;;
 
16698
  interix*)
 
16699
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
16700
    with_gnu_ld=yes
 
16701
    ;;
 
16702
  openbsd*)
 
16703
    with_gnu_ld=no
 
16704
    ;;
 
16705
  esac
 
16706
 
 
16707
  ld_shlibs_GCJ=yes
 
16708
  if test "$with_gnu_ld" = yes; then
 
16709
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
16710
    wlarc='${wl}'
 
16711
 
 
16712
    # Set some defaults for GNU ld with shared library support. These
 
16713
    # are reset later if shared libraries are not supported. Putting them
 
16714
    # here allows them to be overridden if necessary.
 
16715
    runpath_var=LD_RUN_PATH
 
16716
    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
 
16717
    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
 
16718
    # ancient GNU ld didn't support --whole-archive et. al.
 
16719
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
16720
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
16721
      else
 
16722
        whole_archive_flag_spec_GCJ=
 
16723
    fi
 
16724
    supports_anon_versioning=no
 
16725
    case `$LD -v 2>/dev/null` in
 
16726
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
16727
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
16728
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
16729
      *\ 2.11.*) ;; # other 2.11 versions
 
16730
      *) supports_anon_versioning=yes ;;
 
16731
    esac
 
16732
 
 
16733
    # See if GNU ld supports shared libraries.
 
16734
    case $host_os in
 
16735
    aix3* | aix4* | aix5*)
 
16736
      # On AIX/PPC, the GNU linker is very broken
 
16737
      if test "$host_cpu" != ia64; then
 
16738
        ld_shlibs_GCJ=no
 
16739
        cat <<EOF 1>&2
 
16740
 
 
16741
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
16742
*** to be unable to reliably create shared libraries on AIX.
 
16743
*** Therefore, libtool is disabling shared libraries support.  If you
 
16744
*** really care for shared libraries, you may want to modify your PATH
 
16745
*** so that a non-GNU linker is found, and then restart.
 
16746
 
 
16747
EOF
 
16748
      fi
 
16749
      ;;
 
16750
 
 
16751
    amigaos*)
 
16752
      archive_cmds_GCJ='$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)'
 
16753
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16754
      hardcode_minus_L_GCJ=yes
 
16755
 
 
16756
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
16757
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
16758
      # to version 4, is to share data among multiple programs linked
 
16759
      # with the same dynamic library.  Since this doesn't match the
 
16760
      # behavior of shared libraries on other platforms, we can't use
 
16761
      # them.
 
16762
      ld_shlibs_GCJ=no
 
16763
      ;;
 
16764
 
 
16765
    beos*)
 
16766
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16767
        allow_undefined_flag_GCJ=unsupported
 
16768
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
16769
        # support --undefined.  This deserves some investigation.  FIXME
 
16770
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16771
      else
 
16772
        ld_shlibs_GCJ=no
 
16773
      fi
 
16774
      ;;
 
16775
 
 
16776
    cygwin* | mingw* | pw32*)
 
16777
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
 
16778
      # as there is no search path for DLLs.
 
16779
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16780
      allow_undefined_flag_GCJ=unsupported
 
16781
      always_export_symbols_GCJ=no
 
16782
      enable_shared_with_static_runtimes_GCJ=yes
 
16783
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
16784
 
 
16785
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
16786
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
16787
        # If the export-symbols file already is a .def file (1st line
 
16788
        # is EXPORTS), use it as is; otherwise, prepend...
 
16789
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
16790
          cp $export_symbols $output_objdir/$soname.def;
 
16791
        else
 
16792
          echo EXPORTS > $output_objdir/$soname.def;
 
16793
          cat $export_symbols >> $output_objdir/$soname.def;
 
16794
        fi~
 
16795
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
16796
      else
 
16797
        ld_shlibs_GCJ=no
 
16798
      fi
 
16799
      ;;
 
16800
 
 
16801
    interix3*)
 
16802
      hardcode_direct_GCJ=no
 
16803
      hardcode_shlibpath_var_GCJ=no
 
16804
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
16805
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
16806
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
16807
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
16808
      # default) and relocated if they conflict, which is a slow very memory
 
16809
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
16810
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
16811
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
16812
      archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
16813
      archive_expsym_cmds_GCJ='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'
 
16814
      ;;
 
16815
 
 
16816
    linux* | k*bsd*-gnu)
 
16817
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16818
        tmp_addflag=
 
16819
        case $cc_basename,$host_cpu in
 
16820
        pgcc*)                          # Portland Group C compiler
 
16821
          whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
16822
          tmp_addflag=' $pic_flag'
 
16823
          ;;
 
16824
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
16825
          whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
16826
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
16827
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
16828
          tmp_addflag=' -i_dynamic' ;;
 
16829
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
16830
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
16831
        ifc* | ifort*)                  # Intel Fortran compiler
 
16832
          tmp_addflag=' -nofor_main' ;;
 
16833
        esac
 
16834
        archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16835
 
 
16836
        if test $supports_anon_versioning = yes; then
 
16837
          archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
 
16838
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
16839
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
16840
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
16841
        fi
 
16842
        link_all_deplibs_GCJ=no
 
16843
      else
 
16844
        ld_shlibs_GCJ=no
 
16845
      fi
 
16846
      ;;
 
16847
 
 
16848
    netbsd* | netbsdelf*-gnu)
 
16849
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
16850
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
16851
        wlarc=
 
16852
      else
 
16853
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16854
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
16855
      fi
 
16856
      ;;
 
16857
 
 
16858
    solaris*)
 
16859
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
16860
        ld_shlibs_GCJ=no
 
16861
        cat <<EOF 1>&2
 
16862
 
 
16863
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
16864
*** create shared libraries on Solaris systems.  Therefore, libtool
 
16865
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
16866
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
16867
*** your PATH or compiler configuration so that the native linker is
 
16868
*** used, and then restart.
 
16869
 
 
16870
EOF
 
16871
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16872
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16873
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
16874
      else
 
16875
        ld_shlibs_GCJ=no
 
16876
      fi
 
16877
      ;;
 
16878
 
 
16879
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
16880
      case `$LD -v 2>&1` in
 
16881
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
16882
        ld_shlibs_GCJ=no
 
16883
        cat <<_LT_EOF 1>&2
 
16884
 
 
16885
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
16886
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
16887
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
16888
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
16889
*** your PATH or compiler configuration so that the native linker is
 
16890
*** used, and then restart.
 
16891
 
 
16892
_LT_EOF
 
16893
        ;;
 
16894
        *)
 
16895
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16896
            hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
16897
            archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
16898
            archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
16899
          else
 
16900
            ld_shlibs_GCJ=no
 
16901
          fi
 
16902
        ;;
 
16903
      esac
 
16904
      ;;
 
16905
 
 
16906
    sunos4*)
 
16907
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
16908
      wlarc=
 
16909
      hardcode_direct_GCJ=yes
 
16910
      hardcode_shlibpath_var_GCJ=no
 
16911
      ;;
 
16912
 
 
16913
    *)
 
16914
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16915
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16916
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
16917
      else
 
16918
        ld_shlibs_GCJ=no
 
16919
      fi
 
16920
      ;;
 
16921
    esac
 
16922
 
 
16923
    if test "$ld_shlibs_GCJ" = no; then
 
16924
      runpath_var=
 
16925
      hardcode_libdir_flag_spec_GCJ=
 
16926
      export_dynamic_flag_spec_GCJ=
 
16927
      whole_archive_flag_spec_GCJ=
 
16928
    fi
 
16929
  else
 
16930
    # PORTME fill in a description of your system's linker (not GNU ld)
 
16931
    case $host_os in
 
16932
    aix3*)
 
16933
      allow_undefined_flag_GCJ=unsupported
 
16934
      always_export_symbols_GCJ=yes
 
16935
      archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
 
16936
      # Note: this linker hardcodes the directories in LIBPATH if there
 
16937
      # are no directories specified by -L.
 
16938
      hardcode_minus_L_GCJ=yes
 
16939
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
16940
        # Neither direct hardcoding nor static linking is supported with a
 
16941
        # broken collect2.
 
16942
        hardcode_direct_GCJ=unsupported
 
16943
      fi
 
16944
      ;;
 
16945
 
 
16946
    aix4* | aix5*)
 
16947
      if test "$host_cpu" = ia64; then
 
16948
        # On IA64, the linker does run time linking by default, so we don't
 
16949
        # have to do anything special.
 
16950
        aix_use_runtimelinking=no
 
16951
        exp_sym_flag='-Bexport'
 
16952
        no_entry_flag=""
 
16953
      else
 
16954
        # If we're using GNU nm, then we don't want the "-C" option.
 
16955
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
16956
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
16957
          export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
16958
        else
 
16959
          export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
16960
        fi
 
16961
        aix_use_runtimelinking=no
 
16962
 
 
16963
        # Test if we are trying to use run time linking or normal
 
16964
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
16965
        # need to do runtime linking.
 
16966
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
16967
          for ld_flag in $LDFLAGS; do
 
16968
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
16969
            aix_use_runtimelinking=yes
 
16970
            break
 
16971
          fi
 
16972
          done
 
16973
          ;;
 
16974
        esac
 
16975
 
 
16976
        exp_sym_flag='-bexport'
 
16977
        no_entry_flag='-bnoentry'
 
16978
      fi
 
16979
 
 
16980
      # When large executables or shared objects are built, AIX ld can
 
16981
      # have problems creating the table of contents.  If linking a library
 
16982
      # or program results in "error TOC overflow" add -mminimal-toc to
 
16983
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
16984
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
16985
 
 
16986
      archive_cmds_GCJ=''
 
16987
      hardcode_direct_GCJ=yes
 
16988
      hardcode_libdir_separator_GCJ=':'
 
16989
      link_all_deplibs_GCJ=yes
 
16990
 
 
16991
      if test "$GCC" = yes; then
 
16992
        case $host_os in aix4.[012]|aix4.[012].*)
 
16993
        # We only want to do this on AIX 4.2 and lower, the check
 
16994
        # below for broken collect2 doesn't work under 4.3+
 
16995
          collect2name=`${CC} -print-prog-name=collect2`
 
16996
          if test -f "$collect2name" && \
 
16997
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
16998
          then
 
16999
          # We have reworked collect2
 
17000
          hardcode_direct_GCJ=yes
 
17001
          else
 
17002
          # We have old collect2
 
17003
          hardcode_direct_GCJ=unsupported
 
17004
          # It fails to find uninstalled libraries when the uninstalled
 
17005
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
17006
          # to unsupported forces relinking
 
17007
          hardcode_minus_L_GCJ=yes
 
17008
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17009
          hardcode_libdir_separator_GCJ=
 
17010
          fi
 
17011
          ;;
 
17012
        esac
 
17013
        shared_flag='-shared'
 
17014
        if test "$aix_use_runtimelinking" = yes; then
 
17015
          shared_flag="$shared_flag "'${wl}-G'
 
17016
        fi
 
17017
      else
 
17018
        # not using gcc
 
17019
        if test "$host_cpu" = ia64; then
 
17020
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
17021
        # chokes on -Wl,-G. The following line is correct:
 
17022
          shared_flag='-G'
 
17023
        else
 
17024
          if test "$aix_use_runtimelinking" = yes; then
 
17025
            shared_flag='${wl}-G'
 
17026
          else
 
17027
            shared_flag='${wl}-bM:SRE'
 
17028
          fi
 
17029
        fi
 
17030
      fi
 
17031
 
 
17032
      # It seems that -bexpall does not export symbols beginning with
 
17033
      # underscore (_), so it is better to generate a list of symbols to export.
 
17034
      always_export_symbols_GCJ=yes
 
17035
      if test "$aix_use_runtimelinking" = yes; then
 
17036
        # Warning - without using the other runtime loading flags (-brtl),
 
17037
        # -berok will link without error, but may produce a broken library.
 
17038
        allow_undefined_flag_GCJ='-berok'
 
17039
       # Determine the default libpath from the value encoded in an empty executable.
 
17040
       cat >conftest.$ac_ext <<_ACEOF
 
17041
/* confdefs.h.  */
 
17042
_ACEOF
 
17043
cat confdefs.h >>conftest.$ac_ext
 
17044
cat >>conftest.$ac_ext <<_ACEOF
 
17045
/* end confdefs.h.  */
 
17046
 
 
17047
int
 
17048
main ()
 
17049
{
 
17050
 
 
17051
  ;
 
17052
  return 0;
 
17053
}
 
17054
_ACEOF
 
17055
rm -f conftest.$ac_objext conftest$ac_exeext
 
17056
if { (ac_try="$ac_link"
 
17057
case "(($ac_try" in
 
17058
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17059
  *) ac_try_echo=$ac_try;;
 
17060
esac
 
17061
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17062
  (eval "$ac_link") 2>conftest.er1
 
17063
  ac_status=$?
 
17064
  grep -v '^ *+' conftest.er1 >conftest.err
 
17065
  rm -f conftest.er1
 
17066
  cat conftest.err >&5
 
17067
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17068
  (exit $ac_status); } && {
 
17069
         test -z "$ac_c_werror_flag" ||
 
17070
         test ! -s conftest.err
 
17071
       } && test -s conftest$ac_exeext &&
 
17072
       $as_test_x conftest$ac_exeext; then
 
17073
 
 
17074
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
17075
}'`
 
17076
# Check for a 64-bit object if we didn't find anything.
 
17077
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
17078
}'`; fi
 
17079
else
 
17080
  echo "$as_me: failed program was:" >&5
 
17081
sed 's/^/| /' conftest.$ac_ext >&5
 
17082
 
 
17083
 
 
17084
fi
 
17085
 
 
17086
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17087
      conftest$ac_exeext conftest.$ac_ext
 
17088
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
17089
 
 
17090
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
17091
        archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
17092
       else
 
17093
        if test "$host_cpu" = ia64; then
 
17094
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
 
17095
          allow_undefined_flag_GCJ="-z nodefs"
 
17096
          archive_expsym_cmds_GCJ="\$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"
 
17097
        else
 
17098
         # Determine the default libpath from the value encoded in an empty executable.
 
17099
         cat >conftest.$ac_ext <<_ACEOF
 
17100
/* confdefs.h.  */
 
17101
_ACEOF
 
17102
cat confdefs.h >>conftest.$ac_ext
 
17103
cat >>conftest.$ac_ext <<_ACEOF
 
17104
/* end confdefs.h.  */
 
17105
 
 
17106
int
 
17107
main ()
 
17108
{
 
17109
 
 
17110
  ;
 
17111
  return 0;
 
17112
}
 
17113
_ACEOF
 
17114
rm -f conftest.$ac_objext conftest$ac_exeext
 
17115
if { (ac_try="$ac_link"
 
17116
case "(($ac_try" in
 
17117
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17118
  *) ac_try_echo=$ac_try;;
 
17119
esac
 
17120
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17121
  (eval "$ac_link") 2>conftest.er1
 
17122
  ac_status=$?
 
17123
  grep -v '^ *+' conftest.er1 >conftest.err
 
17124
  rm -f conftest.er1
 
17125
  cat conftest.err >&5
 
17126
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17127
  (exit $ac_status); } && {
 
17128
         test -z "$ac_c_werror_flag" ||
 
17129
         test ! -s conftest.err
 
17130
       } && test -s conftest$ac_exeext &&
 
17131
       $as_test_x conftest$ac_exeext; then
 
17132
 
 
17133
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
17134
}'`
 
17135
# Check for a 64-bit object if we didn't find anything.
 
17136
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
17137
}'`; fi
 
17138
else
 
17139
  echo "$as_me: failed program was:" >&5
 
17140
sed 's/^/| /' conftest.$ac_ext >&5
 
17141
 
 
17142
 
 
17143
fi
 
17144
 
 
17145
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17146
      conftest$ac_exeext conftest.$ac_ext
 
17147
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
17148
 
 
17149
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
17150
          # Warning - without using the other run time loading flags,
 
17151
          # -berok will link without error, but may produce a broken library.
 
17152
          no_undefined_flag_GCJ=' ${wl}-bernotok'
 
17153
          allow_undefined_flag_GCJ=' ${wl}-berok'
 
17154
          # Exported symbols can be pulled into shared objects from archives
 
17155
          whole_archive_flag_spec_GCJ='$convenience'
 
17156
          archive_cmds_need_lc_GCJ=yes
 
17157
          # This is similar to how AIX traditionally builds its shared libraries.
 
17158
          archive_expsym_cmds_GCJ="\$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'
 
17159
        fi
 
17160
      fi
 
17161
      ;;
 
17162
 
 
17163
    amigaos*)
 
17164
      archive_cmds_GCJ='$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)'
 
17165
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17166
      hardcode_minus_L_GCJ=yes
 
17167
      # see comment about different semantics on the GNU ld section
 
17168
      ld_shlibs_GCJ=no
 
17169
      ;;
 
17170
 
 
17171
    bsdi[45]*)
 
17172
      export_dynamic_flag_spec_GCJ=-rdynamic
 
17173
      ;;
 
17174
 
 
17175
    cygwin* | mingw* | pw32*)
 
17176
      # When not using gcc, we currently assume that we are using
 
17177
      # Microsoft Visual C++.
 
17178
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
17179
      # no search path for DLLs.
 
17180
      hardcode_libdir_flag_spec_GCJ=' '
 
17181
      allow_undefined_flag_GCJ=unsupported
 
17182
      # Tell ltmain to make .lib files, not .a files.
 
17183
      libext=lib
 
17184
      # Tell ltmain to make .dll files, not .so files.
 
17185
      shrext_cmds=".dll"
 
17186
      # FIXME: Setting linknames here is a bad hack.
 
17187
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
17188
      # The linker will automatically build a .lib file if we build a DLL.
 
17189
      old_archive_From_new_cmds_GCJ='true'
 
17190
      # FIXME: Should let the user specify the lib program.
 
17191
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
17192
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
 
17193
      enable_shared_with_static_runtimes_GCJ=yes
 
17194
      ;;
 
17195
 
 
17196
    darwin* | rhapsody*)
 
17197
      case $host_os in
 
17198
        rhapsody* | darwin1.[012])
 
17199
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
 
17200
         ;;
 
17201
       *) # Darwin 1.3 on
 
17202
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
17203
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
17204
         else
 
17205
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
17206
             10.[012])
 
17207
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
17208
               ;;
 
17209
             10.*)
 
17210
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
 
17211
               ;;
 
17212
           esac
 
17213
         fi
 
17214
         ;;
 
17215
      esac
 
17216
      archive_cmds_need_lc_GCJ=no
 
17217
      hardcode_direct_GCJ=no
 
17218
      hardcode_automatic_GCJ=yes
 
17219
      hardcode_shlibpath_var_GCJ=unsupported
 
17220
      whole_archive_flag_spec_GCJ=''
 
17221
      link_all_deplibs_GCJ=yes
 
17222
    if test "$GCC" = yes ; then
 
17223
        output_verbose_link_cmd='echo'
 
17224
        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
17225
      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
17226
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
17227
      archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
17228
      module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
17229
    else
 
17230
      case $cc_basename in
 
17231
        xlc*)
 
17232
         output_verbose_link_cmd='echo'
 
17233
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
17234
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
17235
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
17236
         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
17237
          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
17238
          ;;
 
17239
       *)
 
17240
         ld_shlibs_GCJ=no
 
17241
          ;;
 
17242
      esac
 
17243
    fi
 
17244
      ;;
 
17245
 
 
17246
    dgux*)
 
17247
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17248
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17249
      hardcode_shlibpath_var_GCJ=no
 
17250
      ;;
 
17251
 
 
17252
    freebsd1*)
 
17253
      ld_shlibs_GCJ=no
 
17254
      ;;
 
17255
 
 
17256
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
17257
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
17258
    # does not break anything, and helps significantly (at the cost of a little
 
17259
    # extra space).
 
17260
    freebsd2.2*)
 
17261
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
17262
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17263
      hardcode_direct_GCJ=yes
 
17264
      hardcode_shlibpath_var_GCJ=no
 
17265
      ;;
 
17266
 
 
17267
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
17268
    freebsd2*)
 
17269
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
17270
      hardcode_direct_GCJ=yes
 
17271
      hardcode_minus_L_GCJ=yes
 
17272
      hardcode_shlibpath_var_GCJ=no
 
17273
      ;;
 
17274
 
 
17275
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
17276
    freebsd* | dragonfly*)
 
17277
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
17278
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17279
      hardcode_direct_GCJ=yes
 
17280
      hardcode_shlibpath_var_GCJ=no
 
17281
      ;;
 
17282
 
 
17283
    hpux9*)
 
17284
      if test "$GCC" = yes; then
 
17285
        archive_cmds_GCJ='$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'
 
17286
      else
 
17287
        archive_cmds_GCJ='$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'
 
17288
      fi
 
17289
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
17290
      hardcode_libdir_separator_GCJ=:
 
17291
      hardcode_direct_GCJ=yes
 
17292
 
 
17293
      # hardcode_minus_L: Not really in the search PATH,
 
17294
      # but as the default location of the library.
 
17295
      hardcode_minus_L_GCJ=yes
 
17296
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
17297
      ;;
 
17298
 
 
17299
    hpux10*)
 
17300
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
17301
        archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
17302
      else
 
17303
        archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
17304
      fi
 
17305
      if test "$with_gnu_ld" = no; then
 
17306
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
17307
        hardcode_libdir_separator_GCJ=:
 
17308
 
 
17309
        hardcode_direct_GCJ=yes
 
17310
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
17311
 
 
17312
        # hardcode_minus_L: Not really in the search PATH,
 
17313
        # but as the default location of the library.
 
17314
        hardcode_minus_L_GCJ=yes
 
17315
      fi
 
17316
      ;;
 
17317
 
 
17318
    hpux11*)
 
17319
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
17320
        case $host_cpu in
 
17321
        hppa*64*)
 
17322
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17323
          ;;
 
17324
        ia64*)
 
17325
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
17326
          ;;
 
17327
        *)
 
17328
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
17329
          ;;
 
17330
        esac
 
17331
      else
 
17332
        case $host_cpu in
 
17333
        hppa*64*)
 
17334
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17335
          ;;
 
17336
        ia64*)
 
17337
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
17338
          ;;
 
17339
        *)
 
17340
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
17341
          ;;
 
17342
        esac
 
17343
      fi
 
17344
      if test "$with_gnu_ld" = no; then
 
17345
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
17346
        hardcode_libdir_separator_GCJ=:
 
17347
 
 
17348
        case $host_cpu in
 
17349
        hppa*64*|ia64*)
 
17350
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
 
17351
          hardcode_direct_GCJ=no
 
17352
          hardcode_shlibpath_var_GCJ=no
 
17353
          ;;
 
17354
        *)
 
17355
          hardcode_direct_GCJ=yes
 
17356
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
17357
 
 
17358
          # hardcode_minus_L: Not really in the search PATH,
 
17359
          # but as the default location of the library.
 
17360
          hardcode_minus_L_GCJ=yes
 
17361
          ;;
 
17362
        esac
 
17363
      fi
 
17364
      ;;
 
17365
 
 
17366
    irix5* | irix6* | nonstopux*)
 
17367
      if test "$GCC" = yes; then
 
17368
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
17369
      else
 
17370
        archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
17371
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
 
17372
      fi
 
17373
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
17374
      hardcode_libdir_separator_GCJ=:
 
17375
      link_all_deplibs_GCJ=yes
 
17376
      ;;
 
17377
 
 
17378
    netbsd* | netbsdelf*-gnu)
 
17379
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
17380
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
17381
      else
 
17382
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
17383
      fi
 
17384
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17385
      hardcode_direct_GCJ=yes
 
17386
      hardcode_shlibpath_var_GCJ=no
 
17387
      ;;
 
17388
 
 
17389
    newsos6)
 
17390
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17391
      hardcode_direct_GCJ=yes
 
17392
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
17393
      hardcode_libdir_separator_GCJ=:
 
17394
      hardcode_shlibpath_var_GCJ=no
 
17395
      ;;
 
17396
 
 
17397
    openbsd*)
 
17398
      hardcode_direct_GCJ=yes
 
17399
      hardcode_shlibpath_var_GCJ=no
 
17400
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
17401
        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
17402
        archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
17403
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
17404
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
17405
      else
 
17406
       case $host_os in
 
17407
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
17408
           archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
17409
           hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17410
           ;;
 
17411
         *)
 
17412
           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
17413
           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
17414
           ;;
 
17415
       esac
 
17416
      fi
 
17417
      ;;
 
17418
 
 
17419
    os2*)
 
17420
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17421
      hardcode_minus_L_GCJ=yes
 
17422
      allow_undefined_flag_GCJ=unsupported
 
17423
      archive_cmds_GCJ='$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'
 
17424
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
17425
      ;;
 
17426
 
 
17427
    osf3*)
 
17428
      if test "$GCC" = yes; then
 
17429
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
17430
        archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
17431
      else
 
17432
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
17433
        archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
17434
      fi
 
17435
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
17436
      hardcode_libdir_separator_GCJ=:
 
17437
      ;;
 
17438
 
 
17439
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
17440
      if test "$GCC" = yes; then
 
17441
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
17442
        archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
17443
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
17444
      else
 
17445
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
17446
        archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
17447
        archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
17448
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
 
17449
 
 
17450
        # Both c and cxx compiler support -rpath directly
 
17451
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
 
17452
      fi
 
17453
      hardcode_libdir_separator_GCJ=:
 
17454
      ;;
 
17455
 
 
17456
    solaris*)
 
17457
      no_undefined_flag_GCJ=' -z text'
 
17458
      if test "$GCC" = yes; then
 
17459
        wlarc='${wl}'
 
17460
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17461
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
17462
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
17463
      else
 
17464
        wlarc=''
 
17465
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17466
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
17467
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
17468
      fi
 
17469
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17470
      hardcode_shlibpath_var_GCJ=no
 
17471
      case $host_os in
 
17472
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
17473
      *)
 
17474
        # The compiler driver will combine linker options so we
 
17475
        # cannot just pass the convience library names through
 
17476
        # without $wl, iff we do not link with $LD.
 
17477
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
17478
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
17479
        case $wlarc in
 
17480
        '')
 
17481
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
 
17482
        *)
 
17483
          whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 
17484
        esac ;;
 
17485
      esac
 
17486
      link_all_deplibs_GCJ=yes
 
17487
      ;;
 
17488
 
 
17489
    sunos4*)
 
17490
      if test "x$host_vendor" = xsequent; then
 
17491
        # Use $CC to link under sequent, because it throws in some extra .o
 
17492
        # files that make .init and .fini sections work.
 
17493
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
17494
      else
 
17495
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
17496
      fi
 
17497
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17498
      hardcode_direct_GCJ=yes
 
17499
      hardcode_minus_L_GCJ=yes
 
17500
      hardcode_shlibpath_var_GCJ=no
 
17501
      ;;
 
17502
 
 
17503
    sysv4)
 
17504
      case $host_vendor in
 
17505
        sni)
 
17506
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17507
          hardcode_direct_GCJ=yes # is this really true???
 
17508
        ;;
 
17509
        siemens)
 
17510
          ## LD is ld it makes a PLAMLIB
 
17511
          ## CC just makes a GrossModule.
 
17512
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
17513
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
 
17514
          hardcode_direct_GCJ=no
 
17515
        ;;
 
17516
        motorola)
 
17517
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17518
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
 
17519
        ;;
 
17520
      esac
 
17521
      runpath_var='LD_RUN_PATH'
 
17522
      hardcode_shlibpath_var_GCJ=no
 
17523
      ;;
 
17524
 
 
17525
    sysv4.3*)
 
17526
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17527
      hardcode_shlibpath_var_GCJ=no
 
17528
      export_dynamic_flag_spec_GCJ='-Bexport'
 
17529
      ;;
 
17530
 
 
17531
    sysv4*MP*)
 
17532
      if test -d /usr/nec; then
 
17533
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17534
        hardcode_shlibpath_var_GCJ=no
 
17535
        runpath_var=LD_RUN_PATH
 
17536
        hardcode_runpath_var=yes
 
17537
        ld_shlibs_GCJ=yes
 
17538
      fi
 
17539
      ;;
 
17540
 
 
17541
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
17542
      no_undefined_flag_GCJ='${wl}-z,text'
 
17543
      archive_cmds_need_lc_GCJ=no
 
17544
      hardcode_shlibpath_var_GCJ=no
 
17545
      runpath_var='LD_RUN_PATH'
 
17546
 
 
17547
      if test "$GCC" = yes; then
 
17548
        archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17549
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17550
      else
 
17551
        archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17552
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17553
      fi
 
17554
      ;;
 
17555
 
 
17556
    sysv5* | sco3.2v5* | sco5v6*)
 
17557
      # Note: We can NOT use -z defs as we might desire, because we do not
 
17558
      # link with -lc, and that would cause any symbols used from libc to
 
17559
      # always be unresolved, which means just about no library would
 
17560
      # ever link correctly.  If we're not using GNU ld we use -z text
 
17561
      # though, which does catch some bad symbols but isn't as heavy-handed
 
17562
      # as -z defs.
 
17563
      no_undefined_flag_GCJ='${wl}-z,text'
 
17564
      allow_undefined_flag_GCJ='${wl}-z,nodefs'
 
17565
      archive_cmds_need_lc_GCJ=no
 
17566
      hardcode_shlibpath_var_GCJ=no
 
17567
      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
17568
      hardcode_libdir_separator_GCJ=':'
 
17569
      link_all_deplibs_GCJ=yes
 
17570
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
 
17571
      runpath_var='LD_RUN_PATH'
 
17572
 
 
17573
      if test "$GCC" = yes; then
 
17574
        archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17575
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17576
      else
 
17577
        archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17578
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17579
      fi
 
17580
      ;;
 
17581
 
 
17582
    uts4*)
 
17583
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17584
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17585
      hardcode_shlibpath_var_GCJ=no
 
17586
      ;;
 
17587
 
 
17588
    *)
 
17589
      ld_shlibs_GCJ=no
 
17590
      ;;
 
17591
    esac
 
17592
  fi
 
17593
 
 
17594
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
 
17595
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
 
17596
test "$ld_shlibs_GCJ" = no && can_build_shared=no
 
17597
 
 
17598
#
 
17599
# Do we need to explicitly link libc?
 
17600
#
 
17601
case "x$archive_cmds_need_lc_GCJ" in
 
17602
x|xyes)
 
17603
  # Assume -lc should be added
 
17604
  archive_cmds_need_lc_GCJ=yes
 
17605
 
 
17606
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
17607
    case $archive_cmds_GCJ in
 
17608
    *'~'*)
 
17609
      # FIXME: we may have to deal with multi-command sequences.
 
17610
      ;;
 
17611
    '$CC '*)
 
17612
      # Test whether the compiler implicitly links with -lc since on some
 
17613
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
17614
      # to ld, don't add -lc before -lgcc.
 
17615
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
17616
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
 
17617
      $rm conftest*
 
17618
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17619
 
 
17620
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
17621
  (eval $ac_compile) 2>&5
 
17622
  ac_status=$?
 
17623
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17624
  (exit $ac_status); } 2>conftest.err; then
 
17625
        soname=conftest
 
17626
        lib=conftest
 
17627
        libobjs=conftest.$ac_objext
 
17628
        deplibs=
 
17629
        wl=$lt_prog_compiler_wl_GCJ
 
17630
        pic_flag=$lt_prog_compiler_pic_GCJ
 
17631
        compiler_flags=-v
 
17632
        linker_flags=-v
 
17633
        verstring=
 
17634
        output_objdir=.
 
17635
        libname=conftest
 
17636
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
 
17637
        allow_undefined_flag_GCJ=
 
17638
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
17639
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
17640
  ac_status=$?
 
17641
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17642
  (exit $ac_status); }
 
17643
        then
 
17644
          archive_cmds_need_lc_GCJ=no
 
17645
        else
 
17646
          archive_cmds_need_lc_GCJ=yes
 
17647
        fi
 
17648
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
 
17649
      else
 
17650
        cat conftest.err 1>&5
 
17651
      fi
 
17652
      $rm conftest*
 
17653
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
 
17654
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
 
17655
      ;;
 
17656
    esac
 
17657
  fi
 
17658
  ;;
 
17659
esac
 
17660
 
 
17661
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
17662
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
 
17663
library_names_spec=
 
17664
libname_spec='lib$name'
 
17665
soname_spec=
 
17666
shrext_cmds=".so"
 
17667
postinstall_cmds=
 
17668
postuninstall_cmds=
 
17669
finish_cmds=
 
17670
finish_eval=
 
17671
shlibpath_var=
 
17672
shlibpath_overrides_runpath=unknown
 
17673
version_type=none
 
17674
dynamic_linker="$host_os ld.so"
 
17675
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
17676
if test "$GCC" = yes; then
 
17677
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
17678
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
17679
    # if the path contains ";" then we assume it to be the separator
 
17680
    # otherwise default to the standard path separator (i.e. ":") - it is
 
17681
    # assumed that no part of a normal pathname contains ";" but that should
 
17682
    # okay in the real world where ";" in dirpaths is itself problematic.
 
17683
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
17684
  else
 
17685
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
17686
  fi
 
17687
else
 
17688
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
17689
fi
 
17690
need_lib_prefix=unknown
 
17691
hardcode_into_libs=no
 
17692
 
 
17693
# when you set need_version to no, make sure it does not cause -set_version
 
17694
# flags to be left without arguments
 
17695
need_version=unknown
 
17696
 
 
17697
case $host_os in
 
17698
aix3*)
 
17699
  version_type=linux
 
17700
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
17701
  shlibpath_var=LIBPATH
 
17702
 
 
17703
  # AIX 3 has no versioning support, so we append a major version to the name.
 
17704
  soname_spec='${libname}${release}${shared_ext}$major'
 
17705
  ;;
 
17706
 
 
17707
aix4* | aix5*)
 
17708
  version_type=linux
 
17709
  need_lib_prefix=no
 
17710
  need_version=no
 
17711
  hardcode_into_libs=yes
 
17712
  if test "$host_cpu" = ia64; then
 
17713
    # AIX 5 supports IA64
 
17714
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
17715
    shlibpath_var=LD_LIBRARY_PATH
 
17716
  else
 
17717
    # With GCC up to 2.95.x, collect2 would create an import file
 
17718
    # for dependence libraries.  The import file would start with
 
17719
    # the line `#! .'.  This would cause the generated library to
 
17720
    # depend on `.', always an invalid library.  This was fixed in
 
17721
    # development snapshots of GCC prior to 3.0.
 
17722
    case $host_os in
 
17723
      aix4 | aix4.[01] | aix4.[01].*)
 
17724
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
17725
           echo ' yes '
 
17726
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
17727
        :
 
17728
      else
 
17729
        can_build_shared=no
 
17730
      fi
 
17731
      ;;
 
17732
    esac
 
17733
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
17734
    # soname into executable. Probably we can add versioning support to
 
17735
    # collect2, so additional links can be useful in future.
 
17736
    if test "$aix_use_runtimelinking" = yes; then
 
17737
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
17738
      # instead of lib<name>.a to let people know that these are not
 
17739
      # typical AIX shared libraries.
 
17740
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17741
    else
 
17742
      # We preserve .a as extension for shared libraries through AIX4.2
 
17743
      # and later when we are not doing run time linking.
 
17744
      library_names_spec='${libname}${release}.a $libname.a'
 
17745
      soname_spec='${libname}${release}${shared_ext}$major'
 
17746
    fi
 
17747
    shlibpath_var=LIBPATH
 
17748
  fi
 
17749
  ;;
 
17750
 
 
17751
amigaos*)
 
17752
  library_names_spec='$libname.ixlibrary $libname.a'
 
17753
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
17754
  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'
 
17755
  ;;
 
17756
 
 
17757
beos*)
 
17758
  library_names_spec='${libname}${shared_ext}'
 
17759
  dynamic_linker="$host_os ld.so"
 
17760
  shlibpath_var=LIBRARY_PATH
 
17761
  ;;
 
17762
 
 
17763
bsdi[45]*)
 
17764
  version_type=linux
 
17765
  need_version=no
 
17766
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17767
  soname_spec='${libname}${release}${shared_ext}$major'
 
17768
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
17769
  shlibpath_var=LD_LIBRARY_PATH
 
17770
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
17771
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
17772
  # the default ld.so.conf also contains /usr/contrib/lib and
 
17773
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
17774
  # libtool to hard-code these into programs
 
17775
  ;;
 
17776
 
 
17777
cygwin* | mingw* | pw32*)
 
17778
  version_type=windows
 
17779
  shrext_cmds=".dll"
 
17780
  need_version=no
 
17781
  need_lib_prefix=no
 
17782
 
 
17783
  case $GCC,$host_os in
 
17784
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
17785
    library_names_spec='$libname.dll.a'
 
17786
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
17787
    postinstall_cmds='base_file=`basename \${file}`~
 
17788
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
17789
      dldir=$destdir/`dirname \$dlpath`~
 
17790
      test -d \$dldir || mkdir -p \$dldir~
 
17791
      $install_prog $dir/$dlname \$dldir/$dlname~
 
17792
      chmod a+x \$dldir/$dlname'
 
17793
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
17794
      dlpath=$dir/\$dldll~
 
17795
       $rm \$dlpath'
 
17796
    shlibpath_overrides_runpath=yes
 
17797
 
 
17798
    case $host_os in
 
17799
    cygwin*)
 
17800
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
17801
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
17802
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
17803
      ;;
 
17804
    mingw*)
 
17805
      # MinGW DLLs use traditional 'lib' prefix
 
17806
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
17807
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
17808
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
17809
        # It is most probably a Windows format PATH printed by
 
17810
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
17811
        # path with ; separators, and with drive letters. We can handle the
 
17812
        # drive letters (cygwin fileutils understands them), so leave them,
 
17813
        # especially as we might pass files found there to a mingw objdump,
 
17814
        # which wouldn't understand a cygwinified path. Ahh.
 
17815
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
17816
      else
 
17817
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
17818
      fi
 
17819
      ;;
 
17820
    pw32*)
 
17821
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
17822
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
17823
      ;;
 
17824
    esac
 
17825
    ;;
 
17826
 
 
17827
  *)
 
17828
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
17829
    ;;
 
17830
  esac
 
17831
  dynamic_linker='Win32 ld.exe'
 
17832
  # FIXME: first we should search . and the directory the executable is in
 
17833
  shlibpath_var=PATH
 
17834
  ;;
 
17835
 
 
17836
darwin* | rhapsody*)
 
17837
  dynamic_linker="$host_os dyld"
 
17838
  version_type=darwin
 
17839
  need_lib_prefix=no
 
17840
  need_version=no
 
17841
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
17842
  soname_spec='${libname}${release}${major}$shared_ext'
 
17843
  shlibpath_overrides_runpath=yes
 
17844
  shlibpath_var=DYLD_LIBRARY_PATH
 
17845
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
17846
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
17847
  if test "$GCC" = yes; then
 
17848
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
 
17849
  else
 
17850
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
17851
  fi
 
17852
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
17853
  ;;
 
17854
 
 
17855
dgux*)
 
17856
  version_type=linux
 
17857
  need_lib_prefix=no
 
17858
  need_version=no
 
17859
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
17860
  soname_spec='${libname}${release}${shared_ext}$major'
 
17861
  shlibpath_var=LD_LIBRARY_PATH
 
17862
  ;;
 
17863
 
 
17864
freebsd1*)
 
17865
  dynamic_linker=no
 
17866
  ;;
 
17867
 
 
17868
freebsd* | dragonfly*)
 
17869
  # DragonFly does not have aout.  When/if they implement a new
 
17870
  # versioning mechanism, adjust this.
 
17871
  if test -x /usr/bin/objformat; then
 
17872
    objformat=`/usr/bin/objformat`
 
17873
  else
 
17874
    case $host_os in
 
17875
    freebsd[123]*) objformat=aout ;;
 
17876
    *) objformat=elf ;;
 
17877
    esac
 
17878
  fi
 
17879
  version_type=freebsd-$objformat
 
17880
  case $version_type in
 
17881
    freebsd-elf*)
 
17882
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
17883
      need_version=no
 
17884
      need_lib_prefix=no
 
17885
      ;;
 
17886
    freebsd-*)
 
17887
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
17888
      need_version=yes
 
17889
      ;;
 
17890
  esac
 
17891
  shlibpath_var=LD_LIBRARY_PATH
 
17892
  case $host_os in
 
17893
  freebsd2*)
 
17894
    shlibpath_overrides_runpath=yes
 
17895
    ;;
 
17896
  freebsd3.[01]* | freebsdelf3.[01]*)
 
17897
    shlibpath_overrides_runpath=yes
 
17898
    hardcode_into_libs=yes
 
17899
    ;;
 
17900
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
17901
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
17902
    shlibpath_overrides_runpath=no
 
17903
    hardcode_into_libs=yes
 
17904
    ;;
 
17905
  freebsd*) # from 4.6 on
 
17906
    shlibpath_overrides_runpath=yes
 
17907
    hardcode_into_libs=yes
 
17908
    ;;
 
17909
  esac
 
17910
  ;;
 
17911
 
 
17912
gnu*)
 
17913
  version_type=linux
 
17914
  need_lib_prefix=no
 
17915
  need_version=no
 
17916
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
17917
  soname_spec='${libname}${release}${shared_ext}$major'
 
17918
  shlibpath_var=LD_LIBRARY_PATH
 
17919
  hardcode_into_libs=yes
 
17920
  ;;
 
17921
 
 
17922
hpux9* | hpux10* | hpux11*)
 
17923
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
17924
  # link against other versions.
 
17925
  version_type=sunos
 
17926
  need_lib_prefix=no
 
17927
  need_version=no
 
17928
  case $host_cpu in
 
17929
  ia64*)
 
17930
    shrext_cmds='.so'
 
17931
    hardcode_into_libs=yes
 
17932
    dynamic_linker="$host_os dld.so"
 
17933
    shlibpath_var=LD_LIBRARY_PATH
 
17934
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
17935
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17936
    soname_spec='${libname}${release}${shared_ext}$major'
 
17937
    if test "X$HPUX_IA64_MODE" = X32; then
 
17938
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
17939
    else
 
17940
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
17941
    fi
 
17942
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
17943
    ;;
 
17944
   hppa*64*)
 
17945
     shrext_cmds='.sl'
 
17946
     hardcode_into_libs=yes
 
17947
     dynamic_linker="$host_os dld.sl"
 
17948
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
17949
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
17950
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17951
     soname_spec='${libname}${release}${shared_ext}$major'
 
17952
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
17953
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
17954
     ;;
 
17955
   *)
 
17956
    shrext_cmds='.sl'
 
17957
    dynamic_linker="$host_os dld.sl"
 
17958
    shlibpath_var=SHLIB_PATH
 
17959
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
17960
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17961
    soname_spec='${libname}${release}${shared_ext}$major'
 
17962
    ;;
 
17963
  esac
 
17964
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
17965
  postinstall_cmds='chmod 555 $lib'
 
17966
  ;;
 
17967
 
 
17968
interix3*)
 
17969
  version_type=linux
 
17970
  need_lib_prefix=no
 
17971
  need_version=no
 
17972
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17973
  soname_spec='${libname}${release}${shared_ext}$major'
 
17974
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
17975
  shlibpath_var=LD_LIBRARY_PATH
 
17976
  shlibpath_overrides_runpath=no
 
17977
  hardcode_into_libs=yes
 
17978
  ;;
 
17979
 
 
17980
irix5* | irix6* | nonstopux*)
 
17981
  case $host_os in
 
17982
    nonstopux*) version_type=nonstopux ;;
 
17983
    *)
 
17984
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
17985
                version_type=linux
 
17986
        else
 
17987
                version_type=irix
 
17988
        fi ;;
 
17989
  esac
 
17990
  need_lib_prefix=no
 
17991
  need_version=no
 
17992
  soname_spec='${libname}${release}${shared_ext}$major'
 
17993
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
17994
  case $host_os in
 
17995
  irix5* | nonstopux*)
 
17996
    libsuff= shlibsuff=
 
17997
    ;;
 
17998
  *)
 
17999
    case $LD in # libtool.m4 will add one of these switches to LD
 
18000
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
18001
      libsuff= shlibsuff= libmagic=32-bit;;
 
18002
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
18003
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
18004
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
18005
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
18006
    *) libsuff= shlibsuff= libmagic=never-match;;
 
18007
    esac
 
18008
    ;;
 
18009
  esac
 
18010
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
18011
  shlibpath_overrides_runpath=no
 
18012
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
18013
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
18014
  hardcode_into_libs=yes
 
18015
  ;;
 
18016
 
 
18017
# No shared lib support for Linux oldld, aout, or coff.
 
18018
linux*oldld* | linux*aout* | linux*coff*)
 
18019
  dynamic_linker=no
 
18020
  ;;
 
18021
 
 
18022
# This must be Linux ELF.
 
18023
linux* | k*bsd*-gnu)
 
18024
  version_type=linux
 
18025
  need_lib_prefix=no
 
18026
  need_version=no
 
18027
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18028
  soname_spec='${libname}${release}${shared_ext}$major'
 
18029
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
18030
  shlibpath_var=LD_LIBRARY_PATH
 
18031
  shlibpath_overrides_runpath=no
 
18032
  # This implies no fast_install, which is unacceptable.
 
18033
  # Some rework will be needed to allow for fast_install
 
18034
  # before this can be enabled.
 
18035
  hardcode_into_libs=yes
 
18036
 
 
18037
  # Append ld.so.conf contents to the search path
 
18038
  if test -f /etc/ld.so.conf; then
 
18039
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
18040
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
18041
  fi
 
18042
 
 
18043
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
18044
  # powerpc, because MkLinux only supported shared libraries with the
 
18045
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
18046
  # most powerpc-linux boxes support dynamic linking these days and
 
18047
  # people can always --disable-shared, the test was removed, and we
 
18048
  # assume the GNU/Linux dynamic linker is in use.
 
18049
  dynamic_linker='GNU/Linux ld.so'
 
18050
  ;;
 
18051
 
 
18052
netbsdelf*-gnu)
 
18053
  version_type=linux
 
18054
  need_lib_prefix=no
 
18055
  need_version=no
 
18056
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
18057
  soname_spec='${libname}${release}${shared_ext}$major'
 
18058
  shlibpath_var=LD_LIBRARY_PATH
 
18059
  shlibpath_overrides_runpath=no
 
18060
  hardcode_into_libs=yes
 
18061
  dynamic_linker='NetBSD ld.elf_so'
 
18062
  ;;
 
18063
 
 
18064
netbsd*)
 
18065
  version_type=sunos
 
18066
  need_lib_prefix=no
 
18067
  need_version=no
 
18068
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
18069
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
18070
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
18071
    dynamic_linker='NetBSD (a.out) ld.so'
 
18072
  else
 
18073
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
18074
    soname_spec='${libname}${release}${shared_ext}$major'
 
18075
    dynamic_linker='NetBSD ld.elf_so'
 
18076
  fi
 
18077
  shlibpath_var=LD_LIBRARY_PATH
 
18078
  shlibpath_overrides_runpath=yes
 
18079
  hardcode_into_libs=yes
 
18080
  ;;
 
18081
 
 
18082
newsos6)
 
18083
  version_type=linux
 
18084
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18085
  shlibpath_var=LD_LIBRARY_PATH
 
18086
  shlibpath_overrides_runpath=yes
 
18087
  ;;
 
18088
 
 
18089
nto-qnx*)
 
18090
  version_type=linux
 
18091
  need_lib_prefix=no
 
18092
  need_version=no
 
18093
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18094
  soname_spec='${libname}${release}${shared_ext}$major'
 
18095
  shlibpath_var=LD_LIBRARY_PATH
 
18096
  shlibpath_overrides_runpath=yes
 
18097
  ;;
 
18098
 
 
18099
openbsd*)
 
18100
  version_type=sunos
 
18101
  sys_lib_dlsearch_path_spec="/usr/lib"
 
18102
  need_lib_prefix=no
 
18103
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
18104
  case $host_os in
 
18105
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
18106
    *)                         need_version=no  ;;
 
18107
  esac
 
18108
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
18109
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
18110
  shlibpath_var=LD_LIBRARY_PATH
 
18111
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
18112
    case $host_os in
 
18113
      openbsd2.[89] | openbsd2.[89].*)
 
18114
        shlibpath_overrides_runpath=no
 
18115
        ;;
 
18116
      *)
 
18117
        shlibpath_overrides_runpath=yes
 
18118
        ;;
 
18119
      esac
 
18120
  else
 
18121
    shlibpath_overrides_runpath=yes
 
18122
  fi
 
18123
  ;;
 
18124
 
 
18125
os2*)
 
18126
  libname_spec='$name'
 
18127
  shrext_cmds=".dll"
 
18128
  need_lib_prefix=no
 
18129
  library_names_spec='$libname${shared_ext} $libname.a'
 
18130
  dynamic_linker='OS/2 ld.exe'
 
18131
  shlibpath_var=LIBPATH
 
18132
  ;;
 
18133
 
 
18134
osf3* | osf4* | osf5*)
 
18135
  version_type=osf
 
18136
  need_lib_prefix=no
 
18137
  need_version=no
 
18138
  soname_spec='${libname}${release}${shared_ext}$major'
 
18139
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18140
  shlibpath_var=LD_LIBRARY_PATH
 
18141
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
18142
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
18143
  ;;
 
18144
 
 
18145
solaris*)
 
18146
  version_type=linux
 
18147
  need_lib_prefix=no
 
18148
  need_version=no
 
18149
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18150
  soname_spec='${libname}${release}${shared_ext}$major'
 
18151
  shlibpath_var=LD_LIBRARY_PATH
 
18152
  shlibpath_overrides_runpath=yes
 
18153
  hardcode_into_libs=yes
 
18154
  # ldd complains unless libraries are executable
 
18155
  postinstall_cmds='chmod +x $lib'
 
18156
  ;;
 
18157
 
 
18158
sunos4*)
 
18159
  version_type=sunos
 
18160
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
18161
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
18162
  shlibpath_var=LD_LIBRARY_PATH
 
18163
  shlibpath_overrides_runpath=yes
 
18164
  if test "$with_gnu_ld" = yes; then
 
18165
    need_lib_prefix=no
 
18166
  fi
 
18167
  need_version=yes
 
18168
  ;;
 
18169
 
 
18170
sysv4 | sysv4.3*)
 
18171
  version_type=linux
 
18172
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18173
  soname_spec='${libname}${release}${shared_ext}$major'
 
18174
  shlibpath_var=LD_LIBRARY_PATH
 
18175
  case $host_vendor in
 
18176
    sni)
 
18177
      shlibpath_overrides_runpath=no
 
18178
      need_lib_prefix=no
 
18179
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
18180
      runpath_var=LD_RUN_PATH
 
18181
      ;;
 
18182
    siemens)
 
18183
      need_lib_prefix=no
 
18184
      ;;
 
18185
    motorola)
 
18186
      need_lib_prefix=no
 
18187
      need_version=no
 
18188
      shlibpath_overrides_runpath=no
 
18189
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
18190
      ;;
 
18191
  esac
 
18192
  ;;
 
18193
 
 
18194
sysv4*MP*)
 
18195
  if test -d /usr/nec ;then
 
18196
    version_type=linux
 
18197
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
18198
    soname_spec='$libname${shared_ext}.$major'
 
18199
    shlibpath_var=LD_LIBRARY_PATH
 
18200
  fi
 
18201
  ;;
 
18202
 
 
18203
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
18204
  version_type=freebsd-elf
 
18205
  need_lib_prefix=no
 
18206
  need_version=no
 
18207
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
18208
  soname_spec='${libname}${release}${shared_ext}$major'
 
18209
  shlibpath_var=LD_LIBRARY_PATH
 
18210
  hardcode_into_libs=yes
 
18211
  if test "$with_gnu_ld" = yes; then
 
18212
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
18213
    shlibpath_overrides_runpath=no
 
18214
  else
 
18215
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
18216
    shlibpath_overrides_runpath=yes
 
18217
    case $host_os in
 
18218
      sco3.2v5*)
 
18219
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
18220
        ;;
 
18221
    esac
 
18222
  fi
 
18223
  sys_lib_dlsearch_path_spec='/usr/lib'
 
18224
  ;;
 
18225
 
 
18226
uts4*)
 
18227
  version_type=linux
 
18228
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18229
  soname_spec='${libname}${release}${shared_ext}$major'
 
18230
  shlibpath_var=LD_LIBRARY_PATH
 
18231
  ;;
 
18232
 
 
18233
*)
 
18234
  dynamic_linker=no
 
18235
  ;;
 
18236
esac
 
18237
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
18238
echo "${ECHO_T}$dynamic_linker" >&6; }
 
18239
test "$dynamic_linker" = no && can_build_shared=no
 
18240
 
 
18241
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
18242
if test "$GCC" = yes; then
 
18243
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
18244
fi
 
18245
 
 
18246
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
18247
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
 
18248
hardcode_action_GCJ=
 
18249
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
 
18250
   test -n "$runpath_var_GCJ" || \
 
18251
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
 
18252
 
 
18253
  # We can hardcode non-existant directories.
 
18254
  if test "$hardcode_direct_GCJ" != no &&
 
18255
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
18256
     # have to relink, otherwise we might link with an installed library
 
18257
     # when we should be linking with a yet-to-be-installed one
 
18258
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
 
18259
     test "$hardcode_minus_L_GCJ" != no; then
 
18260
    # Linking always hardcodes the temporary library directory.
 
18261
    hardcode_action_GCJ=relink
 
18262
  else
 
18263
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
18264
    hardcode_action_GCJ=immediate
 
18265
  fi
 
18266
else
 
18267
  # We cannot hardcode anything, or else we can only hardcode existing
 
18268
  # directories.
 
18269
  hardcode_action_GCJ=unsupported
 
18270
fi
 
18271
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
 
18272
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
 
18273
 
 
18274
if test "$hardcode_action_GCJ" = relink; then
 
18275
  # Fast installation is not supported
 
18276
  enable_fast_install=no
 
18277
elif test "$shlibpath_overrides_runpath" = yes ||
 
18278
     test "$enable_shared" = no; then
 
18279
  # Fast installation is not necessary
 
18280
  enable_fast_install=needless
 
18281
fi
 
18282
 
 
18283
 
 
18284
# The else clause should only fire when bootstrapping the
 
18285
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
18286
# with your package, and you will get complaints that there are
 
18287
# no rules to generate ltmain.sh.
 
18288
if test -f "$ltmain"; then
 
18289
  # See if we are running on zsh, and set the options which allow our commands through
 
18290
  # without removal of \ escapes.
 
18291
  if test -n "${ZSH_VERSION+set}" ; then
 
18292
    setopt NO_GLOB_SUBST
 
18293
  fi
 
18294
  # Now quote all the things that may contain metacharacters while being
 
18295
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
18296
  # variables and quote the copies for generation of the libtool script.
 
18297
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
18298
    SED SHELL STRIP \
 
18299
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
18300
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
18301
    deplibs_check_method reload_flag reload_cmds need_locks \
 
18302
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
18303
    lt_cv_sys_global_symbol_to_c_name_address \
 
18304
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
18305
    old_postinstall_cmds old_postuninstall_cmds \
 
18306
    compiler_GCJ \
 
18307
    CC_GCJ \
 
18308
    LD_GCJ \
 
18309
    lt_prog_compiler_wl_GCJ \
 
18310
    lt_prog_compiler_pic_GCJ \
 
18311
    lt_prog_compiler_static_GCJ \
 
18312
    lt_prog_compiler_no_builtin_flag_GCJ \
 
18313
    export_dynamic_flag_spec_GCJ \
 
18314
    thread_safe_flag_spec_GCJ \
 
18315
    whole_archive_flag_spec_GCJ \
 
18316
    enable_shared_with_static_runtimes_GCJ \
 
18317
    old_archive_cmds_GCJ \
 
18318
    old_archive_from_new_cmds_GCJ \
 
18319
    predep_objects_GCJ \
 
18320
    postdep_objects_GCJ \
 
18321
    predeps_GCJ \
 
18322
    postdeps_GCJ \
 
18323
    compiler_lib_search_path_GCJ \
 
18324
    archive_cmds_GCJ \
 
18325
    archive_expsym_cmds_GCJ \
 
18326
    postinstall_cmds_GCJ \
 
18327
    postuninstall_cmds_GCJ \
 
18328
    old_archive_from_expsyms_cmds_GCJ \
 
18329
    allow_undefined_flag_GCJ \
 
18330
    no_undefined_flag_GCJ \
 
18331
    export_symbols_cmds_GCJ \
 
18332
    hardcode_libdir_flag_spec_GCJ \
 
18333
    hardcode_libdir_flag_spec_ld_GCJ \
 
18334
    hardcode_libdir_separator_GCJ \
 
18335
    hardcode_automatic_GCJ \
 
18336
    module_cmds_GCJ \
 
18337
    module_expsym_cmds_GCJ \
 
18338
    lt_cv_prog_compiler_c_o_GCJ \
 
18339
    exclude_expsyms_GCJ \
 
18340
    include_expsyms_GCJ; do
 
18341
 
 
18342
    case $var in
 
18343
    old_archive_cmds_GCJ | \
 
18344
    old_archive_from_new_cmds_GCJ | \
 
18345
    archive_cmds_GCJ | \
 
18346
    archive_expsym_cmds_GCJ | \
 
18347
    module_cmds_GCJ | \
 
18348
    module_expsym_cmds_GCJ | \
 
18349
    old_archive_from_expsyms_cmds_GCJ | \
 
18350
    export_symbols_cmds_GCJ | \
 
18351
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
18352
    postinstall_cmds | postuninstall_cmds | \
 
18353
    old_postinstall_cmds | old_postuninstall_cmds | \
 
18354
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
18355
      # Double-quote double-evaled strings.
 
18356
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
18357
      ;;
 
18358
    *)
 
18359
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
18360
      ;;
 
18361
    esac
 
18362
  done
 
18363
 
 
18364
  case $lt_echo in
 
18365
  *'\$0 --fallback-echo"')
 
18366
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
18367
    ;;
 
18368
  esac
 
18369
 
 
18370
cfgfile="$ofile"
 
18371
 
 
18372
  cat <<__EOF__ >> "$cfgfile"
 
18373
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
18374
 
 
18375
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
18376
 
 
18377
# Shell to use when invoking shell scripts.
 
18378
SHELL=$lt_SHELL
 
18379
 
 
18380
# Whether or not to build shared libraries.
 
18381
build_libtool_libs=$enable_shared
 
18382
 
 
18383
# Whether or not to build static libraries.
 
18384
build_old_libs=$enable_static
 
18385
 
 
18386
# Whether or not to add -lc for building shared libraries.
 
18387
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
 
18388
 
 
18389
# Whether or not to disallow shared libs when runtime libs are static
 
18390
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
 
18391
 
 
18392
# Whether or not to optimize for fast installation.
 
18393
fast_install=$enable_fast_install
 
18394
 
 
18395
# The host system.
 
18396
host_alias=$host_alias
 
18397
host=$host
 
18398
host_os=$host_os
 
18399
 
 
18400
# The build system.
 
18401
build_alias=$build_alias
 
18402
build=$build
 
18403
build_os=$build_os
 
18404
 
 
18405
# An echo program that does not interpret backslashes.
 
18406
echo=$lt_echo
 
18407
 
 
18408
# The archiver.
 
18409
AR=$lt_AR
 
18410
AR_FLAGS=$lt_AR_FLAGS
 
18411
 
 
18412
# A C compiler.
 
18413
LTCC=$lt_LTCC
 
18414
 
 
18415
# LTCC compiler flags.
 
18416
LTCFLAGS=$lt_LTCFLAGS
 
18417
 
 
18418
# A language-specific compiler.
 
18419
CC=$lt_compiler_GCJ
 
18420
 
 
18421
# Is the compiler the GNU C compiler?
 
18422
with_gcc=$GCC_GCJ
 
18423
 
 
18424
# An ERE matcher.
 
18425
EGREP=$lt_EGREP
 
18426
 
 
18427
# The linker used to build libraries.
 
18428
LD=$lt_LD_GCJ
 
18429
 
 
18430
# Whether we need hard or soft links.
 
18431
LN_S=$lt_LN_S
 
18432
 
 
18433
# A BSD-compatible nm program.
 
18434
NM=$lt_NM
 
18435
 
 
18436
# A symbol stripping program
 
18437
STRIP=$lt_STRIP
 
18438
 
 
18439
# Used to examine libraries when file_magic_cmd begins "file"
 
18440
MAGIC_CMD=$MAGIC_CMD
 
18441
 
 
18442
# Used on cygwin: DLL creation program.
 
18443
DLLTOOL="$DLLTOOL"
 
18444
 
 
18445
# Used on cygwin: object dumper.
 
18446
OBJDUMP="$OBJDUMP"
 
18447
 
 
18448
# Used on cygwin: assembler.
 
18449
AS="$AS"
 
18450
 
 
18451
# The name of the directory that contains temporary libtool files.
 
18452
objdir=$objdir
 
18453
 
 
18454
# How to create reloadable object files.
 
18455
reload_flag=$lt_reload_flag
 
18456
reload_cmds=$lt_reload_cmds
 
18457
 
 
18458
# How to pass a linker flag through the compiler.
 
18459
wl=$lt_lt_prog_compiler_wl_GCJ
 
18460
 
 
18461
# Object file suffix (normally "o").
 
18462
objext="$ac_objext"
 
18463
 
 
18464
# Old archive suffix (normally "a").
 
18465
libext="$libext"
 
18466
 
 
18467
# Shared library suffix (normally ".so").
 
18468
shrext_cmds='$shrext_cmds'
 
18469
 
 
18470
# Executable file suffix (normally "").
 
18471
exeext="$exeext"
 
18472
 
 
18473
# Additional compiler flags for building library objects.
 
18474
pic_flag=$lt_lt_prog_compiler_pic_GCJ
 
18475
pic_mode=$pic_mode
 
18476
 
 
18477
# What is the maximum length of a command?
 
18478
max_cmd_len=$lt_cv_sys_max_cmd_len
 
18479
 
 
18480
# Does compiler simultaneously support -c and -o options?
 
18481
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
 
18482
 
 
18483
# Must we lock files when doing compilation?
 
18484
need_locks=$lt_need_locks
 
18485
 
 
18486
# Do we need the lib prefix for modules?
 
18487
need_lib_prefix=$need_lib_prefix
 
18488
 
 
18489
# Do we need a version for libraries?
 
18490
need_version=$need_version
 
18491
 
 
18492
# Whether dlopen is supported.
 
18493
dlopen_support=$enable_dlopen
 
18494
 
 
18495
# Whether dlopen of programs is supported.
 
18496
dlopen_self=$enable_dlopen_self
 
18497
 
 
18498
# Whether dlopen of statically linked programs is supported.
 
18499
dlopen_self_static=$enable_dlopen_self_static
 
18500
 
 
18501
# Compiler flag to prevent dynamic linking.
 
18502
link_static_flag=$lt_lt_prog_compiler_static_GCJ
 
18503
 
 
18504
# Compiler flag to turn off builtin functions.
 
18505
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
 
18506
 
 
18507
# Compiler flag to allow reflexive dlopens.
 
18508
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
 
18509
 
 
18510
# Compiler flag to generate shared objects directly from archives.
 
18511
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
 
18512
 
 
18513
# Compiler flag to generate thread-safe objects.
 
18514
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
 
18515
 
 
18516
# Library versioning type.
 
18517
version_type=$version_type
 
18518
 
 
18519
# Format of library name prefix.
 
18520
libname_spec=$lt_libname_spec
 
18521
 
 
18522
# List of archive names.  First name is the real one, the rest are links.
 
18523
# The last name is the one that the linker finds with -lNAME.
 
18524
library_names_spec=$lt_library_names_spec
 
18525
 
 
18526
# The coded name of the library, if different from the real name.
 
18527
soname_spec=$lt_soname_spec
 
18528
 
 
18529
# Commands used to build and install an old-style archive.
 
18530
RANLIB=$lt_RANLIB
 
18531
old_archive_cmds=$lt_old_archive_cmds_GCJ
 
18532
old_postinstall_cmds=$lt_old_postinstall_cmds
 
18533
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
18534
 
 
18535
# Create an old-style archive from a shared archive.
 
18536
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
 
18537
 
 
18538
# Create a temporary old-style archive to link instead of a shared archive.
 
18539
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
 
18540
 
 
18541
# Commands used to build and install a shared archive.
 
18542
archive_cmds=$lt_archive_cmds_GCJ
 
18543
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
 
18544
postinstall_cmds=$lt_postinstall_cmds
 
18545
postuninstall_cmds=$lt_postuninstall_cmds
 
18546
 
 
18547
# Commands used to build a loadable module (assumed same as above if empty)
 
18548
module_cmds=$lt_module_cmds_GCJ
 
18549
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
 
18550
 
 
18551
# Commands to strip libraries.
 
18552
old_striplib=$lt_old_striplib
 
18553
striplib=$lt_striplib
 
18554
 
 
18555
# Dependencies to place before the objects being linked to create a
 
18556
# shared library.
 
18557
predep_objects=$lt_predep_objects_GCJ
 
18558
 
 
18559
# Dependencies to place after the objects being linked to create a
 
18560
# shared library.
 
18561
postdep_objects=$lt_postdep_objects_GCJ
 
18562
 
 
18563
# Dependencies to place before the objects being linked to create a
 
18564
# shared library.
 
18565
predeps=$lt_predeps_GCJ
 
18566
 
 
18567
# Dependencies to place after the objects being linked to create a
 
18568
# shared library.
 
18569
postdeps=$lt_postdeps_GCJ
 
18570
 
 
18571
# The library search path used internally by the compiler when linking
 
18572
# a shared library.
 
18573
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
 
18574
 
 
18575
# Method to check whether dependent libraries are shared objects.
 
18576
deplibs_check_method=$lt_deplibs_check_method
 
18577
 
 
18578
# Command to use when deplibs_check_method == file_magic.
 
18579
file_magic_cmd=$lt_file_magic_cmd
 
18580
 
 
18581
# Flag that allows shared libraries with undefined symbols to be built.
 
18582
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
 
18583
 
 
18584
# Flag that forces no undefined symbols.
 
18585
no_undefined_flag=$lt_no_undefined_flag_GCJ
 
18586
 
 
18587
# Commands used to finish a libtool library installation in a directory.
 
18588
finish_cmds=$lt_finish_cmds
 
18589
 
 
18590
# Same as above, but a single script fragment to be evaled but not shown.
 
18591
finish_eval=$lt_finish_eval
 
18592
 
 
18593
# Take the output of nm and produce a listing of raw symbols and C names.
 
18594
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
18595
 
 
18596
# Transform the output of nm in a proper C declaration
 
18597
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
18598
 
 
18599
# Transform the output of nm in a C name address pair
 
18600
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
18601
 
 
18602
# This is the shared library runtime path variable.
 
18603
runpath_var=$runpath_var
 
18604
 
 
18605
# This is the shared library path variable.
 
18606
shlibpath_var=$shlibpath_var
 
18607
 
 
18608
# Is shlibpath searched before the hard-coded library search path?
 
18609
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
18610
 
 
18611
# How to hardcode a shared library path into an executable.
 
18612
hardcode_action=$hardcode_action_GCJ
 
18613
 
 
18614
# Whether we should hardcode library paths into libraries.
 
18615
hardcode_into_libs=$hardcode_into_libs
 
18616
 
 
18617
# Flag to hardcode \$libdir into a binary during linking.
 
18618
# This must work even if \$libdir does not exist.
 
18619
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
 
18620
 
 
18621
# If ld is used when linking, flag to hardcode \$libdir into
 
18622
# a binary during linking. This must work even if \$libdir does
 
18623
# not exist.
 
18624
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
 
18625
 
 
18626
# Whether we need a single -rpath flag with a separated argument.
 
18627
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
 
18628
 
 
18629
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
18630
# resulting binary.
 
18631
hardcode_direct=$hardcode_direct_GCJ
 
18632
 
 
18633
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
18634
# resulting binary.
 
18635
hardcode_minus_L=$hardcode_minus_L_GCJ
 
18636
 
 
18637
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
18638
# the resulting binary.
 
18639
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
 
18640
 
 
18641
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
18642
# and all subsequent libraries and executables linked against it.
 
18643
hardcode_automatic=$hardcode_automatic_GCJ
 
18644
 
 
18645
# Variables whose values should be saved in libtool wrapper scripts and
 
18646
# restored at relink time.
 
18647
variables_saved_for_relink="$variables_saved_for_relink"
 
18648
 
 
18649
# Whether libtool must link a program against all its dependency libraries.
 
18650
link_all_deplibs=$link_all_deplibs_GCJ
 
18651
 
 
18652
# Compile-time system search path for libraries
 
18653
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
18654
 
 
18655
# Run-time system search path for libraries
 
18656
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
18657
 
 
18658
# Fix the shell variable \$srcfile for the compiler.
 
18659
fix_srcfile_path="$fix_srcfile_path_GCJ"
 
18660
 
 
18661
# Set to yes if exported symbols are required.
 
18662
always_export_symbols=$always_export_symbols_GCJ
 
18663
 
 
18664
# The commands to list exported symbols.
 
18665
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
 
18666
 
 
18667
# The commands to extract the exported symbol list from a shared archive.
 
18668
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
18669
 
 
18670
# Symbols that should not be listed in the preloaded symbols.
 
18671
exclude_expsyms=$lt_exclude_expsyms_GCJ
 
18672
 
 
18673
# Symbols that must always be exported.
 
18674
include_expsyms=$lt_include_expsyms_GCJ
 
18675
 
 
18676
# ### END LIBTOOL TAG CONFIG: $tagname
 
18677
 
 
18678
__EOF__
 
18679
 
 
18680
 
 
18681
else
 
18682
  # If there is no Makefile yet, we rely on a make rule to execute
 
18683
  # `config.status --recheck' to rerun these tests and create the
 
18684
  # libtool script then.
 
18685
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
18686
  if test -f "$ltmain_in"; then
 
18687
    test -f Makefile && make "$ltmain"
 
18688
  fi
 
18689
fi
 
18690
 
 
18691
 
 
18692
ac_ext=c
 
18693
ac_cpp='$CPP $CPPFLAGS'
 
18694
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
18695
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
18696
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
18697
 
 
18698
CC="$lt_save_CC"
 
18699
 
 
18700
        else
 
18701
          tagname=""
 
18702
        fi
 
18703
        ;;
 
18704
 
 
18705
      RC)
 
18706
 
 
18707
 
 
18708
# Source file extension for RC test sources.
 
18709
ac_ext=rc
 
18710
 
 
18711
# Object file extension for compiled RC test sources.
 
18712
objext=o
 
18713
objext_RC=$objext
 
18714
 
 
18715
# Code to be used in simple compile tests
 
18716
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
 
18717
 
 
18718
# Code to be used in simple link tests
 
18719
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
18720
 
 
18721
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
18722
 
 
18723
# If no C compiler was specified, use CC.
 
18724
LTCC=${LTCC-"$CC"}
 
18725
 
 
18726
# If no C compiler flags were specified, use CFLAGS.
 
18727
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
18728
 
 
18729
# Allow CC to be a program name with arguments.
 
18730
compiler=$CC
 
18731
 
 
18732
 
 
18733
# save warnings/boilerplate of simple test code
 
18734
ac_outfile=conftest.$ac_objext
 
18735
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
18736
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
18737
_lt_compiler_boilerplate=`cat conftest.err`
 
18738
$rm conftest*
 
18739
 
 
18740
ac_outfile=conftest.$ac_objext
 
18741
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
18742
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
18743
_lt_linker_boilerplate=`cat conftest.err`
 
18744
$rm conftest*
 
18745
 
 
18746
 
 
18747
# Allow CC to be a program name with arguments.
 
18748
lt_save_CC="$CC"
 
18749
CC=${RC-"windres"}
 
18750
compiler=$CC
 
18751
compiler_RC=$CC
 
18752
for cc_temp in $compiler""; do
 
18753
  case $cc_temp in
 
18754
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
18755
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
18756
    \-*) ;;
 
18757
    *) break;;
 
18758
  esac
 
18759
done
 
18760
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
18761
 
 
18762
lt_cv_prog_compiler_c_o_RC=yes
 
18763
 
 
18764
# The else clause should only fire when bootstrapping the
 
18765
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
18766
# with your package, and you will get complaints that there are
 
18767
# no rules to generate ltmain.sh.
 
18768
if test -f "$ltmain"; then
 
18769
  # See if we are running on zsh, and set the options which allow our commands through
 
18770
  # without removal of \ escapes.
 
18771
  if test -n "${ZSH_VERSION+set}" ; then
 
18772
    setopt NO_GLOB_SUBST
 
18773
  fi
 
18774
  # Now quote all the things that may contain metacharacters while being
 
18775
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
18776
  # variables and quote the copies for generation of the libtool script.
 
18777
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
18778
    SED SHELL STRIP \
 
18779
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
18780
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
18781
    deplibs_check_method reload_flag reload_cmds need_locks \
 
18782
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
18783
    lt_cv_sys_global_symbol_to_c_name_address \
 
18784
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
18785
    old_postinstall_cmds old_postuninstall_cmds \
 
18786
    compiler_RC \
 
18787
    CC_RC \
 
18788
    LD_RC \
 
18789
    lt_prog_compiler_wl_RC \
 
18790
    lt_prog_compiler_pic_RC \
 
18791
    lt_prog_compiler_static_RC \
 
18792
    lt_prog_compiler_no_builtin_flag_RC \
 
18793
    export_dynamic_flag_spec_RC \
 
18794
    thread_safe_flag_spec_RC \
 
18795
    whole_archive_flag_spec_RC \
 
18796
    enable_shared_with_static_runtimes_RC \
 
18797
    old_archive_cmds_RC \
 
18798
    old_archive_from_new_cmds_RC \
 
18799
    predep_objects_RC \
 
18800
    postdep_objects_RC \
 
18801
    predeps_RC \
 
18802
    postdeps_RC \
 
18803
    compiler_lib_search_path_RC \
 
18804
    archive_cmds_RC \
 
18805
    archive_expsym_cmds_RC \
 
18806
    postinstall_cmds_RC \
 
18807
    postuninstall_cmds_RC \
 
18808
    old_archive_from_expsyms_cmds_RC \
 
18809
    allow_undefined_flag_RC \
 
18810
    no_undefined_flag_RC \
 
18811
    export_symbols_cmds_RC \
 
18812
    hardcode_libdir_flag_spec_RC \
 
18813
    hardcode_libdir_flag_spec_ld_RC \
 
18814
    hardcode_libdir_separator_RC \
 
18815
    hardcode_automatic_RC \
 
18816
    module_cmds_RC \
 
18817
    module_expsym_cmds_RC \
 
18818
    lt_cv_prog_compiler_c_o_RC \
 
18819
    exclude_expsyms_RC \
 
18820
    include_expsyms_RC; do
 
18821
 
 
18822
    case $var in
 
18823
    old_archive_cmds_RC | \
 
18824
    old_archive_from_new_cmds_RC | \
 
18825
    archive_cmds_RC | \
 
18826
    archive_expsym_cmds_RC | \
 
18827
    module_cmds_RC | \
 
18828
    module_expsym_cmds_RC | \
 
18829
    old_archive_from_expsyms_cmds_RC | \
 
18830
    export_symbols_cmds_RC | \
 
18831
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
18832
    postinstall_cmds | postuninstall_cmds | \
 
18833
    old_postinstall_cmds | old_postuninstall_cmds | \
 
18834
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
18835
      # Double-quote double-evaled strings.
 
18836
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
18837
      ;;
 
18838
    *)
 
18839
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
18840
      ;;
 
18841
    esac
 
18842
  done
 
18843
 
 
18844
  case $lt_echo in
 
18845
  *'\$0 --fallback-echo"')
 
18846
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
18847
    ;;
 
18848
  esac
 
18849
 
 
18850
cfgfile="$ofile"
 
18851
 
 
18852
  cat <<__EOF__ >> "$cfgfile"
 
18853
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
18854
 
 
18855
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
18856
 
 
18857
# Shell to use when invoking shell scripts.
 
18858
SHELL=$lt_SHELL
 
18859
 
 
18860
# Whether or not to build shared libraries.
 
18861
build_libtool_libs=$enable_shared
 
18862
 
 
18863
# Whether or not to build static libraries.
 
18864
build_old_libs=$enable_static
 
18865
 
 
18866
# Whether or not to add -lc for building shared libraries.
 
18867
build_libtool_need_lc=$archive_cmds_need_lc_RC
 
18868
 
 
18869
# Whether or not to disallow shared libs when runtime libs are static
 
18870
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
 
18871
 
 
18872
# Whether or not to optimize for fast installation.
 
18873
fast_install=$enable_fast_install
 
18874
 
 
18875
# The host system.
 
18876
host_alias=$host_alias
 
18877
host=$host
 
18878
host_os=$host_os
 
18879
 
 
18880
# The build system.
 
18881
build_alias=$build_alias
 
18882
build=$build
 
18883
build_os=$build_os
 
18884
 
 
18885
# An echo program that does not interpret backslashes.
 
18886
echo=$lt_echo
 
18887
 
 
18888
# The archiver.
 
18889
AR=$lt_AR
 
18890
AR_FLAGS=$lt_AR_FLAGS
 
18891
 
 
18892
# A C compiler.
 
18893
LTCC=$lt_LTCC
 
18894
 
 
18895
# LTCC compiler flags.
 
18896
LTCFLAGS=$lt_LTCFLAGS
 
18897
 
 
18898
# A language-specific compiler.
 
18899
CC=$lt_compiler_RC
 
18900
 
 
18901
# Is the compiler the GNU C compiler?
 
18902
with_gcc=$GCC_RC
 
18903
 
 
18904
# An ERE matcher.
 
18905
EGREP=$lt_EGREP
 
18906
 
 
18907
# The linker used to build libraries.
 
18908
LD=$lt_LD_RC
 
18909
 
 
18910
# Whether we need hard or soft links.
 
18911
LN_S=$lt_LN_S
 
18912
 
 
18913
# A BSD-compatible nm program.
 
18914
NM=$lt_NM
 
18915
 
 
18916
# A symbol stripping program
 
18917
STRIP=$lt_STRIP
 
18918
 
 
18919
# Used to examine libraries when file_magic_cmd begins "file"
 
18920
MAGIC_CMD=$MAGIC_CMD
 
18921
 
 
18922
# Used on cygwin: DLL creation program.
 
18923
DLLTOOL="$DLLTOOL"
 
18924
 
 
18925
# Used on cygwin: object dumper.
 
18926
OBJDUMP="$OBJDUMP"
 
18927
 
 
18928
# Used on cygwin: assembler.
 
18929
AS="$AS"
 
18930
 
 
18931
# The name of the directory that contains temporary libtool files.
 
18932
objdir=$objdir
 
18933
 
 
18934
# How to create reloadable object files.
 
18935
reload_flag=$lt_reload_flag
 
18936
reload_cmds=$lt_reload_cmds
 
18937
 
 
18938
# How to pass a linker flag through the compiler.
 
18939
wl=$lt_lt_prog_compiler_wl_RC
 
18940
 
 
18941
# Object file suffix (normally "o").
 
18942
objext="$ac_objext"
 
18943
 
 
18944
# Old archive suffix (normally "a").
 
18945
libext="$libext"
 
18946
 
 
18947
# Shared library suffix (normally ".so").
 
18948
shrext_cmds='$shrext_cmds'
 
18949
 
 
18950
# Executable file suffix (normally "").
 
18951
exeext="$exeext"
 
18952
 
 
18953
# Additional compiler flags for building library objects.
 
18954
pic_flag=$lt_lt_prog_compiler_pic_RC
 
18955
pic_mode=$pic_mode
 
18956
 
 
18957
# What is the maximum length of a command?
 
18958
max_cmd_len=$lt_cv_sys_max_cmd_len
 
18959
 
 
18960
# Does compiler simultaneously support -c and -o options?
 
18961
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
 
18962
 
 
18963
# Must we lock files when doing compilation?
 
18964
need_locks=$lt_need_locks
 
18965
 
 
18966
# Do we need the lib prefix for modules?
 
18967
need_lib_prefix=$need_lib_prefix
 
18968
 
 
18969
# Do we need a version for libraries?
 
18970
need_version=$need_version
 
18971
 
 
18972
# Whether dlopen is supported.
 
18973
dlopen_support=$enable_dlopen
 
18974
 
 
18975
# Whether dlopen of programs is supported.
 
18976
dlopen_self=$enable_dlopen_self
 
18977
 
 
18978
# Whether dlopen of statically linked programs is supported.
 
18979
dlopen_self_static=$enable_dlopen_self_static
 
18980
 
 
18981
# Compiler flag to prevent dynamic linking.
 
18982
link_static_flag=$lt_lt_prog_compiler_static_RC
 
18983
 
 
18984
# Compiler flag to turn off builtin functions.
 
18985
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
 
18986
 
 
18987
# Compiler flag to allow reflexive dlopens.
 
18988
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
 
18989
 
 
18990
# Compiler flag to generate shared objects directly from archives.
 
18991
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
 
18992
 
 
18993
# Compiler flag to generate thread-safe objects.
 
18994
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
 
18995
 
 
18996
# Library versioning type.
 
18997
version_type=$version_type
 
18998
 
 
18999
# Format of library name prefix.
 
19000
libname_spec=$lt_libname_spec
 
19001
 
 
19002
# List of archive names.  First name is the real one, the rest are links.
 
19003
# The last name is the one that the linker finds with -lNAME.
 
19004
library_names_spec=$lt_library_names_spec
 
19005
 
 
19006
# The coded name of the library, if different from the real name.
 
19007
soname_spec=$lt_soname_spec
 
19008
 
 
19009
# Commands used to build and install an old-style archive.
 
19010
RANLIB=$lt_RANLIB
 
19011
old_archive_cmds=$lt_old_archive_cmds_RC
 
19012
old_postinstall_cmds=$lt_old_postinstall_cmds
 
19013
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
19014
 
 
19015
# Create an old-style archive from a shared archive.
 
19016
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
 
19017
 
 
19018
# Create a temporary old-style archive to link instead of a shared archive.
 
19019
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
 
19020
 
 
19021
# Commands used to build and install a shared archive.
 
19022
archive_cmds=$lt_archive_cmds_RC
 
19023
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
 
19024
postinstall_cmds=$lt_postinstall_cmds
 
19025
postuninstall_cmds=$lt_postuninstall_cmds
 
19026
 
 
19027
# Commands used to build a loadable module (assumed same as above if empty)
 
19028
module_cmds=$lt_module_cmds_RC
 
19029
module_expsym_cmds=$lt_module_expsym_cmds_RC
 
19030
 
 
19031
# Commands to strip libraries.
 
19032
old_striplib=$lt_old_striplib
 
19033
striplib=$lt_striplib
 
19034
 
 
19035
# Dependencies to place before the objects being linked to create a
 
19036
# shared library.
 
19037
predep_objects=$lt_predep_objects_RC
 
19038
 
 
19039
# Dependencies to place after the objects being linked to create a
 
19040
# shared library.
 
19041
postdep_objects=$lt_postdep_objects_RC
 
19042
 
 
19043
# Dependencies to place before the objects being linked to create a
 
19044
# shared library.
 
19045
predeps=$lt_predeps_RC
 
19046
 
 
19047
# Dependencies to place after the objects being linked to create a
 
19048
# shared library.
 
19049
postdeps=$lt_postdeps_RC
 
19050
 
 
19051
# The library search path used internally by the compiler when linking
 
19052
# a shared library.
 
19053
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
 
19054
 
 
19055
# Method to check whether dependent libraries are shared objects.
 
19056
deplibs_check_method=$lt_deplibs_check_method
 
19057
 
 
19058
# Command to use when deplibs_check_method == file_magic.
 
19059
file_magic_cmd=$lt_file_magic_cmd
 
19060
 
 
19061
# Flag that allows shared libraries with undefined symbols to be built.
 
19062
allow_undefined_flag=$lt_allow_undefined_flag_RC
 
19063
 
 
19064
# Flag that forces no undefined symbols.
 
19065
no_undefined_flag=$lt_no_undefined_flag_RC
 
19066
 
 
19067
# Commands used to finish a libtool library installation in a directory.
 
19068
finish_cmds=$lt_finish_cmds
 
19069
 
 
19070
# Same as above, but a single script fragment to be evaled but not shown.
 
19071
finish_eval=$lt_finish_eval
 
19072
 
 
19073
# Take the output of nm and produce a listing of raw symbols and C names.
 
19074
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
19075
 
 
19076
# Transform the output of nm in a proper C declaration
 
19077
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
19078
 
 
19079
# Transform the output of nm in a C name address pair
 
19080
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
19081
 
 
19082
# This is the shared library runtime path variable.
 
19083
runpath_var=$runpath_var
 
19084
 
 
19085
# This is the shared library path variable.
 
19086
shlibpath_var=$shlibpath_var
 
19087
 
 
19088
# Is shlibpath searched before the hard-coded library search path?
 
19089
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
19090
 
 
19091
# How to hardcode a shared library path into an executable.
 
19092
hardcode_action=$hardcode_action_RC
 
19093
 
 
19094
# Whether we should hardcode library paths into libraries.
 
19095
hardcode_into_libs=$hardcode_into_libs
 
19096
 
 
19097
# Flag to hardcode \$libdir into a binary during linking.
 
19098
# This must work even if \$libdir does not exist.
 
19099
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
 
19100
 
 
19101
# If ld is used when linking, flag to hardcode \$libdir into
 
19102
# a binary during linking. This must work even if \$libdir does
 
19103
# not exist.
 
19104
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
 
19105
 
 
19106
# Whether we need a single -rpath flag with a separated argument.
 
19107
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
 
19108
 
 
19109
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
19110
# resulting binary.
 
19111
hardcode_direct=$hardcode_direct_RC
 
19112
 
 
19113
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
19114
# resulting binary.
 
19115
hardcode_minus_L=$hardcode_minus_L_RC
 
19116
 
 
19117
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
19118
# the resulting binary.
 
19119
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
 
19120
 
 
19121
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
19122
# and all subsequent libraries and executables linked against it.
 
19123
hardcode_automatic=$hardcode_automatic_RC
 
19124
 
 
19125
# Variables whose values should be saved in libtool wrapper scripts and
 
19126
# restored at relink time.
 
19127
variables_saved_for_relink="$variables_saved_for_relink"
 
19128
 
 
19129
# Whether libtool must link a program against all its dependency libraries.
 
19130
link_all_deplibs=$link_all_deplibs_RC
 
19131
 
 
19132
# Compile-time system search path for libraries
 
19133
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
19134
 
 
19135
# Run-time system search path for libraries
 
19136
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
19137
 
 
19138
# Fix the shell variable \$srcfile for the compiler.
 
19139
fix_srcfile_path="$fix_srcfile_path_RC"
 
19140
 
 
19141
# Set to yes if exported symbols are required.
 
19142
always_export_symbols=$always_export_symbols_RC
 
19143
 
 
19144
# The commands to list exported symbols.
 
19145
export_symbols_cmds=$lt_export_symbols_cmds_RC
 
19146
 
 
19147
# The commands to extract the exported symbol list from a shared archive.
 
19148
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
19149
 
 
19150
# Symbols that should not be listed in the preloaded symbols.
 
19151
exclude_expsyms=$lt_exclude_expsyms_RC
 
19152
 
 
19153
# Symbols that must always be exported.
 
19154
include_expsyms=$lt_include_expsyms_RC
 
19155
 
 
19156
# ### END LIBTOOL TAG CONFIG: $tagname
 
19157
 
 
19158
__EOF__
 
19159
 
 
19160
 
 
19161
else
 
19162
  # If there is no Makefile yet, we rely on a make rule to execute
 
19163
  # `config.status --recheck' to rerun these tests and create the
 
19164
  # libtool script then.
 
19165
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
19166
  if test -f "$ltmain_in"; then
 
19167
    test -f Makefile && make "$ltmain"
 
19168
  fi
 
19169
fi
 
19170
 
 
19171
 
 
19172
ac_ext=c
 
19173
ac_cpp='$CPP $CPPFLAGS'
 
19174
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
19175
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
19176
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
19177
 
 
19178
CC="$lt_save_CC"
 
19179
 
 
19180
        ;;
 
19181
 
 
19182
      *)
 
19183
        { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
 
19184
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
 
19185
   { (exit 1); exit 1; }; }
 
19186
        ;;
 
19187
      esac
 
19188
 
 
19189
      # Append the new tag name to the list of available tags.
 
19190
      if test -n "$tagname" ; then
 
19191
      available_tags="$available_tags $tagname"
 
19192
    fi
 
19193
    fi
 
19194
  done
 
19195
  IFS="$lt_save_ifs"
 
19196
 
 
19197
  # Now substitute the updated list of available tags.
 
19198
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
 
19199
    mv "${ofile}T" "$ofile"
 
19200
    chmod +x "$ofile"
 
19201
  else
 
19202
    rm -f "${ofile}T"
 
19203
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
 
19204
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
 
19205
   { (exit 1); exit 1; }; }
 
19206
  fi
 
19207
fi
 
19208
 
 
19209
 
 
19210
 
 
19211
# This can be used to rebuild libtool when needed
 
19212
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
 
19213
 
 
19214
# Always use our own libtool.
 
19215
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
19216
 
 
19217
# Prevent multiple expansion
 
19218
 
 
19219
 
 
19220
 
 
19221
 
 
19222
 
 
19223
 
 
19224
 
 
19225
 
 
19226
 
 
19227
 
 
19228
 
 
19229
 
 
19230
 
 
19231
 
 
19232
 
 
19233
 
 
19234
 
 
19235
 
10437
19236
 
10438
19237
 
10439
19238
ac_ext=c
10444
19243
if test -n "$ac_tool_prefix"; then
10445
19244
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10446
19245
set dummy ${ac_tool_prefix}gcc; ac_word=$2
10447
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10448
 
$as_echo_n "checking for $ac_word... " >&6; }
10449
 
if test "${ac_cv_prog_CC+set}" = set; then :
10450
 
  $as_echo_n "(cached) " >&6
 
19246
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19247
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
19248
if test "${ac_cv_prog_CC+set}" = set; then
 
19249
  echo $ECHO_N "(cached) $ECHO_C" >&6
10451
19250
else
10452
19251
  if test -n "$CC"; then
10453
19252
  ac_cv_prog_CC="$CC" # Let the user override the test.
10457
19256
do
10458
19257
  IFS=$as_save_IFS
10459
19258
  test -z "$as_dir" && as_dir=.
10460
 
    for ac_exec_ext in '' $ac_executable_extensions; do
 
19259
  for ac_exec_ext in '' $ac_executable_extensions; do
10461
19260
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10462
19261
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
10463
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19262
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10464
19263
    break 2
10465
19264
  fi
10466
19265
done
10467
 
  done
 
19266
done
10468
19267
IFS=$as_save_IFS
10469
19268
 
10470
19269
fi
10471
19270
fi
10472
19271
CC=$ac_cv_prog_CC
10473
19272
if test -n "$CC"; then
10474
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10475
 
$as_echo "$CC" >&6; }
 
19273
  { echo "$as_me:$LINENO: result: $CC" >&5
 
19274
echo "${ECHO_T}$CC" >&6; }
10476
19275
else
10477
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10478
 
$as_echo "no" >&6; }
 
19276
  { echo "$as_me:$LINENO: result: no" >&5
 
19277
echo "${ECHO_T}no" >&6; }
10479
19278
fi
10480
19279
 
10481
19280
 
10484
19283
  ac_ct_CC=$CC
10485
19284
  # Extract the first word of "gcc", so it can be a program name with args.
10486
19285
set dummy gcc; ac_word=$2
10487
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10488
 
$as_echo_n "checking for $ac_word... " >&6; }
10489
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
10490
 
  $as_echo_n "(cached) " >&6
 
19286
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19287
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
19288
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
19289
  echo $ECHO_N "(cached) $ECHO_C" >&6
10491
19290
else
10492
19291
  if test -n "$ac_ct_CC"; then
10493
19292
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10497
19296
do
10498
19297
  IFS=$as_save_IFS
10499
19298
  test -z "$as_dir" && as_dir=.
10500
 
    for ac_exec_ext in '' $ac_executable_extensions; do
 
19299
  for ac_exec_ext in '' $ac_executable_extensions; do
10501
19300
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10502
19301
    ac_cv_prog_ac_ct_CC="gcc"
10503
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19302
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10504
19303
    break 2
10505
19304
  fi
10506
19305
done
10507
 
  done
 
19306
done
10508
19307
IFS=$as_save_IFS
10509
19308
 
10510
19309
fi
10511
19310
fi
10512
19311
ac_ct_CC=$ac_cv_prog_ac_ct_CC
10513
19312
if test -n "$ac_ct_CC"; then
10514
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
10515
 
$as_echo "$ac_ct_CC" >&6; }
 
19313
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
19314
echo "${ECHO_T}$ac_ct_CC" >&6; }
10516
19315
else
10517
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10518
 
$as_echo "no" >&6; }
 
19316
  { echo "$as_me:$LINENO: result: no" >&5
 
19317
echo "${ECHO_T}no" >&6; }
10519
19318
fi
10520
19319
 
10521
19320
  if test "x$ac_ct_CC" = x; then
10523
19322
  else
10524
19323
    case $cross_compiling:$ac_tool_warned in
10525
19324
yes:)
10526
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10527
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
19325
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
19326
whose name does not start with the host triplet.  If you think this
 
19327
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
19328
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
19329
whose name does not start with the host triplet.  If you think this
 
19330
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
10528
19331
ac_tool_warned=yes ;;
10529
19332
esac
10530
19333
    CC=$ac_ct_CC
10537
19340
          if test -n "$ac_tool_prefix"; then
10538
19341
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10539
19342
set dummy ${ac_tool_prefix}cc; ac_word=$2
10540
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10541
 
$as_echo_n "checking for $ac_word... " >&6; }
10542
 
if test "${ac_cv_prog_CC+set}" = set; then :
10543
 
  $as_echo_n "(cached) " >&6
 
19343
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19344
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
19345
if test "${ac_cv_prog_CC+set}" = set; then
 
19346
  echo $ECHO_N "(cached) $ECHO_C" >&6
10544
19347
else
10545
19348
  if test -n "$CC"; then
10546
19349
  ac_cv_prog_CC="$CC" # Let the user override the test.
10550
19353
do
10551
19354
  IFS=$as_save_IFS
10552
19355
  test -z "$as_dir" && as_dir=.
10553
 
    for ac_exec_ext in '' $ac_executable_extensions; do
 
19356
  for ac_exec_ext in '' $ac_executable_extensions; do
10554
19357
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10555
19358
    ac_cv_prog_CC="${ac_tool_prefix}cc"
10556
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19359
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10557
19360
    break 2
10558
19361
  fi
10559
19362
done
10560
 
  done
 
19363
done
10561
19364
IFS=$as_save_IFS
10562
19365
 
10563
19366
fi
10564
19367
fi
10565
19368
CC=$ac_cv_prog_CC
10566
19369
if test -n "$CC"; then
10567
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10568
 
$as_echo "$CC" >&6; }
 
19370
  { echo "$as_me:$LINENO: result: $CC" >&5
 
19371
echo "${ECHO_T}$CC" >&6; }
10569
19372
else
10570
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10571
 
$as_echo "no" >&6; }
 
19373
  { echo "$as_me:$LINENO: result: no" >&5
 
19374
echo "${ECHO_T}no" >&6; }
10572
19375
fi
10573
19376
 
10574
19377
 
10577
19380
if test -z "$CC"; then
10578
19381
  # Extract the first word of "cc", so it can be a program name with args.
10579
19382
set dummy cc; ac_word=$2
10580
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10581
 
$as_echo_n "checking for $ac_word... " >&6; }
10582
 
if test "${ac_cv_prog_CC+set}" = set; then :
10583
 
  $as_echo_n "(cached) " >&6
 
19383
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19384
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
19385
if test "${ac_cv_prog_CC+set}" = set; then
 
19386
  echo $ECHO_N "(cached) $ECHO_C" >&6
10584
19387
else
10585
19388
  if test -n "$CC"; then
10586
19389
  ac_cv_prog_CC="$CC" # Let the user override the test.
10591
19394
do
10592
19395
  IFS=$as_save_IFS
10593
19396
  test -z "$as_dir" && as_dir=.
10594
 
    for ac_exec_ext in '' $ac_executable_extensions; do
 
19397
  for ac_exec_ext in '' $ac_executable_extensions; do
10595
19398
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10596
19399
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10597
19400
       ac_prog_rejected=yes
10598
19401
       continue
10599
19402
     fi
10600
19403
    ac_cv_prog_CC="cc"
10601
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19404
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10602
19405
    break 2
10603
19406
  fi
10604
19407
done
10605
 
  done
 
19408
done
10606
19409
IFS=$as_save_IFS
10607
19410
 
10608
19411
if test $ac_prog_rejected = yes; then
10621
19424
fi
10622
19425
CC=$ac_cv_prog_CC
10623
19426
if test -n "$CC"; then
10624
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10625
 
$as_echo "$CC" >&6; }
 
19427
  { echo "$as_me:$LINENO: result: $CC" >&5
 
19428
echo "${ECHO_T}$CC" >&6; }
10626
19429
else
10627
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10628
 
$as_echo "no" >&6; }
 
19430
  { echo "$as_me:$LINENO: result: no" >&5
 
19431
echo "${ECHO_T}no" >&6; }
10629
19432
fi
10630
19433
 
10631
19434
 
10636
19439
  do
10637
19440
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10638
19441
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10639
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10640
 
$as_echo_n "checking for $ac_word... " >&6; }
10641
 
if test "${ac_cv_prog_CC+set}" = set; then :
10642
 
  $as_echo_n "(cached) " >&6
 
19442
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19443
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
19444
if test "${ac_cv_prog_CC+set}" = set; then
 
19445
  echo $ECHO_N "(cached) $ECHO_C" >&6
10643
19446
else
10644
19447
  if test -n "$CC"; then
10645
19448
  ac_cv_prog_CC="$CC" # Let the user override the test.
10649
19452
do
10650
19453
  IFS=$as_save_IFS
10651
19454
  test -z "$as_dir" && as_dir=.
10652
 
    for ac_exec_ext in '' $ac_executable_extensions; do
 
19455
  for ac_exec_ext in '' $ac_executable_extensions; do
10653
19456
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10654
19457
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10655
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19458
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10656
19459
    break 2
10657
19460
  fi
10658
19461
done
10659
 
  done
 
19462
done
10660
19463
IFS=$as_save_IFS
10661
19464
 
10662
19465
fi
10663
19466
fi
10664
19467
CC=$ac_cv_prog_CC
10665
19468
if test -n "$CC"; then
10666
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10667
 
$as_echo "$CC" >&6; }
 
19469
  { echo "$as_me:$LINENO: result: $CC" >&5
 
19470
echo "${ECHO_T}$CC" >&6; }
10668
19471
else
10669
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10670
 
$as_echo "no" >&6; }
 
19472
  { echo "$as_me:$LINENO: result: no" >&5
 
19473
echo "${ECHO_T}no" >&6; }
10671
19474
fi
10672
19475
 
10673
19476
 
10680
19483
do
10681
19484
  # Extract the first word of "$ac_prog", so it can be a program name with args.
10682
19485
set dummy $ac_prog; ac_word=$2
10683
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10684
 
$as_echo_n "checking for $ac_word... " >&6; }
10685
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
10686
 
  $as_echo_n "(cached) " >&6
 
19486
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19487
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
19488
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
19489
  echo $ECHO_N "(cached) $ECHO_C" >&6
10687
19490
else
10688
19491
  if test -n "$ac_ct_CC"; then
10689
19492
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10693
19496
do
10694
19497
  IFS=$as_save_IFS
10695
19498
  test -z "$as_dir" && as_dir=.
10696
 
    for ac_exec_ext in '' $ac_executable_extensions; do
 
19499
  for ac_exec_ext in '' $ac_executable_extensions; do
10697
19500
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10698
19501
    ac_cv_prog_ac_ct_CC="$ac_prog"
10699
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19502
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10700
19503
    break 2
10701
19504
  fi
10702
19505
done
10703
 
  done
 
19506
done
10704
19507
IFS=$as_save_IFS
10705
19508
 
10706
19509
fi
10707
19510
fi
10708
19511
ac_ct_CC=$ac_cv_prog_ac_ct_CC
10709
19512
if test -n "$ac_ct_CC"; then
10710
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
10711
 
$as_echo "$ac_ct_CC" >&6; }
 
19513
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
19514
echo "${ECHO_T}$ac_ct_CC" >&6; }
10712
19515
else
10713
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10714
 
$as_echo "no" >&6; }
 
19516
  { echo "$as_me:$LINENO: result: no" >&5
 
19517
echo "${ECHO_T}no" >&6; }
10715
19518
fi
10716
19519
 
10717
19520
 
10723
19526
  else
10724
19527
    case $cross_compiling:$ac_tool_warned in
10725
19528
yes:)
10726
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10727
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
19529
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
19530
whose name does not start with the host triplet.  If you think this
 
19531
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
19532
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
19533
whose name does not start with the host triplet.  If you think this
 
19534
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
10728
19535
ac_tool_warned=yes ;;
10729
19536
esac
10730
19537
    CC=$ac_ct_CC
10734
19541
fi
10735
19542
 
10736
19543
 
10737
 
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10738
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10739
 
as_fn_error "no acceptable C compiler found in \$PATH
10740
 
See \`config.log' for more details." "$LINENO" 5; }
 
19544
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
19545
See \`config.log' for more details." >&5
 
19546
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
19547
See \`config.log' for more details." >&2;}
 
19548
   { (exit 1); exit 1; }; }
10741
19549
 
10742
19550
# Provide some information about the compiler.
10743
 
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
10744
 
set X $ac_compile
10745
 
ac_compiler=$2
10746
 
for ac_option in --version -v -V -qversion; do
10747
 
  { { ac_try="$ac_compiler $ac_option >&5"
10748
 
case "(($ac_try" in
10749
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10750
 
  *) ac_try_echo=$ac_try;;
10751
 
esac
10752
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10753
 
$as_echo "$ac_try_echo"; } >&5
10754
 
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
10755
 
  ac_status=$?
10756
 
  if test -s conftest.err; then
10757
 
    sed '10a\
10758
 
... rest of stderr output deleted ...
10759
 
         10q' conftest.err >conftest.er1
10760
 
    cat conftest.er1 >&5
10761
 
  fi
10762
 
  rm -f conftest.er1 conftest.err
10763
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10764
 
  test $ac_status = 0; }
10765
 
done
 
19551
echo "$as_me:$LINENO: checking for C compiler version" >&5
 
19552
ac_compiler=`set X $ac_compile; echo $2`
 
19553
{ (ac_try="$ac_compiler --version >&5"
 
19554
case "(($ac_try" in
 
19555
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19556
  *) ac_try_echo=$ac_try;;
 
19557
esac
 
19558
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19559
  (eval "$ac_compiler --version >&5") 2>&5
 
19560
  ac_status=$?
 
19561
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19562
  (exit $ac_status); }
 
19563
{ (ac_try="$ac_compiler -v >&5"
 
19564
case "(($ac_try" in
 
19565
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19566
  *) ac_try_echo=$ac_try;;
 
19567
esac
 
19568
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19569
  (eval "$ac_compiler -v >&5") 2>&5
 
19570
  ac_status=$?
 
19571
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19572
  (exit $ac_status); }
 
19573
{ (ac_try="$ac_compiler -V >&5"
 
19574
case "(($ac_try" in
 
19575
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19576
  *) ac_try_echo=$ac_try;;
 
19577
esac
 
19578
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19579
  (eval "$ac_compiler -V >&5") 2>&5
 
19580
  ac_status=$?
 
19581
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19582
  (exit $ac_status); }
10766
19583
 
10767
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
10768
 
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
10769
 
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
10770
 
  $as_echo_n "(cached) " >&6
 
19584
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
19585
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
 
19586
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
19587
  echo $ECHO_N "(cached) $ECHO_C" >&6
10771
19588
else
10772
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
19589
  cat >conftest.$ac_ext <<_ACEOF
 
19590
/* confdefs.h.  */
 
19591
_ACEOF
 
19592
cat confdefs.h >>conftest.$ac_ext
 
19593
cat >>conftest.$ac_ext <<_ACEOF
10773
19594
/* end confdefs.h.  */
10774
19595
 
10775
19596
int
10783
19604
  return 0;
10784
19605
}
10785
19606
_ACEOF
10786
 
if ac_fn_c_try_compile "$LINENO"; then :
 
19607
rm -f conftest.$ac_objext
 
19608
if { (ac_try="$ac_compile"
 
19609
case "(($ac_try" in
 
19610
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19611
  *) ac_try_echo=$ac_try;;
 
19612
esac
 
19613
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19614
  (eval "$ac_compile") 2>conftest.er1
 
19615
  ac_status=$?
 
19616
  grep -v '^ *+' conftest.er1 >conftest.err
 
19617
  rm -f conftest.er1
 
19618
  cat conftest.err >&5
 
19619
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19620
  (exit $ac_status); } && {
 
19621
         test -z "$ac_c_werror_flag" ||
 
19622
         test ! -s conftest.err
 
19623
       } && test -s conftest.$ac_objext; then
10787
19624
  ac_compiler_gnu=yes
10788
19625
else
10789
 
  ac_compiler_gnu=no
 
19626
  echo "$as_me: failed program was:" >&5
 
19627
sed 's/^/| /' conftest.$ac_ext >&5
 
19628
 
 
19629
        ac_compiler_gnu=no
10790
19630
fi
 
19631
 
10791
19632
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10792
19633
ac_cv_c_compiler_gnu=$ac_compiler_gnu
10793
19634
 
10794
19635
fi
10795
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
10796
 
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
10797
 
if test $ac_compiler_gnu = yes; then
10798
 
  GCC=yes
10799
 
else
10800
 
  GCC=
10801
 
fi
 
19636
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
19637
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
 
19638
GCC=`test $ac_compiler_gnu = yes && echo yes`
10802
19639
ac_test_CFLAGS=${CFLAGS+set}
10803
19640
ac_save_CFLAGS=$CFLAGS
10804
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
10805
 
$as_echo_n "checking whether $CC accepts -g... " >&6; }
10806
 
if test "${ac_cv_prog_cc_g+set}" = set; then :
10807
 
  $as_echo_n "(cached) " >&6
 
19641
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
19642
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
 
19643
if test "${ac_cv_prog_cc_g+set}" = set; then
 
19644
  echo $ECHO_N "(cached) $ECHO_C" >&6
10808
19645
else
10809
19646
  ac_save_c_werror_flag=$ac_c_werror_flag
10810
19647
   ac_c_werror_flag=yes
10811
19648
   ac_cv_prog_cc_g=no
10812
19649
   CFLAGS="-g"
10813
 
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
19650
   cat >conftest.$ac_ext <<_ACEOF
 
19651
/* confdefs.h.  */
 
19652
_ACEOF
 
19653
cat confdefs.h >>conftest.$ac_ext
 
19654
cat >>conftest.$ac_ext <<_ACEOF
10814
19655
/* end confdefs.h.  */
10815
19656
 
10816
19657
int
10821
19662
  return 0;
10822
19663
}
10823
19664
_ACEOF
10824
 
if ac_fn_c_try_compile "$LINENO"; then :
 
19665
rm -f conftest.$ac_objext
 
19666
if { (ac_try="$ac_compile"
 
19667
case "(($ac_try" in
 
19668
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19669
  *) ac_try_echo=$ac_try;;
 
19670
esac
 
19671
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19672
  (eval "$ac_compile") 2>conftest.er1
 
19673
  ac_status=$?
 
19674
  grep -v '^ *+' conftest.er1 >conftest.err
 
19675
  rm -f conftest.er1
 
19676
  cat conftest.err >&5
 
19677
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19678
  (exit $ac_status); } && {
 
19679
         test -z "$ac_c_werror_flag" ||
 
19680
         test ! -s conftest.err
 
19681
       } && test -s conftest.$ac_objext; then
10825
19682
  ac_cv_prog_cc_g=yes
10826
19683
else
10827
 
  CFLAGS=""
10828
 
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
19684
  echo "$as_me: failed program was:" >&5
 
19685
sed 's/^/| /' conftest.$ac_ext >&5
 
19686
 
 
19687
        CFLAGS=""
 
19688
      cat >conftest.$ac_ext <<_ACEOF
 
19689
/* confdefs.h.  */
 
19690
_ACEOF
 
19691
cat confdefs.h >>conftest.$ac_ext
 
19692
cat >>conftest.$ac_ext <<_ACEOF
10829
19693
/* end confdefs.h.  */
10830
19694
 
10831
19695
int
10836
19700
  return 0;
10837
19701
}
10838
19702
_ACEOF
10839
 
if ac_fn_c_try_compile "$LINENO"; then :
 
19703
rm -f conftest.$ac_objext
 
19704
if { (ac_try="$ac_compile"
 
19705
case "(($ac_try" in
 
19706
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19707
  *) ac_try_echo=$ac_try;;
 
19708
esac
 
19709
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19710
  (eval "$ac_compile") 2>conftest.er1
 
19711
  ac_status=$?
 
19712
  grep -v '^ *+' conftest.er1 >conftest.err
 
19713
  rm -f conftest.er1
 
19714
  cat conftest.err >&5
 
19715
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19716
  (exit $ac_status); } && {
 
19717
         test -z "$ac_c_werror_flag" ||
 
19718
         test ! -s conftest.err
 
19719
       } && test -s conftest.$ac_objext; then
 
19720
  :
 
19721
else
 
19722
  echo "$as_me: failed program was:" >&5
 
19723
sed 's/^/| /' conftest.$ac_ext >&5
10840
19724
 
10841
 
else
10842
 
  ac_c_werror_flag=$ac_save_c_werror_flag
 
19725
        ac_c_werror_flag=$ac_save_c_werror_flag
10843
19726
         CFLAGS="-g"
10844
 
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
19727
         cat >conftest.$ac_ext <<_ACEOF
 
19728
/* confdefs.h.  */
 
19729
_ACEOF
 
19730
cat confdefs.h >>conftest.$ac_ext
 
19731
cat >>conftest.$ac_ext <<_ACEOF
10845
19732
/* end confdefs.h.  */
10846
19733
 
10847
19734
int
10852
19739
  return 0;
10853
19740
}
10854
19741
_ACEOF
10855
 
if ac_fn_c_try_compile "$LINENO"; then :
 
19742
rm -f conftest.$ac_objext
 
19743
if { (ac_try="$ac_compile"
 
19744
case "(($ac_try" in
 
19745
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19746
  *) ac_try_echo=$ac_try;;
 
19747
esac
 
19748
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19749
  (eval "$ac_compile") 2>conftest.er1
 
19750
  ac_status=$?
 
19751
  grep -v '^ *+' conftest.er1 >conftest.err
 
19752
  rm -f conftest.er1
 
19753
  cat conftest.err >&5
 
19754
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19755
  (exit $ac_status); } && {
 
19756
         test -z "$ac_c_werror_flag" ||
 
19757
         test ! -s conftest.err
 
19758
       } && test -s conftest.$ac_objext; then
10856
19759
  ac_cv_prog_cc_g=yes
10857
 
fi
10858
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10859
 
fi
10860
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10861
 
fi
 
19760
else
 
19761
  echo "$as_me: failed program was:" >&5
 
19762
sed 's/^/| /' conftest.$ac_ext >&5
 
19763
 
 
19764
 
 
19765
fi
 
19766
 
 
19767
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
19768
fi
 
19769
 
 
19770
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
19771
fi
 
19772
 
10862
19773
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10863
19774
   ac_c_werror_flag=$ac_save_c_werror_flag
10864
19775
fi
10865
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
10866
 
$as_echo "$ac_cv_prog_cc_g" >&6; }
 
19776
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
19777
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
10867
19778
if test "$ac_test_CFLAGS" = set; then
10868
19779
  CFLAGS=$ac_save_CFLAGS
10869
19780
elif test $ac_cv_prog_cc_g = yes; then
10879
19790
    CFLAGS=
10880
19791
  fi
10881
19792
fi
10882
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
10883
 
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
10884
 
if test "${ac_cv_prog_cc_c89+set}" = set; then :
10885
 
  $as_echo_n "(cached) " >&6
 
19793
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
 
19794
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
 
19795
if test "${ac_cv_prog_cc_c89+set}" = set; then
 
19796
  echo $ECHO_N "(cached) $ECHO_C" >&6
10886
19797
else
10887
19798
  ac_cv_prog_cc_c89=no
10888
19799
ac_save_CC=$CC
10889
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
19800
cat >conftest.$ac_ext <<_ACEOF
 
19801
/* confdefs.h.  */
 
19802
_ACEOF
 
19803
cat confdefs.h >>conftest.$ac_ext
 
19804
cat >>conftest.$ac_ext <<_ACEOF
10890
19805
/* end confdefs.h.  */
10891
19806
#include <stdarg.h>
10892
19807
#include <stdio.h>
10943
19858
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10944
19859
do
10945
19860
  CC="$ac_save_CC $ac_arg"
10946
 
  if ac_fn_c_try_compile "$LINENO"; then :
 
19861
  rm -f conftest.$ac_objext
 
19862
if { (ac_try="$ac_compile"
 
19863
case "(($ac_try" in
 
19864
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19865
  *) ac_try_echo=$ac_try;;
 
19866
esac
 
19867
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19868
  (eval "$ac_compile") 2>conftest.er1
 
19869
  ac_status=$?
 
19870
  grep -v '^ *+' conftest.er1 >conftest.err
 
19871
  rm -f conftest.er1
 
19872
  cat conftest.err >&5
 
19873
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19874
  (exit $ac_status); } && {
 
19875
         test -z "$ac_c_werror_flag" ||
 
19876
         test ! -s conftest.err
 
19877
       } && test -s conftest.$ac_objext; then
10947
19878
  ac_cv_prog_cc_c89=$ac_arg
 
19879
else
 
19880
  echo "$as_me: failed program was:" >&5
 
19881
sed 's/^/| /' conftest.$ac_ext >&5
 
19882
 
 
19883
 
10948
19884
fi
 
19885
 
10949
19886
rm -f core conftest.err conftest.$ac_objext
10950
19887
  test "x$ac_cv_prog_cc_c89" != "xno" && break
10951
19888
done
10956
19893
# AC_CACHE_VAL
10957
19894
case "x$ac_cv_prog_cc_c89" in
10958
19895
  x)
10959
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
10960
 
$as_echo "none needed" >&6; } ;;
 
19896
    { echo "$as_me:$LINENO: result: none needed" >&5
 
19897
echo "${ECHO_T}none needed" >&6; } ;;
10961
19898
  xno)
10962
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
10963
 
$as_echo "unsupported" >&6; } ;;
 
19899
    { echo "$as_me:$LINENO: result: unsupported" >&5
 
19900
echo "${ECHO_T}unsupported" >&6; } ;;
10964
19901
  *)
10965
19902
    CC="$CC $ac_cv_prog_cc_c89"
10966
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
10967
 
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 
19903
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
 
19904
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
10968
19905
esac
10969
 
if test "x$ac_cv_prog_cc_c89" != xno; then :
10970
19906
 
10971
 
fi
10972
19907
 
10973
19908
ac_ext=c
10974
19909
ac_cpp='$CPP $CPPFLAGS'
10978
19913
 
10979
19914
depcc="$CC"   am_compiler_list=
10980
19915
 
10981
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10982
 
$as_echo_n "checking dependency style of $depcc... " >&6; }
10983
 
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
10984
 
  $as_echo_n "(cached) " >&6
 
19916
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
19917
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
 
19918
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
19919
  echo $ECHO_N "(cached) $ECHO_C" >&6
10985
19920
else
10986
19921
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10987
19922
  # We make a subdir and do the tests there.  Otherwise we can end up
11006
19941
  if test "$am_compiler_list" = ""; then
11007
19942
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11008
19943
  fi
11009
 
  am__universal=false
11010
 
  case " $depcc " in #(
11011
 
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
11012
 
     esac
11013
 
 
11014
19944
  for depmode in $am_compiler_list; do
11015
19945
    # Setup a source with many dependencies, because some compilers
11016
19946
    # like to wrap large dependency lists on column 80 (with \), and
11028
19958
    done
11029
19959
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11030
19960
 
11031
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
11032
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
11033
 
    # handle `-M -o', and we need to detect this.  Also, some Intel
11034
 
    # versions had trouble with output in subdirs
11035
 
    am__obj=sub/conftest.${OBJEXT-o}
11036
 
    am__minus_obj="-o $am__obj"
11037
19961
    case $depmode in
11038
 
    gcc)
11039
 
      # This depmode causes a compiler race in universal mode.
11040
 
      test "$am__universal" = false || continue
11041
 
      ;;
11042
19962
    nosideeffect)
11043
19963
      # after this tag, mechanisms are not by side-effect, so they'll
11044
19964
      # only be used when explicitly requested
11048
19968
        break
11049
19969
      fi
11050
19970
      ;;
11051
 
    msvisualcpp | msvcmsys)
11052
 
      # This compiler won't grok `-c -o', but also, the minuso test has
11053
 
      # not run yet.  These depmodes are late enough in the game, and
11054
 
      # so weak that their functioning should not be impacted.
11055
 
      am__obj=conftest.${OBJEXT-o}
11056
 
      am__minus_obj=
11057
 
      ;;
11058
19971
    none) break ;;
11059
19972
    esac
 
19973
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
19974
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
19975
    # handle `-M -o', and we need to detect this.
11060
19976
    if depmode=$depmode \
11061
 
       source=sub/conftest.c object=$am__obj \
 
19977
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
11062
19978
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11063
 
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
19979
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
11064
19980
         >/dev/null 2>conftest.err &&
11065
 
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11066
19981
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11067
 
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
19982
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
11068
19983
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11069
19984
      # icc doesn't choke on unknown options, it will just issue warnings
11070
19985
      # or remarks (even with -Werror).  So we grep stderr for any message
11088
20003
fi
11089
20004
 
11090
20005
fi
11091
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
11092
 
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
 
20006
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
20007
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
11093
20008
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11094
20009
 
11095
 
 if
 
20010
 
 
20011
 
 
20012
if
11096
20013
  test "x$enable_dependency_tracking" != xno \
11097
20014
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11098
20015
  am__fastdepCC_TRUE=
11104
20021
 
11105
20022
 
11106
20023
 
11107
 
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11108
 
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11109
 
if test "${ac_cv_c_bigendian+set}" = set; then :
11110
 
  $as_echo_n "(cached) " >&6
 
20024
{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
 
20025
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
 
20026
if test "${ac_cv_c_bigendian+set}" = set; then
 
20027
  echo $ECHO_N "(cached) $ECHO_C" >&6
11111
20028
else
11112
 
  ac_cv_c_bigendian=unknown
11113
 
    # See if we're dealing with a universal compiler.
11114
 
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11115
 
/* end confdefs.h.  */
11116
 
#ifndef __APPLE_CC__
11117
 
               not a universal capable compiler
11118
 
             #endif
11119
 
             typedef int dummy;
11120
 
 
 
20029
  # See if sys/param.h defines the BYTE_ORDER macro.
 
20030
cat >conftest.$ac_ext <<_ACEOF
 
20031
/* confdefs.h.  */
11121
20032
_ACEOF
11122
 
if ac_fn_c_try_compile "$LINENO"; then :
11123
 
 
11124
 
        # Check for potential -arch flags.  It is not universal unless
11125
 
        # there are at least two -arch flags with different values.
11126
 
        ac_arch=
11127
 
        ac_prev=
11128
 
        for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11129
 
         if test -n "$ac_prev"; then
11130
 
           case $ac_word in
11131
 
             i?86 | x86_64 | ppc | ppc64)
11132
 
               if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11133
 
                 ac_arch=$ac_word
11134
 
               else
11135
 
                 ac_cv_c_bigendian=universal
11136
 
                 break
11137
 
               fi
11138
 
               ;;
11139
 
           esac
11140
 
           ac_prev=
11141
 
         elif test "x$ac_word" = "x-arch"; then
11142
 
           ac_prev=arch
11143
 
         fi
11144
 
       done
11145
 
fi
11146
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11147
 
    if test $ac_cv_c_bigendian = unknown; then
11148
 
      # See if sys/param.h defines the BYTE_ORDER macro.
11149
 
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
20033
cat confdefs.h >>conftest.$ac_ext
 
20034
cat >>conftest.$ac_ext <<_ACEOF
11150
20035
/* end confdefs.h.  */
11151
20036
#include <sys/types.h>
11152
 
             #include <sys/param.h>
 
20037
#include <sys/param.h>
11153
20038
 
11154
20039
int
11155
20040
main ()
11156
20041
{
11157
 
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11158
 
                     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11159
 
                     && LITTLE_ENDIAN)
11160
 
              bogus endian macros
11161
 
             #endif
 
20042
#if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
 
20043
        && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
 
20044
 bogus endian macros
 
20045
#endif
11162
20046
 
11163
20047
  ;
11164
20048
  return 0;
11165
20049
}
11166
20050
_ACEOF
11167
 
if ac_fn_c_try_compile "$LINENO"; then :
 
20051
rm -f conftest.$ac_objext
 
20052
if { (ac_try="$ac_compile"
 
20053
case "(($ac_try" in
 
20054
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20055
  *) ac_try_echo=$ac_try;;
 
20056
esac
 
20057
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20058
  (eval "$ac_compile") 2>conftest.er1
 
20059
  ac_status=$?
 
20060
  grep -v '^ *+' conftest.er1 >conftest.err
 
20061
  rm -f conftest.er1
 
20062
  cat conftest.err >&5
 
20063
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20064
  (exit $ac_status); } && {
 
20065
         test -z "$ac_c_werror_flag" ||
 
20066
         test ! -s conftest.err
 
20067
       } && test -s conftest.$ac_objext; then
11168
20068
  # It does; now see whether it defined to BIG_ENDIAN or not.
11169
 
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
20069
cat >conftest.$ac_ext <<_ACEOF
 
20070
/* confdefs.h.  */
 
20071
_ACEOF
 
20072
cat confdefs.h >>conftest.$ac_ext
 
20073
cat >>conftest.$ac_ext <<_ACEOF
11170
20074
/* end confdefs.h.  */
11171
20075
#include <sys/types.h>
11172
 
                #include <sys/param.h>
 
20076
#include <sys/param.h>
11173
20077
 
11174
20078
int
11175
20079
main ()
11176
20080
{
11177
20081
#if BYTE_ORDER != BIG_ENDIAN
11178
 
                 not big endian
11179
 
                #endif
11180
 
 
11181
 
  ;
11182
 
  return 0;
11183
 
}
11184
 
_ACEOF
11185
 
if ac_fn_c_try_compile "$LINENO"; then :
11186
 
  ac_cv_c_bigendian=yes
11187
 
else
11188
 
  ac_cv_c_bigendian=no
11189
 
fi
11190
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11191
 
fi
11192
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11193
 
    fi
11194
 
    if test $ac_cv_c_bigendian = unknown; then
11195
 
      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11196
 
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11197
 
/* end confdefs.h.  */
11198
 
#include <limits.h>
11199
 
 
11200
 
int
11201
 
main ()
11202
 
{
11203
 
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11204
 
              bogus endian macros
11205
 
             #endif
11206
 
 
11207
 
  ;
11208
 
  return 0;
11209
 
}
11210
 
_ACEOF
11211
 
if ac_fn_c_try_compile "$LINENO"; then :
11212
 
  # It does; now see whether it defined to _BIG_ENDIAN or not.
11213
 
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11214
 
/* end confdefs.h.  */
11215
 
#include <limits.h>
11216
 
 
11217
 
int
11218
 
main ()
11219
 
{
11220
 
#ifndef _BIG_ENDIAN
11221
 
                 not big endian
11222
 
                #endif
11223
 
 
11224
 
  ;
11225
 
  return 0;
11226
 
}
11227
 
_ACEOF
11228
 
if ac_fn_c_try_compile "$LINENO"; then :
11229
 
  ac_cv_c_bigendian=yes
11230
 
else
11231
 
  ac_cv_c_bigendian=no
11232
 
fi
11233
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11234
 
fi
11235
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11236
 
    fi
11237
 
    if test $ac_cv_c_bigendian = unknown; then
11238
 
      # Compile a test program.
11239
 
      if test "$cross_compiling" = yes; then :
11240
 
  # Try to guess by grepping values from an object file.
11241
 
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11242
 
/* end confdefs.h.  */
11243
 
short int ascii_mm[] =
11244
 
                  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11245
 
                short int ascii_ii[] =
11246
 
                  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11247
 
                int use_ascii (int i) {
11248
 
                  return ascii_mm[i] + ascii_ii[i];
11249
 
                }
11250
 
                short int ebcdic_ii[] =
11251
 
                  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11252
 
                short int ebcdic_mm[] =
11253
 
                  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11254
 
                int use_ebcdic (int i) {
11255
 
                  return ebcdic_mm[i] + ebcdic_ii[i];
11256
 
                }
11257
 
                extern int foo;
11258
 
 
11259
 
int
11260
 
main ()
11261
 
{
11262
 
return use_ascii (foo) == use_ebcdic (foo);
11263
 
  ;
11264
 
  return 0;
11265
 
}
11266
 
_ACEOF
11267
 
if ac_fn_c_try_compile "$LINENO"; then :
11268
 
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
11269
 
              ac_cv_c_bigendian=yes
11270
 
            fi
11271
 
            if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11272
 
              if test "$ac_cv_c_bigendian" = unknown; then
11273
 
                ac_cv_c_bigendian=no
11274
 
              else
11275
 
                # finding both strings is unlikely to happen, but who knows?
11276
 
                ac_cv_c_bigendian=unknown
11277
 
              fi
11278
 
            fi
11279
 
fi
11280
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11281
 
else
11282
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
20082
 not big endian
 
20083
#endif
 
20084
 
 
20085
  ;
 
20086
  return 0;
 
20087
}
 
20088
_ACEOF
 
20089
rm -f conftest.$ac_objext
 
20090
if { (ac_try="$ac_compile"
 
20091
case "(($ac_try" in
 
20092
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20093
  *) ac_try_echo=$ac_try;;
 
20094
esac
 
20095
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20096
  (eval "$ac_compile") 2>conftest.er1
 
20097
  ac_status=$?
 
20098
  grep -v '^ *+' conftest.er1 >conftest.err
 
20099
  rm -f conftest.er1
 
20100
  cat conftest.err >&5
 
20101
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20102
  (exit $ac_status); } && {
 
20103
         test -z "$ac_c_werror_flag" ||
 
20104
         test ! -s conftest.err
 
20105
       } && test -s conftest.$ac_objext; then
 
20106
  ac_cv_c_bigendian=yes
 
20107
else
 
20108
  echo "$as_me: failed program was:" >&5
 
20109
sed 's/^/| /' conftest.$ac_ext >&5
 
20110
 
 
20111
        ac_cv_c_bigendian=no
 
20112
fi
 
20113
 
 
20114
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20115
else
 
20116
  echo "$as_me: failed program was:" >&5
 
20117
sed 's/^/| /' conftest.$ac_ext >&5
 
20118
 
 
20119
        # It does not; compile a test program.
 
20120
if test "$cross_compiling" = yes; then
 
20121
  # try to guess the endianness by grepping values into an object file
 
20122
  ac_cv_c_bigendian=unknown
 
20123
  cat >conftest.$ac_ext <<_ACEOF
 
20124
/* confdefs.h.  */
 
20125
_ACEOF
 
20126
cat confdefs.h >>conftest.$ac_ext
 
20127
cat >>conftest.$ac_ext <<_ACEOF
 
20128
/* end confdefs.h.  */
 
20129
short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
 
20130
short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
 
20131
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
 
20132
short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
 
20133
short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
 
20134
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
 
20135
int
 
20136
main ()
 
20137
{
 
20138
 _ascii (); _ebcdic ();
 
20139
  ;
 
20140
  return 0;
 
20141
}
 
20142
_ACEOF
 
20143
rm -f conftest.$ac_objext
 
20144
if { (ac_try="$ac_compile"
 
20145
case "(($ac_try" in
 
20146
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20147
  *) ac_try_echo=$ac_try;;
 
20148
esac
 
20149
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20150
  (eval "$ac_compile") 2>conftest.er1
 
20151
  ac_status=$?
 
20152
  grep -v '^ *+' conftest.er1 >conftest.err
 
20153
  rm -f conftest.er1
 
20154
  cat conftest.err >&5
 
20155
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20156
  (exit $ac_status); } && {
 
20157
         test -z "$ac_c_werror_flag" ||
 
20158
         test ! -s conftest.err
 
20159
       } && test -s conftest.$ac_objext; then
 
20160
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
 
20161
  ac_cv_c_bigendian=yes
 
20162
fi
 
20163
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
 
20164
  if test "$ac_cv_c_bigendian" = unknown; then
 
20165
    ac_cv_c_bigendian=no
 
20166
  else
 
20167
    # finding both strings is unlikely to happen, but who knows?
 
20168
    ac_cv_c_bigendian=unknown
 
20169
  fi
 
20170
fi
 
20171
else
 
20172
  echo "$as_me: failed program was:" >&5
 
20173
sed 's/^/| /' conftest.$ac_ext >&5
 
20174
 
 
20175
 
 
20176
fi
 
20177
 
 
20178
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20179
else
 
20180
  cat >conftest.$ac_ext <<_ACEOF
 
20181
/* confdefs.h.  */
 
20182
_ACEOF
 
20183
cat confdefs.h >>conftest.$ac_ext
 
20184
cat >>conftest.$ac_ext <<_ACEOF
11283
20185
/* end confdefs.h.  */
11284
20186
$ac_includes_default
11285
20187
int
11286
20188
main ()
11287
20189
{
11288
20190
 
11289
 
             /* Are we little or big endian?  From Harbison&Steele.  */
11290
 
             union
11291
 
             {
11292
 
               long int l;
11293
 
               char c[sizeof (long int)];
11294
 
             } u;
11295
 
             u.l = 1;
11296
 
             return u.c[sizeof (long int) - 1] == 1;
 
20191
  /* Are we little or big endian?  From Harbison&Steele.  */
 
20192
  union
 
20193
  {
 
20194
    long int l;
 
20195
    char c[sizeof (long int)];
 
20196
  } u;
 
20197
  u.l = 1;
 
20198
  return u.c[sizeof (long int) - 1] == 1;
11297
20199
 
11298
20200
  ;
11299
20201
  return 0;
11300
20202
}
11301
20203
_ACEOF
11302
 
if ac_fn_c_try_run "$LINENO"; then :
 
20204
rm -f conftest$ac_exeext
 
20205
if { (ac_try="$ac_link"
 
20206
case "(($ac_try" in
 
20207
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20208
  *) ac_try_echo=$ac_try;;
 
20209
esac
 
20210
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20211
  (eval "$ac_link") 2>&5
 
20212
  ac_status=$?
 
20213
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20214
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
20215
  { (case "(($ac_try" in
 
20216
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20217
  *) ac_try_echo=$ac_try;;
 
20218
esac
 
20219
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20220
  (eval "$ac_try") 2>&5
 
20221
  ac_status=$?
 
20222
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20223
  (exit $ac_status); }; }; then
11303
20224
  ac_cv_c_bigendian=no
11304
20225
else
11305
 
  ac_cv_c_bigendian=yes
11306
 
fi
11307
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11308
 
  conftest.$ac_objext conftest.beam conftest.$ac_ext
11309
 
fi
11310
 
 
11311
 
    fi
11312
 
fi
11313
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
11314
 
$as_echo "$ac_cv_c_bigendian" >&6; }
11315
 
 case $ac_cv_c_bigendian in #(
11316
 
   yes)
11317
 
     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
11318
 
;; #(
11319
 
   no)
11320
 
      ;; #(
11321
 
   universal)
11322
 
 
11323
 
$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
11324
 
 
11325
 
     ;; #(
11326
 
   *)
11327
 
     as_fn_error "unknown endianness
11328
 
 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
11329
 
 esac
11330
 
 
11331
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11332
 
$as_echo_n "checking for ANSI C header files... " >&6; }
11333
 
if test "${ac_cv_header_stdc+set}" = set; then :
11334
 
  $as_echo_n "(cached) " >&6
 
20226
  echo "$as_me: program exited with status $ac_status" >&5
 
20227
echo "$as_me: failed program was:" >&5
 
20228
sed 's/^/| /' conftest.$ac_ext >&5
 
20229
 
 
20230
( exit $ac_status )
 
20231
ac_cv_c_bigendian=yes
 
20232
fi
 
20233
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
20234
fi
 
20235
 
 
20236
 
 
20237
fi
 
20238
 
 
20239
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20240
fi
 
20241
{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
 
20242
echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
 
20243
case $ac_cv_c_bigendian in
 
20244
  yes)
 
20245
 
 
20246
cat >>confdefs.h <<\_ACEOF
 
20247
#define WORDS_BIGENDIAN 1
 
20248
_ACEOF
 
20249
 ;;
 
20250
  no)
 
20251
     ;;
 
20252
  *)
 
20253
    { { echo "$as_me:$LINENO: error: unknown endianness
 
20254
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
 
20255
echo "$as_me: error: unknown endianness
 
20256
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
 
20257
   { (exit 1); exit 1; }; } ;;
 
20258
esac
 
20259
 
 
20260
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
20261
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
 
20262
if test "${ac_cv_header_stdc+set}" = set; then
 
20263
  echo $ECHO_N "(cached) $ECHO_C" >&6
11335
20264
else
11336
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
20265
  cat >conftest.$ac_ext <<_ACEOF
 
20266
/* confdefs.h.  */
 
20267
_ACEOF
 
20268
cat confdefs.h >>conftest.$ac_ext
 
20269
cat >>conftest.$ac_ext <<_ACEOF
11337
20270
/* end confdefs.h.  */
11338
20271
#include <stdlib.h>
11339
20272
#include <stdarg.h>
11348
20281
  return 0;
11349
20282
}
11350
20283
_ACEOF
11351
 
if ac_fn_c_try_compile "$LINENO"; then :
 
20284
rm -f conftest.$ac_objext
 
20285
if { (ac_try="$ac_compile"
 
20286
case "(($ac_try" in
 
20287
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20288
  *) ac_try_echo=$ac_try;;
 
20289
esac
 
20290
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20291
  (eval "$ac_compile") 2>conftest.er1
 
20292
  ac_status=$?
 
20293
  grep -v '^ *+' conftest.er1 >conftest.err
 
20294
  rm -f conftest.er1
 
20295
  cat conftest.err >&5
 
20296
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20297
  (exit $ac_status); } && {
 
20298
         test -z "$ac_c_werror_flag" ||
 
20299
         test ! -s conftest.err
 
20300
       } && test -s conftest.$ac_objext; then
11352
20301
  ac_cv_header_stdc=yes
11353
20302
else
11354
 
  ac_cv_header_stdc=no
 
20303
  echo "$as_me: failed program was:" >&5
 
20304
sed 's/^/| /' conftest.$ac_ext >&5
 
20305
 
 
20306
        ac_cv_header_stdc=no
11355
20307
fi
 
20308
 
11356
20309
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11357
20310
 
11358
20311
if test $ac_cv_header_stdc = yes; then
11359
20312
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11360
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
20313
  cat >conftest.$ac_ext <<_ACEOF
 
20314
/* confdefs.h.  */
 
20315
_ACEOF
 
20316
cat confdefs.h >>conftest.$ac_ext
 
20317
cat >>conftest.$ac_ext <<_ACEOF
11361
20318
/* end confdefs.h.  */
11362
20319
#include <string.h>
11363
20320
 
11364
20321
_ACEOF
11365
20322
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11366
 
  $EGREP "memchr" >/dev/null 2>&1; then :
11367
 
 
 
20323
  $EGREP "memchr" >/dev/null 2>&1; then
 
20324
  :
11368
20325
else
11369
20326
  ac_cv_header_stdc=no
11370
20327
fi
11374
20331
 
11375
20332
if test $ac_cv_header_stdc = yes; then
11376
20333
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11377
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
20334
  cat >conftest.$ac_ext <<_ACEOF
 
20335
/* confdefs.h.  */
 
20336
_ACEOF
 
20337
cat confdefs.h >>conftest.$ac_ext
 
20338
cat >>conftest.$ac_ext <<_ACEOF
11378
20339
/* end confdefs.h.  */
11379
20340
#include <stdlib.h>
11380
20341
 
11381
20342
_ACEOF
11382
20343
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11383
 
  $EGREP "free" >/dev/null 2>&1; then :
11384
 
 
 
20344
  $EGREP "free" >/dev/null 2>&1; then
 
20345
  :
11385
20346
else
11386
20347
  ac_cv_header_stdc=no
11387
20348
fi
11391
20352
 
11392
20353
if test $ac_cv_header_stdc = yes; then
11393
20354
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11394
 
  if test "$cross_compiling" = yes; then :
 
20355
  if test "$cross_compiling" = yes; then
11395
20356
  :
11396
20357
else
11397
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
20358
  cat >conftest.$ac_ext <<_ACEOF
 
20359
/* confdefs.h.  */
 
20360
_ACEOF
 
20361
cat confdefs.h >>conftest.$ac_ext
 
20362
cat >>conftest.$ac_ext <<_ACEOF
11398
20363
/* end confdefs.h.  */
11399
20364
#include <ctype.h>
11400
20365
#include <stdlib.h>
11421
20386
  return 0;
11422
20387
}
11423
20388
_ACEOF
11424
 
if ac_fn_c_try_run "$LINENO"; then :
11425
 
 
 
20389
rm -f conftest$ac_exeext
 
20390
if { (ac_try="$ac_link"
 
20391
case "(($ac_try" in
 
20392
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20393
  *) ac_try_echo=$ac_try;;
 
20394
esac
 
20395
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20396
  (eval "$ac_link") 2>&5
 
20397
  ac_status=$?
 
20398
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20399
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
20400
  { (case "(($ac_try" in
 
20401
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20402
  *) ac_try_echo=$ac_try;;
 
20403
esac
 
20404
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20405
  (eval "$ac_try") 2>&5
 
20406
  ac_status=$?
 
20407
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20408
  (exit $ac_status); }; }; then
 
20409
  :
11426
20410
else
11427
 
  ac_cv_header_stdc=no
11428
 
fi
11429
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11430
 
  conftest.$ac_objext conftest.beam conftest.$ac_ext
11431
 
fi
11432
 
 
11433
 
fi
11434
 
fi
11435
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11436
 
$as_echo "$ac_cv_header_stdc" >&6; }
 
20411
  echo "$as_me: program exited with status $ac_status" >&5
 
20412
echo "$as_me: failed program was:" >&5
 
20413
sed 's/^/| /' conftest.$ac_ext >&5
 
20414
 
 
20415
( exit $ac_status )
 
20416
ac_cv_header_stdc=no
 
20417
fi
 
20418
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
20419
fi
 
20420
 
 
20421
 
 
20422
fi
 
20423
fi
 
20424
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
20425
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
11437
20426
if test $ac_cv_header_stdc = yes; then
11438
20427
 
11439
 
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
 
20428
cat >>confdefs.h <<\_ACEOF
 
20429
#define STDC_HEADERS 1
 
20430
_ACEOF
11440
20431
 
11441
20432
fi
11442
20433
 
11443
20434
# Check whether --enable-largefile was given.
11444
 
if test "${enable_largefile+set}" = set; then :
 
20435
if test "${enable_largefile+set}" = set; then
11445
20436
  enableval=$enable_largefile;
11446
20437
fi
11447
20438
 
11448
20439
if test "$enable_largefile" != no; then
11449
20440
 
11450
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11451
 
$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11452
 
if test "${ac_cv_sys_largefile_CC+set}" = set; then :
11453
 
  $as_echo_n "(cached) " >&6
 
20441
  { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
 
20442
echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
 
20443
if test "${ac_cv_sys_largefile_CC+set}" = set; then
 
20444
  echo $ECHO_N "(cached) $ECHO_C" >&6
11454
20445
else
11455
20446
  ac_cv_sys_largefile_CC=no
11456
20447
     if test "$GCC" != yes; then
11458
20449
       while :; do
11459
20450
         # IRIX 6.2 and later do not support large files by default,
11460
20451
         # so use the C compiler's -n32 option if that helps.
11461
 
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
20452
         cat >conftest.$ac_ext <<_ACEOF
 
20453
/* confdefs.h.  */
 
20454
_ACEOF
 
20455
cat confdefs.h >>conftest.$ac_ext
 
20456
cat >>conftest.$ac_ext <<_ACEOF
11462
20457
/* end confdefs.h.  */
11463
20458
#include <sys/types.h>
11464
20459
 /* Check that off_t can represent 2**63 - 1 correctly.
11477
20472
  return 0;
11478
20473
}
11479
20474
_ACEOF
11480
 
         if ac_fn_c_try_compile "$LINENO"; then :
 
20475
         rm -f conftest.$ac_objext
 
20476
if { (ac_try="$ac_compile"
 
20477
case "(($ac_try" in
 
20478
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20479
  *) ac_try_echo=$ac_try;;
 
20480
esac
 
20481
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20482
  (eval "$ac_compile") 2>conftest.er1
 
20483
  ac_status=$?
 
20484
  grep -v '^ *+' conftest.er1 >conftest.err
 
20485
  rm -f conftest.er1
 
20486
  cat conftest.err >&5
 
20487
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20488
  (exit $ac_status); } && {
 
20489
         test -z "$ac_c_werror_flag" ||
 
20490
         test ! -s conftest.err
 
20491
       } && test -s conftest.$ac_objext; then
11481
20492
  break
 
20493
else
 
20494
  echo "$as_me: failed program was:" >&5
 
20495
sed 's/^/| /' conftest.$ac_ext >&5
 
20496
 
 
20497
 
11482
20498
fi
 
20499
 
11483
20500
rm -f core conftest.err conftest.$ac_objext
11484
20501
         CC="$CC -n32"
11485
 
         if ac_fn_c_try_compile "$LINENO"; then :
 
20502
         rm -f conftest.$ac_objext
 
20503
if { (ac_try="$ac_compile"
 
20504
case "(($ac_try" in
 
20505
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20506
  *) ac_try_echo=$ac_try;;
 
20507
esac
 
20508
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20509
  (eval "$ac_compile") 2>conftest.er1
 
20510
  ac_status=$?
 
20511
  grep -v '^ *+' conftest.er1 >conftest.err
 
20512
  rm -f conftest.er1
 
20513
  cat conftest.err >&5
 
20514
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20515
  (exit $ac_status); } && {
 
20516
         test -z "$ac_c_werror_flag" ||
 
20517
         test ! -s conftest.err
 
20518
       } && test -s conftest.$ac_objext; then
11486
20519
  ac_cv_sys_largefile_CC=' -n32'; break
 
20520
else
 
20521
  echo "$as_me: failed program was:" >&5
 
20522
sed 's/^/| /' conftest.$ac_ext >&5
 
20523
 
 
20524
 
11487
20525
fi
 
20526
 
11488
20527
rm -f core conftest.err conftest.$ac_objext
11489
20528
         break
11490
20529
       done
11492
20531
       rm -f conftest.$ac_ext
11493
20532
    fi
11494
20533
fi
11495
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11496
 
$as_echo "$ac_cv_sys_largefile_CC" >&6; }
 
20534
{ echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
 
20535
echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
11497
20536
  if test "$ac_cv_sys_largefile_CC" != no; then
11498
20537
    CC=$CC$ac_cv_sys_largefile_CC
11499
20538
  fi
11500
20539
 
11501
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11502
 
$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11503
 
if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
11504
 
  $as_echo_n "(cached) " >&6
 
20540
  { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
 
20541
echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
 
20542
if test "${ac_cv_sys_file_offset_bits+set}" = set; then
 
20543
  echo $ECHO_N "(cached) $ECHO_C" >&6
11505
20544
else
11506
20545
  while :; do
11507
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
20546
  cat >conftest.$ac_ext <<_ACEOF
 
20547
/* confdefs.h.  */
 
20548
_ACEOF
 
20549
cat confdefs.h >>conftest.$ac_ext
 
20550
cat >>conftest.$ac_ext <<_ACEOF
11508
20551
/* end confdefs.h.  */
11509
20552
#include <sys/types.h>
11510
20553
 /* Check that off_t can represent 2**63 - 1 correctly.
11523
20566
  return 0;
11524
20567
}
11525
20568
_ACEOF
11526
 
if ac_fn_c_try_compile "$LINENO"; then :
 
20569
rm -f conftest.$ac_objext
 
20570
if { (ac_try="$ac_compile"
 
20571
case "(($ac_try" in
 
20572
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20573
  *) ac_try_echo=$ac_try;;
 
20574
esac
 
20575
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20576
  (eval "$ac_compile") 2>conftest.er1
 
20577
  ac_status=$?
 
20578
  grep -v '^ *+' conftest.er1 >conftest.err
 
20579
  rm -f conftest.er1
 
20580
  cat conftest.err >&5
 
20581
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20582
  (exit $ac_status); } && {
 
20583
         test -z "$ac_c_werror_flag" ||
 
20584
         test ! -s conftest.err
 
20585
       } && test -s conftest.$ac_objext; then
11527
20586
  ac_cv_sys_file_offset_bits=no; break
 
20587
else
 
20588
  echo "$as_me: failed program was:" >&5
 
20589
sed 's/^/| /' conftest.$ac_ext >&5
 
20590
 
 
20591
 
11528
20592
fi
 
20593
 
11529
20594
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11530
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
20595
  cat >conftest.$ac_ext <<_ACEOF
 
20596
/* confdefs.h.  */
 
20597
_ACEOF
 
20598
cat confdefs.h >>conftest.$ac_ext
 
20599
cat >>conftest.$ac_ext <<_ACEOF
11531
20600
/* end confdefs.h.  */
11532
20601
#define _FILE_OFFSET_BITS 64
11533
20602
#include <sys/types.h>
11547
20616
  return 0;
11548
20617
}
11549
20618
_ACEOF
11550
 
if ac_fn_c_try_compile "$LINENO"; then :
 
20619
rm -f conftest.$ac_objext
 
20620
if { (ac_try="$ac_compile"
 
20621
case "(($ac_try" in
 
20622
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20623
  *) ac_try_echo=$ac_try;;
 
20624
esac
 
20625
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20626
  (eval "$ac_compile") 2>conftest.er1
 
20627
  ac_status=$?
 
20628
  grep -v '^ *+' conftest.er1 >conftest.err
 
20629
  rm -f conftest.er1
 
20630
  cat conftest.err >&5
 
20631
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20632
  (exit $ac_status); } && {
 
20633
         test -z "$ac_c_werror_flag" ||
 
20634
         test ! -s conftest.err
 
20635
       } && test -s conftest.$ac_objext; then
11551
20636
  ac_cv_sys_file_offset_bits=64; break
 
20637
else
 
20638
  echo "$as_me: failed program was:" >&5
 
20639
sed 's/^/| /' conftest.$ac_ext >&5
 
20640
 
 
20641
 
11552
20642
fi
 
20643
 
11553
20644
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11554
20645
  ac_cv_sys_file_offset_bits=unknown
11555
20646
  break
11556
20647
done
11557
20648
fi
11558
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11559
 
$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
 
20649
{ echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
 
20650
echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
11560
20651
case $ac_cv_sys_file_offset_bits in #(
11561
20652
  no | unknown) ;;
11562
20653
  *)
11565
20656
_ACEOF
11566
20657
;;
11567
20658
esac
11568
 
rm -rf conftest*
 
20659
rm -f conftest*
11569
20660
  if test $ac_cv_sys_file_offset_bits = unknown; then
11570
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11571
 
$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
11572
 
if test "${ac_cv_sys_large_files+set}" = set; then :
11573
 
  $as_echo_n "(cached) " >&6
 
20661
    { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
 
20662
echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
 
20663
if test "${ac_cv_sys_large_files+set}" = set; then
 
20664
  echo $ECHO_N "(cached) $ECHO_C" >&6
11574
20665
else
11575
20666
  while :; do
11576
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
20667
  cat >conftest.$ac_ext <<_ACEOF
 
20668
/* confdefs.h.  */
 
20669
_ACEOF
 
20670
cat confdefs.h >>conftest.$ac_ext
 
20671
cat >>conftest.$ac_ext <<_ACEOF
11577
20672
/* end confdefs.h.  */
11578
20673
#include <sys/types.h>
11579
20674
 /* Check that off_t can represent 2**63 - 1 correctly.
11592
20687
  return 0;
11593
20688
}
11594
20689
_ACEOF
11595
 
if ac_fn_c_try_compile "$LINENO"; then :
 
20690
rm -f conftest.$ac_objext
 
20691
if { (ac_try="$ac_compile"
 
20692
case "(($ac_try" in
 
20693
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20694
  *) ac_try_echo=$ac_try;;
 
20695
esac
 
20696
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20697
  (eval "$ac_compile") 2>conftest.er1
 
20698
  ac_status=$?
 
20699
  grep -v '^ *+' conftest.er1 >conftest.err
 
20700
  rm -f conftest.er1
 
20701
  cat conftest.err >&5
 
20702
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20703
  (exit $ac_status); } && {
 
20704
         test -z "$ac_c_werror_flag" ||
 
20705
         test ! -s conftest.err
 
20706
       } && test -s conftest.$ac_objext; then
11596
20707
  ac_cv_sys_large_files=no; break
 
20708
else
 
20709
  echo "$as_me: failed program was:" >&5
 
20710
sed 's/^/| /' conftest.$ac_ext >&5
 
20711
 
 
20712
 
11597
20713
fi
 
20714
 
11598
20715
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11599
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
20716
  cat >conftest.$ac_ext <<_ACEOF
 
20717
/* confdefs.h.  */
 
20718
_ACEOF
 
20719
cat confdefs.h >>conftest.$ac_ext
 
20720
cat >>conftest.$ac_ext <<_ACEOF
11600
20721
/* end confdefs.h.  */
11601
20722
#define _LARGE_FILES 1
11602
20723
#include <sys/types.h>
11616
20737
  return 0;
11617
20738
}
11618
20739
_ACEOF
11619
 
if ac_fn_c_try_compile "$LINENO"; then :
 
20740
rm -f conftest.$ac_objext
 
20741
if { (ac_try="$ac_compile"
 
20742
case "(($ac_try" in
 
20743
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20744
  *) ac_try_echo=$ac_try;;
 
20745
esac
 
20746
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20747
  (eval "$ac_compile") 2>conftest.er1
 
20748
  ac_status=$?
 
20749
  grep -v '^ *+' conftest.er1 >conftest.err
 
20750
  rm -f conftest.er1
 
20751
  cat conftest.err >&5
 
20752
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20753
  (exit $ac_status); } && {
 
20754
         test -z "$ac_c_werror_flag" ||
 
20755
         test ! -s conftest.err
 
20756
       } && test -s conftest.$ac_objext; then
11620
20757
  ac_cv_sys_large_files=1; break
 
20758
else
 
20759
  echo "$as_me: failed program was:" >&5
 
20760
sed 's/^/| /' conftest.$ac_ext >&5
 
20761
 
 
20762
 
11621
20763
fi
 
20764
 
11622
20765
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11623
20766
  ac_cv_sys_large_files=unknown
11624
20767
  break
11625
20768
done
11626
20769
fi
11627
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11628
 
$as_echo "$ac_cv_sys_large_files" >&6; }
 
20770
{ echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
 
20771
echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
11629
20772
case $ac_cv_sys_large_files in #(
11630
20773
  no | unknown) ;;
11631
20774
  *)
11634
20777
_ACEOF
11635
20778
;;
11636
20779
esac
11637
 
rm -rf conftest*
 
20780
rm -f conftest*
11638
20781
  fi
11639
20782
fi
11640
20783
 
11641
20784
 
11642
20785
HAVE_PTHREADS=yes
11643
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
11644
 
$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
11645
 
if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
11646
 
  $as_echo_n "(cached) " >&6
 
20786
 
 
20787
{ echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
 
20788
echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
 
20789
if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
 
20790
  echo $ECHO_N "(cached) $ECHO_C" >&6
11647
20791
else
11648
20792
  ac_check_lib_save_LIBS=$LIBS
11649
20793
LIBS="-lpthread  $LIBS"
11650
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
20794
cat >conftest.$ac_ext <<_ACEOF
 
20795
/* confdefs.h.  */
 
20796
_ACEOF
 
20797
cat confdefs.h >>conftest.$ac_ext
 
20798
cat >>conftest.$ac_ext <<_ACEOF
11651
20799
/* end confdefs.h.  */
11652
20800
 
11653
20801
/* Override any GCC internal prototype to avoid an error.
11665
20813
  return 0;
11666
20814
}
11667
20815
_ACEOF
11668
 
if ac_fn_c_try_link "$LINENO"; then :
 
20816
rm -f conftest.$ac_objext conftest$ac_exeext
 
20817
if { (ac_try="$ac_link"
 
20818
case "(($ac_try" in
 
20819
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20820
  *) ac_try_echo=$ac_try;;
 
20821
esac
 
20822
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20823
  (eval "$ac_link") 2>conftest.er1
 
20824
  ac_status=$?
 
20825
  grep -v '^ *+' conftest.er1 >conftest.err
 
20826
  rm -f conftest.er1
 
20827
  cat conftest.err >&5
 
20828
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20829
  (exit $ac_status); } && {
 
20830
         test -z "$ac_c_werror_flag" ||
 
20831
         test ! -s conftest.err
 
20832
       } && test -s conftest$ac_exeext &&
 
20833
       $as_test_x conftest$ac_exeext; then
11669
20834
  ac_cv_lib_pthread_pthread_create=yes
11670
20835
else
11671
 
  ac_cv_lib_pthread_pthread_create=no
 
20836
  echo "$as_me: failed program was:" >&5
 
20837
sed 's/^/| /' conftest.$ac_ext >&5
 
20838
 
 
20839
        ac_cv_lib_pthread_pthread_create=no
11672
20840
fi
11673
 
rm -f core conftest.err conftest.$ac_objext \
11674
 
    conftest$ac_exeext conftest.$ac_ext
 
20841
 
 
20842
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
20843
      conftest$ac_exeext conftest.$ac_ext
11675
20844
LIBS=$ac_check_lib_save_LIBS
11676
20845
fi
11677
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
11678
 
$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
11679
 
if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
 
20846
{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
 
20847
echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
 
20848
if test $ac_cv_lib_pthread_pthread_create = yes; then
11680
20849
  cat >>confdefs.h <<_ACEOF
11681
20850
#define HAVE_LIBPTHREAD 1
11682
20851
_ACEOF
11685
20854
 
11686
20855
else
11687
20856
 
11688
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
11689
 
$as_echo_n "checking for pthread_create in -lc_r... " >&6; }
11690
 
if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then :
11691
 
  $as_echo_n "(cached) " >&6
 
20857
 
 
20858
{ echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
 
20859
echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
 
20860
if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
 
20861
  echo $ECHO_N "(cached) $ECHO_C" >&6
11692
20862
else
11693
20863
  ac_check_lib_save_LIBS=$LIBS
11694
20864
LIBS="-lc_r  $LIBS"
11695
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
20865
cat >conftest.$ac_ext <<_ACEOF
 
20866
/* confdefs.h.  */
 
20867
_ACEOF
 
20868
cat confdefs.h >>conftest.$ac_ext
 
20869
cat >>conftest.$ac_ext <<_ACEOF
11696
20870
/* end confdefs.h.  */
11697
20871
 
11698
20872
/* Override any GCC internal prototype to avoid an error.
11710
20884
  return 0;
11711
20885
}
11712
20886
_ACEOF
11713
 
if ac_fn_c_try_link "$LINENO"; then :
 
20887
rm -f conftest.$ac_objext conftest$ac_exeext
 
20888
if { (ac_try="$ac_link"
 
20889
case "(($ac_try" in
 
20890
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20891
  *) ac_try_echo=$ac_try;;
 
20892
esac
 
20893
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20894
  (eval "$ac_link") 2>conftest.er1
 
20895
  ac_status=$?
 
20896
  grep -v '^ *+' conftest.er1 >conftest.err
 
20897
  rm -f conftest.er1
 
20898
  cat conftest.err >&5
 
20899
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20900
  (exit $ac_status); } && {
 
20901
         test -z "$ac_c_werror_flag" ||
 
20902
         test ! -s conftest.err
 
20903
       } && test -s conftest$ac_exeext &&
 
20904
       $as_test_x conftest$ac_exeext; then
11714
20905
  ac_cv_lib_c_r_pthread_create=yes
11715
20906
else
11716
 
  ac_cv_lib_c_r_pthread_create=no
 
20907
  echo "$as_me: failed program was:" >&5
 
20908
sed 's/^/| /' conftest.$ac_ext >&5
 
20909
 
 
20910
        ac_cv_lib_c_r_pthread_create=no
11717
20911
fi
11718
 
rm -f core conftest.err conftest.$ac_objext \
11719
 
    conftest$ac_exeext conftest.$ac_ext
 
20912
 
 
20913
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
20914
      conftest$ac_exeext conftest.$ac_ext
11720
20915
LIBS=$ac_check_lib_save_LIBS
11721
20916
fi
11722
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
11723
 
$as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
11724
 
if test "x$ac_cv_lib_c_r_pthread_create" = x""yes; then :
 
20917
{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
 
20918
echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
 
20919
if test $ac_cv_lib_c_r_pthread_create = yes; then
11725
20920
  cat >>confdefs.h <<_ACEOF
11726
20921
#define HAVE_LIBC_R 1
11727
20922
_ACEOF
11730
20925
 
11731
20926
else
11732
20927
 
11733
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lPTL" >&5
11734
 
$as_echo_n "checking for pthread_create in -lPTL... " >&6; }
11735
 
if test "${ac_cv_lib_PTL_pthread_create+set}" = set; then :
11736
 
  $as_echo_n "(cached) " >&6
 
20928
 
 
20929
{ echo "$as_me:$LINENO: checking for pthread_create in -lPTL" >&5
 
20930
echo $ECHO_N "checking for pthread_create in -lPTL... $ECHO_C" >&6; }
 
20931
if test "${ac_cv_lib_PTL_pthread_create+set}" = set; then
 
20932
  echo $ECHO_N "(cached) $ECHO_C" >&6
11737
20933
else
11738
20934
  ac_check_lib_save_LIBS=$LIBS
11739
20935
LIBS="-lPTL  $LIBS"
11740
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
20936
cat >conftest.$ac_ext <<_ACEOF
 
20937
/* confdefs.h.  */
 
20938
_ACEOF
 
20939
cat confdefs.h >>conftest.$ac_ext
 
20940
cat >>conftest.$ac_ext <<_ACEOF
11741
20941
/* end confdefs.h.  */
11742
20942
 
11743
20943
/* Override any GCC internal prototype to avoid an error.
11755
20955
  return 0;
11756
20956
}
11757
20957
_ACEOF
11758
 
if ac_fn_c_try_link "$LINENO"; then :
 
20958
rm -f conftest.$ac_objext conftest$ac_exeext
 
20959
if { (ac_try="$ac_link"
 
20960
case "(($ac_try" in
 
20961
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20962
  *) ac_try_echo=$ac_try;;
 
20963
esac
 
20964
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20965
  (eval "$ac_link") 2>conftest.er1
 
20966
  ac_status=$?
 
20967
  grep -v '^ *+' conftest.er1 >conftest.err
 
20968
  rm -f conftest.er1
 
20969
  cat conftest.err >&5
 
20970
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20971
  (exit $ac_status); } && {
 
20972
         test -z "$ac_c_werror_flag" ||
 
20973
         test ! -s conftest.err
 
20974
       } && test -s conftest$ac_exeext &&
 
20975
       $as_test_x conftest$ac_exeext; then
11759
20976
  ac_cv_lib_PTL_pthread_create=yes
11760
20977
else
11761
 
  ac_cv_lib_PTL_pthread_create=no
 
20978
  echo "$as_me: failed program was:" >&5
 
20979
sed 's/^/| /' conftest.$ac_ext >&5
 
20980
 
 
20981
        ac_cv_lib_PTL_pthread_create=no
11762
20982
fi
11763
 
rm -f core conftest.err conftest.$ac_objext \
11764
 
    conftest$ac_exeext conftest.$ac_ext
 
20983
 
 
20984
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
20985
      conftest$ac_exeext conftest.$ac_ext
11765
20986
LIBS=$ac_check_lib_save_LIBS
11766
20987
fi
11767
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_PTL_pthread_create" >&5
11768
 
$as_echo "$ac_cv_lib_PTL_pthread_create" >&6; }
11769
 
if test "x$ac_cv_lib_PTL_pthread_create" = x""yes; then :
 
20988
{ echo "$as_me:$LINENO: result: $ac_cv_lib_PTL_pthread_create" >&5
 
20989
echo "${ECHO_T}$ac_cv_lib_PTL_pthread_create" >&6; }
 
20990
if test $ac_cv_lib_PTL_pthread_create = yes; then
11770
20991
  cat >>confdefs.h <<_ACEOF
11771
20992
#define HAVE_LIBPTL 1
11772
20993
_ACEOF
11787
21008
 
11788
21009
if test "x$HAVE_PTHREADS" = "xyes"; then
11789
21010
 
11790
 
$as_echo "#define HAVE_PTHREADS 1" >>confdefs.h
11791
 
 
11792
 
fi
11793
 
 
11794
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for timer_create in -lrt" >&5
11795
 
$as_echo_n "checking for timer_create in -lrt... " >&6; }
11796
 
if test "${ac_cv_lib_rt_timer_create+set}" = set; then :
11797
 
  $as_echo_n "(cached) " >&6
 
21011
cat >>confdefs.h <<\_ACEOF
 
21012
#define HAVE_PTHREADS 1
 
21013
_ACEOF
 
21014
 
 
21015
fi
 
21016
 
 
21017
 
 
21018
{ echo "$as_me:$LINENO: checking for tan in -lm" >&5
 
21019
echo $ECHO_N "checking for tan in -lm... $ECHO_C" >&6; }
 
21020
if test "${ac_cv_lib_m_tan+set}" = set; then
 
21021
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21022
else
 
21023
  ac_check_lib_save_LIBS=$LIBS
 
21024
LIBS="-lm  $LIBS"
 
21025
cat >conftest.$ac_ext <<_ACEOF
 
21026
/* confdefs.h.  */
 
21027
_ACEOF
 
21028
cat confdefs.h >>conftest.$ac_ext
 
21029
cat >>conftest.$ac_ext <<_ACEOF
 
21030
/* end confdefs.h.  */
 
21031
 
 
21032
/* Override any GCC internal prototype to avoid an error.
 
21033
   Use char because int might match the return type of a GCC
 
21034
   builtin and then its argument prototype would still apply.  */
 
21035
#ifdef __cplusplus
 
21036
extern "C"
 
21037
#endif
 
21038
char tan ();
 
21039
int
 
21040
main ()
 
21041
{
 
21042
return tan ();
 
21043
  ;
 
21044
  return 0;
 
21045
}
 
21046
_ACEOF
 
21047
rm -f conftest.$ac_objext conftest$ac_exeext
 
21048
if { (ac_try="$ac_link"
 
21049
case "(($ac_try" in
 
21050
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21051
  *) ac_try_echo=$ac_try;;
 
21052
esac
 
21053
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21054
  (eval "$ac_link") 2>conftest.er1
 
21055
  ac_status=$?
 
21056
  grep -v '^ *+' conftest.er1 >conftest.err
 
21057
  rm -f conftest.er1
 
21058
  cat conftest.err >&5
 
21059
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21060
  (exit $ac_status); } && {
 
21061
         test -z "$ac_c_werror_flag" ||
 
21062
         test ! -s conftest.err
 
21063
       } && test -s conftest$ac_exeext &&
 
21064
       $as_test_x conftest$ac_exeext; then
 
21065
  ac_cv_lib_m_tan=yes
 
21066
else
 
21067
  echo "$as_me: failed program was:" >&5
 
21068
sed 's/^/| /' conftest.$ac_ext >&5
 
21069
 
 
21070
        ac_cv_lib_m_tan=no
 
21071
fi
 
21072
 
 
21073
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
21074
      conftest$ac_exeext conftest.$ac_ext
 
21075
LIBS=$ac_check_lib_save_LIBS
 
21076
fi
 
21077
{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_tan" >&5
 
21078
echo "${ECHO_T}$ac_cv_lib_m_tan" >&6; }
 
21079
if test $ac_cv_lib_m_tan = yes; then
 
21080
  cat >>confdefs.h <<_ACEOF
 
21081
#define HAVE_LIBM 1
 
21082
_ACEOF
 
21083
 
 
21084
  LIBS="-lm $LIBS"
 
21085
 
 
21086
fi
 
21087
 
 
21088
 
 
21089
{ echo "$as_me:$LINENO: checking for timer_create in -lrt" >&5
 
21090
echo $ECHO_N "checking for timer_create in -lrt... $ECHO_C" >&6; }
 
21091
if test "${ac_cv_lib_rt_timer_create+set}" = set; then
 
21092
  echo $ECHO_N "(cached) $ECHO_C" >&6
11798
21093
else
11799
21094
  ac_check_lib_save_LIBS=$LIBS
11800
21095
LIBS="-lrt  $LIBS"
11801
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
21096
cat >conftest.$ac_ext <<_ACEOF
 
21097
/* confdefs.h.  */
 
21098
_ACEOF
 
21099
cat confdefs.h >>conftest.$ac_ext
 
21100
cat >>conftest.$ac_ext <<_ACEOF
11802
21101
/* end confdefs.h.  */
11803
21102
 
11804
21103
/* Override any GCC internal prototype to avoid an error.
11816
21115
  return 0;
11817
21116
}
11818
21117
_ACEOF
11819
 
if ac_fn_c_try_link "$LINENO"; then :
 
21118
rm -f conftest.$ac_objext conftest$ac_exeext
 
21119
if { (ac_try="$ac_link"
 
21120
case "(($ac_try" in
 
21121
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21122
  *) ac_try_echo=$ac_try;;
 
21123
esac
 
21124
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21125
  (eval "$ac_link") 2>conftest.er1
 
21126
  ac_status=$?
 
21127
  grep -v '^ *+' conftest.er1 >conftest.err
 
21128
  rm -f conftest.er1
 
21129
  cat conftest.err >&5
 
21130
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21131
  (exit $ac_status); } && {
 
21132
         test -z "$ac_c_werror_flag" ||
 
21133
         test ! -s conftest.err
 
21134
       } && test -s conftest$ac_exeext &&
 
21135
       $as_test_x conftest$ac_exeext; then
11820
21136
  ac_cv_lib_rt_timer_create=yes
11821
21137
else
11822
 
  ac_cv_lib_rt_timer_create=no
 
21138
  echo "$as_me: failed program was:" >&5
 
21139
sed 's/^/| /' conftest.$ac_ext >&5
 
21140
 
 
21141
        ac_cv_lib_rt_timer_create=no
11823
21142
fi
11824
 
rm -f core conftest.err conftest.$ac_objext \
11825
 
    conftest$ac_exeext conftest.$ac_ext
 
21143
 
 
21144
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
21145
      conftest$ac_exeext conftest.$ac_ext
11826
21146
LIBS=$ac_check_lib_save_LIBS
11827
21147
fi
11828
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_timer_create" >&5
11829
 
$as_echo "$ac_cv_lib_rt_timer_create" >&6; }
11830
 
if test "x$ac_cv_lib_rt_timer_create" = x""yes; then :
 
21148
{ echo "$as_me:$LINENO: result: $ac_cv_lib_rt_timer_create" >&5
 
21149
echo "${ECHO_T}$ac_cv_lib_rt_timer_create" >&6; }
 
21150
if test $ac_cv_lib_rt_timer_create = yes; then
11831
21151
  cat >>confdefs.h <<_ACEOF
11832
21152
#define HAVE_LIBRT 1
11833
21153
_ACEOF
11837
21157
fi
11838
21158
 
11839
21159
 
 
21160
 
11840
21161
for ac_func in clock_gettime
11841
 
do :
11842
 
  ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
11843
 
if test "x$ac_cv_func_clock_gettime" = x""yes; then :
 
21162
do
 
21163
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
21164
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
21165
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
21166
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
21167
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21168
else
 
21169
  cat >conftest.$ac_ext <<_ACEOF
 
21170
/* confdefs.h.  */
 
21171
_ACEOF
 
21172
cat confdefs.h >>conftest.$ac_ext
 
21173
cat >>conftest.$ac_ext <<_ACEOF
 
21174
/* end confdefs.h.  */
 
21175
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
21176
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
21177
#define $ac_func innocuous_$ac_func
 
21178
 
 
21179
/* System header to define __stub macros and hopefully few prototypes,
 
21180
    which can conflict with char $ac_func (); below.
 
21181
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
21182
    <limits.h> exists even on freestanding compilers.  */
 
21183
 
 
21184
#ifdef __STDC__
 
21185
# include <limits.h>
 
21186
#else
 
21187
# include <assert.h>
 
21188
#endif
 
21189
 
 
21190
#undef $ac_func
 
21191
 
 
21192
/* Override any GCC internal prototype to avoid an error.
 
21193
   Use char because int might match the return type of a GCC
 
21194
   builtin and then its argument prototype would still apply.  */
 
21195
#ifdef __cplusplus
 
21196
extern "C"
 
21197
#endif
 
21198
char $ac_func ();
 
21199
/* The GNU C library defines this for functions which it implements
 
21200
    to always fail with ENOSYS.  Some functions are actually named
 
21201
    something starting with __ and the normal name is an alias.  */
 
21202
#if defined __stub_$ac_func || defined __stub___$ac_func
 
21203
choke me
 
21204
#endif
 
21205
 
 
21206
int
 
21207
main ()
 
21208
{
 
21209
return $ac_func ();
 
21210
  ;
 
21211
  return 0;
 
21212
}
 
21213
_ACEOF
 
21214
rm -f conftest.$ac_objext conftest$ac_exeext
 
21215
if { (ac_try="$ac_link"
 
21216
case "(($ac_try" in
 
21217
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21218
  *) ac_try_echo=$ac_try;;
 
21219
esac
 
21220
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21221
  (eval "$ac_link") 2>conftest.er1
 
21222
  ac_status=$?
 
21223
  grep -v '^ *+' conftest.er1 >conftest.err
 
21224
  rm -f conftest.er1
 
21225
  cat conftest.err >&5
 
21226
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21227
  (exit $ac_status); } && {
 
21228
         test -z "$ac_c_werror_flag" ||
 
21229
         test ! -s conftest.err
 
21230
       } && test -s conftest$ac_exeext &&
 
21231
       $as_test_x conftest$ac_exeext; then
 
21232
  eval "$as_ac_var=yes"
 
21233
else
 
21234
  echo "$as_me: failed program was:" >&5
 
21235
sed 's/^/| /' conftest.$ac_ext >&5
 
21236
 
 
21237
        eval "$as_ac_var=no"
 
21238
fi
 
21239
 
 
21240
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
21241
      conftest$ac_exeext conftest.$ac_ext
 
21242
fi
 
21243
ac_res=`eval echo '${'$as_ac_var'}'`
 
21244
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
21245
echo "${ECHO_T}$ac_res" >&6; }
 
21246
if test `eval echo '${'$as_ac_var'}'` = yes; then
11844
21247
  cat >>confdefs.h <<_ACEOF
11845
 
#define HAVE_CLOCK_GETTIME 1
 
21248
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11846
21249
_ACEOF
11847
21250
 
11848
21251
fi
11849
21252
done
11850
21253
 
11851
21254
 
11852
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((visibility())) is supported" >&5
11853
 
$as_echo_n "checking whether __attribute__((visibility())) is supported... " >&6; }
11854
 
if test "${vdpau_cv_visibility_attribute+set}" = set; then :
11855
 
  $as_echo_n "(cached) " >&6
 
21255
{ echo "$as_me:$LINENO: checking whether __attribute__((visibility())) is supported" >&5
 
21256
echo $ECHO_N "checking whether __attribute__((visibility())) is supported... $ECHO_C" >&6; }
 
21257
if test "${vdpau_cv_visibility_attribute+set}" = set; then
 
21258
  echo $ECHO_N "(cached) $ECHO_C" >&6
11856
21259
else
11857
21260
  cat > conftest.c <<EOF
11858
21261
int foo __attribute__ ((visibility ("hidden"))) = 1;
11869
21272
  rm -f conftest.cs
11870
21273
 
11871
21274
fi
11872
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vdpau_cv_visibility_attribute" >&5
11873
 
$as_echo "$vdpau_cv_visibility_attribute" >&6; }
 
21275
{ echo "$as_me:$LINENO: result: $vdpau_cv_visibility_attribute" >&5
 
21276
echo "${ECHO_T}$vdpau_cv_visibility_attribute" >&6; }
11874
21277
if test $vdpau_cv_visibility_attribute = yes; then
11875
21278
 
11876
 
$as_echo "#define HAVE_VISIBILITY_ATTRIBUTE 1" >>confdefs.h
 
21279
cat >>confdefs.h <<\_ACEOF
 
21280
#define HAVE_VISIBILITY_ATTRIBUTE 1
 
21281
_ACEOF
11877
21282
 
11878
21283
fi
11879
21284
 
11883
21288
fi
11884
21289
GL_DEPS_CFLAGS=""
11885
21290
GL_DEPS_LIBS=""
 
21291
 
 
21292
 
 
21293
 
11886
21294
for ac_header in GL/gl.h GL/glext.h GL/glx.h
11887
 
do :
11888
 
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11889
 
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
 
21295
do
 
21296
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
21297
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
21298
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
21299
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
21300
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21301
else
 
21302
  cat >conftest.$ac_ext <<_ACEOF
 
21303
/* confdefs.h.  */
 
21304
_ACEOF
 
21305
cat confdefs.h >>conftest.$ac_ext
 
21306
cat >>conftest.$ac_ext <<_ACEOF
 
21307
/* end confdefs.h.  */
 
21308
 
11890
21309
#ifdef HAVE_GL_GL_H
11891
21310
# include <GL/gl.h>
11892
21311
#endif
11893
21312
 
11894
 
"
11895
 
eval as_val=\$$as_ac_Header
11896
 
   if test "x$as_val" = x""yes; then :
 
21313
 
 
21314
#include <$ac_header>
 
21315
_ACEOF
 
21316
rm -f conftest.$ac_objext
 
21317
if { (ac_try="$ac_compile"
 
21318
case "(($ac_try" in
 
21319
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21320
  *) ac_try_echo=$ac_try;;
 
21321
esac
 
21322
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21323
  (eval "$ac_compile") 2>conftest.er1
 
21324
  ac_status=$?
 
21325
  grep -v '^ *+' conftest.er1 >conftest.err
 
21326
  rm -f conftest.er1
 
21327
  cat conftest.err >&5
 
21328
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21329
  (exit $ac_status); } && {
 
21330
         test -z "$ac_c_werror_flag" ||
 
21331
         test ! -s conftest.err
 
21332
       } && test -s conftest.$ac_objext; then
 
21333
  eval "$as_ac_Header=yes"
 
21334
else
 
21335
  echo "$as_me: failed program was:" >&5
 
21336
sed 's/^/| /' conftest.$ac_ext >&5
 
21337
 
 
21338
        eval "$as_ac_Header=no"
 
21339
fi
 
21340
 
 
21341
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21342
fi
 
21343
ac_res=`eval echo '${'$as_ac_Header'}'`
 
21344
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
21345
echo "${ECHO_T}$ac_res" >&6; }
 
21346
if test `eval echo '${'$as_ac_Header'}'` = yes; then
11897
21347
  cat >>confdefs.h <<_ACEOF
11898
 
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
21348
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11899
21349
_ACEOF
11900
21350
 
11901
21351
else
11904
21354
 
11905
21355
done
11906
21356
 
11907
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for glXCreateContext in -lGL" >&5
11908
 
$as_echo_n "checking for glXCreateContext in -lGL... " >&6; }
11909
 
if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then :
11910
 
  $as_echo_n "(cached) " >&6
 
21357
{ echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
 
21358
echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6; }
 
21359
if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
 
21360
  echo $ECHO_N "(cached) $ECHO_C" >&6
11911
21361
else
11912
21362
  ac_check_lib_save_LIBS=$LIBS
11913
21363
LIBS="-lGL  $LIBS"
11914
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
21364
cat >conftest.$ac_ext <<_ACEOF
 
21365
/* confdefs.h.  */
 
21366
_ACEOF
 
21367
cat confdefs.h >>conftest.$ac_ext
 
21368
cat >>conftest.$ac_ext <<_ACEOF
11915
21369
/* end confdefs.h.  */
11916
21370
 
11917
21371
/* Override any GCC internal prototype to avoid an error.
11929
21383
  return 0;
11930
21384
}
11931
21385
_ACEOF
11932
 
if ac_fn_c_try_link "$LINENO"; then :
 
21386
rm -f conftest.$ac_objext conftest$ac_exeext
 
21387
if { (ac_try="$ac_link"
 
21388
case "(($ac_try" in
 
21389
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21390
  *) ac_try_echo=$ac_try;;
 
21391
esac
 
21392
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21393
  (eval "$ac_link") 2>conftest.er1
 
21394
  ac_status=$?
 
21395
  grep -v '^ *+' conftest.er1 >conftest.err
 
21396
  rm -f conftest.er1
 
21397
  cat conftest.err >&5
 
21398
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21399
  (exit $ac_status); } && {
 
21400
         test -z "$ac_c_werror_flag" ||
 
21401
         test ! -s conftest.err
 
21402
       } && test -s conftest$ac_exeext &&
 
21403
       $as_test_x conftest$ac_exeext; then
11933
21404
  ac_cv_lib_GL_glXCreateContext=yes
11934
21405
else
11935
 
  ac_cv_lib_GL_glXCreateContext=no
 
21406
  echo "$as_me: failed program was:" >&5
 
21407
sed 's/^/| /' conftest.$ac_ext >&5
 
21408
 
 
21409
        ac_cv_lib_GL_glXCreateContext=no
11936
21410
fi
11937
 
rm -f core conftest.err conftest.$ac_objext \
11938
 
    conftest$ac_exeext conftest.$ac_ext
 
21411
 
 
21412
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
21413
      conftest$ac_exeext conftest.$ac_ext
11939
21414
LIBS=$ac_check_lib_save_LIBS
11940
21415
fi
11941
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GL_glXCreateContext" >&5
11942
 
$as_echo "$ac_cv_lib_GL_glXCreateContext" >&6; }
11943
 
if test "x$ac_cv_lib_GL_glXCreateContext" = x""yes; then :
 
21416
{ echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
 
21417
echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6; }
 
21418
if test $ac_cv_lib_GL_glXCreateContext = yes; then
11944
21419
  GL_DEPS_LIBS="-lGL -ldl"
11945
21420
else
11946
21421
  USE_GLX=0
11955
21430
        if test -n "$ac_tool_prefix"; then
11956
21431
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11957
21432
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11958
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11959
 
$as_echo_n "checking for $ac_word... " >&6; }
11960
 
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11961
 
  $as_echo_n "(cached) " >&6
 
21433
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
21434
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
21435
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
 
21436
  echo $ECHO_N "(cached) $ECHO_C" >&6
11962
21437
else
11963
21438
  case $PKG_CONFIG in
11964
21439
  [\\/]* | ?:[\\/]*)
11970
21445
do
11971
21446
  IFS=$as_save_IFS
11972
21447
  test -z "$as_dir" && as_dir=.
11973
 
    for ac_exec_ext in '' $ac_executable_extensions; do
 
21448
  for ac_exec_ext in '' $ac_executable_extensions; do
11974
21449
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11975
21450
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11976
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
21451
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11977
21452
    break 2
11978
21453
  fi
11979
21454
done
11980
 
  done
 
21455
done
11981
21456
IFS=$as_save_IFS
11982
21457
 
11983
21458
  ;;
11985
21460
fi
11986
21461
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11987
21462
if test -n "$PKG_CONFIG"; then
11988
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11989
 
$as_echo "$PKG_CONFIG" >&6; }
 
21463
  { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
 
21464
echo "${ECHO_T}$PKG_CONFIG" >&6; }
11990
21465
else
11991
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11992
 
$as_echo "no" >&6; }
 
21466
  { echo "$as_me:$LINENO: result: no" >&5
 
21467
echo "${ECHO_T}no" >&6; }
11993
21468
fi
11994
21469
 
11995
21470
 
11998
21473
  ac_pt_PKG_CONFIG=$PKG_CONFIG
11999
21474
  # Extract the first word of "pkg-config", so it can be a program name with args.
12000
21475
set dummy pkg-config; ac_word=$2
12001
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12002
 
$as_echo_n "checking for $ac_word... " >&6; }
12003
 
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
12004
 
  $as_echo_n "(cached) " >&6
 
21476
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
21477
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
21478
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
 
21479
  echo $ECHO_N "(cached) $ECHO_C" >&6
12005
21480
else
12006
21481
  case $ac_pt_PKG_CONFIG in
12007
21482
  [\\/]* | ?:[\\/]*)
12013
21488
do
12014
21489
  IFS=$as_save_IFS
12015
21490
  test -z "$as_dir" && as_dir=.
12016
 
    for ac_exec_ext in '' $ac_executable_extensions; do
 
21491
  for ac_exec_ext in '' $ac_executable_extensions; do
12017
21492
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12018
21493
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12019
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
21494
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12020
21495
    break 2
12021
21496
  fi
12022
21497
done
12023
 
  done
 
21498
done
12024
21499
IFS=$as_save_IFS
12025
21500
 
12026
21501
  ;;
12028
21503
fi
12029
21504
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12030
21505
if test -n "$ac_pt_PKG_CONFIG"; then
12031
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12032
 
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
 
21506
  { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
 
21507
echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
12033
21508
else
12034
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12035
 
$as_echo "no" >&6; }
 
21509
  { echo "$as_me:$LINENO: result: no" >&5
 
21510
echo "${ECHO_T}no" >&6; }
12036
21511
fi
12037
21512
 
12038
21513
  if test "x$ac_pt_PKG_CONFIG" = x; then
12040
21515
  else
12041
21516
    case $cross_compiling:$ac_tool_warned in
12042
21517
yes:)
12043
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12044
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
21518
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
21519
whose name does not start with the host triplet.  If you think this
 
21520
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
21521
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
21522
whose name does not start with the host triplet.  If you think this
 
21523
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12045
21524
ac_tool_warned=yes ;;
12046
21525
esac
12047
21526
    PKG_CONFIG=$ac_pt_PKG_CONFIG
12053
21532
fi
12054
21533
if test -n "$PKG_CONFIG"; then
12055
21534
        _pkg_min_version=0.9.0
12056
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12057
 
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
 
21535
        { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
 
21536
echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
12058
21537
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12059
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12060
 
$as_echo "yes" >&6; }
 
21538
                { echo "$as_me:$LINENO: result: yes" >&5
 
21539
echo "${ECHO_T}yes" >&6; }
12061
21540
        else
12062
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12063
 
$as_echo "no" >&6; }
 
21541
                { echo "$as_me:$LINENO: result: no" >&5
 
21542
echo "${ECHO_T}no" >&6; }
12064
21543
                PKG_CONFIG=""
12065
21544
        fi
12066
21545
 
12067
21546
fi
12068
21547
 
12069
21548
pkg_failed=no
12070
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBVA_DEPS" >&5
12071
 
$as_echo_n "checking for LIBVA_DEPS... " >&6; }
 
21549
{ echo "$as_me:$LINENO: checking for LIBVA_DEPS" >&5
 
21550
echo $ECHO_N "checking for LIBVA_DEPS... $ECHO_C" >&6; }
12072
21551
 
12073
21552
if test -n "$PKG_CONFIG"; then
12074
21553
    if test -n "$LIBVA_DEPS_CFLAGS"; then
12075
21554
        pkg_cv_LIBVA_DEPS_CFLAGS="$LIBVA_DEPS_CFLAGS"
12076
21555
    else
12077
21556
        if test -n "$PKG_CONFIG" && \
12078
 
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libva\""; } >&5
 
21557
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libva\"") >&5
12079
21558
  ($PKG_CONFIG --exists --print-errors "libva") 2>&5
12080
21559
  ac_status=$?
12081
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12082
 
  test $ac_status = 0; }; then
 
21560
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21561
  (exit $ac_status); }; then
12083
21562
  pkg_cv_LIBVA_DEPS_CFLAGS=`$PKG_CONFIG --cflags "libva" 2>/dev/null`
12084
21563
else
12085
21564
  pkg_failed=yes
12093
21572
        pkg_cv_LIBVA_DEPS_LIBS="$LIBVA_DEPS_LIBS"
12094
21573
    else
12095
21574
        if test -n "$PKG_CONFIG" && \
12096
 
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libva\""; } >&5
 
21575
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libva\"") >&5
12097
21576
  ($PKG_CONFIG --exists --print-errors "libva") 2>&5
12098
21577
  ac_status=$?
12099
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12100
 
  test $ac_status = 0; }; then
 
21578
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21579
  (exit $ac_status); }; then
12101
21580
  pkg_cv_LIBVA_DEPS_LIBS=`$PKG_CONFIG --libs "libva" 2>/dev/null`
12102
21581
else
12103
21582
  pkg_failed=yes
12124
21603
        # Put the nasty error message in config.log where it belongs
12125
21604
        echo "$LIBVA_DEPS_PKG_ERRORS" >&5
12126
21605
 
12127
 
        as_fn_error "Package requirements (libva) were not met:
12128
 
 
12129
 
$LIBVA_DEPS_PKG_ERRORS
12130
 
 
12131
 
Consider adjusting the PKG_CONFIG_PATH environment variable if you
12132
 
installed software in a non-standard prefix.
12133
 
 
12134
 
Alternatively, you may set the environment variables LIBVA_DEPS_CFLAGS
12135
 
and LIBVA_DEPS_LIBS to avoid the need to call pkg-config.
12136
 
See the pkg-config man page for more details.
12137
 
" "$LINENO" 5
 
21606
        { { echo "$as_me:$LINENO: error: Package requirements (libva) were not met:
 
21607
 
 
21608
$LIBVA_DEPS_PKG_ERRORS
 
21609
 
 
21610
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
21611
installed software in a non-standard prefix.
 
21612
 
 
21613
Alternatively, you may set the environment variables LIBVA_DEPS_CFLAGS
 
21614
and LIBVA_DEPS_LIBS to avoid the need to call pkg-config.
 
21615
See the pkg-config man page for more details.
 
21616
" >&5
 
21617
echo "$as_me: error: Package requirements (libva) were not met:
 
21618
 
 
21619
$LIBVA_DEPS_PKG_ERRORS
 
21620
 
 
21621
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
21622
installed software in a non-standard prefix.
 
21623
 
 
21624
Alternatively, you may set the environment variables LIBVA_DEPS_CFLAGS
 
21625
and LIBVA_DEPS_LIBS to avoid the need to call pkg-config.
 
21626
See the pkg-config man page for more details.
 
21627
" >&2;}
 
21628
   { (exit 1); exit 1; }; }
12138
21629
elif test $pkg_failed = untried; then
12139
 
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12140
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12141
 
as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
12142
 
is in your PATH or set the PKG_CONFIG environment variable to the full
12143
 
path to pkg-config.
12144
 
 
12145
 
Alternatively, you may set the environment variables LIBVA_DEPS_CFLAGS
12146
 
and LIBVA_DEPS_LIBS to avoid the need to call pkg-config.
12147
 
See the pkg-config man page for more details.
12148
 
 
12149
 
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12150
 
See \`config.log' for more details." "$LINENO" 5; }
 
21630
        { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
 
21631
is in your PATH or set the PKG_CONFIG environment variable to the full
 
21632
path to pkg-config.
 
21633
 
 
21634
Alternatively, you may set the environment variables LIBVA_DEPS_CFLAGS
 
21635
and LIBVA_DEPS_LIBS to avoid the need to call pkg-config.
 
21636
See the pkg-config man page for more details.
 
21637
 
 
21638
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
 
21639
See \`config.log' for more details." >&5
 
21640
echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
 
21641
is in your PATH or set the PKG_CONFIG environment variable to the full
 
21642
path to pkg-config.
 
21643
 
 
21644
Alternatively, you may set the environment variables LIBVA_DEPS_CFLAGS
 
21645
and LIBVA_DEPS_LIBS to avoid the need to call pkg-config.
 
21646
See the pkg-config man page for more details.
 
21647
 
 
21648
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
 
21649
See \`config.log' for more details." >&2;}
 
21650
   { (exit 1); exit 1; }; }
12151
21651
else
12152
21652
        LIBVA_DEPS_CFLAGS=$pkg_cv_LIBVA_DEPS_CFLAGS
12153
21653
        LIBVA_DEPS_LIBS=$pkg_cv_LIBVA_DEPS_LIBS
12154
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12155
 
$as_echo "yes" >&6; }
 
21654
        { echo "$as_me:$LINENO: result: yes" >&5
 
21655
echo "${ECHO_T}yes" >&6; }
12156
21656
        :
12157
21657
fi
12158
21658
 
12159
21659
pkg_failed=no
12160
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBVA_X11_DEPS" >&5
12161
 
$as_echo_n "checking for LIBVA_X11_DEPS... " >&6; }
 
21660
{ echo "$as_me:$LINENO: checking for LIBVA_X11_DEPS" >&5
 
21661
echo $ECHO_N "checking for LIBVA_X11_DEPS... $ECHO_C" >&6; }
12162
21662
 
12163
21663
if test -n "$PKG_CONFIG"; then
12164
21664
    if test -n "$LIBVA_X11_DEPS_CFLAGS"; then
12165
21665
        pkg_cv_LIBVA_X11_DEPS_CFLAGS="$LIBVA_X11_DEPS_CFLAGS"
12166
21666
    else
12167
21667
        if test -n "$PKG_CONFIG" && \
12168
 
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libva-x11\""; } >&5
 
21668
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libva-x11\"") >&5
12169
21669
  ($PKG_CONFIG --exists --print-errors "libva-x11") 2>&5
12170
21670
  ac_status=$?
12171
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12172
 
  test $ac_status = 0; }; then
 
21671
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21672
  (exit $ac_status); }; then
12173
21673
  pkg_cv_LIBVA_X11_DEPS_CFLAGS=`$PKG_CONFIG --cflags "libva-x11" 2>/dev/null`
12174
21674
else
12175
21675
  pkg_failed=yes
12183
21683
        pkg_cv_LIBVA_X11_DEPS_LIBS="$LIBVA_X11_DEPS_LIBS"
12184
21684
    else
12185
21685
        if test -n "$PKG_CONFIG" && \
12186
 
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libva-x11\""; } >&5
 
21686
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libva-x11\"") >&5
12187
21687
  ($PKG_CONFIG --exists --print-errors "libva-x11") 2>&5
12188
21688
  ac_status=$?
12189
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12190
 
  test $ac_status = 0; }; then
 
21689
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21690
  (exit $ac_status); }; then
12191
21691
  pkg_cv_LIBVA_X11_DEPS_LIBS=`$PKG_CONFIG --libs "libva-x11" 2>/dev/null`
12192
21692
else
12193
21693
  pkg_failed=yes
12214
21714
        # Put the nasty error message in config.log where it belongs
12215
21715
        echo "$LIBVA_X11_DEPS_PKG_ERRORS" >&5
12216
21716
 
12217
 
        as_fn_error "Package requirements (libva-x11) were not met:
12218
 
 
12219
 
$LIBVA_X11_DEPS_PKG_ERRORS
12220
 
 
12221
 
Consider adjusting the PKG_CONFIG_PATH environment variable if you
12222
 
installed software in a non-standard prefix.
12223
 
 
12224
 
Alternatively, you may set the environment variables LIBVA_X11_DEPS_CFLAGS
12225
 
and LIBVA_X11_DEPS_LIBS to avoid the need to call pkg-config.
12226
 
See the pkg-config man page for more details.
12227
 
" "$LINENO" 5
 
21717
        { { echo "$as_me:$LINENO: error: Package requirements (libva-x11) were not met:
 
21718
 
 
21719
$LIBVA_X11_DEPS_PKG_ERRORS
 
21720
 
 
21721
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
21722
installed software in a non-standard prefix.
 
21723
 
 
21724
Alternatively, you may set the environment variables LIBVA_X11_DEPS_CFLAGS
 
21725
and LIBVA_X11_DEPS_LIBS to avoid the need to call pkg-config.
 
21726
See the pkg-config man page for more details.
 
21727
" >&5
 
21728
echo "$as_me: error: Package requirements (libva-x11) were not met:
 
21729
 
 
21730
$LIBVA_X11_DEPS_PKG_ERRORS
 
21731
 
 
21732
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
21733
installed software in a non-standard prefix.
 
21734
 
 
21735
Alternatively, you may set the environment variables LIBVA_X11_DEPS_CFLAGS
 
21736
and LIBVA_X11_DEPS_LIBS to avoid the need to call pkg-config.
 
21737
See the pkg-config man page for more details.
 
21738
" >&2;}
 
21739
   { (exit 1); exit 1; }; }
12228
21740
elif test $pkg_failed = untried; then
12229
 
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12230
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12231
 
as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
12232
 
is in your PATH or set the PKG_CONFIG environment variable to the full
12233
 
path to pkg-config.
12234
 
 
12235
 
Alternatively, you may set the environment variables LIBVA_X11_DEPS_CFLAGS
12236
 
and LIBVA_X11_DEPS_LIBS to avoid the need to call pkg-config.
12237
 
See the pkg-config man page for more details.
12238
 
 
12239
 
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12240
 
See \`config.log' for more details." "$LINENO" 5; }
 
21741
        { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
 
21742
is in your PATH or set the PKG_CONFIG environment variable to the full
 
21743
path to pkg-config.
 
21744
 
 
21745
Alternatively, you may set the environment variables LIBVA_X11_DEPS_CFLAGS
 
21746
and LIBVA_X11_DEPS_LIBS to avoid the need to call pkg-config.
 
21747
See the pkg-config man page for more details.
 
21748
 
 
21749
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
 
21750
See \`config.log' for more details." >&5
 
21751
echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
 
21752
is in your PATH or set the PKG_CONFIG environment variable to the full
 
21753
path to pkg-config.
 
21754
 
 
21755
Alternatively, you may set the environment variables LIBVA_X11_DEPS_CFLAGS
 
21756
and LIBVA_X11_DEPS_LIBS to avoid the need to call pkg-config.
 
21757
See the pkg-config man page for more details.
 
21758
 
 
21759
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
 
21760
See \`config.log' for more details." >&2;}
 
21761
   { (exit 1); exit 1; }; }
12241
21762
else
12242
21763
        LIBVA_X11_DEPS_CFLAGS=$pkg_cv_LIBVA_X11_DEPS_CFLAGS
12243
21764
        LIBVA_X11_DEPS_LIBS=$pkg_cv_LIBVA_X11_DEPS_LIBS
12244
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12245
 
$as_echo "yes" >&6; }
 
21765
        { echo "$as_me:$LINENO: result: yes" >&5
 
21766
echo "${ECHO_T}yes" >&6; }
12246
21767
        :
12247
21768
fi
12248
21769
 
12249
21770
pkg_failed=no
12250
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBVA_GLX_DEPS" >&5
12251
 
$as_echo_n "checking for LIBVA_GLX_DEPS... " >&6; }
 
21771
{ echo "$as_me:$LINENO: checking for LIBVA_GLX_DEPS" >&5
 
21772
echo $ECHO_N "checking for LIBVA_GLX_DEPS... $ECHO_C" >&6; }
12252
21773
 
12253
21774
if test -n "$PKG_CONFIG"; then
12254
21775
    if test -n "$LIBVA_GLX_DEPS_CFLAGS"; then
12255
21776
        pkg_cv_LIBVA_GLX_DEPS_CFLAGS="$LIBVA_GLX_DEPS_CFLAGS"
12256
21777
    else
12257
21778
        if test -n "$PKG_CONFIG" && \
12258
 
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libva-glx\""; } >&5
 
21779
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libva-glx\"") >&5
12259
21780
  ($PKG_CONFIG --exists --print-errors "libva-glx") 2>&5
12260
21781
  ac_status=$?
12261
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12262
 
  test $ac_status = 0; }; then
 
21782
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21783
  (exit $ac_status); }; then
12263
21784
  pkg_cv_LIBVA_GLX_DEPS_CFLAGS=`$PKG_CONFIG --cflags "libva-glx" 2>/dev/null`
12264
21785
else
12265
21786
  pkg_failed=yes
12273
21794
        pkg_cv_LIBVA_GLX_DEPS_LIBS="$LIBVA_GLX_DEPS_LIBS"
12274
21795
    else
12275
21796
        if test -n "$PKG_CONFIG" && \
12276
 
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libva-glx\""; } >&5
 
21797
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libva-glx\"") >&5
12277
21798
  ($PKG_CONFIG --exists --print-errors "libva-glx") 2>&5
12278
21799
  ac_status=$?
12279
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12280
 
  test $ac_status = 0; }; then
 
21800
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21801
  (exit $ac_status); }; then
12281
21802
  pkg_cv_LIBVA_GLX_DEPS_LIBS=`$PKG_CONFIG --libs "libva-glx" 2>/dev/null`
12282
21803
else
12283
21804
  pkg_failed=yes
12304
21825
        # Put the nasty error message in config.log where it belongs
12305
21826
        echo "$LIBVA_GLX_DEPS_PKG_ERRORS" >&5
12306
21827
 
12307
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12308
 
$as_echo "no" >&6; }
 
21828
        { echo "$as_me:$LINENO: result: no" >&5
 
21829
echo "${ECHO_T}no" >&6; }
12309
21830
                USE_GLX=0
12310
21831
elif test $pkg_failed = untried; then
12311
21832
        USE_GLX=0
12312
21833
else
12313
21834
        LIBVA_GLX_DEPS_CFLAGS=$pkg_cv_LIBVA_GLX_DEPS_CFLAGS
12314
21835
        LIBVA_GLX_DEPS_LIBS=$pkg_cv_LIBVA_GLX_DEPS_LIBS
12315
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12316
 
$as_echo "yes" >&6; }
 
21836
        { echo "$as_me:$LINENO: result: yes" >&5
 
21837
echo "${ECHO_T}yes" >&6; }
12317
21838
        :
12318
21839
fi
12319
21840
 
12320
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for VA API" >&5
12321
 
$as_echo_n "checking for VA API... " >&6; }
12322
 
if test "${ac_cv_libva_sds_extensions+set}" = set; then :
12323
 
  $as_echo_n "(cached) " >&6
 
21841
{ echo "$as_me:$LINENO: checking for VA-API" >&5
 
21842
echo $ECHO_N "checking for VA-API... $ECHO_C" >&6; }
 
21843
if test "${ac_cv_libva_sds_extensions+set}" = set; then
 
21844
  echo $ECHO_N "(cached) $ECHO_C" >&6
12324
21845
else
12325
21846
 
12326
21847
  saved_CFLAGS="$CFLAGS"
12327
21848
  CFLAGS="$CFLAGS $LIBVA_DEPS_CFLAGS"
12328
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
21849
  cat >conftest.$ac_ext <<_ACEOF
 
21850
/* confdefs.h.  */
 
21851
_ACEOF
 
21852
cat confdefs.h >>conftest.$ac_ext
 
21853
cat >>conftest.$ac_ext <<_ACEOF
12329
21854
/* end confdefs.h.  */
12330
21855
 
12331
21856
    #include <va/va_version.h>
12332
21857
    #if VA_MAJOR_VERSION == 0 && VA_MINOR_VERSION == 29
12333
21858
    # if !defined(VA_SDS_VERSION) || (VA_SDS_VERSION < $LIBVA_SDS_VERSION_0_29)
12334
 
    #  error "VA API version >= 0.29.0-sds$LIBVA_SDS_VERSION_0_29 is required"
 
21859
    #  error "VA-API version >= 0.29.0-sds$LIBVA_SDS_VERSION_0_29 is required"
12335
21860
    # endif
12336
21861
    #elif VA_MAJOR_VERSION == 0 && VA_MINOR_VERSION == 30
12337
21862
    # if !defined(VA_SDS_VERSION) || (VA_SDS_VERSION < $LIBVA_SDS_VERSION_0_30)
12338
 
    #  error "VA API version >= 0.30.0-sds$LIBVA_SDS_VERSION_0_30 is required"
 
21863
    #  error "VA-API version >= 0.30.0-sds$LIBVA_SDS_VERSION_0_30 is required"
12339
21864
    # endif
12340
21865
    #elif !VA_CHECK_VERSION(0,31,0)
12341
 
    # error "VA API version >= 0.31 is required"
 
21866
    # error "VA-API version >= 0.31 is required"
12342
21867
    #endif
12343
21868
 
12344
21869
int
12349
21874
  return 0;
12350
21875
}
12351
21876
_ACEOF
12352
 
if ac_fn_c_try_compile "$LINENO"; then :
 
21877
rm -f conftest.$ac_objext
 
21878
if { (ac_try="$ac_compile"
 
21879
case "(($ac_try" in
 
21880
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21881
  *) ac_try_echo=$ac_try;;
 
21882
esac
 
21883
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21884
  (eval "$ac_compile") 2>conftest.er1
 
21885
  ac_status=$?
 
21886
  grep -v '^ *+' conftest.er1 >conftest.err
 
21887
  rm -f conftest.er1
 
21888
  cat conftest.err >&5
 
21889
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21890
  (exit $ac_status); } && {
 
21891
         test -z "$ac_c_werror_flag" ||
 
21892
         test ! -s conftest.err
 
21893
       } && test -s conftest.$ac_objext; then
12353
21894
  ac_cv_libva_sds_extensions="yes"
12354
21895
else
12355
 
  ac_cv_libva_sds_extensions="no"
 
21896
  echo "$as_me: failed program was:" >&5
 
21897
sed 's/^/| /' conftest.$ac_ext >&5
 
21898
 
 
21899
        ac_cv_libva_sds_extensions="no"
12356
21900
fi
 
21901
 
12357
21902
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12358
21903
  CFLAGS="$saved_CFLAGS"
12359
21904
 
12360
21905
fi
12361
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libva_sds_extensions" >&5
12362
 
$as_echo "$ac_cv_libva_sds_extensions" >&6; }
 
21906
{ echo "$as_me:$LINENO: result: $ac_cv_libva_sds_extensions" >&5
 
21907
echo "${ECHO_T}$ac_cv_libva_sds_extensions" >&6; }
12363
21908
VA_VERSION=`$PKG_CONFIG --modversion libva`
12364
21909
VA_MAJOR_VERSION=`echo "$VA_VERSION" | cut -d'.' -f1`
12365
21910
VA_MINOR_VERSION=`echo "$VA_VERSION" | cut -d'.' -f2`
12366
 
VA_DRIVER_INIT_FUNC="__vaDriverInit_${VA_MAJOR_VERSION}_${VA_MINOR_VERSION}_sds"
 
21911
VA_MICRO_VERSION=`echo "$VA_VERSION" | cut -d'.' -f3`
 
21912
VA_SDS_VERSION=`$PKG_CONFIG libva --variable sdsversion`
 
21913
 
 
21914
VA_VERSION_STR="$VA_VERSION"
 
21915
if test -n "$VA_SDS_VERSION"; then
 
21916
    VA_VERSION_STR="$VA_VERSION_STR-sds$VA_SDS_VERSION"
 
21917
fi
 
21918
 
 
21919
va_full_version_int=`expr ${VA_MAJOR_VERSION:-0} "*" 1000000 + \
 
21920
                          ${VA_MINOR_VERSION:-0} "*" 10000   + \
 
21921
                          ${VA_MICRO_VERSION:-0} "*" 100     + \
 
21922
                          ${VA_SDS_VERSION:-0}`
 
21923
VA_DRIVER_INIT_FUNC="__vaDriverInit_${VA_MAJOR_VERSION}_${VA_MINOR_VERSION}"
 
21924
if test $va_full_version_int -ge 00310005; then
 
21925
    VA_DRIVER_INIT_FUNC="${VA_DRIVER_INIT_FUNC}_${VA_MICRO_VERSION}_sds${VA_SDS_VERSION}"
 
21926
else
 
21927
    VA_DRIVER_INIT_FUNC="${VA_DRIVER_INIT_FUNC}_sds"
 
21928
fi
12367
21929
if test "$ac_cv_libva_sds_extensions" = "yes"; then
12368
21930
 
12369
21931
cat >>confdefs.h <<_ACEOF
12371
21933
_ACEOF
12372
21934
 
12373
21935
else
12374
 
    as_fn_error "Your VA API SDK does not include SDS extensions" "$LINENO" 5
 
21936
    { { echo "$as_me:$LINENO: error: Your VA-API SDK does not include SDS extensions" >&5
 
21937
echo "$as_me: error: Your VA-API SDK does not include SDS extensions" >&2;}
 
21938
   { (exit 1); exit 1; }; }
12375
21939
fi
12376
21940
 
12377
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for VA API (GLX extensions)" >&5
12378
 
$as_echo_n "checking for VA API (GLX extensions)... " >&6; }
12379
 
if test "${ac_cv_libva_glx_extensions+set}" = set; then :
12380
 
  $as_echo_n "(cached) " >&6
 
21941
{ echo "$as_me:$LINENO: checking for VA-API (GLX extensions)" >&5
 
21942
echo $ECHO_N "checking for VA-API (GLX extensions)... $ECHO_C" >&6; }
 
21943
if test "${ac_cv_libva_glx_extensions+set}" = set; then
 
21944
  echo $ECHO_N "(cached) $ECHO_C" >&6
12381
21945
else
12382
21946
 
12383
21947
  saved_CFLAGS="$CFLAGS"
12384
21948
  CFLAGS="$CFLAGS $LIBVA_DEPS_CFLAGS"
12385
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
21949
  cat >conftest.$ac_ext <<_ACEOF
 
21950
/* confdefs.h.  */
 
21951
_ACEOF
 
21952
cat confdefs.h >>conftest.$ac_ext
 
21953
cat >>conftest.$ac_ext <<_ACEOF
12386
21954
/* end confdefs.h.  */
12387
21955
 
12388
21956
    #include <va/va_version.h>
12389
21957
    #if VA_MAJOR_VERSION == 0 && VA_MINOR_VERSION == 30
12390
21958
    # if !defined(VA_SDS_VERSION) || (VA_SDS_VERSION < $LIBVA_GLX_SDS_VERSION_0_30)
12391
 
    #  error "VA API version >= 0.30.0-sds$LIBVA_GLX_SDS_VERSION_0_30 is required"
 
21959
    #  error "VA-API version >= 0.30.0-sds$LIBVA_GLX_SDS_VERSION_0_30 is required"
12392
21960
    # endif
12393
21961
    #elif VA_MAJOR_VERSION == 0 && VA_MINOR_VERSION == 31
12394
 
    # if !defined(VA_SDS_VERSION) || (VA_SDS_VERSION < $LIBVA_GLX_SDS_VERSION_0_31)
12395
 
    #  error "VA API version >= 0.31.0-sds$LIBVA_GLX_SDS_VERSION_0_31 is required"
 
21962
    # if VA_MICRO_VERSION < 1
 
21963
    #  if !defined(VA_SDS_VERSION) || (VA_SDS_VERSION < $LIBVA_GLX_SDS_VERSION_0_31)
 
21964
    #   error "VA-API version >= 0.31.0-sds$LIBVA_GLX_SDS_VERSION_0_31 is required"
 
21965
    #  endif
12396
21966
    # endif
 
21967
    #elif VA_MAJOR_VERSION ==0 && VA_MINOR_VERSION >= 32
12397
21968
    #else
12398
 
    # error "This version of VA API is not supported for OpenGL rendering"
 
21969
    # error "This version of VA-API is not supported for OpenGL rendering"
12399
21970
    #endif
12400
21971
 
12401
21972
int
12406
21977
  return 0;
12407
21978
}
12408
21979
_ACEOF
12409
 
if ac_fn_c_try_compile "$LINENO"; then :
 
21980
rm -f conftest.$ac_objext
 
21981
if { (ac_try="$ac_compile"
 
21982
case "(($ac_try" in
 
21983
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21984
  *) ac_try_echo=$ac_try;;
 
21985
esac
 
21986
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21987
  (eval "$ac_compile") 2>conftest.er1
 
21988
  ac_status=$?
 
21989
  grep -v '^ *+' conftest.er1 >conftest.err
 
21990
  rm -f conftest.er1
 
21991
  cat conftest.err >&5
 
21992
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21993
  (exit $ac_status); } && {
 
21994
         test -z "$ac_c_werror_flag" ||
 
21995
         test ! -s conftest.err
 
21996
       } && test -s conftest.$ac_objext; then
12410
21997
  ac_cv_libva_glx_extensions="yes"
12411
21998
else
12412
 
  ac_cv_libva_glx_extensions="no" USE_GLX=0
 
21999
  echo "$as_me: failed program was:" >&5
 
22000
sed 's/^/| /' conftest.$ac_ext >&5
 
22001
 
 
22002
        ac_cv_libva_glx_extensions="no" USE_GLX=0
12413
22003
fi
 
22004
 
12414
22005
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12415
22006
  CFLAGS="$saved_CFLAGS"
12416
22007
 
12417
22008
fi
12418
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libva_glx_extensions" >&5
12419
 
$as_echo "$ac_cv_libva_glx_extensions" >&6; }
 
22009
{ echo "$as_me:$LINENO: result: $ac_cv_libva_glx_extensions" >&5
 
22010
echo "${ECHO_T}$ac_cv_libva_glx_extensions" >&6; }
12420
22011
 
12421
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for VA drivers path" >&5
12422
 
$as_echo_n "checking for VA drivers path... " >&6; }
 
22012
{ echo "$as_me:$LINENO: checking for VA drivers path" >&5
 
22013
echo $ECHO_N "checking for VA drivers path... $ECHO_C" >&6; }
12423
22014
LIBVA_DRIVERS_PATH=`$PKG_CONFIG libva --variable driverdir`
12424
22015
if test -z "$LIBVA_DRIVERS_PATH"; then
12425
22016
    LIBVA_DRIVERS_PATH="/usr/lib/xorg/modules/drivers"
12426
22017
fi
12427
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBVA_DRIVERS_PATH" >&5
12428
 
$as_echo "$LIBVA_DRIVERS_PATH" >&6; }
12429
 
 
12430
 
 
12431
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for VDPAU" >&5
12432
 
$as_echo_n "checking for VDPAU... " >&6; }
12433
 
if test "${ac_cv_have_vdpau+set}" = set; then :
12434
 
  $as_echo_n "(cached) " >&6
 
22018
{ echo "$as_me:$LINENO: result: $LIBVA_DRIVERS_PATH" >&5
 
22019
echo "${ECHO_T}$LIBVA_DRIVERS_PATH" >&6; }
 
22020
 
 
22021
 
 
22022
{ echo "$as_me:$LINENO: checking for VDPAU" >&5
 
22023
echo $ECHO_N "checking for VDPAU... $ECHO_C" >&6; }
 
22024
if test "${ac_cv_have_vdpau+set}" = set; then
 
22025
  echo $ECHO_N "(cached) $ECHO_C" >&6
12435
22026
else
12436
22027
 
12437
22028
    saved_LIBS="$LIBS"
12438
22029
    LIBS="$LIBS -lvdpau"
12439
 
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
22030
    cat >conftest.$ac_ext <<_ACEOF
 
22031
/* confdefs.h.  */
 
22032
_ACEOF
 
22033
cat confdefs.h >>conftest.$ac_ext
 
22034
cat >>conftest.$ac_ext <<_ACEOF
12440
22035
/* end confdefs.h.  */
12441
22036
#include <vdpau/vdpau_x11.h>
12442
22037
int
12447
22042
  return 0;
12448
22043
}
12449
22044
_ACEOF
12450
 
if ac_fn_c_try_link "$LINENO"; then :
 
22045
rm -f conftest.$ac_objext conftest$ac_exeext
 
22046
if { (ac_try="$ac_link"
 
22047
case "(($ac_try" in
 
22048
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22049
  *) ac_try_echo=$ac_try;;
 
22050
esac
 
22051
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22052
  (eval "$ac_link") 2>conftest.er1
 
22053
  ac_status=$?
 
22054
  grep -v '^ *+' conftest.er1 >conftest.err
 
22055
  rm -f conftest.er1
 
22056
  cat conftest.err >&5
 
22057
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22058
  (exit $ac_status); } && {
 
22059
         test -z "$ac_c_werror_flag" ||
 
22060
         test ! -s conftest.err
 
22061
       } && test -s conftest$ac_exeext &&
 
22062
       $as_test_x conftest$ac_exeext; then
12451
22063
  ac_cv_have_vdpau="yes" HAVE_VDPAU=1
12452
22064
else
12453
 
  ac_cv_have_vdpau="no"  HAVE_VDPAU=0 LIBS="$saved_LIBS"
12454
 
fi
12455
 
rm -f core conftest.err conftest.$ac_objext \
12456
 
    conftest$ac_exeext conftest.$ac_ext
12457
 
 
12458
 
fi
12459
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_vdpau" >&5
12460
 
$as_echo "$ac_cv_have_vdpau" >&6; }
 
22065
  echo "$as_me: failed program was:" >&5
 
22066
sed 's/^/| /' conftest.$ac_ext >&5
 
22067
 
 
22068
        ac_cv_have_vdpau="no"  HAVE_VDPAU=0
 
22069
fi
 
22070
 
 
22071
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
22072
      conftest$ac_exeext conftest.$ac_ext
 
22073
 
 
22074
fi
 
22075
{ echo "$as_me:$LINENO: result: $ac_cv_have_vdpau" >&5
 
22076
echo "${ECHO_T}$ac_cv_have_vdpau" >&6; }
12461
22077
if test "$ac_cv_have_vdpau" = "no"; then
12462
 
    as_fn_error "you need VDPAU to build this package" "$LINENO" 5
 
22078
    { { echo "$as_me:$LINENO: error: you need VDPAU to build this package" >&5
 
22079
echo "$as_me: error: you need VDPAU to build this package" >&2;}
 
22080
   { (exit 1); exit 1; }; }
12463
22081
fi
12464
22082
 
12465
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for VDPAU/MPEG-4 support" >&5
12466
 
$as_echo_n "checking for VDPAU/MPEG-4 support... " >&6; }
12467
 
if test "${ac_cv_have_vdpau_mpeg4+set}" = set; then :
12468
 
  $as_echo_n "(cached) " >&6
 
22083
{ echo "$as_me:$LINENO: checking for VDPAU/MPEG-4 support" >&5
 
22084
echo $ECHO_N "checking for VDPAU/MPEG-4 support... $ECHO_C" >&6; }
 
22085
if test "${ac_cv_have_vdpau_mpeg4+set}" = set; then
 
22086
  echo $ECHO_N "(cached) $ECHO_C" >&6
12469
22087
else
12470
22088
 
12471
 
    saved_LIBS="$LIBS"
12472
 
    LIBS="$LIBS -lvdpau"
12473
 
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
22089
    cat >conftest.$ac_ext <<_ACEOF
 
22090
/* confdefs.h.  */
 
22091
_ACEOF
 
22092
cat confdefs.h >>conftest.$ac_ext
 
22093
cat >>conftest.$ac_ext <<_ACEOF
12474
22094
/* end confdefs.h.  */
12475
22095
#include <vdpau/vdpau.h>
12476
22096
int
12481
22101
  return 0;
12482
22102
}
12483
22103
_ACEOF
12484
 
if ac_fn_c_try_link "$LINENO"; then :
 
22104
rm -f conftest.$ac_objext conftest$ac_exeext
 
22105
if { (ac_try="$ac_link"
 
22106
case "(($ac_try" in
 
22107
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22108
  *) ac_try_echo=$ac_try;;
 
22109
esac
 
22110
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22111
  (eval "$ac_link") 2>conftest.er1
 
22112
  ac_status=$?
 
22113
  grep -v '^ *+' conftest.er1 >conftest.err
 
22114
  rm -f conftest.er1
 
22115
  cat conftest.err >&5
 
22116
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22117
  (exit $ac_status); } && {
 
22118
         test -z "$ac_c_werror_flag" ||
 
22119
         test ! -s conftest.err
 
22120
       } && test -s conftest$ac_exeext &&
 
22121
       $as_test_x conftest$ac_exeext; then
12485
22122
  ac_cv_have_vdpau_mpeg4="yes" HAVE_VDPAU_MPEG4=1
12486
22123
else
12487
 
  ac_cv_have_vdpau_mpeg4="no"  HAVE_VDPAU_MPEG4=0
12488
 
fi
12489
 
rm -f core conftest.err conftest.$ac_objext \
12490
 
    conftest$ac_exeext conftest.$ac_ext
12491
 
 
12492
 
fi
12493
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_vdpau_mpeg4" >&5
12494
 
$as_echo "$ac_cv_have_vdpau_mpeg4" >&6; }
 
22124
  echo "$as_me: failed program was:" >&5
 
22125
sed 's/^/| /' conftest.$ac_ext >&5
 
22126
 
 
22127
        ac_cv_have_vdpau_mpeg4="no"  HAVE_VDPAU_MPEG4=0
 
22128
fi
 
22129
 
 
22130
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
22131
      conftest$ac_exeext conftest.$ac_ext
 
22132
 
 
22133
fi
 
22134
{ echo "$as_me:$LINENO: result: $ac_cv_have_vdpau_mpeg4" >&5
 
22135
echo "${ECHO_T}$ac_cv_have_vdpau_mpeg4" >&6; }
12495
22136
 
12496
22137
cat >>confdefs.h <<_ACEOF
12497
22138
#define HAVE_VDPAU_MPEG4 $HAVE_VDPAU_MPEG4
12498
22139
_ACEOF
12499
22140
 
12500
22141
 
 
22142
VDPAU_VERSION=`cat << EOF | $CC -E - | grep ^vdpau_version | cut -d' ' -f2
 
22143
#include <vdpau/vdpau.h>
 
22144
vdpau_version VDPAU_VERSION
 
22145
EOF
 
22146
`
 
22147
 
12501
22148
 
12502
22149
cat >>confdefs.h <<_ACEOF
12503
22150
#define USE_GLX $USE_GLX
12504
22151
_ACEOF
12505
22152
 
12506
 
 if test $USE_GLX -eq 1; then
 
22153
 
 
22154
 
 
22155
if test $USE_GLX -eq 1; then
12507
22156
  USE_GLX_TRUE=
12508
22157
  USE_GLX_FALSE='#'
12509
22158
else
12513
22162
 
12514
22163
 
12515
22164
VDPAU_VIDEO_CFLAGS="$LIBVA_DEPS_CFLAGS"
12516
 
VDPAU_VIDEO_LIBS="$LIBVA_DEPS_LIBS"
 
22165
VDPAU_VIDEO_LIBS=""
12517
22166
if test $USE_GLX -eq 1; then
12518
22167
    VDPAU_VIDEO_CFLAGS="$VDPAU_VIDEO_CFLAGS $GL_DEPS_CFLAGS"
12519
22168
    VDPAU_VIDEO_LIBS="$VDPAU_VIDEO_LIBS $GL_DEPS_LIBS"
12521
22170
 
12522
22171
 
12523
22172
 
12524
 
ac_config_files="$ac_config_files Makefile src/Makefile"
 
22173
ac_config_files="$ac_config_files Makefile debian.upstream/Makefile src/Makefile"
12525
22174
 
12526
22175
cat >confcache <<\_ACEOF
12527
22176
# This file is a shell script that caches the results of configure
12550
22199
    case $ac_val in #(
12551
22200
    *${as_nl}*)
12552
22201
      case $ac_var in #(
12553
 
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12554
 
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
22202
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
 
22203
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
12555
22204
      esac
12556
22205
      case $ac_var in #(
12557
22206
      _ | IFS | as_nl) ;; #(
12558
 
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12559
 
      *) { eval $ac_var=; unset $ac_var;} ;;
 
22207
      *) $as_unset $ac_var ;;
12560
22208
      esac ;;
12561
22209
    esac
12562
22210
  done
12564
22212
  (set) 2>&1 |
12565
22213
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12566
22214
    *${as_nl}ac_space=\ *)
12567
 
      # `set' does not quote correctly, so add quotes: double-quote
12568
 
      # substitution turns \\\\ into \\, and sed turns \\ into \.
 
22215
      # `set' does not quote correctly, so add quotes (double-quote
 
22216
      # substitution turns \\\\ into \\, and sed turns \\ into \).
12569
22217
      sed -n \
12570
22218
        "s/'/'\\\\''/g;
12571
22219
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12588
22236
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12589
22237
  if test -w "$cache_file"; then
12590
22238
    test "x$cache_file" != "x/dev/null" &&
12591
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12592
 
$as_echo "$as_me: updating cache $cache_file" >&6;}
 
22239
      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
 
22240
echo "$as_me: updating cache $cache_file" >&6;}
12593
22241
    cat confcache >$cache_file
12594
22242
  else
12595
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12596
 
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 
22243
    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
 
22244
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12597
22245
  fi
12598
22246
fi
12599
22247
rm -f confcache
12609
22257
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12610
22258
  # 1. Remove the extension, and $U if already installed.
12611
22259
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12612
 
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
 
22260
  ac_i=`echo "$ac_i" | sed "$ac_script"`
12613
22261
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12614
22262
  #    will be set to the directory where LIBOBJS objects are built.
12615
 
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12616
 
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
 
22263
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
22264
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12617
22265
done
12618
22266
LIBOBJS=$ac_libobjs
12619
22267
 
12620
22268
LTLIBOBJS=$ac_ltlibobjs
12621
22269
 
12622
22270
 
12623
 
 if test -n "$EXEEXT"; then
12624
 
  am__EXEEXT_TRUE=
12625
 
  am__EXEEXT_FALSE='#'
12626
 
else
12627
 
  am__EXEEXT_TRUE='#'
12628
 
  am__EXEEXT_FALSE=
12629
 
fi
12630
 
 
12631
22271
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12632
 
  as_fn_error "conditional \"AMDEP\" was never defined.
12633
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
12634
 
fi
12635
 
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12636
 
  as_fn_error "conditional \"am__fastdepCC\" was never defined.
12637
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
12638
 
fi
12639
 
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12640
 
  as_fn_error "conditional \"am__fastdepCC\" was never defined.
12641
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
12642
 
fi
12643
 
 
 
22272
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 
22273
Usually this means the macro was only invoked conditionally." >&5
 
22274
echo "$as_me: error: conditional \"AMDEP\" was never defined.
 
22275
Usually this means the macro was only invoked conditionally." >&2;}
 
22276
   { (exit 1); exit 1; }; }
 
22277
fi
 
22278
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
22279
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
22280
Usually this means the macro was only invoked conditionally." >&5
 
22281
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
22282
Usually this means the macro was only invoked conditionally." >&2;}
 
22283
   { (exit 1); exit 1; }; }
 
22284
fi
 
22285
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
22286
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
 
22287
Usually this means the macro was only invoked conditionally." >&5
 
22288
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
 
22289
Usually this means the macro was only invoked conditionally." >&2;}
 
22290
   { (exit 1); exit 1; }; }
 
22291
fi
 
22292
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
22293
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
22294
Usually this means the macro was only invoked conditionally." >&5
 
22295
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
22296
Usually this means the macro was only invoked conditionally." >&2;}
 
22297
   { (exit 1); exit 1; }; }
 
22298
fi
12644
22299
if test -z "${USE_GLX_TRUE}" && test -z "${USE_GLX_FALSE}"; then
12645
 
  as_fn_error "conditional \"USE_GLX\" was never defined.
12646
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
22300
  { { echo "$as_me:$LINENO: error: conditional \"USE_GLX\" was never defined.
 
22301
Usually this means the macro was only invoked conditionally." >&5
 
22302
echo "$as_me: error: conditional \"USE_GLX\" was never defined.
 
22303
Usually this means the macro was only invoked conditionally." >&2;}
 
22304
   { (exit 1); exit 1; }; }
12647
22305
fi
12648
22306
 
12649
22307
: ${CONFIG_STATUS=./config.status}
12650
 
ac_write_fail=0
12651
22308
ac_clean_files_save=$ac_clean_files
12652
22309
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12653
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12654
 
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12655
 
as_write_fail=0
12656
 
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
 
22310
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
22311
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
22312
cat >$CONFIG_STATUS <<_ACEOF
12657
22313
#! $SHELL
12658
22314
# Generated by $as_me.
12659
22315
# Run this file to recreate the current configuration.
12663
22319
debug=false
12664
22320
ac_cs_recheck=false
12665
22321
ac_cs_silent=false
12666
 
 
12667
22322
SHELL=\${CONFIG_SHELL-$SHELL}
12668
 
export SHELL
12669
 
_ASEOF
12670
 
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12671
 
## -------------------- ##
12672
 
## M4sh Initialization. ##
12673
 
## -------------------- ##
 
22323
_ACEOF
 
22324
 
 
22325
cat >>$CONFIG_STATUS <<\_ACEOF
 
22326
## --------------------- ##
 
22327
## M4sh Initialization.  ##
 
22328
## --------------------- ##
12674
22329
 
12675
22330
# Be more Bourne compatible
12676
22331
DUALCASE=1; export DUALCASE # for MKS sh
12677
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
 
22332
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12678
22333
  emulate sh
12679
22334
  NULLCMD=:
12680
 
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
22335
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12681
22336
  # is contrary to our usage.  Disable this feature.
12682
22337
  alias -g '${1+"$@"}'='"$@"'
12683
22338
  setopt NO_GLOB_SUBST
12684
22339
else
12685
 
  case `(set -o) 2>/dev/null` in #(
12686
 
  *posix*) :
12687
 
    set -o posix ;; #(
12688
 
  *) :
12689
 
     ;;
 
22340
  case `(set -o) 2>/dev/null` in
 
22341
  *posix*) set -o posix ;;
12690
22342
esac
12691
 
fi
12692
 
 
12693
 
 
12694
 
as_nl='
12695
 
'
12696
 
export as_nl
12697
 
# Printing a long string crashes Solaris 7 /usr/bin/printf.
12698
 
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12699
 
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12700
 
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12701
 
# Prefer a ksh shell builtin over an external printf program on Solaris,
12702
 
# but without wasting forks for bash or zsh.
12703
 
if test -z "$BASH_VERSION$ZSH_VERSION" \
12704
 
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12705
 
  as_echo='print -r --'
12706
 
  as_echo_n='print -rn --'
12707
 
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12708
 
  as_echo='printf %s\n'
12709
 
  as_echo_n='printf %s'
12710
 
else
12711
 
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12712
 
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12713
 
    as_echo_n='/usr/ucb/echo -n'
12714
 
  else
12715
 
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12716
 
    as_echo_n_body='eval
12717
 
      arg=$1;
12718
 
      case $arg in #(
12719
 
      *"$as_nl"*)
12720
 
        expr "X$arg" : "X\\(.*\\)$as_nl";
12721
 
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12722
 
      esac;
12723
 
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12724
 
    '
12725
 
    export as_echo_n_body
12726
 
    as_echo_n='sh -c $as_echo_n_body as_echo'
12727
 
  fi
12728
 
  export as_echo_body
12729
 
  as_echo='sh -c $as_echo_body as_echo'
12730
 
fi
 
22343
 
 
22344
fi
 
22345
 
 
22346
 
 
22347
 
 
22348
 
 
22349
# PATH needs CR
 
22350
# Avoid depending upon Character Ranges.
 
22351
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
22352
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
22353
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
22354
as_cr_digits='0123456789'
 
22355
as_cr_alnum=$as_cr_Letters$as_cr_digits
12731
22356
 
12732
22357
# The user is always right.
12733
22358
if test "${PATH_SEPARATOR+set}" != set; then
12734
 
  PATH_SEPARATOR=:
12735
 
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12736
 
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12737
 
      PATH_SEPARATOR=';'
12738
 
  }
 
22359
  echo "#! /bin/sh" >conf$$.sh
 
22360
  echo  "exit 0"   >>conf$$.sh
 
22361
  chmod +x conf$$.sh
 
22362
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
22363
    PATH_SEPARATOR=';'
 
22364
  else
 
22365
    PATH_SEPARATOR=:
 
22366
  fi
 
22367
  rm -f conf$$.sh
 
22368
fi
 
22369
 
 
22370
# Support unset when possible.
 
22371
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
22372
  as_unset=unset
 
22373
else
 
22374
  as_unset=false
12739
22375
fi
12740
22376
 
12741
22377
 
12744
22380
# there to prevent editors from complaining about space-tab.
12745
22381
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12746
22382
# splitting by setting IFS to empty value.)
 
22383
as_nl='
 
22384
'
12747
22385
IFS=" ""        $as_nl"
12748
22386
 
12749
22387
# Find who we are.  Look in the path if we contain no directory separator.
12750
 
case $0 in #((
 
22388
case $0 in
12751
22389
  *[\\/]* ) as_myself=$0 ;;
12752
22390
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12753
22391
for as_dir in $PATH
12754
22392
do
12755
22393
  IFS=$as_save_IFS
12756
22394
  test -z "$as_dir" && as_dir=.
12757
 
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12758
 
  done
 
22395
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
22396
done
12759
22397
IFS=$as_save_IFS
12760
22398
 
12761
22399
     ;;
12766
22404
  as_myself=$0
12767
22405
fi
12768
22406
if test ! -f "$as_myself"; then
12769
 
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12770
 
  exit 1
 
22407
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
22408
  { (exit 1); exit 1; }
12771
22409
fi
12772
22410
 
12773
 
# Unset variables that we do not need and which cause bugs (e.g. in
12774
 
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12775
 
# suppresses any "Segmentation fault" message there.  '((' could
12776
 
# trigger a bug in pdksh 5.2.14.
12777
 
for as_var in BASH_ENV ENV MAIL MAILPATH
12778
 
do eval test x\${$as_var+set} = xset \
12779
 
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 
22411
# Work around bugs in pre-3.0 UWIN ksh.
 
22412
for as_var in ENV MAIL MAILPATH
 
22413
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12780
22414
done
12781
22415
PS1='$ '
12782
22416
PS2='> '
12783
22417
PS4='+ '
12784
22418
 
12785
22419
# NLS nuisances.
12786
 
LC_ALL=C
12787
 
export LC_ALL
12788
 
LANGUAGE=C
12789
 
export LANGUAGE
12790
 
 
12791
 
# CDPATH.
12792
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12793
 
 
12794
 
 
12795
 
# as_fn_error ERROR [LINENO LOG_FD]
12796
 
# ---------------------------------
12797
 
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12798
 
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12799
 
# script with status $?, using 1 if that was 0.
12800
 
as_fn_error ()
12801
 
{
12802
 
  as_status=$?; test $as_status -eq 0 && as_status=1
12803
 
  if test "$3"; then
12804
 
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12805
 
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
 
22420
for as_var in \
 
22421
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
22422
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
22423
  LC_TELEPHONE LC_TIME
 
22424
do
 
22425
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
22426
    eval $as_var=C; export $as_var
 
22427
  else
 
22428
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12806
22429
  fi
12807
 
  $as_echo "$as_me: error: $1" >&2
12808
 
  as_fn_exit $as_status
12809
 
} # as_fn_error
12810
 
 
12811
 
 
12812
 
# as_fn_set_status STATUS
12813
 
# -----------------------
12814
 
# Set $? to STATUS, without forking.
12815
 
as_fn_set_status ()
12816
 
{
12817
 
  return $1
12818
 
} # as_fn_set_status
12819
 
 
12820
 
# as_fn_exit STATUS
12821
 
# -----------------
12822
 
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12823
 
as_fn_exit ()
12824
 
{
12825
 
  set +e
12826
 
  as_fn_set_status $1
12827
 
  exit $1
12828
 
} # as_fn_exit
12829
 
 
12830
 
# as_fn_unset VAR
12831
 
# ---------------
12832
 
# Portably unset VAR.
12833
 
as_fn_unset ()
12834
 
{
12835
 
  { eval $1=; unset $1;}
12836
 
}
12837
 
as_unset=as_fn_unset
12838
 
# as_fn_append VAR VALUE
12839
 
# ----------------------
12840
 
# Append the text in VALUE to the end of the definition contained in VAR. Take
12841
 
# advantage of any shell optimizations that allow amortized linear growth over
12842
 
# repeated appends, instead of the typical quadratic growth present in naive
12843
 
# implementations.
12844
 
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12845
 
  eval 'as_fn_append ()
12846
 
  {
12847
 
    eval $1+=\$2
12848
 
  }'
12849
 
else
12850
 
  as_fn_append ()
12851
 
  {
12852
 
    eval $1=\$$1\$2
12853
 
  }
12854
 
fi # as_fn_append
12855
 
 
12856
 
# as_fn_arith ARG...
12857
 
# ------------------
12858
 
# Perform arithmetic evaluation on the ARGs, and store the result in the
12859
 
# global $as_val. Take advantage of shells that can avoid forks. The arguments
12860
 
# must be portable across $(()) and expr.
12861
 
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12862
 
  eval 'as_fn_arith ()
12863
 
  {
12864
 
    as_val=$(( $* ))
12865
 
  }'
12866
 
else
12867
 
  as_fn_arith ()
12868
 
  {
12869
 
    as_val=`expr "$@" || test $? -eq 1`
12870
 
  }
12871
 
fi # as_fn_arith
12872
 
 
12873
 
 
 
22430
done
 
22431
 
 
22432
# Required to use basename.
12874
22433
if expr a : '\(a\)' >/dev/null 2>&1 &&
12875
22434
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12876
22435
  as_expr=expr
12884
22443
  as_basename=false
12885
22444
fi
12886
22445
 
12887
 
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12888
 
  as_dirname=dirname
12889
 
else
12890
 
  as_dirname=false
12891
 
fi
12892
22446
 
 
22447
# Name of the executable.
12893
22448
as_me=`$as_basename -- "$0" ||
12894
22449
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12895
22450
         X"$0" : 'X\(//\)$' \| \
12896
22451
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12897
 
$as_echo X/"$0" |
 
22452
echo X/"$0" |
12898
22453
    sed '/^.*\/\([^/][^/]*\)\/*$/{
12899
22454
            s//\1/
12900
22455
            q
12909
22464
          }
12910
22465
          s/.*/./; q'`
12911
22466
 
12912
 
# Avoid depending upon Character Ranges.
12913
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12914
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12915
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12916
 
as_cr_digits='0123456789'
12917
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
22467
# CDPATH.
 
22468
$as_unset CDPATH
 
22469
 
 
22470
 
 
22471
 
 
22472
  as_lineno_1=$LINENO
 
22473
  as_lineno_2=$LINENO
 
22474
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
22475
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
 
22476
 
 
22477
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
22478
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
22479
  # line-number line after each line using $LINENO; the second 'sed'
 
22480
  # does the real work.  The second script uses 'N' to pair each
 
22481
  # line-number line with the line containing $LINENO, and appends
 
22482
  # trailing '-' during substitution so that $LINENO is not a special
 
22483
  # case at line end.
 
22484
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
22485
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
 
22486
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
22487
  sed -n '
 
22488
    p
 
22489
    /[$]LINENO/=
 
22490
  ' <$as_myself |
 
22491
    sed '
 
22492
      s/[$]LINENO.*/&-/
 
22493
      t lineno
 
22494
      b
 
22495
      :lineno
 
22496
      N
 
22497
      :loop
 
22498
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
22499
      t loop
 
22500
      s/-\n.*//
 
22501
    ' >$as_me.lineno &&
 
22502
  chmod +x "$as_me.lineno" ||
 
22503
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
22504
   { (exit 1); exit 1; }; }
 
22505
 
 
22506
  # Don't try to exec as it changes $[0], causing all sort of problems
 
22507
  # (the dirname of $[0] is not the place where we might find the
 
22508
  # original and so on.  Autoconf is especially sensitive to this).
 
22509
  . "./$as_me.lineno"
 
22510
  # Exit status is that of the last command.
 
22511
  exit
 
22512
}
 
22513
 
 
22514
 
 
22515
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
22516
  as_dirname=dirname
 
22517
else
 
22518
  as_dirname=false
 
22519
fi
12918
22520
 
12919
22521
ECHO_C= ECHO_N= ECHO_T=
12920
 
case `echo -n x` in #(((((
 
22522
case `echo -n x` in
12921
22523
-n*)
12922
 
  case `echo 'xy\c'` in
 
22524
  case `echo 'x\c'` in
12923
22525
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
12924
 
  xy)  ECHO_C='\c';;
12925
 
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12926
 
       ECHO_T=' ';;
 
22526
  *)   ECHO_C='\c';;
12927
22527
  esac;;
12928
22528
*)
12929
22529
  ECHO_N='-n';;
12930
22530
esac
12931
22531
 
 
22532
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
22533
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
22534
  as_expr=expr
 
22535
else
 
22536
  as_expr=false
 
22537
fi
 
22538
 
12932
22539
rm -f conf$$ conf$$.exe conf$$.file
12933
22540
if test -d conf$$.dir; then
12934
22541
  rm -f conf$$.dir/conf$$.file
12935
22542
else
12936
22543
  rm -f conf$$.dir
12937
 
  mkdir conf$$.dir 2>/dev/null
 
22544
  mkdir conf$$.dir
12938
22545
fi
12939
 
if (echo >conf$$.file) 2>/dev/null; then
12940
 
  if ln -s conf$$.file conf$$ 2>/dev/null; then
12941
 
    as_ln_s='ln -s'
12942
 
    # ... but there are two gotchas:
12943
 
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12944
 
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12945
 
    # In both cases, we have to default to `cp -p'.
12946
 
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12947
 
      as_ln_s='cp -p'
12948
 
  elif ln conf$$.file conf$$ 2>/dev/null; then
12949
 
    as_ln_s=ln
12950
 
  else
 
22546
echo >conf$$.file
 
22547
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
22548
  as_ln_s='ln -s'
 
22549
  # ... but there are two gotchas:
 
22550
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
22551
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
22552
  # In both cases, we have to default to `cp -p'.
 
22553
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12951
22554
    as_ln_s='cp -p'
12952
 
  fi
 
22555
elif ln conf$$.file conf$$ 2>/dev/null; then
 
22556
  as_ln_s=ln
12953
22557
else
12954
22558
  as_ln_s='cp -p'
12955
22559
fi
12956
22560
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12957
22561
rmdir conf$$.dir 2>/dev/null
12958
22562
 
12959
 
 
12960
 
# as_fn_mkdir_p
12961
 
# -------------
12962
 
# Create "$as_dir" as a directory, including parents if necessary.
12963
 
as_fn_mkdir_p ()
12964
 
{
12965
 
 
12966
 
  case $as_dir in #(
12967
 
  -*) as_dir=./$as_dir;;
12968
 
  esac
12969
 
  test -d "$as_dir" || eval $as_mkdir_p || {
12970
 
    as_dirs=
12971
 
    while :; do
12972
 
      case $as_dir in #(
12973
 
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12974
 
      *) as_qdir=$as_dir;;
12975
 
      esac
12976
 
      as_dirs="'$as_qdir' $as_dirs"
12977
 
      as_dir=`$as_dirname -- "$as_dir" ||
12978
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12979
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
12980
 
         X"$as_dir" : 'X\(//\)$' \| \
12981
 
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12982
 
$as_echo X"$as_dir" |
12983
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12984
 
            s//\1/
12985
 
            q
12986
 
          }
12987
 
          /^X\(\/\/\)[^/].*/{
12988
 
            s//\1/
12989
 
            q
12990
 
          }
12991
 
          /^X\(\/\/\)$/{
12992
 
            s//\1/
12993
 
            q
12994
 
          }
12995
 
          /^X\(\/\).*/{
12996
 
            s//\1/
12997
 
            q
12998
 
          }
12999
 
          s/.*/./; q'`
13000
 
      test -d "$as_dir" && break
13001
 
    done
13002
 
    test -z "$as_dirs" || eval "mkdir $as_dirs"
13003
 
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13004
 
 
13005
 
 
13006
 
} # as_fn_mkdir_p
13007
22563
if mkdir -p . 2>/dev/null; then
13008
 
  as_mkdir_p='mkdir -p "$as_dir"'
 
22564
  as_mkdir_p=:
13009
22565
else
13010
22566
  test -d ./-p && rmdir ./-p
13011
22567
  as_mkdir_p=false
13022
22578
  as_test_x='
13023
22579
    eval sh -c '\''
13024
22580
      if test -d "$1"; then
13025
 
        test -d "$1/.";
 
22581
        test -d "$1/.";
13026
22582
      else
13027
 
        case $1 in #(
13028
 
        -*)set "./$1";;
 
22583
        case $1 in
 
22584
        -*)set "./$1";;
13029
22585
        esac;
13030
 
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
 
22586
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13031
22587
        ???[sx]*):;;*)false;;esac;fi
13032
22588
    '\'' sh
13033
22589
  '
13042
22598
 
13043
22599
 
13044
22600
exec 6>&1
13045
 
## ----------------------------------- ##
13046
 
## Main body of $CONFIG_STATUS script. ##
13047
 
## ----------------------------------- ##
13048
 
_ASEOF
13049
 
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13050
22601
 
13051
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13052
 
# Save the log message, to keep $0 and so on meaningful, and to
 
22602
# Save the log message, to keep $[0] and so on meaningful, and to
13053
22603
# report actual input values of CONFIG_FILES etc. instead of their
13054
22604
# values after options handling.
13055
22605
ac_log="
13056
 
This file was extended by vdpau_video $as_me 0.6.3, which was
13057
 
generated by GNU Autoconf 2.65.  Invocation command line was
 
22606
This file was extended by vdpau_video $as_me 0.7.3, which was
 
22607
generated by GNU Autoconf 2.61.  Invocation command line was
13058
22608
 
13059
22609
  CONFIG_FILES    = $CONFIG_FILES
13060
22610
  CONFIG_HEADERS  = $CONFIG_HEADERS
13067
22617
 
13068
22618
_ACEOF
13069
22619
 
13070
 
case $ac_config_files in *"
13071
 
"*) set x $ac_config_files; shift; ac_config_files=$*;;
13072
 
esac
13073
 
 
13074
 
case $ac_config_headers in *"
13075
 
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13076
 
esac
13077
 
 
13078
 
 
13079
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
22620
cat >>$CONFIG_STATUS <<_ACEOF
13080
22621
# Files that config.status was made for.
13081
22622
config_files="$ac_config_files"
13082
22623
config_headers="$ac_config_headers"
13084
22625
 
13085
22626
_ACEOF
13086
22627
 
13087
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
22628
cat >>$CONFIG_STATUS <<\_ACEOF
13088
22629
ac_cs_usage="\
13089
 
\`$as_me' instantiates files and other configuration actions
13090
 
from templates according to the current configuration.  Unless the files
13091
 
and actions are specified as TAGs, all are instantiated by default.
 
22630
\`$as_me' instantiates files from templates according to the
 
22631
current configuration.
13092
22632
 
13093
 
Usage: $0 [OPTION]... [TAG]...
 
22633
Usage: $0 [OPTIONS] [FILE]...
13094
22634
 
13095
22635
  -h, --help       print this help, then exit
13096
22636
  -V, --version    print version number and configuration settings, then exit
13097
 
      --config     print configuration, then exit
13098
 
  -q, --quiet, --silent
13099
 
                   do not print progress messages
 
22637
  -q, --quiet      do not print progress messages
13100
22638
  -d, --debug      don't remove temporary files
13101
22639
      --recheck    update $as_me by reconfiguring in the same conditions
13102
 
      --file=FILE[:TEMPLATE]
13103
 
                   instantiate the configuration file FILE
13104
 
      --header=FILE[:TEMPLATE]
13105
 
                   instantiate the configuration header FILE
 
22640
  --file=FILE[:TEMPLATE]
 
22641
                   instantiate the configuration file FILE
 
22642
  --header=FILE[:TEMPLATE]
 
22643
                   instantiate the configuration header FILE
13106
22644
 
13107
22645
Configuration files:
13108
22646
$config_files
13113
22651
Configuration commands:
13114
22652
$config_commands
13115
22653
 
13116
 
Report bugs to <gbeauchesne@splitted-desktop.com>."
 
22654
Report bugs to <bug-autoconf@gnu.org>."
13117
22655
 
13118
22656
_ACEOF
13119
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13120
 
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
 
22657
cat >>$CONFIG_STATUS <<_ACEOF
13121
22658
ac_cs_version="\\
13122
 
vdpau_video config.status 0.6.3
13123
 
configured by $0, generated by GNU Autoconf 2.65,
13124
 
  with options \\"\$ac_cs_config\\"
 
22659
vdpau_video config.status 0.7.3
 
22660
configured by $0, generated by GNU Autoconf 2.61,
 
22661
  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13125
22662
 
13126
 
Copyright (C) 2009 Free Software Foundation, Inc.
 
22663
Copyright (C) 2006 Free Software Foundation, Inc.
13127
22664
This config.status script is free software; the Free Software Foundation
13128
22665
gives unlimited permission to copy, distribute and modify it."
13129
22666
 
13130
22667
ac_pwd='$ac_pwd'
13131
22668
srcdir='$srcdir'
13132
22669
INSTALL='$INSTALL'
13133
 
MKDIR_P='$MKDIR_P'
13134
 
AWK='$AWK'
13135
 
test -n "\$AWK" || AWK=awk
13136
22670
_ACEOF
13137
22671
 
13138
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13139
 
# The default lists apply if the user does not specify any file.
 
22672
cat >>$CONFIG_STATUS <<\_ACEOF
 
22673
# If no file are specified by the user, then we need to provide default
 
22674
# value.  By we need to know if files were specified by the user.
13140
22675
ac_need_defaults=:
13141
22676
while test $# != 0
13142
22677
do
13158
22693
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13159
22694
    ac_cs_recheck=: ;;
13160
22695
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13161
 
    $as_echo "$ac_cs_version"; exit ;;
13162
 
  --config | --confi | --conf | --con | --co | --c )
13163
 
    $as_echo "$ac_cs_config"; exit ;;
 
22696
    echo "$ac_cs_version"; exit ;;
13164
22697
  --debug | --debu | --deb | --de | --d | -d )
13165
22698
    debug=: ;;
13166
22699
  --file | --fil | --fi | --f )
13167
22700
    $ac_shift
13168
 
    case $ac_optarg in
13169
 
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13170
 
    esac
13171
 
    as_fn_append CONFIG_FILES " '$ac_optarg'"
 
22701
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13172
22702
    ac_need_defaults=false;;
13173
22703
  --header | --heade | --head | --hea )
13174
22704
    $ac_shift
13175
 
    case $ac_optarg in
13176
 
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13177
 
    esac
13178
 
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
 
22705
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13179
22706
    ac_need_defaults=false;;
13180
22707
  --he | --h)
13181
22708
    # Conflict between --help and --header
13182
 
    as_fn_error "ambiguous option: \`$1'
13183
 
Try \`$0 --help' for more information.";;
 
22709
    { echo "$as_me: error: ambiguous option: $1
 
22710
Try \`$0 --help' for more information." >&2
 
22711
   { (exit 1); exit 1; }; };;
13184
22712
  --help | --hel | -h )
13185
 
    $as_echo "$ac_cs_usage"; exit ;;
 
22713
    echo "$ac_cs_usage"; exit ;;
13186
22714
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13187
22715
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13188
22716
    ac_cs_silent=: ;;
13189
22717
 
13190
22718
  # This is an error.
13191
 
  -*) as_fn_error "unrecognized option: \`$1'
13192
 
Try \`$0 --help' for more information." ;;
 
22719
  -*) { echo "$as_me: error: unrecognized option: $1
 
22720
Try \`$0 --help' for more information." >&2
 
22721
   { (exit 1); exit 1; }; } ;;
13193
22722
 
13194
 
  *) as_fn_append ac_config_targets " $1"
 
22723
  *) ac_config_targets="$ac_config_targets $1"
13195
22724
     ac_need_defaults=false ;;
13196
22725
 
13197
22726
  esac
13206
22735
fi
13207
22736
 
13208
22737
_ACEOF
13209
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
22738
cat >>$CONFIG_STATUS <<_ACEOF
13210
22739
if \$ac_cs_recheck; then
13211
 
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13212
 
  shift
13213
 
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13214
 
  CONFIG_SHELL='$SHELL'
 
22740
  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
22741
  CONFIG_SHELL=$SHELL
13215
22742
  export CONFIG_SHELL
13216
 
  exec "\$@"
 
22743
  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13217
22744
fi
13218
22745
 
13219
22746
_ACEOF
13220
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
22747
cat >>$CONFIG_STATUS <<\_ACEOF
13221
22748
exec 5>>config.log
13222
22749
{
13223
22750
  echo
13224
22751
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13225
22752
## Running $as_me. ##
13226
22753
_ASBOX
13227
 
  $as_echo "$ac_log"
 
22754
  echo "$ac_log"
13228
22755
} >&5
13229
22756
 
13230
22757
_ACEOF
13231
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
22758
cat >>$CONFIG_STATUS <<_ACEOF
13232
22759
#
13233
22760
# INIT-COMMANDS
13234
22761
#
13235
22762
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13236
22763
 
13237
 
 
13238
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
13239
 
# if CDPATH is set.
13240
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13241
 
 
13242
 
sed_quote_subst='$sed_quote_subst'
13243
 
double_quote_subst='$double_quote_subst'
13244
 
delay_variable_subst='$delay_variable_subst'
13245
 
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13246
 
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13247
 
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13248
 
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13249
 
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13250
 
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13251
 
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13252
 
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13253
 
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13254
 
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13255
 
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13256
 
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13257
 
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13258
 
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13259
 
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13260
 
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13261
 
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13262
 
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13263
 
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13264
 
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13265
 
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13266
 
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13267
 
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13268
 
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13269
 
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13270
 
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13271
 
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13272
 
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13273
 
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13274
 
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13275
 
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13276
 
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13277
 
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13278
 
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13279
 
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13280
 
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13281
 
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13282
 
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13283
 
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13284
 
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13285
 
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13286
 
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13287
 
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13288
 
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13289
 
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
13290
 
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13291
 
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13292
 
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13293
 
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13294
 
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13295
 
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13296
 
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13297
 
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13298
 
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13299
 
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13300
 
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13301
 
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13302
 
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13303
 
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13304
 
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13305
 
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13306
 
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13307
 
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13308
 
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13309
 
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13310
 
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13311
 
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13312
 
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13313
 
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13314
 
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13315
 
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13316
 
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13317
 
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13318
 
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13319
 
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13320
 
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13321
 
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13322
 
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13323
 
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13324
 
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13325
 
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13326
 
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13327
 
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13328
 
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13329
 
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13330
 
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13331
 
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13332
 
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13333
 
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13334
 
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13335
 
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13336
 
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13337
 
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13338
 
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13339
 
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13340
 
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13341
 
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13342
 
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13343
 
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13344
 
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13345
 
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13346
 
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13347
 
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13348
 
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13349
 
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13350
 
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13351
 
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13352
 
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13353
 
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13354
 
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13355
 
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13356
 
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13357
 
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13358
 
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13359
 
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13360
 
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13361
 
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13362
 
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13363
 
 
13364
 
LTCC='$LTCC'
13365
 
LTCFLAGS='$LTCFLAGS'
13366
 
compiler='$compiler_DEFAULT'
13367
 
 
13368
 
# Quote evaled strings.
13369
 
for var in SED \
13370
 
GREP \
13371
 
EGREP \
13372
 
FGREP \
13373
 
LD \
13374
 
NM \
13375
 
LN_S \
13376
 
lt_SP2NL \
13377
 
lt_NL2SP \
13378
 
reload_flag \
13379
 
OBJDUMP \
13380
 
deplibs_check_method \
13381
 
file_magic_cmd \
13382
 
AR \
13383
 
AR_FLAGS \
13384
 
STRIP \
13385
 
RANLIB \
13386
 
CC \
13387
 
CFLAGS \
13388
 
compiler \
13389
 
lt_cv_sys_global_symbol_pipe \
13390
 
lt_cv_sys_global_symbol_to_cdecl \
13391
 
lt_cv_sys_global_symbol_to_c_name_address \
13392
 
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13393
 
SHELL \
13394
 
ECHO \
13395
 
lt_prog_compiler_no_builtin_flag \
13396
 
lt_prog_compiler_wl \
13397
 
lt_prog_compiler_pic \
13398
 
lt_prog_compiler_static \
13399
 
lt_cv_prog_compiler_c_o \
13400
 
need_locks \
13401
 
DSYMUTIL \
13402
 
NMEDIT \
13403
 
LIPO \
13404
 
OTOOL \
13405
 
OTOOL64 \
13406
 
shrext_cmds \
13407
 
export_dynamic_flag_spec \
13408
 
whole_archive_flag_spec \
13409
 
compiler_needs_object \
13410
 
with_gnu_ld \
13411
 
allow_undefined_flag \
13412
 
no_undefined_flag \
13413
 
hardcode_libdir_flag_spec \
13414
 
hardcode_libdir_flag_spec_ld \
13415
 
hardcode_libdir_separator \
13416
 
fix_srcfile_path \
13417
 
exclude_expsyms \
13418
 
include_expsyms \
13419
 
file_list_spec \
13420
 
variables_saved_for_relink \
13421
 
libname_spec \
13422
 
library_names_spec \
13423
 
soname_spec \
13424
 
finish_eval \
13425
 
old_striplib \
13426
 
striplib; do
13427
 
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13428
 
    *[\\\\\\\`\\"\\\$]*)
13429
 
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13430
 
      ;;
13431
 
    *)
13432
 
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13433
 
      ;;
13434
 
    esac
13435
 
done
13436
 
 
13437
 
# Double-quote double-evaled strings.
13438
 
for var in reload_cmds \
13439
 
old_postinstall_cmds \
13440
 
old_postuninstall_cmds \
13441
 
old_archive_cmds \
13442
 
extract_expsyms_cmds \
13443
 
old_archive_from_new_cmds \
13444
 
old_archive_from_expsyms_cmds \
13445
 
archive_cmds \
13446
 
archive_expsym_cmds \
13447
 
module_cmds \
13448
 
module_expsym_cmds \
13449
 
export_symbols_cmds \
13450
 
prelink_cmds \
13451
 
postinstall_cmds \
13452
 
postuninstall_cmds \
13453
 
finish_cmds \
13454
 
sys_lib_search_path_spec \
13455
 
sys_lib_dlsearch_path_spec; do
13456
 
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13457
 
    *[\\\\\\\`\\"\\\$]*)
13458
 
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13459
 
      ;;
13460
 
    *)
13461
 
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13462
 
      ;;
13463
 
    esac
13464
 
done
13465
 
 
13466
 
# Fix-up fallback echo if it was mangled by the above quoting rules.
13467
 
case \$lt_ECHO in
13468
 
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13469
 
  ;;
13470
 
esac
13471
 
 
13472
 
ac_aux_dir='$ac_aux_dir'
13473
 
xsi_shell='$xsi_shell'
13474
 
lt_shell_append='$lt_shell_append'
13475
 
 
13476
 
# See if we are running on zsh, and set the options which allow our
13477
 
# commands through without removal of \ escapes INIT.
13478
 
if test -n "\${ZSH_VERSION+set}" ; then
13479
 
   setopt NO_GLOB_SUBST
13480
 
fi
13481
 
 
13482
 
 
13483
 
    PACKAGE='$PACKAGE'
13484
 
    VERSION='$VERSION'
13485
 
    TIMESTAMP='$TIMESTAMP'
13486
 
    RM='$RM'
13487
 
    ofile='$ofile'
13488
 
 
13489
 
 
13490
 
 
13491
 
 
13492
22764
_ACEOF
13493
22765
 
13494
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
22766
cat >>$CONFIG_STATUS <<\_ACEOF
13495
22767
 
13496
22768
# Handling of arguments.
13497
22769
for ac_config_target in $ac_config_targets
13499
22771
  case $ac_config_target in
13500
22772
    "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
13501
22773
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13502
 
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13503
22774
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
22775
    "debian.upstream/Makefile") CONFIG_FILES="$CONFIG_FILES debian.upstream/Makefile" ;;
13504
22776
    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13505
22777
 
13506
 
  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
 
22778
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
22779
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
22780
   { (exit 1); exit 1; }; };;
13507
22781
  esac
13508
22782
done
13509
22783
 
13530
22804
  trap 'exit_status=$?
13531
22805
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13532
22806
' 0
13533
 
  trap 'as_fn_exit 1' 1 2 13 15
 
22807
  trap '{ (exit 1); exit 1; }' 1 2 13 15
13534
22808
}
13535
22809
# Create a (secure) tmp directory for tmp files.
13536
22810
 
13541
22815
{
13542
22816
  tmp=./conf$$-$RANDOM
13543
22817
  (umask 077 && mkdir "$tmp")
13544
 
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
13545
 
 
13546
 
# Set up the scripts for CONFIG_FILES section.
13547
 
# No need to generate them if there are no CONFIG_FILES.
13548
 
# This happens for instance with `./config.status config.h'.
 
22818
} ||
 
22819
{
 
22820
   echo "$me: cannot create a temporary directory in ." >&2
 
22821
   { (exit 1); exit 1; }
 
22822
}
 
22823
 
 
22824
#
 
22825
# Set up the sed scripts for CONFIG_FILES section.
 
22826
#
 
22827
 
 
22828
# No need to generate the scripts if there are no CONFIG_FILES.
 
22829
# This happens for instance when ./config.status config.h
13549
22830
if test -n "$CONFIG_FILES"; then
13550
22831
 
13551
 
 
13552
 
ac_cr=`echo X | tr X '\015'`
13553
 
# On cygwin, bash can eat \r inside `` if the user requested igncr.
13554
 
# But we know of no other shell where ac_cr would be empty at this
13555
 
# point, so we can use a bashism as a fallback.
13556
 
if test "x$ac_cr" = x; then
13557
 
  eval ac_cr=\$\'\\r\'
13558
 
fi
13559
 
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13560
 
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13561
 
  ac_cs_awk_cr='\r'
13562
 
else
13563
 
  ac_cs_awk_cr=$ac_cr
13564
 
fi
13565
 
 
13566
 
echo 'BEGIN {' >"$tmp/subs1.awk" &&
13567
 
_ACEOF
13568
 
 
13569
 
 
13570
 
{
13571
 
  echo "cat >conf$$subs.awk <<_ACEOF" &&
13572
 
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13573
 
  echo "_ACEOF"
13574
 
} >conf$$subs.sh ||
13575
 
  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13576
 
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13577
 
ac_delim='%!_!# '
13578
 
for ac_last_try in false false false false false :; do
13579
 
  . ./conf$$subs.sh ||
13580
 
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13581
 
 
13582
 
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13583
 
  if test $ac_delim_n = $ac_delim_num; then
13584
 
    break
13585
 
  elif $ac_last_try; then
13586
 
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13587
 
  else
13588
 
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13589
 
  fi
13590
 
done
13591
 
rm -f conf$$subs.sh
13592
 
 
13593
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13594
 
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13595
 
_ACEOF
13596
 
sed -n '
13597
 
h
13598
 
s/^/S["/; s/!.*/"]=/
13599
 
p
13600
 
g
13601
 
s/^[^!]*!//
13602
 
:repl
13603
 
t repl
13604
 
s/'"$ac_delim"'$//
13605
 
t delim
13606
 
:nl
13607
 
h
13608
 
s/\(.\{148\}\)..*/\1/
13609
 
t more1
13610
 
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13611
 
p
13612
 
n
13613
 
b repl
13614
 
:more1
13615
 
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13616
 
p
13617
 
g
13618
 
s/.\{148\}//
13619
 
t nl
13620
 
:delim
13621
 
h
13622
 
s/\(.\{148\}\)..*/\1/
13623
 
t more2
13624
 
s/["\\]/\\&/g; s/^/"/; s/$/"/
13625
 
p
13626
 
b
13627
 
:more2
13628
 
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13629
 
p
13630
 
g
13631
 
s/.\{148\}//
13632
 
t delim
13633
 
' <conf$$subs.awk | sed '
13634
 
/^[^""]/{
13635
 
  N
13636
 
  s/\n//
13637
 
}
13638
 
' >>$CONFIG_STATUS || ac_write_fail=1
13639
 
rm -f conf$$subs.awk
13640
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13641
 
_ACAWK
13642
 
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13643
 
  for (key in S) S_is_set[key] = 1
13644
 
  FS = ""
13645
 
 
13646
 
}
13647
 
{
13648
 
  line = $ 0
13649
 
  nfields = split(line, field, "@")
13650
 
  substed = 0
13651
 
  len = length(field[1])
13652
 
  for (i = 2; i < nfields; i++) {
13653
 
    key = field[i]
13654
 
    keylen = length(key)
13655
 
    if (S_is_set[key]) {
13656
 
      value = S[key]
13657
 
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13658
 
      len += length(value) + length(field[++i])
13659
 
      substed = 1
13660
 
    } else
13661
 
      len += 1 + keylen
13662
 
  }
13663
 
 
13664
 
  print line
13665
 
}
13666
 
 
13667
 
_ACAWK
13668
 
_ACEOF
13669
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13670
 
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13671
 
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13672
 
else
13673
 
  cat
13674
 
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13675
 
  || as_fn_error "could not setup config files machinery" "$LINENO" 5
13676
 
_ACEOF
 
22832
_ACEOF
 
22833
 
 
22834
 
 
22835
 
 
22836
ac_delim='%!_!# '
 
22837
for ac_last_try in false false false false false :; do
 
22838
  cat >conf$$subs.sed <<_ACEOF
 
22839
SHELL!$SHELL$ac_delim
 
22840
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
 
22841
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
 
22842
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
 
22843
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
 
22844
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
 
22845
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
 
22846
exec_prefix!$exec_prefix$ac_delim
 
22847
prefix!$prefix$ac_delim
 
22848
program_transform_name!$program_transform_name$ac_delim
 
22849
bindir!$bindir$ac_delim
 
22850
sbindir!$sbindir$ac_delim
 
22851
libexecdir!$libexecdir$ac_delim
 
22852
datarootdir!$datarootdir$ac_delim
 
22853
datadir!$datadir$ac_delim
 
22854
sysconfdir!$sysconfdir$ac_delim
 
22855
sharedstatedir!$sharedstatedir$ac_delim
 
22856
localstatedir!$localstatedir$ac_delim
 
22857
includedir!$includedir$ac_delim
 
22858
oldincludedir!$oldincludedir$ac_delim
 
22859
docdir!$docdir$ac_delim
 
22860
infodir!$infodir$ac_delim
 
22861
htmldir!$htmldir$ac_delim
 
22862
dvidir!$dvidir$ac_delim
 
22863
pdfdir!$pdfdir$ac_delim
 
22864
psdir!$psdir$ac_delim
 
22865
libdir!$libdir$ac_delim
 
22866
localedir!$localedir$ac_delim
 
22867
mandir!$mandir$ac_delim
 
22868
DEFS!$DEFS$ac_delim
 
22869
ECHO_C!$ECHO_C$ac_delim
 
22870
ECHO_N!$ECHO_N$ac_delim
 
22871
ECHO_T!$ECHO_T$ac_delim
 
22872
LIBS!$LIBS$ac_delim
 
22873
build_alias!$build_alias$ac_delim
 
22874
host_alias!$host_alias$ac_delim
 
22875
target_alias!$target_alias$ac_delim
 
22876
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
 
22877
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
 
22878
INSTALL_DATA!$INSTALL_DATA$ac_delim
 
22879
CYGPATH_W!$CYGPATH_W$ac_delim
 
22880
PACKAGE!$PACKAGE$ac_delim
 
22881
VERSION!$VERSION$ac_delim
 
22882
ACLOCAL!$ACLOCAL$ac_delim
 
22883
AUTOCONF!$AUTOCONF$ac_delim
 
22884
AUTOMAKE!$AUTOMAKE$ac_delim
 
22885
AUTOHEADER!$AUTOHEADER$ac_delim
 
22886
MAKEINFO!$MAKEINFO$ac_delim
 
22887
install_sh!$install_sh$ac_delim
 
22888
STRIP!$STRIP$ac_delim
 
22889
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
 
22890
mkdir_p!$mkdir_p$ac_delim
 
22891
AWK!$AWK$ac_delim
 
22892
SET_MAKE!$SET_MAKE$ac_delim
 
22893
am__leading_dot!$am__leading_dot$ac_delim
 
22894
AMTAR!$AMTAR$ac_delim
 
22895
am__tar!$am__tar$ac_delim
 
22896
am__untar!$am__untar$ac_delim
 
22897
LIBVA_SDS_PACKAGE_VERSION!$LIBVA_SDS_PACKAGE_VERSION$ac_delim
 
22898
VDPAU_VIDEO_LT_LDFLAGS!$VDPAU_VIDEO_LT_LDFLAGS$ac_delim
 
22899
build!$build$ac_delim
 
22900
build_cpu!$build_cpu$ac_delim
 
22901
build_vendor!$build_vendor$ac_delim
 
22902
build_os!$build_os$ac_delim
 
22903
host!$host$ac_delim
 
22904
host_cpu!$host_cpu$ac_delim
 
22905
host_vendor!$host_vendor$ac_delim
 
22906
host_os!$host_os$ac_delim
 
22907
CC!$CC$ac_delim
 
22908
CFLAGS!$CFLAGS$ac_delim
 
22909
LDFLAGS!$LDFLAGS$ac_delim
 
22910
CPPFLAGS!$CPPFLAGS$ac_delim
 
22911
ac_ct_CC!$ac_ct_CC$ac_delim
 
22912
EXEEXT!$EXEEXT$ac_delim
 
22913
OBJEXT!$OBJEXT$ac_delim
 
22914
DEPDIR!$DEPDIR$ac_delim
 
22915
am__include!$am__include$ac_delim
 
22916
am__quote!$am__quote$ac_delim
 
22917
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
 
22918
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
 
22919
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
 
22920
CCDEPMODE!$CCDEPMODE$ac_delim
 
22921
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
 
22922
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
 
22923
GREP!$GREP$ac_delim
 
22924
EGREP!$EGREP$ac_delim
 
22925
LN_S!$LN_S$ac_delim
 
22926
ECHO!$ECHO$ac_delim
 
22927
AR!$AR$ac_delim
 
22928
RANLIB!$RANLIB$ac_delim
 
22929
CPP!$CPP$ac_delim
 
22930
CXX!$CXX$ac_delim
 
22931
CXXFLAGS!$CXXFLAGS$ac_delim
 
22932
ac_ct_CXX!$ac_ct_CXX$ac_delim
 
22933
CXXDEPMODE!$CXXDEPMODE$ac_delim
 
22934
am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
 
22935
am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
 
22936
_ACEOF
 
22937
 
 
22938
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
 
22939
    break
 
22940
  elif $ac_last_try; then
 
22941
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
22942
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
22943
   { (exit 1); exit 1; }; }
 
22944
  else
 
22945
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
22946
  fi
 
22947
done
 
22948
 
 
22949
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 
22950
if test -n "$ac_eof"; then
 
22951
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 
22952
  ac_eof=`expr $ac_eof + 1`
 
22953
fi
 
22954
 
 
22955
cat >>$CONFIG_STATUS <<_ACEOF
 
22956
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
 
22957
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
22958
_ACEOF
 
22959
sed '
 
22960
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 
22961
s/^/s,@/; s/!/@,|#_!!_#|/
 
22962
:n
 
22963
t n
 
22964
s/'"$ac_delim"'$/,g/; t
 
22965
s/$/\\/; p
 
22966
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 
22967
' >>$CONFIG_STATUS <conf$$subs.sed
 
22968
rm -f conf$$subs.sed
 
22969
cat >>$CONFIG_STATUS <<_ACEOF
 
22970
CEOF$ac_eof
 
22971
_ACEOF
 
22972
 
 
22973
 
 
22974
ac_delim='%!_!# '
 
22975
for ac_last_try in false false false false false :; do
 
22976
  cat >conf$$subs.sed <<_ACEOF
 
22977
CXXCPP!$CXXCPP$ac_delim
 
22978
F77!$F77$ac_delim
 
22979
FFLAGS!$FFLAGS$ac_delim
 
22980
ac_ct_F77!$ac_ct_F77$ac_delim
 
22981
LIBTOOL!$LIBTOOL$ac_delim
 
22982
GL_DEPS_CFLAGS!$GL_DEPS_CFLAGS$ac_delim
 
22983
GL_DEPS_LIBS!$GL_DEPS_LIBS$ac_delim
 
22984
PKG_CONFIG!$PKG_CONFIG$ac_delim
 
22985
LIBVA_DEPS_CFLAGS!$LIBVA_DEPS_CFLAGS$ac_delim
 
22986
LIBVA_DEPS_LIBS!$LIBVA_DEPS_LIBS$ac_delim
 
22987
LIBVA_X11_DEPS_CFLAGS!$LIBVA_X11_DEPS_CFLAGS$ac_delim
 
22988
LIBVA_X11_DEPS_LIBS!$LIBVA_X11_DEPS_LIBS$ac_delim
 
22989
LIBVA_GLX_DEPS_CFLAGS!$LIBVA_GLX_DEPS_CFLAGS$ac_delim
 
22990
LIBVA_GLX_DEPS_LIBS!$LIBVA_GLX_DEPS_LIBS$ac_delim
 
22991
LIBVA_DRIVERS_PATH!$LIBVA_DRIVERS_PATH$ac_delim
 
22992
USE_GLX_TRUE!$USE_GLX_TRUE$ac_delim
 
22993
USE_GLX_FALSE!$USE_GLX_FALSE$ac_delim
 
22994
VDPAU_VIDEO_CFLAGS!$VDPAU_VIDEO_CFLAGS$ac_delim
 
22995
VDPAU_VIDEO_LIBS!$VDPAU_VIDEO_LIBS$ac_delim
 
22996
LIBOBJS!$LIBOBJS$ac_delim
 
22997
LTLIBOBJS!$LTLIBOBJS$ac_delim
 
22998
_ACEOF
 
22999
 
 
23000
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 21; then
 
23001
    break
 
23002
  elif $ac_last_try; then
 
23003
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
23004
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
23005
   { (exit 1); exit 1; }; }
 
23006
  else
 
23007
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
23008
  fi
 
23009
done
 
23010
 
 
23011
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 
23012
if test -n "$ac_eof"; then
 
23013
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 
23014
  ac_eof=`expr $ac_eof + 1`
 
23015
fi
 
23016
 
 
23017
cat >>$CONFIG_STATUS <<_ACEOF
 
23018
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
 
23019
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
 
23020
_ACEOF
 
23021
sed '
 
23022
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 
23023
s/^/s,@/; s/!/@,|#_!!_#|/
 
23024
:n
 
23025
t n
 
23026
s/'"$ac_delim"'$/,g/; t
 
23027
s/$/\\/; p
 
23028
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 
23029
' >>$CONFIG_STATUS <conf$$subs.sed
 
23030
rm -f conf$$subs.sed
 
23031
cat >>$CONFIG_STATUS <<_ACEOF
 
23032
:end
 
23033
s/|#_!!_#|//g
 
23034
CEOF$ac_eof
 
23035
_ACEOF
 
23036
 
13677
23037
 
13678
23038
# VPATH may cause trouble with some makes, so we remove $(srcdir),
13679
23039
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13690
23050
}'
13691
23051
fi
13692
23052
 
13693
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
23053
cat >>$CONFIG_STATUS <<\_ACEOF
13694
23054
fi # test -n "$CONFIG_FILES"
13695
23055
 
13696
 
# Set up the scripts for CONFIG_HEADERS section.
13697
 
# No need to generate them if there are no CONFIG_HEADERS.
13698
 
# This happens for instance with `./config.status Makefile'.
13699
 
if test -n "$CONFIG_HEADERS"; then
13700
 
cat >"$tmp/defines.awk" <<\_ACAWK ||
13701
 
BEGIN {
13702
 
_ACEOF
13703
 
 
13704
 
# Transform confdefs.h into an awk script `defines.awk', embedded as
13705
 
# here-document in config.status, that substitutes the proper values into
13706
 
# config.h.in to produce config.h.
13707
 
 
13708
 
# Create a delimiter string that does not exist in confdefs.h, to ease
13709
 
# handling of long lines.
13710
 
ac_delim='%!_!# '
13711
 
for ac_last_try in false false :; do
13712
 
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13713
 
  if test -z "$ac_t"; then
13714
 
    break
13715
 
  elif $ac_last_try; then
13716
 
    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
13717
 
  else
13718
 
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13719
 
  fi
13720
 
done
13721
 
 
13722
 
# For the awk script, D is an array of macro values keyed by name,
13723
 
# likewise P contains macro parameters if any.  Preserve backslash
13724
 
# newline sequences.
13725
 
 
13726
 
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13727
 
sed -n '
13728
 
s/.\{148\}/&'"$ac_delim"'/g
13729
 
t rset
13730
 
:rset
13731
 
s/^[     ]*#[    ]*define[       ][      ]*/ /
13732
 
t def
13733
 
d
13734
 
:def
13735
 
s/\\$//
13736
 
t bsnl
13737
 
s/["\\]/\\&/g
13738
 
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13739
 
D["\1"]=" \3"/p
13740
 
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
13741
 
d
13742
 
:bsnl
13743
 
s/["\\]/\\&/g
13744
 
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13745
 
D["\1"]=" \3\\\\\\n"\\/p
13746
 
t cont
13747
 
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13748
 
t cont
13749
 
d
13750
 
:cont
13751
 
n
13752
 
s/.\{148\}/&'"$ac_delim"'/g
13753
 
t clear
13754
 
:clear
13755
 
s/\\$//
13756
 
t bsnlc
13757
 
s/["\\]/\\&/g; s/^/"/; s/$/"/p
13758
 
d
13759
 
:bsnlc
13760
 
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13761
 
b cont
13762
 
' <confdefs.h | sed '
13763
 
s/'"$ac_delim"'/"\\\
13764
 
"/g' >>$CONFIG_STATUS || ac_write_fail=1
13765
 
 
13766
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13767
 
  for (key in D) D_is_set[key] = 1
13768
 
  FS = ""
13769
 
}
13770
 
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13771
 
  line = \$ 0
13772
 
  split(line, arg, " ")
13773
 
  if (arg[1] == "#") {
13774
 
    defundef = arg[2]
13775
 
    mac1 = arg[3]
13776
 
  } else {
13777
 
    defundef = substr(arg[1], 2)
13778
 
    mac1 = arg[2]
13779
 
  }
13780
 
  split(mac1, mac2, "(") #)
13781
 
  macro = mac2[1]
13782
 
  prefix = substr(line, 1, index(line, defundef) - 1)
13783
 
  if (D_is_set[macro]) {
13784
 
    # Preserve the white space surrounding the "#".
13785
 
    print prefix "define", macro P[macro] D[macro]
13786
 
    next
13787
 
  } else {
13788
 
    # Replace #undef with comments.  This is necessary, for example,
13789
 
    # in the case of _POSIX_SOURCE, which is predefined and required
13790
 
    # on some systems where configure will not decide to define it.
13791
 
    if (defundef == "undef") {
13792
 
      print "/*", prefix defundef, macro, "*/"
13793
 
      next
13794
 
    }
13795
 
  }
13796
 
}
13797
 
{ print }
13798
 
_ACAWK
13799
 
_ACEOF
13800
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13801
 
  as_fn_error "could not setup config headers machinery" "$LINENO" 5
13802
 
fi # test -n "$CONFIG_HEADERS"
13803
 
 
13804
 
 
13805
 
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13806
 
shift
13807
 
for ac_tag
 
23056
 
 
23057
for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
13808
23058
do
13809
23059
  case $ac_tag in
13810
23060
  :[FHLC]) ac_mode=$ac_tag; continue;;
13811
23061
  esac
13812
23062
  case $ac_mode$ac_tag in
13813
23063
  :[FHL]*:*);;
13814
 
  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
 
23064
  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
 
23065
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
 
23066
   { (exit 1); exit 1; }; };;
13815
23067
  :[FH]-) ac_tag=-:-;;
13816
23068
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13817
23069
  esac
13839
23091
           [\\/$]*) false;;
13840
23092
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13841
23093
           esac ||
13842
 
           as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
 
23094
           { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
 
23095
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
 
23096
   { (exit 1); exit 1; }; };;
13843
23097
      esac
13844
 
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13845
 
      as_fn_append ac_file_inputs " '$ac_f'"
 
23098
      ac_file_inputs="$ac_file_inputs $ac_f"
13846
23099
    done
13847
23100
 
13848
23101
    # Let's still pretend it is `configure' which instantiates (i.e., don't
13849
23102
    # use $as_me), people would be surprised to read:
13850
23103
    #    /* config.h.  Generated by config.status.  */
13851
 
    configure_input='Generated from '`
13852
 
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13853
 
        `' by configure.'
 
23104
    configure_input="Generated from "`IFS=:
 
23105
          echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
13854
23106
    if test x"$ac_file" != x-; then
13855
23107
      configure_input="$ac_file.  $configure_input"
13856
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13857
 
$as_echo "$as_me: creating $ac_file" >&6;}
 
23108
      { echo "$as_me:$LINENO: creating $ac_file" >&5
 
23109
echo "$as_me: creating $ac_file" >&6;}
13858
23110
    fi
13859
 
    # Neutralize special characters interpreted by sed in replacement strings.
13860
 
    case $configure_input in #(
13861
 
    *\&* | *\|* | *\\* )
13862
 
       ac_sed_conf_input=`$as_echo "$configure_input" |
13863
 
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
13864
 
    *) ac_sed_conf_input=$configure_input;;
13865
 
    esac
13866
23111
 
13867
23112
    case $ac_tag in
13868
 
    *:-:* | *:-) cat >"$tmp/stdin" \
13869
 
      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
 
23113
    *:-:* | *:-) cat >"$tmp/stdin";;
13870
23114
    esac
13871
23115
    ;;
13872
23116
  esac
13876
23120
         X"$ac_file" : 'X\(//\)[^/]' \| \
13877
23121
         X"$ac_file" : 'X\(//\)$' \| \
13878
23122
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13879
 
$as_echo X"$ac_file" |
13880
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13881
 
            s//\1/
13882
 
            q
13883
 
          }
13884
 
          /^X\(\/\/\)[^/].*/{
13885
 
            s//\1/
13886
 
            q
13887
 
          }
13888
 
          /^X\(\/\/\)$/{
13889
 
            s//\1/
13890
 
            q
13891
 
          }
13892
 
          /^X\(\/\).*/{
13893
 
            s//\1/
13894
 
            q
13895
 
          }
13896
 
          s/.*/./; q'`
13897
 
  as_dir="$ac_dir"; as_fn_mkdir_p
 
23123
echo X"$ac_file" |
 
23124
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
23125
            s//\1/
 
23126
            q
 
23127
          }
 
23128
          /^X\(\/\/\)[^/].*/{
 
23129
            s//\1/
 
23130
            q
 
23131
          }
 
23132
          /^X\(\/\/\)$/{
 
23133
            s//\1/
 
23134
            q
 
23135
          }
 
23136
          /^X\(\/\).*/{
 
23137
            s//\1/
 
23138
            q
 
23139
          }
 
23140
          s/.*/./; q'`
 
23141
  { as_dir="$ac_dir"
 
23142
  case $as_dir in #(
 
23143
  -*) as_dir=./$as_dir;;
 
23144
  esac
 
23145
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 
23146
    as_dirs=
 
23147
    while :; do
 
23148
      case $as_dir in #(
 
23149
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
 
23150
      *) as_qdir=$as_dir;;
 
23151
      esac
 
23152
      as_dirs="'$as_qdir' $as_dirs"
 
23153
      as_dir=`$as_dirname -- "$as_dir" ||
 
23154
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23155
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
23156
         X"$as_dir" : 'X\(//\)$' \| \
 
23157
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
23158
echo X"$as_dir" |
 
23159
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
23160
            s//\1/
 
23161
            q
 
23162
          }
 
23163
          /^X\(\/\/\)[^/].*/{
 
23164
            s//\1/
 
23165
            q
 
23166
          }
 
23167
          /^X\(\/\/\)$/{
 
23168
            s//\1/
 
23169
            q
 
23170
          }
 
23171
          /^X\(\/\).*/{
 
23172
            s//\1/
 
23173
            q
 
23174
          }
 
23175
          s/.*/./; q'`
 
23176
      test -d "$as_dir" && break
 
23177
    done
 
23178
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
23179
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 
23180
echo "$as_me: error: cannot create directory $as_dir" >&2;}
 
23181
   { (exit 1); exit 1; }; }; }
13898
23182
  ac_builddir=.
13899
23183
 
13900
23184
case "$ac_dir" in
13901
23185
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13902
23186
*)
13903
 
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
23187
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13904
23188
  # A ".." for each directory in $ac_dir_suffix.
13905
 
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
23189
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
13906
23190
  case $ac_top_builddir_sub in
13907
23191
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13908
23192
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13940
23224
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13941
23225
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13942
23226
  esac
13943
 
  ac_MKDIR_P=$MKDIR_P
13944
 
  case $MKDIR_P in
13945
 
  [\\/$]* | ?:[\\/]* ) ;;
13946
 
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13947
 
  esac
13948
23227
_ACEOF
13949
23228
 
13950
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
23229
cat >>$CONFIG_STATUS <<\_ACEOF
13951
23230
# If the template does not know about datarootdir, expand it.
13952
23231
# FIXME: This hack should be removed a few years after 2.60.
13953
23232
ac_datarootdir_hack=; ac_datarootdir_seen=
13954
 
ac_sed_dataroot='
13955
 
/datarootdir/ {
 
23233
 
 
23234
case `sed -n '/datarootdir/ {
13956
23235
  p
13957
23236
  q
13958
23237
}
13960
23239
/@docdir@/p
13961
23240
/@infodir@/p
13962
23241
/@localedir@/p
13963
 
/@mandir@/p'
13964
 
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
 
23242
/@mandir@/p
 
23243
' $ac_file_inputs` in
13965
23244
*datarootdir*) ac_datarootdir_seen=yes;;
13966
23245
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13967
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13968
 
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
23246
  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
23247
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13969
23248
_ACEOF
13970
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
23249
cat >>$CONFIG_STATUS <<_ACEOF
13971
23250
  ac_datarootdir_hack='
13972
23251
  s&@datadir@&$datadir&g
13973
23252
  s&@docdir@&$docdir&g
13974
23253
  s&@infodir@&$infodir&g
13975
23254
  s&@localedir@&$localedir&g
13976
23255
  s&@mandir@&$mandir&g
13977
 
  s&\\\${datarootdir}&$datarootdir&g' ;;
 
23256
    s&\\\${datarootdir}&$datarootdir&g' ;;
13978
23257
esac
13979
23258
_ACEOF
13980
23259
 
13981
23260
# Neutralize VPATH when `$srcdir' = `.'.
13982
23261
# Shell code in configure.ac might set extrasub.
13983
23262
# FIXME: do we really want to maintain this feature?
13984
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13985
 
ac_sed_extra="$ac_vpsub
 
23263
cat >>$CONFIG_STATUS <<_ACEOF
 
23264
  sed "$ac_vpsub
13986
23265
$extrasub
13987
23266
_ACEOF
13988
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
23267
cat >>$CONFIG_STATUS <<\_ACEOF
13989
23268
:t
13990
23269
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13991
 
s|@configure_input@|$ac_sed_conf_input|;t t
 
23270
s&@configure_input@&$configure_input&;t t
13992
23271
s&@top_builddir@&$ac_top_builddir_sub&;t t
13993
 
s&@top_build_prefix@&$ac_top_build_prefix&;t t
13994
23272
s&@srcdir@&$ac_srcdir&;t t
13995
23273
s&@abs_srcdir@&$ac_abs_srcdir&;t t
13996
23274
s&@top_srcdir@&$ac_top_srcdir&;t t
13999
23277
s&@abs_builddir@&$ac_abs_builddir&;t t
14000
23278
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14001
23279
s&@INSTALL@&$ac_INSTALL&;t t
14002
 
s&@MKDIR_P@&$ac_MKDIR_P&;t t
14003
23280
$ac_datarootdir_hack
14004
 
"
14005
 
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14006
 
  || as_fn_error "could not create $ac_file" "$LINENO" 5
 
23281
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
14007
23282
 
14008
23283
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14009
23284
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14010
23285
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14011
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
23286
  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14012
23287
which seems to be undefined.  Please make sure it is defined." >&5
14013
 
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
23288
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14014
23289
which seems to be undefined.  Please make sure it is defined." >&2;}
14015
23290
 
14016
23291
  rm -f "$tmp/stdin"
14017
23292
  case $ac_file in
14018
 
  -) cat "$tmp/out" && rm -f "$tmp/out";;
14019
 
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14020
 
  esac \
14021
 
  || as_fn_error "could not create $ac_file" "$LINENO" 5
 
23293
  -) cat "$tmp/out"; rm -f "$tmp/out";;
 
23294
  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
 
23295
  esac
14022
23296
 ;;
14023
23297
  :H)
14024
23298
  #
14025
23299
  # CONFIG_HEADER
14026
23300
  #
 
23301
_ACEOF
 
23302
 
 
23303
# Transform confdefs.h into a sed script `conftest.defines', that
 
23304
# substitutes the proper values into config.h.in to produce config.h.
 
23305
rm -f conftest.defines conftest.tail
 
23306
# First, append a space to every undef/define line, to ease matching.
 
23307
echo 's/$/ /' >conftest.defines
 
23308
# Then, protect against being on the right side of a sed subst, or in
 
23309
# an unquoted here document, in config.status.  If some macros were
 
23310
# called several times there might be several #defines for the same
 
23311
# symbol, which is useless.  But do not sort them, since the last
 
23312
# AC_DEFINE must be honored.
 
23313
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 
23314
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
 
23315
# NAME is the cpp macro being defined, VALUE is the value it is being given.
 
23316
# PARAMS is the parameter list in the macro definition--in most cases, it's
 
23317
# just an empty string.
 
23318
ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
 
23319
ac_dB='\\)[      (].*,\\1define\\2'
 
23320
ac_dC=' '
 
23321
ac_dD=' ,'
 
23322
 
 
23323
uniq confdefs.h |
 
23324
  sed -n '
 
23325
        t rset
 
23326
        :rset
 
23327
        s/^[     ]*#[    ]*define[       ][      ]*//
 
23328
        t ok
 
23329
        d
 
23330
        :ok
 
23331
        s/[\\&,]/\\&/g
 
23332
        s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
 
23333
        s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
 
23334
  ' >>conftest.defines
 
23335
 
 
23336
# Remove the space that was appended to ease matching.
 
23337
# Then replace #undef with comments.  This is necessary, for
 
23338
# example, in the case of _POSIX_SOURCE, which is predefined and required
 
23339
# on some systems where configure will not decide to define it.
 
23340
# (The regexp can be short, since the line contains either #define or #undef.)
 
23341
echo 's/ $//
 
23342
s,^[     #]*u.*,/* & */,' >>conftest.defines
 
23343
 
 
23344
# Break up conftest.defines:
 
23345
ac_max_sed_lines=50
 
23346
 
 
23347
# First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
 
23348
# Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
 
23349
# Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
 
23350
# et cetera.
 
23351
ac_in='$ac_file_inputs'
 
23352
ac_out='"$tmp/out1"'
 
23353
ac_nxt='"$tmp/out2"'
 
23354
 
 
23355
while :
 
23356
do
 
23357
  # Write a here document:
 
23358
    cat >>$CONFIG_STATUS <<_ACEOF
 
23359
    # First, check the format of the line:
 
23360
    cat >"\$tmp/defines.sed" <<\\CEOF
 
23361
/^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
 
23362
/^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
 
23363
b
 
23364
:def
 
23365
_ACEOF
 
23366
  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
 
23367
  echo 'CEOF
 
23368
    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
 
23369
  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
 
23370
  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
 
23371
  grep . conftest.tail >/dev/null || break
 
23372
  rm -f conftest.defines
 
23373
  mv conftest.tail conftest.defines
 
23374
done
 
23375
rm -f conftest.defines conftest.tail
 
23376
 
 
23377
echo "ac_result=$ac_in" >>$CONFIG_STATUS
 
23378
cat >>$CONFIG_STATUS <<\_ACEOF
14027
23379
  if test x"$ac_file" != x-; then
14028
 
    {
14029
 
      $as_echo "/* $configure_input  */" \
14030
 
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14031
 
    } >"$tmp/config.h" \
14032
 
      || as_fn_error "could not create $ac_file" "$LINENO" 5
14033
 
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14034
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14035
 
$as_echo "$as_me: $ac_file is unchanged" >&6;}
 
23380
    echo "/* $configure_input  */" >"$tmp/config.h"
 
23381
    cat "$ac_result" >>"$tmp/config.h"
 
23382
    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
 
23383
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 
23384
echo "$as_me: $ac_file is unchanged" >&6;}
14036
23385
    else
14037
 
      rm -f "$ac_file"
14038
 
      mv "$tmp/config.h" "$ac_file" \
14039
 
        || as_fn_error "could not create $ac_file" "$LINENO" 5
 
23386
      rm -f $ac_file
 
23387
      mv "$tmp/config.h" $ac_file
14040
23388
    fi
14041
23389
  else
14042
 
    $as_echo "/* $configure_input  */" \
14043
 
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14044
 
      || as_fn_error "could not create -" "$LINENO" 5
 
23390
    echo "/* $configure_input  */"
 
23391
    cat "$ac_result"
14045
23392
  fi
14046
 
# Compute "$ac_file"'s index in $config_headers.
14047
 
_am_arg="$ac_file"
 
23393
  rm -f "$tmp/out12"
 
23394
# Compute $ac_file's index in $config_headers.
14048
23395
_am_stamp_count=1
14049
23396
for _am_header in $config_headers :; do
14050
23397
  case $_am_header in
14051
 
    $_am_arg | $_am_arg:* )
 
23398
    $ac_file | $ac_file:* )
14052
23399
      break ;;
14053
23400
    * )
14054
23401
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14055
23402
  esac
14056
23403
done
14057
 
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14058
 
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14059
 
         X"$_am_arg" : 'X\(//\)[^/]' \| \
14060
 
         X"$_am_arg" : 'X\(//\)$' \| \
14061
 
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14062
 
$as_echo X"$_am_arg" |
 
23404
echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
 
23405
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23406
         X$ac_file : 'X\(//\)[^/]' \| \
 
23407
         X$ac_file : 'X\(//\)$' \| \
 
23408
         X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
 
23409
echo X$ac_file |
14063
23410
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14064
23411
            s//\1/
14065
23412
            q
14079
23426
          s/.*/./; q'`/stamp-h$_am_stamp_count
14080
23427
 ;;
14081
23428
 
14082
 
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14083
 
$as_echo "$as_me: executing $ac_file commands" >&6;}
 
23429
  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
 
23430
echo "$as_me: executing $ac_file commands" >&6;}
14084
23431
 ;;
14085
23432
  esac
14086
23433
 
14087
23434
 
14088
23435
  case $ac_file$ac_mode in
14089
 
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14090
 
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
14091
 
  # are listed without --file.  Let's play safe and only enable the eval
14092
 
  # if we detect the quoting.
14093
 
  case $CONFIG_FILES in
14094
 
  *\'*) eval set x "$CONFIG_FILES" ;;
14095
 
  *)   set x $CONFIG_FILES ;;
14096
 
  esac
14097
 
  shift
14098
 
  for mf
14099
 
  do
14100
 
    # Strip MF so we end up with the name of the file.
14101
 
    mf=`echo "$mf" | sed -e 's/:.*$//'`
14102
 
    # Check whether this is an Automake generated Makefile or not.
14103
 
    # We used to match only the files named `Makefile.in', but
14104
 
    # some people rename them; so instead we look at the file content.
14105
 
    # Grep'ing the first line is not enough: some people post-process
14106
 
    # each Makefile.in and add a new line on top of each file to say so.
14107
 
    # Grep'ing the whole file is not good either: AIX grep has a line
14108
 
    # limit of 2048, but all sed's we know have understand at least 4000.
14109
 
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14110
 
      dirpart=`$as_dirname -- "$mf" ||
 
23436
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 
23437
  # Strip MF so we end up with the name of the file.
 
23438
  mf=`echo "$mf" | sed -e 's/:.*$//'`
 
23439
  # Check whether this is an Automake generated Makefile or not.
 
23440
  # We used to match only the files named `Makefile.in', but
 
23441
  # some people rename them; so instead we look at the file content.
 
23442
  # Grep'ing the first line is not enough: some people post-process
 
23443
  # each Makefile.in and add a new line on top of each file to say so.
 
23444
  # So let's grep whole file.
 
23445
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 
23446
    dirpart=`$as_dirname -- "$mf" ||
14111
23447
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14112
23448
         X"$mf" : 'X\(//\)[^/]' \| \
14113
23449
         X"$mf" : 'X\(//\)$' \| \
14114
23450
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14115
 
$as_echo X"$mf" |
 
23451
echo X"$mf" |
14116
23452
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14117
23453
            s//\1/
14118
23454
            q
14130
23466
            q
14131
23467
          }
14132
23468
          s/.*/./; q'`
14133
 
    else
14134
 
      continue
14135
 
    fi
14136
 
    # Extract the definition of DEPDIR, am__include, and am__quote
14137
 
    # from the Makefile without running `make'.
14138
 
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14139
 
    test -z "$DEPDIR" && continue
14140
 
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
14141
 
    test -z "am__include" && continue
14142
 
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14143
 
    # When using ansi2knr, U may be empty or an underscore; expand it
14144
 
    U=`sed -n 's/^U = //p' < "$mf"`
14145
 
    # Find all dependency output files, they are included files with
14146
 
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
14147
 
    # simplest approach to changing $(DEPDIR) to its actual value in the
14148
 
    # expansion.
14149
 
    for file in `sed -n "
14150
 
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14151
 
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14152
 
      # Make sure the directory exists.
14153
 
      test -f "$dirpart/$file" && continue
14154
 
      fdir=`$as_dirname -- "$file" ||
 
23469
  else
 
23470
    continue
 
23471
  fi
 
23472
  # Extract the definition of DEPDIR, am__include, and am__quote
 
23473
  # from the Makefile without running `make'.
 
23474
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
23475
  test -z "$DEPDIR" && continue
 
23476
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
23477
  test -z "am__include" && continue
 
23478
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
23479
  # When using ansi2knr, U may be empty or an underscore; expand it
 
23480
  U=`sed -n 's/^U = //p' < "$mf"`
 
23481
  # Find all dependency output files, they are included files with
 
23482
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
23483
  # simplest approach to changing $(DEPDIR) to its actual value in the
 
23484
  # expansion.
 
23485
  for file in `sed -n "
 
23486
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
23487
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
23488
    # Make sure the directory exists.
 
23489
    test -f "$dirpart/$file" && continue
 
23490
    fdir=`$as_dirname -- "$file" ||
14155
23491
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14156
23492
         X"$file" : 'X\(//\)[^/]' \| \
14157
23493
         X"$file" : 'X\(//\)$' \| \
14158
23494
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14159
 
$as_echo X"$file" |
14160
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14161
 
            s//\1/
14162
 
            q
14163
 
          }
14164
 
          /^X\(\/\/\)[^/].*/{
14165
 
            s//\1/
14166
 
            q
14167
 
          }
14168
 
          /^X\(\/\/\)$/{
14169
 
            s//\1/
14170
 
            q
14171
 
          }
14172
 
          /^X\(\/\).*/{
14173
 
            s//\1/
14174
 
            q
14175
 
          }
14176
 
          s/.*/./; q'`
14177
 
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
14178
 
      # echo "creating $dirpart/$file"
14179
 
      echo '# dummy' > "$dirpart/$file"
 
23495
echo X"$file" |
 
23496
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
23497
            s//\1/
 
23498
            q
 
23499
          }
 
23500
          /^X\(\/\/\)[^/].*/{
 
23501
            s//\1/
 
23502
            q
 
23503
          }
 
23504
          /^X\(\/\/\)$/{
 
23505
            s//\1/
 
23506
            q
 
23507
          }
 
23508
          /^X\(\/\).*/{
 
23509
            s//\1/
 
23510
            q
 
23511
          }
 
23512
          s/.*/./; q'`
 
23513
    { as_dir=$dirpart/$fdir
 
23514
  case $as_dir in #(
 
23515
  -*) as_dir=./$as_dir;;
 
23516
  esac
 
23517
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 
23518
    as_dirs=
 
23519
    while :; do
 
23520
      case $as_dir in #(
 
23521
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
 
23522
      *) as_qdir=$as_dir;;
 
23523
      esac
 
23524
      as_dirs="'$as_qdir' $as_dirs"
 
23525
      as_dir=`$as_dirname -- "$as_dir" ||
 
23526
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23527
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
23528
         X"$as_dir" : 'X\(//\)$' \| \
 
23529
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
23530
echo X"$as_dir" |
 
23531
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
23532
            s//\1/
 
23533
            q
 
23534
          }
 
23535
          /^X\(\/\/\)[^/].*/{
 
23536
            s//\1/
 
23537
            q
 
23538
          }
 
23539
          /^X\(\/\/\)$/{
 
23540
            s//\1/
 
23541
            q
 
23542
          }
 
23543
          /^X\(\/\).*/{
 
23544
            s//\1/
 
23545
            q
 
23546
          }
 
23547
          s/.*/./; q'`
 
23548
      test -d "$as_dir" && break
14180
23549
    done
 
23550
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
23551
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 
23552
echo "$as_me: error: cannot create directory $as_dir" >&2;}
 
23553
   { (exit 1); exit 1; }; }; }
 
23554
    # echo "creating $dirpart/$file"
 
23555
    echo '# dummy' > "$dirpart/$file"
14181
23556
  done
14182
 
}
14183
 
 ;;
14184
 
    "libtool":C)
14185
 
 
14186
 
    # See if we are running on zsh, and set the options which allow our
14187
 
    # commands through without removal of \ escapes.
14188
 
    if test -n "${ZSH_VERSION+set}" ; then
14189
 
      setopt NO_GLOB_SUBST
14190
 
    fi
14191
 
 
14192
 
    cfgfile="${ofile}T"
14193
 
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14194
 
    $RM "$cfgfile"
14195
 
 
14196
 
    cat <<_LT_EOF >> "$cfgfile"
14197
 
#! $SHELL
14198
 
 
14199
 
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14200
 
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14201
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14202
 
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14203
 
#
14204
 
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14205
 
#                 2006, 2007, 2008 Free Software Foundation, Inc.
14206
 
#   Written by Gordon Matzigkeit, 1996
14207
 
#
14208
 
#   This file is part of GNU Libtool.
14209
 
#
14210
 
# GNU Libtool is free software; you can redistribute it and/or
14211
 
# modify it under the terms of the GNU General Public License as
14212
 
# published by the Free Software Foundation; either version 2 of
14213
 
# the License, or (at your option) any later version.
14214
 
#
14215
 
# As a special exception to the GNU General Public License,
14216
 
# if you distribute this file as part of a program or library that
14217
 
# is built using GNU Libtool, you may include this file under the
14218
 
# same distribution terms that you use for the rest of that program.
14219
 
#
14220
 
# GNU Libtool is distributed in the hope that it will be useful,
14221
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
14222
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14223
 
# GNU General Public License for more details.
14224
 
#
14225
 
# You should have received a copy of the GNU General Public License
14226
 
# along with GNU Libtool; see the file COPYING.  If not, a copy
14227
 
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14228
 
# obtained by writing to the Free Software Foundation, Inc.,
14229
 
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14230
 
 
14231
 
 
14232
 
# The names of the tagged configurations supported by this script.
14233
 
available_tags=""
14234
 
 
14235
 
# ### BEGIN LIBTOOL CONFIG
14236
 
 
14237
 
# Whether or not to build static libraries.
14238
 
build_old_libs=$enable_static
14239
 
 
14240
 
# Which release of libtool.m4 was used?
14241
 
macro_version=$macro_version
14242
 
macro_revision=$macro_revision
14243
 
 
14244
 
# Whether or not to build shared libraries.
14245
 
build_libtool_libs=$enable_shared
14246
 
 
14247
 
# What type of objects to build.
14248
 
pic_mode=$pic_mode
14249
 
 
14250
 
# Whether or not to optimize for fast installation.
14251
 
fast_install=$enable_fast_install
14252
 
 
14253
 
# The host system.
14254
 
host_alias=$host_alias
14255
 
host=$host
14256
 
host_os=$host_os
14257
 
 
14258
 
# The build system.
14259
 
build_alias=$build_alias
14260
 
build=$build
14261
 
build_os=$build_os
14262
 
 
14263
 
# A sed program that does not truncate output.
14264
 
SED=$lt_SED
14265
 
 
14266
 
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14267
 
Xsed="\$SED -e 1s/^X//"
14268
 
 
14269
 
# A grep program that handles long lines.
14270
 
GREP=$lt_GREP
14271
 
 
14272
 
# An ERE matcher.
14273
 
EGREP=$lt_EGREP
14274
 
 
14275
 
# A literal string matcher.
14276
 
FGREP=$lt_FGREP
14277
 
 
14278
 
# A BSD- or MS-compatible name lister.
14279
 
NM=$lt_NM
14280
 
 
14281
 
# Whether we need soft or hard links.
14282
 
LN_S=$lt_LN_S
14283
 
 
14284
 
# What is the maximum length of a command?
14285
 
max_cmd_len=$max_cmd_len
14286
 
 
14287
 
# Object file suffix (normally "o").
14288
 
objext=$ac_objext
14289
 
 
14290
 
# Executable file suffix (normally "").
14291
 
exeext=$exeext
14292
 
 
14293
 
# whether the shell understands "unset".
14294
 
lt_unset=$lt_unset
14295
 
 
14296
 
# turn spaces into newlines.
14297
 
SP2NL=$lt_lt_SP2NL
14298
 
 
14299
 
# turn newlines into spaces.
14300
 
NL2SP=$lt_lt_NL2SP
14301
 
 
14302
 
# How to create reloadable object files.
14303
 
reload_flag=$lt_reload_flag
14304
 
reload_cmds=$lt_reload_cmds
14305
 
 
14306
 
# An object symbol dumper.
14307
 
OBJDUMP=$lt_OBJDUMP
14308
 
 
14309
 
# Method to check whether dependent libraries are shared objects.
14310
 
deplibs_check_method=$lt_deplibs_check_method
14311
 
 
14312
 
# Command to use when deplibs_check_method == "file_magic".
14313
 
file_magic_cmd=$lt_file_magic_cmd
14314
 
 
14315
 
# The archiver.
14316
 
AR=$lt_AR
14317
 
AR_FLAGS=$lt_AR_FLAGS
14318
 
 
14319
 
# A symbol stripping program.
14320
 
STRIP=$lt_STRIP
14321
 
 
14322
 
# Commands used to install an old-style archive.
14323
 
RANLIB=$lt_RANLIB
14324
 
old_postinstall_cmds=$lt_old_postinstall_cmds
14325
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
14326
 
 
14327
 
# A C compiler.
14328
 
LTCC=$lt_CC
14329
 
 
14330
 
# LTCC compiler flags.
14331
 
LTCFLAGS=$lt_CFLAGS
14332
 
 
14333
 
# Take the output of nm and produce a listing of raw symbols and C names.
14334
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14335
 
 
14336
 
# Transform the output of nm in a proper C declaration.
14337
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14338
 
 
14339
 
# Transform the output of nm in a C name address pair.
14340
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14341
 
 
14342
 
# Transform the output of nm in a C name address pair when lib prefix is needed.
14343
 
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14344
 
 
14345
 
# The name of the directory that contains temporary libtool files.
14346
 
objdir=$objdir
14347
 
 
14348
 
# Shell to use when invoking shell scripts.
14349
 
SHELL=$lt_SHELL
14350
 
 
14351
 
# An echo program that does not interpret backslashes.
14352
 
ECHO=$lt_ECHO
14353
 
 
14354
 
# Used to examine libraries when file_magic_cmd begins with "file".
14355
 
MAGIC_CMD=$MAGIC_CMD
14356
 
 
14357
 
# Must we lock files when doing compilation?
14358
 
need_locks=$lt_need_locks
14359
 
 
14360
 
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14361
 
DSYMUTIL=$lt_DSYMUTIL
14362
 
 
14363
 
# Tool to change global to local symbols on Mac OS X.
14364
 
NMEDIT=$lt_NMEDIT
14365
 
 
14366
 
# Tool to manipulate fat objects and archives on Mac OS X.
14367
 
LIPO=$lt_LIPO
14368
 
 
14369
 
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14370
 
OTOOL=$lt_OTOOL
14371
 
 
14372
 
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14373
 
OTOOL64=$lt_OTOOL64
14374
 
 
14375
 
# Old archive suffix (normally "a").
14376
 
libext=$libext
14377
 
 
14378
 
# Shared library suffix (normally ".so").
14379
 
shrext_cmds=$lt_shrext_cmds
14380
 
 
14381
 
# The commands to extract the exported symbol list from a shared archive.
14382
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
14383
 
 
14384
 
# Variables whose values should be saved in libtool wrapper scripts and
14385
 
# restored at link time.
14386
 
variables_saved_for_relink=$lt_variables_saved_for_relink
14387
 
 
14388
 
# Do we need the "lib" prefix for modules?
14389
 
need_lib_prefix=$need_lib_prefix
14390
 
 
14391
 
# Do we need a version for libraries?
14392
 
need_version=$need_version
14393
 
 
14394
 
# Library versioning type.
14395
 
version_type=$version_type
14396
 
 
14397
 
# Shared library runtime path variable.
14398
 
runpath_var=$runpath_var
14399
 
 
14400
 
# Shared library path variable.
14401
 
shlibpath_var=$shlibpath_var
14402
 
 
14403
 
# Is shlibpath searched before the hard-coded library search path?
14404
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14405
 
 
14406
 
# Format of library name prefix.
14407
 
libname_spec=$lt_libname_spec
14408
 
 
14409
 
# List of archive names.  First name is the real one, the rest are links.
14410
 
# The last name is the one that the linker finds with -lNAME
14411
 
library_names_spec=$lt_library_names_spec
14412
 
 
14413
 
# The coded name of the library, if different from the real name.
14414
 
soname_spec=$lt_soname_spec
14415
 
 
14416
 
# Command to use after installation of a shared archive.
14417
 
postinstall_cmds=$lt_postinstall_cmds
14418
 
 
14419
 
# Command to use after uninstallation of a shared archive.
14420
 
postuninstall_cmds=$lt_postuninstall_cmds
14421
 
 
14422
 
# Commands used to finish a libtool library installation in a directory.
14423
 
finish_cmds=$lt_finish_cmds
14424
 
 
14425
 
# As "finish_cmds", except a single script fragment to be evaled but
14426
 
# not shown.
14427
 
finish_eval=$lt_finish_eval
14428
 
 
14429
 
# Whether we should hardcode library paths into libraries.
14430
 
hardcode_into_libs=$hardcode_into_libs
14431
 
 
14432
 
# Compile-time system search path for libraries.
14433
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14434
 
 
14435
 
# Run-time system search path for libraries.
14436
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14437
 
 
14438
 
# Whether dlopen is supported.
14439
 
dlopen_support=$enable_dlopen
14440
 
 
14441
 
# Whether dlopen of programs is supported.
14442
 
dlopen_self=$enable_dlopen_self
14443
 
 
14444
 
# Whether dlopen of statically linked programs is supported.
14445
 
dlopen_self_static=$enable_dlopen_self_static
14446
 
 
14447
 
# Commands to strip libraries.
14448
 
old_striplib=$lt_old_striplib
14449
 
striplib=$lt_striplib
14450
 
 
14451
 
 
14452
 
# The linker used to build libraries.
14453
 
LD=$lt_LD
14454
 
 
14455
 
# Commands used to build an old-style archive.
14456
 
old_archive_cmds=$lt_old_archive_cmds
14457
 
 
14458
 
# A language specific compiler.
14459
 
CC=$lt_compiler
14460
 
 
14461
 
# Is the compiler the GNU compiler?
14462
 
with_gcc=$GCC
14463
 
 
14464
 
# Compiler flag to turn off builtin functions.
14465
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14466
 
 
14467
 
# How to pass a linker flag through the compiler.
14468
 
wl=$lt_lt_prog_compiler_wl
14469
 
 
14470
 
# Additional compiler flags for building library objects.
14471
 
pic_flag=$lt_lt_prog_compiler_pic
14472
 
 
14473
 
# Compiler flag to prevent dynamic linking.
14474
 
link_static_flag=$lt_lt_prog_compiler_static
14475
 
 
14476
 
# Does compiler simultaneously support -c and -o options?
14477
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14478
 
 
14479
 
# Whether or not to add -lc for building shared libraries.
14480
 
build_libtool_need_lc=$archive_cmds_need_lc
14481
 
 
14482
 
# Whether or not to disallow shared libs when runtime libs are static.
14483
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14484
 
 
14485
 
# Compiler flag to allow reflexive dlopens.
14486
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14487
 
 
14488
 
# Compiler flag to generate shared objects directly from archives.
14489
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec
14490
 
 
14491
 
# Whether the compiler copes with passing no objects directly.
14492
 
compiler_needs_object=$lt_compiler_needs_object
14493
 
 
14494
 
# Create an old-style archive from a shared archive.
14495
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14496
 
 
14497
 
# Create a temporary old-style archive to link instead of a shared archive.
14498
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14499
 
 
14500
 
# Commands used to build a shared archive.
14501
 
archive_cmds=$lt_archive_cmds
14502
 
archive_expsym_cmds=$lt_archive_expsym_cmds
14503
 
 
14504
 
# Commands used to build a loadable module if different from building
14505
 
# a shared archive.
14506
 
module_cmds=$lt_module_cmds
14507
 
module_expsym_cmds=$lt_module_expsym_cmds
14508
 
 
14509
 
# Whether we are building with GNU ld or not.
14510
 
with_gnu_ld=$lt_with_gnu_ld
14511
 
 
14512
 
# Flag that allows shared libraries with undefined symbols to be built.
14513
 
allow_undefined_flag=$lt_allow_undefined_flag
14514
 
 
14515
 
# Flag that enforces no undefined symbols.
14516
 
no_undefined_flag=$lt_no_undefined_flag
14517
 
 
14518
 
# Flag to hardcode \$libdir into a binary during linking.
14519
 
# This must work even if \$libdir does not exist
14520
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14521
 
 
14522
 
# If ld is used when linking, flag to hardcode \$libdir into a binary
14523
 
# during linking.  This must work even if \$libdir does not exist.
14524
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14525
 
 
14526
 
# Whether we need a single "-rpath" flag with a separated argument.
14527
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator
14528
 
 
14529
 
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14530
 
# DIR into the resulting binary.
14531
 
hardcode_direct=$hardcode_direct
14532
 
 
14533
 
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14534
 
# DIR into the resulting binary and the resulting library dependency is
14535
 
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14536
 
# library is relocated.
14537
 
hardcode_direct_absolute=$hardcode_direct_absolute
14538
 
 
14539
 
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14540
 
# into the resulting binary.
14541
 
hardcode_minus_L=$hardcode_minus_L
14542
 
 
14543
 
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14544
 
# into the resulting binary.
14545
 
hardcode_shlibpath_var=$hardcode_shlibpath_var
14546
 
 
14547
 
# Set to "yes" if building a shared library automatically hardcodes DIR
14548
 
# into the library and all subsequent libraries and executables linked
14549
 
# against it.
14550
 
hardcode_automatic=$hardcode_automatic
14551
 
 
14552
 
# Set to yes if linker adds runtime paths of dependent libraries
14553
 
# to runtime path list.
14554
 
inherit_rpath=$inherit_rpath
14555
 
 
14556
 
# Whether libtool must link a program against all its dependency libraries.
14557
 
link_all_deplibs=$link_all_deplibs
14558
 
 
14559
 
# Fix the shell variable \$srcfile for the compiler.
14560
 
fix_srcfile_path=$lt_fix_srcfile_path
14561
 
 
14562
 
# Set to "yes" if exported symbols are required.
14563
 
always_export_symbols=$always_export_symbols
14564
 
 
14565
 
# The commands to list exported symbols.
14566
 
export_symbols_cmds=$lt_export_symbols_cmds
14567
 
 
14568
 
# Symbols that should not be listed in the preloaded symbols.
14569
 
exclude_expsyms=$lt_exclude_expsyms
14570
 
 
14571
 
# Symbols that must always be exported.
14572
 
include_expsyms=$lt_include_expsyms
14573
 
 
14574
 
# Commands necessary for linking programs (against libraries) with templates.
14575
 
prelink_cmds=$lt_prelink_cmds
14576
 
 
14577
 
# Specify filename containing input files.
14578
 
file_list_spec=$lt_file_list_spec
14579
 
 
14580
 
# How to hardcode a shared library path into an executable.
14581
 
hardcode_action=$hardcode_action
14582
 
 
14583
 
# ### END LIBTOOL CONFIG
14584
 
 
14585
 
_LT_EOF
14586
 
 
14587
 
  case $host_os in
14588
 
  aix3*)
14589
 
    cat <<\_LT_EOF >> "$cfgfile"
14590
 
# AIX sometimes has problems with the GCC collect2 program.  For some
14591
 
# reason, if we set the COLLECT_NAMES environment variable, the problems
14592
 
# vanish in a puff of smoke.
14593
 
if test "X${COLLECT_NAMES+set}" != Xset; then
14594
 
  COLLECT_NAMES=
14595
 
  export COLLECT_NAMES
14596
 
fi
14597
 
_LT_EOF
14598
 
    ;;
14599
 
  esac
14600
 
 
14601
 
 
14602
 
ltmain="$ac_aux_dir/ltmain.sh"
14603
 
 
14604
 
 
14605
 
  # We use sed instead of cat because bash on DJGPP gets confused if
14606
 
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14607
 
  # text mode, it properly converts lines to CR/LF.  This bash problem
14608
 
  # is reportedly fixed, but why not run on old versions too?
14609
 
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14610
 
    || (rm -f "$cfgfile"; exit 1)
14611
 
 
14612
 
  case $xsi_shell in
14613
 
  yes)
14614
 
    cat << \_LT_EOF >> "$cfgfile"
14615
 
 
14616
 
# func_dirname file append nondir_replacement
14617
 
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14618
 
# otherwise set result to NONDIR_REPLACEMENT.
14619
 
func_dirname ()
14620
 
{
14621
 
  case ${1} in
14622
 
    */*) func_dirname_result="${1%/*}${2}" ;;
14623
 
    *  ) func_dirname_result="${3}" ;;
14624
 
  esac
14625
 
}
14626
 
 
14627
 
# func_basename file
14628
 
func_basename ()
14629
 
{
14630
 
  func_basename_result="${1##*/}"
14631
 
}
14632
 
 
14633
 
# func_dirname_and_basename file append nondir_replacement
14634
 
# perform func_basename and func_dirname in a single function
14635
 
# call:
14636
 
#   dirname:  Compute the dirname of FILE.  If nonempty,
14637
 
#             add APPEND to the result, otherwise set result
14638
 
#             to NONDIR_REPLACEMENT.
14639
 
#             value returned in "$func_dirname_result"
14640
 
#   basename: Compute filename of FILE.
14641
 
#             value retuned in "$func_basename_result"
14642
 
# Implementation must be kept synchronized with func_dirname
14643
 
# and func_basename. For efficiency, we do not delegate to
14644
 
# those functions but instead duplicate the functionality here.
14645
 
func_dirname_and_basename ()
14646
 
{
14647
 
  case ${1} in
14648
 
    */*) func_dirname_result="${1%/*}${2}" ;;
14649
 
    *  ) func_dirname_result="${3}" ;;
14650
 
  esac
14651
 
  func_basename_result="${1##*/}"
14652
 
}
14653
 
 
14654
 
# func_stripname prefix suffix name
14655
 
# strip PREFIX and SUFFIX off of NAME.
14656
 
# PREFIX and SUFFIX must not contain globbing or regex special
14657
 
# characters, hashes, percent signs, but SUFFIX may contain a leading
14658
 
# dot (in which case that matches only a dot).
14659
 
func_stripname ()
14660
 
{
14661
 
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14662
 
  # positional parameters, so assign one to ordinary parameter first.
14663
 
  func_stripname_result=${3}
14664
 
  func_stripname_result=${func_stripname_result#"${1}"}
14665
 
  func_stripname_result=${func_stripname_result%"${2}"}
14666
 
}
14667
 
 
14668
 
# func_opt_split
14669
 
func_opt_split ()
14670
 
{
14671
 
  func_opt_split_opt=${1%%=*}
14672
 
  func_opt_split_arg=${1#*=}
14673
 
}
14674
 
 
14675
 
# func_lo2o object
14676
 
func_lo2o ()
14677
 
{
14678
 
  case ${1} in
14679
 
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14680
 
    *)    func_lo2o_result=${1} ;;
14681
 
  esac
14682
 
}
14683
 
 
14684
 
# func_xform libobj-or-source
14685
 
func_xform ()
14686
 
{
14687
 
  func_xform_result=${1%.*}.lo
14688
 
}
14689
 
 
14690
 
# func_arith arithmetic-term...
14691
 
func_arith ()
14692
 
{
14693
 
  func_arith_result=$(( $* ))
14694
 
}
14695
 
 
14696
 
# func_len string
14697
 
# STRING may not start with a hyphen.
14698
 
func_len ()
14699
 
{
14700
 
  func_len_result=${#1}
14701
 
}
14702
 
 
14703
 
_LT_EOF
14704
 
    ;;
14705
 
  *) # Bourne compatible functions.
14706
 
    cat << \_LT_EOF >> "$cfgfile"
14707
 
 
14708
 
# func_dirname file append nondir_replacement
14709
 
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14710
 
# otherwise set result to NONDIR_REPLACEMENT.
14711
 
func_dirname ()
14712
 
{
14713
 
  # Extract subdirectory from the argument.
14714
 
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14715
 
  if test "X$func_dirname_result" = "X${1}"; then
14716
 
    func_dirname_result="${3}"
14717
 
  else
14718
 
    func_dirname_result="$func_dirname_result${2}"
14719
 
  fi
14720
 
}
14721
 
 
14722
 
# func_basename file
14723
 
func_basename ()
14724
 
{
14725
 
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14726
 
}
14727
 
 
14728
 
 
14729
 
# func_stripname prefix suffix name
14730
 
# strip PREFIX and SUFFIX off of NAME.
14731
 
# PREFIX and SUFFIX must not contain globbing or regex special
14732
 
# characters, hashes, percent signs, but SUFFIX may contain a leading
14733
 
# dot (in which case that matches only a dot).
14734
 
# func_strip_suffix prefix name
14735
 
func_stripname ()
14736
 
{
14737
 
  case ${2} in
14738
 
    .*) func_stripname_result=`$ECHO "X${3}" \
14739
 
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14740
 
    *)  func_stripname_result=`$ECHO "X${3}" \
14741
 
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14742
 
  esac
14743
 
}
14744
 
 
14745
 
# sed scripts:
14746
 
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14747
 
my_sed_long_arg='1s/^-[^=]*=//'
14748
 
 
14749
 
# func_opt_split
14750
 
func_opt_split ()
14751
 
{
14752
 
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14753
 
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14754
 
}
14755
 
 
14756
 
# func_lo2o object
14757
 
func_lo2o ()
14758
 
{
14759
 
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14760
 
}
14761
 
 
14762
 
# func_xform libobj-or-source
14763
 
func_xform ()
14764
 
{
14765
 
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
14766
 
}
14767
 
 
14768
 
# func_arith arithmetic-term...
14769
 
func_arith ()
14770
 
{
14771
 
  func_arith_result=`expr "$@"`
14772
 
}
14773
 
 
14774
 
# func_len string
14775
 
# STRING may not start with a hyphen.
14776
 
func_len ()
14777
 
{
14778
 
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14779
 
}
14780
 
 
14781
 
_LT_EOF
14782
 
esac
14783
 
 
14784
 
case $lt_shell_append in
14785
 
  yes)
14786
 
    cat << \_LT_EOF >> "$cfgfile"
14787
 
 
14788
 
# func_append var value
14789
 
# Append VALUE to the end of shell variable VAR.
14790
 
func_append ()
14791
 
{
14792
 
  eval "$1+=\$2"
14793
 
}
14794
 
_LT_EOF
14795
 
    ;;
14796
 
  *)
14797
 
    cat << \_LT_EOF >> "$cfgfile"
14798
 
 
14799
 
# func_append var value
14800
 
# Append VALUE to the end of shell variable VAR.
14801
 
func_append ()
14802
 
{
14803
 
  eval "$1=\$$1\$2"
14804
 
}
14805
 
 
14806
 
_LT_EOF
14807
 
    ;;
14808
 
  esac
14809
 
 
14810
 
 
14811
 
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14812
 
    || (rm -f "$cfgfile"; exit 1)
14813
 
 
14814
 
  mv -f "$cfgfile" "$ofile" ||
14815
 
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14816
 
  chmod +x "$ofile"
14817
 
 
 
23557
done
14818
23558
 ;;
14819
23559
 
14820
23560
  esac
14821
23561
done # for ac_tag
14822
23562
 
14823
23563
 
14824
 
as_fn_exit 0
 
23564
{ (exit 0); exit 0; }
14825
23565
_ACEOF
 
23566
chmod +x $CONFIG_STATUS
14826
23567
ac_clean_files=$ac_clean_files_save
14827
23568
 
14828
 
test $ac_write_fail = 0 ||
14829
 
  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
14830
 
 
14831
23569
 
14832
23570
# configure is writing to config.log, and then calls config.status.
14833
23571
# config.status does its own redirection, appending to config.log.
14847
23585
  exec 5>>config.log
14848
23586
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14849
23587
  # would make configure fail if this is the last instruction.
14850
 
  $ac_cs_success || as_fn_exit $?
14851
 
fi
14852
 
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14853
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14854
 
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14855
 
fi
14856
 
 
 
23588
  $ac_cs_success || { (exit 1); exit 1; }
 
23589
fi
 
23590
 
 
23591
 
 
23592
echo
 
23593
echo $PACKAGE configuration summary:
 
23594
echo
 
23595
echo VA-API version ................... : $VA_VERSION_STR
 
23596
echo VA-API drivers path .............. : $LIBVA_DRIVERS_PATH
 
23597
echo VDPAU version .................... : $VDPAU_VERSION
 
23598
echo VDPAU/MPEG-4 support ............. : $(test $HAVE_VDPAU_MPEG4  -eq 1 && echo yes || echo no)
 
23599
echo GLX support ...................... : $(test $USE_GLX  -eq 1 && echo yes || echo no)
 
23600
echo