~ubuntu-branches/ubuntu/precise/xserver-xorg-video-openchrome-lts-trusty/precise-proposed

« back to all changes in this revision

Viewing changes to configure

  • Committer: Package Import Robot
  • Author(s): Maarten Lankhorst
  • Date: 2014-05-15 12:47:33 UTC
  • Revision ID: package-import@ubuntu.com-20140515124733-qw5cb5dqlvejqsy3
Tags: upstream-0.3.3
ImportĀ upstreamĀ versionĀ 0.3.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
# Guess values for system-dependent variables and create Makefiles.
 
3
# Generated by GNU Autoconf 2.69 for xf86-video-openchrome 0.3.3.
 
4
#
 
5
# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/openchrome>.
 
6
#
 
7
#
 
8
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
 
9
#
 
10
#
 
11
# This configure script is free software; the Free Software Foundation
 
12
# gives unlimited permission to copy, distribute and modify it.
 
13
## -------------------- ##
 
14
## M4sh Initialization. ##
 
15
## -------------------- ##
 
16
 
 
17
# Be more Bourne compatible
 
18
DUALCASE=1; export DUALCASE # for MKS sh
 
19
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
 
20
  emulate sh
 
21
  NULLCMD=:
 
22
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
23
  # is contrary to our usage.  Disable this feature.
 
24
  alias -g '${1+"$@"}'='"$@"'
 
25
  setopt NO_GLOB_SUBST
 
26
else
 
27
  case `(set -o) 2>/dev/null` in #(
 
28
  *posix*) :
 
29
    set -o posix ;; #(
 
30
  *) :
 
31
     ;;
 
32
esac
 
33
fi
 
34
 
 
35
 
 
36
as_nl='
 
37
'
 
38
export as_nl
 
39
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
40
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
41
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
42
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
43
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
44
# but without wasting forks for bash or zsh.
 
45
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
46
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
47
  as_echo='print -r --'
 
48
  as_echo_n='print -rn --'
 
49
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
50
  as_echo='printf %s\n'
 
51
  as_echo_n='printf %s'
 
52
else
 
53
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
54
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
55
    as_echo_n='/usr/ucb/echo -n'
 
56
  else
 
57
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
58
    as_echo_n_body='eval
 
59
      arg=$1;
 
60
      case $arg in #(
 
61
      *"$as_nl"*)
 
62
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
63
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
64
      esac;
 
65
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
66
    '
 
67
    export as_echo_n_body
 
68
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
69
  fi
 
70
  export as_echo_body
 
71
  as_echo='sh -c $as_echo_body as_echo'
 
72
fi
 
73
 
 
74
# The user is always right.
 
75
if test "${PATH_SEPARATOR+set}" != set; then
 
76
  PATH_SEPARATOR=:
 
77
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
78
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
79
      PATH_SEPARATOR=';'
 
80
  }
 
81
fi
 
82
 
 
83
 
 
84
# IFS
 
85
# We need space, tab and new line, in precisely that order.  Quoting is
 
86
# there to prevent editors from complaining about space-tab.
 
87
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
88
# splitting by setting IFS to empty value.)
 
89
IFS=" ""        $as_nl"
 
90
 
 
91
# Find who we are.  Look in the path if we contain no directory separator.
 
92
as_myself=
 
93
case $0 in #((
 
94
  *[\\/]* ) as_myself=$0 ;;
 
95
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
96
for as_dir in $PATH
 
97
do
 
98
  IFS=$as_save_IFS
 
99
  test -z "$as_dir" && as_dir=.
 
100
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
101
  done
 
102
IFS=$as_save_IFS
 
103
 
 
104
     ;;
 
105
esac
 
106
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
107
# in which case we are not to be found in the path.
 
108
if test "x$as_myself" = x; then
 
109
  as_myself=$0
 
110
fi
 
111
if test ! -f "$as_myself"; then
 
112
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
113
  exit 1
 
114
fi
 
115
 
 
116
# Unset variables that we do not need and which cause bugs (e.g. in
 
117
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
118
# suppresses any "Segmentation fault" message there.  '((' could
 
119
# trigger a bug in pdksh 5.2.14.
 
120
for as_var in BASH_ENV ENV MAIL MAILPATH
 
121
do eval test x\${$as_var+set} = xset \
 
122
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 
123
done
 
124
PS1='$ '
 
125
PS2='> '
 
126
PS4='+ '
 
127
 
 
128
# NLS nuisances.
 
129
LC_ALL=C
 
130
export LC_ALL
 
131
LANGUAGE=C
 
132
export LANGUAGE
 
133
 
 
134
# CDPATH.
 
135
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
136
 
 
137
# Use a proper internal environment variable to ensure we don't fall
 
138
  # into an infinite loop, continuously re-executing ourselves.
 
139
  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
 
140
    _as_can_reexec=no; export _as_can_reexec;
 
141
    # We cannot yet assume a decent shell, so we have to provide a
 
142
# neutralization value for shells without unset; and this also
 
143
# works around shells that cannot unset nonexistent variables.
 
144
# Preserve -v and -x to the replacement shell.
 
145
BASH_ENV=/dev/null
 
146
ENV=/dev/null
 
147
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 
148
case $- in # ((((
 
149
  *v*x* | *x*v* ) as_opts=-vx ;;
 
150
  *v* ) as_opts=-v ;;
 
151
  *x* ) as_opts=-x ;;
 
152
  * ) as_opts= ;;
 
153
esac
 
154
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
 
155
# Admittedly, this is quite paranoid, since all the known shells bail
 
156
# out after a failed `exec'.
 
157
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
 
158
as_fn_exit 255
 
159
  fi
 
160
  # We don't want this to propagate to other subprocesses.
 
161
          { _as_can_reexec=; unset _as_can_reexec;}
 
162
if test "x$CONFIG_SHELL" = x; then
 
163
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
 
164
  emulate sh
 
165
  NULLCMD=:
 
166
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
 
167
  # is contrary to our usage.  Disable this feature.
 
168
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
 
169
  setopt NO_GLOB_SUBST
 
170
else
 
171
  case \`(set -o) 2>/dev/null\` in #(
 
172
  *posix*) :
 
173
    set -o posix ;; #(
 
174
  *) :
 
175
     ;;
 
176
esac
 
177
fi
 
178
"
 
179
  as_required="as_fn_return () { (exit \$1); }
 
180
as_fn_success () { as_fn_return 0; }
 
181
as_fn_failure () { as_fn_return 1; }
 
182
as_fn_ret_success () { return 0; }
 
183
as_fn_ret_failure () { return 1; }
 
184
 
 
185
exitcode=0
 
186
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
 
187
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
 
188
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
 
189
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
 
190
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
 
191
 
 
192
else
 
193
  exitcode=1; echo positional parameters were not saved.
 
194
fi
 
195
test x\$exitcode = x0 || exit 1
 
196
test -x / || exit 1"
 
197
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
 
198
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
 
199
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
 
200
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
 
201
 
 
202
  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
 
203
    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
204
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
 
205
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
 
206
    PATH=/empty FPATH=/empty; export PATH FPATH
 
207
    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
 
208
      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
 
209
test \$(( 1 + 1 )) = 2 || exit 1"
 
210
  if (eval "$as_required") 2>/dev/null; then :
 
211
  as_have_required=yes
 
212
else
 
213
  as_have_required=no
 
214
fi
 
215
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
 
216
 
 
217
else
 
218
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
219
as_found=false
 
220
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
221
do
 
222
  IFS=$as_save_IFS
 
223
  test -z "$as_dir" && as_dir=.
 
224
  as_found=:
 
225
  case $as_dir in #(
 
226
         /*)
 
227
           for as_base in sh bash ksh sh5; do
 
228
             # Try only shells that exist, to save several forks.
 
229
             as_shell=$as_dir/$as_base
 
230
             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 
231
                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
232
  CONFIG_SHELL=$as_shell as_have_required=yes
 
233
                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
234
  break 2
 
235
fi
 
236
fi
 
237
           done;;
 
238
       esac
 
239
  as_found=false
 
240
done
 
241
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
 
242
              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
 
243
  CONFIG_SHELL=$SHELL as_have_required=yes
 
244
fi; }
 
245
IFS=$as_save_IFS
 
246
 
 
247
 
 
248
      if test "x$CONFIG_SHELL" != x; then :
 
249
  export CONFIG_SHELL
 
250
             # We cannot yet assume a decent shell, so we have to provide a
 
251
# neutralization value for shells without unset; and this also
 
252
# works around shells that cannot unset nonexistent variables.
 
253
# Preserve -v and -x to the replacement shell.
 
254
BASH_ENV=/dev/null
 
255
ENV=/dev/null
 
256
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 
257
case $- in # ((((
 
258
  *v*x* | *x*v* ) as_opts=-vx ;;
 
259
  *v* ) as_opts=-v ;;
 
260
  *x* ) as_opts=-x ;;
 
261
  * ) as_opts= ;;
 
262
esac
 
263
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
 
264
# Admittedly, this is quite paranoid, since all the known shells bail
 
265
# out after a failed `exec'.
 
266
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
 
267
exit 255
 
268
fi
 
269
 
 
270
    if test x$as_have_required = xno; then :
 
271
  $as_echo "$0: This script requires a shell more modern than all"
 
272
  $as_echo "$0: the shells that I found on your system."
 
273
  if test x${ZSH_VERSION+set} = xset ; then
 
274
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
 
275
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
 
276
  else
 
277
    $as_echo "$0: Please tell bug-autoconf@gnu.org and
 
278
$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/openchrome
 
279
$0: about your system, including any error possibly output
 
280
$0: before this message. Then install a modern shell, or
 
281
$0: manually run the script under such a shell if you do
 
282
$0: have one."
 
283
  fi
 
284
  exit 1
 
285
fi
 
286
fi
 
287
fi
 
288
SHELL=${CONFIG_SHELL-/bin/sh}
 
289
export SHELL
 
290
# Unset more variables known to interfere with behavior of common tools.
 
291
CLICOLOR_FORCE= GREP_OPTIONS=
 
292
unset CLICOLOR_FORCE GREP_OPTIONS
 
293
 
 
294
## --------------------- ##
 
295
## M4sh Shell Functions. ##
 
296
## --------------------- ##
 
297
# as_fn_unset VAR
 
298
# ---------------
 
299
# Portably unset VAR.
 
300
as_fn_unset ()
 
301
{
 
302
  { eval $1=; unset $1;}
 
303
}
 
304
as_unset=as_fn_unset
 
305
 
 
306
# as_fn_set_status STATUS
 
307
# -----------------------
 
308
# Set $? to STATUS, without forking.
 
309
as_fn_set_status ()
 
310
{
 
311
  return $1
 
312
} # as_fn_set_status
 
313
 
 
314
# as_fn_exit STATUS
 
315
# -----------------
 
316
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
317
as_fn_exit ()
 
318
{
 
319
  set +e
 
320
  as_fn_set_status $1
 
321
  exit $1
 
322
} # as_fn_exit
 
323
 
 
324
# as_fn_mkdir_p
 
325
# -------------
 
326
# Create "$as_dir" as a directory, including parents if necessary.
 
327
as_fn_mkdir_p ()
 
328
{
 
329
 
 
330
  case $as_dir in #(
 
331
  -*) as_dir=./$as_dir;;
 
332
  esac
 
333
  test -d "$as_dir" || eval $as_mkdir_p || {
 
334
    as_dirs=
 
335
    while :; do
 
336
      case $as_dir in #(
 
337
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
338
      *) as_qdir=$as_dir;;
 
339
      esac
 
340
      as_dirs="'$as_qdir' $as_dirs"
 
341
      as_dir=`$as_dirname -- "$as_dir" ||
 
342
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
343
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
344
         X"$as_dir" : 'X\(//\)$' \| \
 
345
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
346
$as_echo X"$as_dir" |
 
347
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
348
            s//\1/
 
349
            q
 
350
          }
 
351
          /^X\(\/\/\)[^/].*/{
 
352
            s//\1/
 
353
            q
 
354
          }
 
355
          /^X\(\/\/\)$/{
 
356
            s//\1/
 
357
            q
 
358
          }
 
359
          /^X\(\/\).*/{
 
360
            s//\1/
 
361
            q
 
362
          }
 
363
          s/.*/./; q'`
 
364
      test -d "$as_dir" && break
 
365
    done
 
366
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
367
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 
368
 
 
369
 
 
370
} # as_fn_mkdir_p
 
371
 
 
372
# as_fn_executable_p FILE
 
373
# -----------------------
 
374
# Test if FILE is an executable regular file.
 
375
as_fn_executable_p ()
 
376
{
 
377
  test -f "$1" && test -x "$1"
 
378
} # as_fn_executable_p
 
379
# as_fn_append VAR VALUE
 
380
# ----------------------
 
381
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
382
# advantage of any shell optimizations that allow amortized linear growth over
 
383
# repeated appends, instead of the typical quadratic growth present in naive
 
384
# implementations.
 
385
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
386
  eval 'as_fn_append ()
 
387
  {
 
388
    eval $1+=\$2
 
389
  }'
 
390
else
 
391
  as_fn_append ()
 
392
  {
 
393
    eval $1=\$$1\$2
 
394
  }
 
395
fi # as_fn_append
 
396
 
 
397
# as_fn_arith ARG...
 
398
# ------------------
 
399
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
400
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
401
# must be portable across $(()) and expr.
 
402
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
403
  eval 'as_fn_arith ()
 
404
  {
 
405
    as_val=$(( $* ))
 
406
  }'
 
407
else
 
408
  as_fn_arith ()
 
409
  {
 
410
    as_val=`expr "$@" || test $? -eq 1`
 
411
  }
 
412
fi # as_fn_arith
 
413
 
 
414
 
 
415
# as_fn_error STATUS ERROR [LINENO LOG_FD]
 
416
# ----------------------------------------
 
417
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
418
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
419
# script with STATUS, using 1 if that was 0.
 
420
as_fn_error ()
 
421
{
 
422
  as_status=$1; test $as_status -eq 0 && as_status=1
 
423
  if test "$4"; then
 
424
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
425
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 
426
  fi
 
427
  $as_echo "$as_me: error: $2" >&2
 
428
  as_fn_exit $as_status
 
429
} # as_fn_error
 
430
 
 
431
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
432
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
433
  as_expr=expr
 
434
else
 
435
  as_expr=false
 
436
fi
 
437
 
 
438
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
439
  as_basename=basename
 
440
else
 
441
  as_basename=false
 
442
fi
 
443
 
 
444
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
445
  as_dirname=dirname
 
446
else
 
447
  as_dirname=false
 
448
fi
 
449
 
 
450
as_me=`$as_basename -- "$0" ||
 
451
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
452
         X"$0" : 'X\(//\)$' \| \
 
453
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
454
$as_echo X/"$0" |
 
455
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
456
            s//\1/
 
457
            q
 
458
          }
 
459
          /^X\/\(\/\/\)$/{
 
460
            s//\1/
 
461
            q
 
462
          }
 
463
          /^X\/\(\/\).*/{
 
464
            s//\1/
 
465
            q
 
466
          }
 
467
          s/.*/./; q'`
 
468
 
 
469
# Avoid depending upon Character Ranges.
 
470
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
471
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
472
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
473
as_cr_digits='0123456789'
 
474
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
475
 
 
476
 
 
477
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
 
478
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
 
479
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
 
480
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
 
481
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
 
482
  sed -n '
 
483
    p
 
484
    /[$]LINENO/=
 
485
  ' <$as_myself |
 
486
    sed '
 
487
      s/[$]LINENO.*/&-/
 
488
      t lineno
 
489
      b
 
490
      :lineno
 
491
      N
 
492
      :loop
 
493
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
494
      t loop
 
495
      s/-\n.*//
 
496
    ' >$as_me.lineno &&
 
497
  chmod +x "$as_me.lineno" ||
 
498
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
 
499
 
 
500
  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
 
501
  # already done that, so ensure we don't try to do so again and fall
 
502
  # in an infinite loop.  This has already happened in practice.
 
503
  _as_can_reexec=no; export _as_can_reexec
 
504
  # Don't try to exec as it changes $[0], causing all sort of problems
 
505
  # (the dirname of $[0] is not the place where we might find the
 
506
  # original and so on.  Autoconf is especially sensitive to this).
 
507
  . "./$as_me.lineno"
 
508
  # Exit status is that of the last command.
 
509
  exit
 
510
}
 
511
 
 
512
ECHO_C= ECHO_N= ECHO_T=
 
513
case `echo -n x` in #(((((
 
514
-n*)
 
515
  case `echo 'xy\c'` in
 
516
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
517
  xy)  ECHO_C='\c';;
 
518
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
519
       ECHO_T=' ';;
 
520
  esac;;
 
521
*)
 
522
  ECHO_N='-n';;
 
523
esac
 
524
 
 
525
rm -f conf$$ conf$$.exe conf$$.file
 
526
if test -d conf$$.dir; then
 
527
  rm -f conf$$.dir/conf$$.file
 
528
else
 
529
  rm -f conf$$.dir
 
530
  mkdir conf$$.dir 2>/dev/null
 
531
fi
 
532
if (echo >conf$$.file) 2>/dev/null; then
 
533
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
534
    as_ln_s='ln -s'
 
535
    # ... but there are two gotchas:
 
536
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
537
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
538
    # In both cases, we have to default to `cp -pR'.
 
539
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
540
      as_ln_s='cp -pR'
 
541
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
542
    as_ln_s=ln
 
543
  else
 
544
    as_ln_s='cp -pR'
 
545
  fi
 
546
else
 
547
  as_ln_s='cp -pR'
 
548
fi
 
549
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
550
rmdir conf$$.dir 2>/dev/null
 
551
 
 
552
if mkdir -p . 2>/dev/null; then
 
553
  as_mkdir_p='mkdir -p "$as_dir"'
 
554
else
 
555
  test -d ./-p && rmdir ./-p
 
556
  as_mkdir_p=false
 
557
fi
 
558
 
 
559
as_test_x='test -x'
 
560
as_executable_p=as_fn_executable_p
 
561
 
 
562
# Sed expression to map a string onto a valid CPP name.
 
563
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
564
 
 
565
# Sed expression to map a string onto a valid variable name.
 
566
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
567
 
 
568
SHELL=${CONFIG_SHELL-/bin/sh}
 
569
 
 
570
 
 
571
test -n "$DJDIR" || exec 7<&0 </dev/null
 
572
exec 6>&1
 
573
 
 
574
# Name of the host.
 
575
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
 
576
# so uname gets run too.
 
577
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
578
 
 
579
#
 
580
# Initializations.
 
581
#
 
582
ac_default_prefix=/usr/local
 
583
ac_clean_files=
 
584
ac_config_libobj_dir=.
 
585
LIBOBJS=
 
586
cross_compiling=no
 
587
subdirs=
 
588
MFLAGS=
 
589
MAKEFLAGS=
 
590
 
 
591
# Identity of this package.
 
592
PACKAGE_NAME='xf86-video-openchrome'
 
593
PACKAGE_TARNAME='xf86-video-openchrome'
 
594
PACKAGE_VERSION='0.3.3'
 
595
PACKAGE_STRING='xf86-video-openchrome 0.3.3'
 
596
PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/openchrome'
 
597
PACKAGE_URL=''
 
598
 
 
599
ac_unique_file="Makefile.am"
 
600
# Factoring default headers for most tests.
 
601
ac_includes_default="\
 
602
#include <stdio.h>
 
603
#ifdef HAVE_SYS_TYPES_H
 
604
# include <sys/types.h>
 
605
#endif
 
606
#ifdef HAVE_SYS_STAT_H
 
607
# include <sys/stat.h>
 
608
#endif
 
609
#ifdef STDC_HEADERS
 
610
# include <stdlib.h>
 
611
# include <stddef.h>
 
612
#else
 
613
# ifdef HAVE_STDLIB_H
 
614
#  include <stdlib.h>
 
615
# endif
 
616
#endif
 
617
#ifdef HAVE_STRING_H
 
618
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 
619
#  include <memory.h>
 
620
# endif
 
621
# include <string.h>
 
622
#endif
 
623
#ifdef HAVE_STRINGS_H
 
624
# include <strings.h>
 
625
#endif
 
626
#ifdef HAVE_INTTYPES_H
 
627
# include <inttypes.h>
 
628
#endif
 
629
#ifdef HAVE_STDINT_H
 
630
# include <stdint.h>
 
631
#endif
 
632
#ifdef HAVE_UNISTD_H
 
633
# include <unistd.h>
 
634
#endif"
 
635
 
 
636
ac_subst_vars='am__EXEEXT_FALSE
 
637
am__EXEEXT_TRUE
 
638
LTLIBOBJS
 
639
LIBOBJS
 
640
MAN_SUBSTS
 
641
XORG_MAN_PAGE
 
642
ADMIN_MAN_DIR
 
643
DRIVER_MAN_DIR
 
644
MISC_MAN_DIR
 
645
FILE_MAN_DIR
 
646
LIB_MAN_DIR
 
647
APP_MAN_DIR
 
648
ADMIN_MAN_SUFFIX
 
649
MISC_MAN_SUFFIX
 
650
FILE_MAN_SUFFIX
 
651
LIB_MAN_SUFFIX
 
652
APP_MAN_SUFFIX
 
653
DRIVER_MAN_SUFFIX
 
654
DRIVER_NAME
 
655
moduledir
 
656
TOOLS_FALSE
 
657
TOOLS_TRUE
 
658
XV_DEBUG_FALSE
 
659
XV_DEBUG_TRUE
 
660
DEBUG_FALSE
 
661
DEBUG_TRUE
 
662
XVMC_FALSE
 
663
XVMC_TRUE
 
664
XVMC_LIBS
 
665
XVMC_CFLAGS
 
666
LIBUDEV_LIBS
 
667
LIBUDEV_CFLAGS
 
668
DRI_FALSE
 
669
DRI_TRUE
 
670
DRI_LIBS
 
671
DRI_CFLAGS
 
672
PCIACCESS_LIBS
 
673
PCIACCESS_CFLAGS
 
674
HAVE_XEXTPROTO_71_FALSE
 
675
HAVE_XEXTPROTO_71_TRUE
 
676
XEXT_LIBS
 
677
XEXT_CFLAGS
 
678
XORG_LIBS
 
679
XORG_CFLAGS
 
680
PKG_CONFIG_LIBDIR
 
681
PKG_CONFIG_PATH
 
682
PKG_CONFIG
 
683
CPP
 
684
OTOOL64
 
685
OTOOL
 
686
LIPO
 
687
NMEDIT
 
688
DSYMUTIL
 
689
MANIFEST_TOOL
 
690
RANLIB
 
691
ac_ct_AR
 
692
AR
 
693
DLLTOOL
 
694
OBJDUMP
 
695
LN_S
 
696
NM
 
697
ac_ct_DUMPBIN
 
698
DUMPBIN
 
699
LD
 
700
FGREP
 
701
EGREP
 
702
GREP
 
703
SED
 
704
am__fastdepCC_FALSE
 
705
am__fastdepCC_TRUE
 
706
CCDEPMODE
 
707
am__nodep
 
708
AMDEPBACKSLASH
 
709
AMDEP_FALSE
 
710
AMDEP_TRUE
 
711
am__quote
 
712
am__include
 
713
DEPDIR
 
714
OBJEXT
 
715
EXEEXT
 
716
ac_ct_CC
 
717
CPPFLAGS
 
718
LDFLAGS
 
719
CFLAGS
 
720
CC
 
721
host_os
 
722
host_vendor
 
723
host_cpu
 
724
host
 
725
build_os
 
726
build_vendor
 
727
build_cpu
 
728
build
 
729
LIBTOOL
 
730
MAINT
 
731
MAINTAINER_MODE_FALSE
 
732
MAINTAINER_MODE_TRUE
 
733
am__untar
 
734
am__tar
 
735
AMTAR
 
736
am__leading_dot
 
737
SET_MAKE
 
738
AWK
 
739
mkdir_p
 
740
MKDIR_P
 
741
INSTALL_STRIP_PROGRAM
 
742
STRIP
 
743
install_sh
 
744
MAKEINFO
 
745
AUTOHEADER
 
746
AUTOMAKE
 
747
AUTOCONF
 
748
ACLOCAL
 
749
VERSION
 
750
PACKAGE
 
751
CYGPATH_W
 
752
am__isrc
 
753
INSTALL_DATA
 
754
INSTALL_SCRIPT
 
755
INSTALL_PROGRAM
 
756
target_alias
 
757
host_alias
 
758
build_alias
 
759
LIBS
 
760
ECHO_T
 
761
ECHO_N
 
762
ECHO_C
 
763
DEFS
 
764
mandir
 
765
localedir
 
766
libdir
 
767
psdir
 
768
pdfdir
 
769
dvidir
 
770
htmldir
 
771
infodir
 
772
docdir
 
773
oldincludedir
 
774
includedir
 
775
localstatedir
 
776
sharedstatedir
 
777
sysconfdir
 
778
datadir
 
779
datarootdir
 
780
libexecdir
 
781
sbindir
 
782
bindir
 
783
program_transform_name
 
784
prefix
 
785
exec_prefix
 
786
PACKAGE_URL
 
787
PACKAGE_BUGREPORT
 
788
PACKAGE_STRING
 
789
PACKAGE_VERSION
 
790
PACKAGE_TARNAME
 
791
PACKAGE_NAME
 
792
PATH_SEPARATOR
 
793
SHELL'
 
794
ac_subst_files=''
 
795
ac_user_opts='
 
796
enable_option_checking
 
797
enable_maintainer_mode
 
798
enable_static
 
799
enable_shared
 
800
with_pic
 
801
enable_fast_install
 
802
enable_dependency_tracking
 
803
with_gnu_ld
 
804
with_sysroot
 
805
enable_libtool_lock
 
806
enable_largefile
 
807
with_xorg_module_dir
 
808
enable_debug
 
809
enable_xv_debug
 
810
enable_viaregtool
 
811
with_release_version
 
812
'
 
813
      ac_precious_vars='build_alias
 
814
host_alias
 
815
target_alias
 
816
CC
 
817
CFLAGS
 
818
LDFLAGS
 
819
LIBS
 
820
CPPFLAGS
 
821
CPP
 
822
PKG_CONFIG
 
823
PKG_CONFIG_PATH
 
824
PKG_CONFIG_LIBDIR
 
825
XORG_CFLAGS
 
826
XORG_LIBS
 
827
XEXT_CFLAGS
 
828
XEXT_LIBS
 
829
PCIACCESS_CFLAGS
 
830
PCIACCESS_LIBS
 
831
DRI_CFLAGS
 
832
DRI_LIBS
 
833
LIBUDEV_CFLAGS
 
834
LIBUDEV_LIBS
 
835
XVMC_CFLAGS
 
836
XVMC_LIBS'
 
837
 
 
838
 
 
839
# Initialize some variables set by options.
 
840
ac_init_help=
 
841
ac_init_version=false
 
842
ac_unrecognized_opts=
 
843
ac_unrecognized_sep=
 
844
# The variables have the same names as the options, with
 
845
# dashes changed to underlines.
 
846
cache_file=/dev/null
 
847
exec_prefix=NONE
 
848
no_create=
 
849
no_recursion=
 
850
prefix=NONE
 
851
program_prefix=NONE
 
852
program_suffix=NONE
 
853
program_transform_name=s,x,x,
 
854
silent=
 
855
site=
 
856
srcdir=
 
857
verbose=
 
858
x_includes=NONE
 
859
x_libraries=NONE
 
860
 
 
861
# Installation directory options.
 
862
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
863
# and all the variables that are supposed to be based on exec_prefix
 
864
# by default will actually change.
 
865
# Use braces instead of parens because sh, perl, etc. also accept them.
 
866
# (The list follows the same order as the GNU Coding Standards.)
 
867
bindir='${exec_prefix}/bin'
 
868
sbindir='${exec_prefix}/sbin'
 
869
libexecdir='${exec_prefix}/libexec'
 
870
datarootdir='${prefix}/share'
 
871
datadir='${datarootdir}'
 
872
sysconfdir='${prefix}/etc'
 
873
sharedstatedir='${prefix}/com'
 
874
localstatedir='${prefix}/var'
 
875
includedir='${prefix}/include'
 
876
oldincludedir='/usr/include'
 
877
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
 
878
infodir='${datarootdir}/info'
 
879
htmldir='${docdir}'
 
880
dvidir='${docdir}'
 
881
pdfdir='${docdir}'
 
882
psdir='${docdir}'
 
883
libdir='${exec_prefix}/lib'
 
884
localedir='${datarootdir}/locale'
 
885
mandir='${datarootdir}/man'
 
886
 
 
887
ac_prev=
 
888
ac_dashdash=
 
889
for ac_option
 
890
do
 
891
  # If the previous option needs an argument, assign it.
 
892
  if test -n "$ac_prev"; then
 
893
    eval $ac_prev=\$ac_option
 
894
    ac_prev=
 
895
    continue
 
896
  fi
 
897
 
 
898
  case $ac_option in
 
899
  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
900
  *=)   ac_optarg= ;;
 
901
  *)    ac_optarg=yes ;;
 
902
  esac
 
903
 
 
904
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
905
 
 
906
  case $ac_dashdash$ac_option in
 
907
  --)
 
908
    ac_dashdash=yes ;;
 
909
 
 
910
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
911
    ac_prev=bindir ;;
 
912
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
913
    bindir=$ac_optarg ;;
 
914
 
 
915
  -build | --build | --buil | --bui | --bu)
 
916
    ac_prev=build_alias ;;
 
917
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
918
    build_alias=$ac_optarg ;;
 
919
 
 
920
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
921
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
922
    ac_prev=cache_file ;;
 
923
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
924
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
925
    cache_file=$ac_optarg ;;
 
926
 
 
927
  --config-cache | -C)
 
928
    cache_file=config.cache ;;
 
929
 
 
930
  -datadir | --datadir | --datadi | --datad)
 
931
    ac_prev=datadir ;;
 
932
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
 
933
    datadir=$ac_optarg ;;
 
934
 
 
935
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 
936
  | --dataroo | --dataro | --datar)
 
937
    ac_prev=datarootdir ;;
 
938
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 
939
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 
940
    datarootdir=$ac_optarg ;;
 
941
 
 
942
  -disable-* | --disable-*)
 
943
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
944
    # Reject names that are not valid shell variable names.
 
945
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
946
      as_fn_error $? "invalid feature name: $ac_useropt"
 
947
    ac_useropt_orig=$ac_useropt
 
948
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
949
    case $ac_user_opts in
 
950
      *"
 
951
"enable_$ac_useropt"
 
952
"*) ;;
 
953
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
 
954
         ac_unrecognized_sep=', ';;
 
955
    esac
 
956
    eval enable_$ac_useropt=no ;;
 
957
 
 
958
  -docdir | --docdir | --docdi | --doc | --do)
 
959
    ac_prev=docdir ;;
 
960
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 
961
    docdir=$ac_optarg ;;
 
962
 
 
963
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 
964
    ac_prev=dvidir ;;
 
965
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 
966
    dvidir=$ac_optarg ;;
 
967
 
 
968
  -enable-* | --enable-*)
 
969
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
970
    # Reject names that are not valid shell variable names.
 
971
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
972
      as_fn_error $? "invalid feature name: $ac_useropt"
 
973
    ac_useropt_orig=$ac_useropt
 
974
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
975
    case $ac_user_opts in
 
976
      *"
 
977
"enable_$ac_useropt"
 
978
"*) ;;
 
979
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
 
980
         ac_unrecognized_sep=', ';;
 
981
    esac
 
982
    eval enable_$ac_useropt=\$ac_optarg ;;
 
983
 
 
984
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
985
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
986
  | --exec | --exe | --ex)
 
987
    ac_prev=exec_prefix ;;
 
988
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
989
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
990
  | --exec=* | --exe=* | --ex=*)
 
991
    exec_prefix=$ac_optarg ;;
 
992
 
 
993
  -gas | --gas | --ga | --g)
 
994
    # Obsolete; use --with-gas.
 
995
    with_gas=yes ;;
 
996
 
 
997
  -help | --help | --hel | --he | -h)
 
998
    ac_init_help=long ;;
 
999
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
1000
    ac_init_help=recursive ;;
 
1001
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
1002
    ac_init_help=short ;;
 
1003
 
 
1004
  -host | --host | --hos | --ho)
 
1005
    ac_prev=host_alias ;;
 
1006
  -host=* | --host=* | --hos=* | --ho=*)
 
1007
    host_alias=$ac_optarg ;;
 
1008
 
 
1009
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 
1010
    ac_prev=htmldir ;;
 
1011
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 
1012
  | --ht=*)
 
1013
    htmldir=$ac_optarg ;;
 
1014
 
 
1015
  -includedir | --includedir | --includedi | --included | --include \
 
1016
  | --includ | --inclu | --incl | --inc)
 
1017
    ac_prev=includedir ;;
 
1018
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
1019
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
1020
    includedir=$ac_optarg ;;
 
1021
 
 
1022
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
1023
    ac_prev=infodir ;;
 
1024
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
1025
    infodir=$ac_optarg ;;
 
1026
 
 
1027
  -libdir | --libdir | --libdi | --libd)
 
1028
    ac_prev=libdir ;;
 
1029
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
1030
    libdir=$ac_optarg ;;
 
1031
 
 
1032
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
1033
  | --libexe | --libex | --libe)
 
1034
    ac_prev=libexecdir ;;
 
1035
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
1036
  | --libexe=* | --libex=* | --libe=*)
 
1037
    libexecdir=$ac_optarg ;;
 
1038
 
 
1039
  -localedir | --localedir | --localedi | --localed | --locale)
 
1040
    ac_prev=localedir ;;
 
1041
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 
1042
    localedir=$ac_optarg ;;
 
1043
 
 
1044
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
1045
  | --localstate | --localstat | --localsta | --localst | --locals)
 
1046
    ac_prev=localstatedir ;;
 
1047
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
1048
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
 
1049
    localstatedir=$ac_optarg ;;
 
1050
 
 
1051
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
1052
    ac_prev=mandir ;;
 
1053
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
1054
    mandir=$ac_optarg ;;
 
1055
 
 
1056
  -nfp | --nfp | --nf)
 
1057
    # Obsolete; use --without-fp.
 
1058
    with_fp=no ;;
 
1059
 
 
1060
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
1061
  | --no-cr | --no-c | -n)
 
1062
    no_create=yes ;;
 
1063
 
 
1064
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
1065
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
1066
    no_recursion=yes ;;
 
1067
 
 
1068
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
1069
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
1070
  | --oldin | --oldi | --old | --ol | --o)
 
1071
    ac_prev=oldincludedir ;;
 
1072
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
1073
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
1074
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
1075
    oldincludedir=$ac_optarg ;;
 
1076
 
 
1077
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
1078
    ac_prev=prefix ;;
 
1079
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
1080
    prefix=$ac_optarg ;;
 
1081
 
 
1082
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
1083
  | --program-pre | --program-pr | --program-p)
 
1084
    ac_prev=program_prefix ;;
 
1085
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
1086
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
1087
    program_prefix=$ac_optarg ;;
 
1088
 
 
1089
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
1090
  | --program-suf | --program-su | --program-s)
 
1091
    ac_prev=program_suffix ;;
 
1092
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
1093
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
1094
    program_suffix=$ac_optarg ;;
 
1095
 
 
1096
  -program-transform-name | --program-transform-name \
 
1097
  | --program-transform-nam | --program-transform-na \
 
1098
  | --program-transform-n | --program-transform- \
 
1099
  | --program-transform | --program-transfor \
 
1100
  | --program-transfo | --program-transf \
 
1101
  | --program-trans | --program-tran \
 
1102
  | --progr-tra | --program-tr | --program-t)
 
1103
    ac_prev=program_transform_name ;;
 
1104
  -program-transform-name=* | --program-transform-name=* \
 
1105
  | --program-transform-nam=* | --program-transform-na=* \
 
1106
  | --program-transform-n=* | --program-transform-=* \
 
1107
  | --program-transform=* | --program-transfor=* \
 
1108
  | --program-transfo=* | --program-transf=* \
 
1109
  | --program-trans=* | --program-tran=* \
 
1110
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
1111
    program_transform_name=$ac_optarg ;;
 
1112
 
 
1113
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 
1114
    ac_prev=pdfdir ;;
 
1115
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 
1116
    pdfdir=$ac_optarg ;;
 
1117
 
 
1118
  -psdir | --psdir | --psdi | --psd | --ps)
 
1119
    ac_prev=psdir ;;
 
1120
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 
1121
    psdir=$ac_optarg ;;
 
1122
 
 
1123
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1124
  | -silent | --silent | --silen | --sile | --sil)
 
1125
    silent=yes ;;
 
1126
 
 
1127
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
1128
    ac_prev=sbindir ;;
 
1129
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
1130
  | --sbi=* | --sb=*)
 
1131
    sbindir=$ac_optarg ;;
 
1132
 
 
1133
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
1134
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
1135
  | --sharedst | --shareds | --shared | --share | --shar \
 
1136
  | --sha | --sh)
 
1137
    ac_prev=sharedstatedir ;;
 
1138
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
1139
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
1140
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
1141
  | --sha=* | --sh=*)
 
1142
    sharedstatedir=$ac_optarg ;;
 
1143
 
 
1144
  -site | --site | --sit)
 
1145
    ac_prev=site ;;
 
1146
  -site=* | --site=* | --sit=*)
 
1147
    site=$ac_optarg ;;
 
1148
 
 
1149
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
1150
    ac_prev=srcdir ;;
 
1151
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
1152
    srcdir=$ac_optarg ;;
 
1153
 
 
1154
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
1155
  | --syscon | --sysco | --sysc | --sys | --sy)
 
1156
    ac_prev=sysconfdir ;;
 
1157
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
1158
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
1159
    sysconfdir=$ac_optarg ;;
 
1160
 
 
1161
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
1162
    ac_prev=target_alias ;;
 
1163
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
1164
    target_alias=$ac_optarg ;;
 
1165
 
 
1166
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
1167
    verbose=yes ;;
 
1168
 
 
1169
  -version | --version | --versio | --versi | --vers | -V)
 
1170
    ac_init_version=: ;;
 
1171
 
 
1172
  -with-* | --with-*)
 
1173
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
1174
    # Reject names that are not valid shell variable names.
 
1175
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1176
      as_fn_error $? "invalid package name: $ac_useropt"
 
1177
    ac_useropt_orig=$ac_useropt
 
1178
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1179
    case $ac_user_opts in
 
1180
      *"
 
1181
"with_$ac_useropt"
 
1182
"*) ;;
 
1183
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
 
1184
         ac_unrecognized_sep=', ';;
 
1185
    esac
 
1186
    eval with_$ac_useropt=\$ac_optarg ;;
 
1187
 
 
1188
  -without-* | --without-*)
 
1189
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
1190
    # Reject names that are not valid shell variable names.
 
1191
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1192
      as_fn_error $? "invalid package name: $ac_useropt"
 
1193
    ac_useropt_orig=$ac_useropt
 
1194
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1195
    case $ac_user_opts in
 
1196
      *"
 
1197
"with_$ac_useropt"
 
1198
"*) ;;
 
1199
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
 
1200
         ac_unrecognized_sep=', ';;
 
1201
    esac
 
1202
    eval with_$ac_useropt=no ;;
 
1203
 
 
1204
  --x)
 
1205
    # Obsolete; use --with-x.
 
1206
    with_x=yes ;;
 
1207
 
 
1208
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
1209
  | --x-incl | --x-inc | --x-in | --x-i)
 
1210
    ac_prev=x_includes ;;
 
1211
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
1212
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
1213
    x_includes=$ac_optarg ;;
 
1214
 
 
1215
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
1216
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
1217
    ac_prev=x_libraries ;;
 
1218
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
1219
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
1220
    x_libraries=$ac_optarg ;;
 
1221
 
 
1222
  -*) as_fn_error $? "unrecognized option: \`$ac_option'
 
1223
Try \`$0 --help' for more information"
 
1224
    ;;
 
1225
 
 
1226
  *=*)
 
1227
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
1228
    # Reject names that are not valid shell variable names.
 
1229
    case $ac_envvar in #(
 
1230
      '' | [0-9]* | *[!_$as_cr_alnum]* )
 
1231
      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
 
1232
    esac
 
1233
    eval $ac_envvar=\$ac_optarg
 
1234
    export $ac_envvar ;;
 
1235
 
 
1236
  *)
 
1237
    # FIXME: should be removed in autoconf 3.0.
 
1238
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
1239
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1240
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
1241
    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
 
1242
    ;;
 
1243
 
 
1244
  esac
 
1245
done
 
1246
 
 
1247
if test -n "$ac_prev"; then
 
1248
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
1249
  as_fn_error $? "missing argument to $ac_option"
 
1250
fi
 
1251
 
 
1252
if test -n "$ac_unrecognized_opts"; then
 
1253
  case $enable_option_checking in
 
1254
    no) ;;
 
1255
    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
 
1256
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
 
1257
  esac
 
1258
fi
 
1259
 
 
1260
# Check all directory arguments for consistency.
 
1261
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 
1262
                datadir sysconfdir sharedstatedir localstatedir includedir \
 
1263
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 
1264
                libdir localedir mandir
 
1265
do
 
1266
  eval ac_val=\$$ac_var
 
1267
  # Remove trailing slashes.
 
1268
  case $ac_val in
 
1269
    */ )
 
1270
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
 
1271
      eval $ac_var=\$ac_val;;
 
1272
  esac
 
1273
  # Be sure to have absolute directory names.
 
1274
  case $ac_val in
 
1275
    [\\/$]* | ?:[\\/]* )  continue;;
 
1276
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 
1277
  esac
 
1278
  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
 
1279
done
 
1280
 
 
1281
# There might be people who depend on the old broken behavior: `$host'
 
1282
# used to hold the argument of --host etc.
 
1283
# FIXME: To remove some day.
 
1284
build=$build_alias
 
1285
host=$host_alias
 
1286
target=$target_alias
 
1287
 
 
1288
# FIXME: To remove some day.
 
1289
if test "x$host_alias" != x; then
 
1290
  if test "x$build_alias" = x; then
 
1291
    cross_compiling=maybe
 
1292
  elif test "x$build_alias" != "x$host_alias"; then
 
1293
    cross_compiling=yes
 
1294
  fi
 
1295
fi
 
1296
 
 
1297
ac_tool_prefix=
 
1298
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
1299
 
 
1300
test "$silent" = yes && exec 6>/dev/null
 
1301
 
 
1302
 
 
1303
ac_pwd=`pwd` && test -n "$ac_pwd" &&
 
1304
ac_ls_di=`ls -di .` &&
 
1305
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 
1306
  as_fn_error $? "working directory cannot be determined"
 
1307
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 
1308
  as_fn_error $? "pwd does not report name of working directory"
 
1309
 
 
1310
 
 
1311
# Find the source files, if location was not specified.
 
1312
if test -z "$srcdir"; then
 
1313
  ac_srcdir_defaulted=yes
 
1314
  # Try the directory containing this script, then the parent directory.
 
1315
  ac_confdir=`$as_dirname -- "$as_myself" ||
 
1316
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
1317
         X"$as_myself" : 'X\(//\)[^/]' \| \
 
1318
         X"$as_myself" : 'X\(//\)$' \| \
 
1319
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
 
1320
$as_echo X"$as_myself" |
 
1321
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
1322
            s//\1/
 
1323
            q
 
1324
          }
 
1325
          /^X\(\/\/\)[^/].*/{
 
1326
            s//\1/
 
1327
            q
 
1328
          }
 
1329
          /^X\(\/\/\)$/{
 
1330
            s//\1/
 
1331
            q
 
1332
          }
 
1333
          /^X\(\/\).*/{
 
1334
            s//\1/
 
1335
            q
 
1336
          }
 
1337
          s/.*/./; q'`
 
1338
  srcdir=$ac_confdir
 
1339
  if test ! -r "$srcdir/$ac_unique_file"; then
 
1340
    srcdir=..
 
1341
  fi
 
1342
else
 
1343
  ac_srcdir_defaulted=no
 
1344
fi
 
1345
if test ! -r "$srcdir/$ac_unique_file"; then
 
1346
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 
1347
  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
 
1348
fi
 
1349
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 
1350
ac_abs_confdir=`(
 
1351
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
 
1352
        pwd)`
 
1353
# When building in place, set srcdir=.
 
1354
if test "$ac_abs_confdir" = "$ac_pwd"; then
 
1355
  srcdir=.
 
1356
fi
 
1357
# Remove unnecessary trailing slashes from srcdir.
 
1358
# Double slashes in file names in object file debugging info
 
1359
# mess up M-x gdb in Emacs.
 
1360
case $srcdir in
 
1361
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 
1362
esac
 
1363
for ac_var in $ac_precious_vars; do
 
1364
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
 
1365
  eval ac_env_${ac_var}_value=\$${ac_var}
 
1366
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 
1367
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
 
1368
done
 
1369
 
 
1370
#
 
1371
# Report the --help message.
 
1372
#
 
1373
if test "$ac_init_help" = "long"; then
 
1374
  # Omit some internal or obsolete options to make the list less imposing.
 
1375
  # This message is too long to be a string in the A/UX 3.1 sh.
 
1376
  cat <<_ACEOF
 
1377
\`configure' configures xf86-video-openchrome 0.3.3 to adapt to many kinds of systems.
 
1378
 
 
1379
Usage: $0 [OPTION]... [VAR=VALUE]...
 
1380
 
 
1381
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
1382
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
1383
 
 
1384
Defaults for the options are specified in brackets.
 
1385
 
 
1386
Configuration:
 
1387
  -h, --help              display this help and exit
 
1388
      --help=short        display options specific to this package
 
1389
      --help=recursive    display the short help of all the included packages
 
1390
  -V, --version           display version information and exit
 
1391
  -q, --quiet, --silent   do not print \`checking ...' messages
 
1392
      --cache-file=FILE   cache test results in FILE [disabled]
 
1393
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
1394
  -n, --no-create         do not create output files
 
1395
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
1396
 
 
1397
Installation directories:
 
1398
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
1399
                          [$ac_default_prefix]
 
1400
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
1401
                          [PREFIX]
 
1402
 
 
1403
By default, \`make install' will install all the files in
 
1404
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
1405
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
1406
for instance \`--prefix=\$HOME'.
 
1407
 
 
1408
For better control, use the options below.
 
1409
 
 
1410
Fine tuning of the installation directories:
 
1411
  --bindir=DIR            user executables [EPREFIX/bin]
 
1412
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
 
1413
  --libexecdir=DIR        program executables [EPREFIX/libexec]
 
1414
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
 
1415
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
 
1416
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
 
1417
  --libdir=DIR            object code libraries [EPREFIX/lib]
 
1418
  --includedir=DIR        C header files [PREFIX/include]
 
1419
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
 
1420
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
 
1421
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
 
1422
  --infodir=DIR           info documentation [DATAROOTDIR/info]
 
1423
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
 
1424
  --mandir=DIR            man documentation [DATAROOTDIR/man]
 
1425
  --docdir=DIR            documentation root
 
1426
                          [DATAROOTDIR/doc/xf86-video-openchrome]
 
1427
  --htmldir=DIR           html documentation [DOCDIR]
 
1428
  --dvidir=DIR            dvi documentation [DOCDIR]
 
1429
  --pdfdir=DIR            pdf documentation [DOCDIR]
 
1430
  --psdir=DIR             ps documentation [DOCDIR]
 
1431
_ACEOF
 
1432
 
 
1433
  cat <<\_ACEOF
 
1434
 
 
1435
Program names:
 
1436
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
1437
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
1438
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
1439
 
 
1440
System types:
 
1441
  --build=BUILD     configure for building on BUILD [guessed]
 
1442
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1443
_ACEOF
 
1444
fi
 
1445
 
 
1446
if test -n "$ac_init_help"; then
 
1447
  case $ac_init_help in
 
1448
     short | recursive ) echo "Configuration of xf86-video-openchrome 0.3.3:";;
 
1449
   esac
 
1450
  cat <<\_ACEOF
 
1451
 
 
1452
Optional Features:
 
1453
  --disable-option-checking  ignore unrecognized --enable/--with options
 
1454
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1455
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1456
  --enable-maintainer-mode
 
1457
                          enable make rules and dependencies not useful (and
 
1458
                          sometimes confusing) to the casual installer
 
1459
  --enable-static[=PKGS]  build static libraries [default=no]
 
1460
  --enable-shared[=PKGS]  build shared libraries [default=yes]
 
1461
  --enable-fast-install[=PKGS]
 
1462
                          optimize for fast installation [default=yes]
 
1463
  --enable-dependency-tracking
 
1464
                          do not reject slow dependency extractors
 
1465
  --disable-dependency-tracking
 
1466
                          speeds up one-time build
 
1467
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1468
  --disable-largefile     omit support for large files
 
1469
  --enable-debug          Enable debugging support [[default=no]]
 
1470
  --enable-xv-debug       Enable XVideo debugging support [[default=no]]
 
1471
  --enable-viaregtool     Enable build of registers dumper tool [[default=no]]
 
1472
 
 
1473
Optional Packages:
 
1474
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1475
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1476
  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
 
1477
                          both]
 
1478
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1479
  --with-sysroot=DIR Search for dependent libraries within DIR
 
1480
                        (or the compiler's sysroot if not specified).
 
1481
  --with-xorg-module-dir=DIR
 
1482
                          Default xorg module directory
 
1483
                          [[default=$libdir/xorg/modules]]
 
1484
  --with-release-version=STRING
 
1485
                          Use release version string in package name
 
1486
 
 
1487
Some influential environment variables:
 
1488
  CC          C compiler command
 
1489
  CFLAGS      C compiler flags
 
1490
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1491
              nonstandard directory <lib dir>
 
1492
  LIBS        libraries to pass to the linker, e.g. -l<library>
 
1493
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
 
1494
              you have headers in a nonstandard directory <include dir>
 
1495
  CPP         C preprocessor
 
1496
  PKG_CONFIG  path to pkg-config utility
 
1497
  PKG_CONFIG_PATH
 
1498
              directories to add to pkg-config's search path
 
1499
  PKG_CONFIG_LIBDIR
 
1500
              path overriding pkg-config's built-in search path
 
1501
  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
 
1502
  XORG_LIBS   linker flags for XORG, overriding pkg-config
 
1503
  XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
 
1504
  XEXT_LIBS   linker flags for XEXT, overriding pkg-config
 
1505
  PCIACCESS_CFLAGS
 
1506
              C compiler flags for PCIACCESS, overriding pkg-config
 
1507
  PCIACCESS_LIBS
 
1508
              linker flags for PCIACCESS, overriding pkg-config
 
1509
  DRI_CFLAGS  C compiler flags for DRI, overriding pkg-config
 
1510
  DRI_LIBS    linker flags for DRI, overriding pkg-config
 
1511
  LIBUDEV_CFLAGS
 
1512
              C compiler flags for LIBUDEV, overriding pkg-config
 
1513
  LIBUDEV_LIBS
 
1514
              linker flags for LIBUDEV, overriding pkg-config
 
1515
  XVMC_CFLAGS C compiler flags for XVMC, overriding pkg-config
 
1516
  XVMC_LIBS   linker flags for XVMC, overriding pkg-config
 
1517
 
 
1518
Use these variables to override the choices made by `configure' or to help
 
1519
it to find libraries and programs with nonstandard names/locations.
 
1520
 
 
1521
Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/openchrome>.
 
1522
_ACEOF
 
1523
ac_status=$?
 
1524
fi
 
1525
 
 
1526
if test "$ac_init_help" = "recursive"; then
 
1527
  # If there are subdirs, report their specific --help.
 
1528
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1529
    test -d "$ac_dir" ||
 
1530
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
 
1531
      continue
 
1532
    ac_builddir=.
 
1533
 
 
1534
case "$ac_dir" in
 
1535
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1536
*)
 
1537
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
1538
  # A ".." for each directory in $ac_dir_suffix.
 
1539
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
1540
  case $ac_top_builddir_sub in
 
1541
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1542
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
1543
  esac ;;
 
1544
esac
 
1545
ac_abs_top_builddir=$ac_pwd
 
1546
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
1547
# for backward compatibility:
 
1548
ac_top_builddir=$ac_top_build_prefix
 
1549
 
 
1550
case $srcdir in
 
1551
  .)  # We are building in place.
 
1552
    ac_srcdir=.
 
1553
    ac_top_srcdir=$ac_top_builddir_sub
 
1554
    ac_abs_top_srcdir=$ac_pwd ;;
 
1555
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
1556
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1557
    ac_top_srcdir=$srcdir
 
1558
    ac_abs_top_srcdir=$srcdir ;;
 
1559
  *) # Relative name.
 
1560
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
1561
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
1562
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
1563
esac
 
1564
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
1565
 
 
1566
    cd "$ac_dir" || { ac_status=$?; continue; }
 
1567
    # Check for guested configure.
 
1568
    if test -f "$ac_srcdir/configure.gnu"; then
 
1569
      echo &&
 
1570
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 
1571
    elif test -f "$ac_srcdir/configure"; then
 
1572
      echo &&
 
1573
      $SHELL "$ac_srcdir/configure" --help=recursive
 
1574
    else
 
1575
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1576
    fi || ac_status=$?
 
1577
    cd "$ac_pwd" || { ac_status=$?; break; }
 
1578
  done
 
1579
fi
 
1580
 
 
1581
test -n "$ac_init_help" && exit $ac_status
 
1582
if $ac_init_version; then
 
1583
  cat <<\_ACEOF
 
1584
xf86-video-openchrome configure 0.3.3
 
1585
generated by GNU Autoconf 2.69
 
1586
 
 
1587
Copyright (C) 2012 Free Software Foundation, Inc.
 
1588
This configure script is free software; the Free Software Foundation
 
1589
gives unlimited permission to copy, distribute and modify it.
 
1590
_ACEOF
 
1591
  exit
 
1592
fi
 
1593
 
 
1594
## ------------------------ ##
 
1595
## Autoconf initialization. ##
 
1596
## ------------------------ ##
 
1597
 
 
1598
# ac_fn_c_try_compile LINENO
 
1599
# --------------------------
 
1600
# Try to compile conftest.$ac_ext, and return whether this succeeded.
 
1601
ac_fn_c_try_compile ()
 
1602
{
 
1603
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1604
  rm -f conftest.$ac_objext
 
1605
  if { { ac_try="$ac_compile"
 
1606
case "(($ac_try" in
 
1607
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1608
  *) ac_try_echo=$ac_try;;
 
1609
esac
 
1610
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1611
$as_echo "$ac_try_echo"; } >&5
 
1612
  (eval "$ac_compile") 2>conftest.err
 
1613
  ac_status=$?
 
1614
  if test -s conftest.err; then
 
1615
    grep -v '^ *+' conftest.err >conftest.er1
 
1616
    cat conftest.er1 >&5
 
1617
    mv -f conftest.er1 conftest.err
 
1618
  fi
 
1619
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1620
  test $ac_status = 0; } && {
 
1621
         test -z "$ac_c_werror_flag" ||
 
1622
         test ! -s conftest.err
 
1623
       } && test -s conftest.$ac_objext; then :
 
1624
  ac_retval=0
 
1625
else
 
1626
  $as_echo "$as_me: failed program was:" >&5
 
1627
sed 's/^/| /' conftest.$ac_ext >&5
 
1628
 
 
1629
        ac_retval=1
 
1630
fi
 
1631
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1632
  as_fn_set_status $ac_retval
 
1633
 
 
1634
} # ac_fn_c_try_compile
 
1635
 
 
1636
# ac_fn_c_try_link LINENO
 
1637
# -----------------------
 
1638
# Try to link conftest.$ac_ext, and return whether this succeeded.
 
1639
ac_fn_c_try_link ()
 
1640
{
 
1641
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1642
  rm -f conftest.$ac_objext conftest$ac_exeext
 
1643
  if { { ac_try="$ac_link"
 
1644
case "(($ac_try" in
 
1645
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1646
  *) ac_try_echo=$ac_try;;
 
1647
esac
 
1648
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1649
$as_echo "$ac_try_echo"; } >&5
 
1650
  (eval "$ac_link") 2>conftest.err
 
1651
  ac_status=$?
 
1652
  if test -s conftest.err; then
 
1653
    grep -v '^ *+' conftest.err >conftest.er1
 
1654
    cat conftest.er1 >&5
 
1655
    mv -f conftest.er1 conftest.err
 
1656
  fi
 
1657
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1658
  test $ac_status = 0; } && {
 
1659
         test -z "$ac_c_werror_flag" ||
 
1660
         test ! -s conftest.err
 
1661
       } && test -s conftest$ac_exeext && {
 
1662
         test "$cross_compiling" = yes ||
 
1663
         test -x conftest$ac_exeext
 
1664
       }; then :
 
1665
  ac_retval=0
 
1666
else
 
1667
  $as_echo "$as_me: failed program was:" >&5
 
1668
sed 's/^/| /' conftest.$ac_ext >&5
 
1669
 
 
1670
        ac_retval=1
 
1671
fi
 
1672
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 
1673
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 
1674
  # interfere with the next link command; also delete a directory that is
 
1675
  # left behind by Apple's compiler.  We do this before executing the actions.
 
1676
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1677
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1678
  as_fn_set_status $ac_retval
 
1679
 
 
1680
} # ac_fn_c_try_link
 
1681
 
 
1682
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
 
1683
# -------------------------------------------------------
 
1684
# Tests whether HEADER exists and can be compiled using the include files in
 
1685
# INCLUDES, setting the cache variable VAR accordingly.
 
1686
ac_fn_c_check_header_compile ()
 
1687
{
 
1688
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1689
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1690
$as_echo_n "checking for $2... " >&6; }
 
1691
if eval \${$3+:} false; then :
 
1692
  $as_echo_n "(cached) " >&6
 
1693
else
 
1694
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1695
/* end confdefs.h.  */
 
1696
$4
 
1697
#include <$2>
 
1698
_ACEOF
 
1699
if ac_fn_c_try_compile "$LINENO"; then :
 
1700
  eval "$3=yes"
 
1701
else
 
1702
  eval "$3=no"
 
1703
fi
 
1704
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1705
fi
 
1706
eval ac_res=\$$3
 
1707
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1708
$as_echo "$ac_res" >&6; }
 
1709
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1710
 
 
1711
} # ac_fn_c_check_header_compile
 
1712
 
 
1713
# ac_fn_c_try_cpp LINENO
 
1714
# ----------------------
 
1715
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
 
1716
ac_fn_c_try_cpp ()
 
1717
{
 
1718
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1719
  if { { ac_try="$ac_cpp conftest.$ac_ext"
 
1720
case "(($ac_try" in
 
1721
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1722
  *) ac_try_echo=$ac_try;;
 
1723
esac
 
1724
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1725
$as_echo "$ac_try_echo"; } >&5
 
1726
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
 
1727
  ac_status=$?
 
1728
  if test -s conftest.err; then
 
1729
    grep -v '^ *+' conftest.err >conftest.er1
 
1730
    cat conftest.er1 >&5
 
1731
    mv -f conftest.er1 conftest.err
 
1732
  fi
 
1733
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1734
  test $ac_status = 0; } > conftest.i && {
 
1735
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
1736
         test ! -s conftest.err
 
1737
       }; then :
 
1738
  ac_retval=0
 
1739
else
 
1740
  $as_echo "$as_me: failed program was:" >&5
 
1741
sed 's/^/| /' conftest.$ac_ext >&5
 
1742
 
 
1743
    ac_retval=1
 
1744
fi
 
1745
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1746
  as_fn_set_status $ac_retval
 
1747
 
 
1748
} # ac_fn_c_try_cpp
 
1749
 
 
1750
# ac_fn_c_try_run LINENO
 
1751
# ----------------------
 
1752
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
 
1753
# that executables *can* be run.
 
1754
ac_fn_c_try_run ()
 
1755
{
 
1756
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1757
  if { { ac_try="$ac_link"
 
1758
case "(($ac_try" in
 
1759
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1760
  *) ac_try_echo=$ac_try;;
 
1761
esac
 
1762
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1763
$as_echo "$ac_try_echo"; } >&5
 
1764
  (eval "$ac_link") 2>&5
 
1765
  ac_status=$?
 
1766
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1767
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
 
1768
  { { case "(($ac_try" in
 
1769
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1770
  *) ac_try_echo=$ac_try;;
 
1771
esac
 
1772
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1773
$as_echo "$ac_try_echo"; } >&5
 
1774
  (eval "$ac_try") 2>&5
 
1775
  ac_status=$?
 
1776
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1777
  test $ac_status = 0; }; }; then :
 
1778
  ac_retval=0
 
1779
else
 
1780
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
1781
       $as_echo "$as_me: failed program was:" >&5
 
1782
sed 's/^/| /' conftest.$ac_ext >&5
 
1783
 
 
1784
       ac_retval=$ac_status
 
1785
fi
 
1786
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1787
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1788
  as_fn_set_status $ac_retval
 
1789
 
 
1790
} # ac_fn_c_try_run
 
1791
 
 
1792
# ac_fn_c_check_func LINENO FUNC VAR
 
1793
# ----------------------------------
 
1794
# Tests whether FUNC exists, setting the cache variable VAR accordingly
 
1795
ac_fn_c_check_func ()
 
1796
{
 
1797
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1798
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1799
$as_echo_n "checking for $2... " >&6; }
 
1800
if eval \${$3+:} false; then :
 
1801
  $as_echo_n "(cached) " >&6
 
1802
else
 
1803
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1804
/* end confdefs.h.  */
 
1805
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
 
1806
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
1807
#define $2 innocuous_$2
 
1808
 
 
1809
/* System header to define __stub macros and hopefully few prototypes,
 
1810
    which can conflict with char $2 (); below.
 
1811
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
1812
    <limits.h> exists even on freestanding compilers.  */
 
1813
 
 
1814
#ifdef __STDC__
 
1815
# include <limits.h>
 
1816
#else
 
1817
# include <assert.h>
 
1818
#endif
 
1819
 
 
1820
#undef $2
 
1821
 
 
1822
/* Override any GCC internal prototype to avoid an error.
 
1823
   Use char because int might match the return type of a GCC
 
1824
   builtin and then its argument prototype would still apply.  */
 
1825
#ifdef __cplusplus
 
1826
extern "C"
 
1827
#endif
 
1828
char $2 ();
 
1829
/* The GNU C library defines this for functions which it implements
 
1830
    to always fail with ENOSYS.  Some functions are actually named
 
1831
    something starting with __ and the normal name is an alias.  */
 
1832
#if defined __stub_$2 || defined __stub___$2
 
1833
choke me
 
1834
#endif
 
1835
 
 
1836
int
 
1837
main ()
 
1838
{
 
1839
return $2 ();
 
1840
  ;
 
1841
  return 0;
 
1842
}
 
1843
_ACEOF
 
1844
if ac_fn_c_try_link "$LINENO"; then :
 
1845
  eval "$3=yes"
 
1846
else
 
1847
  eval "$3=no"
 
1848
fi
 
1849
rm -f core conftest.err conftest.$ac_objext \
 
1850
    conftest$ac_exeext conftest.$ac_ext
 
1851
fi
 
1852
eval ac_res=\$$3
 
1853
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1854
$as_echo "$ac_res" >&6; }
 
1855
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1856
 
 
1857
} # ac_fn_c_check_func
 
1858
 
 
1859
# ac_fn_c_check_header_preproc LINENO HEADER VAR
 
1860
# ----------------------------------------------
 
1861
# Tests whether HEADER is present, setting the cache variable VAR accordingly.
 
1862
ac_fn_c_check_header_preproc ()
 
1863
{
 
1864
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1865
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1866
$as_echo_n "checking for $2... " >&6; }
 
1867
if eval \${$3+:} false; then :
 
1868
  $as_echo_n "(cached) " >&6
 
1869
else
 
1870
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1871
/* end confdefs.h.  */
 
1872
#include <$2>
 
1873
_ACEOF
 
1874
if ac_fn_c_try_cpp "$LINENO"; then :
 
1875
  eval "$3=yes"
 
1876
else
 
1877
  eval "$3=no"
 
1878
fi
 
1879
rm -f conftest.err conftest.i conftest.$ac_ext
 
1880
fi
 
1881
eval ac_res=\$$3
 
1882
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1883
$as_echo "$ac_res" >&6; }
 
1884
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1885
 
 
1886
} # ac_fn_c_check_header_preproc
 
1887
 
 
1888
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
 
1889
# -------------------------------------------------------
 
1890
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
 
1891
# the include files in INCLUDES and setting the cache variable VAR
 
1892
# accordingly.
 
1893
ac_fn_c_check_header_mongrel ()
 
1894
{
 
1895
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1896
  if eval \${$3+:} false; then :
 
1897
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1898
$as_echo_n "checking for $2... " >&6; }
 
1899
if eval \${$3+:} false; then :
 
1900
  $as_echo_n "(cached) " >&6
 
1901
fi
 
1902
eval ac_res=\$$3
 
1903
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1904
$as_echo "$ac_res" >&6; }
 
1905
else
 
1906
  # Is the header compilable?
 
1907
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
 
1908
$as_echo_n "checking $2 usability... " >&6; }
 
1909
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1910
/* end confdefs.h.  */
 
1911
$4
 
1912
#include <$2>
 
1913
_ACEOF
 
1914
if ac_fn_c_try_compile "$LINENO"; then :
 
1915
  ac_header_compiler=yes
 
1916
else
 
1917
  ac_header_compiler=no
 
1918
fi
 
1919
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1920
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
 
1921
$as_echo "$ac_header_compiler" >&6; }
 
1922
 
 
1923
# Is the header present?
 
1924
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
 
1925
$as_echo_n "checking $2 presence... " >&6; }
 
1926
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1927
/* end confdefs.h.  */
 
1928
#include <$2>
 
1929
_ACEOF
 
1930
if ac_fn_c_try_cpp "$LINENO"; then :
 
1931
  ac_header_preproc=yes
 
1932
else
 
1933
  ac_header_preproc=no
 
1934
fi
 
1935
rm -f conftest.err conftest.i conftest.$ac_ext
 
1936
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
 
1937
$as_echo "$ac_header_preproc" >&6; }
 
1938
 
 
1939
# So?  What about this header?
 
1940
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
 
1941
  yes:no: )
 
1942
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
 
1943
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
1944
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 
1945
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 
1946
    ;;
 
1947
  no:yes:* )
 
1948
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
 
1949
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
 
1950
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
 
1951
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
 
1952
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
 
1953
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
 
1954
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
 
1955
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
 
1956
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 
1957
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 
1958
( $as_echo "## -------------------------------------------------------------------------------------------------- ##
 
1959
## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/openchrome ##
 
1960
## -------------------------------------------------------------------------------------------------- ##"
 
1961
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
1962
    ;;
 
1963
esac
 
1964
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1965
$as_echo_n "checking for $2... " >&6; }
 
1966
if eval \${$3+:} false; then :
 
1967
  $as_echo_n "(cached) " >&6
 
1968
else
 
1969
  eval "$3=\$ac_header_compiler"
 
1970
fi
 
1971
eval ac_res=\$$3
 
1972
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1973
$as_echo "$ac_res" >&6; }
 
1974
fi
 
1975
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1976
 
 
1977
} # ac_fn_c_check_header_mongrel
 
1978
cat >config.log <<_ACEOF
 
1979
This file contains any messages produced by compilers while
 
1980
running configure, to aid debugging if configure makes a mistake.
 
1981
 
 
1982
It was created by xf86-video-openchrome $as_me 0.3.3, which was
 
1983
generated by GNU Autoconf 2.69.  Invocation command line was
 
1984
 
 
1985
  $ $0 $@
 
1986
 
 
1987
_ACEOF
 
1988
exec 5>>config.log
 
1989
{
 
1990
cat <<_ASUNAME
 
1991
## --------- ##
 
1992
## Platform. ##
 
1993
## --------- ##
 
1994
 
 
1995
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1996
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1997
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1998
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1999
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
2000
 
 
2001
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
2002
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
2003
 
 
2004
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
2005
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
2006
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
2007
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 
2008
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
2009
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
2010
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
2011
 
 
2012
_ASUNAME
 
2013
 
 
2014
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2015
for as_dir in $PATH
 
2016
do
 
2017
  IFS=$as_save_IFS
 
2018
  test -z "$as_dir" && as_dir=.
 
2019
    $as_echo "PATH: $as_dir"
 
2020
  done
 
2021
IFS=$as_save_IFS
 
2022
 
 
2023
} >&5
 
2024
 
 
2025
cat >&5 <<_ACEOF
 
2026
 
 
2027
 
 
2028
## ----------- ##
 
2029
## Core tests. ##
 
2030
## ----------- ##
 
2031
 
 
2032
_ACEOF
 
2033
 
 
2034
 
 
2035
# Keep a trace of the command line.
 
2036
# Strip out --no-create and --no-recursion so they do not pile up.
 
2037
# Strip out --silent because we don't want to record it for future runs.
 
2038
# Also quote any args containing shell meta-characters.
 
2039
# Make two passes to allow for proper duplicate-argument suppression.
 
2040
ac_configure_args=
 
2041
ac_configure_args0=
 
2042
ac_configure_args1=
 
2043
ac_must_keep_next=false
 
2044
for ac_pass in 1 2
 
2045
do
 
2046
  for ac_arg
 
2047
  do
 
2048
    case $ac_arg in
 
2049
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
2050
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
2051
    | -silent | --silent | --silen | --sile | --sil)
 
2052
      continue ;;
 
2053
    *\'*)
 
2054
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2055
    esac
 
2056
    case $ac_pass in
 
2057
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
 
2058
    2)
 
2059
      as_fn_append ac_configure_args1 " '$ac_arg'"
 
2060
      if test $ac_must_keep_next = true; then
 
2061
        ac_must_keep_next=false # Got value, back to normal.
 
2062
      else
 
2063
        case $ac_arg in
 
2064
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
2065
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
2066
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
2067
          | -with-* | --with-* | -without-* | --without-* | --x)
 
2068
            case "$ac_configure_args0 " in
 
2069
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
2070
            esac
 
2071
            ;;
 
2072
          -* ) ac_must_keep_next=true ;;
 
2073
        esac
 
2074
      fi
 
2075
      as_fn_append ac_configure_args " '$ac_arg'"
 
2076
      ;;
 
2077
    esac
 
2078
  done
 
2079
done
 
2080
{ ac_configure_args0=; unset ac_configure_args0;}
 
2081
{ ac_configure_args1=; unset ac_configure_args1;}
 
2082
 
 
2083
# When interrupted or exit'd, cleanup temporary files, and complete
 
2084
# config.log.  We remove comments because anyway the quotes in there
 
2085
# would cause problems or look ugly.
 
2086
# WARNING: Use '\'' to represent an apostrophe within the trap.
 
2087
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 
2088
trap 'exit_status=$?
 
2089
  # Save into config.log some information that might help in debugging.
 
2090
  {
 
2091
    echo
 
2092
 
 
2093
    $as_echo "## ---------------- ##
 
2094
## Cache variables. ##
 
2095
## ---------------- ##"
 
2096
    echo
 
2097
    # The following way of writing the cache mishandles newlines in values,
 
2098
(
 
2099
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 
2100
    eval ac_val=\$$ac_var
 
2101
    case $ac_val in #(
 
2102
    *${as_nl}*)
 
2103
      case $ac_var in #(
 
2104
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
2105
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
2106
      esac
 
2107
      case $ac_var in #(
 
2108
      _ | IFS | as_nl) ;; #(
 
2109
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
2110
      *) { eval $ac_var=; unset $ac_var;} ;;
 
2111
      esac ;;
 
2112
    esac
 
2113
  done
 
2114
  (set) 2>&1 |
 
2115
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 
2116
    *${as_nl}ac_space=\ *)
 
2117
      sed -n \
 
2118
        "s/'\''/'\''\\\\'\'''\''/g;
 
2119
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 
2120
      ;; #(
 
2121
    *)
 
2122
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
2123
      ;;
 
2124
    esac |
 
2125
    sort
 
2126
)
 
2127
    echo
 
2128
 
 
2129
    $as_echo "## ----------------- ##
 
2130
## Output variables. ##
 
2131
## ----------------- ##"
 
2132
    echo
 
2133
    for ac_var in $ac_subst_vars
 
2134
    do
 
2135
      eval ac_val=\$$ac_var
 
2136
      case $ac_val in
 
2137
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
2138
      esac
 
2139
      $as_echo "$ac_var='\''$ac_val'\''"
 
2140
    done | sort
 
2141
    echo
 
2142
 
 
2143
    if test -n "$ac_subst_files"; then
 
2144
      $as_echo "## ------------------- ##
 
2145
## File substitutions. ##
 
2146
## ------------------- ##"
 
2147
      echo
 
2148
      for ac_var in $ac_subst_files
 
2149
      do
 
2150
        eval ac_val=\$$ac_var
 
2151
        case $ac_val in
 
2152
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
2153
        esac
 
2154
        $as_echo "$ac_var='\''$ac_val'\''"
 
2155
      done | sort
 
2156
      echo
 
2157
    fi
 
2158
 
 
2159
    if test -s confdefs.h; then
 
2160
      $as_echo "## ----------- ##
 
2161
## confdefs.h. ##
 
2162
## ----------- ##"
 
2163
      echo
 
2164
      cat confdefs.h
 
2165
      echo
 
2166
    fi
 
2167
    test "$ac_signal" != 0 &&
 
2168
      $as_echo "$as_me: caught signal $ac_signal"
 
2169
    $as_echo "$as_me: exit $exit_status"
 
2170
  } >&5
 
2171
  rm -f core *.core core.conftest.* &&
 
2172
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 
2173
    exit $exit_status
 
2174
' 0
 
2175
for ac_signal in 1 2 13 15; do
 
2176
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
 
2177
done
 
2178
ac_signal=0
 
2179
 
 
2180
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
2181
rm -f -r conftest* confdefs.h
 
2182
 
 
2183
$as_echo "/* confdefs.h */" > confdefs.h
 
2184
 
 
2185
# Predefined preprocessor variables.
 
2186
 
 
2187
cat >>confdefs.h <<_ACEOF
 
2188
#define PACKAGE_NAME "$PACKAGE_NAME"
 
2189
_ACEOF
 
2190
 
 
2191
cat >>confdefs.h <<_ACEOF
 
2192
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
2193
_ACEOF
 
2194
 
 
2195
cat >>confdefs.h <<_ACEOF
 
2196
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
2197
_ACEOF
 
2198
 
 
2199
cat >>confdefs.h <<_ACEOF
 
2200
#define PACKAGE_STRING "$PACKAGE_STRING"
 
2201
_ACEOF
 
2202
 
 
2203
cat >>confdefs.h <<_ACEOF
 
2204
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
2205
_ACEOF
 
2206
 
 
2207
cat >>confdefs.h <<_ACEOF
 
2208
#define PACKAGE_URL "$PACKAGE_URL"
 
2209
_ACEOF
 
2210
 
 
2211
 
 
2212
# Let the site file select an alternate cache file if it wants to.
 
2213
# Prefer an explicitly selected file to automatically selected ones.
 
2214
ac_site_file1=NONE
 
2215
ac_site_file2=NONE
 
2216
if test -n "$CONFIG_SITE"; then
 
2217
  # We do not want a PATH search for config.site.
 
2218
  case $CONFIG_SITE in #((
 
2219
    -*)  ac_site_file1=./$CONFIG_SITE;;
 
2220
    */*) ac_site_file1=$CONFIG_SITE;;
 
2221
    *)   ac_site_file1=./$CONFIG_SITE;;
 
2222
  esac
 
2223
elif test "x$prefix" != xNONE; then
 
2224
  ac_site_file1=$prefix/share/config.site
 
2225
  ac_site_file2=$prefix/etc/config.site
 
2226
else
 
2227
  ac_site_file1=$ac_default_prefix/share/config.site
 
2228
  ac_site_file2=$ac_default_prefix/etc/config.site
 
2229
fi
 
2230
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
 
2231
do
 
2232
  test "x$ac_site_file" = xNONE && continue
 
2233
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
 
2234
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
 
2235
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
 
2236
    sed 's/^/| /' "$ac_site_file" >&5
 
2237
    . "$ac_site_file" \
 
2238
      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2239
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2240
as_fn_error $? "failed to load site script $ac_site_file
 
2241
See \`config.log' for more details" "$LINENO" 5; }
 
2242
  fi
 
2243
done
 
2244
 
 
2245
if test -r "$cache_file"; then
 
2246
  # Some versions of bash will fail to source /dev/null (special files
 
2247
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
 
2248
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
 
2249
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
 
2250
$as_echo "$as_me: loading cache $cache_file" >&6;}
 
2251
    case $cache_file in
 
2252
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
 
2253
      *)                      . "./$cache_file";;
 
2254
    esac
 
2255
  fi
 
2256
else
 
2257
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
 
2258
$as_echo "$as_me: creating cache $cache_file" >&6;}
 
2259
  >$cache_file
 
2260
fi
 
2261
 
 
2262
# Check that the precious variables saved in the cache have kept the same
 
2263
# value.
 
2264
ac_cache_corrupted=false
 
2265
for ac_var in $ac_precious_vars; do
 
2266
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
2267
  eval ac_new_set=\$ac_env_${ac_var}_set
 
2268
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
 
2269
  eval ac_new_val=\$ac_env_${ac_var}_value
 
2270
  case $ac_old_set,$ac_new_set in
 
2271
    set,)
 
2272
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
2273
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
2274
      ac_cache_corrupted=: ;;
 
2275
    ,set)
 
2276
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
 
2277
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
2278
      ac_cache_corrupted=: ;;
 
2279
    ,);;
 
2280
    *)
 
2281
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
2282
        # differences in whitespace do not lead to failure.
 
2283
        ac_old_val_w=`echo x $ac_old_val`
 
2284
        ac_new_val_w=`echo x $ac_new_val`
 
2285
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
 
2286
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
 
2287
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
2288
          ac_cache_corrupted=:
 
2289
        else
 
2290
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
 
2291
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
 
2292
          eval $ac_var=\$ac_old_val
 
2293
        fi
 
2294
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
 
2295
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
 
2296
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
 
2297
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
 
2298
      fi;;
 
2299
  esac
 
2300
  # Pass precious variables to config.status.
 
2301
  if test "$ac_new_set" = set; then
 
2302
    case $ac_new_val in
 
2303
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2304
    *) ac_arg=$ac_var=$ac_new_val ;;
 
2305
    esac
 
2306
    case " $ac_configure_args " in
 
2307
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
2308
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
 
2309
    esac
 
2310
  fi
 
2311
done
 
2312
if $ac_cache_corrupted; then
 
2313
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2314
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2315
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
 
2316
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
2317
  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
 
2318
fi
 
2319
## -------------------- ##
 
2320
## Main body of script. ##
 
2321
## -------------------- ##
 
2322
 
 
2323
ac_ext=c
 
2324
ac_cpp='$CPP $CPPFLAGS'
 
2325
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2326
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2327
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2328
 
 
2329
 
 
2330
 
 
2331
 
 
2332
cat >>confdefs.h <<_ACEOF
 
2333
#define VIA_MAJOR_VERSION $(echo $PACKAGE_VERSION | sed -e 's/^\([0-9]*\)\.[0-9]*\.[0-9]*/\1/')
 
2334
_ACEOF
 
2335
 
 
2336
 
 
2337
cat >>confdefs.h <<_ACEOF
 
2338
#define VIA_MINOR_VERSION $(echo $PACKAGE_VERSION | sed -e 's/^[0-9]*\.\([0-9]*\)\.[0-9]*/\1/')
 
2339
_ACEOF
 
2340
 
 
2341
 
 
2342
cat >>confdefs.h <<_ACEOF
 
2343
#define VIA_PATCHLEVEL $(echo $PACKAGE_VERSION | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)/\1/')
 
2344
_ACEOF
 
2345
 
 
2346
 
 
2347
 
 
2348
ac_config_headers="$ac_config_headers config.h"
 
2349
 
 
2350
ac_aux_dir=
 
2351
for ac_dir in . "$srcdir"/.; do
 
2352
  if test -f "$ac_dir/install-sh"; then
 
2353
    ac_aux_dir=$ac_dir
 
2354
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
2355
    break
 
2356
  elif test -f "$ac_dir/install.sh"; then
 
2357
    ac_aux_dir=$ac_dir
 
2358
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
2359
    break
 
2360
  elif test -f "$ac_dir/shtool"; then
 
2361
    ac_aux_dir=$ac_dir
 
2362
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
2363
    break
 
2364
  fi
 
2365
done
 
2366
if test -z "$ac_aux_dir"; then
 
2367
  as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
 
2368
fi
 
2369
 
 
2370
# These three variables are undocumented and unsupported,
 
2371
# and are intended to be withdrawn in a future Autoconf release.
 
2372
# They can cause serious problems if a builder's source tree is in a directory
 
2373
# whose full name contains unusual characters.
 
2374
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 
2375
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 
2376
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 
2377
 
 
2378
 
 
2379
 
 
2380
am__api_version='1.12'
 
2381
 
 
2382
# Find a good install program.  We prefer a C program (faster),
 
2383
# so one script is as good as another.  But avoid the broken or
 
2384
# incompatible versions:
 
2385
# SysV /etc/install, /usr/sbin/install
 
2386
# SunOS /usr/etc/install
 
2387
# IRIX /sbin/install
 
2388
# AIX /bin/install
 
2389
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
2390
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
2391
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
2392
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
2393
# OS/2's system install, which has a completely different semantic
 
2394
# ./install, which can be erroneously created by make from ./install.sh.
 
2395
# Reject install programs that cannot install multiple files.
 
2396
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
 
2397
$as_echo_n "checking for a BSD-compatible install... " >&6; }
 
2398
if test -z "$INSTALL"; then
 
2399
if ${ac_cv_path_install+:} false; then :
 
2400
  $as_echo_n "(cached) " >&6
 
2401
else
 
2402
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2403
for as_dir in $PATH
 
2404
do
 
2405
  IFS=$as_save_IFS
 
2406
  test -z "$as_dir" && as_dir=.
 
2407
    # Account for people who put trailing slashes in PATH elements.
 
2408
case $as_dir/ in #((
 
2409
  ./ | .// | /[cC]/* | \
 
2410
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
2411
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
 
2412
  /usr/ucb/* ) ;;
 
2413
  *)
 
2414
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
2415
    # Don't use installbsd from OSF since it installs stuff as root
 
2416
    # by default.
 
2417
    for ac_prog in ginstall scoinst install; do
 
2418
      for ac_exec_ext in '' $ac_executable_extensions; do
 
2419
        if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
2420
          if test $ac_prog = install &&
 
2421
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2422
            # AIX install.  It has an incompatible calling convention.
 
2423
            :
 
2424
          elif test $ac_prog = install &&
 
2425
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2426
            # program-specific install script used by HP pwplus--don't use.
 
2427
            :
 
2428
          else
 
2429
            rm -rf conftest.one conftest.two conftest.dir
 
2430
            echo one > conftest.one
 
2431
            echo two > conftest.two
 
2432
            mkdir conftest.dir
 
2433
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
 
2434
              test -s conftest.one && test -s conftest.two &&
 
2435
              test -s conftest.dir/conftest.one &&
 
2436
              test -s conftest.dir/conftest.two
 
2437
            then
 
2438
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
2439
              break 3
 
2440
            fi
 
2441
          fi
 
2442
        fi
 
2443
      done
 
2444
    done
 
2445
    ;;
 
2446
esac
 
2447
 
 
2448
  done
 
2449
IFS=$as_save_IFS
 
2450
 
 
2451
rm -rf conftest.one conftest.two conftest.dir
 
2452
 
 
2453
fi
 
2454
  if test "${ac_cv_path_install+set}" = set; then
 
2455
    INSTALL=$ac_cv_path_install
 
2456
  else
 
2457
    # As a last resort, use the slow shell script.  Don't cache a
 
2458
    # value for INSTALL within a source directory, because that will
 
2459
    # break other packages using the cache if that directory is
 
2460
    # removed, or if the value is a relative name.
 
2461
    INSTALL=$ac_install_sh
 
2462
  fi
 
2463
fi
 
2464
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
 
2465
$as_echo "$INSTALL" >&6; }
 
2466
 
 
2467
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
2468
# It thinks the first close brace ends the variable substitution.
 
2469
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
2470
 
 
2471
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
2472
 
 
2473
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
2474
 
 
2475
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
 
2476
$as_echo_n "checking whether build environment is sane... " >&6; }
 
2477
# Reject unsafe characters in $srcdir or the absolute working directory
 
2478
# name.  Accept space and tab only in the latter.
 
2479
am_lf='
 
2480
'
 
2481
case `pwd` in
 
2482
  *[\\\"\#\$\&\'\`$am_lf]*)
 
2483
    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
 
2484
esac
 
2485
case $srcdir in
 
2486
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
 
2487
    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
 
2488
esac
 
2489
 
 
2490
# Do 'set' in a subshell so we don't clobber the current shell's
 
2491
# arguments.  Must try -L first in case configure is actually a
 
2492
# symlink; some systems play weird games with the mod time of symlinks
 
2493
# (eg FreeBSD returns the mod time of the symlink's containing
 
2494
# directory).
 
2495
if (
 
2496
   am_has_slept=no
 
2497
   for am_try in 1 2; do
 
2498
     echo "timestamp, slept: $am_has_slept" > conftest.file
 
2499
     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
 
2500
     if test "$*" = "X"; then
 
2501
        # -L didn't work.
 
2502
        set X `ls -t "$srcdir/configure" conftest.file`
 
2503
     fi
 
2504
     if test "$*" != "X $srcdir/configure conftest.file" \
 
2505
        && test "$*" != "X conftest.file $srcdir/configure"; then
 
2506
 
 
2507
        # If neither matched, then we have a broken ls.  This can happen
 
2508
        # if, for instance, CONFIG_SHELL is bash and it inherits a
 
2509
        # broken ls alias from the environment.  This has actually
 
2510
        # happened.  Such a system could not be considered "sane".
 
2511
        as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
 
2512
  alias in your environment" "$LINENO" 5
 
2513
     fi
 
2514
     if test "$2" = conftest.file || test $am_try -eq 2; then
 
2515
       break
 
2516
     fi
 
2517
     # Just in case.
 
2518
     sleep 1
 
2519
     am_has_slept=yes
 
2520
   done
 
2521
   test "$2" = conftest.file
 
2522
   )
 
2523
then
 
2524
   # Ok.
 
2525
   :
 
2526
else
 
2527
   as_fn_error $? "newly created file is older than distributed files!
 
2528
Check your system clock" "$LINENO" 5
 
2529
fi
 
2530
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
2531
$as_echo "yes" >&6; }
 
2532
# If we didn't sleep, we still need to ensure time stamps of config.status and
 
2533
# generated files are strictly newer.
 
2534
am_sleep_pid=
 
2535
if grep 'slept: no' conftest.file >/dev/null 2>&1; then
 
2536
  ( sleep 1 ) &
 
2537
  am_sleep_pid=$!
 
2538
fi
 
2539
 
 
2540
rm -f conftest.file
 
2541
 
 
2542
test "$program_prefix" != NONE &&
 
2543
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
 
2544
# Use a double $ so make ignores it.
 
2545
test "$program_suffix" != NONE &&
 
2546
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
 
2547
# Double any \ or $.
 
2548
# By default was `s,x,x', remove it if useless.
 
2549
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
 
2550
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
 
2551
 
 
2552
# expand $ac_aux_dir to an absolute path
 
2553
am_aux_dir=`cd $ac_aux_dir && pwd`
 
2554
 
 
2555
if test x"${MISSING+set}" != xset; then
 
2556
  case $am_aux_dir in
 
2557
  *\ * | *\     *)
 
2558
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
 
2559
  *)
 
2560
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
 
2561
  esac
 
2562
fi
 
2563
# Use eval to expand $SHELL
 
2564
if eval "$MISSING --run true"; then
 
2565
  am_missing_run="$MISSING --run "
 
2566
else
 
2567
  am_missing_run=
 
2568
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
 
2569
$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
 
2570
fi
 
2571
 
 
2572
if test x"${install_sh}" != xset; then
 
2573
  case $am_aux_dir in
 
2574
  *\ * | *\     *)
 
2575
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
 
2576
  *)
 
2577
    install_sh="\${SHELL} $am_aux_dir/install-sh"
 
2578
  esac
 
2579
fi
 
2580
 
 
2581
# Installed binaries are usually stripped using 'strip' when the user
 
2582
# run "make install-strip".  However 'strip' might not be the right
 
2583
# tool to use in cross-compilation environments, therefore Automake
 
2584
# will honor the 'STRIP' environment variable to overrule this program.
 
2585
if test "$cross_compiling" != no; then
 
2586
  if test -n "$ac_tool_prefix"; then
 
2587
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
2588
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
2589
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2590
$as_echo_n "checking for $ac_word... " >&6; }
 
2591
if ${ac_cv_prog_STRIP+:} false; then :
 
2592
  $as_echo_n "(cached) " >&6
 
2593
else
 
2594
  if test -n "$STRIP"; then
 
2595
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
2596
else
 
2597
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2598
for as_dir in $PATH
 
2599
do
 
2600
  IFS=$as_save_IFS
 
2601
  test -z "$as_dir" && as_dir=.
 
2602
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2603
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2604
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
2605
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2606
    break 2
 
2607
  fi
 
2608
done
 
2609
  done
 
2610
IFS=$as_save_IFS
 
2611
 
 
2612
fi
 
2613
fi
 
2614
STRIP=$ac_cv_prog_STRIP
 
2615
if test -n "$STRIP"; then
 
2616
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
 
2617
$as_echo "$STRIP" >&6; }
 
2618
else
 
2619
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2620
$as_echo "no" >&6; }
 
2621
fi
 
2622
 
 
2623
 
 
2624
fi
 
2625
if test -z "$ac_cv_prog_STRIP"; then
 
2626
  ac_ct_STRIP=$STRIP
 
2627
  # Extract the first word of "strip", so it can be a program name with args.
 
2628
set dummy strip; ac_word=$2
 
2629
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2630
$as_echo_n "checking for $ac_word... " >&6; }
 
2631
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
 
2632
  $as_echo_n "(cached) " >&6
 
2633
else
 
2634
  if test -n "$ac_ct_STRIP"; then
 
2635
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
2636
else
 
2637
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2638
for as_dir in $PATH
 
2639
do
 
2640
  IFS=$as_save_IFS
 
2641
  test -z "$as_dir" && as_dir=.
 
2642
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2643
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2644
    ac_cv_prog_ac_ct_STRIP="strip"
 
2645
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2646
    break 2
 
2647
  fi
 
2648
done
 
2649
  done
 
2650
IFS=$as_save_IFS
 
2651
 
 
2652
fi
 
2653
fi
 
2654
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
2655
if test -n "$ac_ct_STRIP"; then
 
2656
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
 
2657
$as_echo "$ac_ct_STRIP" >&6; }
 
2658
else
 
2659
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2660
$as_echo "no" >&6; }
 
2661
fi
 
2662
 
 
2663
  if test "x$ac_ct_STRIP" = x; then
 
2664
    STRIP=":"
 
2665
  else
 
2666
    case $cross_compiling:$ac_tool_warned in
 
2667
yes:)
 
2668
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
2669
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2670
ac_tool_warned=yes ;;
 
2671
esac
 
2672
    STRIP=$ac_ct_STRIP
 
2673
  fi
 
2674
else
 
2675
  STRIP="$ac_cv_prog_STRIP"
 
2676
fi
 
2677
 
 
2678
fi
 
2679
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
2680
 
 
2681
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
 
2682
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
 
2683
if test -z "$MKDIR_P"; then
 
2684
  if ${ac_cv_path_mkdir+:} false; then :
 
2685
  $as_echo_n "(cached) " >&6
 
2686
else
 
2687
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2688
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
 
2689
do
 
2690
  IFS=$as_save_IFS
 
2691
  test -z "$as_dir" && as_dir=.
 
2692
    for ac_prog in mkdir gmkdir; do
 
2693
         for ac_exec_ext in '' $ac_executable_extensions; do
 
2694
           as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
 
2695
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
 
2696
             'mkdir (GNU coreutils) '* | \
 
2697
             'mkdir (coreutils) '* | \
 
2698
             'mkdir (fileutils) '4.1*)
 
2699
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
 
2700
               break 3;;
 
2701
           esac
 
2702
         done
 
2703
       done
 
2704
  done
 
2705
IFS=$as_save_IFS
 
2706
 
 
2707
fi
 
2708
 
 
2709
  test -d ./--version && rmdir ./--version
 
2710
  if test "${ac_cv_path_mkdir+set}" = set; then
 
2711
    MKDIR_P="$ac_cv_path_mkdir -p"
 
2712
  else
 
2713
    # As a last resort, use the slow shell script.  Don't cache a
 
2714
    # value for MKDIR_P within a source directory, because that will
 
2715
    # break other packages using the cache if that directory is
 
2716
    # removed, or if the value is a relative name.
 
2717
    MKDIR_P="$ac_install_sh -d"
 
2718
  fi
 
2719
fi
 
2720
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
 
2721
$as_echo "$MKDIR_P" >&6; }
 
2722
 
 
2723
for ac_prog in gawk mawk nawk awk
 
2724
do
 
2725
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2726
set dummy $ac_prog; ac_word=$2
 
2727
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2728
$as_echo_n "checking for $ac_word... " >&6; }
 
2729
if ${ac_cv_prog_AWK+:} false; then :
 
2730
  $as_echo_n "(cached) " >&6
 
2731
else
 
2732
  if test -n "$AWK"; then
 
2733
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
2734
else
 
2735
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2736
for as_dir in $PATH
 
2737
do
 
2738
  IFS=$as_save_IFS
 
2739
  test -z "$as_dir" && as_dir=.
 
2740
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2741
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2742
    ac_cv_prog_AWK="$ac_prog"
 
2743
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2744
    break 2
 
2745
  fi
 
2746
done
 
2747
  done
 
2748
IFS=$as_save_IFS
 
2749
 
 
2750
fi
 
2751
fi
 
2752
AWK=$ac_cv_prog_AWK
 
2753
if test -n "$AWK"; then
 
2754
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
 
2755
$as_echo "$AWK" >&6; }
 
2756
else
 
2757
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2758
$as_echo "no" >&6; }
 
2759
fi
 
2760
 
 
2761
 
 
2762
  test -n "$AWK" && break
 
2763
done
 
2764
 
 
2765
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
2766
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
 
2767
set x ${MAKE-make}
 
2768
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
2769
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
 
2770
  $as_echo_n "(cached) " >&6
 
2771
else
 
2772
  cat >conftest.make <<\_ACEOF
 
2773
SHELL = /bin/sh
 
2774
all:
 
2775
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
2776
_ACEOF
 
2777
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
 
2778
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
2779
  *@@@%%%=?*=@@@%%%*)
 
2780
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
2781
  *)
 
2782
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
2783
esac
 
2784
rm -f conftest.make
 
2785
fi
 
2786
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
2787
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
2788
$as_echo "yes" >&6; }
 
2789
  SET_MAKE=
 
2790
else
 
2791
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2792
$as_echo "no" >&6; }
 
2793
  SET_MAKE="MAKE=${MAKE-make}"
 
2794
fi
 
2795
 
 
2796
rm -rf .tst 2>/dev/null
 
2797
mkdir .tst 2>/dev/null
 
2798
if test -d .tst; then
 
2799
  am__leading_dot=.
 
2800
else
 
2801
  am__leading_dot=_
 
2802
fi
 
2803
rmdir .tst 2>/dev/null
 
2804
 
 
2805
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
2806
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
2807
  # is not polluted with repeated "-I."
 
2808
  am__isrc=' -I$(srcdir)'
 
2809
  # test to see if srcdir already configured
 
2810
  if test -f $srcdir/config.status; then
 
2811
    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
 
2812
  fi
 
2813
fi
 
2814
 
 
2815
# test whether we have cygpath
 
2816
if test -z "$CYGPATH_W"; then
 
2817
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
2818
    CYGPATH_W='cygpath -w'
 
2819
  else
 
2820
    CYGPATH_W=echo
 
2821
  fi
 
2822
fi
 
2823
 
 
2824
 
 
2825
# Define the identity of the package.
 
2826
 PACKAGE='xf86-video-openchrome'
 
2827
 VERSION='0.3.3'
 
2828
 
 
2829
 
 
2830
cat >>confdefs.h <<_ACEOF
 
2831
#define PACKAGE "$PACKAGE"
 
2832
_ACEOF
 
2833
 
 
2834
 
 
2835
cat >>confdefs.h <<_ACEOF
 
2836
#define VERSION "$VERSION"
 
2837
_ACEOF
 
2838
 
 
2839
# Some tools Automake needs.
 
2840
 
 
2841
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
2842
 
 
2843
 
 
2844
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
2845
 
 
2846
 
 
2847
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
2848
 
 
2849
 
 
2850
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
2851
 
 
2852
 
 
2853
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
2854
 
 
2855
# For better backward compatibility.  To be removed once Automake 1.9.x
 
2856
# dies out for good.  For more background, see:
 
2857
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
 
2858
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
 
2859
mkdir_p='$(MKDIR_P)'
 
2860
 
 
2861
# We need awk for the "check" target.  The system "awk" is bad on
 
2862
# some platforms.
 
2863
# Always define AMTAR for backward compatibility.  Yes, it's still used
 
2864
# in the wild :-(  We should find a proper way to deprecate it ...
 
2865
AMTAR='$${TAR-tar}'
 
2866
 
 
2867
am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
 
2868
 
 
2869
 
 
2870
 
 
2871
 
 
2872
 
 
2873
 
 
2874
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
 
2875
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
 
2876
    # Check whether --enable-maintainer-mode was given.
 
2877
if test "${enable_maintainer_mode+set}" = set; then :
 
2878
  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
 
2879
else
 
2880
  USE_MAINTAINER_MODE=no
 
2881
fi
 
2882
 
 
2883
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
 
2884
$as_echo "$USE_MAINTAINER_MODE" >&6; }
 
2885
   if test $USE_MAINTAINER_MODE = yes; then
 
2886
  MAINTAINER_MODE_TRUE=
 
2887
  MAINTAINER_MODE_FALSE='#'
 
2888
else
 
2889
  MAINTAINER_MODE_TRUE='#'
 
2890
  MAINTAINER_MODE_FALSE=
 
2891
fi
 
2892
 
 
2893
  MAINT=$MAINTAINER_MODE_TRUE
 
2894
 
 
2895
 
 
2896
 
 
2897
# Initialize libtool
 
2898
# Check whether --enable-static was given.
 
2899
if test "${enable_static+set}" = set; then :
 
2900
  enableval=$enable_static; p=${PACKAGE-default}
 
2901
    case $enableval in
 
2902
    yes) enable_static=yes ;;
 
2903
    no) enable_static=no ;;
 
2904
    *)
 
2905
     enable_static=no
 
2906
      # Look at the argument we got.  We use all the common list separators.
 
2907
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
2908
      for pkg in $enableval; do
 
2909
        IFS="$lt_save_ifs"
 
2910
        if test "X$pkg" = "X$p"; then
 
2911
          enable_static=yes
 
2912
        fi
 
2913
      done
 
2914
      IFS="$lt_save_ifs"
 
2915
      ;;
 
2916
    esac
 
2917
else
 
2918
  enable_static=no
 
2919
fi
 
2920
 
 
2921
 
 
2922
 
 
2923
 
 
2924
 
 
2925
 
 
2926
 
 
2927
 
 
2928
 
 
2929
case `pwd` in
 
2930
  *\ * | *\     *)
 
2931
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
 
2932
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
 
2933
esac
 
2934
 
 
2935
 
 
2936
 
 
2937
macro_version='2.4.2'
 
2938
macro_revision='1.3337'
 
2939
 
 
2940
 
 
2941
 
 
2942
 
 
2943
 
 
2944
 
 
2945
 
 
2946
 
 
2947
 
 
2948
 
 
2949
 
 
2950
 
 
2951
 
 
2952
ltmain="$ac_aux_dir/ltmain.sh"
 
2953
 
 
2954
# Make sure we can run config.sub.
 
2955
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 
2956
  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
 
2957
 
 
2958
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
 
2959
$as_echo_n "checking build system type... " >&6; }
 
2960
if ${ac_cv_build+:} false; then :
 
2961
  $as_echo_n "(cached) " >&6
 
2962
else
 
2963
  ac_build_alias=$build_alias
 
2964
test "x$ac_build_alias" = x &&
 
2965
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 
2966
test "x$ac_build_alias" = x &&
 
2967
  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
 
2968
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 
2969
  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
 
2970
 
 
2971
fi
 
2972
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
 
2973
$as_echo "$ac_cv_build" >&6; }
 
2974
case $ac_cv_build in
 
2975
*-*-*) ;;
 
2976
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
 
2977
esac
 
2978
build=$ac_cv_build
 
2979
ac_save_IFS=$IFS; IFS='-'
 
2980
set x $ac_cv_build
 
2981
shift
 
2982
build_cpu=$1
 
2983
build_vendor=$2
 
2984
shift; shift
 
2985
# Remember, the first character of IFS is used to create $*,
 
2986
# except with old shells:
 
2987
build_os=$*
 
2988
IFS=$ac_save_IFS
 
2989
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 
2990
 
 
2991
 
 
2992
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
 
2993
$as_echo_n "checking host system type... " >&6; }
 
2994
if ${ac_cv_host+:} false; then :
 
2995
  $as_echo_n "(cached) " >&6
 
2996
else
 
2997
  if test "x$host_alias" = x; then
 
2998
  ac_cv_host=$ac_cv_build
 
2999
else
 
3000
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 
3001
    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
 
3002
fi
 
3003
 
 
3004
fi
 
3005
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
 
3006
$as_echo "$ac_cv_host" >&6; }
 
3007
case $ac_cv_host in
 
3008
*-*-*) ;;
 
3009
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
 
3010
esac
 
3011
host=$ac_cv_host
 
3012
ac_save_IFS=$IFS; IFS='-'
 
3013
set x $ac_cv_host
 
3014
shift
 
3015
host_cpu=$1
 
3016
host_vendor=$2
 
3017
shift; shift
 
3018
# Remember, the first character of IFS is used to create $*,
 
3019
# except with old shells:
 
3020
host_os=$*
 
3021
IFS=$ac_save_IFS
 
3022
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
3023
 
 
3024
 
 
3025
# Backslashify metacharacters that are still active within
 
3026
# double-quoted strings.
 
3027
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
 
3028
 
 
3029
# Same as above, but do not quote variable references.
 
3030
double_quote_subst='s/\(["`\\]\)/\\\1/g'
 
3031
 
 
3032
# Sed substitution to delay expansion of an escaped shell variable in a
 
3033
# double_quote_subst'ed string.
 
3034
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
3035
 
 
3036
# Sed substitution to delay expansion of an escaped single quote.
 
3037
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
 
3038
 
 
3039
# Sed substitution to avoid accidental globbing in evaled expressions
 
3040
no_glob_subst='s/\*/\\\*/g'
 
3041
 
 
3042
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
3043
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
 
3044
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
 
3045
 
 
3046
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
 
3047
$as_echo_n "checking how to print strings... " >&6; }
 
3048
# Test print first, because it will be a builtin if present.
 
3049
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
 
3050
   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
 
3051
  ECHO='print -r --'
 
3052
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
 
3053
  ECHO='printf %s\n'
 
3054
else
 
3055
  # Use this function as a fallback that always works.
 
3056
  func_fallback_echo ()
 
3057
  {
 
3058
    eval 'cat <<_LTECHO_EOF
 
3059
$1
 
3060
_LTECHO_EOF'
 
3061
  }
 
3062
  ECHO='func_fallback_echo'
 
3063
fi
 
3064
 
 
3065
# func_echo_all arg...
 
3066
# Invoke $ECHO with all args, space-separated.
 
3067
func_echo_all ()
 
3068
{
 
3069
    $ECHO ""
 
3070
}
 
3071
 
 
3072
case "$ECHO" in
 
3073
  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
 
3074
$as_echo "printf" >&6; } ;;
 
3075
  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
 
3076
$as_echo "print -r" >&6; } ;;
 
3077
  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
 
3078
$as_echo "cat" >&6; } ;;
 
3079
esac
 
3080
 
 
3081
 
 
3082
 
 
3083
 
 
3084
 
 
3085
 
 
3086
 
 
3087
 
 
3088
 
 
3089
 
 
3090
 
 
3091
 
 
3092
 
 
3093
 
 
3094
DEPDIR="${am__leading_dot}deps"
 
3095
 
 
3096
ac_config_commands="$ac_config_commands depfiles"
 
3097
 
 
3098
 
 
3099
am_make=${MAKE-make}
 
3100
cat > confinc << 'END'
 
3101
am__doit:
 
3102
        @echo this is the am__doit target
 
3103
.PHONY: am__doit
 
3104
END
 
3105
# If we don't find an include directive, just comment out the code.
 
3106
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
 
3107
$as_echo_n "checking for style of include used by $am_make... " >&6; }
 
3108
am__include="#"
 
3109
am__quote=
 
3110
_am_result=none
 
3111
# First try GNU make style include.
 
3112
echo "include confinc" > confmf
 
3113
# Ignore all kinds of additional output from 'make'.
 
3114
case `$am_make -s -f confmf 2> /dev/null` in #(
 
3115
*the\ am__doit\ target*)
 
3116
  am__include=include
 
3117
  am__quote=
 
3118
  _am_result=GNU
 
3119
  ;;
 
3120
esac
 
3121
# Now try BSD make style include.
 
3122
if test "$am__include" = "#"; then
 
3123
   echo '.include "confinc"' > confmf
 
3124
   case `$am_make -s -f confmf 2> /dev/null` in #(
 
3125
   *the\ am__doit\ target*)
 
3126
     am__include=.include
 
3127
     am__quote="\""
 
3128
     _am_result=BSD
 
3129
     ;;
 
3130
   esac
 
3131
fi
 
3132
 
 
3133
 
 
3134
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
 
3135
$as_echo "$_am_result" >&6; }
 
3136
rm -f confinc confmf
 
3137
 
 
3138
# Check whether --enable-dependency-tracking was given.
 
3139
if test "${enable_dependency_tracking+set}" = set; then :
 
3140
  enableval=$enable_dependency_tracking;
 
3141
fi
 
3142
 
 
3143
if test "x$enable_dependency_tracking" != xno; then
 
3144
  am_depcomp="$ac_aux_dir/depcomp"
 
3145
  AMDEPBACKSLASH='\'
 
3146
  am__nodep='_no'
 
3147
fi
 
3148
 if test "x$enable_dependency_tracking" != xno; then
 
3149
  AMDEP_TRUE=
 
3150
  AMDEP_FALSE='#'
 
3151
else
 
3152
  AMDEP_TRUE='#'
 
3153
  AMDEP_FALSE=
 
3154
fi
 
3155
 
 
3156
 
 
3157
ac_ext=c
 
3158
ac_cpp='$CPP $CPPFLAGS'
 
3159
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3160
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3161
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3162
if test -n "$ac_tool_prefix"; then
 
3163
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
3164
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
3165
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3166
$as_echo_n "checking for $ac_word... " >&6; }
 
3167
if ${ac_cv_prog_CC+:} false; then :
 
3168
  $as_echo_n "(cached) " >&6
 
3169
else
 
3170
  if test -n "$CC"; then
 
3171
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3172
else
 
3173
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3174
for as_dir in $PATH
 
3175
do
 
3176
  IFS=$as_save_IFS
 
3177
  test -z "$as_dir" && as_dir=.
 
3178
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3179
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3180
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
3181
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3182
    break 2
 
3183
  fi
 
3184
done
 
3185
  done
 
3186
IFS=$as_save_IFS
 
3187
 
 
3188
fi
 
3189
fi
 
3190
CC=$ac_cv_prog_CC
 
3191
if test -n "$CC"; then
 
3192
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3193
$as_echo "$CC" >&6; }
 
3194
else
 
3195
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3196
$as_echo "no" >&6; }
 
3197
fi
 
3198
 
 
3199
 
 
3200
fi
 
3201
if test -z "$ac_cv_prog_CC"; then
 
3202
  ac_ct_CC=$CC
 
3203
  # Extract the first word of "gcc", so it can be a program name with args.
 
3204
set dummy gcc; ac_word=$2
 
3205
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3206
$as_echo_n "checking for $ac_word... " >&6; }
 
3207
if ${ac_cv_prog_ac_ct_CC+:} false; then :
 
3208
  $as_echo_n "(cached) " >&6
 
3209
else
 
3210
  if test -n "$ac_ct_CC"; then
 
3211
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3212
else
 
3213
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3214
for as_dir in $PATH
 
3215
do
 
3216
  IFS=$as_save_IFS
 
3217
  test -z "$as_dir" && as_dir=.
 
3218
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3219
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3220
    ac_cv_prog_ac_ct_CC="gcc"
 
3221
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3222
    break 2
 
3223
  fi
 
3224
done
 
3225
  done
 
3226
IFS=$as_save_IFS
 
3227
 
 
3228
fi
 
3229
fi
 
3230
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3231
if test -n "$ac_ct_CC"; then
 
3232
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
3233
$as_echo "$ac_ct_CC" >&6; }
 
3234
else
 
3235
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3236
$as_echo "no" >&6; }
 
3237
fi
 
3238
 
 
3239
  if test "x$ac_ct_CC" = x; then
 
3240
    CC=""
 
3241
  else
 
3242
    case $cross_compiling:$ac_tool_warned in
 
3243
yes:)
 
3244
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
3245
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3246
ac_tool_warned=yes ;;
 
3247
esac
 
3248
    CC=$ac_ct_CC
 
3249
  fi
 
3250
else
 
3251
  CC="$ac_cv_prog_CC"
 
3252
fi
 
3253
 
 
3254
if test -z "$CC"; then
 
3255
          if test -n "$ac_tool_prefix"; then
 
3256
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
3257
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
3258
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3259
$as_echo_n "checking for $ac_word... " >&6; }
 
3260
if ${ac_cv_prog_CC+:} false; then :
 
3261
  $as_echo_n "(cached) " >&6
 
3262
else
 
3263
  if test -n "$CC"; then
 
3264
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3265
else
 
3266
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3267
for as_dir in $PATH
 
3268
do
 
3269
  IFS=$as_save_IFS
 
3270
  test -z "$as_dir" && as_dir=.
 
3271
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3272
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3273
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
3274
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3275
    break 2
 
3276
  fi
 
3277
done
 
3278
  done
 
3279
IFS=$as_save_IFS
 
3280
 
 
3281
fi
 
3282
fi
 
3283
CC=$ac_cv_prog_CC
 
3284
if test -n "$CC"; then
 
3285
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3286
$as_echo "$CC" >&6; }
 
3287
else
 
3288
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3289
$as_echo "no" >&6; }
 
3290
fi
 
3291
 
 
3292
 
 
3293
  fi
 
3294
fi
 
3295
if test -z "$CC"; then
 
3296
  # Extract the first word of "cc", so it can be a program name with args.
 
3297
set dummy cc; ac_word=$2
 
3298
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3299
$as_echo_n "checking for $ac_word... " >&6; }
 
3300
if ${ac_cv_prog_CC+:} false; then :
 
3301
  $as_echo_n "(cached) " >&6
 
3302
else
 
3303
  if test -n "$CC"; then
 
3304
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3305
else
 
3306
  ac_prog_rejected=no
 
3307
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3308
for as_dir in $PATH
 
3309
do
 
3310
  IFS=$as_save_IFS
 
3311
  test -z "$as_dir" && as_dir=.
 
3312
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3313
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3314
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
3315
       ac_prog_rejected=yes
 
3316
       continue
 
3317
     fi
 
3318
    ac_cv_prog_CC="cc"
 
3319
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3320
    break 2
 
3321
  fi
 
3322
done
 
3323
  done
 
3324
IFS=$as_save_IFS
 
3325
 
 
3326
if test $ac_prog_rejected = yes; then
 
3327
  # We found a bogon in the path, so make sure we never use it.
 
3328
  set dummy $ac_cv_prog_CC
 
3329
  shift
 
3330
  if test $# != 0; then
 
3331
    # We chose a different compiler from the bogus one.
 
3332
    # However, it has the same basename, so the bogon will be chosen
 
3333
    # first if we set CC to just the basename; use the full file name.
 
3334
    shift
 
3335
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
3336
  fi
 
3337
fi
 
3338
fi
 
3339
fi
 
3340
CC=$ac_cv_prog_CC
 
3341
if test -n "$CC"; then
 
3342
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3343
$as_echo "$CC" >&6; }
 
3344
else
 
3345
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3346
$as_echo "no" >&6; }
 
3347
fi
 
3348
 
 
3349
 
 
3350
fi
 
3351
if test -z "$CC"; then
 
3352
  if test -n "$ac_tool_prefix"; then
 
3353
  for ac_prog in cl.exe
 
3354
  do
 
3355
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
3356
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
3357
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3358
$as_echo_n "checking for $ac_word... " >&6; }
 
3359
if ${ac_cv_prog_CC+:} false; then :
 
3360
  $as_echo_n "(cached) " >&6
 
3361
else
 
3362
  if test -n "$CC"; then
 
3363
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3364
else
 
3365
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3366
for as_dir in $PATH
 
3367
do
 
3368
  IFS=$as_save_IFS
 
3369
  test -z "$as_dir" && as_dir=.
 
3370
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3371
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3372
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
3373
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3374
    break 2
 
3375
  fi
 
3376
done
 
3377
  done
 
3378
IFS=$as_save_IFS
 
3379
 
 
3380
fi
 
3381
fi
 
3382
CC=$ac_cv_prog_CC
 
3383
if test -n "$CC"; then
 
3384
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3385
$as_echo "$CC" >&6; }
 
3386
else
 
3387
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3388
$as_echo "no" >&6; }
 
3389
fi
 
3390
 
 
3391
 
 
3392
    test -n "$CC" && break
 
3393
  done
 
3394
fi
 
3395
if test -z "$CC"; then
 
3396
  ac_ct_CC=$CC
 
3397
  for ac_prog in cl.exe
 
3398
do
 
3399
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3400
set dummy $ac_prog; ac_word=$2
 
3401
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3402
$as_echo_n "checking for $ac_word... " >&6; }
 
3403
if ${ac_cv_prog_ac_ct_CC+:} false; then :
 
3404
  $as_echo_n "(cached) " >&6
 
3405
else
 
3406
  if test -n "$ac_ct_CC"; then
 
3407
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3408
else
 
3409
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3410
for as_dir in $PATH
 
3411
do
 
3412
  IFS=$as_save_IFS
 
3413
  test -z "$as_dir" && as_dir=.
 
3414
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3415
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3416
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
3417
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3418
    break 2
 
3419
  fi
 
3420
done
 
3421
  done
 
3422
IFS=$as_save_IFS
 
3423
 
 
3424
fi
 
3425
fi
 
3426
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3427
if test -n "$ac_ct_CC"; then
 
3428
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
3429
$as_echo "$ac_ct_CC" >&6; }
 
3430
else
 
3431
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3432
$as_echo "no" >&6; }
 
3433
fi
 
3434
 
 
3435
 
 
3436
  test -n "$ac_ct_CC" && break
 
3437
done
 
3438
 
 
3439
  if test "x$ac_ct_CC" = x; then
 
3440
    CC=""
 
3441
  else
 
3442
    case $cross_compiling:$ac_tool_warned in
 
3443
yes:)
 
3444
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
3445
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3446
ac_tool_warned=yes ;;
 
3447
esac
 
3448
    CC=$ac_ct_CC
 
3449
  fi
 
3450
fi
 
3451
 
 
3452
fi
 
3453
 
 
3454
 
 
3455
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3456
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3457
as_fn_error $? "no acceptable C compiler found in \$PATH
 
3458
See \`config.log' for more details" "$LINENO" 5; }
 
3459
 
 
3460
# Provide some information about the compiler.
 
3461
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 
3462
set X $ac_compile
 
3463
ac_compiler=$2
 
3464
for ac_option in --version -v -V -qversion; do
 
3465
  { { ac_try="$ac_compiler $ac_option >&5"
 
3466
case "(($ac_try" in
 
3467
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3468
  *) ac_try_echo=$ac_try;;
 
3469
esac
 
3470
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3471
$as_echo "$ac_try_echo"; } >&5
 
3472
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
3473
  ac_status=$?
 
3474
  if test -s conftest.err; then
 
3475
    sed '10a\
 
3476
... rest of stderr output deleted ...
 
3477
         10q' conftest.err >conftest.er1
 
3478
    cat conftest.er1 >&5
 
3479
  fi
 
3480
  rm -f conftest.er1 conftest.err
 
3481
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3482
  test $ac_status = 0; }
 
3483
done
 
3484
 
 
3485
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3486
/* end confdefs.h.  */
 
3487
 
 
3488
int
 
3489
main ()
 
3490
{
 
3491
 
 
3492
  ;
 
3493
  return 0;
 
3494
}
 
3495
_ACEOF
 
3496
ac_clean_files_save=$ac_clean_files
 
3497
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
 
3498
# Try to create an executable without -o first, disregard a.out.
 
3499
# It will help us diagnose broken compilers, and finding out an intuition
 
3500
# of exeext.
 
3501
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
 
3502
$as_echo_n "checking whether the C compiler works... " >&6; }
 
3503
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
3504
 
 
3505
# The possible output files:
 
3506
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
 
3507
 
 
3508
ac_rmfiles=
 
3509
for ac_file in $ac_files
 
3510
do
 
3511
  case $ac_file in
 
3512
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
3513
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
3514
  esac
 
3515
done
 
3516
rm -f $ac_rmfiles
 
3517
 
 
3518
if { { ac_try="$ac_link_default"
 
3519
case "(($ac_try" in
 
3520
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3521
  *) ac_try_echo=$ac_try;;
 
3522
esac
 
3523
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3524
$as_echo "$ac_try_echo"; } >&5
 
3525
  (eval "$ac_link_default") 2>&5
 
3526
  ac_status=$?
 
3527
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3528
  test $ac_status = 0; }; then :
 
3529
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
3530
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
3531
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
3532
# so that the user can short-circuit this test for compilers unknown to
 
3533
# Autoconf.
 
3534
for ac_file in $ac_files ''
 
3535
do
 
3536
  test -f "$ac_file" || continue
 
3537
  case $ac_file in
 
3538
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
 
3539
        ;;
 
3540
    [ab].out )
 
3541
        # We found the default executable, but exeext='' is most
 
3542
        # certainly right.
 
3543
        break;;
 
3544
    *.* )
 
3545
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
3546
        then :; else
 
3547
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3548
        fi
 
3549
        # We set ac_cv_exeext here because the later test for it is not
 
3550
        # safe: cross compilers may not add the suffix if given an `-o'
 
3551
        # argument, so we may need to know it at that point already.
 
3552
        # Even if this section looks crufty: it has the advantage of
 
3553
        # actually working.
 
3554
        break;;
 
3555
    * )
 
3556
        break;;
 
3557
  esac
 
3558
done
 
3559
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
3560
 
 
3561
else
 
3562
  ac_file=''
 
3563
fi
 
3564
if test -z "$ac_file"; then :
 
3565
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3566
$as_echo "no" >&6; }
 
3567
$as_echo "$as_me: failed program was:" >&5
 
3568
sed 's/^/| /' conftest.$ac_ext >&5
 
3569
 
 
3570
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3571
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3572
as_fn_error 77 "C compiler cannot create executables
 
3573
See \`config.log' for more details" "$LINENO" 5; }
 
3574
else
 
3575
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
3576
$as_echo "yes" >&6; }
 
3577
fi
 
3578
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
 
3579
$as_echo_n "checking for C compiler default output file name... " >&6; }
 
3580
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
 
3581
$as_echo "$ac_file" >&6; }
 
3582
ac_exeext=$ac_cv_exeext
 
3583
 
 
3584
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
 
3585
ac_clean_files=$ac_clean_files_save
 
3586
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
 
3587
$as_echo_n "checking for suffix of executables... " >&6; }
 
3588
if { { ac_try="$ac_link"
 
3589
case "(($ac_try" in
 
3590
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3591
  *) ac_try_echo=$ac_try;;
 
3592
esac
 
3593
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3594
$as_echo "$ac_try_echo"; } >&5
 
3595
  (eval "$ac_link") 2>&5
 
3596
  ac_status=$?
 
3597
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3598
  test $ac_status = 0; }; then :
 
3599
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
3600
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
3601
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
3602
# `rm'.
 
3603
for ac_file in conftest.exe conftest conftest.*; do
 
3604
  test -f "$ac_file" || continue
 
3605
  case $ac_file in
 
3606
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
3607
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3608
          break;;
 
3609
    * ) break;;
 
3610
  esac
 
3611
done
 
3612
else
 
3613
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3614
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3615
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
 
3616
See \`config.log' for more details" "$LINENO" 5; }
 
3617
fi
 
3618
rm -f conftest conftest$ac_cv_exeext
 
3619
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
 
3620
$as_echo "$ac_cv_exeext" >&6; }
 
3621
 
 
3622
rm -f conftest.$ac_ext
 
3623
EXEEXT=$ac_cv_exeext
 
3624
ac_exeext=$EXEEXT
 
3625
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3626
/* end confdefs.h.  */
 
3627
#include <stdio.h>
 
3628
int
 
3629
main ()
 
3630
{
 
3631
FILE *f = fopen ("conftest.out", "w");
 
3632
 return ferror (f) || fclose (f) != 0;
 
3633
 
 
3634
  ;
 
3635
  return 0;
 
3636
}
 
3637
_ACEOF
 
3638
ac_clean_files="$ac_clean_files conftest.out"
 
3639
# Check that the compiler produces executables we can run.  If not, either
 
3640
# the compiler is broken, or we cross compile.
 
3641
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
 
3642
$as_echo_n "checking whether we are cross compiling... " >&6; }
 
3643
if test "$cross_compiling" != yes; then
 
3644
  { { ac_try="$ac_link"
 
3645
case "(($ac_try" in
 
3646
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3647
  *) ac_try_echo=$ac_try;;
 
3648
esac
 
3649
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3650
$as_echo "$ac_try_echo"; } >&5
 
3651
  (eval "$ac_link") 2>&5
 
3652
  ac_status=$?
 
3653
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3654
  test $ac_status = 0; }
 
3655
  if { ac_try='./conftest$ac_cv_exeext'
 
3656
  { { case "(($ac_try" in
 
3657
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3658
  *) ac_try_echo=$ac_try;;
 
3659
esac
 
3660
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3661
$as_echo "$ac_try_echo"; } >&5
 
3662
  (eval "$ac_try") 2>&5
 
3663
  ac_status=$?
 
3664
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3665
  test $ac_status = 0; }; }; then
 
3666
    cross_compiling=no
 
3667
  else
 
3668
    if test "$cross_compiling" = maybe; then
 
3669
        cross_compiling=yes
 
3670
    else
 
3671
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3672
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3673
as_fn_error $? "cannot run C compiled programs.
 
3674
If you meant to cross compile, use \`--host'.
 
3675
See \`config.log' for more details" "$LINENO" 5; }
 
3676
    fi
 
3677
  fi
 
3678
fi
 
3679
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
 
3680
$as_echo "$cross_compiling" >&6; }
 
3681
 
 
3682
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
 
3683
ac_clean_files=$ac_clean_files_save
 
3684
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
 
3685
$as_echo_n "checking for suffix of object files... " >&6; }
 
3686
if ${ac_cv_objext+:} false; then :
 
3687
  $as_echo_n "(cached) " >&6
 
3688
else
 
3689
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3690
/* end confdefs.h.  */
 
3691
 
 
3692
int
 
3693
main ()
 
3694
{
 
3695
 
 
3696
  ;
 
3697
  return 0;
 
3698
}
 
3699
_ACEOF
 
3700
rm -f conftest.o conftest.obj
 
3701
if { { ac_try="$ac_compile"
 
3702
case "(($ac_try" in
 
3703
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3704
  *) ac_try_echo=$ac_try;;
 
3705
esac
 
3706
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3707
$as_echo "$ac_try_echo"; } >&5
 
3708
  (eval "$ac_compile") 2>&5
 
3709
  ac_status=$?
 
3710
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3711
  test $ac_status = 0; }; then :
 
3712
  for ac_file in conftest.o conftest.obj conftest.*; do
 
3713
  test -f "$ac_file" || continue;
 
3714
  case $ac_file in
 
3715
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
 
3716
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
3717
       break;;
 
3718
  esac
 
3719
done
 
3720
else
 
3721
  $as_echo "$as_me: failed program was:" >&5
 
3722
sed 's/^/| /' conftest.$ac_ext >&5
 
3723
 
 
3724
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3725
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3726
as_fn_error $? "cannot compute suffix of object files: cannot compile
 
3727
See \`config.log' for more details" "$LINENO" 5; }
 
3728
fi
 
3729
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
3730
fi
 
3731
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
 
3732
$as_echo "$ac_cv_objext" >&6; }
 
3733
OBJEXT=$ac_cv_objext
 
3734
ac_objext=$OBJEXT
 
3735
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
 
3736
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 
3737
if ${ac_cv_c_compiler_gnu+:} false; then :
 
3738
  $as_echo_n "(cached) " >&6
 
3739
else
 
3740
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3741
/* end confdefs.h.  */
 
3742
 
 
3743
int
 
3744
main ()
 
3745
{
 
3746
#ifndef __GNUC__
 
3747
       choke me
 
3748
#endif
 
3749
 
 
3750
  ;
 
3751
  return 0;
 
3752
}
 
3753
_ACEOF
 
3754
if ac_fn_c_try_compile "$LINENO"; then :
 
3755
  ac_compiler_gnu=yes
 
3756
else
 
3757
  ac_compiler_gnu=no
 
3758
fi
 
3759
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3760
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
3761
 
 
3762
fi
 
3763
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
 
3764
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
 
3765
if test $ac_compiler_gnu = yes; then
 
3766
  GCC=yes
 
3767
else
 
3768
  GCC=
 
3769
fi
 
3770
ac_test_CFLAGS=${CFLAGS+set}
 
3771
ac_save_CFLAGS=$CFLAGS
 
3772
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
 
3773
$as_echo_n "checking whether $CC accepts -g... " >&6; }
 
3774
if ${ac_cv_prog_cc_g+:} false; then :
 
3775
  $as_echo_n "(cached) " >&6
 
3776
else
 
3777
  ac_save_c_werror_flag=$ac_c_werror_flag
 
3778
   ac_c_werror_flag=yes
 
3779
   ac_cv_prog_cc_g=no
 
3780
   CFLAGS="-g"
 
3781
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3782
/* end confdefs.h.  */
 
3783
 
 
3784
int
 
3785
main ()
 
3786
{
 
3787
 
 
3788
  ;
 
3789
  return 0;
 
3790
}
 
3791
_ACEOF
 
3792
if ac_fn_c_try_compile "$LINENO"; then :
 
3793
  ac_cv_prog_cc_g=yes
 
3794
else
 
3795
  CFLAGS=""
 
3796
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3797
/* end confdefs.h.  */
 
3798
 
 
3799
int
 
3800
main ()
 
3801
{
 
3802
 
 
3803
  ;
 
3804
  return 0;
 
3805
}
 
3806
_ACEOF
 
3807
if ac_fn_c_try_compile "$LINENO"; then :
 
3808
 
 
3809
else
 
3810
  ac_c_werror_flag=$ac_save_c_werror_flag
 
3811
         CFLAGS="-g"
 
3812
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3813
/* end confdefs.h.  */
 
3814
 
 
3815
int
 
3816
main ()
 
3817
{
 
3818
 
 
3819
  ;
 
3820
  return 0;
 
3821
}
 
3822
_ACEOF
 
3823
if ac_fn_c_try_compile "$LINENO"; then :
 
3824
  ac_cv_prog_cc_g=yes
 
3825
fi
 
3826
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3827
fi
 
3828
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3829
fi
 
3830
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3831
   ac_c_werror_flag=$ac_save_c_werror_flag
 
3832
fi
 
3833
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
 
3834
$as_echo "$ac_cv_prog_cc_g" >&6; }
 
3835
if test "$ac_test_CFLAGS" = set; then
 
3836
  CFLAGS=$ac_save_CFLAGS
 
3837
elif test $ac_cv_prog_cc_g = yes; then
 
3838
  if test "$GCC" = yes; then
 
3839
    CFLAGS="-g -O2"
 
3840
  else
 
3841
    CFLAGS="-g"
 
3842
  fi
 
3843
else
 
3844
  if test "$GCC" = yes; then
 
3845
    CFLAGS="-O2"
 
3846
  else
 
3847
    CFLAGS=
 
3848
  fi
 
3849
fi
 
3850
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
 
3851
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 
3852
if ${ac_cv_prog_cc_c89+:} false; then :
 
3853
  $as_echo_n "(cached) " >&6
 
3854
else
 
3855
  ac_cv_prog_cc_c89=no
 
3856
ac_save_CC=$CC
 
3857
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3858
/* end confdefs.h.  */
 
3859
#include <stdarg.h>
 
3860
#include <stdio.h>
 
3861
struct stat;
 
3862
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
3863
struct buf { int x; };
 
3864
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
3865
static char *e (p, i)
 
3866
     char **p;
 
3867
     int i;
 
3868
{
 
3869
  return p[i];
 
3870
}
 
3871
static char *f (char * (*g) (char **, int), char **p, ...)
 
3872
{
 
3873
  char *s;
 
3874
  va_list v;
 
3875
  va_start (v,p);
 
3876
  s = g (p, va_arg (v,int));
 
3877
  va_end (v);
 
3878
  return s;
 
3879
}
 
3880
 
 
3881
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
3882
   function prototypes and stuff, but not '\xHH' hex character constants.
 
3883
   These don't provoke an error unfortunately, instead are silently treated
 
3884
   as 'x'.  The following induces an error, until -std is added to get
 
3885
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
3886
   array size at least.  It's necessary to write '\x00'==0 to get something
 
3887
   that's true only with -std.  */
 
3888
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
3889
 
 
3890
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
3891
   inside strings and character constants.  */
 
3892
#define FOO(x) 'x'
 
3893
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
3894
 
 
3895
int test (int i, double x);
 
3896
struct s1 {int (*f) (int a);};
 
3897
struct s2 {int (*f) (double a);};
 
3898
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
3899
int argc;
 
3900
char **argv;
 
3901
int
 
3902
main ()
 
3903
{
 
3904
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
3905
  ;
 
3906
  return 0;
 
3907
}
 
3908
_ACEOF
 
3909
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
3910
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
3911
do
 
3912
  CC="$ac_save_CC $ac_arg"
 
3913
  if ac_fn_c_try_compile "$LINENO"; then :
 
3914
  ac_cv_prog_cc_c89=$ac_arg
 
3915
fi
 
3916
rm -f core conftest.err conftest.$ac_objext
 
3917
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
3918
done
 
3919
rm -f conftest.$ac_ext
 
3920
CC=$ac_save_CC
 
3921
 
 
3922
fi
 
3923
# AC_CACHE_VAL
 
3924
case "x$ac_cv_prog_cc_c89" in
 
3925
  x)
 
3926
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 
3927
$as_echo "none needed" >&6; } ;;
 
3928
  xno)
 
3929
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 
3930
$as_echo "unsupported" >&6; } ;;
 
3931
  *)
 
3932
    CC="$CC $ac_cv_prog_cc_c89"
 
3933
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 
3934
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 
3935
esac
 
3936
if test "x$ac_cv_prog_cc_c89" != xno; then :
 
3937
 
 
3938
fi
 
3939
 
 
3940
ac_ext=c
 
3941
ac_cpp='$CPP $CPPFLAGS'
 
3942
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3943
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3944
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3945
 
 
3946
depcc="$CC"   am_compiler_list=
 
3947
 
 
3948
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
3949
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
3950
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
 
3951
  $as_echo_n "(cached) " >&6
 
3952
else
 
3953
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
3954
  # We make a subdir and do the tests there.  Otherwise we can end up
 
3955
  # making bogus files that we don't know about and never remove.  For
 
3956
  # instance it was reported that on HP-UX the gcc test will end up
 
3957
  # making a dummy file named 'D' -- because '-MD' means "put the output
 
3958
  # in D".
 
3959
  rm -rf conftest.dir
 
3960
  mkdir conftest.dir
 
3961
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
3962
  # using a relative directory.
 
3963
  cp "$am_depcomp" conftest.dir
 
3964
  cd conftest.dir
 
3965
  # We will build objects and dependencies in a subdirectory because
 
3966
  # it helps to detect inapplicable dependency modes.  For instance
 
3967
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
3968
  # side effect of compilation, but ICC will put the dependencies in
 
3969
  # the current directory while Tru64 will put them in the object
 
3970
  # directory.
 
3971
  mkdir sub
 
3972
 
 
3973
  am_cv_CC_dependencies_compiler_type=none
 
3974
  if test "$am_compiler_list" = ""; then
 
3975
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
3976
  fi
 
3977
  am__universal=false
 
3978
  case " $depcc " in #(
 
3979
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
3980
     esac
 
3981
 
 
3982
  for depmode in $am_compiler_list; do
 
3983
    # Setup a source with many dependencies, because some compilers
 
3984
    # like to wrap large dependency lists on column 80 (with \), and
 
3985
    # we should not choose a depcomp mode which is confused by this.
 
3986
    #
 
3987
    # We need to recreate these files for each test, as the compiler may
 
3988
    # overwrite some of them when testing with obscure command lines.
 
3989
    # This happens at least with the AIX C compiler.
 
3990
    : > sub/conftest.c
 
3991
    for i in 1 2 3 4 5 6; do
 
3992
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
3993
      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
 
3994
      # Solaris 10 /bin/sh.
 
3995
      echo '/* dummy */' > sub/conftst$i.h
 
3996
    done
 
3997
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
3998
 
 
3999
    # We check with '-c' and '-o' for the sake of the "dashmstdout"
 
4000
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
4001
    # handle '-M -o', and we need to detect this.  Also, some Intel
 
4002
    # versions had trouble with output in subdirs.
 
4003
    am__obj=sub/conftest.${OBJEXT-o}
 
4004
    am__minus_obj="-o $am__obj"
 
4005
    case $depmode in
 
4006
    gcc)
 
4007
      # This depmode causes a compiler race in universal mode.
 
4008
      test "$am__universal" = false || continue
 
4009
      ;;
 
4010
    nosideeffect)
 
4011
      # After this tag, mechanisms are not by side-effect, so they'll
 
4012
      # only be used when explicitly requested.
 
4013
      if test "x$enable_dependency_tracking" = xyes; then
 
4014
        continue
 
4015
      else
 
4016
        break
 
4017
      fi
 
4018
      ;;
 
4019
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
 
4020
      # This compiler won't grok '-c -o', but also, the minuso test has
 
4021
      # not run yet.  These depmodes are late enough in the game, and
 
4022
      # so weak that their functioning should not be impacted.
 
4023
      am__obj=conftest.${OBJEXT-o}
 
4024
      am__minus_obj=
 
4025
      ;;
 
4026
    none) break ;;
 
4027
    esac
 
4028
    if depmode=$depmode \
 
4029
       source=sub/conftest.c object=$am__obj \
 
4030
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
4031
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
4032
         >/dev/null 2>conftest.err &&
 
4033
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
4034
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
4035
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
4036
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
4037
      # icc doesn't choke on unknown options, it will just issue warnings
 
4038
      # or remarks (even with -Werror).  So we grep stderr for any message
 
4039
      # that says an option was ignored or not supported.
 
4040
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
4041
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
4042
      # The diagnosis changed in icc 8.0:
 
4043
      #   icc: Command line remark: option '-MP' not supported
 
4044
      if (grep 'ignoring option' conftest.err ||
 
4045
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
4046
        am_cv_CC_dependencies_compiler_type=$depmode
 
4047
        break
 
4048
      fi
 
4049
    fi
 
4050
  done
 
4051
 
 
4052
  cd ..
 
4053
  rm -rf conftest.dir
 
4054
else
 
4055
  am_cv_CC_dependencies_compiler_type=none
 
4056
fi
 
4057
 
 
4058
fi
 
4059
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
 
4060
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
 
4061
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
4062
 
 
4063
 if
 
4064
  test "x$enable_dependency_tracking" != xno \
 
4065
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
4066
  am__fastdepCC_TRUE=
 
4067
  am__fastdepCC_FALSE='#'
 
4068
else
 
4069
  am__fastdepCC_TRUE='#'
 
4070
  am__fastdepCC_FALSE=
 
4071
fi
 
4072
 
 
4073
 
 
4074
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
 
4075
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
 
4076
if ${ac_cv_path_SED+:} false; then :
 
4077
  $as_echo_n "(cached) " >&6
 
4078
else
 
4079
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
 
4080
     for ac_i in 1 2 3 4 5 6 7; do
 
4081
       ac_script="$ac_script$as_nl$ac_script"
 
4082
     done
 
4083
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
 
4084
     { ac_script=; unset ac_script;}
 
4085
     if test -z "$SED"; then
 
4086
  ac_path_SED_found=false
 
4087
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4088
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4089
for as_dir in $PATH
 
4090
do
 
4091
  IFS=$as_save_IFS
 
4092
  test -z "$as_dir" && as_dir=.
 
4093
    for ac_prog in sed gsed; do
 
4094
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4095
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
 
4096
      as_fn_executable_p "$ac_path_SED" || continue
 
4097
# Check for GNU ac_path_SED and select it if it is found.
 
4098
  # Check for GNU $ac_path_SED
 
4099
case `"$ac_path_SED" --version 2>&1` in
 
4100
*GNU*)
 
4101
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
 
4102
*)
 
4103
  ac_count=0
 
4104
  $as_echo_n 0123456789 >"conftest.in"
 
4105
  while :
 
4106
  do
 
4107
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4108
    mv "conftest.tmp" "conftest.in"
 
4109
    cp "conftest.in" "conftest.nl"
 
4110
    $as_echo '' >> "conftest.nl"
 
4111
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4112
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4113
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4114
    if test $ac_count -gt ${ac_path_SED_max-0}; then
 
4115
      # Best one so far, save it but keep looking for a better one
 
4116
      ac_cv_path_SED="$ac_path_SED"
 
4117
      ac_path_SED_max=$ac_count
 
4118
    fi
 
4119
    # 10*(2^10) chars as input seems more than enough
 
4120
    test $ac_count -gt 10 && break
 
4121
  done
 
4122
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4123
esac
 
4124
 
 
4125
      $ac_path_SED_found && break 3
 
4126
    done
 
4127
  done
 
4128
  done
 
4129
IFS=$as_save_IFS
 
4130
  if test -z "$ac_cv_path_SED"; then
 
4131
    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
 
4132
  fi
 
4133
else
 
4134
  ac_cv_path_SED=$SED
 
4135
fi
 
4136
 
 
4137
fi
 
4138
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
 
4139
$as_echo "$ac_cv_path_SED" >&6; }
 
4140
 SED="$ac_cv_path_SED"
 
4141
  rm -f conftest.sed
 
4142
 
 
4143
test -z "$SED" && SED=sed
 
4144
Xsed="$SED -e 1s/^X//"
 
4145
 
 
4146
 
 
4147
 
 
4148
 
 
4149
 
 
4150
 
 
4151
 
 
4152
 
 
4153
 
 
4154
 
 
4155
 
 
4156
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
 
4157
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
 
4158
if ${ac_cv_path_GREP+:} false; then :
 
4159
  $as_echo_n "(cached) " >&6
 
4160
else
 
4161
  if test -z "$GREP"; then
 
4162
  ac_path_GREP_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 grep ggrep; do
 
4170
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4171
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
4172
      as_fn_executable_p "$ac_path_GREP" || continue
 
4173
# Check for GNU ac_path_GREP and select it if it is found.
 
4174
  # Check for GNU $ac_path_GREP
 
4175
case `"$ac_path_GREP" --version 2>&1` in
 
4176
*GNU*)
 
4177
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_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 'GREP' >> "conftest.nl"
 
4187
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "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_GREP_max-0}; then
 
4191
      # Best one so far, save it but keep looking for a better one
 
4192
      ac_cv_path_GREP="$ac_path_GREP"
 
4193
      ac_path_GREP_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_GREP_found && break 3
 
4202
    done
 
4203
  done
 
4204
  done
 
4205
IFS=$as_save_IFS
 
4206
  if test -z "$ac_cv_path_GREP"; then
 
4207
    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
4208
  fi
 
4209
else
 
4210
  ac_cv_path_GREP=$GREP
 
4211
fi
 
4212
 
 
4213
fi
 
4214
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
 
4215
$as_echo "$ac_cv_path_GREP" >&6; }
 
4216
 GREP="$ac_cv_path_GREP"
 
4217
 
 
4218
 
 
4219
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
 
4220
$as_echo_n "checking for egrep... " >&6; }
 
4221
if ${ac_cv_path_EGREP+:} false; then :
 
4222
  $as_echo_n "(cached) " >&6
 
4223
else
 
4224
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
4225
   then ac_cv_path_EGREP="$GREP -E"
 
4226
   else
 
4227
     if test -z "$EGREP"; then
 
4228
  ac_path_EGREP_found=false
 
4229
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4230
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4231
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4232
do
 
4233
  IFS=$as_save_IFS
 
4234
  test -z "$as_dir" && as_dir=.
 
4235
    for ac_prog in egrep; do
 
4236
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4237
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
4238
      as_fn_executable_p "$ac_path_EGREP" || continue
 
4239
# Check for GNU ac_path_EGREP and select it if it is found.
 
4240
  # Check for GNU $ac_path_EGREP
 
4241
case `"$ac_path_EGREP" --version 2>&1` in
 
4242
*GNU*)
 
4243
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
4244
*)
 
4245
  ac_count=0
 
4246
  $as_echo_n 0123456789 >"conftest.in"
 
4247
  while :
 
4248
  do
 
4249
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4250
    mv "conftest.tmp" "conftest.in"
 
4251
    cp "conftest.in" "conftest.nl"
 
4252
    $as_echo 'EGREP' >> "conftest.nl"
 
4253
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4254
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4255
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4256
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
4257
      # Best one so far, save it but keep looking for a better one
 
4258
      ac_cv_path_EGREP="$ac_path_EGREP"
 
4259
      ac_path_EGREP_max=$ac_count
 
4260
    fi
 
4261
    # 10*(2^10) chars as input seems more than enough
 
4262
    test $ac_count -gt 10 && break
 
4263
  done
 
4264
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4265
esac
 
4266
 
 
4267
      $ac_path_EGREP_found && break 3
 
4268
    done
 
4269
  done
 
4270
  done
 
4271
IFS=$as_save_IFS
 
4272
  if test -z "$ac_cv_path_EGREP"; then
 
4273
    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
4274
  fi
 
4275
else
 
4276
  ac_cv_path_EGREP=$EGREP
 
4277
fi
 
4278
 
 
4279
   fi
 
4280
fi
 
4281
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
 
4282
$as_echo "$ac_cv_path_EGREP" >&6; }
 
4283
 EGREP="$ac_cv_path_EGREP"
 
4284
 
 
4285
 
 
4286
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
 
4287
$as_echo_n "checking for fgrep... " >&6; }
 
4288
if ${ac_cv_path_FGREP+:} false; then :
 
4289
  $as_echo_n "(cached) " >&6
 
4290
else
 
4291
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
 
4292
   then ac_cv_path_FGREP="$GREP -F"
 
4293
   else
 
4294
     if test -z "$FGREP"; then
 
4295
  ac_path_FGREP_found=false
 
4296
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4297
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4298
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4299
do
 
4300
  IFS=$as_save_IFS
 
4301
  test -z "$as_dir" && as_dir=.
 
4302
    for ac_prog in fgrep; do
 
4303
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4304
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
 
4305
      as_fn_executable_p "$ac_path_FGREP" || continue
 
4306
# Check for GNU ac_path_FGREP and select it if it is found.
 
4307
  # Check for GNU $ac_path_FGREP
 
4308
case `"$ac_path_FGREP" --version 2>&1` in
 
4309
*GNU*)
 
4310
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
 
4311
*)
 
4312
  ac_count=0
 
4313
  $as_echo_n 0123456789 >"conftest.in"
 
4314
  while :
 
4315
  do
 
4316
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4317
    mv "conftest.tmp" "conftest.in"
 
4318
    cp "conftest.in" "conftest.nl"
 
4319
    $as_echo 'FGREP' >> "conftest.nl"
 
4320
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4321
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4322
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4323
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
 
4324
      # Best one so far, save it but keep looking for a better one
 
4325
      ac_cv_path_FGREP="$ac_path_FGREP"
 
4326
      ac_path_FGREP_max=$ac_count
 
4327
    fi
 
4328
    # 10*(2^10) chars as input seems more than enough
 
4329
    test $ac_count -gt 10 && break
 
4330
  done
 
4331
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4332
esac
 
4333
 
 
4334
      $ac_path_FGREP_found && break 3
 
4335
    done
 
4336
  done
 
4337
  done
 
4338
IFS=$as_save_IFS
 
4339
  if test -z "$ac_cv_path_FGREP"; then
 
4340
    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
4341
  fi
 
4342
else
 
4343
  ac_cv_path_FGREP=$FGREP
 
4344
fi
 
4345
 
 
4346
   fi
 
4347
fi
 
4348
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
 
4349
$as_echo "$ac_cv_path_FGREP" >&6; }
 
4350
 FGREP="$ac_cv_path_FGREP"
 
4351
 
 
4352
 
 
4353
test -z "$GREP" && GREP=grep
 
4354
 
 
4355
 
 
4356
 
 
4357
 
 
4358
 
 
4359
 
 
4360
 
 
4361
 
 
4362
 
 
4363
 
 
4364
 
 
4365
 
 
4366
 
 
4367
 
 
4368
 
 
4369
 
 
4370
 
 
4371
 
 
4372
 
 
4373
# Check whether --with-gnu-ld was given.
 
4374
if test "${with_gnu_ld+set}" = set; then :
 
4375
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
4376
else
 
4377
  with_gnu_ld=no
 
4378
fi
 
4379
 
 
4380
ac_prog=ld
 
4381
if test "$GCC" = yes; then
 
4382
  # Check if gcc -print-prog-name=ld gives a path.
 
4383
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
 
4384
$as_echo_n "checking for ld used by $CC... " >&6; }
 
4385
  case $host in
 
4386
  *-*-mingw*)
 
4387
    # gcc leaves a trailing carriage return which upsets mingw
 
4388
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
4389
  *)
 
4390
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
4391
  esac
 
4392
  case $ac_prog in
 
4393
    # Accept absolute paths.
 
4394
    [\\/]* | ?:[\\/]*)
 
4395
      re_direlt='/[^/][^/]*/\.\./'
 
4396
      # Canonicalize the pathname of ld
 
4397
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 
4398
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 
4399
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
 
4400
      done
 
4401
      test -z "$LD" && LD="$ac_prog"
 
4402
      ;;
 
4403
  "")
 
4404
    # If it fails, then pretend we aren't using GCC.
 
4405
    ac_prog=ld
 
4406
    ;;
 
4407
  *)
 
4408
    # If it is relative, then search for the first ld in PATH.
 
4409
    with_gnu_ld=unknown
 
4410
    ;;
 
4411
  esac
 
4412
elif test "$with_gnu_ld" = yes; then
 
4413
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
 
4414
$as_echo_n "checking for GNU ld... " >&6; }
 
4415
else
 
4416
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
 
4417
$as_echo_n "checking for non-GNU ld... " >&6; }
 
4418
fi
 
4419
if ${lt_cv_path_LD+:} false; then :
 
4420
  $as_echo_n "(cached) " >&6
 
4421
else
 
4422
  if test -z "$LD"; then
 
4423
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4424
  for ac_dir in $PATH; do
 
4425
    IFS="$lt_save_ifs"
 
4426
    test -z "$ac_dir" && ac_dir=.
 
4427
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
4428
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
4429
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
4430
      # but apparently some variants of GNU ld only accept -v.
 
4431
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
4432
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
4433
      *GNU* | *'with BFD'*)
 
4434
        test "$with_gnu_ld" != no && break
 
4435
        ;;
 
4436
      *)
 
4437
        test "$with_gnu_ld" != yes && break
 
4438
        ;;
 
4439
      esac
 
4440
    fi
 
4441
  done
 
4442
  IFS="$lt_save_ifs"
 
4443
else
 
4444
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
4445
fi
 
4446
fi
 
4447
 
 
4448
LD="$lt_cv_path_LD"
 
4449
if test -n "$LD"; then
 
4450
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
 
4451
$as_echo "$LD" >&6; }
 
4452
else
 
4453
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4454
$as_echo "no" >&6; }
 
4455
fi
 
4456
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
 
4457
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
 
4458
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 
4459
if ${lt_cv_prog_gnu_ld+:} false; then :
 
4460
  $as_echo_n "(cached) " >&6
 
4461
else
 
4462
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
4463
case `$LD -v 2>&1 </dev/null` in
 
4464
*GNU* | *'with BFD'*)
 
4465
  lt_cv_prog_gnu_ld=yes
 
4466
  ;;
 
4467
*)
 
4468
  lt_cv_prog_gnu_ld=no
 
4469
  ;;
 
4470
esac
 
4471
fi
 
4472
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
 
4473
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
 
4474
with_gnu_ld=$lt_cv_prog_gnu_ld
 
4475
 
 
4476
 
 
4477
 
 
4478
 
 
4479
 
 
4480
 
 
4481
 
 
4482
 
 
4483
 
 
4484
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
 
4485
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
 
4486
if ${lt_cv_path_NM+:} false; then :
 
4487
  $as_echo_n "(cached) " >&6
 
4488
else
 
4489
  if test -n "$NM"; then
 
4490
  # Let the user override the test.
 
4491
  lt_cv_path_NM="$NM"
 
4492
else
 
4493
  lt_nm_to_check="${ac_tool_prefix}nm"
 
4494
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
4495
    lt_nm_to_check="$lt_nm_to_check nm"
 
4496
  fi
 
4497
  for lt_tmp_nm in $lt_nm_to_check; do
 
4498
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4499
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
4500
      IFS="$lt_save_ifs"
 
4501
      test -z "$ac_dir" && ac_dir=.
 
4502
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
4503
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
4504
        # Check to see if the nm accepts a BSD-compat flag.
 
4505
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
4506
        #   nm: unknown option "B" ignored
 
4507
        # Tru64's nm complains that /dev/null is an invalid object file
 
4508
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
4509
        */dev/null* | *'Invalid file or object type'*)
 
4510
          lt_cv_path_NM="$tmp_nm -B"
 
4511
          break
 
4512
          ;;
 
4513
        *)
 
4514
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
4515
          */dev/null*)
 
4516
            lt_cv_path_NM="$tmp_nm -p"
 
4517
            break
 
4518
            ;;
 
4519
          *)
 
4520
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
4521
            continue # so that we can try to find one that supports BSD flags
 
4522
            ;;
 
4523
          esac
 
4524
          ;;
 
4525
        esac
 
4526
      fi
 
4527
    done
 
4528
    IFS="$lt_save_ifs"
 
4529
  done
 
4530
  : ${lt_cv_path_NM=no}
 
4531
fi
 
4532
fi
 
4533
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
 
4534
$as_echo "$lt_cv_path_NM" >&6; }
 
4535
if test "$lt_cv_path_NM" != "no"; then
 
4536
  NM="$lt_cv_path_NM"
 
4537
else
 
4538
  # Didn't find any BSD compatible name lister, look for dumpbin.
 
4539
  if test -n "$DUMPBIN"; then :
 
4540
    # Let the user override the test.
 
4541
  else
 
4542
    if test -n "$ac_tool_prefix"; then
 
4543
  for ac_prog in dumpbin "link -dump"
 
4544
  do
 
4545
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
4546
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
4547
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4548
$as_echo_n "checking for $ac_word... " >&6; }
 
4549
if ${ac_cv_prog_DUMPBIN+:} false; then :
 
4550
  $as_echo_n "(cached) " >&6
 
4551
else
 
4552
  if test -n "$DUMPBIN"; then
 
4553
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
 
4554
else
 
4555
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4556
for as_dir in $PATH
 
4557
do
 
4558
  IFS=$as_save_IFS
 
4559
  test -z "$as_dir" && as_dir=.
 
4560
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4561
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4562
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
 
4563
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4564
    break 2
 
4565
  fi
 
4566
done
 
4567
  done
 
4568
IFS=$as_save_IFS
 
4569
 
 
4570
fi
 
4571
fi
 
4572
DUMPBIN=$ac_cv_prog_DUMPBIN
 
4573
if test -n "$DUMPBIN"; then
 
4574
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
 
4575
$as_echo "$DUMPBIN" >&6; }
 
4576
else
 
4577
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4578
$as_echo "no" >&6; }
 
4579
fi
 
4580
 
 
4581
 
 
4582
    test -n "$DUMPBIN" && break
 
4583
  done
 
4584
fi
 
4585
if test -z "$DUMPBIN"; then
 
4586
  ac_ct_DUMPBIN=$DUMPBIN
 
4587
  for ac_prog in dumpbin "link -dump"
 
4588
do
 
4589
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4590
set dummy $ac_prog; ac_word=$2
 
4591
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4592
$as_echo_n "checking for $ac_word... " >&6; }
 
4593
if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
 
4594
  $as_echo_n "(cached) " >&6
 
4595
else
 
4596
  if test -n "$ac_ct_DUMPBIN"; then
 
4597
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
 
4598
else
 
4599
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4600
for as_dir in $PATH
 
4601
do
 
4602
  IFS=$as_save_IFS
 
4603
  test -z "$as_dir" && as_dir=.
 
4604
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4605
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4606
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
 
4607
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4608
    break 2
 
4609
  fi
 
4610
done
 
4611
  done
 
4612
IFS=$as_save_IFS
 
4613
 
 
4614
fi
 
4615
fi
 
4616
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
 
4617
if test -n "$ac_ct_DUMPBIN"; then
 
4618
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
 
4619
$as_echo "$ac_ct_DUMPBIN" >&6; }
 
4620
else
 
4621
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4622
$as_echo "no" >&6; }
 
4623
fi
 
4624
 
 
4625
 
 
4626
  test -n "$ac_ct_DUMPBIN" && break
 
4627
done
 
4628
 
 
4629
  if test "x$ac_ct_DUMPBIN" = x; then
 
4630
    DUMPBIN=":"
 
4631
  else
 
4632
    case $cross_compiling:$ac_tool_warned in
 
4633
yes:)
 
4634
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
4635
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
4636
ac_tool_warned=yes ;;
 
4637
esac
 
4638
    DUMPBIN=$ac_ct_DUMPBIN
 
4639
  fi
 
4640
fi
 
4641
 
 
4642
    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
 
4643
    *COFF*)
 
4644
      DUMPBIN="$DUMPBIN -symbols"
 
4645
      ;;
 
4646
    *)
 
4647
      DUMPBIN=:
 
4648
      ;;
 
4649
    esac
 
4650
  fi
 
4651
 
 
4652
  if test "$DUMPBIN" != ":"; then
 
4653
    NM="$DUMPBIN"
 
4654
  fi
 
4655
fi
 
4656
test -z "$NM" && NM=nm
 
4657
 
 
4658
 
 
4659
 
 
4660
 
 
4661
 
 
4662
 
 
4663
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
 
4664
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
 
4665
if ${lt_cv_nm_interface+:} false; then :
 
4666
  $as_echo_n "(cached) " >&6
 
4667
else
 
4668
  lt_cv_nm_interface="BSD nm"
 
4669
  echo "int some_variable = 0;" > conftest.$ac_ext
 
4670
  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
 
4671
  (eval "$ac_compile" 2>conftest.err)
 
4672
  cat conftest.err >&5
 
4673
  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
 
4674
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
 
4675
  cat conftest.err >&5
 
4676
  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
 
4677
  cat conftest.out >&5
 
4678
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
 
4679
    lt_cv_nm_interface="MS dumpbin"
 
4680
  fi
 
4681
  rm -f conftest*
 
4682
fi
 
4683
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
 
4684
$as_echo "$lt_cv_nm_interface" >&6; }
 
4685
 
 
4686
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
 
4687
$as_echo_n "checking whether ln -s works... " >&6; }
 
4688
LN_S=$as_ln_s
 
4689
if test "$LN_S" = "ln -s"; then
 
4690
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
4691
$as_echo "yes" >&6; }
 
4692
else
 
4693
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
 
4694
$as_echo "no, using $LN_S" >&6; }
 
4695
fi
 
4696
 
 
4697
# find the maximum length of command line arguments
 
4698
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
 
4699
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
 
4700
if ${lt_cv_sys_max_cmd_len+:} false; then :
 
4701
  $as_echo_n "(cached) " >&6
 
4702
else
 
4703
    i=0
 
4704
  teststring="ABCD"
 
4705
 
 
4706
  case $build_os in
 
4707
  msdosdjgpp*)
 
4708
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
4709
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
4710
    # during glob expansion).  Even if it were fixed, the result of this
 
4711
    # check would be larger than it should be.
 
4712
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
4713
    ;;
 
4714
 
 
4715
  gnu*)
 
4716
    # Under GNU Hurd, this test is not required because there is
 
4717
    # no limit to the length of command line arguments.
 
4718
    # Libtool will interpret -1 as no limit whatsoever
 
4719
    lt_cv_sys_max_cmd_len=-1;
 
4720
    ;;
 
4721
 
 
4722
  cygwin* | mingw* | cegcc*)
 
4723
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
4724
    # about 5 minutes as the teststring grows exponentially.
 
4725
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
4726
    # you end up with a "frozen" computer, even though with patience
 
4727
    # the test eventually succeeds (with a max line length of 256k).
 
4728
    # Instead, let's just punt: use the minimum linelength reported by
 
4729
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
4730
    lt_cv_sys_max_cmd_len=8192;
 
4731
    ;;
 
4732
 
 
4733
  mint*)
 
4734
    # On MiNT this can take a long time and run out of memory.
 
4735
    lt_cv_sys_max_cmd_len=8192;
 
4736
    ;;
 
4737
 
 
4738
  amigaos*)
 
4739
    # On AmigaOS with pdksh, this test takes hours, literally.
 
4740
    # So we just punt and use a minimum line length of 8192.
 
4741
    lt_cv_sys_max_cmd_len=8192;
 
4742
    ;;
 
4743
 
 
4744
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
4745
    # This has been around since 386BSD, at least.  Likely further.
 
4746
    if test -x /sbin/sysctl; then
 
4747
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
4748
    elif test -x /usr/sbin/sysctl; then
 
4749
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
4750
    else
 
4751
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
4752
    fi
 
4753
    # And add a safety zone
 
4754
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
4755
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
4756
    ;;
 
4757
 
 
4758
  interix*)
 
4759
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
4760
    lt_cv_sys_max_cmd_len=196608
 
4761
    ;;
 
4762
 
 
4763
  os2*)
 
4764
    # The test takes a long time on OS/2.
 
4765
    lt_cv_sys_max_cmd_len=8192
 
4766
    ;;
 
4767
 
 
4768
  osf*)
 
4769
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
4770
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
4771
    # nice to cause kernel panics so lets avoid the loop below.
 
4772
    # First set a reasonable default.
 
4773
    lt_cv_sys_max_cmd_len=16384
 
4774
    #
 
4775
    if test -x /sbin/sysconfig; then
 
4776
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
4777
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
4778
      esac
 
4779
    fi
 
4780
    ;;
 
4781
  sco3.2v5*)
 
4782
    lt_cv_sys_max_cmd_len=102400
 
4783
    ;;
 
4784
  sysv5* | sco5v6* | sysv4.2uw2*)
 
4785
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
4786
    if test -n "$kargmax"; then
 
4787
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
 
4788
    else
 
4789
      lt_cv_sys_max_cmd_len=32768
 
4790
    fi
 
4791
    ;;
 
4792
  *)
 
4793
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
4794
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
4795
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
4796
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
4797
    else
 
4798
      # Make teststring a little bigger before we do anything with it.
 
4799
      # a 1K string should be a reasonable start.
 
4800
      for i in 1 2 3 4 5 6 7 8 ; do
 
4801
        teststring=$teststring$teststring
 
4802
      done
 
4803
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
4804
      # If test is not a shell built-in, we'll probably end up computing a
 
4805
      # maximum length that is only half of the actual maximum length, but
 
4806
      # we can't tell.
 
4807
      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
 
4808
                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
 
4809
              test $i != 17 # 1/2 MB should be enough
 
4810
      do
 
4811
        i=`expr $i + 1`
 
4812
        teststring=$teststring$teststring
 
4813
      done
 
4814
      # Only check the string length outside the loop.
 
4815
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
 
4816
      teststring=
 
4817
      # Add a significant safety factor because C++ compilers can tack on
 
4818
      # massive amounts of additional arguments before passing them to the
 
4819
      # linker.  It appears as though 1/2 is a usable value.
 
4820
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
4821
    fi
 
4822
    ;;
 
4823
  esac
 
4824
 
 
4825
fi
 
4826
 
 
4827
if test -n $lt_cv_sys_max_cmd_len ; then
 
4828
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
 
4829
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
 
4830
else
 
4831
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
 
4832
$as_echo "none" >&6; }
 
4833
fi
 
4834
max_cmd_len=$lt_cv_sys_max_cmd_len
 
4835
 
 
4836
 
 
4837
 
 
4838
 
 
4839
 
 
4840
 
 
4841
: ${CP="cp -f"}
 
4842
: ${MV="mv -f"}
 
4843
: ${RM="rm -f"}
 
4844
 
 
4845
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
 
4846
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
 
4847
# Try some XSI features
 
4848
xsi_shell=no
 
4849
( _lt_dummy="a/b/c"
 
4850
  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
 
4851
      = c,a/b,b/c, \
 
4852
    && eval 'test $(( 1 + 1 )) -eq 2 \
 
4853
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
 
4854
  && xsi_shell=yes
 
4855
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
 
4856
$as_echo "$xsi_shell" >&6; }
 
4857
 
 
4858
 
 
4859
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
 
4860
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
 
4861
lt_shell_append=no
 
4862
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
 
4863
    >/dev/null 2>&1 \
 
4864
  && lt_shell_append=yes
 
4865
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
 
4866
$as_echo "$lt_shell_append" >&6; }
 
4867
 
 
4868
 
 
4869
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
4870
  lt_unset=unset
 
4871
else
 
4872
  lt_unset=false
 
4873
fi
 
4874
 
 
4875
 
 
4876
 
 
4877
 
 
4878
 
 
4879
# test EBCDIC or ASCII
 
4880
case `echo X|tr X '\101'` in
 
4881
 A) # ASCII based system
 
4882
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
 
4883
  lt_SP2NL='tr \040 \012'
 
4884
  lt_NL2SP='tr \015\012 \040\040'
 
4885
  ;;
 
4886
 *) # EBCDIC based system
 
4887
  lt_SP2NL='tr \100 \n'
 
4888
  lt_NL2SP='tr \r\n \100\100'
 
4889
  ;;
 
4890
esac
 
4891
 
 
4892
 
 
4893
 
 
4894
 
 
4895
 
 
4896
 
 
4897
 
 
4898
 
 
4899
 
 
4900
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
 
4901
$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
 
4902
if ${lt_cv_to_host_file_cmd+:} false; then :
 
4903
  $as_echo_n "(cached) " >&6
 
4904
else
 
4905
  case $host in
 
4906
  *-*-mingw* )
 
4907
    case $build in
 
4908
      *-*-mingw* ) # actually msys
 
4909
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
 
4910
        ;;
 
4911
      *-*-cygwin* )
 
4912
        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
 
4913
        ;;
 
4914
      * ) # otherwise, assume *nix
 
4915
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
 
4916
        ;;
 
4917
    esac
 
4918
    ;;
 
4919
  *-*-cygwin* )
 
4920
    case $build in
 
4921
      *-*-mingw* ) # actually msys
 
4922
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
 
4923
        ;;
 
4924
      *-*-cygwin* )
 
4925
        lt_cv_to_host_file_cmd=func_convert_file_noop
 
4926
        ;;
 
4927
      * ) # otherwise, assume *nix
 
4928
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
 
4929
        ;;
 
4930
    esac
 
4931
    ;;
 
4932
  * ) # unhandled hosts (and "normal" native builds)
 
4933
    lt_cv_to_host_file_cmd=func_convert_file_noop
 
4934
    ;;
 
4935
esac
 
4936
 
 
4937
fi
 
4938
 
 
4939
to_host_file_cmd=$lt_cv_to_host_file_cmd
 
4940
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
 
4941
$as_echo "$lt_cv_to_host_file_cmd" >&6; }
 
4942
 
 
4943
 
 
4944
 
 
4945
 
 
4946
 
 
4947
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
 
4948
$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
 
4949
if ${lt_cv_to_tool_file_cmd+:} false; then :
 
4950
  $as_echo_n "(cached) " >&6
 
4951
else
 
4952
  #assume ordinary cross tools, or native build.
 
4953
lt_cv_to_tool_file_cmd=func_convert_file_noop
 
4954
case $host in
 
4955
  *-*-mingw* )
 
4956
    case $build in
 
4957
      *-*-mingw* ) # actually msys
 
4958
        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
 
4959
        ;;
 
4960
    esac
 
4961
    ;;
 
4962
esac
 
4963
 
 
4964
fi
 
4965
 
 
4966
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
 
4967
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
 
4968
$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
 
4969
 
 
4970
 
 
4971
 
 
4972
 
 
4973
 
 
4974
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
 
4975
$as_echo_n "checking for $LD option to reload object files... " >&6; }
 
4976
if ${lt_cv_ld_reload_flag+:} false; then :
 
4977
  $as_echo_n "(cached) " >&6
 
4978
else
 
4979
  lt_cv_ld_reload_flag='-r'
 
4980
fi
 
4981
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
 
4982
$as_echo "$lt_cv_ld_reload_flag" >&6; }
 
4983
reload_flag=$lt_cv_ld_reload_flag
 
4984
case $reload_flag in
 
4985
"" | " "*) ;;
 
4986
*) reload_flag=" $reload_flag" ;;
 
4987
esac
 
4988
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
4989
case $host_os in
 
4990
  cygwin* | mingw* | pw32* | cegcc*)
 
4991
    if test "$GCC" != yes; then
 
4992
      reload_cmds=false
 
4993
    fi
 
4994
    ;;
 
4995
  darwin*)
 
4996
    if test "$GCC" = yes; then
 
4997
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
4998
    else
 
4999
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
5000
    fi
 
5001
    ;;
 
5002
esac
 
5003
 
 
5004
 
 
5005
 
 
5006
 
 
5007
 
 
5008
 
 
5009
 
 
5010
 
 
5011
 
 
5012
if test -n "$ac_tool_prefix"; then
 
5013
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
 
5014
set dummy ${ac_tool_prefix}objdump; ac_word=$2
 
5015
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5016
$as_echo_n "checking for $ac_word... " >&6; }
 
5017
if ${ac_cv_prog_OBJDUMP+:} false; then :
 
5018
  $as_echo_n "(cached) " >&6
 
5019
else
 
5020
  if test -n "$OBJDUMP"; then
 
5021
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
 
5022
else
 
5023
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5024
for as_dir in $PATH
 
5025
do
 
5026
  IFS=$as_save_IFS
 
5027
  test -z "$as_dir" && as_dir=.
 
5028
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5029
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5030
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
 
5031
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5032
    break 2
 
5033
  fi
 
5034
done
 
5035
  done
 
5036
IFS=$as_save_IFS
 
5037
 
 
5038
fi
 
5039
fi
 
5040
OBJDUMP=$ac_cv_prog_OBJDUMP
 
5041
if test -n "$OBJDUMP"; then
 
5042
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
 
5043
$as_echo "$OBJDUMP" >&6; }
 
5044
else
 
5045
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5046
$as_echo "no" >&6; }
 
5047
fi
 
5048
 
 
5049
 
 
5050
fi
 
5051
if test -z "$ac_cv_prog_OBJDUMP"; then
 
5052
  ac_ct_OBJDUMP=$OBJDUMP
 
5053
  # Extract the first word of "objdump", so it can be a program name with args.
 
5054
set dummy objdump; ac_word=$2
 
5055
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5056
$as_echo_n "checking for $ac_word... " >&6; }
 
5057
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
 
5058
  $as_echo_n "(cached) " >&6
 
5059
else
 
5060
  if test -n "$ac_ct_OBJDUMP"; then
 
5061
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
 
5062
else
 
5063
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5064
for as_dir in $PATH
 
5065
do
 
5066
  IFS=$as_save_IFS
 
5067
  test -z "$as_dir" && as_dir=.
 
5068
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5069
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5070
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
 
5071
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5072
    break 2
 
5073
  fi
 
5074
done
 
5075
  done
 
5076
IFS=$as_save_IFS
 
5077
 
 
5078
fi
 
5079
fi
 
5080
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
 
5081
if test -n "$ac_ct_OBJDUMP"; then
 
5082
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
 
5083
$as_echo "$ac_ct_OBJDUMP" >&6; }
 
5084
else
 
5085
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5086
$as_echo "no" >&6; }
 
5087
fi
 
5088
 
 
5089
  if test "x$ac_ct_OBJDUMP" = x; then
 
5090
    OBJDUMP="false"
 
5091
  else
 
5092
    case $cross_compiling:$ac_tool_warned in
 
5093
yes:)
 
5094
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5095
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5096
ac_tool_warned=yes ;;
 
5097
esac
 
5098
    OBJDUMP=$ac_ct_OBJDUMP
 
5099
  fi
 
5100
else
 
5101
  OBJDUMP="$ac_cv_prog_OBJDUMP"
 
5102
fi
 
5103
 
 
5104
test -z "$OBJDUMP" && OBJDUMP=objdump
 
5105
 
 
5106
 
 
5107
 
 
5108
 
 
5109
 
 
5110
 
 
5111
 
 
5112
 
 
5113
 
 
5114
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
 
5115
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
 
5116
if ${lt_cv_deplibs_check_method+:} false; then :
 
5117
  $as_echo_n "(cached) " >&6
 
5118
else
 
5119
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
5120
lt_cv_file_magic_test_file=
 
5121
lt_cv_deplibs_check_method='unknown'
 
5122
# Need to set the preceding variable on all platforms that support
 
5123
# interlibrary dependencies.
 
5124
# 'none' -- dependencies not supported.
 
5125
# `unknown' -- same as none, but documents that we really don't know.
 
5126
# 'pass_all' -- all dependencies passed with no checks.
 
5127
# 'test_compile' -- check by making test program.
 
5128
# 'file_magic [[regex]]' -- check by looking for files in library path
 
5129
# which responds to the $file_magic_cmd with a given extended regex.
 
5130
# If you have `file' or equivalent on your system and you're not sure
 
5131
# whether `pass_all' will *always* work, you probably want this one.
 
5132
 
 
5133
case $host_os in
 
5134
aix[4-9]*)
 
5135
  lt_cv_deplibs_check_method=pass_all
 
5136
  ;;
 
5137
 
 
5138
beos*)
 
5139
  lt_cv_deplibs_check_method=pass_all
 
5140
  ;;
 
5141
 
 
5142
bsdi[45]*)
 
5143
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
5144
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
5145
  lt_cv_file_magic_test_file=/shlib/libc.so
 
5146
  ;;
 
5147
 
 
5148
cygwin*)
 
5149
  # func_win32_libid is a shell function defined in ltmain.sh
 
5150
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
5151
  lt_cv_file_magic_cmd='func_win32_libid'
 
5152
  ;;
 
5153
 
 
5154
mingw* | pw32*)
 
5155
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
5156
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
5157
  # unless we find 'file', for example because we are cross-compiling.
 
5158
  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
 
5159
  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
 
5160
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
5161
    lt_cv_file_magic_cmd='func_win32_libid'
 
5162
  else
 
5163
    # Keep this pattern in sync with the one in func_win32_libid.
 
5164
    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
 
5165
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
5166
  fi
 
5167
  ;;
 
5168
 
 
5169
cegcc*)
 
5170
  # use the weaker test based on 'objdump'. See mingw*.
 
5171
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
 
5172
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
5173
  ;;
 
5174
 
 
5175
darwin* | rhapsody*)
 
5176
  lt_cv_deplibs_check_method=pass_all
 
5177
  ;;
 
5178
 
 
5179
freebsd* | dragonfly*)
 
5180
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
5181
    case $host_cpu in
 
5182
    i*86 )
 
5183
      # Not sure whether the presence of OpenBSD here was a mistake.
 
5184
      # Let's accept both of them until this is cleared up.
 
5185
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
 
5186
      lt_cv_file_magic_cmd=/usr/bin/file
 
5187
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
5188
      ;;
 
5189
    esac
 
5190
  else
 
5191
    lt_cv_deplibs_check_method=pass_all
 
5192
  fi
 
5193
  ;;
 
5194
 
 
5195
gnu*)
 
5196
  lt_cv_deplibs_check_method=pass_all
 
5197
  ;;
 
5198
 
 
5199
haiku*)
 
5200
  lt_cv_deplibs_check_method=pass_all
 
5201
  ;;
 
5202
 
 
5203
hpux10.20* | hpux11*)
 
5204
  lt_cv_file_magic_cmd=/usr/bin/file
 
5205
  case $host_cpu in
 
5206
  ia64*)
 
5207
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
5208
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
5209
    ;;
 
5210
  hppa*64*)
 
5211
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
 
5212
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
5213
    ;;
 
5214
  *)
 
5215
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
 
5216
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
5217
    ;;
 
5218
  esac
 
5219
  ;;
 
5220
 
 
5221
interix[3-9]*)
 
5222
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
5223
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
 
5224
  ;;
 
5225
 
 
5226
irix5* | irix6* | nonstopux*)
 
5227
  case $LD in
 
5228
  *-32|*"-32 ") libmagic=32-bit;;
 
5229
  *-n32|*"-n32 ") libmagic=N32;;
 
5230
  *-64|*"-64 ") libmagic=64-bit;;
 
5231
  *) libmagic=never-match;;
 
5232
  esac
 
5233
  lt_cv_deplibs_check_method=pass_all
 
5234
  ;;
 
5235
 
 
5236
# This must be glibc/ELF.
 
5237
linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
5238
  lt_cv_deplibs_check_method=pass_all
 
5239
  ;;
 
5240
 
 
5241
netbsd*)
 
5242
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
5243
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
5244
  else
 
5245
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
5246
  fi
 
5247
  ;;
 
5248
 
 
5249
newos6*)
 
5250
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
5251
  lt_cv_file_magic_cmd=/usr/bin/file
 
5252
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
5253
  ;;
 
5254
 
 
5255
*nto* | *qnx*)
 
5256
  lt_cv_deplibs_check_method=pass_all
 
5257
  ;;
 
5258
 
 
5259
openbsd*)
 
5260
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
5261
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
 
5262
  else
 
5263
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
5264
  fi
 
5265
  ;;
 
5266
 
 
5267
osf3* | osf4* | osf5*)
 
5268
  lt_cv_deplibs_check_method=pass_all
 
5269
  ;;
 
5270
 
 
5271
rdos*)
 
5272
  lt_cv_deplibs_check_method=pass_all
 
5273
  ;;
 
5274
 
 
5275
solaris*)
 
5276
  lt_cv_deplibs_check_method=pass_all
 
5277
  ;;
 
5278
 
 
5279
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
5280
  lt_cv_deplibs_check_method=pass_all
 
5281
  ;;
 
5282
 
 
5283
sysv4 | sysv4.3*)
 
5284
  case $host_vendor in
 
5285
  motorola)
 
5286
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
 
5287
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
5288
    ;;
 
5289
  ncr)
 
5290
    lt_cv_deplibs_check_method=pass_all
 
5291
    ;;
 
5292
  sequent)
 
5293
    lt_cv_file_magic_cmd='/bin/file'
 
5294
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
5295
    ;;
 
5296
  sni)
 
5297
    lt_cv_file_magic_cmd='/bin/file'
 
5298
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
5299
    lt_cv_file_magic_test_file=/lib/libc.so
 
5300
    ;;
 
5301
  siemens)
 
5302
    lt_cv_deplibs_check_method=pass_all
 
5303
    ;;
 
5304
  pc)
 
5305
    lt_cv_deplibs_check_method=pass_all
 
5306
    ;;
 
5307
  esac
 
5308
  ;;
 
5309
 
 
5310
tpf*)
 
5311
  lt_cv_deplibs_check_method=pass_all
 
5312
  ;;
 
5313
esac
 
5314
 
 
5315
fi
 
5316
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
 
5317
$as_echo "$lt_cv_deplibs_check_method" >&6; }
 
5318
 
 
5319
file_magic_glob=
 
5320
want_nocaseglob=no
 
5321
if test "$build" = "$host"; then
 
5322
  case $host_os in
 
5323
  mingw* | pw32*)
 
5324
    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
 
5325
      want_nocaseglob=yes
 
5326
    else
 
5327
      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
 
5328
    fi
 
5329
    ;;
 
5330
  esac
 
5331
fi
 
5332
 
 
5333
file_magic_cmd=$lt_cv_file_magic_cmd
 
5334
deplibs_check_method=$lt_cv_deplibs_check_method
 
5335
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
5336
 
 
5337
 
 
5338
 
 
5339
 
 
5340
 
 
5341
 
 
5342
 
 
5343
 
 
5344
 
 
5345
 
 
5346
 
 
5347
 
 
5348
 
 
5349
 
 
5350
 
 
5351
 
 
5352
 
 
5353
 
 
5354
 
 
5355
 
 
5356
 
 
5357
 
 
5358
if test -n "$ac_tool_prefix"; then
 
5359
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
 
5360
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
 
5361
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5362
$as_echo_n "checking for $ac_word... " >&6; }
 
5363
if ${ac_cv_prog_DLLTOOL+:} false; then :
 
5364
  $as_echo_n "(cached) " >&6
 
5365
else
 
5366
  if test -n "$DLLTOOL"; then
 
5367
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
 
5368
else
 
5369
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5370
for as_dir in $PATH
 
5371
do
 
5372
  IFS=$as_save_IFS
 
5373
  test -z "$as_dir" && as_dir=.
 
5374
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5375
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5376
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
 
5377
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5378
    break 2
 
5379
  fi
 
5380
done
 
5381
  done
 
5382
IFS=$as_save_IFS
 
5383
 
 
5384
fi
 
5385
fi
 
5386
DLLTOOL=$ac_cv_prog_DLLTOOL
 
5387
if test -n "$DLLTOOL"; then
 
5388
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
 
5389
$as_echo "$DLLTOOL" >&6; }
 
5390
else
 
5391
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5392
$as_echo "no" >&6; }
 
5393
fi
 
5394
 
 
5395
 
 
5396
fi
 
5397
if test -z "$ac_cv_prog_DLLTOOL"; then
 
5398
  ac_ct_DLLTOOL=$DLLTOOL
 
5399
  # Extract the first word of "dlltool", so it can be a program name with args.
 
5400
set dummy dlltool; ac_word=$2
 
5401
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5402
$as_echo_n "checking for $ac_word... " >&6; }
 
5403
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
 
5404
  $as_echo_n "(cached) " >&6
 
5405
else
 
5406
  if test -n "$ac_ct_DLLTOOL"; then
 
5407
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
 
5408
else
 
5409
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5410
for as_dir in $PATH
 
5411
do
 
5412
  IFS=$as_save_IFS
 
5413
  test -z "$as_dir" && as_dir=.
 
5414
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5415
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5416
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
 
5417
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5418
    break 2
 
5419
  fi
 
5420
done
 
5421
  done
 
5422
IFS=$as_save_IFS
 
5423
 
 
5424
fi
 
5425
fi
 
5426
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
 
5427
if test -n "$ac_ct_DLLTOOL"; then
 
5428
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
 
5429
$as_echo "$ac_ct_DLLTOOL" >&6; }
 
5430
else
 
5431
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5432
$as_echo "no" >&6; }
 
5433
fi
 
5434
 
 
5435
  if test "x$ac_ct_DLLTOOL" = x; then
 
5436
    DLLTOOL="false"
 
5437
  else
 
5438
    case $cross_compiling:$ac_tool_warned in
 
5439
yes:)
 
5440
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5441
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5442
ac_tool_warned=yes ;;
 
5443
esac
 
5444
    DLLTOOL=$ac_ct_DLLTOOL
 
5445
  fi
 
5446
else
 
5447
  DLLTOOL="$ac_cv_prog_DLLTOOL"
 
5448
fi
 
5449
 
 
5450
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
5451
 
 
5452
 
 
5453
 
 
5454
 
 
5455
 
 
5456
 
 
5457
 
 
5458
 
 
5459
 
 
5460
 
 
5461
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
 
5462
$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
 
5463
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
 
5464
  $as_echo_n "(cached) " >&6
 
5465
else
 
5466
  lt_cv_sharedlib_from_linklib_cmd='unknown'
 
5467
 
 
5468
case $host_os in
 
5469
cygwin* | mingw* | pw32* | cegcc*)
 
5470
  # two different shell functions defined in ltmain.sh
 
5471
  # decide which to use based on capabilities of $DLLTOOL
 
5472
  case `$DLLTOOL --help 2>&1` in
 
5473
  *--identify-strict*)
 
5474
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
 
5475
    ;;
 
5476
  *)
 
5477
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
 
5478
    ;;
 
5479
  esac
 
5480
  ;;
 
5481
*)
 
5482
  # fallback: assume linklib IS sharedlib
 
5483
  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
 
5484
  ;;
 
5485
esac
 
5486
 
 
5487
fi
 
5488
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
 
5489
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
 
5490
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
 
5491
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
 
5492
 
 
5493
 
 
5494
 
 
5495
 
 
5496
 
 
5497
 
 
5498
 
 
5499
 
 
5500
if test -n "$ac_tool_prefix"; then
 
5501
  for ac_prog in ar
 
5502
  do
 
5503
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
5504
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
5505
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5506
$as_echo_n "checking for $ac_word... " >&6; }
 
5507
if ${ac_cv_prog_AR+:} false; then :
 
5508
  $as_echo_n "(cached) " >&6
 
5509
else
 
5510
  if test -n "$AR"; then
 
5511
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
5512
else
 
5513
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5514
for as_dir in $PATH
 
5515
do
 
5516
  IFS=$as_save_IFS
 
5517
  test -z "$as_dir" && as_dir=.
 
5518
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5519
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5520
    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
 
5521
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5522
    break 2
 
5523
  fi
 
5524
done
 
5525
  done
 
5526
IFS=$as_save_IFS
 
5527
 
 
5528
fi
 
5529
fi
 
5530
AR=$ac_cv_prog_AR
 
5531
if test -n "$AR"; then
 
5532
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
 
5533
$as_echo "$AR" >&6; }
 
5534
else
 
5535
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5536
$as_echo "no" >&6; }
 
5537
fi
 
5538
 
 
5539
 
 
5540
    test -n "$AR" && break
 
5541
  done
 
5542
fi
 
5543
if test -z "$AR"; then
 
5544
  ac_ct_AR=$AR
 
5545
  for ac_prog in ar
 
5546
do
 
5547
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5548
set dummy $ac_prog; ac_word=$2
 
5549
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5550
$as_echo_n "checking for $ac_word... " >&6; }
 
5551
if ${ac_cv_prog_ac_ct_AR+:} false; then :
 
5552
  $as_echo_n "(cached) " >&6
 
5553
else
 
5554
  if test -n "$ac_ct_AR"; then
 
5555
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
5556
else
 
5557
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5558
for as_dir in $PATH
 
5559
do
 
5560
  IFS=$as_save_IFS
 
5561
  test -z "$as_dir" && as_dir=.
 
5562
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5563
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5564
    ac_cv_prog_ac_ct_AR="$ac_prog"
 
5565
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5566
    break 2
 
5567
  fi
 
5568
done
 
5569
  done
 
5570
IFS=$as_save_IFS
 
5571
 
 
5572
fi
 
5573
fi
 
5574
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
5575
if test -n "$ac_ct_AR"; then
 
5576
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
 
5577
$as_echo "$ac_ct_AR" >&6; }
 
5578
else
 
5579
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5580
$as_echo "no" >&6; }
 
5581
fi
 
5582
 
 
5583
 
 
5584
  test -n "$ac_ct_AR" && break
 
5585
done
 
5586
 
 
5587
  if test "x$ac_ct_AR" = x; then
 
5588
    AR="false"
 
5589
  else
 
5590
    case $cross_compiling:$ac_tool_warned in
 
5591
yes:)
 
5592
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5593
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5594
ac_tool_warned=yes ;;
 
5595
esac
 
5596
    AR=$ac_ct_AR
 
5597
  fi
 
5598
fi
 
5599
 
 
5600
: ${AR=ar}
 
5601
: ${AR_FLAGS=cru}
 
5602
 
 
5603
 
 
5604
 
 
5605
 
 
5606
 
 
5607
 
 
5608
 
 
5609
 
 
5610
 
 
5611
 
 
5612
 
 
5613
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
 
5614
$as_echo_n "checking for archiver @FILE support... " >&6; }
 
5615
if ${lt_cv_ar_at_file+:} false; then :
 
5616
  $as_echo_n "(cached) " >&6
 
5617
else
 
5618
  lt_cv_ar_at_file=no
 
5619
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5620
/* end confdefs.h.  */
 
5621
 
 
5622
int
 
5623
main ()
 
5624
{
 
5625
 
 
5626
  ;
 
5627
  return 0;
 
5628
}
 
5629
_ACEOF
 
5630
if ac_fn_c_try_compile "$LINENO"; then :
 
5631
  echo conftest.$ac_objext > conftest.lst
 
5632
      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
 
5633
      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
 
5634
  (eval $lt_ar_try) 2>&5
 
5635
  ac_status=$?
 
5636
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
5637
  test $ac_status = 0; }
 
5638
      if test "$ac_status" -eq 0; then
 
5639
        # Ensure the archiver fails upon bogus file names.
 
5640
        rm -f conftest.$ac_objext libconftest.a
 
5641
        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
 
5642
  (eval $lt_ar_try) 2>&5
 
5643
  ac_status=$?
 
5644
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
5645
  test $ac_status = 0; }
 
5646
        if test "$ac_status" -ne 0; then
 
5647
          lt_cv_ar_at_file=@
 
5648
        fi
 
5649
      fi
 
5650
      rm -f conftest.* libconftest.a
 
5651
 
 
5652
fi
 
5653
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5654
 
 
5655
fi
 
5656
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
 
5657
$as_echo "$lt_cv_ar_at_file" >&6; }
 
5658
 
 
5659
if test "x$lt_cv_ar_at_file" = xno; then
 
5660
  archiver_list_spec=
 
5661
else
 
5662
  archiver_list_spec=$lt_cv_ar_at_file
 
5663
fi
 
5664
 
 
5665
 
 
5666
 
 
5667
 
 
5668
 
 
5669
 
 
5670
 
 
5671
if test -n "$ac_tool_prefix"; then
 
5672
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
5673
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
5674
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5675
$as_echo_n "checking for $ac_word... " >&6; }
 
5676
if ${ac_cv_prog_STRIP+:} false; then :
 
5677
  $as_echo_n "(cached) " >&6
 
5678
else
 
5679
  if test -n "$STRIP"; then
 
5680
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
5681
else
 
5682
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5683
for as_dir in $PATH
 
5684
do
 
5685
  IFS=$as_save_IFS
 
5686
  test -z "$as_dir" && as_dir=.
 
5687
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5688
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5689
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
5690
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5691
    break 2
 
5692
  fi
 
5693
done
 
5694
  done
 
5695
IFS=$as_save_IFS
 
5696
 
 
5697
fi
 
5698
fi
 
5699
STRIP=$ac_cv_prog_STRIP
 
5700
if test -n "$STRIP"; then
 
5701
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
 
5702
$as_echo "$STRIP" >&6; }
 
5703
else
 
5704
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5705
$as_echo "no" >&6; }
 
5706
fi
 
5707
 
 
5708
 
 
5709
fi
 
5710
if test -z "$ac_cv_prog_STRIP"; then
 
5711
  ac_ct_STRIP=$STRIP
 
5712
  # Extract the first word of "strip", so it can be a program name with args.
 
5713
set dummy strip; ac_word=$2
 
5714
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5715
$as_echo_n "checking for $ac_word... " >&6; }
 
5716
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
 
5717
  $as_echo_n "(cached) " >&6
 
5718
else
 
5719
  if test -n "$ac_ct_STRIP"; then
 
5720
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
5721
else
 
5722
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5723
for as_dir in $PATH
 
5724
do
 
5725
  IFS=$as_save_IFS
 
5726
  test -z "$as_dir" && as_dir=.
 
5727
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5728
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5729
    ac_cv_prog_ac_ct_STRIP="strip"
 
5730
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5731
    break 2
 
5732
  fi
 
5733
done
 
5734
  done
 
5735
IFS=$as_save_IFS
 
5736
 
 
5737
fi
 
5738
fi
 
5739
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
5740
if test -n "$ac_ct_STRIP"; then
 
5741
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
 
5742
$as_echo "$ac_ct_STRIP" >&6; }
 
5743
else
 
5744
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5745
$as_echo "no" >&6; }
 
5746
fi
 
5747
 
 
5748
  if test "x$ac_ct_STRIP" = x; then
 
5749
    STRIP=":"
 
5750
  else
 
5751
    case $cross_compiling:$ac_tool_warned in
 
5752
yes:)
 
5753
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5754
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5755
ac_tool_warned=yes ;;
 
5756
esac
 
5757
    STRIP=$ac_ct_STRIP
 
5758
  fi
 
5759
else
 
5760
  STRIP="$ac_cv_prog_STRIP"
 
5761
fi
 
5762
 
 
5763
test -z "$STRIP" && STRIP=:
 
5764
 
 
5765
 
 
5766
 
 
5767
 
 
5768
 
 
5769
 
 
5770
if test -n "$ac_tool_prefix"; then
 
5771
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
5772
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
5773
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5774
$as_echo_n "checking for $ac_word... " >&6; }
 
5775
if ${ac_cv_prog_RANLIB+:} false; then :
 
5776
  $as_echo_n "(cached) " >&6
 
5777
else
 
5778
  if test -n "$RANLIB"; then
 
5779
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
5780
else
 
5781
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5782
for as_dir in $PATH
 
5783
do
 
5784
  IFS=$as_save_IFS
 
5785
  test -z "$as_dir" && as_dir=.
 
5786
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5787
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5788
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
5789
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5790
    break 2
 
5791
  fi
 
5792
done
 
5793
  done
 
5794
IFS=$as_save_IFS
 
5795
 
 
5796
fi
 
5797
fi
 
5798
RANLIB=$ac_cv_prog_RANLIB
 
5799
if test -n "$RANLIB"; then
 
5800
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
 
5801
$as_echo "$RANLIB" >&6; }
 
5802
else
 
5803
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5804
$as_echo "no" >&6; }
 
5805
fi
 
5806
 
 
5807
 
 
5808
fi
 
5809
if test -z "$ac_cv_prog_RANLIB"; then
 
5810
  ac_ct_RANLIB=$RANLIB
 
5811
  # Extract the first word of "ranlib", so it can be a program name with args.
 
5812
set dummy ranlib; ac_word=$2
 
5813
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5814
$as_echo_n "checking for $ac_word... " >&6; }
 
5815
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
 
5816
  $as_echo_n "(cached) " >&6
 
5817
else
 
5818
  if test -n "$ac_ct_RANLIB"; then
 
5819
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
5820
else
 
5821
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5822
for as_dir in $PATH
 
5823
do
 
5824
  IFS=$as_save_IFS
 
5825
  test -z "$as_dir" && as_dir=.
 
5826
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5827
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5828
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
5829
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5830
    break 2
 
5831
  fi
 
5832
done
 
5833
  done
 
5834
IFS=$as_save_IFS
 
5835
 
 
5836
fi
 
5837
fi
 
5838
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
5839
if test -n "$ac_ct_RANLIB"; then
 
5840
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
 
5841
$as_echo "$ac_ct_RANLIB" >&6; }
 
5842
else
 
5843
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5844
$as_echo "no" >&6; }
 
5845
fi
 
5846
 
 
5847
  if test "x$ac_ct_RANLIB" = x; then
 
5848
    RANLIB=":"
 
5849
  else
 
5850
    case $cross_compiling:$ac_tool_warned in
 
5851
yes:)
 
5852
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5853
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5854
ac_tool_warned=yes ;;
 
5855
esac
 
5856
    RANLIB=$ac_ct_RANLIB
 
5857
  fi
 
5858
else
 
5859
  RANLIB="$ac_cv_prog_RANLIB"
 
5860
fi
 
5861
 
 
5862
test -z "$RANLIB" && RANLIB=:
 
5863
 
 
5864
 
 
5865
 
 
5866
 
 
5867
 
 
5868
 
 
5869
# Determine commands to create old-style static archives.
 
5870
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
5871
old_postinstall_cmds='chmod 644 $oldlib'
 
5872
old_postuninstall_cmds=
 
5873
 
 
5874
if test -n "$RANLIB"; then
 
5875
  case $host_os in
 
5876
  openbsd*)
 
5877
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
 
5878
    ;;
 
5879
  *)
 
5880
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
 
5881
    ;;
 
5882
  esac
 
5883
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
 
5884
fi
 
5885
 
 
5886
case $host_os in
 
5887
  darwin*)
 
5888
    lock_old_archive_extraction=yes ;;
 
5889
  *)
 
5890
    lock_old_archive_extraction=no ;;
 
5891
esac
 
5892
 
 
5893
 
 
5894
 
 
5895
 
 
5896
 
 
5897
 
 
5898
 
 
5899
 
 
5900
 
 
5901
 
 
5902
 
 
5903
 
 
5904
 
 
5905
 
 
5906
 
 
5907
 
 
5908
 
 
5909
 
 
5910
 
 
5911
 
 
5912
 
 
5913
 
 
5914
 
 
5915
 
 
5916
 
 
5917
 
 
5918
 
 
5919
 
 
5920
 
 
5921
 
 
5922
 
 
5923
 
 
5924
 
 
5925
 
 
5926
 
 
5927
 
 
5928
 
 
5929
 
 
5930
 
 
5931
# If no C compiler was specified, use CC.
 
5932
LTCC=${LTCC-"$CC"}
 
5933
 
 
5934
# If no C compiler flags were specified, use CFLAGS.
 
5935
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
5936
 
 
5937
# Allow CC to be a program name with arguments.
 
5938
compiler=$CC
 
5939
 
 
5940
 
 
5941
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
5942
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
 
5943
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
 
5944
if ${lt_cv_sys_global_symbol_pipe+:} false; then :
 
5945
  $as_echo_n "(cached) " >&6
 
5946
else
 
5947
 
 
5948
# These are sane defaults that work on at least a few old systems.
 
5949
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
5950
 
 
5951
# Character class describing NM global symbol codes.
 
5952
symcode='[BCDEGRST]'
 
5953
 
 
5954
# Regexp to match symbols that can be accessed directly from C.
 
5955
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
5956
 
 
5957
# Define system-specific variables.
 
5958
case $host_os in
 
5959
aix*)
 
5960
  symcode='[BCDT]'
 
5961
  ;;
 
5962
cygwin* | mingw* | pw32* | cegcc*)
 
5963
  symcode='[ABCDGISTW]'
 
5964
  ;;
 
5965
hpux*)
 
5966
  if test "$host_cpu" = ia64; then
 
5967
    symcode='[ABCDEGRST]'
 
5968
  fi
 
5969
  ;;
 
5970
irix* | nonstopux*)
 
5971
  symcode='[BCDEGRST]'
 
5972
  ;;
 
5973
osf*)
 
5974
  symcode='[BCDEGQRST]'
 
5975
  ;;
 
5976
solaris*)
 
5977
  symcode='[BDRT]'
 
5978
  ;;
 
5979
sco3.2v5*)
 
5980
  symcode='[DT]'
 
5981
  ;;
 
5982
sysv4.2uw2*)
 
5983
  symcode='[DT]'
 
5984
  ;;
 
5985
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
5986
  symcode='[ABDT]'
 
5987
  ;;
 
5988
sysv4)
 
5989
  symcode='[DFNSTU]'
 
5990
  ;;
 
5991
esac
 
5992
 
 
5993
# If we're using GNU nm, then use its standard symbol codes.
 
5994
case `$NM -V 2>&1` in
 
5995
*GNU* | *'with BFD'*)
 
5996
  symcode='[ABCDGIRSTW]' ;;
 
5997
esac
 
5998
 
 
5999
# Transform an extracted symbol line into a proper C declaration.
 
6000
# Some systems (esp. on ia64) link data and code symbols differently,
 
6001
# so use this general approach.
 
6002
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
6003
 
 
6004
# Transform an extracted symbol line into symbol name and symbol address
 
6005
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
 
6006
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'"
 
6007
 
 
6008
# Handle CRLF in mingw tool chain
 
6009
opt_cr=
 
6010
case $build_os in
 
6011
mingw*)
 
6012
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
6013
  ;;
 
6014
esac
 
6015
 
 
6016
# Try without a prefix underscore, then with it.
 
6017
for ac_symprfx in "" "_"; do
 
6018
 
 
6019
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
6020
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
6021
 
 
6022
  # Write the raw and C identifiers.
 
6023
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
6024
    # Fake it for dumpbin and say T for any non-static function
 
6025
    # and D for any global variable.
 
6026
    # Also find C++ and __fastcall symbols from MSVC++,
 
6027
    # which start with @ or ?.
 
6028
    lt_cv_sys_global_symbol_pipe="$AWK '"\
 
6029
"     {last_section=section; section=\$ 3};"\
 
6030
"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
 
6031
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
 
6032
"     \$ 0!~/External *\|/{next};"\
 
6033
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
 
6034
"     {if(hide[section]) next};"\
 
6035
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
 
6036
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
 
6037
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
 
6038
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
 
6039
"     ' prfx=^$ac_symprfx"
 
6040
  else
 
6041
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
6042
  fi
 
6043
  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
 
6044
 
 
6045
  # Check to see that the pipe works correctly.
 
6046
  pipe_works=no
 
6047
 
 
6048
  rm -f conftest*
 
6049
  cat > conftest.$ac_ext <<_LT_EOF
 
6050
#ifdef __cplusplus
 
6051
extern "C" {
 
6052
#endif
 
6053
char nm_test_var;
 
6054
void nm_test_func(void);
 
6055
void nm_test_func(void){}
 
6056
#ifdef __cplusplus
 
6057
}
 
6058
#endif
 
6059
int main(){nm_test_var='a';nm_test_func();return(0);}
 
6060
_LT_EOF
 
6061
 
 
6062
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6063
  (eval $ac_compile) 2>&5
 
6064
  ac_status=$?
 
6065
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6066
  test $ac_status = 0; }; then
 
6067
    # Now try to grab the symbols.
 
6068
    nlist=conftest.nm
 
6069
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
 
6070
  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
 
6071
  ac_status=$?
 
6072
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6073
  test $ac_status = 0; } && test -s "$nlist"; then
 
6074
      # Try sorting and uniquifying the output.
 
6075
      if sort "$nlist" | uniq > "$nlist"T; then
 
6076
        mv -f "$nlist"T "$nlist"
 
6077
      else
 
6078
        rm -f "$nlist"T
 
6079
      fi
 
6080
 
 
6081
      # Make sure that we snagged all the symbols we need.
 
6082
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
 
6083
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
 
6084
          cat <<_LT_EOF > conftest.$ac_ext
 
6085
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
 
6086
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
 
6087
/* DATA imports from DLLs on WIN32 con't be const, because runtime
 
6088
   relocations are performed -- see ld's documentation on pseudo-relocs.  */
 
6089
# define LT_DLSYM_CONST
 
6090
#elif defined(__osf__)
 
6091
/* This system does not cope well with relocations in const data.  */
 
6092
# define LT_DLSYM_CONST
 
6093
#else
 
6094
# define LT_DLSYM_CONST const
 
6095
#endif
 
6096
 
 
6097
#ifdef __cplusplus
 
6098
extern "C" {
 
6099
#endif
 
6100
 
 
6101
_LT_EOF
 
6102
          # Now generate the symbol file.
 
6103
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
 
6104
 
 
6105
          cat <<_LT_EOF >> conftest.$ac_ext
 
6106
 
 
6107
/* The mapping between symbol names and symbols.  */
 
6108
LT_DLSYM_CONST struct {
 
6109
  const char *name;
 
6110
  void       *address;
 
6111
}
 
6112
lt__PROGRAM__LTX_preloaded_symbols[] =
 
6113
{
 
6114
  { "@PROGRAM@", (void *) 0 },
 
6115
_LT_EOF
 
6116
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
 
6117
          cat <<\_LT_EOF >> conftest.$ac_ext
 
6118
  {0, (void *) 0}
 
6119
};
 
6120
 
 
6121
/* This works around a problem in FreeBSD linker */
 
6122
#ifdef FREEBSD_WORKAROUND
 
6123
static const void *lt_preloaded_setup() {
 
6124
  return lt__PROGRAM__LTX_preloaded_symbols;
 
6125
}
 
6126
#endif
 
6127
 
 
6128
#ifdef __cplusplus
 
6129
}
 
6130
#endif
 
6131
_LT_EOF
 
6132
          # Now try linking the two files.
 
6133
          mv conftest.$ac_objext conftstm.$ac_objext
 
6134
          lt_globsym_save_LIBS=$LIBS
 
6135
          lt_globsym_save_CFLAGS=$CFLAGS
 
6136
          LIBS="conftstm.$ac_objext"
 
6137
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
6138
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
6139
  (eval $ac_link) 2>&5
 
6140
  ac_status=$?
 
6141
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6142
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
 
6143
            pipe_works=yes
 
6144
          fi
 
6145
          LIBS=$lt_globsym_save_LIBS
 
6146
          CFLAGS=$lt_globsym_save_CFLAGS
 
6147
        else
 
6148
          echo "cannot find nm_test_func in $nlist" >&5
 
6149
        fi
 
6150
      else
 
6151
        echo "cannot find nm_test_var in $nlist" >&5
 
6152
      fi
 
6153
    else
 
6154
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
6155
    fi
 
6156
  else
 
6157
    echo "$progname: failed program was:" >&5
 
6158
    cat conftest.$ac_ext >&5
 
6159
  fi
 
6160
  rm -rf conftest* conftst*
 
6161
 
 
6162
  # Do not use the global_symbol_pipe unless it works.
 
6163
  if test "$pipe_works" = yes; then
 
6164
    break
 
6165
  else
 
6166
    lt_cv_sys_global_symbol_pipe=
 
6167
  fi
 
6168
done
 
6169
 
 
6170
fi
 
6171
 
 
6172
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
6173
  lt_cv_sys_global_symbol_to_cdecl=
 
6174
fi
 
6175
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
6176
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
 
6177
$as_echo "failed" >&6; }
 
6178
else
 
6179
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
 
6180
$as_echo "ok" >&6; }
 
6181
fi
 
6182
 
 
6183
# Response file support.
 
6184
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
6185
  nm_file_list_spec='@'
 
6186
elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
 
6187
  nm_file_list_spec='@'
 
6188
fi
 
6189
 
 
6190
 
 
6191
 
 
6192
 
 
6193
 
 
6194
 
 
6195
 
 
6196
 
 
6197
 
 
6198
 
 
6199
 
 
6200
 
 
6201
 
 
6202
 
 
6203
 
 
6204
 
 
6205
 
 
6206
 
 
6207
 
 
6208
 
 
6209
 
 
6210
 
 
6211
 
 
6212
 
 
6213
 
 
6214
 
 
6215
 
 
6216
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
 
6217
$as_echo_n "checking for sysroot... " >&6; }
 
6218
 
 
6219
# Check whether --with-sysroot was given.
 
6220
if test "${with_sysroot+set}" = set; then :
 
6221
  withval=$with_sysroot;
 
6222
else
 
6223
  with_sysroot=no
 
6224
fi
 
6225
 
 
6226
 
 
6227
lt_sysroot=
 
6228
case ${with_sysroot} in #(
 
6229
 yes)
 
6230
   if test "$GCC" = yes; then
 
6231
     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
 
6232
   fi
 
6233
   ;; #(
 
6234
 /*)
 
6235
   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
 
6236
   ;; #(
 
6237
 no|'')
 
6238
   ;; #(
 
6239
 *)
 
6240
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
 
6241
$as_echo "${with_sysroot}" >&6; }
 
6242
   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
 
6243
   ;;
 
6244
esac
 
6245
 
 
6246
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
 
6247
$as_echo "${lt_sysroot:-no}" >&6; }
 
6248
 
 
6249
 
 
6250
 
 
6251
 
 
6252
 
 
6253
# Check whether --enable-libtool-lock was given.
 
6254
if test "${enable_libtool_lock+set}" = set; then :
 
6255
  enableval=$enable_libtool_lock;
 
6256
fi
 
6257
 
 
6258
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
6259
 
 
6260
# Some flags need to be propagated to the compiler or linker for good
 
6261
# libtool support.
 
6262
case $host in
 
6263
ia64-*-hpux*)
 
6264
  # Find out which ABI we are using.
 
6265
  echo 'int i;' > conftest.$ac_ext
 
6266
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6267
  (eval $ac_compile) 2>&5
 
6268
  ac_status=$?
 
6269
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6270
  test $ac_status = 0; }; then
 
6271
    case `/usr/bin/file conftest.$ac_objext` in
 
6272
      *ELF-32*)
 
6273
        HPUX_IA64_MODE="32"
 
6274
        ;;
 
6275
      *ELF-64*)
 
6276
        HPUX_IA64_MODE="64"
 
6277
        ;;
 
6278
    esac
 
6279
  fi
 
6280
  rm -rf conftest*
 
6281
  ;;
 
6282
*-*-irix6*)
 
6283
  # Find out which ABI we are using.
 
6284
  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
 
6285
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6286
  (eval $ac_compile) 2>&5
 
6287
  ac_status=$?
 
6288
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6289
  test $ac_status = 0; }; then
 
6290
    if test "$lt_cv_prog_gnu_ld" = yes; then
 
6291
      case `/usr/bin/file conftest.$ac_objext` in
 
6292
        *32-bit*)
 
6293
          LD="${LD-ld} -melf32bsmip"
 
6294
          ;;
 
6295
        *N32*)
 
6296
          LD="${LD-ld} -melf32bmipn32"
 
6297
          ;;
 
6298
        *64-bit*)
 
6299
          LD="${LD-ld} -melf64bmip"
 
6300
        ;;
 
6301
      esac
 
6302
    else
 
6303
      case `/usr/bin/file conftest.$ac_objext` in
 
6304
        *32-bit*)
 
6305
          LD="${LD-ld} -32"
 
6306
          ;;
 
6307
        *N32*)
 
6308
          LD="${LD-ld} -n32"
 
6309
          ;;
 
6310
        *64-bit*)
 
6311
          LD="${LD-ld} -64"
 
6312
          ;;
 
6313
      esac
 
6314
    fi
 
6315
  fi
 
6316
  rm -rf conftest*
 
6317
  ;;
 
6318
 
 
6319
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
6320
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
 
6321
  # Find out which ABI we are using.
 
6322
  echo 'int i;' > conftest.$ac_ext
 
6323
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6324
  (eval $ac_compile) 2>&5
 
6325
  ac_status=$?
 
6326
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6327
  test $ac_status = 0; }; then
 
6328
    case `/usr/bin/file conftest.o` in
 
6329
      *32-bit*)
 
6330
        case $host in
 
6331
          x86_64-*kfreebsd*-gnu)
 
6332
            LD="${LD-ld} -m elf_i386_fbsd"
 
6333
            ;;
 
6334
          x86_64-*linux*)
 
6335
            LD="${LD-ld} -m elf_i386"
 
6336
            ;;
 
6337
          ppc64-*linux*|powerpc64-*linux*)
 
6338
            LD="${LD-ld} -m elf32ppclinux"
 
6339
            ;;
 
6340
          s390x-*linux*)
 
6341
            LD="${LD-ld} -m elf_s390"
 
6342
            ;;
 
6343
          sparc64-*linux*)
 
6344
            LD="${LD-ld} -m elf32_sparc"
 
6345
            ;;
 
6346
        esac
 
6347
        ;;
 
6348
      *64-bit*)
 
6349
        case $host in
 
6350
          x86_64-*kfreebsd*-gnu)
 
6351
            LD="${LD-ld} -m elf_x86_64_fbsd"
 
6352
            ;;
 
6353
          x86_64-*linux*)
 
6354
            LD="${LD-ld} -m elf_x86_64"
 
6355
            ;;
 
6356
          ppc*-*linux*|powerpc*-*linux*)
 
6357
            LD="${LD-ld} -m elf64ppc"
 
6358
            ;;
 
6359
          s390*-*linux*|s390*-*tpf*)
 
6360
            LD="${LD-ld} -m elf64_s390"
 
6361
            ;;
 
6362
          sparc*-*linux*)
 
6363
            LD="${LD-ld} -m elf64_sparc"
 
6364
            ;;
 
6365
        esac
 
6366
        ;;
 
6367
    esac
 
6368
  fi
 
6369
  rm -rf conftest*
 
6370
  ;;
 
6371
 
 
6372
*-*-sco3.2v5*)
 
6373
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
6374
  SAVE_CFLAGS="$CFLAGS"
 
6375
  CFLAGS="$CFLAGS -belf"
 
6376
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
 
6377
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
 
6378
if ${lt_cv_cc_needs_belf+:} false; then :
 
6379
  $as_echo_n "(cached) " >&6
 
6380
else
 
6381
  ac_ext=c
 
6382
ac_cpp='$CPP $CPPFLAGS'
 
6383
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6384
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6385
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6386
 
 
6387
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6388
/* end confdefs.h.  */
 
6389
 
 
6390
int
 
6391
main ()
 
6392
{
 
6393
 
 
6394
  ;
 
6395
  return 0;
 
6396
}
 
6397
_ACEOF
 
6398
if ac_fn_c_try_link "$LINENO"; then :
 
6399
  lt_cv_cc_needs_belf=yes
 
6400
else
 
6401
  lt_cv_cc_needs_belf=no
 
6402
fi
 
6403
rm -f core conftest.err conftest.$ac_objext \
 
6404
    conftest$ac_exeext conftest.$ac_ext
 
6405
     ac_ext=c
 
6406
ac_cpp='$CPP $CPPFLAGS'
 
6407
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6408
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6409
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6410
 
 
6411
fi
 
6412
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
 
6413
$as_echo "$lt_cv_cc_needs_belf" >&6; }
 
6414
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
6415
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
6416
    CFLAGS="$SAVE_CFLAGS"
 
6417
  fi
 
6418
  ;;
 
6419
*-*solaris*)
 
6420
  # Find out which ABI we are using.
 
6421
  echo 'int i;' > conftest.$ac_ext
 
6422
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6423
  (eval $ac_compile) 2>&5
 
6424
  ac_status=$?
 
6425
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6426
  test $ac_status = 0; }; then
 
6427
    case `/usr/bin/file conftest.o` in
 
6428
    *64-bit*)
 
6429
      case $lt_cv_prog_gnu_ld in
 
6430
      yes*)
 
6431
        case $host in
 
6432
        i?86-*-solaris*)
 
6433
          LD="${LD-ld} -m elf_x86_64"
 
6434
          ;;
 
6435
        sparc*-*-solaris*)
 
6436
          LD="${LD-ld} -m elf64_sparc"
 
6437
          ;;
 
6438
        esac
 
6439
        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
 
6440
        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
 
6441
          LD="${LD-ld}_sol2"
 
6442
        fi
 
6443
        ;;
 
6444
      *)
 
6445
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
6446
          LD="${LD-ld} -64"
 
6447
        fi
 
6448
        ;;
 
6449
      esac
 
6450
      ;;
 
6451
    esac
 
6452
  fi
 
6453
  rm -rf conftest*
 
6454
  ;;
 
6455
esac
 
6456
 
 
6457
need_locks="$enable_libtool_lock"
 
6458
 
 
6459
if test -n "$ac_tool_prefix"; then
 
6460
  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
 
6461
set dummy ${ac_tool_prefix}mt; ac_word=$2
 
6462
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6463
$as_echo_n "checking for $ac_word... " >&6; }
 
6464
if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
 
6465
  $as_echo_n "(cached) " >&6
 
6466
else
 
6467
  if test -n "$MANIFEST_TOOL"; then
 
6468
  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
 
6469
else
 
6470
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6471
for as_dir in $PATH
 
6472
do
 
6473
  IFS=$as_save_IFS
 
6474
  test -z "$as_dir" && as_dir=.
 
6475
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6476
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6477
    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
 
6478
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6479
    break 2
 
6480
  fi
 
6481
done
 
6482
  done
 
6483
IFS=$as_save_IFS
 
6484
 
 
6485
fi
 
6486
fi
 
6487
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
 
6488
if test -n "$MANIFEST_TOOL"; then
 
6489
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
 
6490
$as_echo "$MANIFEST_TOOL" >&6; }
 
6491
else
 
6492
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6493
$as_echo "no" >&6; }
 
6494
fi
 
6495
 
 
6496
 
 
6497
fi
 
6498
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
 
6499
  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
 
6500
  # Extract the first word of "mt", so it can be a program name with args.
 
6501
set dummy mt; ac_word=$2
 
6502
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6503
$as_echo_n "checking for $ac_word... " >&6; }
 
6504
if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
 
6505
  $as_echo_n "(cached) " >&6
 
6506
else
 
6507
  if test -n "$ac_ct_MANIFEST_TOOL"; then
 
6508
  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
 
6509
else
 
6510
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6511
for as_dir in $PATH
 
6512
do
 
6513
  IFS=$as_save_IFS
 
6514
  test -z "$as_dir" && as_dir=.
 
6515
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6516
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6517
    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
 
6518
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6519
    break 2
 
6520
  fi
 
6521
done
 
6522
  done
 
6523
IFS=$as_save_IFS
 
6524
 
 
6525
fi
 
6526
fi
 
6527
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
 
6528
if test -n "$ac_ct_MANIFEST_TOOL"; then
 
6529
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
 
6530
$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
 
6531
else
 
6532
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6533
$as_echo "no" >&6; }
 
6534
fi
 
6535
 
 
6536
  if test "x$ac_ct_MANIFEST_TOOL" = x; then
 
6537
    MANIFEST_TOOL=":"
 
6538
  else
 
6539
    case $cross_compiling:$ac_tool_warned in
 
6540
yes:)
 
6541
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6542
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6543
ac_tool_warned=yes ;;
 
6544
esac
 
6545
    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
 
6546
  fi
 
6547
else
 
6548
  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
 
6549
fi
 
6550
 
 
6551
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
 
6552
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
 
6553
$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
 
6554
if ${lt_cv_path_mainfest_tool+:} false; then :
 
6555
  $as_echo_n "(cached) " >&6
 
6556
else
 
6557
  lt_cv_path_mainfest_tool=no
 
6558
  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
 
6559
  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
 
6560
  cat conftest.err >&5
 
6561
  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
 
6562
    lt_cv_path_mainfest_tool=yes
 
6563
  fi
 
6564
  rm -f conftest*
 
6565
fi
 
6566
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
 
6567
$as_echo "$lt_cv_path_mainfest_tool" >&6; }
 
6568
if test "x$lt_cv_path_mainfest_tool" != xyes; then
 
6569
  MANIFEST_TOOL=:
 
6570
fi
 
6571
 
 
6572
 
 
6573
 
 
6574
 
 
6575
 
 
6576
 
 
6577
  case $host_os in
 
6578
    rhapsody* | darwin*)
 
6579
    if test -n "$ac_tool_prefix"; then
 
6580
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
 
6581
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
 
6582
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6583
$as_echo_n "checking for $ac_word... " >&6; }
 
6584
if ${ac_cv_prog_DSYMUTIL+:} false; then :
 
6585
  $as_echo_n "(cached) " >&6
 
6586
else
 
6587
  if test -n "$DSYMUTIL"; then
 
6588
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
 
6589
else
 
6590
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6591
for as_dir in $PATH
 
6592
do
 
6593
  IFS=$as_save_IFS
 
6594
  test -z "$as_dir" && as_dir=.
 
6595
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6596
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6597
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
 
6598
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6599
    break 2
 
6600
  fi
 
6601
done
 
6602
  done
 
6603
IFS=$as_save_IFS
 
6604
 
 
6605
fi
 
6606
fi
 
6607
DSYMUTIL=$ac_cv_prog_DSYMUTIL
 
6608
if test -n "$DSYMUTIL"; then
 
6609
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
 
6610
$as_echo "$DSYMUTIL" >&6; }
 
6611
else
 
6612
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6613
$as_echo "no" >&6; }
 
6614
fi
 
6615
 
 
6616
 
 
6617
fi
 
6618
if test -z "$ac_cv_prog_DSYMUTIL"; then
 
6619
  ac_ct_DSYMUTIL=$DSYMUTIL
 
6620
  # Extract the first word of "dsymutil", so it can be a program name with args.
 
6621
set dummy dsymutil; ac_word=$2
 
6622
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6623
$as_echo_n "checking for $ac_word... " >&6; }
 
6624
if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
 
6625
  $as_echo_n "(cached) " >&6
 
6626
else
 
6627
  if test -n "$ac_ct_DSYMUTIL"; then
 
6628
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
 
6629
else
 
6630
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6631
for as_dir in $PATH
 
6632
do
 
6633
  IFS=$as_save_IFS
 
6634
  test -z "$as_dir" && as_dir=.
 
6635
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6636
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6637
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
 
6638
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6639
    break 2
 
6640
  fi
 
6641
done
 
6642
  done
 
6643
IFS=$as_save_IFS
 
6644
 
 
6645
fi
 
6646
fi
 
6647
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
 
6648
if test -n "$ac_ct_DSYMUTIL"; then
 
6649
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
 
6650
$as_echo "$ac_ct_DSYMUTIL" >&6; }
 
6651
else
 
6652
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6653
$as_echo "no" >&6; }
 
6654
fi
 
6655
 
 
6656
  if test "x$ac_ct_DSYMUTIL" = x; then
 
6657
    DSYMUTIL=":"
 
6658
  else
 
6659
    case $cross_compiling:$ac_tool_warned in
 
6660
yes:)
 
6661
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6662
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6663
ac_tool_warned=yes ;;
 
6664
esac
 
6665
    DSYMUTIL=$ac_ct_DSYMUTIL
 
6666
  fi
 
6667
else
 
6668
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
 
6669
fi
 
6670
 
 
6671
    if test -n "$ac_tool_prefix"; then
 
6672
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
 
6673
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
 
6674
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6675
$as_echo_n "checking for $ac_word... " >&6; }
 
6676
if ${ac_cv_prog_NMEDIT+:} false; then :
 
6677
  $as_echo_n "(cached) " >&6
 
6678
else
 
6679
  if test -n "$NMEDIT"; then
 
6680
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
 
6681
else
 
6682
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6683
for as_dir in $PATH
 
6684
do
 
6685
  IFS=$as_save_IFS
 
6686
  test -z "$as_dir" && as_dir=.
 
6687
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6688
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6689
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
 
6690
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6691
    break 2
 
6692
  fi
 
6693
done
 
6694
  done
 
6695
IFS=$as_save_IFS
 
6696
 
 
6697
fi
 
6698
fi
 
6699
NMEDIT=$ac_cv_prog_NMEDIT
 
6700
if test -n "$NMEDIT"; then
 
6701
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
 
6702
$as_echo "$NMEDIT" >&6; }
 
6703
else
 
6704
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6705
$as_echo "no" >&6; }
 
6706
fi
 
6707
 
 
6708
 
 
6709
fi
 
6710
if test -z "$ac_cv_prog_NMEDIT"; then
 
6711
  ac_ct_NMEDIT=$NMEDIT
 
6712
  # Extract the first word of "nmedit", so it can be a program name with args.
 
6713
set dummy nmedit; ac_word=$2
 
6714
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6715
$as_echo_n "checking for $ac_word... " >&6; }
 
6716
if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
 
6717
  $as_echo_n "(cached) " >&6
 
6718
else
 
6719
  if test -n "$ac_ct_NMEDIT"; then
 
6720
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
 
6721
else
 
6722
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6723
for as_dir in $PATH
 
6724
do
 
6725
  IFS=$as_save_IFS
 
6726
  test -z "$as_dir" && as_dir=.
 
6727
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6728
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6729
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
 
6730
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6731
    break 2
 
6732
  fi
 
6733
done
 
6734
  done
 
6735
IFS=$as_save_IFS
 
6736
 
 
6737
fi
 
6738
fi
 
6739
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
 
6740
if test -n "$ac_ct_NMEDIT"; then
 
6741
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
 
6742
$as_echo "$ac_ct_NMEDIT" >&6; }
 
6743
else
 
6744
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6745
$as_echo "no" >&6; }
 
6746
fi
 
6747
 
 
6748
  if test "x$ac_ct_NMEDIT" = x; then
 
6749
    NMEDIT=":"
 
6750
  else
 
6751
    case $cross_compiling:$ac_tool_warned in
 
6752
yes:)
 
6753
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6754
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6755
ac_tool_warned=yes ;;
 
6756
esac
 
6757
    NMEDIT=$ac_ct_NMEDIT
 
6758
  fi
 
6759
else
 
6760
  NMEDIT="$ac_cv_prog_NMEDIT"
 
6761
fi
 
6762
 
 
6763
    if test -n "$ac_tool_prefix"; then
 
6764
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
 
6765
set dummy ${ac_tool_prefix}lipo; ac_word=$2
 
6766
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6767
$as_echo_n "checking for $ac_word... " >&6; }
 
6768
if ${ac_cv_prog_LIPO+:} false; then :
 
6769
  $as_echo_n "(cached) " >&6
 
6770
else
 
6771
  if test -n "$LIPO"; then
 
6772
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
 
6773
else
 
6774
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6775
for as_dir in $PATH
 
6776
do
 
6777
  IFS=$as_save_IFS
 
6778
  test -z "$as_dir" && as_dir=.
 
6779
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6780
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6781
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
 
6782
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6783
    break 2
 
6784
  fi
 
6785
done
 
6786
  done
 
6787
IFS=$as_save_IFS
 
6788
 
 
6789
fi
 
6790
fi
 
6791
LIPO=$ac_cv_prog_LIPO
 
6792
if test -n "$LIPO"; then
 
6793
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
 
6794
$as_echo "$LIPO" >&6; }
 
6795
else
 
6796
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6797
$as_echo "no" >&6; }
 
6798
fi
 
6799
 
 
6800
 
 
6801
fi
 
6802
if test -z "$ac_cv_prog_LIPO"; then
 
6803
  ac_ct_LIPO=$LIPO
 
6804
  # Extract the first word of "lipo", so it can be a program name with args.
 
6805
set dummy lipo; ac_word=$2
 
6806
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6807
$as_echo_n "checking for $ac_word... " >&6; }
 
6808
if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
 
6809
  $as_echo_n "(cached) " >&6
 
6810
else
 
6811
  if test -n "$ac_ct_LIPO"; then
 
6812
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
 
6813
else
 
6814
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6815
for as_dir in $PATH
 
6816
do
 
6817
  IFS=$as_save_IFS
 
6818
  test -z "$as_dir" && as_dir=.
 
6819
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6820
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6821
    ac_cv_prog_ac_ct_LIPO="lipo"
 
6822
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6823
    break 2
 
6824
  fi
 
6825
done
 
6826
  done
 
6827
IFS=$as_save_IFS
 
6828
 
 
6829
fi
 
6830
fi
 
6831
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
 
6832
if test -n "$ac_ct_LIPO"; then
 
6833
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
 
6834
$as_echo "$ac_ct_LIPO" >&6; }
 
6835
else
 
6836
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6837
$as_echo "no" >&6; }
 
6838
fi
 
6839
 
 
6840
  if test "x$ac_ct_LIPO" = x; then
 
6841
    LIPO=":"
 
6842
  else
 
6843
    case $cross_compiling:$ac_tool_warned in
 
6844
yes:)
 
6845
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6846
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6847
ac_tool_warned=yes ;;
 
6848
esac
 
6849
    LIPO=$ac_ct_LIPO
 
6850
  fi
 
6851
else
 
6852
  LIPO="$ac_cv_prog_LIPO"
 
6853
fi
 
6854
 
 
6855
    if test -n "$ac_tool_prefix"; then
 
6856
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
 
6857
set dummy ${ac_tool_prefix}otool; ac_word=$2
 
6858
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6859
$as_echo_n "checking for $ac_word... " >&6; }
 
6860
if ${ac_cv_prog_OTOOL+:} false; then :
 
6861
  $as_echo_n "(cached) " >&6
 
6862
else
 
6863
  if test -n "$OTOOL"; then
 
6864
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
 
6865
else
 
6866
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6867
for as_dir in $PATH
 
6868
do
 
6869
  IFS=$as_save_IFS
 
6870
  test -z "$as_dir" && as_dir=.
 
6871
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6872
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6873
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
 
6874
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6875
    break 2
 
6876
  fi
 
6877
done
 
6878
  done
 
6879
IFS=$as_save_IFS
 
6880
 
 
6881
fi
 
6882
fi
 
6883
OTOOL=$ac_cv_prog_OTOOL
 
6884
if test -n "$OTOOL"; then
 
6885
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
 
6886
$as_echo "$OTOOL" >&6; }
 
6887
else
 
6888
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6889
$as_echo "no" >&6; }
 
6890
fi
 
6891
 
 
6892
 
 
6893
fi
 
6894
if test -z "$ac_cv_prog_OTOOL"; then
 
6895
  ac_ct_OTOOL=$OTOOL
 
6896
  # Extract the first word of "otool", so it can be a program name with args.
 
6897
set dummy otool; ac_word=$2
 
6898
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6899
$as_echo_n "checking for $ac_word... " >&6; }
 
6900
if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
 
6901
  $as_echo_n "(cached) " >&6
 
6902
else
 
6903
  if test -n "$ac_ct_OTOOL"; then
 
6904
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
 
6905
else
 
6906
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6907
for as_dir in $PATH
 
6908
do
 
6909
  IFS=$as_save_IFS
 
6910
  test -z "$as_dir" && as_dir=.
 
6911
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6912
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6913
    ac_cv_prog_ac_ct_OTOOL="otool"
 
6914
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6915
    break 2
 
6916
  fi
 
6917
done
 
6918
  done
 
6919
IFS=$as_save_IFS
 
6920
 
 
6921
fi
 
6922
fi
 
6923
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
 
6924
if test -n "$ac_ct_OTOOL"; then
 
6925
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
 
6926
$as_echo "$ac_ct_OTOOL" >&6; }
 
6927
else
 
6928
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6929
$as_echo "no" >&6; }
 
6930
fi
 
6931
 
 
6932
  if test "x$ac_ct_OTOOL" = x; then
 
6933
    OTOOL=":"
 
6934
  else
 
6935
    case $cross_compiling:$ac_tool_warned in
 
6936
yes:)
 
6937
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6938
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6939
ac_tool_warned=yes ;;
 
6940
esac
 
6941
    OTOOL=$ac_ct_OTOOL
 
6942
  fi
 
6943
else
 
6944
  OTOOL="$ac_cv_prog_OTOOL"
 
6945
fi
 
6946
 
 
6947
    if test -n "$ac_tool_prefix"; then
 
6948
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
 
6949
set dummy ${ac_tool_prefix}otool64; ac_word=$2
 
6950
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6951
$as_echo_n "checking for $ac_word... " >&6; }
 
6952
if ${ac_cv_prog_OTOOL64+:} false; then :
 
6953
  $as_echo_n "(cached) " >&6
 
6954
else
 
6955
  if test -n "$OTOOL64"; then
 
6956
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
 
6957
else
 
6958
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6959
for as_dir in $PATH
 
6960
do
 
6961
  IFS=$as_save_IFS
 
6962
  test -z "$as_dir" && as_dir=.
 
6963
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6964
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6965
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
 
6966
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6967
    break 2
 
6968
  fi
 
6969
done
 
6970
  done
 
6971
IFS=$as_save_IFS
 
6972
 
 
6973
fi
 
6974
fi
 
6975
OTOOL64=$ac_cv_prog_OTOOL64
 
6976
if test -n "$OTOOL64"; then
 
6977
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
 
6978
$as_echo "$OTOOL64" >&6; }
 
6979
else
 
6980
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6981
$as_echo "no" >&6; }
 
6982
fi
 
6983
 
 
6984
 
 
6985
fi
 
6986
if test -z "$ac_cv_prog_OTOOL64"; then
 
6987
  ac_ct_OTOOL64=$OTOOL64
 
6988
  # Extract the first word of "otool64", so it can be a program name with args.
 
6989
set dummy otool64; ac_word=$2
 
6990
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6991
$as_echo_n "checking for $ac_word... " >&6; }
 
6992
if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
 
6993
  $as_echo_n "(cached) " >&6
 
6994
else
 
6995
  if test -n "$ac_ct_OTOOL64"; then
 
6996
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
 
6997
else
 
6998
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6999
for as_dir in $PATH
 
7000
do
 
7001
  IFS=$as_save_IFS
 
7002
  test -z "$as_dir" && as_dir=.
 
7003
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7004
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7005
    ac_cv_prog_ac_ct_OTOOL64="otool64"
 
7006
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7007
    break 2
 
7008
  fi
 
7009
done
 
7010
  done
 
7011
IFS=$as_save_IFS
 
7012
 
 
7013
fi
 
7014
fi
 
7015
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
 
7016
if test -n "$ac_ct_OTOOL64"; then
 
7017
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
 
7018
$as_echo "$ac_ct_OTOOL64" >&6; }
 
7019
else
 
7020
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7021
$as_echo "no" >&6; }
 
7022
fi
 
7023
 
 
7024
  if test "x$ac_ct_OTOOL64" = x; then
 
7025
    OTOOL64=":"
 
7026
  else
 
7027
    case $cross_compiling:$ac_tool_warned in
 
7028
yes:)
 
7029
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7030
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7031
ac_tool_warned=yes ;;
 
7032
esac
 
7033
    OTOOL64=$ac_ct_OTOOL64
 
7034
  fi
 
7035
else
 
7036
  OTOOL64="$ac_cv_prog_OTOOL64"
 
7037
fi
 
7038
 
 
7039
 
 
7040
 
 
7041
 
 
7042
 
 
7043
 
 
7044
 
 
7045
 
 
7046
 
 
7047
 
 
7048
 
 
7049
 
 
7050
 
 
7051
 
 
7052
 
 
7053
 
 
7054
 
 
7055
 
 
7056
 
 
7057
 
 
7058
 
 
7059
 
 
7060
 
 
7061
 
 
7062
 
 
7063
 
 
7064
 
 
7065
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
 
7066
$as_echo_n "checking for -single_module linker flag... " >&6; }
 
7067
if ${lt_cv_apple_cc_single_mod+:} false; then :
 
7068
  $as_echo_n "(cached) " >&6
 
7069
else
 
7070
  lt_cv_apple_cc_single_mod=no
 
7071
      if test -z "${LT_MULTI_MODULE}"; then
 
7072
        # By default we will add the -single_module flag. You can override
 
7073
        # by either setting the environment variable LT_MULTI_MODULE
 
7074
        # non-empty at configure time, or by adding -multi_module to the
 
7075
        # link flags.
 
7076
        rm -rf libconftest.dylib*
 
7077
        echo "int foo(void){return 1;}" > conftest.c
 
7078
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
7079
-dynamiclib -Wl,-single_module conftest.c" >&5
 
7080
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
7081
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
 
7082
        _lt_result=$?
 
7083
        # If there is a non-empty error log, and "single_module"
 
7084
        # appears in it, assume the flag caused a linker warning
 
7085
        if test -s conftest.err && $GREP single_module conftest.err; then
 
7086
          cat conftest.err >&5
 
7087
        # Otherwise, if the output was created with a 0 exit code from
 
7088
        # the compiler, it worked.
 
7089
        elif test -f libconftest.dylib && test $_lt_result -eq 0; then
 
7090
          lt_cv_apple_cc_single_mod=yes
 
7091
        else
 
7092
          cat conftest.err >&5
 
7093
        fi
 
7094
        rm -rf libconftest.dylib*
 
7095
        rm -f conftest.*
 
7096
      fi
 
7097
fi
 
7098
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
 
7099
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
 
7100
 
 
7101
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
 
7102
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
 
7103
if ${lt_cv_ld_exported_symbols_list+:} false; then :
 
7104
  $as_echo_n "(cached) " >&6
 
7105
else
 
7106
  lt_cv_ld_exported_symbols_list=no
 
7107
      save_LDFLAGS=$LDFLAGS
 
7108
      echo "_main" > conftest.sym
 
7109
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
 
7110
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7111
/* end confdefs.h.  */
 
7112
 
 
7113
int
 
7114
main ()
 
7115
{
 
7116
 
 
7117
  ;
 
7118
  return 0;
 
7119
}
 
7120
_ACEOF
 
7121
if ac_fn_c_try_link "$LINENO"; then :
 
7122
  lt_cv_ld_exported_symbols_list=yes
 
7123
else
 
7124
  lt_cv_ld_exported_symbols_list=no
 
7125
fi
 
7126
rm -f core conftest.err conftest.$ac_objext \
 
7127
    conftest$ac_exeext conftest.$ac_ext
 
7128
        LDFLAGS="$save_LDFLAGS"
 
7129
 
 
7130
fi
 
7131
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
 
7132
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
 
7133
 
 
7134
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
 
7135
$as_echo_n "checking for -force_load linker flag... " >&6; }
 
7136
if ${lt_cv_ld_force_load+:} false; then :
 
7137
  $as_echo_n "(cached) " >&6
 
7138
else
 
7139
  lt_cv_ld_force_load=no
 
7140
      cat > conftest.c << _LT_EOF
 
7141
int forced_loaded() { return 2;}
 
7142
_LT_EOF
 
7143
      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
 
7144
      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
 
7145
      echo "$AR cru libconftest.a conftest.o" >&5
 
7146
      $AR cru libconftest.a conftest.o 2>&5
 
7147
      echo "$RANLIB libconftest.a" >&5
 
7148
      $RANLIB libconftest.a 2>&5
 
7149
      cat > conftest.c << _LT_EOF
 
7150
int main() { return 0;}
 
7151
_LT_EOF
 
7152
      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
 
7153
      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
 
7154
      _lt_result=$?
 
7155
      if test -s conftest.err && $GREP force_load conftest.err; then
 
7156
        cat conftest.err >&5
 
7157
      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
 
7158
        lt_cv_ld_force_load=yes
 
7159
      else
 
7160
        cat conftest.err >&5
 
7161
      fi
 
7162
        rm -f conftest.err libconftest.a conftest conftest.c
 
7163
        rm -rf conftest.dSYM
 
7164
 
 
7165
fi
 
7166
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
 
7167
$as_echo "$lt_cv_ld_force_load" >&6; }
 
7168
    case $host_os in
 
7169
    rhapsody* | darwin1.[012])
 
7170
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
 
7171
    darwin1.*)
 
7172
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
7173
    darwin*) # darwin 5.x on
 
7174
      # if running on 10.5 or later, the deployment target defaults
 
7175
      # to the OS version, if on x86, and 10.4, the deployment
 
7176
      # target defaults to 10.4. Don't you love it?
 
7177
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
 
7178
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
 
7179
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
7180
        10.[012]*)
 
7181
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
7182
        10.*)
 
7183
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
7184
      esac
 
7185
    ;;
 
7186
  esac
 
7187
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
 
7188
      _lt_dar_single_mod='$single_module'
 
7189
    fi
 
7190
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
 
7191
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
 
7192
    else
 
7193
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
7194
    fi
 
7195
    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
 
7196
      _lt_dsymutil='~$DSYMUTIL $lib || :'
 
7197
    else
 
7198
      _lt_dsymutil=
 
7199
    fi
 
7200
    ;;
 
7201
  esac
 
7202
 
 
7203
ac_ext=c
 
7204
ac_cpp='$CPP $CPPFLAGS'
 
7205
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7206
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7207
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7208
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
 
7209
$as_echo_n "checking how to run the C preprocessor... " >&6; }
 
7210
# On Suns, sometimes $CPP names a directory.
 
7211
if test -n "$CPP" && test -d "$CPP"; then
 
7212
  CPP=
 
7213
fi
 
7214
if test -z "$CPP"; then
 
7215
  if ${ac_cv_prog_CPP+:} false; then :
 
7216
  $as_echo_n "(cached) " >&6
 
7217
else
 
7218
      # Double quotes because CPP needs to be expanded
 
7219
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
7220
    do
 
7221
      ac_preproc_ok=false
 
7222
for ac_c_preproc_warn_flag in '' yes
 
7223
do
 
7224
  # Use a header file that comes with gcc, so configuring glibc
 
7225
  # with a fresh cross-compiler works.
 
7226
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
7227
  # <limits.h> exists even on freestanding compilers.
 
7228
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
7229
  # not just through cpp. "Syntax error" is here to catch this case.
 
7230
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7231
/* end confdefs.h.  */
 
7232
#ifdef __STDC__
 
7233
# include <limits.h>
 
7234
#else
 
7235
# include <assert.h>
 
7236
#endif
 
7237
                     Syntax error
 
7238
_ACEOF
 
7239
if ac_fn_c_try_cpp "$LINENO"; then :
 
7240
 
 
7241
else
 
7242
  # Broken: fails on valid input.
 
7243
continue
 
7244
fi
 
7245
rm -f conftest.err conftest.i conftest.$ac_ext
 
7246
 
 
7247
  # OK, works on sane cases.  Now check whether nonexistent headers
 
7248
  # can be detected and how.
 
7249
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7250
/* end confdefs.h.  */
 
7251
#include <ac_nonexistent.h>
 
7252
_ACEOF
 
7253
if ac_fn_c_try_cpp "$LINENO"; then :
 
7254
  # Broken: success on invalid input.
 
7255
continue
 
7256
else
 
7257
  # Passes both tests.
 
7258
ac_preproc_ok=:
 
7259
break
 
7260
fi
 
7261
rm -f conftest.err conftest.i conftest.$ac_ext
 
7262
 
 
7263
done
 
7264
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
7265
rm -f conftest.i conftest.err conftest.$ac_ext
 
7266
if $ac_preproc_ok; then :
 
7267
  break
 
7268
fi
 
7269
 
 
7270
    done
 
7271
    ac_cv_prog_CPP=$CPP
 
7272
 
 
7273
fi
 
7274
  CPP=$ac_cv_prog_CPP
 
7275
else
 
7276
  ac_cv_prog_CPP=$CPP
 
7277
fi
 
7278
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
 
7279
$as_echo "$CPP" >&6; }
 
7280
ac_preproc_ok=false
 
7281
for ac_c_preproc_warn_flag in '' yes
 
7282
do
 
7283
  # Use a header file that comes with gcc, so configuring glibc
 
7284
  # with a fresh cross-compiler works.
 
7285
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
7286
  # <limits.h> exists even on freestanding compilers.
 
7287
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
7288
  # not just through cpp. "Syntax error" is here to catch this case.
 
7289
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7290
/* end confdefs.h.  */
 
7291
#ifdef __STDC__
 
7292
# include <limits.h>
 
7293
#else
 
7294
# include <assert.h>
 
7295
#endif
 
7296
                     Syntax error
 
7297
_ACEOF
 
7298
if ac_fn_c_try_cpp "$LINENO"; then :
 
7299
 
 
7300
else
 
7301
  # Broken: fails on valid input.
 
7302
continue
 
7303
fi
 
7304
rm -f conftest.err conftest.i conftest.$ac_ext
 
7305
 
 
7306
  # OK, works on sane cases.  Now check whether nonexistent headers
 
7307
  # can be detected and how.
 
7308
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7309
/* end confdefs.h.  */
 
7310
#include <ac_nonexistent.h>
 
7311
_ACEOF
 
7312
if ac_fn_c_try_cpp "$LINENO"; then :
 
7313
  # Broken: success on invalid input.
 
7314
continue
 
7315
else
 
7316
  # Passes both tests.
 
7317
ac_preproc_ok=:
 
7318
break
 
7319
fi
 
7320
rm -f conftest.err conftest.i conftest.$ac_ext
 
7321
 
 
7322
done
 
7323
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
7324
rm -f conftest.i conftest.err conftest.$ac_ext
 
7325
if $ac_preproc_ok; then :
 
7326
 
 
7327
else
 
7328
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
7329
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
7330
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
 
7331
See \`config.log' for more details" "$LINENO" 5; }
 
7332
fi
 
7333
 
 
7334
ac_ext=c
 
7335
ac_cpp='$CPP $CPPFLAGS'
 
7336
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7337
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7338
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7339
 
 
7340
 
 
7341
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
 
7342
$as_echo_n "checking for ANSI C header files... " >&6; }
 
7343
if ${ac_cv_header_stdc+:} false; then :
 
7344
  $as_echo_n "(cached) " >&6
 
7345
else
 
7346
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7347
/* end confdefs.h.  */
 
7348
#include <stdlib.h>
 
7349
#include <stdarg.h>
 
7350
#include <string.h>
 
7351
#include <float.h>
 
7352
 
 
7353
int
 
7354
main ()
 
7355
{
 
7356
 
 
7357
  ;
 
7358
  return 0;
 
7359
}
 
7360
_ACEOF
 
7361
if ac_fn_c_try_compile "$LINENO"; then :
 
7362
  ac_cv_header_stdc=yes
 
7363
else
 
7364
  ac_cv_header_stdc=no
 
7365
fi
 
7366
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7367
 
 
7368
if test $ac_cv_header_stdc = yes; then
 
7369
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
7370
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7371
/* end confdefs.h.  */
 
7372
#include <string.h>
 
7373
 
 
7374
_ACEOF
 
7375
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
7376
  $EGREP "memchr" >/dev/null 2>&1; then :
 
7377
 
 
7378
else
 
7379
  ac_cv_header_stdc=no
 
7380
fi
 
7381
rm -f conftest*
 
7382
 
 
7383
fi
 
7384
 
 
7385
if test $ac_cv_header_stdc = yes; then
 
7386
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
7387
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7388
/* end confdefs.h.  */
 
7389
#include <stdlib.h>
 
7390
 
 
7391
_ACEOF
 
7392
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
7393
  $EGREP "free" >/dev/null 2>&1; then :
 
7394
 
 
7395
else
 
7396
  ac_cv_header_stdc=no
 
7397
fi
 
7398
rm -f conftest*
 
7399
 
 
7400
fi
 
7401
 
 
7402
if test $ac_cv_header_stdc = yes; then
 
7403
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
7404
  if test "$cross_compiling" = yes; then :
 
7405
  :
 
7406
else
 
7407
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7408
/* end confdefs.h.  */
 
7409
#include <ctype.h>
 
7410
#include <stdlib.h>
 
7411
#if ((' ' & 0x0FF) == 0x020)
 
7412
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
7413
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
7414
#else
 
7415
# define ISLOWER(c) \
 
7416
                   (('a' <= (c) && (c) <= 'i') \
 
7417
                     || ('j' <= (c) && (c) <= 'r') \
 
7418
                     || ('s' <= (c) && (c) <= 'z'))
 
7419
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
7420
#endif
 
7421
 
 
7422
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
7423
int
 
7424
main ()
 
7425
{
 
7426
  int i;
 
7427
  for (i = 0; i < 256; i++)
 
7428
    if (XOR (islower (i), ISLOWER (i))
 
7429
        || toupper (i) != TOUPPER (i))
 
7430
      return 2;
 
7431
  return 0;
 
7432
}
 
7433
_ACEOF
 
7434
if ac_fn_c_try_run "$LINENO"; then :
 
7435
 
 
7436
else
 
7437
  ac_cv_header_stdc=no
 
7438
fi
 
7439
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
7440
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
7441
fi
 
7442
 
 
7443
fi
 
7444
fi
 
7445
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
 
7446
$as_echo "$ac_cv_header_stdc" >&6; }
 
7447
if test $ac_cv_header_stdc = yes; then
 
7448
 
 
7449
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
 
7450
 
 
7451
fi
 
7452
 
 
7453
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
7454
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
7455
                  inttypes.h stdint.h unistd.h
 
7456
do :
 
7457
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
7458
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
 
7459
"
 
7460
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 
7461
  cat >>confdefs.h <<_ACEOF
 
7462
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
7463
_ACEOF
 
7464
 
 
7465
fi
 
7466
 
 
7467
done
 
7468
 
 
7469
 
 
7470
for ac_header in dlfcn.h
 
7471
do :
 
7472
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
 
7473
"
 
7474
if test "x$ac_cv_header_dlfcn_h" = xyes; then :
 
7475
  cat >>confdefs.h <<_ACEOF
 
7476
#define HAVE_DLFCN_H 1
 
7477
_ACEOF
 
7478
 
 
7479
fi
 
7480
 
 
7481
done
 
7482
 
 
7483
 
 
7484
 
 
7485
 
 
7486
 
 
7487
# Set options
 
7488
 
 
7489
 
 
7490
 
 
7491
        enable_dlopen=no
 
7492
 
 
7493
 
 
7494
  enable_win32_dll=no
 
7495
 
 
7496
 
 
7497
            # Check whether --enable-shared was given.
 
7498
if test "${enable_shared+set}" = set; then :
 
7499
  enableval=$enable_shared; p=${PACKAGE-default}
 
7500
    case $enableval in
 
7501
    yes) enable_shared=yes ;;
 
7502
    no) enable_shared=no ;;
 
7503
    *)
 
7504
      enable_shared=no
 
7505
      # Look at the argument we got.  We use all the common list separators.
 
7506
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7507
      for pkg in $enableval; do
 
7508
        IFS="$lt_save_ifs"
 
7509
        if test "X$pkg" = "X$p"; then
 
7510
          enable_shared=yes
 
7511
        fi
 
7512
      done
 
7513
      IFS="$lt_save_ifs"
 
7514
      ;;
 
7515
    esac
 
7516
else
 
7517
  enable_shared=yes
 
7518
fi
 
7519
 
 
7520
 
 
7521
 
 
7522
 
 
7523
 
 
7524
 
 
7525
 
 
7526
 
 
7527
 
 
7528
 
 
7529
 
 
7530
# Check whether --with-pic was given.
 
7531
if test "${with_pic+set}" = set; then :
 
7532
  withval=$with_pic; lt_p=${PACKAGE-default}
 
7533
    case $withval in
 
7534
    yes|no) pic_mode=$withval ;;
 
7535
    *)
 
7536
      pic_mode=default
 
7537
      # Look at the argument we got.  We use all the common list separators.
 
7538
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7539
      for lt_pkg in $withval; do
 
7540
        IFS="$lt_save_ifs"
 
7541
        if test "X$lt_pkg" = "X$lt_p"; then
 
7542
          pic_mode=yes
 
7543
        fi
 
7544
      done
 
7545
      IFS="$lt_save_ifs"
 
7546
      ;;
 
7547
    esac
 
7548
else
 
7549
  pic_mode=default
 
7550
fi
 
7551
 
 
7552
 
 
7553
test -z "$pic_mode" && pic_mode=default
 
7554
 
 
7555
 
 
7556
 
 
7557
 
 
7558
 
 
7559
 
 
7560
 
 
7561
  # Check whether --enable-fast-install was given.
 
7562
if test "${enable_fast_install+set}" = set; then :
 
7563
  enableval=$enable_fast_install; p=${PACKAGE-default}
 
7564
    case $enableval in
 
7565
    yes) enable_fast_install=yes ;;
 
7566
    no) enable_fast_install=no ;;
 
7567
    *)
 
7568
      enable_fast_install=no
 
7569
      # Look at the argument we got.  We use all the common list separators.
 
7570
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7571
      for pkg in $enableval; do
 
7572
        IFS="$lt_save_ifs"
 
7573
        if test "X$pkg" = "X$p"; then
 
7574
          enable_fast_install=yes
 
7575
        fi
 
7576
      done
 
7577
      IFS="$lt_save_ifs"
 
7578
      ;;
 
7579
    esac
 
7580
else
 
7581
  enable_fast_install=yes
 
7582
fi
 
7583
 
 
7584
 
 
7585
 
 
7586
 
 
7587
 
 
7588
 
 
7589
 
 
7590
 
 
7591
 
 
7592
 
 
7593
 
 
7594
# This can be used to rebuild libtool when needed
 
7595
LIBTOOL_DEPS="$ltmain"
 
7596
 
 
7597
# Always use our own libtool.
 
7598
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
7599
 
 
7600
 
 
7601
 
 
7602
 
 
7603
 
 
7604
 
 
7605
 
 
7606
 
 
7607
 
 
7608
 
 
7609
 
 
7610
 
 
7611
 
 
7612
 
 
7613
 
 
7614
 
 
7615
 
 
7616
 
 
7617
 
 
7618
 
 
7619
 
 
7620
 
 
7621
 
 
7622
 
 
7623
 
 
7624
 
 
7625
 
 
7626
 
 
7627
 
 
7628
 
 
7629
test -z "$LN_S" && LN_S="ln -s"
 
7630
 
 
7631
 
 
7632
 
 
7633
 
 
7634
 
 
7635
 
 
7636
 
 
7637
 
 
7638
 
 
7639
 
 
7640
 
 
7641
 
 
7642
 
 
7643
 
 
7644
if test -n "${ZSH_VERSION+set}" ; then
 
7645
   setopt NO_GLOB_SUBST
 
7646
fi
 
7647
 
 
7648
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
 
7649
$as_echo_n "checking for objdir... " >&6; }
 
7650
if ${lt_cv_objdir+:} false; then :
 
7651
  $as_echo_n "(cached) " >&6
 
7652
else
 
7653
  rm -f .libs 2>/dev/null
 
7654
mkdir .libs 2>/dev/null
 
7655
if test -d .libs; then
 
7656
  lt_cv_objdir=.libs
 
7657
else
 
7658
  # MS-DOS does not allow filenames that begin with a dot.
 
7659
  lt_cv_objdir=_libs
 
7660
fi
 
7661
rmdir .libs 2>/dev/null
 
7662
fi
 
7663
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
 
7664
$as_echo "$lt_cv_objdir" >&6; }
 
7665
objdir=$lt_cv_objdir
 
7666
 
 
7667
 
 
7668
 
 
7669
 
 
7670
 
 
7671
cat >>confdefs.h <<_ACEOF
 
7672
#define LT_OBJDIR "$lt_cv_objdir/"
 
7673
_ACEOF
 
7674
 
 
7675
 
 
7676
 
 
7677
 
 
7678
case $host_os in
 
7679
aix3*)
 
7680
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
7681
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
7682
  # vanish in a puff of smoke.
 
7683
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
7684
    COLLECT_NAMES=
 
7685
    export COLLECT_NAMES
 
7686
  fi
 
7687
  ;;
 
7688
esac
 
7689
 
 
7690
# Global variables:
 
7691
ofile=libtool
 
7692
can_build_shared=yes
 
7693
 
 
7694
# All known linkers require a `.a' archive for static linking (except MSVC,
 
7695
# which needs '.lib').
 
7696
libext=a
 
7697
 
 
7698
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
7699
 
 
7700
old_CC="$CC"
 
7701
old_CFLAGS="$CFLAGS"
 
7702
 
 
7703
# Set sane defaults for various variables
 
7704
test -z "$CC" && CC=cc
 
7705
test -z "$LTCC" && LTCC=$CC
 
7706
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
7707
test -z "$LD" && LD=ld
 
7708
test -z "$ac_objext" && ac_objext=o
 
7709
 
 
7710
for cc_temp in $compiler""; do
 
7711
  case $cc_temp in
 
7712
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
7713
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
7714
    \-*) ;;
 
7715
    *) break;;
 
7716
  esac
 
7717
done
 
7718
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
 
7719
 
 
7720
 
 
7721
# Only perform the check for file, if the check method requires it
 
7722
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
7723
case $deplibs_check_method in
 
7724
file_magic*)
 
7725
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
7726
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
 
7727
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
 
7728
if ${lt_cv_path_MAGIC_CMD+:} false; then :
 
7729
  $as_echo_n "(cached) " >&6
 
7730
else
 
7731
  case $MAGIC_CMD in
 
7732
[\\/*] |  ?:[\\/]*)
 
7733
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
7734
  ;;
 
7735
*)
 
7736
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
7737
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
7738
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
7739
  for ac_dir in $ac_dummy; do
 
7740
    IFS="$lt_save_ifs"
 
7741
    test -z "$ac_dir" && ac_dir=.
 
7742
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
7743
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
7744
      if test -n "$file_magic_test_file"; then
 
7745
        case $deplibs_check_method in
 
7746
        "file_magic "*)
 
7747
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
7748
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7749
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
7750
            $EGREP "$file_magic_regex" > /dev/null; then
 
7751
            :
 
7752
          else
 
7753
            cat <<_LT_EOF 1>&2
 
7754
 
 
7755
*** Warning: the command libtool uses to detect shared libraries,
 
7756
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
7757
*** The result is that libtool may fail to recognize shared libraries
 
7758
*** as such.  This will affect the creation of libtool libraries that
 
7759
*** depend on shared libraries, but programs linked with such libtool
 
7760
*** libraries will work regardless of this problem.  Nevertheless, you
 
7761
*** may want to report the problem to your system manager and/or to
 
7762
*** bug-libtool@gnu.org
 
7763
 
 
7764
_LT_EOF
 
7765
          fi ;;
 
7766
        esac
 
7767
      fi
 
7768
      break
 
7769
    fi
 
7770
  done
 
7771
  IFS="$lt_save_ifs"
 
7772
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
7773
  ;;
 
7774
esac
 
7775
fi
 
7776
 
 
7777
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7778
if test -n "$MAGIC_CMD"; then
 
7779
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
 
7780
$as_echo "$MAGIC_CMD" >&6; }
 
7781
else
 
7782
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7783
$as_echo "no" >&6; }
 
7784
fi
 
7785
 
 
7786
 
 
7787
 
 
7788
 
 
7789
 
 
7790
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
7791
  if test -n "$ac_tool_prefix"; then
 
7792
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
 
7793
$as_echo_n "checking for file... " >&6; }
 
7794
if ${lt_cv_path_MAGIC_CMD+:} false; then :
 
7795
  $as_echo_n "(cached) " >&6
 
7796
else
 
7797
  case $MAGIC_CMD in
 
7798
[\\/*] |  ?:[\\/]*)
 
7799
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
7800
  ;;
 
7801
*)
 
7802
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
7803
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
7804
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
7805
  for ac_dir in $ac_dummy; do
 
7806
    IFS="$lt_save_ifs"
 
7807
    test -z "$ac_dir" && ac_dir=.
 
7808
    if test -f $ac_dir/file; then
 
7809
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
7810
      if test -n "$file_magic_test_file"; then
 
7811
        case $deplibs_check_method in
 
7812
        "file_magic "*)
 
7813
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
7814
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7815
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
7816
            $EGREP "$file_magic_regex" > /dev/null; then
 
7817
            :
 
7818
          else
 
7819
            cat <<_LT_EOF 1>&2
 
7820
 
 
7821
*** Warning: the command libtool uses to detect shared libraries,
 
7822
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
7823
*** The result is that libtool may fail to recognize shared libraries
 
7824
*** as such.  This will affect the creation of libtool libraries that
 
7825
*** depend on shared libraries, but programs linked with such libtool
 
7826
*** libraries will work regardless of this problem.  Nevertheless, you
 
7827
*** may want to report the problem to your system manager and/or to
 
7828
*** bug-libtool@gnu.org
 
7829
 
 
7830
_LT_EOF
 
7831
          fi ;;
 
7832
        esac
 
7833
      fi
 
7834
      break
 
7835
    fi
 
7836
  done
 
7837
  IFS="$lt_save_ifs"
 
7838
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
7839
  ;;
 
7840
esac
 
7841
fi
 
7842
 
 
7843
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7844
if test -n "$MAGIC_CMD"; then
 
7845
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
 
7846
$as_echo "$MAGIC_CMD" >&6; }
 
7847
else
 
7848
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7849
$as_echo "no" >&6; }
 
7850
fi
 
7851
 
 
7852
 
 
7853
  else
 
7854
    MAGIC_CMD=:
 
7855
  fi
 
7856
fi
 
7857
 
 
7858
  fi
 
7859
  ;;
 
7860
esac
 
7861
 
 
7862
# Use C for the default configuration in the libtool script
 
7863
 
 
7864
lt_save_CC="$CC"
 
7865
ac_ext=c
 
7866
ac_cpp='$CPP $CPPFLAGS'
 
7867
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7868
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7869
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7870
 
 
7871
 
 
7872
# Source file extension for C test sources.
 
7873
ac_ext=c
 
7874
 
 
7875
# Object file extension for compiled C test sources.
 
7876
objext=o
 
7877
objext=$objext
 
7878
 
 
7879
# Code to be used in simple compile tests
 
7880
lt_simple_compile_test_code="int some_variable = 0;"
 
7881
 
 
7882
# Code to be used in simple link tests
 
7883
lt_simple_link_test_code='int main(){return(0);}'
 
7884
 
 
7885
 
 
7886
 
 
7887
 
 
7888
 
 
7889
 
 
7890
 
 
7891
# If no C compiler was specified, use CC.
 
7892
LTCC=${LTCC-"$CC"}
 
7893
 
 
7894
# If no C compiler flags were specified, use CFLAGS.
 
7895
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
7896
 
 
7897
# Allow CC to be a program name with arguments.
 
7898
compiler=$CC
 
7899
 
 
7900
# Save the default compiler, since it gets overwritten when the other
 
7901
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
 
7902
compiler_DEFAULT=$CC
 
7903
 
 
7904
# save warnings/boilerplate of simple test code
 
7905
ac_outfile=conftest.$ac_objext
 
7906
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
7907
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
7908
_lt_compiler_boilerplate=`cat conftest.err`
 
7909
$RM conftest*
 
7910
 
 
7911
ac_outfile=conftest.$ac_objext
 
7912
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
7913
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
7914
_lt_linker_boilerplate=`cat conftest.err`
 
7915
$RM -r conftest*
 
7916
 
 
7917
 
 
7918
if test -n "$compiler"; then
 
7919
 
 
7920
lt_prog_compiler_no_builtin_flag=
 
7921
 
 
7922
if test "$GCC" = yes; then
 
7923
  case $cc_basename in
 
7924
  nvcc*)
 
7925
    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
 
7926
  *)
 
7927
    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
 
7928
  esac
 
7929
 
 
7930
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
7931
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
 
7932
if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
 
7933
  $as_echo_n "(cached) " >&6
 
7934
else
 
7935
  lt_cv_prog_compiler_rtti_exceptions=no
 
7936
   ac_outfile=conftest.$ac_objext
 
7937
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7938
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
7939
   # Insert the option either (1) after the last *FLAGS variable, or
 
7940
   # (2) before a word containing "conftest.", or (3) at the end.
 
7941
   # Note that $ac_compile itself does not contain backslashes and begins
 
7942
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7943
   # The option is referenced via a variable to avoid confusing sed.
 
7944
   lt_compile=`echo "$ac_compile" | $SED \
 
7945
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
7946
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7947
   -e 's:$: $lt_compiler_flag:'`
 
7948
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
7949
   (eval "$lt_compile" 2>conftest.err)
 
7950
   ac_status=$?
 
7951
   cat conftest.err >&5
 
7952
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7953
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
7954
     # The compiler can only warn and ignore the option if not recognized
 
7955
     # So say no if there are warnings other than the usual output.
 
7956
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
 
7957
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
7958
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
7959
       lt_cv_prog_compiler_rtti_exceptions=yes
 
7960
     fi
 
7961
   fi
 
7962
   $RM conftest*
 
7963
 
 
7964
fi
 
7965
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
7966
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
7967
 
 
7968
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
7969
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
7970
else
 
7971
    :
 
7972
fi
 
7973
 
 
7974
fi
 
7975
 
 
7976
 
 
7977
 
 
7978
 
 
7979
 
 
7980
 
 
7981
  lt_prog_compiler_wl=
 
7982
lt_prog_compiler_pic=
 
7983
lt_prog_compiler_static=
 
7984
 
 
7985
 
 
7986
  if test "$GCC" = yes; then
 
7987
    lt_prog_compiler_wl='-Wl,'
 
7988
    lt_prog_compiler_static='-static'
 
7989
 
 
7990
    case $host_os in
 
7991
      aix*)
 
7992
      # All AIX code is PIC.
 
7993
      if test "$host_cpu" = ia64; then
 
7994
        # AIX 5 now supports IA64 processor
 
7995
        lt_prog_compiler_static='-Bstatic'
 
7996
      fi
 
7997
      ;;
 
7998
 
 
7999
    amigaos*)
 
8000
      case $host_cpu in
 
8001
      powerpc)
 
8002
            # see comment about AmigaOS4 .so support
 
8003
            lt_prog_compiler_pic='-fPIC'
 
8004
        ;;
 
8005
      m68k)
 
8006
            # FIXME: we need at least 68020 code to build shared libraries, but
 
8007
            # adding the `-m68020' flag to GCC prevents building anything better,
 
8008
            # like `-m68040'.
 
8009
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
8010
        ;;
 
8011
      esac
 
8012
      ;;
 
8013
 
 
8014
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
8015
      # PIC is the default for these OSes.
 
8016
      ;;
 
8017
 
 
8018
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
8019
      # This hack is so that the source file can tell whether it is being
 
8020
      # built for inclusion in a dll (and should export symbols for example).
 
8021
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
8022
      # (--disable-auto-import) libraries
 
8023
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
8024
      ;;
 
8025
 
 
8026
    darwin* | rhapsody*)
 
8027
      # PIC is the default on this platform
 
8028
      # Common symbols not allowed in MH_DYLIB files
 
8029
      lt_prog_compiler_pic='-fno-common'
 
8030
      ;;
 
8031
 
 
8032
    haiku*)
 
8033
      # PIC is the default for Haiku.
 
8034
      # The "-static" flag exists, but is broken.
 
8035
      lt_prog_compiler_static=
 
8036
      ;;
 
8037
 
 
8038
    hpux*)
 
8039
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
8040
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
8041
      # sets the default TLS model and affects inlining.
 
8042
      case $host_cpu in
 
8043
      hppa*64*)
 
8044
        # +Z the default
 
8045
        ;;
 
8046
      *)
 
8047
        lt_prog_compiler_pic='-fPIC'
 
8048
        ;;
 
8049
      esac
 
8050
      ;;
 
8051
 
 
8052
    interix[3-9]*)
 
8053
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
8054
      # Instead, we relocate shared libraries at runtime.
 
8055
      ;;
 
8056
 
 
8057
    msdosdjgpp*)
 
8058
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
8059
      # on systems that don't support them.
 
8060
      lt_prog_compiler_can_build_shared=no
 
8061
      enable_shared=no
 
8062
      ;;
 
8063
 
 
8064
    *nto* | *qnx*)
 
8065
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
8066
      # it will coredump.
 
8067
      lt_prog_compiler_pic='-fPIC -shared'
 
8068
      ;;
 
8069
 
 
8070
    sysv4*MP*)
 
8071
      if test -d /usr/nec; then
 
8072
        lt_prog_compiler_pic=-Kconform_pic
 
8073
      fi
 
8074
      ;;
 
8075
 
 
8076
    *)
 
8077
      lt_prog_compiler_pic='-fPIC'
 
8078
      ;;
 
8079
    esac
 
8080
 
 
8081
    case $cc_basename in
 
8082
    nvcc*) # Cuda Compiler Driver 2.2
 
8083
      lt_prog_compiler_wl='-Xlinker '
 
8084
      if test -n "$lt_prog_compiler_pic"; then
 
8085
        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
 
8086
      fi
 
8087
      ;;
 
8088
    esac
 
8089
  else
 
8090
    # PORTME Check for flag to pass linker flags through the system compiler.
 
8091
    case $host_os in
 
8092
    aix*)
 
8093
      lt_prog_compiler_wl='-Wl,'
 
8094
      if test "$host_cpu" = ia64; then
 
8095
        # AIX 5 now supports IA64 processor
 
8096
        lt_prog_compiler_static='-Bstatic'
 
8097
      else
 
8098
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
8099
      fi
 
8100
      ;;
 
8101
 
 
8102
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
8103
      # This hack is so that the source file can tell whether it is being
 
8104
      # built for inclusion in a dll (and should export symbols for example).
 
8105
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
8106
      ;;
 
8107
 
 
8108
    hpux9* | hpux10* | hpux11*)
 
8109
      lt_prog_compiler_wl='-Wl,'
 
8110
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
8111
      # not for PA HP-UX.
 
8112
      case $host_cpu in
 
8113
      hppa*64*|ia64*)
 
8114
        # +Z the default
 
8115
        ;;
 
8116
      *)
 
8117
        lt_prog_compiler_pic='+Z'
 
8118
        ;;
 
8119
      esac
 
8120
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
8121
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
8122
      ;;
 
8123
 
 
8124
    irix5* | irix6* | nonstopux*)
 
8125
      lt_prog_compiler_wl='-Wl,'
 
8126
      # PIC (with -KPIC) is the default.
 
8127
      lt_prog_compiler_static='-non_shared'
 
8128
      ;;
 
8129
 
 
8130
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
8131
      case $cc_basename in
 
8132
      # old Intel for x86_64 which still supported -KPIC.
 
8133
      ecc*)
 
8134
        lt_prog_compiler_wl='-Wl,'
 
8135
        lt_prog_compiler_pic='-KPIC'
 
8136
        lt_prog_compiler_static='-static'
 
8137
        ;;
 
8138
      # icc used to be incompatible with GCC.
 
8139
      # ICC 10 doesn't accept -KPIC any more.
 
8140
      icc* | ifort*)
 
8141
        lt_prog_compiler_wl='-Wl,'
 
8142
        lt_prog_compiler_pic='-fPIC'
 
8143
        lt_prog_compiler_static='-static'
 
8144
        ;;
 
8145
      # Lahey Fortran 8.1.
 
8146
      lf95*)
 
8147
        lt_prog_compiler_wl='-Wl,'
 
8148
        lt_prog_compiler_pic='--shared'
 
8149
        lt_prog_compiler_static='--static'
 
8150
        ;;
 
8151
      nagfor*)
 
8152
        # NAG Fortran compiler
 
8153
        lt_prog_compiler_wl='-Wl,-Wl,,'
 
8154
        lt_prog_compiler_pic='-PIC'
 
8155
        lt_prog_compiler_static='-Bstatic'
 
8156
        ;;
 
8157
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
 
8158
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
8159
        # which looks to be a dead project)
 
8160
        lt_prog_compiler_wl='-Wl,'
 
8161
        lt_prog_compiler_pic='-fpic'
 
8162
        lt_prog_compiler_static='-Bstatic'
 
8163
        ;;
 
8164
      ccc*)
 
8165
        lt_prog_compiler_wl='-Wl,'
 
8166
        # All Alpha code is PIC.
 
8167
        lt_prog_compiler_static='-non_shared'
 
8168
        ;;
 
8169
      xl* | bgxl* | bgf* | mpixl*)
 
8170
        # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
 
8171
        lt_prog_compiler_wl='-Wl,'
 
8172
        lt_prog_compiler_pic='-qpic'
 
8173
        lt_prog_compiler_static='-qstaticlink'
 
8174
        ;;
 
8175
      *)
 
8176
        case `$CC -V 2>&1 | sed 5q` in
 
8177
        *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
 
8178
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
8179
          lt_prog_compiler_pic='-KPIC'
 
8180
          lt_prog_compiler_static='-Bstatic'
 
8181
          lt_prog_compiler_wl=''
 
8182
          ;;
 
8183
        *Sun\ F* | *Sun*Fortran*)
 
8184
          lt_prog_compiler_pic='-KPIC'
 
8185
          lt_prog_compiler_static='-Bstatic'
 
8186
          lt_prog_compiler_wl='-Qoption ld '
 
8187
          ;;
 
8188
        *Sun\ C*)
 
8189
          # Sun C 5.9
 
8190
          lt_prog_compiler_pic='-KPIC'
 
8191
          lt_prog_compiler_static='-Bstatic'
 
8192
          lt_prog_compiler_wl='-Wl,'
 
8193
          ;;
 
8194
        *Intel*\ [CF]*Compiler*)
 
8195
          lt_prog_compiler_wl='-Wl,'
 
8196
          lt_prog_compiler_pic='-fPIC'
 
8197
          lt_prog_compiler_static='-static'
 
8198
          ;;
 
8199
        *Portland\ Group*)
 
8200
          lt_prog_compiler_wl='-Wl,'
 
8201
          lt_prog_compiler_pic='-fpic'
 
8202
          lt_prog_compiler_static='-Bstatic'
 
8203
          ;;
 
8204
        esac
 
8205
        ;;
 
8206
      esac
 
8207
      ;;
 
8208
 
 
8209
    newsos6)
 
8210
      lt_prog_compiler_pic='-KPIC'
 
8211
      lt_prog_compiler_static='-Bstatic'
 
8212
      ;;
 
8213
 
 
8214
    *nto* | *qnx*)
 
8215
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
8216
      # it will coredump.
 
8217
      lt_prog_compiler_pic='-fPIC -shared'
 
8218
      ;;
 
8219
 
 
8220
    osf3* | osf4* | osf5*)
 
8221
      lt_prog_compiler_wl='-Wl,'
 
8222
      # All OSF/1 code is PIC.
 
8223
      lt_prog_compiler_static='-non_shared'
 
8224
      ;;
 
8225
 
 
8226
    rdos*)
 
8227
      lt_prog_compiler_static='-non_shared'
 
8228
      ;;
 
8229
 
 
8230
    solaris*)
 
8231
      lt_prog_compiler_pic='-KPIC'
 
8232
      lt_prog_compiler_static='-Bstatic'
 
8233
      case $cc_basename in
 
8234
      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
 
8235
        lt_prog_compiler_wl='-Qoption ld ';;
 
8236
      *)
 
8237
        lt_prog_compiler_wl='-Wl,';;
 
8238
      esac
 
8239
      ;;
 
8240
 
 
8241
    sunos4*)
 
8242
      lt_prog_compiler_wl='-Qoption ld '
 
8243
      lt_prog_compiler_pic='-PIC'
 
8244
      lt_prog_compiler_static='-Bstatic'
 
8245
      ;;
 
8246
 
 
8247
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
8248
      lt_prog_compiler_wl='-Wl,'
 
8249
      lt_prog_compiler_pic='-KPIC'
 
8250
      lt_prog_compiler_static='-Bstatic'
 
8251
      ;;
 
8252
 
 
8253
    sysv4*MP*)
 
8254
      if test -d /usr/nec ;then
 
8255
        lt_prog_compiler_pic='-Kconform_pic'
 
8256
        lt_prog_compiler_static='-Bstatic'
 
8257
      fi
 
8258
      ;;
 
8259
 
 
8260
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
8261
      lt_prog_compiler_wl='-Wl,'
 
8262
      lt_prog_compiler_pic='-KPIC'
 
8263
      lt_prog_compiler_static='-Bstatic'
 
8264
      ;;
 
8265
 
 
8266
    unicos*)
 
8267
      lt_prog_compiler_wl='-Wl,'
 
8268
      lt_prog_compiler_can_build_shared=no
 
8269
      ;;
 
8270
 
 
8271
    uts4*)
 
8272
      lt_prog_compiler_pic='-pic'
 
8273
      lt_prog_compiler_static='-Bstatic'
 
8274
      ;;
 
8275
 
 
8276
    *)
 
8277
      lt_prog_compiler_can_build_shared=no
 
8278
      ;;
 
8279
    esac
 
8280
  fi
 
8281
 
 
8282
case $host_os in
 
8283
  # For platforms which do not support PIC, -DPIC is meaningless:
 
8284
  *djgpp*)
 
8285
    lt_prog_compiler_pic=
 
8286
    ;;
 
8287
  *)
 
8288
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
8289
    ;;
 
8290
esac
 
8291
 
 
8292
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
 
8293
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
8294
if ${lt_cv_prog_compiler_pic+:} false; then :
 
8295
  $as_echo_n "(cached) " >&6
 
8296
else
 
8297
  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
 
8298
fi
 
8299
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
 
8300
$as_echo "$lt_cv_prog_compiler_pic" >&6; }
 
8301
lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
 
8302
 
 
8303
#
 
8304
# Check to make sure the PIC flag actually works.
 
8305
#
 
8306
if test -n "$lt_prog_compiler_pic"; then
 
8307
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
8308
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
 
8309
if ${lt_cv_prog_compiler_pic_works+:} false; then :
 
8310
  $as_echo_n "(cached) " >&6
 
8311
else
 
8312
  lt_cv_prog_compiler_pic_works=no
 
8313
   ac_outfile=conftest.$ac_objext
 
8314
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8315
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
8316
   # Insert the option either (1) after the last *FLAGS variable, or
 
8317
   # (2) before a word containing "conftest.", or (3) at the end.
 
8318
   # Note that $ac_compile itself does not contain backslashes and begins
 
8319
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8320
   # The option is referenced via a variable to avoid confusing sed.
 
8321
   lt_compile=`echo "$ac_compile" | $SED \
 
8322
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8323
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8324
   -e 's:$: $lt_compiler_flag:'`
 
8325
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
8326
   (eval "$lt_compile" 2>conftest.err)
 
8327
   ac_status=$?
 
8328
   cat conftest.err >&5
 
8329
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8330
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
8331
     # The compiler can only warn and ignore the option if not recognized
 
8332
     # So say no if there are warnings other than the usual output.
 
8333
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
 
8334
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
8335
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
8336
       lt_cv_prog_compiler_pic_works=yes
 
8337
     fi
 
8338
   fi
 
8339
   $RM conftest*
 
8340
 
 
8341
fi
 
8342
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
 
8343
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
 
8344
 
 
8345
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
 
8346
    case $lt_prog_compiler_pic in
 
8347
     "" | " "*) ;;
 
8348
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
8349
     esac
 
8350
else
 
8351
    lt_prog_compiler_pic=
 
8352
     lt_prog_compiler_can_build_shared=no
 
8353
fi
 
8354
 
 
8355
fi
 
8356
 
 
8357
 
 
8358
 
 
8359
 
 
8360
 
 
8361
 
 
8362
 
 
8363
 
 
8364
 
 
8365
 
 
8366
 
 
8367
#
 
8368
# Check to make sure the static flag actually works.
 
8369
#
 
8370
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
 
8371
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
8372
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
8373
if ${lt_cv_prog_compiler_static_works+:} false; then :
 
8374
  $as_echo_n "(cached) " >&6
 
8375
else
 
8376
  lt_cv_prog_compiler_static_works=no
 
8377
   save_LDFLAGS="$LDFLAGS"
 
8378
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
8379
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
8380
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
8381
     # The linker can only warn and ignore the option if not recognized
 
8382
     # So say no if there are warnings
 
8383
     if test -s conftest.err; then
 
8384
       # Append any errors to the config.log.
 
8385
       cat conftest.err 1>&5
 
8386
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
 
8387
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
8388
       if diff conftest.exp conftest.er2 >/dev/null; then
 
8389
         lt_cv_prog_compiler_static_works=yes
 
8390
       fi
 
8391
     else
 
8392
       lt_cv_prog_compiler_static_works=yes
 
8393
     fi
 
8394
   fi
 
8395
   $RM -r conftest*
 
8396
   LDFLAGS="$save_LDFLAGS"
 
8397
 
 
8398
fi
 
8399
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
 
8400
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
 
8401
 
 
8402
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
 
8403
    :
 
8404
else
 
8405
    lt_prog_compiler_static=
 
8406
fi
 
8407
 
 
8408
 
 
8409
 
 
8410
 
 
8411
 
 
8412
 
 
8413
 
 
8414
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
8415
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
8416
if ${lt_cv_prog_compiler_c_o+:} false; then :
 
8417
  $as_echo_n "(cached) " >&6
 
8418
else
 
8419
  lt_cv_prog_compiler_c_o=no
 
8420
   $RM -r conftest 2>/dev/null
 
8421
   mkdir conftest
 
8422
   cd conftest
 
8423
   mkdir out
 
8424
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8425
 
 
8426
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
8427
   # Insert the option either (1) after the last *FLAGS variable, or
 
8428
   # (2) before a word containing "conftest.", or (3) at the end.
 
8429
   # Note that $ac_compile itself does not contain backslashes and begins
 
8430
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8431
   lt_compile=`echo "$ac_compile" | $SED \
 
8432
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8433
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8434
   -e 's:$: $lt_compiler_flag:'`
 
8435
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
8436
   (eval "$lt_compile" 2>out/conftest.err)
 
8437
   ac_status=$?
 
8438
   cat out/conftest.err >&5
 
8439
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8440
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
8441
   then
 
8442
     # The compiler can only warn and ignore the option if not recognized
 
8443
     # So say no if there are warnings
 
8444
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
 
8445
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
8446
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
8447
       lt_cv_prog_compiler_c_o=yes
 
8448
     fi
 
8449
   fi
 
8450
   chmod u+w . 2>&5
 
8451
   $RM conftest*
 
8452
   # SGI C++ compiler will create directory out/ii_files/ for
 
8453
   # template instantiation
 
8454
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
8455
   $RM out/* && rmdir out
 
8456
   cd ..
 
8457
   $RM -r conftest
 
8458
   $RM conftest*
 
8459
 
 
8460
fi
 
8461
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
 
8462
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
8463
 
 
8464
 
 
8465
 
 
8466
 
 
8467
 
 
8468
 
 
8469
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
8470
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
8471
if ${lt_cv_prog_compiler_c_o+:} false; then :
 
8472
  $as_echo_n "(cached) " >&6
 
8473
else
 
8474
  lt_cv_prog_compiler_c_o=no
 
8475
   $RM -r conftest 2>/dev/null
 
8476
   mkdir conftest
 
8477
   cd conftest
 
8478
   mkdir out
 
8479
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8480
 
 
8481
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
8482
   # Insert the option either (1) after the last *FLAGS variable, or
 
8483
   # (2) before a word containing "conftest.", or (3) at the end.
 
8484
   # Note that $ac_compile itself does not contain backslashes and begins
 
8485
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8486
   lt_compile=`echo "$ac_compile" | $SED \
 
8487
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8488
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8489
   -e 's:$: $lt_compiler_flag:'`
 
8490
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
8491
   (eval "$lt_compile" 2>out/conftest.err)
 
8492
   ac_status=$?
 
8493
   cat out/conftest.err >&5
 
8494
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8495
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
8496
   then
 
8497
     # The compiler can only warn and ignore the option if not recognized
 
8498
     # So say no if there are warnings
 
8499
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
 
8500
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
8501
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
8502
       lt_cv_prog_compiler_c_o=yes
 
8503
     fi
 
8504
   fi
 
8505
   chmod u+w . 2>&5
 
8506
   $RM conftest*
 
8507
   # SGI C++ compiler will create directory out/ii_files/ for
 
8508
   # template instantiation
 
8509
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
8510
   $RM out/* && rmdir out
 
8511
   cd ..
 
8512
   $RM -r conftest
 
8513
   $RM conftest*
 
8514
 
 
8515
fi
 
8516
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
 
8517
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
8518
 
 
8519
 
 
8520
 
 
8521
 
 
8522
hard_links="nottested"
 
8523
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
8524
  # do not overwrite the value of need_locks provided by the user
 
8525
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
 
8526
$as_echo_n "checking if we can lock with hard links... " >&6; }
 
8527
  hard_links=yes
 
8528
  $RM conftest*
 
8529
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
8530
  touch conftest.a
 
8531
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
8532
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
8533
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
 
8534
$as_echo "$hard_links" >&6; }
 
8535
  if test "$hard_links" = no; then
 
8536
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
8537
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
8538
    need_locks=warn
 
8539
  fi
 
8540
else
 
8541
  need_locks=no
 
8542
fi
 
8543
 
 
8544
 
 
8545
 
 
8546
 
 
8547
 
 
8548
 
 
8549
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
8550
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
8551
 
 
8552
  runpath_var=
 
8553
  allow_undefined_flag=
 
8554
  always_export_symbols=no
 
8555
  archive_cmds=
 
8556
  archive_expsym_cmds=
 
8557
  compiler_needs_object=no
 
8558
  enable_shared_with_static_runtimes=no
 
8559
  export_dynamic_flag_spec=
 
8560
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
8561
  hardcode_automatic=no
 
8562
  hardcode_direct=no
 
8563
  hardcode_direct_absolute=no
 
8564
  hardcode_libdir_flag_spec=
 
8565
  hardcode_libdir_separator=
 
8566
  hardcode_minus_L=no
 
8567
  hardcode_shlibpath_var=unsupported
 
8568
  inherit_rpath=no
 
8569
  link_all_deplibs=unknown
 
8570
  module_cmds=
 
8571
  module_expsym_cmds=
 
8572
  old_archive_from_new_cmds=
 
8573
  old_archive_from_expsyms_cmds=
 
8574
  thread_safe_flag_spec=
 
8575
  whole_archive_flag_spec=
 
8576
  # include_expsyms should be a list of space-separated symbols to be *always*
 
8577
  # included in the symbol list
 
8578
  include_expsyms=
 
8579
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
8580
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
8581
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
8582
  # as well as any symbol that contains `d'.
 
8583
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
8584
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
8585
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
8586
  # the symbol is explicitly referenced.  Since portable code cannot
 
8587
  # rely on this symbol name, it's probably fine to never include it in
 
8588
  # preloaded symbol tables.
 
8589
  # Exclude shared library initialization/finalization symbols.
 
8590
  extract_expsyms_cmds=
 
8591
 
 
8592
  case $host_os in
 
8593
  cygwin* | mingw* | pw32* | cegcc*)
 
8594
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
8595
    # When not using gcc, we currently assume that we are using
 
8596
    # Microsoft Visual C++.
 
8597
    if test "$GCC" != yes; then
 
8598
      with_gnu_ld=no
 
8599
    fi
 
8600
    ;;
 
8601
  interix*)
 
8602
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
8603
    with_gnu_ld=yes
 
8604
    ;;
 
8605
  openbsd*)
 
8606
    with_gnu_ld=no
 
8607
    ;;
 
8608
  esac
 
8609
 
 
8610
  ld_shlibs=yes
 
8611
 
 
8612
  # On some targets, GNU ld is compatible enough with the native linker
 
8613
  # that we're better off using the native interface for both.
 
8614
  lt_use_gnu_ld_interface=no
 
8615
  if test "$with_gnu_ld" = yes; then
 
8616
    case $host_os in
 
8617
      aix*)
 
8618
        # The AIX port of GNU ld has always aspired to compatibility
 
8619
        # with the native linker.  However, as the warning in the GNU ld
 
8620
        # block says, versions before 2.19.5* couldn't really create working
 
8621
        # shared libraries, regardless of the interface used.
 
8622
        case `$LD -v 2>&1` in
 
8623
          *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
 
8624
          *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
 
8625
          *\ \(GNU\ Binutils\)\ [3-9]*) ;;
 
8626
          *)
 
8627
            lt_use_gnu_ld_interface=yes
 
8628
            ;;
 
8629
        esac
 
8630
        ;;
 
8631
      *)
 
8632
        lt_use_gnu_ld_interface=yes
 
8633
        ;;
 
8634
    esac
 
8635
  fi
 
8636
 
 
8637
  if test "$lt_use_gnu_ld_interface" = yes; then
 
8638
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
8639
    wlarc='${wl}'
 
8640
 
 
8641
    # Set some defaults for GNU ld with shared library support. These
 
8642
    # are reset later if shared libraries are not supported. Putting them
 
8643
    # here allows them to be overridden if necessary.
 
8644
    runpath_var=LD_RUN_PATH
 
8645
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8646
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
8647
    # ancient GNU ld didn't support --whole-archive et. al.
 
8648
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
 
8649
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
8650
    else
 
8651
      whole_archive_flag_spec=
 
8652
    fi
 
8653
    supports_anon_versioning=no
 
8654
    case `$LD -v 2>&1` in
 
8655
      *GNU\ gold*) supports_anon_versioning=yes ;;
 
8656
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
8657
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
8658
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
8659
      *\ 2.11.*) ;; # other 2.11 versions
 
8660
      *) supports_anon_versioning=yes ;;
 
8661
    esac
 
8662
 
 
8663
    # See if GNU ld supports shared libraries.
 
8664
    case $host_os in
 
8665
    aix[3-9]*)
 
8666
      # On AIX/PPC, the GNU linker is very broken
 
8667
      if test "$host_cpu" != ia64; then
 
8668
        ld_shlibs=no
 
8669
        cat <<_LT_EOF 1>&2
 
8670
 
 
8671
*** Warning: the GNU linker, at least up to release 2.19, is reported
 
8672
*** to be unable to reliably create shared libraries on AIX.
 
8673
*** Therefore, libtool is disabling shared libraries support.  If you
 
8674
*** really care for shared libraries, you may want to install binutils
 
8675
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
 
8676
*** You will then need to restart the configuration process.
 
8677
 
 
8678
_LT_EOF
 
8679
      fi
 
8680
      ;;
 
8681
 
 
8682
    amigaos*)
 
8683
      case $host_cpu in
 
8684
      powerpc)
 
8685
            # see comment about AmigaOS4 .so support
 
8686
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8687
            archive_expsym_cmds=''
 
8688
        ;;
 
8689
      m68k)
 
8690
            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)'
 
8691
            hardcode_libdir_flag_spec='-L$libdir'
 
8692
            hardcode_minus_L=yes
 
8693
        ;;
 
8694
      esac
 
8695
      ;;
 
8696
 
 
8697
    beos*)
 
8698
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
8699
        allow_undefined_flag=unsupported
 
8700
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
8701
        # support --undefined.  This deserves some investigation.  FIXME
 
8702
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8703
      else
 
8704
        ld_shlibs=no
 
8705
      fi
 
8706
      ;;
 
8707
 
 
8708
    cygwin* | mingw* | pw32* | cegcc*)
 
8709
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
8710
      # as there is no search path for DLLs.
 
8711
      hardcode_libdir_flag_spec='-L$libdir'
 
8712
      export_dynamic_flag_spec='${wl}--export-all-symbols'
 
8713
      allow_undefined_flag=unsupported
 
8714
      always_export_symbols=no
 
8715
      enable_shared_with_static_runtimes=yes
 
8716
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
 
8717
      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
 
8718
 
 
8719
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
8720
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
8721
        # If the export-symbols file already is a .def file (1st line
 
8722
        # is EXPORTS), use it as is; otherwise, prepend...
 
8723
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
8724
          cp $export_symbols $output_objdir/$soname.def;
 
8725
        else
 
8726
          echo EXPORTS > $output_objdir/$soname.def;
 
8727
          cat $export_symbols >> $output_objdir/$soname.def;
 
8728
        fi~
 
8729
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
8730
      else
 
8731
        ld_shlibs=no
 
8732
      fi
 
8733
      ;;
 
8734
 
 
8735
    haiku*)
 
8736
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8737
      link_all_deplibs=yes
 
8738
      ;;
 
8739
 
 
8740
    interix[3-9]*)
 
8741
      hardcode_direct=no
 
8742
      hardcode_shlibpath_var=no
 
8743
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8744
      export_dynamic_flag_spec='${wl}-E'
 
8745
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
8746
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
8747
      # default) and relocated if they conflict, which is a slow very memory
 
8748
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
8749
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
8750
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
8751
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
8752
      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'
 
8753
      ;;
 
8754
 
 
8755
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
 
8756
      tmp_diet=no
 
8757
      if test "$host_os" = linux-dietlibc; then
 
8758
        case $cc_basename in
 
8759
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
 
8760
        esac
 
8761
      fi
 
8762
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
 
8763
         && test "$tmp_diet" = no
 
8764
      then
 
8765
        tmp_addflag=' $pic_flag'
 
8766
        tmp_sharedflag='-shared'
 
8767
        case $cc_basename,$host_cpu in
 
8768
        pgcc*)                          # Portland Group C compiler
 
8769
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
8770
          tmp_addflag=' $pic_flag'
 
8771
          ;;
 
8772
        pgf77* | pgf90* | pgf95* | pgfortran*)
 
8773
                                        # Portland Group f77 and f90 compilers
 
8774
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
8775
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
8776
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
 
8777
          tmp_addflag=' -i_dynamic' ;;
 
8778
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
8779
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
8780
        ifc* | ifort*)                  # Intel Fortran compiler
 
8781
          tmp_addflag=' -nofor_main' ;;
 
8782
        lf95*)                          # Lahey Fortran 8.1
 
8783
          whole_archive_flag_spec=
 
8784
          tmp_sharedflag='--shared' ;;
 
8785
        xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
 
8786
          tmp_sharedflag='-qmkshrobj'
 
8787
          tmp_addflag= ;;
 
8788
        nvcc*)  # Cuda Compiler Driver 2.2
 
8789
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
8790
          compiler_needs_object=yes
 
8791
          ;;
 
8792
        esac
 
8793
        case `$CC -V 2>&1 | sed 5q` in
 
8794
        *Sun\ C*)                       # Sun C 5.9
 
8795
          whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
8796
          compiler_needs_object=yes
 
8797
          tmp_sharedflag='-G' ;;
 
8798
        *Sun\ F*)                       # Sun Fortran 8.3
 
8799
          tmp_sharedflag='-G' ;;
 
8800
        esac
 
8801
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8802
 
 
8803
        if test "x$supports_anon_versioning" = xyes; then
 
8804
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
8805
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
8806
            echo "local: *; };" >> $output_objdir/$libname.ver~
 
8807
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
8808
        fi
 
8809
 
 
8810
        case $cc_basename in
 
8811
        xlf* | bgf* | bgxlf* | mpixlf*)
 
8812
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
 
8813
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
 
8814
          hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8815
          archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
 
8816
          if test "x$supports_anon_versioning" = xyes; then
 
8817
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
8818
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
8819
              echo "local: *; };" >> $output_objdir/$libname.ver~
 
8820
              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 
8821
          fi
 
8822
          ;;
 
8823
        esac
 
8824
      else
 
8825
        ld_shlibs=no
 
8826
      fi
 
8827
      ;;
 
8828
 
 
8829
    netbsd*)
 
8830
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
8831
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
8832
        wlarc=
 
8833
      else
 
8834
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8835
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8836
      fi
 
8837
      ;;
 
8838
 
 
8839
    solaris*)
 
8840
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
 
8841
        ld_shlibs=no
 
8842
        cat <<_LT_EOF 1>&2
 
8843
 
 
8844
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
8845
*** create shared libraries on Solaris systems.  Therefore, libtool
 
8846
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
8847
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
8848
*** your PATH or compiler configuration so that the native linker is
 
8849
*** used, and then restart.
 
8850
 
 
8851
_LT_EOF
 
8852
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
8853
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8854
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8855
      else
 
8856
        ld_shlibs=no
 
8857
      fi
 
8858
      ;;
 
8859
 
 
8860
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
8861
      case `$LD -v 2>&1` in
 
8862
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
8863
        ld_shlibs=no
 
8864
        cat <<_LT_EOF 1>&2
 
8865
 
 
8866
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
8867
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
8868
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
8869
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
8870
*** your PATH or compiler configuration so that the native linker is
 
8871
*** used, and then restart.
 
8872
 
 
8873
_LT_EOF
 
8874
        ;;
 
8875
        *)
 
8876
          # For security reasons, it is highly recommended that you always
 
8877
          # use absolute paths for naming shared libraries, and exclude the
 
8878
          # DT_RUNPATH tag from executables and libraries.  But doing so
 
8879
          # requires that you compile everything twice, which is a pain.
 
8880
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
8881
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8882
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8883
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8884
          else
 
8885
            ld_shlibs=no
 
8886
          fi
 
8887
        ;;
 
8888
      esac
 
8889
      ;;
 
8890
 
 
8891
    sunos4*)
 
8892
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8893
      wlarc=
 
8894
      hardcode_direct=yes
 
8895
      hardcode_shlibpath_var=no
 
8896
      ;;
 
8897
 
 
8898
    *)
 
8899
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
8900
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8901
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8902
      else
 
8903
        ld_shlibs=no
 
8904
      fi
 
8905
      ;;
 
8906
    esac
 
8907
 
 
8908
    if test "$ld_shlibs" = no; then
 
8909
      runpath_var=
 
8910
      hardcode_libdir_flag_spec=
 
8911
      export_dynamic_flag_spec=
 
8912
      whole_archive_flag_spec=
 
8913
    fi
 
8914
  else
 
8915
    # PORTME fill in a description of your system's linker (not GNU ld)
 
8916
    case $host_os in
 
8917
    aix3*)
 
8918
      allow_undefined_flag=unsupported
 
8919
      always_export_symbols=yes
 
8920
      archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
 
8921
      # Note: this linker hardcodes the directories in LIBPATH if there
 
8922
      # are no directories specified by -L.
 
8923
      hardcode_minus_L=yes
 
8924
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
8925
        # Neither direct hardcoding nor static linking is supported with a
 
8926
        # broken collect2.
 
8927
        hardcode_direct=unsupported
 
8928
      fi
 
8929
      ;;
 
8930
 
 
8931
    aix[4-9]*)
 
8932
      if test "$host_cpu" = ia64; then
 
8933
        # On IA64, the linker does run time linking by default, so we don't
 
8934
        # have to do anything special.
 
8935
        aix_use_runtimelinking=no
 
8936
        exp_sym_flag='-Bexport'
 
8937
        no_entry_flag=""
 
8938
      else
 
8939
        # If we're using GNU nm, then we don't want the "-C" option.
 
8940
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
8941
        # Also, AIX nm treats weak defined symbols like other global
 
8942
        # defined symbols, whereas GNU nm marks them as "W".
 
8943
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
8944
          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
 
8945
        else
 
8946
          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'
 
8947
        fi
 
8948
        aix_use_runtimelinking=no
 
8949
 
 
8950
        # Test if we are trying to use run time linking or normal
 
8951
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
8952
        # need to do runtime linking.
 
8953
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
8954
          for ld_flag in $LDFLAGS; do
 
8955
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
8956
            aix_use_runtimelinking=yes
 
8957
            break
 
8958
          fi
 
8959
          done
 
8960
          ;;
 
8961
        esac
 
8962
 
 
8963
        exp_sym_flag='-bexport'
 
8964
        no_entry_flag='-bnoentry'
 
8965
      fi
 
8966
 
 
8967
      # When large executables or shared objects are built, AIX ld can
 
8968
      # have problems creating the table of contents.  If linking a library
 
8969
      # or program results in "error TOC overflow" add -mminimal-toc to
 
8970
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
8971
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
8972
 
 
8973
      archive_cmds=''
 
8974
      hardcode_direct=yes
 
8975
      hardcode_direct_absolute=yes
 
8976
      hardcode_libdir_separator=':'
 
8977
      link_all_deplibs=yes
 
8978
      file_list_spec='${wl}-f,'
 
8979
 
 
8980
      if test "$GCC" = yes; then
 
8981
        case $host_os in aix4.[012]|aix4.[012].*)
 
8982
        # We only want to do this on AIX 4.2 and lower, the check
 
8983
        # below for broken collect2 doesn't work under 4.3+
 
8984
          collect2name=`${CC} -print-prog-name=collect2`
 
8985
          if test -f "$collect2name" &&
 
8986
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 
8987
          then
 
8988
          # We have reworked collect2
 
8989
          :
 
8990
          else
 
8991
          # We have old collect2
 
8992
          hardcode_direct=unsupported
 
8993
          # It fails to find uninstalled libraries when the uninstalled
 
8994
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
8995
          # to unsupported forces relinking
 
8996
          hardcode_minus_L=yes
 
8997
          hardcode_libdir_flag_spec='-L$libdir'
 
8998
          hardcode_libdir_separator=
 
8999
          fi
 
9000
          ;;
 
9001
        esac
 
9002
        shared_flag='-shared'
 
9003
        if test "$aix_use_runtimelinking" = yes; then
 
9004
          shared_flag="$shared_flag "'${wl}-G'
 
9005
        fi
 
9006
      else
 
9007
        # not using gcc
 
9008
        if test "$host_cpu" = ia64; then
 
9009
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
9010
        # chokes on -Wl,-G. The following line is correct:
 
9011
          shared_flag='-G'
 
9012
        else
 
9013
          if test "$aix_use_runtimelinking" = yes; then
 
9014
            shared_flag='${wl}-G'
 
9015
          else
 
9016
            shared_flag='${wl}-bM:SRE'
 
9017
          fi
 
9018
        fi
 
9019
      fi
 
9020
 
 
9021
      export_dynamic_flag_spec='${wl}-bexpall'
 
9022
      # It seems that -bexpall does not export symbols beginning with
 
9023
      # underscore (_), so it is better to generate a list of symbols to export.
 
9024
      always_export_symbols=yes
 
9025
      if test "$aix_use_runtimelinking" = yes; then
 
9026
        # Warning - without using the other runtime loading flags (-brtl),
 
9027
        # -berok will link without error, but may produce a broken library.
 
9028
        allow_undefined_flag='-berok'
 
9029
        # Determine the default libpath from the value encoded in an
 
9030
        # empty executable.
 
9031
        if test "${lt_cv_aix_libpath+set}" = set; then
 
9032
  aix_libpath=$lt_cv_aix_libpath
 
9033
else
 
9034
  if ${lt_cv_aix_libpath_+:} false; then :
 
9035
  $as_echo_n "(cached) " >&6
 
9036
else
 
9037
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9038
/* end confdefs.h.  */
 
9039
 
 
9040
int
 
9041
main ()
 
9042
{
 
9043
 
 
9044
  ;
 
9045
  return 0;
 
9046
}
 
9047
_ACEOF
 
9048
if ac_fn_c_try_link "$LINENO"; then :
 
9049
 
 
9050
  lt_aix_libpath_sed='
 
9051
      /Import File Strings/,/^$/ {
 
9052
          /^0/ {
 
9053
              s/^0  *\([^ ]*\) *$/\1/
 
9054
              p
 
9055
          }
 
9056
      }'
 
9057
  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
9058
  # Check for a 64-bit object if we didn't find anything.
 
9059
  if test -z "$lt_cv_aix_libpath_"; then
 
9060
    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
9061
  fi
 
9062
fi
 
9063
rm -f core conftest.err conftest.$ac_objext \
 
9064
    conftest$ac_exeext conftest.$ac_ext
 
9065
  if test -z "$lt_cv_aix_libpath_"; then
 
9066
    lt_cv_aix_libpath_="/usr/lib:/lib"
 
9067
  fi
 
9068
 
 
9069
fi
 
9070
 
 
9071
  aix_libpath=$lt_cv_aix_libpath_
 
9072
fi
 
9073
 
 
9074
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
9075
        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
9076
      else
 
9077
        if test "$host_cpu" = ia64; then
 
9078
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
9079
          allow_undefined_flag="-z nodefs"
 
9080
          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"
 
9081
        else
 
9082
         # Determine the default libpath from the value encoded in an
 
9083
         # empty executable.
 
9084
         if test "${lt_cv_aix_libpath+set}" = set; then
 
9085
  aix_libpath=$lt_cv_aix_libpath
 
9086
else
 
9087
  if ${lt_cv_aix_libpath_+:} false; then :
 
9088
  $as_echo_n "(cached) " >&6
 
9089
else
 
9090
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9091
/* end confdefs.h.  */
 
9092
 
 
9093
int
 
9094
main ()
 
9095
{
 
9096
 
 
9097
  ;
 
9098
  return 0;
 
9099
}
 
9100
_ACEOF
 
9101
if ac_fn_c_try_link "$LINENO"; then :
 
9102
 
 
9103
  lt_aix_libpath_sed='
 
9104
      /Import File Strings/,/^$/ {
 
9105
          /^0/ {
 
9106
              s/^0  *\([^ ]*\) *$/\1/
 
9107
              p
 
9108
          }
 
9109
      }'
 
9110
  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
9111
  # Check for a 64-bit object if we didn't find anything.
 
9112
  if test -z "$lt_cv_aix_libpath_"; then
 
9113
    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
9114
  fi
 
9115
fi
 
9116
rm -f core conftest.err conftest.$ac_objext \
 
9117
    conftest$ac_exeext conftest.$ac_ext
 
9118
  if test -z "$lt_cv_aix_libpath_"; then
 
9119
    lt_cv_aix_libpath_="/usr/lib:/lib"
 
9120
  fi
 
9121
 
 
9122
fi
 
9123
 
 
9124
  aix_libpath=$lt_cv_aix_libpath_
 
9125
fi
 
9126
 
 
9127
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
9128
          # Warning - without using the other run time loading flags,
 
9129
          # -berok will link without error, but may produce a broken library.
 
9130
          no_undefined_flag=' ${wl}-bernotok'
 
9131
          allow_undefined_flag=' ${wl}-berok'
 
9132
          if test "$with_gnu_ld" = yes; then
 
9133
            # We only use this code for GNU lds that support --whole-archive.
 
9134
            whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
9135
          else
 
9136
            # Exported symbols can be pulled into shared objects from archives
 
9137
            whole_archive_flag_spec='$convenience'
 
9138
          fi
 
9139
          archive_cmds_need_lc=yes
 
9140
          # This is similar to how AIX traditionally builds its shared libraries.
 
9141
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
9142
        fi
 
9143
      fi
 
9144
      ;;
 
9145
 
 
9146
    amigaos*)
 
9147
      case $host_cpu in
 
9148
      powerpc)
 
9149
            # see comment about AmigaOS4 .so support
 
9150
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9151
            archive_expsym_cmds=''
 
9152
        ;;
 
9153
      m68k)
 
9154
            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)'
 
9155
            hardcode_libdir_flag_spec='-L$libdir'
 
9156
            hardcode_minus_L=yes
 
9157
        ;;
 
9158
      esac
 
9159
      ;;
 
9160
 
 
9161
    bsdi[45]*)
 
9162
      export_dynamic_flag_spec=-rdynamic
 
9163
      ;;
 
9164
 
 
9165
    cygwin* | mingw* | pw32* | cegcc*)
 
9166
      # When not using gcc, we currently assume that we are using
 
9167
      # Microsoft Visual C++.
 
9168
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
9169
      # no search path for DLLs.
 
9170
      case $cc_basename in
 
9171
      cl*)
 
9172
        # Native MSVC
 
9173
        hardcode_libdir_flag_spec=' '
 
9174
        allow_undefined_flag=unsupported
 
9175
        always_export_symbols=yes
 
9176
        file_list_spec='@'
 
9177
        # Tell ltmain to make .lib files, not .a files.
 
9178
        libext=lib
 
9179
        # Tell ltmain to make .dll files, not .so files.
 
9180
        shrext_cmds=".dll"
 
9181
        # FIXME: Setting linknames here is a bad hack.
 
9182
        archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
 
9183
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
9184
            sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
 
9185
          else
 
9186
            sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
 
9187
          fi~
 
9188
          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
 
9189
          linknames='
 
9190
        # The linker will not automatically build a static lib if we build a DLL.
 
9191
        # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
 
9192
        enable_shared_with_static_runtimes=yes
 
9193
        exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
 
9194
        export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
9195
        # Don't use ranlib
 
9196
        old_postinstall_cmds='chmod 644 $oldlib'
 
9197
        postlink_cmds='lt_outputfile="@OUTPUT@"~
 
9198
          lt_tool_outputfile="@TOOL_OUTPUT@"~
 
9199
          case $lt_outputfile in
 
9200
            *.exe|*.EXE) ;;
 
9201
            *)
 
9202
              lt_outputfile="$lt_outputfile.exe"
 
9203
              lt_tool_outputfile="$lt_tool_outputfile.exe"
 
9204
              ;;
 
9205
          esac~
 
9206
          if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
 
9207
            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
 
9208
            $RM "$lt_outputfile.manifest";
 
9209
          fi'
 
9210
        ;;
 
9211
      *)
 
9212
        # Assume MSVC wrapper
 
9213
        hardcode_libdir_flag_spec=' '
 
9214
        allow_undefined_flag=unsupported
 
9215
        # Tell ltmain to make .lib files, not .a files.
 
9216
        libext=lib
 
9217
        # Tell ltmain to make .dll files, not .so files.
 
9218
        shrext_cmds=".dll"
 
9219
        # FIXME: Setting linknames here is a bad hack.
 
9220
        archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
 
9221
        # The linker will automatically build a .lib file if we build a DLL.
 
9222
        old_archive_from_new_cmds='true'
 
9223
        # FIXME: Should let the user specify the lib program.
 
9224
        old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
9225
        enable_shared_with_static_runtimes=yes
 
9226
        ;;
 
9227
      esac
 
9228
      ;;
 
9229
 
 
9230
    darwin* | rhapsody*)
 
9231
 
 
9232
 
 
9233
  archive_cmds_need_lc=no
 
9234
  hardcode_direct=no
 
9235
  hardcode_automatic=yes
 
9236
  hardcode_shlibpath_var=unsupported
 
9237
  if test "$lt_cv_ld_force_load" = "yes"; then
 
9238
    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
 
9239
 
 
9240
  else
 
9241
    whole_archive_flag_spec=''
 
9242
  fi
 
9243
  link_all_deplibs=yes
 
9244
  allow_undefined_flag="$_lt_dar_allow_undefined"
 
9245
  case $cc_basename in
 
9246
     ifort*) _lt_dar_can_shared=yes ;;
 
9247
     *) _lt_dar_can_shared=$GCC ;;
 
9248
  esac
 
9249
  if test "$_lt_dar_can_shared" = "yes"; then
 
9250
    output_verbose_link_cmd=func_echo_all
 
9251
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
9252
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
9253
    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}"
 
9254
    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}"
 
9255
 
 
9256
  else
 
9257
  ld_shlibs=no
 
9258
  fi
 
9259
 
 
9260
      ;;
 
9261
 
 
9262
    dgux*)
 
9263
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9264
      hardcode_libdir_flag_spec='-L$libdir'
 
9265
      hardcode_shlibpath_var=no
 
9266
      ;;
 
9267
 
 
9268
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
9269
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
9270
    # does not break anything, and helps significantly (at the cost of a little
 
9271
    # extra space).
 
9272
    freebsd2.2*)
 
9273
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
9274
      hardcode_libdir_flag_spec='-R$libdir'
 
9275
      hardcode_direct=yes
 
9276
      hardcode_shlibpath_var=no
 
9277
      ;;
 
9278
 
 
9279
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
9280
    freebsd2.*)
 
9281
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
9282
      hardcode_direct=yes
 
9283
      hardcode_minus_L=yes
 
9284
      hardcode_shlibpath_var=no
 
9285
      ;;
 
9286
 
 
9287
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
9288
    freebsd* | dragonfly*)
 
9289
      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
9290
      hardcode_libdir_flag_spec='-R$libdir'
 
9291
      hardcode_direct=yes
 
9292
      hardcode_shlibpath_var=no
 
9293
      ;;
 
9294
 
 
9295
    hpux9*)
 
9296
      if test "$GCC" = yes; then
 
9297
        archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
9298
      else
 
9299
        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'
 
9300
      fi
 
9301
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9302
      hardcode_libdir_separator=:
 
9303
      hardcode_direct=yes
 
9304
 
 
9305
      # hardcode_minus_L: Not really in the search PATH,
 
9306
      # but as the default location of the library.
 
9307
      hardcode_minus_L=yes
 
9308
      export_dynamic_flag_spec='${wl}-E'
 
9309
      ;;
 
9310
 
 
9311
    hpux10*)
 
9312
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
 
9313
        archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
9314
      else
 
9315
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
9316
      fi
 
9317
      if test "$with_gnu_ld" = no; then
 
9318
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9319
        hardcode_libdir_separator=:
 
9320
        hardcode_direct=yes
 
9321
        hardcode_direct_absolute=yes
 
9322
        export_dynamic_flag_spec='${wl}-E'
 
9323
        # hardcode_minus_L: Not really in the search PATH,
 
9324
        # but as the default location of the library.
 
9325
        hardcode_minus_L=yes
 
9326
      fi
 
9327
      ;;
 
9328
 
 
9329
    hpux11*)
 
9330
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
 
9331
        case $host_cpu in
 
9332
        hppa*64*)
 
9333
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9334
          ;;
 
9335
        ia64*)
 
9336
          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
9337
          ;;
 
9338
        *)
 
9339
          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
9340
          ;;
 
9341
        esac
 
9342
      else
 
9343
        case $host_cpu in
 
9344
        hppa*64*)
 
9345
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9346
          ;;
 
9347
        ia64*)
 
9348
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
9349
          ;;
 
9350
        *)
 
9351
 
 
9352
          # Older versions of the 11.00 compiler do not understand -b yet
 
9353
          # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
 
9354
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
 
9355
$as_echo_n "checking if $CC understands -b... " >&6; }
 
9356
if ${lt_cv_prog_compiler__b+:} false; then :
 
9357
  $as_echo_n "(cached) " >&6
 
9358
else
 
9359
  lt_cv_prog_compiler__b=no
 
9360
   save_LDFLAGS="$LDFLAGS"
 
9361
   LDFLAGS="$LDFLAGS -b"
 
9362
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
9363
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
9364
     # The linker can only warn and ignore the option if not recognized
 
9365
     # So say no if there are warnings
 
9366
     if test -s conftest.err; then
 
9367
       # Append any errors to the config.log.
 
9368
       cat conftest.err 1>&5
 
9369
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
 
9370
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
9371
       if diff conftest.exp conftest.er2 >/dev/null; then
 
9372
         lt_cv_prog_compiler__b=yes
 
9373
       fi
 
9374
     else
 
9375
       lt_cv_prog_compiler__b=yes
 
9376
     fi
 
9377
   fi
 
9378
   $RM -r conftest*
 
9379
   LDFLAGS="$save_LDFLAGS"
 
9380
 
 
9381
fi
 
9382
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
 
9383
$as_echo "$lt_cv_prog_compiler__b" >&6; }
 
9384
 
 
9385
if test x"$lt_cv_prog_compiler__b" = xyes; then
 
9386
    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
9387
else
 
9388
    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
9389
fi
 
9390
 
 
9391
          ;;
 
9392
        esac
 
9393
      fi
 
9394
      if test "$with_gnu_ld" = no; then
 
9395
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9396
        hardcode_libdir_separator=:
 
9397
 
 
9398
        case $host_cpu in
 
9399
        hppa*64*|ia64*)
 
9400
          hardcode_direct=no
 
9401
          hardcode_shlibpath_var=no
 
9402
          ;;
 
9403
        *)
 
9404
          hardcode_direct=yes
 
9405
          hardcode_direct_absolute=yes
 
9406
          export_dynamic_flag_spec='${wl}-E'
 
9407
 
 
9408
          # hardcode_minus_L: Not really in the search PATH,
 
9409
          # but as the default location of the library.
 
9410
          hardcode_minus_L=yes
 
9411
          ;;
 
9412
        esac
 
9413
      fi
 
9414
      ;;
 
9415
 
 
9416
    irix5* | irix6* | nonstopux*)
 
9417
      if test "$GCC" = yes; then
 
9418
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
9419
        # Try to use the -exported_symbol ld option, if it does not
 
9420
        # work, assume that -exports_file does not work either and
 
9421
        # implicitly export all symbols.
 
9422
        # This should be the same for all languages, so no per-tag cache variable.
 
9423
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
 
9424
$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
 
9425
if ${lt_cv_irix_exported_symbol+:} false; then :
 
9426
  $as_echo_n "(cached) " >&6
 
9427
else
 
9428
  save_LDFLAGS="$LDFLAGS"
 
9429
           LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
 
9430
           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9431
/* end confdefs.h.  */
 
9432
int foo (void) { return 0; }
 
9433
_ACEOF
 
9434
if ac_fn_c_try_link "$LINENO"; then :
 
9435
  lt_cv_irix_exported_symbol=yes
 
9436
else
 
9437
  lt_cv_irix_exported_symbol=no
 
9438
fi
 
9439
rm -f core conftest.err conftest.$ac_objext \
 
9440
    conftest$ac_exeext conftest.$ac_ext
 
9441
           LDFLAGS="$save_LDFLAGS"
 
9442
fi
 
9443
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
 
9444
$as_echo "$lt_cv_irix_exported_symbol" >&6; }
 
9445
        if test "$lt_cv_irix_exported_symbol" = yes; then
 
9446
          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
 
9447
        fi
 
9448
      else
 
9449
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
 
9450
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
 
9451
      fi
 
9452
      archive_cmds_need_lc='no'
 
9453
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9454
      hardcode_libdir_separator=:
 
9455
      inherit_rpath=yes
 
9456
      link_all_deplibs=yes
 
9457
      ;;
 
9458
 
 
9459
    netbsd*)
 
9460
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
9461
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
9462
      else
 
9463
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
9464
      fi
 
9465
      hardcode_libdir_flag_spec='-R$libdir'
 
9466
      hardcode_direct=yes
 
9467
      hardcode_shlibpath_var=no
 
9468
      ;;
 
9469
 
 
9470
    newsos6)
 
9471
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9472
      hardcode_direct=yes
 
9473
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9474
      hardcode_libdir_separator=:
 
9475
      hardcode_shlibpath_var=no
 
9476
      ;;
 
9477
 
 
9478
    *nto* | *qnx*)
 
9479
      ;;
 
9480
 
 
9481
    openbsd*)
 
9482
      if test -f /usr/libexec/ld.so; then
 
9483
        hardcode_direct=yes
 
9484
        hardcode_shlibpath_var=no
 
9485
        hardcode_direct_absolute=yes
 
9486
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
9487
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
9488
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
9489
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
9490
          export_dynamic_flag_spec='${wl}-E'
 
9491
        else
 
9492
          case $host_os in
 
9493
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
9494
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
9495
             hardcode_libdir_flag_spec='-R$libdir'
 
9496
             ;;
 
9497
           *)
 
9498
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
9499
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
9500
             ;;
 
9501
          esac
 
9502
        fi
 
9503
      else
 
9504
        ld_shlibs=no
 
9505
      fi
 
9506
      ;;
 
9507
 
 
9508
    os2*)
 
9509
      hardcode_libdir_flag_spec='-L$libdir'
 
9510
      hardcode_minus_L=yes
 
9511
      allow_undefined_flag=unsupported
 
9512
      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'
 
9513
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
9514
      ;;
 
9515
 
 
9516
    osf3*)
 
9517
      if test "$GCC" = yes; then
 
9518
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
9519
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
9520
      else
 
9521
        allow_undefined_flag=' -expect_unresolved \*'
 
9522
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
 
9523
      fi
 
9524
      archive_cmds_need_lc='no'
 
9525
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9526
      hardcode_libdir_separator=:
 
9527
      ;;
 
9528
 
 
9529
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
9530
      if test "$GCC" = yes; then
 
9531
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
9532
        archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
9533
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9534
      else
 
9535
        allow_undefined_flag=' -expect_unresolved \*'
 
9536
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
 
9537
        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~
 
9538
        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
 
9539
 
 
9540
        # Both c and cxx compiler support -rpath directly
 
9541
        hardcode_libdir_flag_spec='-rpath $libdir'
 
9542
      fi
 
9543
      archive_cmds_need_lc='no'
 
9544
      hardcode_libdir_separator=:
 
9545
      ;;
 
9546
 
 
9547
    solaris*)
 
9548
      no_undefined_flag=' -z defs'
 
9549
      if test "$GCC" = yes; then
 
9550
        wlarc='${wl}'
 
9551
        archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9552
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
9553
          $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
9554
      else
 
9555
        case `$CC -V 2>&1` in
 
9556
        *"Compilers 5.0"*)
 
9557
          wlarc=''
 
9558
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9559
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
9560
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
 
9561
          ;;
 
9562
        *)
 
9563
          wlarc='${wl}'
 
9564
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
9565
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
9566
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
9567
          ;;
 
9568
        esac
 
9569
      fi
 
9570
      hardcode_libdir_flag_spec='-R$libdir'
 
9571
      hardcode_shlibpath_var=no
 
9572
      case $host_os in
 
9573
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
9574
      *)
 
9575
        # The compiler driver will combine and reorder linker options,
 
9576
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
9577
        # but is careful enough not to reorder.
 
9578
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
9579
        if test "$GCC" = yes; then
 
9580
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
9581
        else
 
9582
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
 
9583
        fi
 
9584
        ;;
 
9585
      esac
 
9586
      link_all_deplibs=yes
 
9587
      ;;
 
9588
 
 
9589
    sunos4*)
 
9590
      if test "x$host_vendor" = xsequent; then
 
9591
        # Use $CC to link under sequent, because it throws in some extra .o
 
9592
        # files that make .init and .fini sections work.
 
9593
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
9594
      else
 
9595
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
9596
      fi
 
9597
      hardcode_libdir_flag_spec='-L$libdir'
 
9598
      hardcode_direct=yes
 
9599
      hardcode_minus_L=yes
 
9600
      hardcode_shlibpath_var=no
 
9601
      ;;
 
9602
 
 
9603
    sysv4)
 
9604
      case $host_vendor in
 
9605
        sni)
 
9606
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9607
          hardcode_direct=yes # is this really true???
 
9608
        ;;
 
9609
        siemens)
 
9610
          ## LD is ld it makes a PLAMLIB
 
9611
          ## CC just makes a GrossModule.
 
9612
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
9613
          reload_cmds='$CC -r -o $output$reload_objs'
 
9614
          hardcode_direct=no
 
9615
        ;;
 
9616
        motorola)
 
9617
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9618
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
9619
        ;;
 
9620
      esac
 
9621
      runpath_var='LD_RUN_PATH'
 
9622
      hardcode_shlibpath_var=no
 
9623
      ;;
 
9624
 
 
9625
    sysv4.3*)
 
9626
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9627
      hardcode_shlibpath_var=no
 
9628
      export_dynamic_flag_spec='-Bexport'
 
9629
      ;;
 
9630
 
 
9631
    sysv4*MP*)
 
9632
      if test -d /usr/nec; then
 
9633
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9634
        hardcode_shlibpath_var=no
 
9635
        runpath_var=LD_RUN_PATH
 
9636
        hardcode_runpath_var=yes
 
9637
        ld_shlibs=yes
 
9638
      fi
 
9639
      ;;
 
9640
 
 
9641
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
9642
      no_undefined_flag='${wl}-z,text'
 
9643
      archive_cmds_need_lc=no
 
9644
      hardcode_shlibpath_var=no
 
9645
      runpath_var='LD_RUN_PATH'
 
9646
 
 
9647
      if test "$GCC" = yes; then
 
9648
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9649
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9650
      else
 
9651
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9652
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9653
      fi
 
9654
      ;;
 
9655
 
 
9656
    sysv5* | sco3.2v5* | sco5v6*)
 
9657
      # Note: We can NOT use -z defs as we might desire, because we do not
 
9658
      # link with -lc, and that would cause any symbols used from libc to
 
9659
      # always be unresolved, which means just about no library would
 
9660
      # ever link correctly.  If we're not using GNU ld we use -z text
 
9661
      # though, which does catch some bad symbols but isn't as heavy-handed
 
9662
      # as -z defs.
 
9663
      no_undefined_flag='${wl}-z,text'
 
9664
      allow_undefined_flag='${wl}-z,nodefs'
 
9665
      archive_cmds_need_lc=no
 
9666
      hardcode_shlibpath_var=no
 
9667
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
 
9668
      hardcode_libdir_separator=':'
 
9669
      link_all_deplibs=yes
 
9670
      export_dynamic_flag_spec='${wl}-Bexport'
 
9671
      runpath_var='LD_RUN_PATH'
 
9672
 
 
9673
      if test "$GCC" = yes; then
 
9674
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9675
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9676
      else
 
9677
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9678
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9679
      fi
 
9680
      ;;
 
9681
 
 
9682
    uts4*)
 
9683
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9684
      hardcode_libdir_flag_spec='-L$libdir'
 
9685
      hardcode_shlibpath_var=no
 
9686
      ;;
 
9687
 
 
9688
    *)
 
9689
      ld_shlibs=no
 
9690
      ;;
 
9691
    esac
 
9692
 
 
9693
    if test x$host_vendor = xsni; then
 
9694
      case $host in
 
9695
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
9696
        export_dynamic_flag_spec='${wl}-Blargedynsym'
 
9697
        ;;
 
9698
      esac
 
9699
    fi
 
9700
  fi
 
9701
 
 
9702
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
 
9703
$as_echo "$ld_shlibs" >&6; }
 
9704
test "$ld_shlibs" = no && can_build_shared=no
 
9705
 
 
9706
with_gnu_ld=$with_gnu_ld
 
9707
 
 
9708
 
 
9709
 
 
9710
 
 
9711
 
 
9712
 
 
9713
 
 
9714
 
 
9715
 
 
9716
 
 
9717
 
 
9718
 
 
9719
 
 
9720
 
 
9721
 
 
9722
#
 
9723
# Do we need to explicitly link libc?
 
9724
#
 
9725
case "x$archive_cmds_need_lc" in
 
9726
x|xyes)
 
9727
  # Assume -lc should be added
 
9728
  archive_cmds_need_lc=yes
 
9729
 
 
9730
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
9731
    case $archive_cmds in
 
9732
    *'~'*)
 
9733
      # FIXME: we may have to deal with multi-command sequences.
 
9734
      ;;
 
9735
    '$CC '*)
 
9736
      # Test whether the compiler implicitly links with -lc since on some
 
9737
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
9738
      # to ld, don't add -lc before -lgcc.
 
9739
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
 
9740
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
9741
if ${lt_cv_archive_cmds_need_lc+:} false; then :
 
9742
  $as_echo_n "(cached) " >&6
 
9743
else
 
9744
  $RM conftest*
 
9745
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9746
 
 
9747
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
9748
  (eval $ac_compile) 2>&5
 
9749
  ac_status=$?
 
9750
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
9751
  test $ac_status = 0; } 2>conftest.err; then
 
9752
          soname=conftest
 
9753
          lib=conftest
 
9754
          libobjs=conftest.$ac_objext
 
9755
          deplibs=
 
9756
          wl=$lt_prog_compiler_wl
 
9757
          pic_flag=$lt_prog_compiler_pic
 
9758
          compiler_flags=-v
 
9759
          linker_flags=-v
 
9760
          verstring=
 
9761
          output_objdir=.
 
9762
          libname=conftest
 
9763
          lt_save_allow_undefined_flag=$allow_undefined_flag
 
9764
          allow_undefined_flag=
 
9765
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
 
9766
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
9767
  ac_status=$?
 
9768
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
9769
  test $ac_status = 0; }
 
9770
          then
 
9771
            lt_cv_archive_cmds_need_lc=no
 
9772
          else
 
9773
            lt_cv_archive_cmds_need_lc=yes
 
9774
          fi
 
9775
          allow_undefined_flag=$lt_save_allow_undefined_flag
 
9776
        else
 
9777
          cat conftest.err 1>&5
 
9778
        fi
 
9779
        $RM conftest*
 
9780
 
 
9781
fi
 
9782
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
 
9783
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
 
9784
      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
 
9785
      ;;
 
9786
    esac
 
9787
  fi
 
9788
  ;;
 
9789
esac
 
9790
 
 
9791
 
 
9792
 
 
9793
 
 
9794
 
 
9795
 
 
9796
 
 
9797
 
 
9798
 
 
9799
 
 
9800
 
 
9801
 
 
9802
 
 
9803
 
 
9804
 
 
9805
 
 
9806
 
 
9807
 
 
9808
 
 
9809
 
 
9810
 
 
9811
 
 
9812
 
 
9813
 
 
9814
 
 
9815
 
 
9816
 
 
9817
 
 
9818
 
 
9819
 
 
9820
 
 
9821
 
 
9822
 
 
9823
 
 
9824
 
 
9825
 
 
9826
 
 
9827
 
 
9828
 
 
9829
 
 
9830
 
 
9831
 
 
9832
 
 
9833
 
 
9834
 
 
9835
 
 
9836
 
 
9837
 
 
9838
 
 
9839
 
 
9840
 
 
9841
 
 
9842
 
 
9843
 
 
9844
 
 
9845
 
 
9846
 
 
9847
 
 
9848
 
 
9849
 
 
9850
 
 
9851
 
 
9852
 
 
9853
 
 
9854
 
 
9855
 
 
9856
 
 
9857
 
 
9858
 
 
9859
 
 
9860
 
 
9861
 
 
9862
 
 
9863
 
 
9864
 
 
9865
 
 
9866
 
 
9867
 
 
9868
 
 
9869
 
 
9870
 
 
9871
 
 
9872
 
 
9873
 
 
9874
 
 
9875
 
 
9876
 
 
9877
 
 
9878
 
 
9879
 
 
9880
 
 
9881
 
 
9882
 
 
9883
 
 
9884
 
 
9885
 
 
9886
 
 
9887
 
 
9888
 
 
9889
 
 
9890
 
 
9891
 
 
9892
 
 
9893
 
 
9894
 
 
9895
 
 
9896
 
 
9897
 
 
9898
 
 
9899
 
 
9900
 
 
9901
 
 
9902
 
 
9903
 
 
9904
 
 
9905
 
 
9906
 
 
9907
 
 
9908
 
 
9909
 
 
9910
 
 
9911
 
 
9912
 
 
9913
 
 
9914
 
 
9915
 
 
9916
 
 
9917
 
 
9918
 
 
9919
 
 
9920
 
 
9921
 
 
9922
 
 
9923
 
 
9924
 
 
9925
 
 
9926
 
 
9927
 
 
9928
 
 
9929
 
 
9930
 
 
9931
 
 
9932
 
 
9933
 
 
9934
 
 
9935
 
 
9936
 
 
9937
 
 
9938
 
 
9939
 
 
9940
 
 
9941
 
 
9942
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
 
9943
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
9944
 
 
9945
if test "$GCC" = yes; then
 
9946
  case $host_os in
 
9947
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
9948
    *) lt_awk_arg="/^libraries:/" ;;
 
9949
  esac
 
9950
  case $host_os in
 
9951
    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
 
9952
    *) lt_sed_strip_eq="s,=/,/,g" ;;
 
9953
  esac
 
9954
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
 
9955
  case $lt_search_path_spec in
 
9956
  *\;*)
 
9957
    # if the path contains ";" then we assume it to be the separator
 
9958
    # otherwise default to the standard path separator (i.e. ":") - it is
 
9959
    # assumed that no part of a normal pathname contains ";" but that should
 
9960
    # okay in the real world where ";" in dirpaths is itself problematic.
 
9961
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
 
9962
    ;;
 
9963
  *)
 
9964
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
 
9965
    ;;
 
9966
  esac
 
9967
  # Ok, now we have the path, separated by spaces, we can step through it
 
9968
  # and add multilib dir if necessary.
 
9969
  lt_tmp_lt_search_path_spec=
 
9970
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
9971
  for lt_sys_path in $lt_search_path_spec; do
 
9972
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
9973
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
9974
    else
 
9975
      test -d "$lt_sys_path" && \
 
9976
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
9977
    fi
 
9978
  done
 
9979
  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
 
9980
BEGIN {RS=" "; FS="/|\n";} {
 
9981
  lt_foo="";
 
9982
  lt_count=0;
 
9983
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
9984
    if ($lt_i != "" && $lt_i != ".") {
 
9985
      if ($lt_i == "..") {
 
9986
        lt_count++;
 
9987
      } else {
 
9988
        if (lt_count == 0) {
 
9989
          lt_foo="/" $lt_i lt_foo;
 
9990
        } else {
 
9991
          lt_count--;
 
9992
        }
 
9993
      }
 
9994
    }
 
9995
  }
 
9996
  if (lt_foo != "") { lt_freq[lt_foo]++; }
 
9997
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
 
9998
}'`
 
9999
  # AWK program above erroneously prepends '/' to C:/dos/paths
 
10000
  # for these hosts.
 
10001
  case $host_os in
 
10002
    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
 
10003
      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
 
10004
  esac
 
10005
  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
 
10006
else
 
10007
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
10008
fi
 
10009
library_names_spec=
 
10010
libname_spec='lib$name'
 
10011
soname_spec=
 
10012
shrext_cmds=".so"
 
10013
postinstall_cmds=
 
10014
postuninstall_cmds=
 
10015
finish_cmds=
 
10016
finish_eval=
 
10017
shlibpath_var=
 
10018
shlibpath_overrides_runpath=unknown
 
10019
version_type=none
 
10020
dynamic_linker="$host_os ld.so"
 
10021
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
10022
need_lib_prefix=unknown
 
10023
hardcode_into_libs=no
 
10024
 
 
10025
# when you set need_version to no, make sure it does not cause -set_version
 
10026
# flags to be left without arguments
 
10027
need_version=unknown
 
10028
 
 
10029
case $host_os in
 
10030
aix3*)
 
10031
  version_type=linux # correct to gnu/linux during the next big refactor
 
10032
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
10033
  shlibpath_var=LIBPATH
 
10034
 
 
10035
  # AIX 3 has no versioning support, so we append a major version to the name.
 
10036
  soname_spec='${libname}${release}${shared_ext}$major'
 
10037
  ;;
 
10038
 
 
10039
aix[4-9]*)
 
10040
  version_type=linux # correct to gnu/linux during the next big refactor
 
10041
  need_lib_prefix=no
 
10042
  need_version=no
 
10043
  hardcode_into_libs=yes
 
10044
  if test "$host_cpu" = ia64; then
 
10045
    # AIX 5 supports IA64
 
10046
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
10047
    shlibpath_var=LD_LIBRARY_PATH
 
10048
  else
 
10049
    # With GCC up to 2.95.x, collect2 would create an import file
 
10050
    # for dependence libraries.  The import file would start with
 
10051
    # the line `#! .'.  This would cause the generated library to
 
10052
    # depend on `.', always an invalid library.  This was fixed in
 
10053
    # development snapshots of GCC prior to 3.0.
 
10054
    case $host_os in
 
10055
      aix4 | aix4.[01] | aix4.[01].*)
 
10056
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
10057
           echo ' yes '
 
10058
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
 
10059
        :
 
10060
      else
 
10061
        can_build_shared=no
 
10062
      fi
 
10063
      ;;
 
10064
    esac
 
10065
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
10066
    # soname into executable. Probably we can add versioning support to
 
10067
    # collect2, so additional links can be useful in future.
 
10068
    if test "$aix_use_runtimelinking" = yes; then
 
10069
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
10070
      # instead of lib<name>.a to let people know that these are not
 
10071
      # typical AIX shared libraries.
 
10072
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10073
    else
 
10074
      # We preserve .a as extension for shared libraries through AIX4.2
 
10075
      # and later when we are not doing run time linking.
 
10076
      library_names_spec='${libname}${release}.a $libname.a'
 
10077
      soname_spec='${libname}${release}${shared_ext}$major'
 
10078
    fi
 
10079
    shlibpath_var=LIBPATH
 
10080
  fi
 
10081
  ;;
 
10082
 
 
10083
amigaos*)
 
10084
  case $host_cpu in
 
10085
  powerpc)
 
10086
    # Since July 2007 AmigaOS4 officially supports .so libraries.
 
10087
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 
10088
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10089
    ;;
 
10090
  m68k)
 
10091
    library_names_spec='$libname.ixlibrary $libname.a'
 
10092
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
10093
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 
10094
    ;;
 
10095
  esac
 
10096
  ;;
 
10097
 
 
10098
beos*)
 
10099
  library_names_spec='${libname}${shared_ext}'
 
10100
  dynamic_linker="$host_os ld.so"
 
10101
  shlibpath_var=LIBRARY_PATH
 
10102
  ;;
 
10103
 
 
10104
bsdi[45]*)
 
10105
  version_type=linux # correct to gnu/linux during the next big refactor
 
10106
  need_version=no
 
10107
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10108
  soname_spec='${libname}${release}${shared_ext}$major'
 
10109
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
10110
  shlibpath_var=LD_LIBRARY_PATH
 
10111
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
10112
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
10113
  # the default ld.so.conf also contains /usr/contrib/lib and
 
10114
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
10115
  # libtool to hard-code these into programs
 
10116
  ;;
 
10117
 
 
10118
cygwin* | mingw* | pw32* | cegcc*)
 
10119
  version_type=windows
 
10120
  shrext_cmds=".dll"
 
10121
  need_version=no
 
10122
  need_lib_prefix=no
 
10123
 
 
10124
  case $GCC,$cc_basename in
 
10125
  yes,*)
 
10126
    # gcc
 
10127
    library_names_spec='$libname.dll.a'
 
10128
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
10129
    postinstall_cmds='base_file=`basename \${file}`~
 
10130
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
10131
      dldir=$destdir/`dirname \$dlpath`~
 
10132
      test -d \$dldir || mkdir -p \$dldir~
 
10133
      $install_prog $dir/$dlname \$dldir/$dlname~
 
10134
      chmod a+x \$dldir/$dlname~
 
10135
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
10136
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
10137
      fi'
 
10138
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
10139
      dlpath=$dir/\$dldll~
 
10140
       $RM \$dlpath'
 
10141
    shlibpath_overrides_runpath=yes
 
10142
 
 
10143
    case $host_os in
 
10144
    cygwin*)
 
10145
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
10146
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10147
 
 
10148
      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
 
10149
      ;;
 
10150
    mingw* | cegcc*)
 
10151
      # MinGW DLLs use traditional 'lib' prefix
 
10152
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10153
      ;;
 
10154
    pw32*)
 
10155
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
10156
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10157
      ;;
 
10158
    esac
 
10159
    dynamic_linker='Win32 ld.exe'
 
10160
    ;;
 
10161
 
 
10162
  *,cl*)
 
10163
    # Native MSVC
 
10164
    libname_spec='$name'
 
10165
    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10166
    library_names_spec='${libname}.dll.lib'
 
10167
 
 
10168
    case $build_os in
 
10169
    mingw*)
 
10170
      sys_lib_search_path_spec=
 
10171
      lt_save_ifs=$IFS
 
10172
      IFS=';'
 
10173
      for lt_path in $LIB
 
10174
      do
 
10175
        IFS=$lt_save_ifs
 
10176
        # Let DOS variable expansion print the short 8.3 style file name.
 
10177
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
 
10178
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
 
10179
      done
 
10180
      IFS=$lt_save_ifs
 
10181
      # Convert to MSYS style.
 
10182
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
 
10183
      ;;
 
10184
    cygwin*)
 
10185
      # Convert to unix form, then to dos form, then back to unix form
 
10186
      # but this time dos style (no spaces!) so that the unix form looks
 
10187
      # like /cygdrive/c/PROGRA~1:/cygdr...
 
10188
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
 
10189
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
 
10190
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
10191
      ;;
 
10192
    *)
 
10193
      sys_lib_search_path_spec="$LIB"
 
10194
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
 
10195
        # It is most probably a Windows format PATH.
 
10196
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
10197
      else
 
10198
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
10199
      fi
 
10200
      # FIXME: find the short name or the path components, as spaces are
 
10201
      # common. (e.g. "Program Files" -> "PROGRA~1")
 
10202
      ;;
 
10203
    esac
 
10204
 
 
10205
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
10206
    postinstall_cmds='base_file=`basename \${file}`~
 
10207
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
10208
      dldir=$destdir/`dirname \$dlpath`~
 
10209
      test -d \$dldir || mkdir -p \$dldir~
 
10210
      $install_prog $dir/$dlname \$dldir/$dlname'
 
10211
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
10212
      dlpath=$dir/\$dldll~
 
10213
       $RM \$dlpath'
 
10214
    shlibpath_overrides_runpath=yes
 
10215
    dynamic_linker='Win32 link.exe'
 
10216
    ;;
 
10217
 
 
10218
  *)
 
10219
    # Assume MSVC wrapper
 
10220
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
10221
    dynamic_linker='Win32 ld.exe'
 
10222
    ;;
 
10223
  esac
 
10224
  # FIXME: first we should search . and the directory the executable is in
 
10225
  shlibpath_var=PATH
 
10226
  ;;
 
10227
 
 
10228
darwin* | rhapsody*)
 
10229
  dynamic_linker="$host_os dyld"
 
10230
  version_type=darwin
 
10231
  need_lib_prefix=no
 
10232
  need_version=no
 
10233
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
10234
  soname_spec='${libname}${release}${major}$shared_ext'
 
10235
  shlibpath_overrides_runpath=yes
 
10236
  shlibpath_var=DYLD_LIBRARY_PATH
 
10237
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
10238
 
 
10239
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
 
10240
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
10241
  ;;
 
10242
 
 
10243
dgux*)
 
10244
  version_type=linux # correct to gnu/linux during the next big refactor
 
10245
  need_lib_prefix=no
 
10246
  need_version=no
 
10247
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
10248
  soname_spec='${libname}${release}${shared_ext}$major'
 
10249
  shlibpath_var=LD_LIBRARY_PATH
 
10250
  ;;
 
10251
 
 
10252
freebsd* | dragonfly*)
 
10253
  # DragonFly does not have aout.  When/if they implement a new
 
10254
  # versioning mechanism, adjust this.
 
10255
  if test -x /usr/bin/objformat; then
 
10256
    objformat=`/usr/bin/objformat`
 
10257
  else
 
10258
    case $host_os in
 
10259
    freebsd[23].*) objformat=aout ;;
 
10260
    *) objformat=elf ;;
 
10261
    esac
 
10262
  fi
 
10263
  version_type=freebsd-$objformat
 
10264
  case $version_type in
 
10265
    freebsd-elf*)
 
10266
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
10267
      need_version=no
 
10268
      need_lib_prefix=no
 
10269
      ;;
 
10270
    freebsd-*)
 
10271
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
10272
      need_version=yes
 
10273
      ;;
 
10274
  esac
 
10275
  shlibpath_var=LD_LIBRARY_PATH
 
10276
  case $host_os in
 
10277
  freebsd2.*)
 
10278
    shlibpath_overrides_runpath=yes
 
10279
    ;;
 
10280
  freebsd3.[01]* | freebsdelf3.[01]*)
 
10281
    shlibpath_overrides_runpath=yes
 
10282
    hardcode_into_libs=yes
 
10283
    ;;
 
10284
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
10285
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
10286
    shlibpath_overrides_runpath=no
 
10287
    hardcode_into_libs=yes
 
10288
    ;;
 
10289
  *) # from 4.6 on, and DragonFly
 
10290
    shlibpath_overrides_runpath=yes
 
10291
    hardcode_into_libs=yes
 
10292
    ;;
 
10293
  esac
 
10294
  ;;
 
10295
 
 
10296
gnu*)
 
10297
  version_type=linux # correct to gnu/linux during the next big refactor
 
10298
  need_lib_prefix=no
 
10299
  need_version=no
 
10300
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
10301
  soname_spec='${libname}${release}${shared_ext}$major'
 
10302
  shlibpath_var=LD_LIBRARY_PATH
 
10303
  shlibpath_overrides_runpath=no
 
10304
  hardcode_into_libs=yes
 
10305
  ;;
 
10306
 
 
10307
haiku*)
 
10308
  version_type=linux # correct to gnu/linux during the next big refactor
 
10309
  need_lib_prefix=no
 
10310
  need_version=no
 
10311
  dynamic_linker="$host_os runtime_loader"
 
10312
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
10313
  soname_spec='${libname}${release}${shared_ext}$major'
 
10314
  shlibpath_var=LIBRARY_PATH
 
10315
  shlibpath_overrides_runpath=yes
 
10316
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
 
10317
  hardcode_into_libs=yes
 
10318
  ;;
 
10319
 
 
10320
hpux9* | hpux10* | hpux11*)
 
10321
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
10322
  # link against other versions.
 
10323
  version_type=sunos
 
10324
  need_lib_prefix=no
 
10325
  need_version=no
 
10326
  case $host_cpu in
 
10327
  ia64*)
 
10328
    shrext_cmds='.so'
 
10329
    hardcode_into_libs=yes
 
10330
    dynamic_linker="$host_os dld.so"
 
10331
    shlibpath_var=LD_LIBRARY_PATH
 
10332
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
10333
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10334
    soname_spec='${libname}${release}${shared_ext}$major'
 
10335
    if test "X$HPUX_IA64_MODE" = X32; then
 
10336
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
10337
    else
 
10338
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
10339
    fi
 
10340
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
10341
    ;;
 
10342
  hppa*64*)
 
10343
    shrext_cmds='.sl'
 
10344
    hardcode_into_libs=yes
 
10345
    dynamic_linker="$host_os dld.sl"
 
10346
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
10347
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
10348
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10349
    soname_spec='${libname}${release}${shared_ext}$major'
 
10350
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
10351
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
10352
    ;;
 
10353
  *)
 
10354
    shrext_cmds='.sl'
 
10355
    dynamic_linker="$host_os dld.sl"
 
10356
    shlibpath_var=SHLIB_PATH
 
10357
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
10358
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10359
    soname_spec='${libname}${release}${shared_ext}$major'
 
10360
    ;;
 
10361
  esac
 
10362
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
 
10363
  postinstall_cmds='chmod 555 $lib'
 
10364
  # or fails outright, so override atomically:
 
10365
  install_override_mode=555
 
10366
  ;;
 
10367
 
 
10368
interix[3-9]*)
 
10369
  version_type=linux # correct to gnu/linux during the next big refactor
 
10370
  need_lib_prefix=no
 
10371
  need_version=no
 
10372
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
10373
  soname_spec='${libname}${release}${shared_ext}$major'
 
10374
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
10375
  shlibpath_var=LD_LIBRARY_PATH
 
10376
  shlibpath_overrides_runpath=no
 
10377
  hardcode_into_libs=yes
 
10378
  ;;
 
10379
 
 
10380
irix5* | irix6* | nonstopux*)
 
10381
  case $host_os in
 
10382
    nonstopux*) version_type=nonstopux ;;
 
10383
    *)
 
10384
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
10385
                version_type=linux # correct to gnu/linux during the next big refactor
 
10386
        else
 
10387
                version_type=irix
 
10388
        fi ;;
 
10389
  esac
 
10390
  need_lib_prefix=no
 
10391
  need_version=no
 
10392
  soname_spec='${libname}${release}${shared_ext}$major'
 
10393
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
10394
  case $host_os in
 
10395
  irix5* | nonstopux*)
 
10396
    libsuff= shlibsuff=
 
10397
    ;;
 
10398
  *)
 
10399
    case $LD in # libtool.m4 will add one of these switches to LD
 
10400
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
10401
      libsuff= shlibsuff= libmagic=32-bit;;
 
10402
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
10403
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
10404
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
10405
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
10406
    *) libsuff= shlibsuff= libmagic=never-match;;
 
10407
    esac
 
10408
    ;;
 
10409
  esac
 
10410
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
10411
  shlibpath_overrides_runpath=no
 
10412
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
10413
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
10414
  hardcode_into_libs=yes
 
10415
  ;;
 
10416
 
 
10417
# No shared lib support for Linux oldld, aout, or coff.
 
10418
linux*oldld* | linux*aout* | linux*coff*)
 
10419
  dynamic_linker=no
 
10420
  ;;
 
10421
 
 
10422
# This must be glibc/ELF.
 
10423
linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
10424
  version_type=linux # correct to gnu/linux during the next big refactor
 
10425
  need_lib_prefix=no
 
10426
  need_version=no
 
10427
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10428
  soname_spec='${libname}${release}${shared_ext}$major'
 
10429
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
10430
  shlibpath_var=LD_LIBRARY_PATH
 
10431
  shlibpath_overrides_runpath=no
 
10432
 
 
10433
  # Some binutils ld are patched to set DT_RUNPATH
 
10434
  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
 
10435
  $as_echo_n "(cached) " >&6
 
10436
else
 
10437
  lt_cv_shlibpath_overrides_runpath=no
 
10438
    save_LDFLAGS=$LDFLAGS
 
10439
    save_libdir=$libdir
 
10440
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
 
10441
         LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
 
10442
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10443
/* end confdefs.h.  */
 
10444
 
 
10445
int
 
10446
main ()
 
10447
{
 
10448
 
 
10449
  ;
 
10450
  return 0;
 
10451
}
 
10452
_ACEOF
 
10453
if ac_fn_c_try_link "$LINENO"; then :
 
10454
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
 
10455
  lt_cv_shlibpath_overrides_runpath=yes
 
10456
fi
 
10457
fi
 
10458
rm -f core conftest.err conftest.$ac_objext \
 
10459
    conftest$ac_exeext conftest.$ac_ext
 
10460
    LDFLAGS=$save_LDFLAGS
 
10461
    libdir=$save_libdir
 
10462
 
 
10463
fi
 
10464
 
 
10465
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
 
10466
 
 
10467
  # This implies no fast_install, which is unacceptable.
 
10468
  # Some rework will be needed to allow for fast_install
 
10469
  # before this can be enabled.
 
10470
  hardcode_into_libs=yes
 
10471
 
 
10472
  # Add ABI-specific directories to the system library path.
 
10473
  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
 
10474
 
 
10475
  # Append ld.so.conf contents to the search path
 
10476
  if test -f /etc/ld.so.conf; then
 
10477
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
 
10478
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
 
10479
 
 
10480
  fi
 
10481
 
 
10482
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
10483
  # powerpc, because MkLinux only supported shared libraries with the
 
10484
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
10485
  # most powerpc-linux boxes support dynamic linking these days and
 
10486
  # people can always --disable-shared, the test was removed, and we
 
10487
  # assume the GNU/Linux dynamic linker is in use.
 
10488
  dynamic_linker='GNU/Linux ld.so'
 
10489
  ;;
 
10490
 
 
10491
netbsd*)
 
10492
  version_type=sunos
 
10493
  need_lib_prefix=no
 
10494
  need_version=no
 
10495
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
10496
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
10497
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
10498
    dynamic_linker='NetBSD (a.out) ld.so'
 
10499
  else
 
10500
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
10501
    soname_spec='${libname}${release}${shared_ext}$major'
 
10502
    dynamic_linker='NetBSD ld.elf_so'
 
10503
  fi
 
10504
  shlibpath_var=LD_LIBRARY_PATH
 
10505
  shlibpath_overrides_runpath=yes
 
10506
  hardcode_into_libs=yes
 
10507
  ;;
 
10508
 
 
10509
newsos6)
 
10510
  version_type=linux # correct to gnu/linux during the next big refactor
 
10511
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10512
  shlibpath_var=LD_LIBRARY_PATH
 
10513
  shlibpath_overrides_runpath=yes
 
10514
  ;;
 
10515
 
 
10516
*nto* | *qnx*)
 
10517
  version_type=qnx
 
10518
  need_lib_prefix=no
 
10519
  need_version=no
 
10520
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10521
  soname_spec='${libname}${release}${shared_ext}$major'
 
10522
  shlibpath_var=LD_LIBRARY_PATH
 
10523
  shlibpath_overrides_runpath=no
 
10524
  hardcode_into_libs=yes
 
10525
  dynamic_linker='ldqnx.so'
 
10526
  ;;
 
10527
 
 
10528
openbsd*)
 
10529
  version_type=sunos
 
10530
  sys_lib_dlsearch_path_spec="/usr/lib"
 
10531
  need_lib_prefix=no
 
10532
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
10533
  case $host_os in
 
10534
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
 
10535
    *)                          need_version=no  ;;
 
10536
  esac
 
10537
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
10538
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
10539
  shlibpath_var=LD_LIBRARY_PATH
 
10540
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
10541
    case $host_os in
 
10542
      openbsd2.[89] | openbsd2.[89].*)
 
10543
        shlibpath_overrides_runpath=no
 
10544
        ;;
 
10545
      *)
 
10546
        shlibpath_overrides_runpath=yes
 
10547
        ;;
 
10548
      esac
 
10549
  else
 
10550
    shlibpath_overrides_runpath=yes
 
10551
  fi
 
10552
  ;;
 
10553
 
 
10554
os2*)
 
10555
  libname_spec='$name'
 
10556
  shrext_cmds=".dll"
 
10557
  need_lib_prefix=no
 
10558
  library_names_spec='$libname${shared_ext} $libname.a'
 
10559
  dynamic_linker='OS/2 ld.exe'
 
10560
  shlibpath_var=LIBPATH
 
10561
  ;;
 
10562
 
 
10563
osf3* | osf4* | osf5*)
 
10564
  version_type=osf
 
10565
  need_lib_prefix=no
 
10566
  need_version=no
 
10567
  soname_spec='${libname}${release}${shared_ext}$major'
 
10568
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10569
  shlibpath_var=LD_LIBRARY_PATH
 
10570
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
10571
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
10572
  ;;
 
10573
 
 
10574
rdos*)
 
10575
  dynamic_linker=no
 
10576
  ;;
 
10577
 
 
10578
solaris*)
 
10579
  version_type=linux # correct to gnu/linux during the next big refactor
 
10580
  need_lib_prefix=no
 
10581
  need_version=no
 
10582
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10583
  soname_spec='${libname}${release}${shared_ext}$major'
 
10584
  shlibpath_var=LD_LIBRARY_PATH
 
10585
  shlibpath_overrides_runpath=yes
 
10586
  hardcode_into_libs=yes
 
10587
  # ldd complains unless libraries are executable
 
10588
  postinstall_cmds='chmod +x $lib'
 
10589
  ;;
 
10590
 
 
10591
sunos4*)
 
10592
  version_type=sunos
 
10593
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
10594
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
10595
  shlibpath_var=LD_LIBRARY_PATH
 
10596
  shlibpath_overrides_runpath=yes
 
10597
  if test "$with_gnu_ld" = yes; then
 
10598
    need_lib_prefix=no
 
10599
  fi
 
10600
  need_version=yes
 
10601
  ;;
 
10602
 
 
10603
sysv4 | sysv4.3*)
 
10604
  version_type=linux # correct to gnu/linux during the next big refactor
 
10605
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10606
  soname_spec='${libname}${release}${shared_ext}$major'
 
10607
  shlibpath_var=LD_LIBRARY_PATH
 
10608
  case $host_vendor in
 
10609
    sni)
 
10610
      shlibpath_overrides_runpath=no
 
10611
      need_lib_prefix=no
 
10612
      runpath_var=LD_RUN_PATH
 
10613
      ;;
 
10614
    siemens)
 
10615
      need_lib_prefix=no
 
10616
      ;;
 
10617
    motorola)
 
10618
      need_lib_prefix=no
 
10619
      need_version=no
 
10620
      shlibpath_overrides_runpath=no
 
10621
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
10622
      ;;
 
10623
  esac
 
10624
  ;;
 
10625
 
 
10626
sysv4*MP*)
 
10627
  if test -d /usr/nec ;then
 
10628
    version_type=linux # correct to gnu/linux during the next big refactor
 
10629
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
10630
    soname_spec='$libname${shared_ext}.$major'
 
10631
    shlibpath_var=LD_LIBRARY_PATH
 
10632
  fi
 
10633
  ;;
 
10634
 
 
10635
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
10636
  version_type=freebsd-elf
 
10637
  need_lib_prefix=no
 
10638
  need_version=no
 
10639
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
10640
  soname_spec='${libname}${release}${shared_ext}$major'
 
10641
  shlibpath_var=LD_LIBRARY_PATH
 
10642
  shlibpath_overrides_runpath=yes
 
10643
  hardcode_into_libs=yes
 
10644
  if test "$with_gnu_ld" = yes; then
 
10645
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
10646
  else
 
10647
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
10648
    case $host_os in
 
10649
      sco3.2v5*)
 
10650
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
10651
        ;;
 
10652
    esac
 
10653
  fi
 
10654
  sys_lib_dlsearch_path_spec='/usr/lib'
 
10655
  ;;
 
10656
 
 
10657
tpf*)
 
10658
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 
10659
  version_type=linux # correct to gnu/linux during the next big refactor
 
10660
  need_lib_prefix=no
 
10661
  need_version=no
 
10662
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10663
  shlibpath_var=LD_LIBRARY_PATH
 
10664
  shlibpath_overrides_runpath=no
 
10665
  hardcode_into_libs=yes
 
10666
  ;;
 
10667
 
 
10668
uts4*)
 
10669
  version_type=linux # correct to gnu/linux during the next big refactor
 
10670
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10671
  soname_spec='${libname}${release}${shared_ext}$major'
 
10672
  shlibpath_var=LD_LIBRARY_PATH
 
10673
  ;;
 
10674
 
 
10675
*)
 
10676
  dynamic_linker=no
 
10677
  ;;
 
10678
esac
 
10679
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
 
10680
$as_echo "$dynamic_linker" >&6; }
 
10681
test "$dynamic_linker" = no && can_build_shared=no
 
10682
 
 
10683
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
10684
if test "$GCC" = yes; then
 
10685
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
10686
fi
 
10687
 
 
10688
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
10689
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
10690
fi
 
10691
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
10692
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
10693
fi
 
10694
 
 
10695
 
 
10696
 
 
10697
 
 
10698
 
 
10699
 
 
10700
 
 
10701
 
 
10702
 
 
10703
 
 
10704
 
 
10705
 
 
10706
 
 
10707
 
 
10708
 
 
10709
 
 
10710
 
 
10711
 
 
10712
 
 
10713
 
 
10714
 
 
10715
 
 
10716
 
 
10717
 
 
10718
 
 
10719
 
 
10720
 
 
10721
 
 
10722
 
 
10723
 
 
10724
 
 
10725
 
 
10726
 
 
10727
 
 
10728
 
 
10729
 
 
10730
 
 
10731
 
 
10732
 
 
10733
 
 
10734
 
 
10735
 
 
10736
 
 
10737
 
 
10738
 
 
10739
 
 
10740
 
 
10741
 
 
10742
 
 
10743
 
 
10744
 
 
10745
 
 
10746
 
 
10747
 
 
10748
 
 
10749
 
 
10750
 
 
10751
 
 
10752
 
 
10753
 
 
10754
 
 
10755
 
 
10756
 
 
10757
 
 
10758
 
 
10759
 
 
10760
 
 
10761
 
 
10762
 
 
10763
 
 
10764
 
 
10765
 
 
10766
 
 
10767
 
 
10768
 
 
10769
 
 
10770
 
 
10771
 
 
10772
 
 
10773
 
 
10774
 
 
10775
 
 
10776
 
 
10777
 
 
10778
 
 
10779
 
 
10780
 
 
10781
 
 
10782
 
 
10783
 
 
10784
 
 
10785
 
 
10786
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
 
10787
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 
10788
hardcode_action=
 
10789
if test -n "$hardcode_libdir_flag_spec" ||
 
10790
   test -n "$runpath_var" ||
 
10791
   test "X$hardcode_automatic" = "Xyes" ; then
 
10792
 
 
10793
  # We can hardcode non-existent directories.
 
10794
  if test "$hardcode_direct" != no &&
 
10795
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
10796
     # have to relink, otherwise we might link with an installed library
 
10797
     # when we should be linking with a yet-to-be-installed one
 
10798
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
10799
     test "$hardcode_minus_L" != no; then
 
10800
    # Linking always hardcodes the temporary library directory.
 
10801
    hardcode_action=relink
 
10802
  else
 
10803
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
10804
    hardcode_action=immediate
 
10805
  fi
 
10806
else
 
10807
  # We cannot hardcode anything, or else we can only hardcode existing
 
10808
  # directories.
 
10809
  hardcode_action=unsupported
 
10810
fi
 
10811
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
 
10812
$as_echo "$hardcode_action" >&6; }
 
10813
 
 
10814
if test "$hardcode_action" = relink ||
 
10815
   test "$inherit_rpath" = yes; then
 
10816
  # Fast installation is not supported
 
10817
  enable_fast_install=no
 
10818
elif test "$shlibpath_overrides_runpath" = yes ||
 
10819
     test "$enable_shared" = no; then
 
10820
  # Fast installation is not necessary
 
10821
  enable_fast_install=needless
 
10822
fi
 
10823
 
 
10824
 
 
10825
 
 
10826
 
 
10827
 
 
10828
 
 
10829
  if test "x$enable_dlopen" != xyes; then
 
10830
  enable_dlopen=unknown
 
10831
  enable_dlopen_self=unknown
 
10832
  enable_dlopen_self_static=unknown
 
10833
else
 
10834
  lt_cv_dlopen=no
 
10835
  lt_cv_dlopen_libs=
 
10836
 
 
10837
  case $host_os in
 
10838
  beos*)
 
10839
    lt_cv_dlopen="load_add_on"
 
10840
    lt_cv_dlopen_libs=
 
10841
    lt_cv_dlopen_self=yes
 
10842
    ;;
 
10843
 
 
10844
  mingw* | pw32* | cegcc*)
 
10845
    lt_cv_dlopen="LoadLibrary"
 
10846
    lt_cv_dlopen_libs=
 
10847
    ;;
 
10848
 
 
10849
  cygwin*)
 
10850
    lt_cv_dlopen="dlopen"
 
10851
    lt_cv_dlopen_libs=
 
10852
    ;;
 
10853
 
 
10854
  darwin*)
 
10855
  # if libdl is installed we need to link against it
 
10856
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
 
10857
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
10858
if ${ac_cv_lib_dl_dlopen+:} false; then :
 
10859
  $as_echo_n "(cached) " >&6
 
10860
else
 
10861
  ac_check_lib_save_LIBS=$LIBS
 
10862
LIBS="-ldl  $LIBS"
 
10863
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10864
/* end confdefs.h.  */
 
10865
 
 
10866
/* Override any GCC internal prototype to avoid an error.
 
10867
   Use char because int might match the return type of a GCC
 
10868
   builtin and then its argument prototype would still apply.  */
 
10869
#ifdef __cplusplus
 
10870
extern "C"
 
10871
#endif
 
10872
char dlopen ();
 
10873
int
 
10874
main ()
 
10875
{
 
10876
return dlopen ();
 
10877
  ;
 
10878
  return 0;
 
10879
}
 
10880
_ACEOF
 
10881
if ac_fn_c_try_link "$LINENO"; then :
 
10882
  ac_cv_lib_dl_dlopen=yes
 
10883
else
 
10884
  ac_cv_lib_dl_dlopen=no
 
10885
fi
 
10886
rm -f core conftest.err conftest.$ac_objext \
 
10887
    conftest$ac_exeext conftest.$ac_ext
 
10888
LIBS=$ac_check_lib_save_LIBS
 
10889
fi
 
10890
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
 
10891
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
10892
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
 
10893
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
10894
else
 
10895
 
 
10896
    lt_cv_dlopen="dyld"
 
10897
    lt_cv_dlopen_libs=
 
10898
    lt_cv_dlopen_self=yes
 
10899
 
 
10900
fi
 
10901
 
 
10902
    ;;
 
10903
 
 
10904
  *)
 
10905
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
 
10906
if test "x$ac_cv_func_shl_load" = xyes; then :
 
10907
  lt_cv_dlopen="shl_load"
 
10908
else
 
10909
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
 
10910
$as_echo_n "checking for shl_load in -ldld... " >&6; }
 
10911
if ${ac_cv_lib_dld_shl_load+:} false; then :
 
10912
  $as_echo_n "(cached) " >&6
 
10913
else
 
10914
  ac_check_lib_save_LIBS=$LIBS
 
10915
LIBS="-ldld  $LIBS"
 
10916
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10917
/* end confdefs.h.  */
 
10918
 
 
10919
/* Override any GCC internal prototype to avoid an error.
 
10920
   Use char because int might match the return type of a GCC
 
10921
   builtin and then its argument prototype would still apply.  */
 
10922
#ifdef __cplusplus
 
10923
extern "C"
 
10924
#endif
 
10925
char shl_load ();
 
10926
int
 
10927
main ()
 
10928
{
 
10929
return shl_load ();
 
10930
  ;
 
10931
  return 0;
 
10932
}
 
10933
_ACEOF
 
10934
if ac_fn_c_try_link "$LINENO"; then :
 
10935
  ac_cv_lib_dld_shl_load=yes
 
10936
else
 
10937
  ac_cv_lib_dld_shl_load=no
 
10938
fi
 
10939
rm -f core conftest.err conftest.$ac_objext \
 
10940
    conftest$ac_exeext conftest.$ac_ext
 
10941
LIBS=$ac_check_lib_save_LIBS
 
10942
fi
 
10943
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
 
10944
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
 
10945
if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
 
10946
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
 
10947
else
 
10948
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
 
10949
if test "x$ac_cv_func_dlopen" = xyes; then :
 
10950
  lt_cv_dlopen="dlopen"
 
10951
else
 
10952
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
 
10953
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
10954
if ${ac_cv_lib_dl_dlopen+:} false; then :
 
10955
  $as_echo_n "(cached) " >&6
 
10956
else
 
10957
  ac_check_lib_save_LIBS=$LIBS
 
10958
LIBS="-ldl  $LIBS"
 
10959
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10960
/* end confdefs.h.  */
 
10961
 
 
10962
/* Override any GCC internal prototype to avoid an error.
 
10963
   Use char because int might match the return type of a GCC
 
10964
   builtin and then its argument prototype would still apply.  */
 
10965
#ifdef __cplusplus
 
10966
extern "C"
 
10967
#endif
 
10968
char dlopen ();
 
10969
int
 
10970
main ()
 
10971
{
 
10972
return dlopen ();
 
10973
  ;
 
10974
  return 0;
 
10975
}
 
10976
_ACEOF
 
10977
if ac_fn_c_try_link "$LINENO"; then :
 
10978
  ac_cv_lib_dl_dlopen=yes
 
10979
else
 
10980
  ac_cv_lib_dl_dlopen=no
 
10981
fi
 
10982
rm -f core conftest.err conftest.$ac_objext \
 
10983
    conftest$ac_exeext conftest.$ac_ext
 
10984
LIBS=$ac_check_lib_save_LIBS
 
10985
fi
 
10986
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
 
10987
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
10988
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
 
10989
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
10990
else
 
10991
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
 
10992
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
 
10993
if ${ac_cv_lib_svld_dlopen+:} false; then :
 
10994
  $as_echo_n "(cached) " >&6
 
10995
else
 
10996
  ac_check_lib_save_LIBS=$LIBS
 
10997
LIBS="-lsvld  $LIBS"
 
10998
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10999
/* end confdefs.h.  */
 
11000
 
 
11001
/* Override any GCC internal prototype to avoid an error.
 
11002
   Use char because int might match the return type of a GCC
 
11003
   builtin and then its argument prototype would still apply.  */
 
11004
#ifdef __cplusplus
 
11005
extern "C"
 
11006
#endif
 
11007
char dlopen ();
 
11008
int
 
11009
main ()
 
11010
{
 
11011
return dlopen ();
 
11012
  ;
 
11013
  return 0;
 
11014
}
 
11015
_ACEOF
 
11016
if ac_fn_c_try_link "$LINENO"; then :
 
11017
  ac_cv_lib_svld_dlopen=yes
 
11018
else
 
11019
  ac_cv_lib_svld_dlopen=no
 
11020
fi
 
11021
rm -f core conftest.err conftest.$ac_objext \
 
11022
    conftest$ac_exeext conftest.$ac_ext
 
11023
LIBS=$ac_check_lib_save_LIBS
 
11024
fi
 
11025
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
 
11026
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
 
11027
if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
 
11028
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
11029
else
 
11030
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
 
11031
$as_echo_n "checking for dld_link in -ldld... " >&6; }
 
11032
if ${ac_cv_lib_dld_dld_link+:} false; then :
 
11033
  $as_echo_n "(cached) " >&6
 
11034
else
 
11035
  ac_check_lib_save_LIBS=$LIBS
 
11036
LIBS="-ldld  $LIBS"
 
11037
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11038
/* end confdefs.h.  */
 
11039
 
 
11040
/* Override any GCC internal prototype to avoid an error.
 
11041
   Use char because int might match the return type of a GCC
 
11042
   builtin and then its argument prototype would still apply.  */
 
11043
#ifdef __cplusplus
 
11044
extern "C"
 
11045
#endif
 
11046
char dld_link ();
 
11047
int
 
11048
main ()
 
11049
{
 
11050
return dld_link ();
 
11051
  ;
 
11052
  return 0;
 
11053
}
 
11054
_ACEOF
 
11055
if ac_fn_c_try_link "$LINENO"; then :
 
11056
  ac_cv_lib_dld_dld_link=yes
 
11057
else
 
11058
  ac_cv_lib_dld_dld_link=no
 
11059
fi
 
11060
rm -f core conftest.err conftest.$ac_objext \
 
11061
    conftest$ac_exeext conftest.$ac_ext
 
11062
LIBS=$ac_check_lib_save_LIBS
 
11063
fi
 
11064
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
 
11065
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
 
11066
if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
 
11067
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
 
11068
fi
 
11069
 
 
11070
 
 
11071
fi
 
11072
 
 
11073
 
 
11074
fi
 
11075
 
 
11076
 
 
11077
fi
 
11078
 
 
11079
 
 
11080
fi
 
11081
 
 
11082
 
 
11083
fi
 
11084
 
 
11085
    ;;
 
11086
  esac
 
11087
 
 
11088
  if test "x$lt_cv_dlopen" != xno; then
 
11089
    enable_dlopen=yes
 
11090
  else
 
11091
    enable_dlopen=no
 
11092
  fi
 
11093
 
 
11094
  case $lt_cv_dlopen in
 
11095
  dlopen)
 
11096
    save_CPPFLAGS="$CPPFLAGS"
 
11097
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
11098
 
 
11099
    save_LDFLAGS="$LDFLAGS"
 
11100
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
11101
 
 
11102
    save_LIBS="$LIBS"
 
11103
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
11104
 
 
11105
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
 
11106
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
 
11107
if ${lt_cv_dlopen_self+:} false; then :
 
11108
  $as_echo_n "(cached) " >&6
 
11109
else
 
11110
          if test "$cross_compiling" = yes; then :
 
11111
  lt_cv_dlopen_self=cross
 
11112
else
 
11113
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
11114
  lt_status=$lt_dlunknown
 
11115
  cat > conftest.$ac_ext <<_LT_EOF
 
11116
#line $LINENO "configure"
 
11117
#include "confdefs.h"
 
11118
 
 
11119
#if HAVE_DLFCN_H
 
11120
#include <dlfcn.h>
 
11121
#endif
 
11122
 
 
11123
#include <stdio.h>
 
11124
 
 
11125
#ifdef RTLD_GLOBAL
 
11126
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
11127
#else
 
11128
#  ifdef DL_GLOBAL
 
11129
#    define LT_DLGLOBAL         DL_GLOBAL
 
11130
#  else
 
11131
#    define LT_DLGLOBAL         0
 
11132
#  endif
 
11133
#endif
 
11134
 
 
11135
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
11136
   find out it does not work in some platform. */
 
11137
#ifndef LT_DLLAZY_OR_NOW
 
11138
#  ifdef RTLD_LAZY
 
11139
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
11140
#  else
 
11141
#    ifdef DL_LAZY
 
11142
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
11143
#    else
 
11144
#      ifdef RTLD_NOW
 
11145
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
11146
#      else
 
11147
#        ifdef DL_NOW
 
11148
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
11149
#        else
 
11150
#          define LT_DLLAZY_OR_NOW      0
 
11151
#        endif
 
11152
#      endif
 
11153
#    endif
 
11154
#  endif
 
11155
#endif
 
11156
 
 
11157
/* When -fvisbility=hidden is used, assume the code has been annotated
 
11158
   correspondingly for the symbols needed.  */
 
11159
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
 
11160
int fnord () __attribute__((visibility("default")));
 
11161
#endif
 
11162
 
 
11163
int fnord () { return 42; }
 
11164
int main ()
 
11165
{
 
11166
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
11167
  int status = $lt_dlunknown;
 
11168
 
 
11169
  if (self)
 
11170
    {
 
11171
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
11172
      else
 
11173
        {
 
11174
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
 
11175
          else puts (dlerror ());
 
11176
        }
 
11177
      /* dlclose (self); */
 
11178
    }
 
11179
  else
 
11180
    puts (dlerror ());
 
11181
 
 
11182
  return status;
 
11183
}
 
11184
_LT_EOF
 
11185
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
11186
  (eval $ac_link) 2>&5
 
11187
  ac_status=$?
 
11188
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
11189
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
 
11190
    (./conftest; exit; ) >&5 2>/dev/null
 
11191
    lt_status=$?
 
11192
    case x$lt_status in
 
11193
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
11194
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
11195
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
 
11196
    esac
 
11197
  else :
 
11198
    # compilation failed
 
11199
    lt_cv_dlopen_self=no
 
11200
  fi
 
11201
fi
 
11202
rm -fr conftest*
 
11203
 
 
11204
 
 
11205
fi
 
11206
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
 
11207
$as_echo "$lt_cv_dlopen_self" >&6; }
 
11208
 
 
11209
    if test "x$lt_cv_dlopen_self" = xyes; then
 
11210
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 
11211
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
 
11212
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
 
11213
if ${lt_cv_dlopen_self_static+:} false; then :
 
11214
  $as_echo_n "(cached) " >&6
 
11215
else
 
11216
          if test "$cross_compiling" = yes; then :
 
11217
  lt_cv_dlopen_self_static=cross
 
11218
else
 
11219
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
11220
  lt_status=$lt_dlunknown
 
11221
  cat > conftest.$ac_ext <<_LT_EOF
 
11222
#line $LINENO "configure"
 
11223
#include "confdefs.h"
 
11224
 
 
11225
#if HAVE_DLFCN_H
 
11226
#include <dlfcn.h>
 
11227
#endif
 
11228
 
 
11229
#include <stdio.h>
 
11230
 
 
11231
#ifdef RTLD_GLOBAL
 
11232
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
11233
#else
 
11234
#  ifdef DL_GLOBAL
 
11235
#    define LT_DLGLOBAL         DL_GLOBAL
 
11236
#  else
 
11237
#    define LT_DLGLOBAL         0
 
11238
#  endif
 
11239
#endif
 
11240
 
 
11241
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
11242
   find out it does not work in some platform. */
 
11243
#ifndef LT_DLLAZY_OR_NOW
 
11244
#  ifdef RTLD_LAZY
 
11245
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
11246
#  else
 
11247
#    ifdef DL_LAZY
 
11248
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
11249
#    else
 
11250
#      ifdef RTLD_NOW
 
11251
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
11252
#      else
 
11253
#        ifdef DL_NOW
 
11254
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
11255
#        else
 
11256
#          define LT_DLLAZY_OR_NOW      0
 
11257
#        endif
 
11258
#      endif
 
11259
#    endif
 
11260
#  endif
 
11261
#endif
 
11262
 
 
11263
/* When -fvisbility=hidden is used, assume the code has been annotated
 
11264
   correspondingly for the symbols needed.  */
 
11265
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
 
11266
int fnord () __attribute__((visibility("default")));
 
11267
#endif
 
11268
 
 
11269
int fnord () { return 42; }
 
11270
int main ()
 
11271
{
 
11272
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
11273
  int status = $lt_dlunknown;
 
11274
 
 
11275
  if (self)
 
11276
    {
 
11277
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
11278
      else
 
11279
        {
 
11280
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
 
11281
          else puts (dlerror ());
 
11282
        }
 
11283
      /* dlclose (self); */
 
11284
    }
 
11285
  else
 
11286
    puts (dlerror ());
 
11287
 
 
11288
  return status;
 
11289
}
 
11290
_LT_EOF
 
11291
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
11292
  (eval $ac_link) 2>&5
 
11293
  ac_status=$?
 
11294
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
11295
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
 
11296
    (./conftest; exit; ) >&5 2>/dev/null
 
11297
    lt_status=$?
 
11298
    case x$lt_status in
 
11299
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
11300
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
11301
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
 
11302
    esac
 
11303
  else :
 
11304
    # compilation failed
 
11305
    lt_cv_dlopen_self_static=no
 
11306
  fi
 
11307
fi
 
11308
rm -fr conftest*
 
11309
 
 
11310
 
 
11311
fi
 
11312
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
 
11313
$as_echo "$lt_cv_dlopen_self_static" >&6; }
 
11314
    fi
 
11315
 
 
11316
    CPPFLAGS="$save_CPPFLAGS"
 
11317
    LDFLAGS="$save_LDFLAGS"
 
11318
    LIBS="$save_LIBS"
 
11319
    ;;
 
11320
  esac
 
11321
 
 
11322
  case $lt_cv_dlopen_self in
 
11323
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
11324
  *) enable_dlopen_self=unknown ;;
 
11325
  esac
 
11326
 
 
11327
  case $lt_cv_dlopen_self_static in
 
11328
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
11329
  *) enable_dlopen_self_static=unknown ;;
 
11330
  esac
 
11331
fi
 
11332
 
 
11333
 
 
11334
 
 
11335
 
 
11336
 
 
11337
 
 
11338
 
 
11339
 
 
11340
 
 
11341
 
 
11342
 
 
11343
 
 
11344
 
 
11345
 
 
11346
 
 
11347
 
 
11348
 
 
11349
striplib=
 
11350
old_striplib=
 
11351
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
 
11352
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
 
11353
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
 
11354
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
11355
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
11356
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
11357
$as_echo "yes" >&6; }
 
11358
else
 
11359
# FIXME - insert some real tests, host_os isn't really good enough
 
11360
  case $host_os in
 
11361
  darwin*)
 
11362
    if test -n "$STRIP" ; then
 
11363
      striplib="$STRIP -x"
 
11364
      old_striplib="$STRIP -S"
 
11365
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
11366
$as_echo "yes" >&6; }
 
11367
    else
 
11368
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11369
$as_echo "no" >&6; }
 
11370
    fi
 
11371
    ;;
 
11372
  *)
 
11373
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11374
$as_echo "no" >&6; }
 
11375
    ;;
 
11376
  esac
 
11377
fi
 
11378
 
 
11379
 
 
11380
 
 
11381
 
 
11382
 
 
11383
 
 
11384
 
 
11385
 
 
11386
 
 
11387
 
 
11388
 
 
11389
 
 
11390
  # Report which library types will actually be built
 
11391
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
 
11392
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
 
11393
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
 
11394
$as_echo "$can_build_shared" >&6; }
 
11395
 
 
11396
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
 
11397
$as_echo_n "checking whether to build shared libraries... " >&6; }
 
11398
  test "$can_build_shared" = "no" && enable_shared=no
 
11399
 
 
11400
  # On AIX, shared libraries and static libraries use the same namespace, and
 
11401
  # are all built from PIC.
 
11402
  case $host_os in
 
11403
  aix3*)
 
11404
    test "$enable_shared" = yes && enable_static=no
 
11405
    if test -n "$RANLIB"; then
 
11406
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
11407
      postinstall_cmds='$RANLIB $lib'
 
11408
    fi
 
11409
    ;;
 
11410
 
 
11411
  aix[4-9]*)
 
11412
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
11413
      test "$enable_shared" = yes && enable_static=no
 
11414
    fi
 
11415
    ;;
 
11416
  esac
 
11417
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
 
11418
$as_echo "$enable_shared" >&6; }
 
11419
 
 
11420
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
 
11421
$as_echo_n "checking whether to build static libraries... " >&6; }
 
11422
  # Make sure either enable_shared or enable_static is yes.
 
11423
  test "$enable_shared" = yes || enable_static=yes
 
11424
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
 
11425
$as_echo "$enable_static" >&6; }
 
11426
 
 
11427
 
 
11428
 
 
11429
 
 
11430
fi
 
11431
ac_ext=c
 
11432
ac_cpp='$CPP $CPPFLAGS'
 
11433
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11434
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11435
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
11436
 
 
11437
CC="$lt_save_CC"
 
11438
 
 
11439
 
 
11440
 
 
11441
 
 
11442
 
 
11443
 
 
11444
 
 
11445
 
 
11446
 
 
11447
 
 
11448
 
 
11449
 
 
11450
 
 
11451
 
 
11452
 
 
11453
        ac_config_commands="$ac_config_commands libtool"
 
11454
 
 
11455
 
 
11456
 
 
11457
 
 
11458
# Only expand once:
 
11459
 
 
11460
 
 
11461
# Check whether --enable-largefile was given.
 
11462
if test "${enable_largefile+set}" = set; then :
 
11463
  enableval=$enable_largefile;
 
11464
fi
 
11465
 
 
11466
if test "$enable_largefile" != no; then
 
11467
 
 
11468
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
 
11469
$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
 
11470
if ${ac_cv_sys_largefile_CC+:} false; then :
 
11471
  $as_echo_n "(cached) " >&6
 
11472
else
 
11473
  ac_cv_sys_largefile_CC=no
 
11474
     if test "$GCC" != yes; then
 
11475
       ac_save_CC=$CC
 
11476
       while :; do
 
11477
         # IRIX 6.2 and later do not support large files by default,
 
11478
         # so use the C compiler's -n32 option if that helps.
 
11479
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11480
/* end confdefs.h.  */
 
11481
#include <sys/types.h>
 
11482
 /* Check that off_t can represent 2**63 - 1 correctly.
 
11483
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
 
11484
    since some C++ compilers masquerading as C compilers
 
11485
    incorrectly reject 9223372036854775807.  */
 
11486
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
 
11487
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 
11488
                       && LARGE_OFF_T % 2147483647 == 1)
 
11489
                      ? 1 : -1];
 
11490
int
 
11491
main ()
 
11492
{
 
11493
 
 
11494
  ;
 
11495
  return 0;
 
11496
}
 
11497
_ACEOF
 
11498
         if ac_fn_c_try_compile "$LINENO"; then :
 
11499
  break
 
11500
fi
 
11501
rm -f core conftest.err conftest.$ac_objext
 
11502
         CC="$CC -n32"
 
11503
         if ac_fn_c_try_compile "$LINENO"; then :
 
11504
  ac_cv_sys_largefile_CC=' -n32'; break
 
11505
fi
 
11506
rm -f core conftest.err conftest.$ac_objext
 
11507
         break
 
11508
       done
 
11509
       CC=$ac_save_CC
 
11510
       rm -f conftest.$ac_ext
 
11511
    fi
 
11512
fi
 
11513
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
 
11514
$as_echo "$ac_cv_sys_largefile_CC" >&6; }
 
11515
  if test "$ac_cv_sys_largefile_CC" != no; then
 
11516
    CC=$CC$ac_cv_sys_largefile_CC
 
11517
  fi
 
11518
 
 
11519
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
 
11520
$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
 
11521
if ${ac_cv_sys_file_offset_bits+:} false; then :
 
11522
  $as_echo_n "(cached) " >&6
 
11523
else
 
11524
  while :; do
 
11525
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11526
/* end confdefs.h.  */
 
11527
#include <sys/types.h>
 
11528
 /* Check that off_t can represent 2**63 - 1 correctly.
 
11529
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
 
11530
    since some C++ compilers masquerading as C compilers
 
11531
    incorrectly reject 9223372036854775807.  */
 
11532
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
 
11533
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 
11534
                       && LARGE_OFF_T % 2147483647 == 1)
 
11535
                      ? 1 : -1];
 
11536
int
 
11537
main ()
 
11538
{
 
11539
 
 
11540
  ;
 
11541
  return 0;
 
11542
}
 
11543
_ACEOF
 
11544
if ac_fn_c_try_compile "$LINENO"; then :
 
11545
  ac_cv_sys_file_offset_bits=no; break
 
11546
fi
 
11547
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11548
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11549
/* end confdefs.h.  */
 
11550
#define _FILE_OFFSET_BITS 64
 
11551
#include <sys/types.h>
 
11552
 /* Check that off_t can represent 2**63 - 1 correctly.
 
11553
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
 
11554
    since some C++ compilers masquerading as C compilers
 
11555
    incorrectly reject 9223372036854775807.  */
 
11556
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
 
11557
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 
11558
                       && LARGE_OFF_T % 2147483647 == 1)
 
11559
                      ? 1 : -1];
 
11560
int
 
11561
main ()
 
11562
{
 
11563
 
 
11564
  ;
 
11565
  return 0;
 
11566
}
 
11567
_ACEOF
 
11568
if ac_fn_c_try_compile "$LINENO"; then :
 
11569
  ac_cv_sys_file_offset_bits=64; break
 
11570
fi
 
11571
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11572
  ac_cv_sys_file_offset_bits=unknown
 
11573
  break
 
11574
done
 
11575
fi
 
11576
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
 
11577
$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
 
11578
case $ac_cv_sys_file_offset_bits in #(
 
11579
  no | unknown) ;;
 
11580
  *)
 
11581
cat >>confdefs.h <<_ACEOF
 
11582
#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
 
11583
_ACEOF
 
11584
;;
 
11585
esac
 
11586
rm -rf conftest*
 
11587
  if test $ac_cv_sys_file_offset_bits = unknown; then
 
11588
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
 
11589
$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
 
11590
if ${ac_cv_sys_large_files+:} false; then :
 
11591
  $as_echo_n "(cached) " >&6
 
11592
else
 
11593
  while :; do
 
11594
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11595
/* end confdefs.h.  */
 
11596
#include <sys/types.h>
 
11597
 /* Check that off_t can represent 2**63 - 1 correctly.
 
11598
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
 
11599
    since some C++ compilers masquerading as C compilers
 
11600
    incorrectly reject 9223372036854775807.  */
 
11601
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
 
11602
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 
11603
                       && LARGE_OFF_T % 2147483647 == 1)
 
11604
                      ? 1 : -1];
 
11605
int
 
11606
main ()
 
11607
{
 
11608
 
 
11609
  ;
 
11610
  return 0;
 
11611
}
 
11612
_ACEOF
 
11613
if ac_fn_c_try_compile "$LINENO"; then :
 
11614
  ac_cv_sys_large_files=no; break
 
11615
fi
 
11616
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11617
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11618
/* end confdefs.h.  */
 
11619
#define _LARGE_FILES 1
 
11620
#include <sys/types.h>
 
11621
 /* Check that off_t can represent 2**63 - 1 correctly.
 
11622
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
 
11623
    since some C++ compilers masquerading as C compilers
 
11624
    incorrectly reject 9223372036854775807.  */
 
11625
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
 
11626
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 
11627
                       && LARGE_OFF_T % 2147483647 == 1)
 
11628
                      ? 1 : -1];
 
11629
int
 
11630
main ()
 
11631
{
 
11632
 
 
11633
  ;
 
11634
  return 0;
 
11635
}
 
11636
_ACEOF
 
11637
if ac_fn_c_try_compile "$LINENO"; then :
 
11638
  ac_cv_sys_large_files=1; break
 
11639
fi
 
11640
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11641
  ac_cv_sys_large_files=unknown
 
11642
  break
 
11643
done
 
11644
fi
 
11645
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
 
11646
$as_echo "$ac_cv_sys_large_files" >&6; }
 
11647
case $ac_cv_sys_large_files in #(
 
11648
  no | unknown) ;;
 
11649
  *)
 
11650
cat >>confdefs.h <<_ACEOF
 
11651
#define _LARGE_FILES $ac_cv_sys_large_files
 
11652
_ACEOF
 
11653
;;
 
11654
esac
 
11655
rm -rf conftest*
 
11656
  fi
 
11657
 
 
11658
 
 
11659
fi
 
11660
 
 
11661
 
 
11662
 
 
11663
 
 
11664
 
 
11665
# Check whether --with-xorg-module-dir was given.
 
11666
if test "${with_xorg_module_dir+set}" = set; then :
 
11667
  withval=$with_xorg_module_dir; moduledir="$withval"
 
11668
else
 
11669
  moduledir="$libdir/xorg/modules"
 
11670
fi
 
11671
 
 
11672
 
 
11673
# Check whether --enable-debug was given.
 
11674
if test "${enable_debug+set}" = set; then :
 
11675
  enableval=$enable_debug; DEBUG="$enableval"
 
11676
else
 
11677
  DEBUG=no
 
11678
fi
 
11679
 
 
11680
 
 
11681
# Check whether --enable-xv-debug was given.
 
11682
if test "${enable_xv_debug+set}" = set; then :
 
11683
  enableval=$enable_xv_debug; XV_DEBUG="$enableval"
 
11684
else
 
11685
  XV_DEBUG=no
 
11686
fi
 
11687
 
 
11688
 
 
11689
# Check whether --enable-viaregtool was given.
 
11690
if test "${enable_viaregtool+set}" = set; then :
 
11691
  enableval=$enable_viaregtool; TOOLS="$enableval"
 
11692
else
 
11693
  TOOLS=no
 
11694
fi
 
11695
 
 
11696
 
 
11697
# Checks for extensions
 
11698
 
 
11699
        SAVE_CFLAGS="$CFLAGS"
 
11700
        CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
 
11701
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11702
/* end confdefs.h.  */
 
11703
 
 
11704
#include "xorg-server.h"
 
11705
#if !defined RANDR
 
11706
#error RANDR not defined
 
11707
#endif
 
11708
 
 
11709
int
 
11710
main ()
 
11711
{
 
11712
 
 
11713
  ;
 
11714
  return 0;
 
11715
}
 
11716
_ACEOF
 
11717
if ac_fn_c_try_compile "$LINENO"; then :
 
11718
  _EXT_CHECK=yes
 
11719
else
 
11720
  _EXT_CHECK=no
 
11721
fi
 
11722
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11723
        CFLAGS="$SAVE_CFLAGS"
 
11724
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
 
11725
$as_echo_n "checking if RANDR is defined... " >&6; }
 
11726
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
 
11727
$as_echo "$_EXT_CHECK" >&6; }
 
11728
        if test "$_EXT_CHECK" != no; then
 
11729
                REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
 
11730
        fi
 
11731
 
 
11732
 
 
11733
        SAVE_CFLAGS="$CFLAGS"
 
11734
        CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
 
11735
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11736
/* end confdefs.h.  */
 
11737
 
 
11738
#include "xorg-server.h"
 
11739
#if !defined RENDER
 
11740
#error RENDER not defined
 
11741
#endif
 
11742
 
 
11743
int
 
11744
main ()
 
11745
{
 
11746
 
 
11747
  ;
 
11748
  return 0;
 
11749
}
 
11750
_ACEOF
 
11751
if ac_fn_c_try_compile "$LINENO"; then :
 
11752
  _EXT_CHECK=yes
 
11753
else
 
11754
  _EXT_CHECK=no
 
11755
fi
 
11756
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11757
        CFLAGS="$SAVE_CFLAGS"
 
11758
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
 
11759
$as_echo_n "checking if RENDER is defined... " >&6; }
 
11760
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
 
11761
$as_echo "$_EXT_CHECK" >&6; }
 
11762
        if test "$_EXT_CHECK" != no; then
 
11763
                REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
 
11764
        fi
 
11765
 
 
11766
 
 
11767
        SAVE_CFLAGS="$CFLAGS"
 
11768
        CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
 
11769
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11770
/* end confdefs.h.  */
 
11771
 
 
11772
#include "xorg-server.h"
 
11773
#if !defined XV
 
11774
#error XV not defined
 
11775
#endif
 
11776
 
 
11777
int
 
11778
main ()
 
11779
{
 
11780
 
 
11781
  ;
 
11782
  return 0;
 
11783
}
 
11784
_ACEOF
 
11785
if ac_fn_c_try_compile "$LINENO"; then :
 
11786
  _EXT_CHECK=yes
 
11787
else
 
11788
  _EXT_CHECK=no
 
11789
fi
 
11790
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11791
        CFLAGS="$SAVE_CFLAGS"
 
11792
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
 
11793
$as_echo_n "checking if XV is defined... " >&6; }
 
11794
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
 
11795
$as_echo "$_EXT_CHECK" >&6; }
 
11796
        if test "$_EXT_CHECK" != no; then
 
11797
                REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
 
11798
        fi
 
11799
 
 
11800
 
 
11801
        SAVE_CFLAGS="$CFLAGS"
 
11802
        CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
 
11803
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11804
/* end confdefs.h.  */
 
11805
 
 
11806
#include "xorg-server.h"
 
11807
#if !defined XF86DRI
 
11808
#error XF86DRI not defined
 
11809
#endif
 
11810
 
 
11811
int
 
11812
main ()
 
11813
{
 
11814
 
 
11815
  ;
 
11816
  return 0;
 
11817
}
 
11818
_ACEOF
 
11819
if ac_fn_c_try_compile "$LINENO"; then :
 
11820
  _EXT_CHECK=yes
 
11821
else
 
11822
  _EXT_CHECK=no
 
11823
fi
 
11824
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11825
        CFLAGS="$SAVE_CFLAGS"
 
11826
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XF86DRI is defined" >&5
 
11827
$as_echo_n "checking if XF86DRI is defined... " >&6; }
 
11828
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
 
11829
$as_echo "$_EXT_CHECK" >&6; }
 
11830
        if test "$_EXT_CHECK" != no; then
 
11831
                REQUIRED_MODULES="$REQUIRED_MODULES xextproto x11"
 
11832
        fi
 
11833
 
 
11834
 
 
11835
        SAVE_CFLAGS="$CFLAGS"
 
11836
        CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
 
11837
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11838
/* end confdefs.h.  */
 
11839
 
 
11840
#include "xorg-server.h"
 
11841
#if !defined DPMSExtension
 
11842
#error DPMSExtension not defined
 
11843
#endif
 
11844
 
 
11845
int
 
11846
main ()
 
11847
{
 
11848
 
 
11849
  ;
 
11850
  return 0;
 
11851
}
 
11852
_ACEOF
 
11853
if ac_fn_c_try_compile "$LINENO"; then :
 
11854
  _EXT_CHECK=yes
 
11855
else
 
11856
  _EXT_CHECK=no
 
11857
fi
 
11858
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11859
        CFLAGS="$SAVE_CFLAGS"
 
11860
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
 
11861
$as_echo_n "checking if DPMSExtension is defined... " >&6; }
 
11862
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
 
11863
$as_echo "$_EXT_CHECK" >&6; }
 
11864
        if test "$_EXT_CHECK" != no; then
 
11865
                REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
 
11866
        fi
 
11867
 
 
11868
 
 
11869
# Checks for pkg-config packages
 
11870
 
 
11871
 
 
11872
 
 
11873
 
 
11874
 
 
11875
 
 
11876
 
 
11877
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
 
11878
        if test -n "$ac_tool_prefix"; then
 
11879
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
 
11880
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
 
11881
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
11882
$as_echo_n "checking for $ac_word... " >&6; }
 
11883
if ${ac_cv_path_PKG_CONFIG+:} false; then :
 
11884
  $as_echo_n "(cached) " >&6
 
11885
else
 
11886
  case $PKG_CONFIG in
 
11887
  [\\/]* | ?:[\\/]*)
 
11888
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
11889
  ;;
 
11890
  *)
 
11891
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
11892
for as_dir in $PATH
 
11893
do
 
11894
  IFS=$as_save_IFS
 
11895
  test -z "$as_dir" && as_dir=.
 
11896
    for ac_exec_ext in '' $ac_executable_extensions; do
 
11897
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
11898
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
11899
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
11900
    break 2
 
11901
  fi
 
11902
done
 
11903
  done
 
11904
IFS=$as_save_IFS
 
11905
 
 
11906
  ;;
 
11907
esac
 
11908
fi
 
11909
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
11910
if test -n "$PKG_CONFIG"; then
 
11911
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
 
11912
$as_echo "$PKG_CONFIG" >&6; }
 
11913
else
 
11914
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11915
$as_echo "no" >&6; }
 
11916
fi
 
11917
 
 
11918
 
 
11919
fi
 
11920
if test -z "$ac_cv_path_PKG_CONFIG"; then
 
11921
  ac_pt_PKG_CONFIG=$PKG_CONFIG
 
11922
  # Extract the first word of "pkg-config", so it can be a program name with args.
 
11923
set dummy pkg-config; ac_word=$2
 
11924
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
11925
$as_echo_n "checking for $ac_word... " >&6; }
 
11926
if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
 
11927
  $as_echo_n "(cached) " >&6
 
11928
else
 
11929
  case $ac_pt_PKG_CONFIG in
 
11930
  [\\/]* | ?:[\\/]*)
 
11931
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
 
11932
  ;;
 
11933
  *)
 
11934
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
11935
for as_dir in $PATH
 
11936
do
 
11937
  IFS=$as_save_IFS
 
11938
  test -z "$as_dir" && as_dir=.
 
11939
    for ac_exec_ext in '' $ac_executable_extensions; do
 
11940
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
11941
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
11942
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
11943
    break 2
 
11944
  fi
 
11945
done
 
11946
  done
 
11947
IFS=$as_save_IFS
 
11948
 
 
11949
  ;;
 
11950
esac
 
11951
fi
 
11952
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
 
11953
if test -n "$ac_pt_PKG_CONFIG"; then
 
11954
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
 
11955
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
 
11956
else
 
11957
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11958
$as_echo "no" >&6; }
 
11959
fi
 
11960
 
 
11961
  if test "x$ac_pt_PKG_CONFIG" = x; then
 
11962
    PKG_CONFIG=""
 
11963
  else
 
11964
    case $cross_compiling:$ac_tool_warned in
 
11965
yes:)
 
11966
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
11967
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
11968
ac_tool_warned=yes ;;
 
11969
esac
 
11970
    PKG_CONFIG=$ac_pt_PKG_CONFIG
 
11971
  fi
 
11972
else
 
11973
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
 
11974
fi
 
11975
 
 
11976
fi
 
11977
if test -n "$PKG_CONFIG"; then
 
11978
        _pkg_min_version=0.9.0
 
11979
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
 
11980
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
 
11981
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
 
11982
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
11983
$as_echo "yes" >&6; }
 
11984
        else
 
11985
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11986
$as_echo "no" >&6; }
 
11987
                PKG_CONFIG=""
 
11988
        fi
 
11989
fi
 
11990
 
 
11991
pkg_failed=no
 
11992
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
 
11993
$as_echo_n "checking for XORG... " >&6; }
 
11994
 
 
11995
if test -n "$XORG_CFLAGS"; then
 
11996
    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
 
11997
 elif test -n "$PKG_CONFIG"; then
 
11998
    if test -n "$PKG_CONFIG" && \
 
11999
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server xproto fontsproto libdrm glproto \$REQUIRED_MODULES\""; } >&5
 
12000
  ($PKG_CONFIG --exists --print-errors "xorg-server xproto fontsproto libdrm glproto $REQUIRED_MODULES") 2>&5
 
12001
  ac_status=$?
 
12002
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
12003
  test $ac_status = 0; }; then
 
12004
  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server xproto fontsproto libdrm glproto $REQUIRED_MODULES" 2>/dev/null`
 
12005
                      test "x$?" != "x0" && pkg_failed=yes
 
12006
else
 
12007
  pkg_failed=yes
 
12008
fi
 
12009
 else
 
12010
    pkg_failed=untried
 
12011
fi
 
12012
if test -n "$XORG_LIBS"; then
 
12013
    pkg_cv_XORG_LIBS="$XORG_LIBS"
 
12014
 elif test -n "$PKG_CONFIG"; then
 
12015
    if test -n "$PKG_CONFIG" && \
 
12016
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server xproto fontsproto libdrm glproto \$REQUIRED_MODULES\""; } >&5
 
12017
  ($PKG_CONFIG --exists --print-errors "xorg-server xproto fontsproto libdrm glproto $REQUIRED_MODULES") 2>&5
 
12018
  ac_status=$?
 
12019
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
12020
  test $ac_status = 0; }; then
 
12021
  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server xproto fontsproto libdrm glproto $REQUIRED_MODULES" 2>/dev/null`
 
12022
                      test "x$?" != "x0" && pkg_failed=yes
 
12023
else
 
12024
  pkg_failed=yes
 
12025
fi
 
12026
 else
 
12027
    pkg_failed=untried
 
12028
fi
 
12029
 
 
12030
 
 
12031
 
 
12032
if test $pkg_failed = yes; then
 
12033
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12034
$as_echo "no" >&6; }
 
12035
 
 
12036
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
12037
        _pkg_short_errors_supported=yes
 
12038
else
 
12039
        _pkg_short_errors_supported=no
 
12040
fi
 
12041
        if test $_pkg_short_errors_supported = yes; then
 
12042
                XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server xproto fontsproto libdrm glproto $REQUIRED_MODULES" 2>&1`
 
12043
        else
 
12044
                XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server xproto fontsproto libdrm glproto $REQUIRED_MODULES" 2>&1`
 
12045
        fi
 
12046
        # Put the nasty error message in config.log where it belongs
 
12047
        echo "$XORG_PKG_ERRORS" >&5
 
12048
 
 
12049
        as_fn_error $? "Package requirements (xorg-server xproto fontsproto libdrm glproto $REQUIRED_MODULES) were not met:
 
12050
 
 
12051
$XORG_PKG_ERRORS
 
12052
 
 
12053
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
12054
installed software in a non-standard prefix.
 
12055
 
 
12056
Alternatively, you may set the environment variables XORG_CFLAGS
 
12057
and XORG_LIBS to avoid the need to call pkg-config.
 
12058
See the pkg-config man page for more details." "$LINENO" 5
 
12059
elif test $pkg_failed = untried; then
 
12060
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12061
$as_echo "no" >&6; }
 
12062
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
12063
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
12064
as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
 
12065
is in your PATH or set the PKG_CONFIG environment variable to the full
 
12066
path to pkg-config.
 
12067
 
 
12068
Alternatively, you may set the environment variables XORG_CFLAGS
 
12069
and XORG_LIBS to avoid the need to call pkg-config.
 
12070
See the pkg-config man page for more details.
 
12071
 
 
12072
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 
12073
See \`config.log' for more details" "$LINENO" 5; }
 
12074
else
 
12075
        XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
 
12076
        XORG_LIBS=$pkg_cv_XORG_LIBS
 
12077
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
12078
$as_echo "yes" >&6; }
 
12079
 
 
12080
fi
 
12081
 
 
12082
pkg_failed=no
 
12083
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
 
12084
$as_echo_n "checking for XEXT... " >&6; }
 
12085
 
 
12086
if test -n "$XEXT_CFLAGS"; then
 
12087
    pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
 
12088
 elif test -n "$PKG_CONFIG"; then
 
12089
    if test -n "$PKG_CONFIG" && \
 
12090
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
 
12091
  ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
 
12092
  ac_status=$?
 
12093
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
12094
  test $ac_status = 0; }; then
 
12095
  pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null`
 
12096
                      test "x$?" != "x0" && pkg_failed=yes
 
12097
else
 
12098
  pkg_failed=yes
 
12099
fi
 
12100
 else
 
12101
    pkg_failed=untried
 
12102
fi
 
12103
if test -n "$XEXT_LIBS"; then
 
12104
    pkg_cv_XEXT_LIBS="$XEXT_LIBS"
 
12105
 elif test -n "$PKG_CONFIG"; then
 
12106
    if test -n "$PKG_CONFIG" && \
 
12107
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
 
12108
  ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
 
12109
  ac_status=$?
 
12110
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
12111
  test $ac_status = 0; }; then
 
12112
  pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null`
 
12113
                      test "x$?" != "x0" && pkg_failed=yes
 
12114
else
 
12115
  pkg_failed=yes
 
12116
fi
 
12117
 else
 
12118
    pkg_failed=untried
 
12119
fi
 
12120
 
 
12121
 
 
12122
 
 
12123
if test $pkg_failed = yes; then
 
12124
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12125
$as_echo "no" >&6; }
 
12126
 
 
12127
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
12128
        _pkg_short_errors_supported=yes
 
12129
else
 
12130
        _pkg_short_errors_supported=no
 
12131
fi
 
12132
        if test $_pkg_short_errors_supported = yes; then
 
12133
                XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
 
12134
        else
 
12135
                XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
 
12136
        fi
 
12137
        # Put the nasty error message in config.log where it belongs
 
12138
        echo "$XEXT_PKG_ERRORS" >&5
 
12139
 
 
12140
        HAVE_XEXTPROTO_71="no"
 
12141
elif test $pkg_failed = untried; then
 
12142
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12143
$as_echo "no" >&6; }
 
12144
        HAVE_XEXTPROTO_71="no"
 
12145
else
 
12146
        XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
 
12147
        XEXT_LIBS=$pkg_cv_XEXT_LIBS
 
12148
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
12149
$as_echo "yes" >&6; }
 
12150
        HAVE_XEXTPROTO_71="yes";
 
12151
$as_echo "#define HAVE_XEXTPROTO_71 1" >>confdefs.h
 
12152
 
 
12153
fi
 
12154
 if  test "$HAVE_XEXTPROTO_71" = "yes" ; then
 
12155
  HAVE_XEXTPROTO_71_TRUE=
 
12156
  HAVE_XEXTPROTO_71_FALSE='#'
 
12157
else
 
12158
  HAVE_XEXTPROTO_71_TRUE='#'
 
12159
  HAVE_XEXTPROTO_71_FALSE=
 
12160
fi
 
12161
 
 
12162
 
 
12163
# Checks for libraries.
 
12164
 
 
12165
# Checks for header files.
 
12166
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
 
12167
$as_echo_n "checking for ANSI C header files... " >&6; }
 
12168
if ${ac_cv_header_stdc+:} false; then :
 
12169
  $as_echo_n "(cached) " >&6
 
12170
else
 
12171
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12172
/* end confdefs.h.  */
 
12173
#include <stdlib.h>
 
12174
#include <stdarg.h>
 
12175
#include <string.h>
 
12176
#include <float.h>
 
12177
 
 
12178
int
 
12179
main ()
 
12180
{
 
12181
 
 
12182
  ;
 
12183
  return 0;
 
12184
}
 
12185
_ACEOF
 
12186
if ac_fn_c_try_compile "$LINENO"; then :
 
12187
  ac_cv_header_stdc=yes
 
12188
else
 
12189
  ac_cv_header_stdc=no
 
12190
fi
 
12191
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12192
 
 
12193
if test $ac_cv_header_stdc = yes; then
 
12194
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
12195
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12196
/* end confdefs.h.  */
 
12197
#include <string.h>
 
12198
 
 
12199
_ACEOF
 
12200
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
12201
  $EGREP "memchr" >/dev/null 2>&1; then :
 
12202
 
 
12203
else
 
12204
  ac_cv_header_stdc=no
 
12205
fi
 
12206
rm -f conftest*
 
12207
 
 
12208
fi
 
12209
 
 
12210
if test $ac_cv_header_stdc = yes; then
 
12211
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
12212
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12213
/* end confdefs.h.  */
 
12214
#include <stdlib.h>
 
12215
 
 
12216
_ACEOF
 
12217
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
12218
  $EGREP "free" >/dev/null 2>&1; then :
 
12219
 
 
12220
else
 
12221
  ac_cv_header_stdc=no
 
12222
fi
 
12223
rm -f conftest*
 
12224
 
 
12225
fi
 
12226
 
 
12227
if test $ac_cv_header_stdc = yes; then
 
12228
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
12229
  if test "$cross_compiling" = yes; then :
 
12230
  :
 
12231
else
 
12232
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12233
/* end confdefs.h.  */
 
12234
#include <ctype.h>
 
12235
#include <stdlib.h>
 
12236
#if ((' ' & 0x0FF) == 0x020)
 
12237
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
12238
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
12239
#else
 
12240
# define ISLOWER(c) \
 
12241
                   (('a' <= (c) && (c) <= 'i') \
 
12242
                     || ('j' <= (c) && (c) <= 'r') \
 
12243
                     || ('s' <= (c) && (c) <= 'z'))
 
12244
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
12245
#endif
 
12246
 
 
12247
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
12248
int
 
12249
main ()
 
12250
{
 
12251
  int i;
 
12252
  for (i = 0; i < 256; i++)
 
12253
    if (XOR (islower (i), ISLOWER (i))
 
12254
        || toupper (i) != TOUPPER (i))
 
12255
      return 2;
 
12256
  return 0;
 
12257
}
 
12258
_ACEOF
 
12259
if ac_fn_c_try_run "$LINENO"; then :
 
12260
 
 
12261
else
 
12262
  ac_cv_header_stdc=no
 
12263
fi
 
12264
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
12265
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
12266
fi
 
12267
 
 
12268
fi
 
12269
fi
 
12270
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
 
12271
$as_echo "$ac_cv_header_stdc" >&6; }
 
12272
if test $ac_cv_header_stdc = yes; then
 
12273
 
 
12274
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
 
12275
 
 
12276
fi
 
12277
 
 
12278
 
 
12279
save_CPPFLAGS="$CPPFLAGS"
 
12280
CPPFLAGS="$XORG_CFLAGS $CPPFLAGS"
 
12281
ac_fn_c_check_header_compile "$LINENO" "xf86Modes.h" "ac_cv_header_xf86Modes_h" "#include \"xorg-server.h\"
 
12282
"
 
12283
if test "x$ac_cv_header_xf86Modes_h" = xyes; then :
 
12284
  XMODES=yes
 
12285
else
 
12286
  XMODES=no
 
12287
fi
 
12288
 
 
12289
 
 
12290
 
 
12291
pkg_failed=no
 
12292
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
 
12293
$as_echo_n "checking for PCIACCESS... " >&6; }
 
12294
 
 
12295
if test -n "$PCIACCESS_CFLAGS"; then
 
12296
    pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
 
12297
 elif test -n "$PKG_CONFIG"; then
 
12298
    if test -n "$PKG_CONFIG" && \
 
12299
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.11.0\""; } >&5
 
12300
  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.11.0") 2>&5
 
12301
  ac_status=$?
 
12302
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
12303
  test $ac_status = 0; }; then
 
12304
  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.11.0" 2>/dev/null`
 
12305
                      test "x$?" != "x0" && pkg_failed=yes
 
12306
else
 
12307
  pkg_failed=yes
 
12308
fi
 
12309
 else
 
12310
    pkg_failed=untried
 
12311
fi
 
12312
if test -n "$PCIACCESS_LIBS"; then
 
12313
    pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
 
12314
 elif test -n "$PKG_CONFIG"; then
 
12315
    if test -n "$PKG_CONFIG" && \
 
12316
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.11.0\""; } >&5
 
12317
  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.11.0") 2>&5
 
12318
  ac_status=$?
 
12319
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
12320
  test $ac_status = 0; }; then
 
12321
  pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.11.0" 2>/dev/null`
 
12322
                      test "x$?" != "x0" && pkg_failed=yes
 
12323
else
 
12324
  pkg_failed=yes
 
12325
fi
 
12326
 else
 
12327
    pkg_failed=untried
 
12328
fi
 
12329
 
 
12330
 
 
12331
 
 
12332
if test $pkg_failed = yes; then
 
12333
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12334
$as_echo "no" >&6; }
 
12335
 
 
12336
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
12337
        _pkg_short_errors_supported=yes
 
12338
else
 
12339
        _pkg_short_errors_supported=no
 
12340
fi
 
12341
        if test $_pkg_short_errors_supported = yes; then
 
12342
                PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.11.0" 2>&1`
 
12343
        else
 
12344
                PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.11.0" 2>&1`
 
12345
        fi
 
12346
        # Put the nasty error message in config.log where it belongs
 
12347
        echo "$PCIACCESS_PKG_ERRORS" >&5
 
12348
 
 
12349
        HAVE_PCIACCESS="no"
 
12350
elif test $pkg_failed = untried; then
 
12351
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12352
$as_echo "no" >&6; }
 
12353
        HAVE_PCIACCESS="no"
 
12354
else
 
12355
        PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
 
12356
        PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
 
12357
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
12358
$as_echo "yes" >&6; }
 
12359
        HAVE_PCIACCESS="yes";
 
12360
$as_echo "#define HAVE_PCIACCESS 1" >>confdefs.h
 
12361
 
 
12362
fi
 
12363
 
 
12364
 
 
12365
 
 
12366
 
 
12367
pkg_failed=no
 
12368
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI" >&5
 
12369
$as_echo_n "checking for DRI... " >&6; }
 
12370
 
 
12371
if test -n "$DRI_CFLAGS"; then
 
12372
    pkg_cv_DRI_CFLAGS="$DRI_CFLAGS"
 
12373
 elif test -n "$PKG_CONFIG"; then
 
12374
    if test -n "$PKG_CONFIG" && \
 
12375
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.4 xf86driproto\""; } >&5
 
12376
  ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.4 xf86driproto") 2>&5
 
12377
  ac_status=$?
 
12378
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
12379
  test $ac_status = 0; }; then
 
12380
  pkg_cv_DRI_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.4.4 xf86driproto" 2>/dev/null`
 
12381
                      test "x$?" != "x0" && pkg_failed=yes
 
12382
else
 
12383
  pkg_failed=yes
 
12384
fi
 
12385
 else
 
12386
    pkg_failed=untried
 
12387
fi
 
12388
if test -n "$DRI_LIBS"; then
 
12389
    pkg_cv_DRI_LIBS="$DRI_LIBS"
 
12390
 elif test -n "$PKG_CONFIG"; then
 
12391
    if test -n "$PKG_CONFIG" && \
 
12392
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.4 xf86driproto\""; } >&5
 
12393
  ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.4 xf86driproto") 2>&5
 
12394
  ac_status=$?
 
12395
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
12396
  test $ac_status = 0; }; then
 
12397
  pkg_cv_DRI_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.4.4 xf86driproto" 2>/dev/null`
 
12398
                      test "x$?" != "x0" && pkg_failed=yes
 
12399
else
 
12400
  pkg_failed=yes
 
12401
fi
 
12402
 else
 
12403
    pkg_failed=untried
 
12404
fi
 
12405
 
 
12406
 
 
12407
 
 
12408
if test $pkg_failed = yes; then
 
12409
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12410
$as_echo "no" >&6; }
 
12411
 
 
12412
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
12413
        _pkg_short_errors_supported=yes
 
12414
else
 
12415
        _pkg_short_errors_supported=no
 
12416
fi
 
12417
        if test $_pkg_short_errors_supported = yes; then
 
12418
                DRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 2.4.4 xf86driproto" 2>&1`
 
12419
        else
 
12420
                DRI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 2.4.4 xf86driproto" 2>&1`
 
12421
        fi
 
12422
        # Put the nasty error message in config.log where it belongs
 
12423
        echo "$DRI_PKG_ERRORS" >&5
 
12424
 
 
12425
        DRI="no"
 
12426
elif test $pkg_failed = untried; then
 
12427
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12428
$as_echo "no" >&6; }
 
12429
        DRI="no"
 
12430
else
 
12431
        DRI_CFLAGS=$pkg_cv_DRI_CFLAGS
 
12432
        DRI_LIBS=$pkg_cv_DRI_LIBS
 
12433
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
12434
$as_echo "yes" >&6; }
 
12435
        DRI="yes";
 
12436
$as_echo "#define HAVE_DRI 1" >>confdefs.h
 
12437
 
 
12438
fi
 
12439
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build KMS support" >&5
 
12440
$as_echo_n "checking whether to build KMS support... " >&6; }
 
12441
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DRI" >&5
 
12442
$as_echo "$DRI" >&6; }
 
12443
 
 
12444
 if test x$DRI = xyes; then
 
12445
  DRI_TRUE=
 
12446
  DRI_FALSE='#'
 
12447
else
 
12448
  DRI_TRUE='#'
 
12449
  DRI_FALSE=
 
12450
fi
 
12451
 
 
12452
if test "$DRI" = yes; then
 
12453
 
 
12454
$as_echo "#define XF86DRI 1" >>confdefs.h
 
12455
 
 
12456
 
 
12457
        ac_fn_c_check_header_preproc "$LINENO" "damage.h" "ac_cv_header_damage_h"
 
12458
if test "x$ac_cv_header_damage_h" = xyes; then :
 
12459
  have_damage_h="yes"
 
12460
else
 
12461
  have_damage_h="no"
 
12462
fi
 
12463
 
 
12464
 
 
12465
        if test "$have_damage_h" = yes; then
 
12466
 
 
12467
$as_echo "#define DAMAGE 1" >>confdefs.h
 
12468
 
 
12469
        fi
 
12470
 
 
12471
 
 
12472
pkg_failed=no
 
12473
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUDEV" >&5
 
12474
$as_echo_n "checking for LIBUDEV... " >&6; }
 
12475
 
 
12476
if test -n "$LIBUDEV_CFLAGS"; then
 
12477
    pkg_cv_LIBUDEV_CFLAGS="$LIBUDEV_CFLAGS"
 
12478
 elif test -n "$PKG_CONFIG"; then
 
12479
    if test -n "$PKG_CONFIG" && \
 
12480
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5
 
12481
  ($PKG_CONFIG --exists --print-errors "libudev") 2>&5
 
12482
  ac_status=$?
 
12483
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
12484
  test $ac_status = 0; }; then
 
12485
  pkg_cv_LIBUDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev" 2>/dev/null`
 
12486
                      test "x$?" != "x0" && pkg_failed=yes
 
12487
else
 
12488
  pkg_failed=yes
 
12489
fi
 
12490
 else
 
12491
    pkg_failed=untried
 
12492
fi
 
12493
if test -n "$LIBUDEV_LIBS"; then
 
12494
    pkg_cv_LIBUDEV_LIBS="$LIBUDEV_LIBS"
 
12495
 elif test -n "$PKG_CONFIG"; then
 
12496
    if test -n "$PKG_CONFIG" && \
 
12497
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5
 
12498
  ($PKG_CONFIG --exists --print-errors "libudev") 2>&5
 
12499
  ac_status=$?
 
12500
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
12501
  test $ac_status = 0; }; then
 
12502
  pkg_cv_LIBUDEV_LIBS=`$PKG_CONFIG --libs "libudev" 2>/dev/null`
 
12503
                      test "x$?" != "x0" && pkg_failed=yes
 
12504
else
 
12505
  pkg_failed=yes
 
12506
fi
 
12507
 else
 
12508
    pkg_failed=untried
 
12509
fi
 
12510
 
 
12511
 
 
12512
 
 
12513
if test $pkg_failed = yes; then
 
12514
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12515
$as_echo "no" >&6; }
 
12516
 
 
12517
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
12518
        _pkg_short_errors_supported=yes
 
12519
else
 
12520
        _pkg_short_errors_supported=no
 
12521
fi
 
12522
        if test $_pkg_short_errors_supported = yes; then
 
12523
                LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libudev" 2>&1`
 
12524
        else
 
12525
                LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libudev" 2>&1`
 
12526
        fi
 
12527
        # Put the nasty error message in config.log where it belongs
 
12528
        echo "$LIBUDEV_PKG_ERRORS" >&5
 
12529
 
 
12530
        LIBUDEV=no
 
12531
elif test $pkg_failed = untried; then
 
12532
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12533
$as_echo "no" >&6; }
 
12534
        LIBUDEV=no
 
12535
else
 
12536
        LIBUDEV_CFLAGS=$pkg_cv_LIBUDEV_CFLAGS
 
12537
        LIBUDEV_LIBS=$pkg_cv_LIBUDEV_LIBS
 
12538
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
12539
$as_echo "yes" >&6; }
 
12540
        LIBUDEV=yes
 
12541
fi
 
12542
        if test "x$LIBUDEV" = xyes; then
 
12543
 
 
12544
$as_echo "#define HAVE_LIBUDEV 1" >>confdefs.h
 
12545
 
 
12546
        fi
 
12547
 
 
12548
        case "$host_cpu" in
 
12549
            i*86)
 
12550
                XVMC=yes ;;
 
12551
            amd64*|x86_64*)
 
12552
                XVMC=yes ;;
 
12553
            *)
 
12554
                XVMC=no ;;
 
12555
        esac
 
12556
else
 
12557
        XVMC="no"
 
12558
fi
 
12559
 
 
12560
if test "x$XVMC" = xyes; then
 
12561
        for ac_header in pthread.h sys/ioctl.h sys/time.h time.h
 
12562
do :
 
12563
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
12564
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
 
12565
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 
12566
  cat >>confdefs.h <<_ACEOF
 
12567
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
12568
_ACEOF
 
12569
 
 
12570
else
 
12571
  XVMC="no"; break
 
12572
fi
 
12573
 
 
12574
done
 
12575
 
 
12576
 
 
12577
pkg_failed=no
 
12578
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XVMC" >&5
 
12579
$as_echo_n "checking for XVMC... " >&6; }
 
12580
 
 
12581
if test -n "$XVMC_CFLAGS"; then
 
12582
    pkg_cv_XVMC_CFLAGS="$XVMC_CFLAGS"
 
12583
 elif test -n "$PKG_CONFIG"; then
 
12584
    if test -n "$PKG_CONFIG" && \
 
12585
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xvmc\""; } >&5
 
12586
  ($PKG_CONFIG --exists --print-errors "x11 xext xvmc") 2>&5
 
12587
  ac_status=$?
 
12588
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
12589
  test $ac_status = 0; }; then
 
12590
  pkg_cv_XVMC_CFLAGS=`$PKG_CONFIG --cflags "x11 xext xvmc" 2>/dev/null`
 
12591
                      test "x$?" != "x0" && pkg_failed=yes
 
12592
else
 
12593
  pkg_failed=yes
 
12594
fi
 
12595
 else
 
12596
    pkg_failed=untried
 
12597
fi
 
12598
if test -n "$XVMC_LIBS"; then
 
12599
    pkg_cv_XVMC_LIBS="$XVMC_LIBS"
 
12600
 elif test -n "$PKG_CONFIG"; then
 
12601
    if test -n "$PKG_CONFIG" && \
 
12602
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xvmc\""; } >&5
 
12603
  ($PKG_CONFIG --exists --print-errors "x11 xext xvmc") 2>&5
 
12604
  ac_status=$?
 
12605
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
12606
  test $ac_status = 0; }; then
 
12607
  pkg_cv_XVMC_LIBS=`$PKG_CONFIG --libs "x11 xext xvmc" 2>/dev/null`
 
12608
                      test "x$?" != "x0" && pkg_failed=yes
 
12609
else
 
12610
  pkg_failed=yes
 
12611
fi
 
12612
 else
 
12613
    pkg_failed=untried
 
12614
fi
 
12615
 
 
12616
 
 
12617
 
 
12618
if test $pkg_failed = yes; then
 
12619
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12620
$as_echo "no" >&6; }
 
12621
 
 
12622
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
12623
        _pkg_short_errors_supported=yes
 
12624
else
 
12625
        _pkg_short_errors_supported=no
 
12626
fi
 
12627
        if test $_pkg_short_errors_supported = yes; then
 
12628
                XVMC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xext xvmc" 2>&1`
 
12629
        else
 
12630
                XVMC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xext xvmc" 2>&1`
 
12631
        fi
 
12632
        # Put the nasty error message in config.log where it belongs
 
12633
        echo "$XVMC_PKG_ERRORS" >&5
 
12634
 
 
12635
        as_fn_error $? "Package requirements (x11 xext xvmc) were not met:
 
12636
 
 
12637
$XVMC_PKG_ERRORS
 
12638
 
 
12639
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
12640
installed software in a non-standard prefix.
 
12641
 
 
12642
Alternatively, you may set the environment variables XVMC_CFLAGS
 
12643
and XVMC_LIBS to avoid the need to call pkg-config.
 
12644
See the pkg-config man page for more details." "$LINENO" 5
 
12645
elif test $pkg_failed = untried; then
 
12646
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12647
$as_echo "no" >&6; }
 
12648
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
12649
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
12650
as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
 
12651
is in your PATH or set the PKG_CONFIG environment variable to the full
 
12652
path to pkg-config.
 
12653
 
 
12654
Alternatively, you may set the environment variables XVMC_CFLAGS
 
12655
and XVMC_LIBS to avoid the need to call pkg-config.
 
12656
See the pkg-config man page for more details.
 
12657
 
 
12658
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 
12659
See \`config.log' for more details" "$LINENO" 5; }
 
12660
else
 
12661
        XVMC_CFLAGS=$pkg_cv_XVMC_CFLAGS
 
12662
        XVMC_LIBS=$pkg_cv_XVMC_LIBS
 
12663
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
12664
$as_echo "yes" >&6; }
 
12665
 
 
12666
fi
 
12667
fi
 
12668
 
 
12669
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build XvMC driver support" >&5
 
12670
$as_echo_n "checking whether to build XvMC driver support... " >&6; }
 
12671
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XVMC" >&5
 
12672
$as_echo "$XVMC" >&6; }
 
12673
 
 
12674
 if test x$XVMC = xyes; then
 
12675
  XVMC_TRUE=
 
12676
  XVMC_FALSE='#'
 
12677
else
 
12678
  XVMC_TRUE='#'
 
12679
  XVMC_FALSE=
 
12680
fi
 
12681
 
 
12682
 
 
12683
 if test x$DEBUG = xyes; then
 
12684
  DEBUG_TRUE=
 
12685
  DEBUG_FALSE='#'
 
12686
else
 
12687
  DEBUG_TRUE='#'
 
12688
  DEBUG_FALSE=
 
12689
fi
 
12690
 
 
12691
if test "$DEBUG" = yes; then
 
12692
 
 
12693
$as_echo "#define HAVE_DEBUG 1" >>confdefs.h
 
12694
 
 
12695
fi
 
12696
 
 
12697
 if test x$XV_DEBUG = xyes; then
 
12698
  XV_DEBUG_TRUE=
 
12699
  XV_DEBUG_FALSE='#'
 
12700
else
 
12701
  XV_DEBUG_TRUE='#'
 
12702
  XV_DEBUG_FALSE=
 
12703
fi
 
12704
 
 
12705
if test "$XV_DEBUG" = yes; then
 
12706
 
 
12707
$as_echo "#define XV_DEBUG 1" >>confdefs.h
 
12708
 
 
12709
fi
 
12710
 
 
12711
 if test x$TOOLS = xyes; then
 
12712
  TOOLS_TRUE=
 
12713
  TOOLS_FALSE='#'
 
12714
else
 
12715
  TOOLS_TRUE='#'
 
12716
  TOOLS_FALSE=
 
12717
fi
 
12718
 
 
12719
if test "$TOOLS" = yes; then
 
12720
 
 
12721
$as_echo "#define TOOLS 1" >>confdefs.h
 
12722
 
 
12723
fi
 
12724
 
 
12725
 
 
12726
 
 
12727
 
 
12728
 
 
12729
DRIVER_NAME=openchrome
 
12730
 
 
12731
 
 
12732
 
 
12733
$as_echo "#define X_USE_LINEARFB 1" >>confdefs.h
 
12734
 
 
12735
 
 
12736
$as_echo "#define X_USE_REGION_NULL 1" >>confdefs.h
 
12737
 
 
12738
 
 
12739
$as_echo "#define X_HAVE_XAAGETROP 1" >>confdefs.h
 
12740
 
 
12741
 
 
12742
$as_echo "#define X_NEED_I2CSTART 1" >>confdefs.h
 
12743
 
 
12744
 
 
12745
DRIVER_MAN_SUFFIX="4"
 
12746
 
 
12747
 
 
12748
 
 
12749
 
 
12750
 
 
12751
 
 
12752
if test x$APP_MAN_SUFFIX = x    ; then
 
12753
    APP_MAN_SUFFIX=1
 
12754
fi
 
12755
if test x$APP_MAN_DIR = x    ; then
 
12756
    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
 
12757
fi
 
12758
 
 
12759
if test x$LIB_MAN_SUFFIX = x    ; then
 
12760
    LIB_MAN_SUFFIX=3
 
12761
fi
 
12762
if test x$LIB_MAN_DIR = x    ; then
 
12763
    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
 
12764
fi
 
12765
 
 
12766
if test x$FILE_MAN_SUFFIX = x    ; then
 
12767
    case $host_os in
 
12768
        solaris*)       FILE_MAN_SUFFIX=4  ;;
 
12769
        *)              FILE_MAN_SUFFIX=5  ;;
 
12770
    esac
 
12771
fi
 
12772
if test x$FILE_MAN_DIR = x    ; then
 
12773
    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
 
12774
fi
 
12775
 
 
12776
if test x$MISC_MAN_SUFFIX = x    ; then
 
12777
    case $host_os in
 
12778
        solaris*)       MISC_MAN_SUFFIX=5  ;;
 
12779
        *)              MISC_MAN_SUFFIX=7  ;;
 
12780
    esac
 
12781
fi
 
12782
if test x$MISC_MAN_DIR = x    ; then
 
12783
    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
 
12784
fi
 
12785
 
 
12786
if test x$DRIVER_MAN_SUFFIX = x    ; then
 
12787
    case $host_os in
 
12788
        solaris*)       DRIVER_MAN_SUFFIX=7  ;;
 
12789
        *)              DRIVER_MAN_SUFFIX=4  ;;
 
12790
    esac
 
12791
fi
 
12792
if test x$DRIVER_MAN_DIR = x    ; then
 
12793
    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
 
12794
fi
 
12795
 
 
12796
if test x$ADMIN_MAN_SUFFIX = x    ; then
 
12797
    case $host_os in
 
12798
        solaris*)       ADMIN_MAN_SUFFIX=1m ;;
 
12799
        *)              ADMIN_MAN_SUFFIX=8  ;;
 
12800
    esac
 
12801
fi
 
12802
if test x$ADMIN_MAN_DIR = x    ; then
 
12803
    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
 
12804
fi
 
12805
 
 
12806
 
 
12807
 
 
12808
 
 
12809
 
 
12810
 
 
12811
 
 
12812
 
 
12813
 
 
12814
 
 
12815
 
 
12816
 
 
12817
 
 
12818
 
 
12819
 
 
12820
XORG_MAN_PAGE="X Version 11"
 
12821
 
 
12822
MAN_SUBSTS="\
 
12823
        -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
 
12824
        -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
 
12825
        -e 's|__xservername__|Xorg|g' \
 
12826
        -e 's|__xconfigfile__|xorg.conf|g' \
 
12827
        -e 's|__projectroot__|\$(prefix)|g' \
 
12828
        -e 's|__apploaddir__|\$(appdefaultdir)|g' \
 
12829
        -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
 
12830
        -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
 
12831
        -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
 
12832
        -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
 
12833
        -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
 
12834
        -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
 
12835
 
 
12836
 
 
12837
 
 
12838
 
 
12839
 
 
12840
# Check whether --with-release-version was given.
 
12841
if test "${with_release_version+set}" = set; then :
 
12842
  withval=$with_release_version; RELEASE_VERSION="$withval"
 
12843
else
 
12844
  RELEASE_VERSION=""
 
12845
fi
 
12846
 
 
12847
        if test "x$RELEASE_VERSION" != "x"; then
 
12848
                PACKAGE="$PACKAGE-$RELEASE_VERSION"
 
12849
                PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
 
12850
                { $as_echo "$as_me:${as_lineno-$LINENO}: Building with package name set to $PACKAGE" >&5
 
12851
$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
 
12852
        fi
 
12853
 
 
12854
 
 
12855
ac_config_files="$ac_config_files Makefile src/xvmc/Makefile src/Makefile man/Makefile tools/Makefile"
 
12856
 
 
12857
cat >confcache <<\_ACEOF
 
12858
# This file is a shell script that caches the results of configure
 
12859
# tests run on this system so they can be shared between configure
 
12860
# scripts and configure runs, see configure's option --config-cache.
 
12861
# It is not useful on other systems.  If it contains results you don't
 
12862
# want to keep, you may remove or edit it.
 
12863
#
 
12864
# config.status only pays attention to the cache file if you give it
 
12865
# the --recheck option to rerun configure.
 
12866
#
 
12867
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
12868
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
12869
# following values.
 
12870
 
 
12871
_ACEOF
 
12872
 
 
12873
# The following way of writing the cache mishandles newlines in values,
 
12874
# but we know of no workaround that is simple, portable, and efficient.
 
12875
# So, we kill variables containing newlines.
 
12876
# Ultrix sh set writes to stderr and can't be redirected directly,
 
12877
# and sets the high bit in the cache file unless we assign to the vars.
 
12878
(
 
12879
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 
12880
    eval ac_val=\$$ac_var
 
12881
    case $ac_val in #(
 
12882
    *${as_nl}*)
 
12883
      case $ac_var in #(
 
12884
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
12885
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
12886
      esac
 
12887
      case $ac_var in #(
 
12888
      _ | IFS | as_nl) ;; #(
 
12889
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
12890
      *) { eval $ac_var=; unset $ac_var;} ;;
 
12891
      esac ;;
 
12892
    esac
 
12893
  done
 
12894
 
 
12895
  (set) 2>&1 |
 
12896
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 
12897
    *${as_nl}ac_space=\ *)
 
12898
      # `set' does not quote correctly, so add quotes: double-quote
 
12899
      # substitution turns \\\\ into \\, and sed turns \\ into \.
 
12900
      sed -n \
 
12901
        "s/'/'\\\\''/g;
 
12902
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
12903
      ;; #(
 
12904
    *)
 
12905
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
12906
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
12907
      ;;
 
12908
    esac |
 
12909
    sort
 
12910
) |
 
12911
  sed '
 
12912
     /^ac_cv_env_/b end
 
12913
     t clear
 
12914
     :clear
 
12915
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
12916
     t end
 
12917
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
12918
     :end' >>confcache
 
12919
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 
12920
  if test -w "$cache_file"; then
 
12921
    if test "x$cache_file" != "x/dev/null"; then
 
12922
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
 
12923
$as_echo "$as_me: updating cache $cache_file" >&6;}
 
12924
      if test ! -f "$cache_file" || test -h "$cache_file"; then
 
12925
        cat confcache >"$cache_file"
 
12926
      else
 
12927
        case $cache_file in #(
 
12928
        */* | ?:*)
 
12929
          mv -f confcache "$cache_file"$$ &&
 
12930
          mv -f "$cache_file"$$ "$cache_file" ;; #(
 
12931
        *)
 
12932
          mv -f confcache "$cache_file" ;;
 
12933
        esac
 
12934
      fi
 
12935
    fi
 
12936
  else
 
12937
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
 
12938
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 
12939
  fi
 
12940
fi
 
12941
rm -f confcache
 
12942
 
 
12943
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
12944
# Let make expand exec_prefix.
 
12945
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
12946
 
 
12947
DEFS=-DHAVE_CONFIG_H
 
12948
 
 
12949
ac_libobjs=
 
12950
ac_ltlibobjs=
 
12951
U=
 
12952
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
12953
  # 1. Remove the extension, and $U if already installed.
 
12954
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 
12955
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
 
12956
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 
12957
  #    will be set to the directory where LIBOBJS objects are built.
 
12958
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
12959
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
 
12960
done
 
12961
LIBOBJS=$ac_libobjs
 
12962
 
 
12963
LTLIBOBJS=$ac_ltlibobjs
 
12964
 
 
12965
 
 
12966
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
 
12967
$as_echo_n "checking that generated files are newer than configure... " >&6; }
 
12968
   if test -n "$am_sleep_pid"; then
 
12969
     # Hide warnings about reused PIDs.
 
12970
     wait $am_sleep_pid 2>/dev/null
 
12971
   fi
 
12972
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
 
12973
$as_echo "done" >&6; }
 
12974
 if test -n "$EXEEXT"; then
 
12975
  am__EXEEXT_TRUE=
 
12976
  am__EXEEXT_FALSE='#'
 
12977
else
 
12978
  am__EXEEXT_TRUE='#'
 
12979
  am__EXEEXT_FALSE=
 
12980
fi
 
12981
 
 
12982
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
 
12983
  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
 
12984
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
12985
fi
 
12986
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
12987
  as_fn_error $? "conditional \"AMDEP\" was never defined.
 
12988
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
12989
fi
 
12990
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
12991
  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
 
12992
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
12993
fi
 
12994
if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then
 
12995
  as_fn_error $? "conditional \"HAVE_XEXTPROTO_71\" was never defined.
 
12996
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
12997
fi
 
12998
if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then
 
12999
  as_fn_error $? "conditional \"DRI\" was never defined.
 
13000
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
13001
fi
 
13002
if test -z "${XVMC_TRUE}" && test -z "${XVMC_FALSE}"; then
 
13003
  as_fn_error $? "conditional \"XVMC\" was never defined.
 
13004
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
13005
fi
 
13006
if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
 
13007
  as_fn_error $? "conditional \"DEBUG\" was never defined.
 
13008
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
13009
fi
 
13010
if test -z "${XV_DEBUG_TRUE}" && test -z "${XV_DEBUG_FALSE}"; then
 
13011
  as_fn_error $? "conditional \"XV_DEBUG\" was never defined.
 
13012
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
13013
fi
 
13014
if test -z "${TOOLS_TRUE}" && test -z "${TOOLS_FALSE}"; then
 
13015
  as_fn_error $? "conditional \"TOOLS\" was never defined.
 
13016
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
13017
fi
 
13018
 
 
13019
: "${CONFIG_STATUS=./config.status}"
 
13020
ac_write_fail=0
 
13021
ac_clean_files_save=$ac_clean_files
 
13022
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
13023
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
 
13024
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
13025
as_write_fail=0
 
13026
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
 
13027
#! $SHELL
 
13028
# Generated by $as_me.
 
13029
# Run this file to recreate the current configuration.
 
13030
# Compiler output produced by configure, useful for debugging
 
13031
# configure, is in config.log if it exists.
 
13032
 
 
13033
debug=false
 
13034
ac_cs_recheck=false
 
13035
ac_cs_silent=false
 
13036
 
 
13037
SHELL=\${CONFIG_SHELL-$SHELL}
 
13038
export SHELL
 
13039
_ASEOF
 
13040
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
 
13041
## -------------------- ##
 
13042
## M4sh Initialization. ##
 
13043
## -------------------- ##
 
13044
 
 
13045
# Be more Bourne compatible
 
13046
DUALCASE=1; export DUALCASE # for MKS sh
 
13047
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
 
13048
  emulate sh
 
13049
  NULLCMD=:
 
13050
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
13051
  # is contrary to our usage.  Disable this feature.
 
13052
  alias -g '${1+"$@"}'='"$@"'
 
13053
  setopt NO_GLOB_SUBST
 
13054
else
 
13055
  case `(set -o) 2>/dev/null` in #(
 
13056
  *posix*) :
 
13057
    set -o posix ;; #(
 
13058
  *) :
 
13059
     ;;
 
13060
esac
 
13061
fi
 
13062
 
 
13063
 
 
13064
as_nl='
 
13065
'
 
13066
export as_nl
 
13067
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
13068
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
13069
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
13070
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
13071
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
13072
# but without wasting forks for bash or zsh.
 
13073
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
13074
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
13075
  as_echo='print -r --'
 
13076
  as_echo_n='print -rn --'
 
13077
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
13078
  as_echo='printf %s\n'
 
13079
  as_echo_n='printf %s'
 
13080
else
 
13081
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
13082
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
13083
    as_echo_n='/usr/ucb/echo -n'
 
13084
  else
 
13085
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
13086
    as_echo_n_body='eval
 
13087
      arg=$1;
 
13088
      case $arg in #(
 
13089
      *"$as_nl"*)
 
13090
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
13091
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
13092
      esac;
 
13093
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
13094
    '
 
13095
    export as_echo_n_body
 
13096
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
13097
  fi
 
13098
  export as_echo_body
 
13099
  as_echo='sh -c $as_echo_body as_echo'
 
13100
fi
 
13101
 
 
13102
# The user is always right.
 
13103
if test "${PATH_SEPARATOR+set}" != set; then
 
13104
  PATH_SEPARATOR=:
 
13105
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
13106
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
13107
      PATH_SEPARATOR=';'
 
13108
  }
 
13109
fi
 
13110
 
 
13111
 
 
13112
# IFS
 
13113
# We need space, tab and new line, in precisely that order.  Quoting is
 
13114
# there to prevent editors from complaining about space-tab.
 
13115
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
13116
# splitting by setting IFS to empty value.)
 
13117
IFS=" ""        $as_nl"
 
13118
 
 
13119
# Find who we are.  Look in the path if we contain no directory separator.
 
13120
as_myself=
 
13121
case $0 in #((
 
13122
  *[\\/]* ) as_myself=$0 ;;
 
13123
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
13124
for as_dir in $PATH
 
13125
do
 
13126
  IFS=$as_save_IFS
 
13127
  test -z "$as_dir" && as_dir=.
 
13128
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
13129
  done
 
13130
IFS=$as_save_IFS
 
13131
 
 
13132
     ;;
 
13133
esac
 
13134
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
13135
# in which case we are not to be found in the path.
 
13136
if test "x$as_myself" = x; then
 
13137
  as_myself=$0
 
13138
fi
 
13139
if test ! -f "$as_myself"; then
 
13140
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
13141
  exit 1
 
13142
fi
 
13143
 
 
13144
# Unset variables that we do not need and which cause bugs (e.g. in
 
13145
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
13146
# suppresses any "Segmentation fault" message there.  '((' could
 
13147
# trigger a bug in pdksh 5.2.14.
 
13148
for as_var in BASH_ENV ENV MAIL MAILPATH
 
13149
do eval test x\${$as_var+set} = xset \
 
13150
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 
13151
done
 
13152
PS1='$ '
 
13153
PS2='> '
 
13154
PS4='+ '
 
13155
 
 
13156
# NLS nuisances.
 
13157
LC_ALL=C
 
13158
export LC_ALL
 
13159
LANGUAGE=C
 
13160
export LANGUAGE
 
13161
 
 
13162
# CDPATH.
 
13163
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
13164
 
 
13165
 
 
13166
# as_fn_error STATUS ERROR [LINENO LOG_FD]
 
13167
# ----------------------------------------
 
13168
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
13169
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
13170
# script with STATUS, using 1 if that was 0.
 
13171
as_fn_error ()
 
13172
{
 
13173
  as_status=$1; test $as_status -eq 0 && as_status=1
 
13174
  if test "$4"; then
 
13175
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
13176
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 
13177
  fi
 
13178
  $as_echo "$as_me: error: $2" >&2
 
13179
  as_fn_exit $as_status
 
13180
} # as_fn_error
 
13181
 
 
13182
 
 
13183
# as_fn_set_status STATUS
 
13184
# -----------------------
 
13185
# Set $? to STATUS, without forking.
 
13186
as_fn_set_status ()
 
13187
{
 
13188
  return $1
 
13189
} # as_fn_set_status
 
13190
 
 
13191
# as_fn_exit STATUS
 
13192
# -----------------
 
13193
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
13194
as_fn_exit ()
 
13195
{
 
13196
  set +e
 
13197
  as_fn_set_status $1
 
13198
  exit $1
 
13199
} # as_fn_exit
 
13200
 
 
13201
# as_fn_unset VAR
 
13202
# ---------------
 
13203
# Portably unset VAR.
 
13204
as_fn_unset ()
 
13205
{
 
13206
  { eval $1=; unset $1;}
 
13207
}
 
13208
as_unset=as_fn_unset
 
13209
# as_fn_append VAR VALUE
 
13210
# ----------------------
 
13211
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
13212
# advantage of any shell optimizations that allow amortized linear growth over
 
13213
# repeated appends, instead of the typical quadratic growth present in naive
 
13214
# implementations.
 
13215
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
13216
  eval 'as_fn_append ()
 
13217
  {
 
13218
    eval $1+=\$2
 
13219
  }'
 
13220
else
 
13221
  as_fn_append ()
 
13222
  {
 
13223
    eval $1=\$$1\$2
 
13224
  }
 
13225
fi # as_fn_append
 
13226
 
 
13227
# as_fn_arith ARG...
 
13228
# ------------------
 
13229
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
13230
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
13231
# must be portable across $(()) and expr.
 
13232
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
13233
  eval 'as_fn_arith ()
 
13234
  {
 
13235
    as_val=$(( $* ))
 
13236
  }'
 
13237
else
 
13238
  as_fn_arith ()
 
13239
  {
 
13240
    as_val=`expr "$@" || test $? -eq 1`
 
13241
  }
 
13242
fi # as_fn_arith
 
13243
 
 
13244
 
 
13245
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
13246
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
13247
  as_expr=expr
 
13248
else
 
13249
  as_expr=false
 
13250
fi
 
13251
 
 
13252
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
13253
  as_basename=basename
 
13254
else
 
13255
  as_basename=false
 
13256
fi
 
13257
 
 
13258
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
13259
  as_dirname=dirname
 
13260
else
 
13261
  as_dirname=false
 
13262
fi
 
13263
 
 
13264
as_me=`$as_basename -- "$0" ||
 
13265
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
13266
         X"$0" : 'X\(//\)$' \| \
 
13267
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
13268
$as_echo X/"$0" |
 
13269
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
13270
            s//\1/
 
13271
            q
 
13272
          }
 
13273
          /^X\/\(\/\/\)$/{
 
13274
            s//\1/
 
13275
            q
 
13276
          }
 
13277
          /^X\/\(\/\).*/{
 
13278
            s//\1/
 
13279
            q
 
13280
          }
 
13281
          s/.*/./; q'`
 
13282
 
 
13283
# Avoid depending upon Character Ranges.
 
13284
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
13285
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
13286
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
13287
as_cr_digits='0123456789'
 
13288
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
13289
 
 
13290
ECHO_C= ECHO_N= ECHO_T=
 
13291
case `echo -n x` in #(((((
 
13292
-n*)
 
13293
  case `echo 'xy\c'` in
 
13294
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
13295
  xy)  ECHO_C='\c';;
 
13296
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
13297
       ECHO_T=' ';;
 
13298
  esac;;
 
13299
*)
 
13300
  ECHO_N='-n';;
 
13301
esac
 
13302
 
 
13303
rm -f conf$$ conf$$.exe conf$$.file
 
13304
if test -d conf$$.dir; then
 
13305
  rm -f conf$$.dir/conf$$.file
 
13306
else
 
13307
  rm -f conf$$.dir
 
13308
  mkdir conf$$.dir 2>/dev/null
 
13309
fi
 
13310
if (echo >conf$$.file) 2>/dev/null; then
 
13311
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
13312
    as_ln_s='ln -s'
 
13313
    # ... but there are two gotchas:
 
13314
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
13315
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
13316
    # In both cases, we have to default to `cp -pR'.
 
13317
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
13318
      as_ln_s='cp -pR'
 
13319
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
13320
    as_ln_s=ln
 
13321
  else
 
13322
    as_ln_s='cp -pR'
 
13323
  fi
 
13324
else
 
13325
  as_ln_s='cp -pR'
 
13326
fi
 
13327
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
13328
rmdir conf$$.dir 2>/dev/null
 
13329
 
 
13330
 
 
13331
# as_fn_mkdir_p
 
13332
# -------------
 
13333
# Create "$as_dir" as a directory, including parents if necessary.
 
13334
as_fn_mkdir_p ()
 
13335
{
 
13336
 
 
13337
  case $as_dir in #(
 
13338
  -*) as_dir=./$as_dir;;
 
13339
  esac
 
13340
  test -d "$as_dir" || eval $as_mkdir_p || {
 
13341
    as_dirs=
 
13342
    while :; do
 
13343
      case $as_dir in #(
 
13344
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
13345
      *) as_qdir=$as_dir;;
 
13346
      esac
 
13347
      as_dirs="'$as_qdir' $as_dirs"
 
13348
      as_dir=`$as_dirname -- "$as_dir" ||
 
13349
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
13350
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
13351
         X"$as_dir" : 'X\(//\)$' \| \
 
13352
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
13353
$as_echo X"$as_dir" |
 
13354
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
13355
            s//\1/
 
13356
            q
 
13357
          }
 
13358
          /^X\(\/\/\)[^/].*/{
 
13359
            s//\1/
 
13360
            q
 
13361
          }
 
13362
          /^X\(\/\/\)$/{
 
13363
            s//\1/
 
13364
            q
 
13365
          }
 
13366
          /^X\(\/\).*/{
 
13367
            s//\1/
 
13368
            q
 
13369
          }
 
13370
          s/.*/./; q'`
 
13371
      test -d "$as_dir" && break
 
13372
    done
 
13373
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
13374
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 
13375
 
 
13376
 
 
13377
} # as_fn_mkdir_p
 
13378
if mkdir -p . 2>/dev/null; then
 
13379
  as_mkdir_p='mkdir -p "$as_dir"'
 
13380
else
 
13381
  test -d ./-p && rmdir ./-p
 
13382
  as_mkdir_p=false
 
13383
fi
 
13384
 
 
13385
 
 
13386
# as_fn_executable_p FILE
 
13387
# -----------------------
 
13388
# Test if FILE is an executable regular file.
 
13389
as_fn_executable_p ()
 
13390
{
 
13391
  test -f "$1" && test -x "$1"
 
13392
} # as_fn_executable_p
 
13393
as_test_x='test -x'
 
13394
as_executable_p=as_fn_executable_p
 
13395
 
 
13396
# Sed expression to map a string onto a valid CPP name.
 
13397
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
13398
 
 
13399
# Sed expression to map a string onto a valid variable name.
 
13400
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
13401
 
 
13402
 
 
13403
exec 6>&1
 
13404
## ----------------------------------- ##
 
13405
## Main body of $CONFIG_STATUS script. ##
 
13406
## ----------------------------------- ##
 
13407
_ASEOF
 
13408
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
 
13409
 
 
13410
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
13411
# Save the log message, to keep $0 and so on meaningful, and to
 
13412
# report actual input values of CONFIG_FILES etc. instead of their
 
13413
# values after options handling.
 
13414
ac_log="
 
13415
This file was extended by xf86-video-openchrome $as_me 0.3.3, which was
 
13416
generated by GNU Autoconf 2.69.  Invocation command line was
 
13417
 
 
13418
  CONFIG_FILES    = $CONFIG_FILES
 
13419
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
13420
  CONFIG_LINKS    = $CONFIG_LINKS
 
13421
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
13422
  $ $0 $@
 
13423
 
 
13424
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
13425
"
 
13426
 
 
13427
_ACEOF
 
13428
 
 
13429
case $ac_config_files in *"
 
13430
"*) set x $ac_config_files; shift; ac_config_files=$*;;
 
13431
esac
 
13432
 
 
13433
case $ac_config_headers in *"
 
13434
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
 
13435
esac
 
13436
 
 
13437
 
 
13438
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
13439
# Files that config.status was made for.
 
13440
config_files="$ac_config_files"
 
13441
config_headers="$ac_config_headers"
 
13442
config_commands="$ac_config_commands"
 
13443
 
 
13444
_ACEOF
 
13445
 
 
13446
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
13447
ac_cs_usage="\
 
13448
\`$as_me' instantiates files and other configuration actions
 
13449
from templates according to the current configuration.  Unless the files
 
13450
and actions are specified as TAGs, all are instantiated by default.
 
13451
 
 
13452
Usage: $0 [OPTION]... [TAG]...
 
13453
 
 
13454
  -h, --help       print this help, then exit
 
13455
  -V, --version    print version number and configuration settings, then exit
 
13456
      --config     print configuration, then exit
 
13457
  -q, --quiet, --silent
 
13458
                   do not print progress messages
 
13459
  -d, --debug      don't remove temporary files
 
13460
      --recheck    update $as_me by reconfiguring in the same conditions
 
13461
      --file=FILE[:TEMPLATE]
 
13462
                   instantiate the configuration file FILE
 
13463
      --header=FILE[:TEMPLATE]
 
13464
                   instantiate the configuration header FILE
 
13465
 
 
13466
Configuration files:
 
13467
$config_files
 
13468
 
 
13469
Configuration headers:
 
13470
$config_headers
 
13471
 
 
13472
Configuration commands:
 
13473
$config_commands
 
13474
 
 
13475
Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/openchrome>."
 
13476
 
 
13477
_ACEOF
 
13478
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
13479
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
 
13480
ac_cs_version="\\
 
13481
xf86-video-openchrome config.status 0.3.3
 
13482
configured by $0, generated by GNU Autoconf 2.69,
 
13483
  with options \\"\$ac_cs_config\\"
 
13484
 
 
13485
Copyright (C) 2012 Free Software Foundation, Inc.
 
13486
This config.status script is free software; the Free Software Foundation
 
13487
gives unlimited permission to copy, distribute and modify it."
 
13488
 
 
13489
ac_pwd='$ac_pwd'
 
13490
srcdir='$srcdir'
 
13491
INSTALL='$INSTALL'
 
13492
MKDIR_P='$MKDIR_P'
 
13493
AWK='$AWK'
 
13494
test -n "\$AWK" || AWK=awk
 
13495
_ACEOF
 
13496
 
 
13497
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
13498
# The default lists apply if the user does not specify any file.
 
13499
ac_need_defaults=:
 
13500
while test $# != 0
 
13501
do
 
13502
  case $1 in
 
13503
  --*=?*)
 
13504
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
13505
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 
13506
    ac_shift=:
 
13507
    ;;
 
13508
  --*=)
 
13509
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
13510
    ac_optarg=
 
13511
    ac_shift=:
 
13512
    ;;
 
13513
  *)
 
13514
    ac_option=$1
 
13515
    ac_optarg=$2
 
13516
    ac_shift=shift
 
13517
    ;;
 
13518
  esac
 
13519
 
 
13520
  case $ac_option in
 
13521
  # Handling of the options.
 
13522
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
13523
    ac_cs_recheck=: ;;
 
13524
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 
13525
    $as_echo "$ac_cs_version"; exit ;;
 
13526
  --config | --confi | --conf | --con | --co | --c )
 
13527
    $as_echo "$ac_cs_config"; exit ;;
 
13528
  --debug | --debu | --deb | --de | --d | -d )
 
13529
    debug=: ;;
 
13530
  --file | --fil | --fi | --f )
 
13531
    $ac_shift
 
13532
    case $ac_optarg in
 
13533
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
13534
    '') as_fn_error $? "missing file argument" ;;
 
13535
    esac
 
13536
    as_fn_append CONFIG_FILES " '$ac_optarg'"
 
13537
    ac_need_defaults=false;;
 
13538
  --header | --heade | --head | --hea )
 
13539
    $ac_shift
 
13540
    case $ac_optarg in
 
13541
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
13542
    esac
 
13543
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
 
13544
    ac_need_defaults=false;;
 
13545
  --he | --h)
 
13546
    # Conflict between --help and --header
 
13547
    as_fn_error $? "ambiguous option: \`$1'
 
13548
Try \`$0 --help' for more information.";;
 
13549
  --help | --hel | -h )
 
13550
    $as_echo "$ac_cs_usage"; exit ;;
 
13551
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
13552
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
13553
    ac_cs_silent=: ;;
 
13554
 
 
13555
  # This is an error.
 
13556
  -*) as_fn_error $? "unrecognized option: \`$1'
 
13557
Try \`$0 --help' for more information." ;;
 
13558
 
 
13559
  *) as_fn_append ac_config_targets " $1"
 
13560
     ac_need_defaults=false ;;
 
13561
 
 
13562
  esac
 
13563
  shift
 
13564
done
 
13565
 
 
13566
ac_configure_extra_args=
 
13567
 
 
13568
if $ac_cs_silent; then
 
13569
  exec 6>/dev/null
 
13570
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
13571
fi
 
13572
 
 
13573
_ACEOF
 
13574
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
13575
if \$ac_cs_recheck; then
 
13576
  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
13577
  shift
 
13578
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
 
13579
  CONFIG_SHELL='$SHELL'
 
13580
  export CONFIG_SHELL
 
13581
  exec "\$@"
 
13582
fi
 
13583
 
 
13584
_ACEOF
 
13585
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
13586
exec 5>>config.log
 
13587
{
 
13588
  echo
 
13589
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
13590
## Running $as_me. ##
 
13591
_ASBOX
 
13592
  $as_echo "$ac_log"
 
13593
} >&5
 
13594
 
 
13595
_ACEOF
 
13596
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
13597
#
 
13598
# INIT-COMMANDS
 
13599
#
 
13600
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
13601
 
 
13602
 
 
13603
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
13604
# if CDPATH is set.
 
13605
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
13606
 
 
13607
sed_quote_subst='$sed_quote_subst'
 
13608
double_quote_subst='$double_quote_subst'
 
13609
delay_variable_subst='$delay_variable_subst'
 
13610
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
 
13611
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
 
13612
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
 
13613
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
 
13614
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
 
13615
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
 
13616
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
 
13617
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
 
13618
PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
 
13619
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
 
13620
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
 
13621
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
 
13622
build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
 
13623
build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
 
13624
build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
 
13625
SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
 
13626
Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
 
13627
GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
 
13628
EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
 
13629
FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
 
13630
LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
 
13631
NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
 
13632
LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
 
13633
max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
 
13634
ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
 
13635
exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
 
13636
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
 
13637
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
 
13638
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
 
13639
lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
 
13640
lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
 
13641
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
 
13642
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
 
13643
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
 
13644
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
 
13645
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
 
13646
file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
 
13647
want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
 
13648
DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
 
13649
sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
 
13650
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
 
13651
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
 
13652
archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
 
13653
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
 
13654
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
 
13655
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
 
13656
old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
 
13657
old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
 
13658
lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
 
13659
CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
 
13660
CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
 
13661
compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
 
13662
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
 
13663
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
 
13664
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
 
13665
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
 
13666
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
 
13667
nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
 
13668
lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
 
13669
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
 
13670
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
 
13671
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
 
13672
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
 
13673
lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
 
13674
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
 
13675
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
 
13676
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
 
13677
MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
 
13678
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
 
13679
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
 
13680
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
 
13681
OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
 
13682
OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
 
13683
libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
 
13684
shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
 
13685
extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
 
13686
archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
 
13687
enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
 
13688
export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
 
13689
whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
 
13690
compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
 
13691
old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
 
13692
old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
 
13693
archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
 
13694
archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
 
13695
module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
 
13696
module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
 
13697
with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
 
13698
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
 
13699
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
 
13700
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
 
13701
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
 
13702
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
 
13703
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
 
13704
hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
 
13705
hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
 
13706
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
 
13707
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
 
13708
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
 
13709
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
 
13710
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
 
13711
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
 
13712
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
 
13713
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
 
13714
postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
 
13715
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
 
13716
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
 
13717
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
 
13718
need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
 
13719
version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
 
13720
runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
 
13721
shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
 
13722
shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
 
13723
libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
 
13724
library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
 
13725
soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
 
13726
install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
 
13727
postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
 
13728
postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
 
13729
finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
 
13730
finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
 
13731
hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
 
13732
sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
 
13733
sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
 
13734
hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
 
13735
enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
 
13736
enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
 
13737
enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
 
13738
old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
 
13739
striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
 
13740
 
 
13741
LTCC='$LTCC'
 
13742
LTCFLAGS='$LTCFLAGS'
 
13743
compiler='$compiler_DEFAULT'
 
13744
 
 
13745
# A function that is used when there is no print builtin or printf.
 
13746
func_fallback_echo ()
 
13747
{
 
13748
  eval 'cat <<_LTECHO_EOF
 
13749
\$1
 
13750
_LTECHO_EOF'
 
13751
}
 
13752
 
 
13753
# Quote evaled strings.
 
13754
for var in SHELL \
 
13755
ECHO \
 
13756
PATH_SEPARATOR \
 
13757
SED \
 
13758
GREP \
 
13759
EGREP \
 
13760
FGREP \
 
13761
LD \
 
13762
NM \
 
13763
LN_S \
 
13764
lt_SP2NL \
 
13765
lt_NL2SP \
 
13766
reload_flag \
 
13767
OBJDUMP \
 
13768
deplibs_check_method \
 
13769
file_magic_cmd \
 
13770
file_magic_glob \
 
13771
want_nocaseglob \
 
13772
DLLTOOL \
 
13773
sharedlib_from_linklib_cmd \
 
13774
AR \
 
13775
AR_FLAGS \
 
13776
archiver_list_spec \
 
13777
STRIP \
 
13778
RANLIB \
 
13779
CC \
 
13780
CFLAGS \
 
13781
compiler \
 
13782
lt_cv_sys_global_symbol_pipe \
 
13783
lt_cv_sys_global_symbol_to_cdecl \
 
13784
lt_cv_sys_global_symbol_to_c_name_address \
 
13785
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
 
13786
nm_file_list_spec \
 
13787
lt_prog_compiler_no_builtin_flag \
 
13788
lt_prog_compiler_pic \
 
13789
lt_prog_compiler_wl \
 
13790
lt_prog_compiler_static \
 
13791
lt_cv_prog_compiler_c_o \
 
13792
need_locks \
 
13793
MANIFEST_TOOL \
 
13794
DSYMUTIL \
 
13795
NMEDIT \
 
13796
LIPO \
 
13797
OTOOL \
 
13798
OTOOL64 \
 
13799
shrext_cmds \
 
13800
export_dynamic_flag_spec \
 
13801
whole_archive_flag_spec \
 
13802
compiler_needs_object \
 
13803
with_gnu_ld \
 
13804
allow_undefined_flag \
 
13805
no_undefined_flag \
 
13806
hardcode_libdir_flag_spec \
 
13807
hardcode_libdir_separator \
 
13808
exclude_expsyms \
 
13809
include_expsyms \
 
13810
file_list_spec \
 
13811
variables_saved_for_relink \
 
13812
libname_spec \
 
13813
library_names_spec \
 
13814
soname_spec \
 
13815
install_override_mode \
 
13816
finish_eval \
 
13817
old_striplib \
 
13818
striplib; do
 
13819
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
 
13820
    *[\\\\\\\`\\"\\\$]*)
 
13821
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
 
13822
      ;;
 
13823
    *)
 
13824
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
13825
      ;;
 
13826
    esac
 
13827
done
 
13828
 
 
13829
# Double-quote double-evaled strings.
 
13830
for var in reload_cmds \
 
13831
old_postinstall_cmds \
 
13832
old_postuninstall_cmds \
 
13833
old_archive_cmds \
 
13834
extract_expsyms_cmds \
 
13835
old_archive_from_new_cmds \
 
13836
old_archive_from_expsyms_cmds \
 
13837
archive_cmds \
 
13838
archive_expsym_cmds \
 
13839
module_cmds \
 
13840
module_expsym_cmds \
 
13841
export_symbols_cmds \
 
13842
prelink_cmds \
 
13843
postlink_cmds \
 
13844
postinstall_cmds \
 
13845
postuninstall_cmds \
 
13846
finish_cmds \
 
13847
sys_lib_search_path_spec \
 
13848
sys_lib_dlsearch_path_spec; do
 
13849
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
 
13850
    *[\\\\\\\`\\"\\\$]*)
 
13851
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
 
13852
      ;;
 
13853
    *)
 
13854
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
13855
      ;;
 
13856
    esac
 
13857
done
 
13858
 
 
13859
ac_aux_dir='$ac_aux_dir'
 
13860
xsi_shell='$xsi_shell'
 
13861
lt_shell_append='$lt_shell_append'
 
13862
 
 
13863
# See if we are running on zsh, and set the options which allow our
 
13864
# commands through without removal of \ escapes INIT.
 
13865
if test -n "\${ZSH_VERSION+set}" ; then
 
13866
   setopt NO_GLOB_SUBST
 
13867
fi
 
13868
 
 
13869
 
 
13870
    PACKAGE='$PACKAGE'
 
13871
    VERSION='$VERSION'
 
13872
    TIMESTAMP='$TIMESTAMP'
 
13873
    RM='$RM'
 
13874
    ofile='$ofile'
 
13875
 
 
13876
 
 
13877
 
 
13878
 
 
13879
_ACEOF
 
13880
 
 
13881
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
13882
 
 
13883
# Handling of arguments.
 
13884
for ac_config_target in $ac_config_targets
 
13885
do
 
13886
  case $ac_config_target in
 
13887
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
13888
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
13889
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
 
13890
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
13891
    "src/xvmc/Makefile") CONFIG_FILES="$CONFIG_FILES src/xvmc/Makefile" ;;
 
13892
    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
 
13893
    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
 
13894
    "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
 
13895
 
 
13896
  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
 
13897
  esac
 
13898
done
 
13899
 
 
13900
 
 
13901
# If the user did not use the arguments to specify the items to instantiate,
 
13902
# then the envvar interface is used.  Set only those that are not.
 
13903
# We use the long form for the default assignment because of an extremely
 
13904
# bizarre bug on SunOS 4.1.3.
 
13905
if $ac_need_defaults; then
 
13906
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
13907
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
13908
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
13909
fi
 
13910
 
 
13911
# Have a temporary directory for convenience.  Make it in the build tree
 
13912
# simply because there is no reason against having it here, and in addition,
 
13913
# creating and moving files from /tmp can sometimes cause problems.
 
13914
# Hook for its removal unless debugging.
 
13915
# Note that there is a small window in which the directory will not be cleaned:
 
13916
# after its creation but before its name has been assigned to `$tmp'.
 
13917
$debug ||
 
13918
{
 
13919
  tmp= ac_tmp=
 
13920
  trap 'exit_status=$?
 
13921
  : "${ac_tmp:=$tmp}"
 
13922
  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
 
13923
' 0
 
13924
  trap 'as_fn_exit 1' 1 2 13 15
 
13925
}
 
13926
# Create a (secure) tmp directory for tmp files.
 
13927
 
 
13928
{
 
13929
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 
13930
  test -d "$tmp"
 
13931
}  ||
 
13932
{
 
13933
  tmp=./conf$$-$RANDOM
 
13934
  (umask 077 && mkdir "$tmp")
 
13935
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
 
13936
ac_tmp=$tmp
 
13937
 
 
13938
# Set up the scripts for CONFIG_FILES section.
 
13939
# No need to generate them if there are no CONFIG_FILES.
 
13940
# This happens for instance with `./config.status config.h'.
 
13941
if test -n "$CONFIG_FILES"; then
 
13942
 
 
13943
 
 
13944
ac_cr=`echo X | tr X '\015'`
 
13945
# On cygwin, bash can eat \r inside `` if the user requested igncr.
 
13946
# But we know of no other shell where ac_cr would be empty at this
 
13947
# point, so we can use a bashism as a fallback.
 
13948
if test "x$ac_cr" = x; then
 
13949
  eval ac_cr=\$\'\\r\'
 
13950
fi
 
13951
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
 
13952
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
 
13953
  ac_cs_awk_cr='\\r'
 
13954
else
 
13955
  ac_cs_awk_cr=$ac_cr
 
13956
fi
 
13957
 
 
13958
echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
 
13959
_ACEOF
 
13960
 
 
13961
 
 
13962
{
 
13963
  echo "cat >conf$$subs.awk <<_ACEOF" &&
 
13964
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
 
13965
  echo "_ACEOF"
 
13966
} >conf$$subs.sh ||
 
13967
  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
13968
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
 
13969
ac_delim='%!_!# '
 
13970
for ac_last_try in false false false false false :; do
 
13971
  . ./conf$$subs.sh ||
 
13972
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
13973
 
 
13974
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
 
13975
  if test $ac_delim_n = $ac_delim_num; then
 
13976
    break
 
13977
  elif $ac_last_try; then
 
13978
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
13979
  else
 
13980
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
13981
  fi
 
13982
done
 
13983
rm -f conf$$subs.sh
 
13984
 
 
13985
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
13986
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
 
13987
_ACEOF
 
13988
sed -n '
 
13989
h
 
13990
s/^/S["/; s/!.*/"]=/
 
13991
p
 
13992
g
 
13993
s/^[^!]*!//
 
13994
:repl
 
13995
t repl
 
13996
s/'"$ac_delim"'$//
 
13997
t delim
 
13998
:nl
 
13999
h
 
14000
s/\(.\{148\}\)..*/\1/
 
14001
t more1
 
14002
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
 
14003
p
 
14004
n
 
14005
b repl
 
14006
:more1
 
14007
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
14008
p
 
14009
g
 
14010
s/.\{148\}//
 
14011
t nl
 
14012
:delim
 
14013
h
 
14014
s/\(.\{148\}\)..*/\1/
 
14015
t more2
 
14016
s/["\\]/\\&/g; s/^/"/; s/$/"/
 
14017
p
 
14018
b
 
14019
:more2
 
14020
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
14021
p
 
14022
g
 
14023
s/.\{148\}//
 
14024
t delim
 
14025
' <conf$$subs.awk | sed '
 
14026
/^[^""]/{
 
14027
  N
 
14028
  s/\n//
 
14029
}
 
14030
' >>$CONFIG_STATUS || ac_write_fail=1
 
14031
rm -f conf$$subs.awk
 
14032
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
14033
_ACAWK
 
14034
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
 
14035
  for (key in S) S_is_set[key] = 1
 
14036
  FS = ""
 
14037
 
 
14038
}
 
14039
{
 
14040
  line = $ 0
 
14041
  nfields = split(line, field, "@")
 
14042
  substed = 0
 
14043
  len = length(field[1])
 
14044
  for (i = 2; i < nfields; i++) {
 
14045
    key = field[i]
 
14046
    keylen = length(key)
 
14047
    if (S_is_set[key]) {
 
14048
      value = S[key]
 
14049
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
 
14050
      len += length(value) + length(field[++i])
 
14051
      substed = 1
 
14052
    } else
 
14053
      len += 1 + keylen
 
14054
  }
 
14055
 
 
14056
  print line
 
14057
}
 
14058
 
 
14059
_ACAWK
 
14060
_ACEOF
 
14061
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14062
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
 
14063
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
 
14064
else
 
14065
  cat
 
14066
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
 
14067
  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
 
14068
_ACEOF
 
14069
 
 
14070
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
 
14071
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
 
14072
# trailing colons and then remove the whole line if VPATH becomes empty
 
14073
# (actually we leave an empty line to preserve line numbers).
 
14074
if test "x$srcdir" = x.; then
 
14075
  ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
 
14076
h
 
14077
s///
 
14078
s/^/:/
 
14079
s/[      ]*$/:/
 
14080
s/:\$(srcdir):/:/g
 
14081
s/:\${srcdir}:/:/g
 
14082
s/:@srcdir@:/:/g
 
14083
s/^:*//
 
14084
s/:*$//
 
14085
x
 
14086
s/\(=[   ]*\).*/\1/
 
14087
G
 
14088
s/\n//
 
14089
s/^[^=]*=[       ]*$//
 
14090
}'
 
14091
fi
 
14092
 
 
14093
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14094
fi # test -n "$CONFIG_FILES"
 
14095
 
 
14096
# Set up the scripts for CONFIG_HEADERS section.
 
14097
# No need to generate them if there are no CONFIG_HEADERS.
 
14098
# This happens for instance with `./config.status Makefile'.
 
14099
if test -n "$CONFIG_HEADERS"; then
 
14100
cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
 
14101
BEGIN {
 
14102
_ACEOF
 
14103
 
 
14104
# Transform confdefs.h into an awk script `defines.awk', embedded as
 
14105
# here-document in config.status, that substitutes the proper values into
 
14106
# config.h.in to produce config.h.
 
14107
 
 
14108
# Create a delimiter string that does not exist in confdefs.h, to ease
 
14109
# handling of long lines.
 
14110
ac_delim='%!_!# '
 
14111
for ac_last_try in false false :; do
 
14112
  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
 
14113
  if test -z "$ac_tt"; then
 
14114
    break
 
14115
  elif $ac_last_try; then
 
14116
    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
 
14117
  else
 
14118
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
14119
  fi
 
14120
done
 
14121
 
 
14122
# For the awk script, D is an array of macro values keyed by name,
 
14123
# likewise P contains macro parameters if any.  Preserve backslash
 
14124
# newline sequences.
 
14125
 
 
14126
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 
14127
sed -n '
 
14128
s/.\{148\}/&'"$ac_delim"'/g
 
14129
t rset
 
14130
:rset
 
14131
s/^[     ]*#[    ]*define[       ][      ]*/ /
 
14132
t def
 
14133
d
 
14134
:def
 
14135
s/\\$//
 
14136
t bsnl
 
14137
s/["\\]/\\&/g
 
14138
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
14139
D["\1"]=" \3"/p
 
14140
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
 
14141
d
 
14142
:bsnl
 
14143
s/["\\]/\\&/g
 
14144
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
14145
D["\1"]=" \3\\\\\\n"\\/p
 
14146
t cont
 
14147
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
 
14148
t cont
 
14149
d
 
14150
:cont
 
14151
n
 
14152
s/.\{148\}/&'"$ac_delim"'/g
 
14153
t clear
 
14154
:clear
 
14155
s/\\$//
 
14156
t bsnlc
 
14157
s/["\\]/\\&/g; s/^/"/; s/$/"/p
 
14158
d
 
14159
:bsnlc
 
14160
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
 
14161
b cont
 
14162
' <confdefs.h | sed '
 
14163
s/'"$ac_delim"'/"\\\
 
14164
"/g' >>$CONFIG_STATUS || ac_write_fail=1
 
14165
 
 
14166
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
14167
  for (key in D) D_is_set[key] = 1
 
14168
  FS = ""
 
14169
}
 
14170
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
 
14171
  line = \$ 0
 
14172
  split(line, arg, " ")
 
14173
  if (arg[1] == "#") {
 
14174
    defundef = arg[2]
 
14175
    mac1 = arg[3]
 
14176
  } else {
 
14177
    defundef = substr(arg[1], 2)
 
14178
    mac1 = arg[2]
 
14179
  }
 
14180
  split(mac1, mac2, "(") #)
 
14181
  macro = mac2[1]
 
14182
  prefix = substr(line, 1, index(line, defundef) - 1)
 
14183
  if (D_is_set[macro]) {
 
14184
    # Preserve the white space surrounding the "#".
 
14185
    print prefix "define", macro P[macro] D[macro]
 
14186
    next
 
14187
  } else {
 
14188
    # Replace #undef with comments.  This is necessary, for example,
 
14189
    # in the case of _POSIX_SOURCE, which is predefined and required
 
14190
    # on some systems where configure will not decide to define it.
 
14191
    if (defundef == "undef") {
 
14192
      print "/*", prefix defundef, macro, "*/"
 
14193
      next
 
14194
    }
 
14195
  }
 
14196
}
 
14197
{ print }
 
14198
_ACAWK
 
14199
_ACEOF
 
14200
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14201
  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
 
14202
fi # test -n "$CONFIG_HEADERS"
 
14203
 
 
14204
 
 
14205
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
 
14206
shift
 
14207
for ac_tag
 
14208
do
 
14209
  case $ac_tag in
 
14210
  :[FHLC]) ac_mode=$ac_tag; continue;;
 
14211
  esac
 
14212
  case $ac_mode$ac_tag in
 
14213
  :[FHL]*:*);;
 
14214
  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
 
14215
  :[FH]-) ac_tag=-:-;;
 
14216
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 
14217
  esac
 
14218
  ac_save_IFS=$IFS
 
14219
  IFS=:
 
14220
  set x $ac_tag
 
14221
  IFS=$ac_save_IFS
 
14222
  shift
 
14223
  ac_file=$1
 
14224
  shift
 
14225
 
 
14226
  case $ac_mode in
 
14227
  :L) ac_source=$1;;
 
14228
  :[FH])
 
14229
    ac_file_inputs=
 
14230
    for ac_f
 
14231
    do
 
14232
      case $ac_f in
 
14233
      -) ac_f="$ac_tmp/stdin";;
 
14234
      *) # Look for the file first in the build tree, then in the source tree
 
14235
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
 
14236
         # because $ac_f cannot contain `:'.
 
14237
         test -f "$ac_f" ||
 
14238
           case $ac_f in
 
14239
           [\\/$]*) false;;
 
14240
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 
14241
           esac ||
 
14242
           as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
 
14243
      esac
 
14244
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
 
14245
      as_fn_append ac_file_inputs " '$ac_f'"
 
14246
    done
 
14247
 
 
14248
    # Let's still pretend it is `configure' which instantiates (i.e., don't
 
14249
    # use $as_me), people would be surprised to read:
 
14250
    #    /* config.h.  Generated by config.status.  */
 
14251
    configure_input='Generated from '`
 
14252
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
 
14253
        `' by configure.'
 
14254
    if test x"$ac_file" != x-; then
 
14255
      configure_input="$ac_file.  $configure_input"
 
14256
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
 
14257
$as_echo "$as_me: creating $ac_file" >&6;}
 
14258
    fi
 
14259
    # Neutralize special characters interpreted by sed in replacement strings.
 
14260
    case $configure_input in #(
 
14261
    *\&* | *\|* | *\\* )
 
14262
       ac_sed_conf_input=`$as_echo "$configure_input" |
 
14263
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
 
14264
    *) ac_sed_conf_input=$configure_input;;
 
14265
    esac
 
14266
 
 
14267
    case $ac_tag in
 
14268
    *:-:* | *:-) cat >"$ac_tmp/stdin" \
 
14269
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
 
14270
    esac
 
14271
    ;;
 
14272
  esac
 
14273
 
 
14274
  ac_dir=`$as_dirname -- "$ac_file" ||
 
14275
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
14276
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
14277
         X"$ac_file" : 'X\(//\)$' \| \
 
14278
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 
14279
$as_echo X"$ac_file" |
 
14280
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
14281
            s//\1/
 
14282
            q
 
14283
          }
 
14284
          /^X\(\/\/\)[^/].*/{
 
14285
            s//\1/
 
14286
            q
 
14287
          }
 
14288
          /^X\(\/\/\)$/{
 
14289
            s//\1/
 
14290
            q
 
14291
          }
 
14292
          /^X\(\/\).*/{
 
14293
            s//\1/
 
14294
            q
 
14295
          }
 
14296
          s/.*/./; q'`
 
14297
  as_dir="$ac_dir"; as_fn_mkdir_p
 
14298
  ac_builddir=.
 
14299
 
 
14300
case "$ac_dir" in
 
14301
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
14302
*)
 
14303
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
14304
  # A ".." for each directory in $ac_dir_suffix.
 
14305
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
14306
  case $ac_top_builddir_sub in
 
14307
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
14308
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
14309
  esac ;;
 
14310
esac
 
14311
ac_abs_top_builddir=$ac_pwd
 
14312
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
14313
# for backward compatibility:
 
14314
ac_top_builddir=$ac_top_build_prefix
 
14315
 
 
14316
case $srcdir in
 
14317
  .)  # We are building in place.
 
14318
    ac_srcdir=.
 
14319
    ac_top_srcdir=$ac_top_builddir_sub
 
14320
    ac_abs_top_srcdir=$ac_pwd ;;
 
14321
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
14322
    ac_srcdir=$srcdir$ac_dir_suffix;
 
14323
    ac_top_srcdir=$srcdir
 
14324
    ac_abs_top_srcdir=$srcdir ;;
 
14325
  *) # Relative name.
 
14326
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
14327
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
14328
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
14329
esac
 
14330
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
14331
 
 
14332
 
 
14333
  case $ac_mode in
 
14334
  :F)
 
14335
  #
 
14336
  # CONFIG_FILE
 
14337
  #
 
14338
 
 
14339
  case $INSTALL in
 
14340
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
14341
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 
14342
  esac
 
14343
  ac_MKDIR_P=$MKDIR_P
 
14344
  case $MKDIR_P in
 
14345
  [\\/$]* | ?:[\\/]* ) ;;
 
14346
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
 
14347
  esac
 
14348
_ACEOF
 
14349
 
 
14350
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14351
# If the template does not know about datarootdir, expand it.
 
14352
# FIXME: This hack should be removed a few years after 2.60.
 
14353
ac_datarootdir_hack=; ac_datarootdir_seen=
 
14354
ac_sed_dataroot='
 
14355
/datarootdir/ {
 
14356
  p
 
14357
  q
 
14358
}
 
14359
/@datadir@/p
 
14360
/@docdir@/p
 
14361
/@infodir@/p
 
14362
/@localedir@/p
 
14363
/@mandir@/p'
 
14364
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
 
14365
*datarootdir*) ac_datarootdir_seen=yes;;
 
14366
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 
14367
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
14368
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
14369
_ACEOF
 
14370
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
14371
  ac_datarootdir_hack='
 
14372
  s&@datadir@&$datadir&g
 
14373
  s&@docdir@&$docdir&g
 
14374
  s&@infodir@&$infodir&g
 
14375
  s&@localedir@&$localedir&g
 
14376
  s&@mandir@&$mandir&g
 
14377
  s&\\\${datarootdir}&$datarootdir&g' ;;
 
14378
esac
 
14379
_ACEOF
 
14380
 
 
14381
# Neutralize VPATH when `$srcdir' = `.'.
 
14382
# Shell code in configure.ac might set extrasub.
 
14383
# FIXME: do we really want to maintain this feature?
 
14384
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
14385
ac_sed_extra="$ac_vpsub
 
14386
$extrasub
 
14387
_ACEOF
 
14388
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14389
:t
 
14390
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
14391
s|@configure_input@|$ac_sed_conf_input|;t t
 
14392
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
14393
s&@top_build_prefix@&$ac_top_build_prefix&;t t
 
14394
s&@srcdir@&$ac_srcdir&;t t
 
14395
s&@abs_srcdir@&$ac_abs_srcdir&;t t
 
14396
s&@top_srcdir@&$ac_top_srcdir&;t t
 
14397
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 
14398
s&@builddir@&$ac_builddir&;t t
 
14399
s&@abs_builddir@&$ac_abs_builddir&;t t
 
14400
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 
14401
s&@INSTALL@&$ac_INSTALL&;t t
 
14402
s&@MKDIR_P@&$ac_MKDIR_P&;t t
 
14403
$ac_datarootdir_hack
 
14404
"
 
14405
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
 
14406
  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
14407
 
 
14408
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 
14409
  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
 
14410
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
 
14411
      "$ac_tmp/out"`; test -z "$ac_out"; } &&
 
14412
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
14413
which seems to be undefined.  Please make sure it is defined" >&5
 
14414
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
14415
which seems to be undefined.  Please make sure it is defined" >&2;}
 
14416
 
 
14417
  rm -f "$ac_tmp/stdin"
 
14418
  case $ac_file in
 
14419
  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
 
14420
  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
 
14421
  esac \
 
14422
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
14423
 ;;
 
14424
  :H)
 
14425
  #
 
14426
  # CONFIG_HEADER
 
14427
  #
 
14428
  if test x"$ac_file" != x-; then
 
14429
    {
 
14430
      $as_echo "/* $configure_input  */" \
 
14431
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
 
14432
    } >"$ac_tmp/config.h" \
 
14433
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
14434
    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
 
14435
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
 
14436
$as_echo "$as_me: $ac_file is unchanged" >&6;}
 
14437
    else
 
14438
      rm -f "$ac_file"
 
14439
      mv "$ac_tmp/config.h" "$ac_file" \
 
14440
        || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
14441
    fi
 
14442
  else
 
14443
    $as_echo "/* $configure_input  */" \
 
14444
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
 
14445
      || as_fn_error $? "could not create -" "$LINENO" 5
 
14446
  fi
 
14447
# Compute "$ac_file"'s index in $config_headers.
 
14448
_am_arg="$ac_file"
 
14449
_am_stamp_count=1
 
14450
for _am_header in $config_headers :; do
 
14451
  case $_am_header in
 
14452
    $_am_arg | $_am_arg:* )
 
14453
      break ;;
 
14454
    * )
 
14455
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
14456
  esac
 
14457
done
 
14458
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
 
14459
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
14460
         X"$_am_arg" : 'X\(//\)[^/]' \| \
 
14461
         X"$_am_arg" : 'X\(//\)$' \| \
 
14462
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
 
14463
$as_echo X"$_am_arg" |
 
14464
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
14465
            s//\1/
 
14466
            q
 
14467
          }
 
14468
          /^X\(\/\/\)[^/].*/{
 
14469
            s//\1/
 
14470
            q
 
14471
          }
 
14472
          /^X\(\/\/\)$/{
 
14473
            s//\1/
 
14474
            q
 
14475
          }
 
14476
          /^X\(\/\).*/{
 
14477
            s//\1/
 
14478
            q
 
14479
          }
 
14480
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
14481
 ;;
 
14482
 
 
14483
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
 
14484
$as_echo "$as_me: executing $ac_file commands" >&6;}
 
14485
 ;;
 
14486
  esac
 
14487
 
 
14488
 
 
14489
  case $ac_file$ac_mode in
 
14490
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
 
14491
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
 
14492
  # are listed without --file.  Let's play safe and only enable the eval
 
14493
  # if we detect the quoting.
 
14494
  case $CONFIG_FILES in
 
14495
  *\'*) eval set x "$CONFIG_FILES" ;;
 
14496
  *)   set x $CONFIG_FILES ;;
 
14497
  esac
 
14498
  shift
 
14499
  for mf
 
14500
  do
 
14501
    # Strip MF so we end up with the name of the file.
 
14502
    mf=`echo "$mf" | sed -e 's/:.*$//'`
 
14503
    # Check whether this is an Automake generated Makefile or not.
 
14504
    # We used to match only the files named 'Makefile.in', but
 
14505
    # some people rename them; so instead we look at the file content.
 
14506
    # Grep'ing the first line is not enough: some people post-process
 
14507
    # each Makefile.in and add a new line on top of each file to say so.
 
14508
    # Grep'ing the whole file is not good either: AIX grep has a line
 
14509
    # limit of 2048, but all sed's we know have understand at least 4000.
 
14510
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
14511
      dirpart=`$as_dirname -- "$mf" ||
 
14512
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
14513
         X"$mf" : 'X\(//\)[^/]' \| \
 
14514
         X"$mf" : 'X\(//\)$' \| \
 
14515
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
 
14516
$as_echo X"$mf" |
 
14517
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
14518
            s//\1/
 
14519
            q
 
14520
          }
 
14521
          /^X\(\/\/\)[^/].*/{
 
14522
            s//\1/
 
14523
            q
 
14524
          }
 
14525
          /^X\(\/\/\)$/{
 
14526
            s//\1/
 
14527
            q
 
14528
          }
 
14529
          /^X\(\/\).*/{
 
14530
            s//\1/
 
14531
            q
 
14532
          }
 
14533
          s/.*/./; q'`
 
14534
    else
 
14535
      continue
 
14536
    fi
 
14537
    # Extract the definition of DEPDIR, am__include, and am__quote
 
14538
    # from the Makefile without running 'make'.
 
14539
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
14540
    test -z "$DEPDIR" && continue
 
14541
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
14542
    test -z "am__include" && continue
 
14543
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
14544
    # Find all dependency output files, they are included files with
 
14545
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
14546
    # simplest approach to changing $(DEPDIR) to its actual value in the
 
14547
    # expansion.
 
14548
    for file in `sed -n "
 
14549
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
14550
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
 
14551
      # Make sure the directory exists.
 
14552
      test -f "$dirpart/$file" && continue
 
14553
      fdir=`$as_dirname -- "$file" ||
 
14554
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
14555
         X"$file" : 'X\(//\)[^/]' \| \
 
14556
         X"$file" : 'X\(//\)$' \| \
 
14557
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
 
14558
$as_echo X"$file" |
 
14559
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
14560
            s//\1/
 
14561
            q
 
14562
          }
 
14563
          /^X\(\/\/\)[^/].*/{
 
14564
            s//\1/
 
14565
            q
 
14566
          }
 
14567
          /^X\(\/\/\)$/{
 
14568
            s//\1/
 
14569
            q
 
14570
          }
 
14571
          /^X\(\/\).*/{
 
14572
            s//\1/
 
14573
            q
 
14574
          }
 
14575
          s/.*/./; q'`
 
14576
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
 
14577
      # echo "creating $dirpart/$file"
 
14578
      echo '# dummy' > "$dirpart/$file"
 
14579
    done
 
14580
  done
 
14581
}
 
14582
 ;;
 
14583
    "libtool":C)
 
14584
 
 
14585
    # See if we are running on zsh, and set the options which allow our
 
14586
    # commands through without removal of \ escapes.
 
14587
    if test -n "${ZSH_VERSION+set}" ; then
 
14588
      setopt NO_GLOB_SUBST
 
14589
    fi
 
14590
 
 
14591
    cfgfile="${ofile}T"
 
14592
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
 
14593
    $RM "$cfgfile"
 
14594
 
 
14595
    cat <<_LT_EOF >> "$cfgfile"
 
14596
#! $SHELL
 
14597
 
 
14598
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
14599
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
 
14600
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
14601
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
14602
#
 
14603
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
 
14604
#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
 
14605
#                 Foundation, Inc.
 
14606
#   Written by Gordon Matzigkeit, 1996
 
14607
#
 
14608
#   This file is part of GNU Libtool.
 
14609
#
 
14610
# GNU Libtool is free software; you can redistribute it and/or
 
14611
# modify it under the terms of the GNU General Public License as
 
14612
# published by the Free Software Foundation; either version 2 of
 
14613
# the License, or (at your option) any later version.
 
14614
#
 
14615
# As a special exception to the GNU General Public License,
 
14616
# if you distribute this file as part of a program or library that
 
14617
# is built using GNU Libtool, you may include this file under the
 
14618
# same distribution terms that you use for the rest of that program.
 
14619
#
 
14620
# GNU Libtool is distributed in the hope that it will be useful,
 
14621
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14622
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14623
# GNU General Public License for more details.
 
14624
#
 
14625
# You should have received a copy of the GNU General Public License
 
14626
# along with GNU Libtool; see the file COPYING.  If not, a copy
 
14627
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
 
14628
# obtained by writing to the Free Software Foundation, Inc.,
 
14629
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
14630
 
 
14631
 
 
14632
# The names of the tagged configurations supported by this script.
 
14633
available_tags=""
 
14634
 
 
14635
# ### BEGIN LIBTOOL CONFIG
 
14636
 
 
14637
# Whether or not to build static libraries.
 
14638
build_old_libs=$enable_static
 
14639
 
 
14640
# Which release of libtool.m4 was used?
 
14641
macro_version=$macro_version
 
14642
macro_revision=$macro_revision
 
14643
 
 
14644
# Whether or not to build shared libraries.
 
14645
build_libtool_libs=$enable_shared
 
14646
 
 
14647
# What type of objects to build.
 
14648
pic_mode=$pic_mode
 
14649
 
 
14650
# Whether or not to optimize for fast installation.
 
14651
fast_install=$enable_fast_install
 
14652
 
 
14653
# Shell to use when invoking shell scripts.
 
14654
SHELL=$lt_SHELL
 
14655
 
 
14656
# An echo program that protects backslashes.
 
14657
ECHO=$lt_ECHO
 
14658
 
 
14659
# The PATH separator for the build system.
 
14660
PATH_SEPARATOR=$lt_PATH_SEPARATOR
 
14661
 
 
14662
# The host system.
 
14663
host_alias=$host_alias
 
14664
host=$host
 
14665
host_os=$host_os
 
14666
 
 
14667
# The build system.
 
14668
build_alias=$build_alias
 
14669
build=$build
 
14670
build_os=$build_os
 
14671
 
 
14672
# A sed program that does not truncate output.
 
14673
SED=$lt_SED
 
14674
 
 
14675
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
14676
Xsed="\$SED -e 1s/^X//"
 
14677
 
 
14678
# A grep program that handles long lines.
 
14679
GREP=$lt_GREP
 
14680
 
 
14681
# An ERE matcher.
 
14682
EGREP=$lt_EGREP
 
14683
 
 
14684
# A literal string matcher.
 
14685
FGREP=$lt_FGREP
 
14686
 
 
14687
# A BSD- or MS-compatible name lister.
 
14688
NM=$lt_NM
 
14689
 
 
14690
# Whether we need soft or hard links.
 
14691
LN_S=$lt_LN_S
 
14692
 
 
14693
# What is the maximum length of a command?
 
14694
max_cmd_len=$max_cmd_len
 
14695
 
 
14696
# Object file suffix (normally "o").
 
14697
objext=$ac_objext
 
14698
 
 
14699
# Executable file suffix (normally "").
 
14700
exeext=$exeext
 
14701
 
 
14702
# whether the shell understands "unset".
 
14703
lt_unset=$lt_unset
 
14704
 
 
14705
# turn spaces into newlines.
 
14706
SP2NL=$lt_lt_SP2NL
 
14707
 
 
14708
# turn newlines into spaces.
 
14709
NL2SP=$lt_lt_NL2SP
 
14710
 
 
14711
# convert \$build file names to \$host format.
 
14712
to_host_file_cmd=$lt_cv_to_host_file_cmd
 
14713
 
 
14714
# convert \$build files to toolchain format.
 
14715
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
 
14716
 
 
14717
# An object symbol dumper.
 
14718
OBJDUMP=$lt_OBJDUMP
 
14719
 
 
14720
# Method to check whether dependent libraries are shared objects.
 
14721
deplibs_check_method=$lt_deplibs_check_method
 
14722
 
 
14723
# Command to use when deplibs_check_method = "file_magic".
 
14724
file_magic_cmd=$lt_file_magic_cmd
 
14725
 
 
14726
# How to find potential files when deplibs_check_method = "file_magic".
 
14727
file_magic_glob=$lt_file_magic_glob
 
14728
 
 
14729
# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
 
14730
want_nocaseglob=$lt_want_nocaseglob
 
14731
 
 
14732
# DLL creation program.
 
14733
DLLTOOL=$lt_DLLTOOL
 
14734
 
 
14735
# Command to associate shared and link libraries.
 
14736
sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
 
14737
 
 
14738
# The archiver.
 
14739
AR=$lt_AR
 
14740
 
 
14741
# Flags to create an archive.
 
14742
AR_FLAGS=$lt_AR_FLAGS
 
14743
 
 
14744
# How to feed a file listing to the archiver.
 
14745
archiver_list_spec=$lt_archiver_list_spec
 
14746
 
 
14747
# A symbol stripping program.
 
14748
STRIP=$lt_STRIP
 
14749
 
 
14750
# Commands used to install an old-style archive.
 
14751
RANLIB=$lt_RANLIB
 
14752
old_postinstall_cmds=$lt_old_postinstall_cmds
 
14753
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
14754
 
 
14755
# Whether to use a lock for old archive extraction.
 
14756
lock_old_archive_extraction=$lock_old_archive_extraction
 
14757
 
 
14758
# A C compiler.
 
14759
LTCC=$lt_CC
 
14760
 
 
14761
# LTCC compiler flags.
 
14762
LTCFLAGS=$lt_CFLAGS
 
14763
 
 
14764
# Take the output of nm and produce a listing of raw symbols and C names.
 
14765
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
14766
 
 
14767
# Transform the output of nm in a proper C declaration.
 
14768
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
14769
 
 
14770
# Transform the output of nm in a C name address pair.
 
14771
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
14772
 
 
14773
# Transform the output of nm in a C name address pair when lib prefix is needed.
 
14774
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
 
14775
 
 
14776
# Specify filename containing input files for \$NM.
 
14777
nm_file_list_spec=$lt_nm_file_list_spec
 
14778
 
 
14779
# The root where to search for dependent libraries,and in which our libraries should be installed.
 
14780
lt_sysroot=$lt_sysroot
 
14781
 
 
14782
# The name of the directory that contains temporary libtool files.
 
14783
objdir=$objdir
 
14784
 
 
14785
# Used to examine libraries when file_magic_cmd begins with "file".
 
14786
MAGIC_CMD=$MAGIC_CMD
 
14787
 
 
14788
# Must we lock files when doing compilation?
 
14789
need_locks=$lt_need_locks
 
14790
 
 
14791
# Manifest tool.
 
14792
MANIFEST_TOOL=$lt_MANIFEST_TOOL
 
14793
 
 
14794
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
 
14795
DSYMUTIL=$lt_DSYMUTIL
 
14796
 
 
14797
# Tool to change global to local symbols on Mac OS X.
 
14798
NMEDIT=$lt_NMEDIT
 
14799
 
 
14800
# Tool to manipulate fat objects and archives on Mac OS X.
 
14801
LIPO=$lt_LIPO
 
14802
 
 
14803
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
 
14804
OTOOL=$lt_OTOOL
 
14805
 
 
14806
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
 
14807
OTOOL64=$lt_OTOOL64
 
14808
 
 
14809
# Old archive suffix (normally "a").
 
14810
libext=$libext
 
14811
 
 
14812
# Shared library suffix (normally ".so").
 
14813
shrext_cmds=$lt_shrext_cmds
 
14814
 
 
14815
# The commands to extract the exported symbol list from a shared archive.
 
14816
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
14817
 
 
14818
# Variables whose values should be saved in libtool wrapper scripts and
 
14819
# restored at link time.
 
14820
variables_saved_for_relink=$lt_variables_saved_for_relink
 
14821
 
 
14822
# Do we need the "lib" prefix for modules?
 
14823
need_lib_prefix=$need_lib_prefix
 
14824
 
 
14825
# Do we need a version for libraries?
 
14826
need_version=$need_version
 
14827
 
 
14828
# Library versioning type.
 
14829
version_type=$version_type
 
14830
 
 
14831
# Shared library runtime path variable.
 
14832
runpath_var=$runpath_var
 
14833
 
 
14834
# Shared library path variable.
 
14835
shlibpath_var=$shlibpath_var
 
14836
 
 
14837
# Is shlibpath searched before the hard-coded library search path?
 
14838
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
14839
 
 
14840
# Format of library name prefix.
 
14841
libname_spec=$lt_libname_spec
 
14842
 
 
14843
# List of archive names.  First name is the real one, the rest are links.
 
14844
# The last name is the one that the linker finds with -lNAME
 
14845
library_names_spec=$lt_library_names_spec
 
14846
 
 
14847
# The coded name of the library, if different from the real name.
 
14848
soname_spec=$lt_soname_spec
 
14849
 
 
14850
# Permission mode override for installation of shared libraries.
 
14851
install_override_mode=$lt_install_override_mode
 
14852
 
 
14853
# Command to use after installation of a shared archive.
 
14854
postinstall_cmds=$lt_postinstall_cmds
 
14855
 
 
14856
# Command to use after uninstallation of a shared archive.
 
14857
postuninstall_cmds=$lt_postuninstall_cmds
 
14858
 
 
14859
# Commands used to finish a libtool library installation in a directory.
 
14860
finish_cmds=$lt_finish_cmds
 
14861
 
 
14862
# As "finish_cmds", except a single script fragment to be evaled but
 
14863
# not shown.
 
14864
finish_eval=$lt_finish_eval
 
14865
 
 
14866
# Whether we should hardcode library paths into libraries.
 
14867
hardcode_into_libs=$hardcode_into_libs
 
14868
 
 
14869
# Compile-time system search path for libraries.
 
14870
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
14871
 
 
14872
# Run-time system search path for libraries.
 
14873
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
14874
 
 
14875
# Whether dlopen is supported.
 
14876
dlopen_support=$enable_dlopen
 
14877
 
 
14878
# Whether dlopen of programs is supported.
 
14879
dlopen_self=$enable_dlopen_self
 
14880
 
 
14881
# Whether dlopen of statically linked programs is supported.
 
14882
dlopen_self_static=$enable_dlopen_self_static
 
14883
 
 
14884
# Commands to strip libraries.
 
14885
old_striplib=$lt_old_striplib
 
14886
striplib=$lt_striplib
 
14887
 
 
14888
 
 
14889
# The linker used to build libraries.
 
14890
LD=$lt_LD
 
14891
 
 
14892
# How to create reloadable object files.
 
14893
reload_flag=$lt_reload_flag
 
14894
reload_cmds=$lt_reload_cmds
 
14895
 
 
14896
# Commands used to build an old-style archive.
 
14897
old_archive_cmds=$lt_old_archive_cmds
 
14898
 
 
14899
# A language specific compiler.
 
14900
CC=$lt_compiler
 
14901
 
 
14902
# Is the compiler the GNU compiler?
 
14903
with_gcc=$GCC
 
14904
 
 
14905
# Compiler flag to turn off builtin functions.
 
14906
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
14907
 
 
14908
# Additional compiler flags for building library objects.
 
14909
pic_flag=$lt_lt_prog_compiler_pic
 
14910
 
 
14911
# How to pass a linker flag through the compiler.
 
14912
wl=$lt_lt_prog_compiler_wl
 
14913
 
 
14914
# Compiler flag to prevent dynamic linking.
 
14915
link_static_flag=$lt_lt_prog_compiler_static
 
14916
 
 
14917
# Does compiler simultaneously support -c and -o options?
 
14918
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
14919
 
 
14920
# Whether or not to add -lc for building shared libraries.
 
14921
build_libtool_need_lc=$archive_cmds_need_lc
 
14922
 
 
14923
# Whether or not to disallow shared libs when runtime libs are static.
 
14924
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
14925
 
 
14926
# Compiler flag to allow reflexive dlopens.
 
14927
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
14928
 
 
14929
# Compiler flag to generate shared objects directly from archives.
 
14930
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
14931
 
 
14932
# Whether the compiler copes with passing no objects directly.
 
14933
compiler_needs_object=$lt_compiler_needs_object
 
14934
 
 
14935
# Create an old-style archive from a shared archive.
 
14936
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
14937
 
 
14938
# Create a temporary old-style archive to link instead of a shared archive.
 
14939
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
14940
 
 
14941
# Commands used to build a shared archive.
 
14942
archive_cmds=$lt_archive_cmds
 
14943
archive_expsym_cmds=$lt_archive_expsym_cmds
 
14944
 
 
14945
# Commands used to build a loadable module if different from building
 
14946
# a shared archive.
 
14947
module_cmds=$lt_module_cmds
 
14948
module_expsym_cmds=$lt_module_expsym_cmds
 
14949
 
 
14950
# Whether we are building with GNU ld or not.
 
14951
with_gnu_ld=$lt_with_gnu_ld
 
14952
 
 
14953
# Flag that allows shared libraries with undefined symbols to be built.
 
14954
allow_undefined_flag=$lt_allow_undefined_flag
 
14955
 
 
14956
# Flag that enforces no undefined symbols.
 
14957
no_undefined_flag=$lt_no_undefined_flag
 
14958
 
 
14959
# Flag to hardcode \$libdir into a binary during linking.
 
14960
# This must work even if \$libdir does not exist
 
14961
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
14962
 
 
14963
# Whether we need a single "-rpath" flag with a separated argument.
 
14964
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
14965
 
 
14966
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
14967
# DIR into the resulting binary.
 
14968
hardcode_direct=$hardcode_direct
 
14969
 
 
14970
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
14971
# DIR into the resulting binary and the resulting library dependency is
 
14972
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
 
14973
# library is relocated.
 
14974
hardcode_direct_absolute=$hardcode_direct_absolute
 
14975
 
 
14976
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 
14977
# into the resulting binary.
 
14978
hardcode_minus_L=$hardcode_minus_L
 
14979
 
 
14980
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 
14981
# into the resulting binary.
 
14982
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
14983
 
 
14984
# Set to "yes" if building a shared library automatically hardcodes DIR
 
14985
# into the library and all subsequent libraries and executables linked
 
14986
# against it.
 
14987
hardcode_automatic=$hardcode_automatic
 
14988
 
 
14989
# Set to yes if linker adds runtime paths of dependent libraries
 
14990
# to runtime path list.
 
14991
inherit_rpath=$inherit_rpath
 
14992
 
 
14993
# Whether libtool must link a program against all its dependency libraries.
 
14994
link_all_deplibs=$link_all_deplibs
 
14995
 
 
14996
# Set to "yes" if exported symbols are required.
 
14997
always_export_symbols=$always_export_symbols
 
14998
 
 
14999
# The commands to list exported symbols.
 
15000
export_symbols_cmds=$lt_export_symbols_cmds
 
15001
 
 
15002
# Symbols that should not be listed in the preloaded symbols.
 
15003
exclude_expsyms=$lt_exclude_expsyms
 
15004
 
 
15005
# Symbols that must always be exported.
 
15006
include_expsyms=$lt_include_expsyms
 
15007
 
 
15008
# Commands necessary for linking programs (against libraries) with templates.
 
15009
prelink_cmds=$lt_prelink_cmds
 
15010
 
 
15011
# Commands necessary for finishing linking programs.
 
15012
postlink_cmds=$lt_postlink_cmds
 
15013
 
 
15014
# Specify filename containing input files.
 
15015
file_list_spec=$lt_file_list_spec
 
15016
 
 
15017
# How to hardcode a shared library path into an executable.
 
15018
hardcode_action=$hardcode_action
 
15019
 
 
15020
# ### END LIBTOOL CONFIG
 
15021
 
 
15022
_LT_EOF
 
15023
 
 
15024
  case $host_os in
 
15025
  aix3*)
 
15026
    cat <<\_LT_EOF >> "$cfgfile"
 
15027
# AIX sometimes has problems with the GCC collect2 program.  For some
 
15028
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
15029
# vanish in a puff of smoke.
 
15030
if test "X${COLLECT_NAMES+set}" != Xset; then
 
15031
  COLLECT_NAMES=
 
15032
  export COLLECT_NAMES
 
15033
fi
 
15034
_LT_EOF
 
15035
    ;;
 
15036
  esac
 
15037
 
 
15038
 
 
15039
ltmain="$ac_aux_dir/ltmain.sh"
 
15040
 
 
15041
 
 
15042
  # We use sed instead of cat because bash on DJGPP gets confused if
 
15043
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
15044
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
15045
  # is reportedly fixed, but why not run on old versions too?
 
15046
  sed '$q' "$ltmain" >> "$cfgfile" \
 
15047
     || (rm -f "$cfgfile"; exit 1)
 
15048
 
 
15049
  if test x"$xsi_shell" = xyes; then
 
15050
  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
 
15051
func_dirname ()\
 
15052
{\
 
15053
\    case ${1} in\
 
15054
\      */*) func_dirname_result="${1%/*}${2}" ;;\
 
15055
\      *  ) func_dirname_result="${3}" ;;\
 
15056
\    esac\
 
15057
} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
 
15058
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15059
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15060
test 0 -eq $? || _lt_function_replace_fail=:
 
15061
 
 
15062
 
 
15063
  sed -e '/^func_basename ()$/,/^} # func_basename /c\
 
15064
func_basename ()\
 
15065
{\
 
15066
\    func_basename_result="${1##*/}"\
 
15067
} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
 
15068
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15069
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15070
test 0 -eq $? || _lt_function_replace_fail=:
 
15071
 
 
15072
 
 
15073
  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
 
15074
func_dirname_and_basename ()\
 
15075
{\
 
15076
\    case ${1} in\
 
15077
\      */*) func_dirname_result="${1%/*}${2}" ;;\
 
15078
\      *  ) func_dirname_result="${3}" ;;\
 
15079
\    esac\
 
15080
\    func_basename_result="${1##*/}"\
 
15081
} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
 
15082
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15083
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15084
test 0 -eq $? || _lt_function_replace_fail=:
 
15085
 
 
15086
 
 
15087
  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
 
15088
func_stripname ()\
 
15089
{\
 
15090
\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
 
15091
\    # positional parameters, so assign one to ordinary parameter first.\
 
15092
\    func_stripname_result=${3}\
 
15093
\    func_stripname_result=${func_stripname_result#"${1}"}\
 
15094
\    func_stripname_result=${func_stripname_result%"${2}"}\
 
15095
} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
 
15096
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15097
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15098
test 0 -eq $? || _lt_function_replace_fail=:
 
15099
 
 
15100
 
 
15101
  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
 
15102
func_split_long_opt ()\
 
15103
{\
 
15104
\    func_split_long_opt_name=${1%%=*}\
 
15105
\    func_split_long_opt_arg=${1#*=}\
 
15106
} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
 
15107
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15108
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15109
test 0 -eq $? || _lt_function_replace_fail=:
 
15110
 
 
15111
 
 
15112
  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
 
15113
func_split_short_opt ()\
 
15114
{\
 
15115
\    func_split_short_opt_arg=${1#??}\
 
15116
\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
 
15117
} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
 
15118
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15119
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15120
test 0 -eq $? || _lt_function_replace_fail=:
 
15121
 
 
15122
 
 
15123
  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
 
15124
func_lo2o ()\
 
15125
{\
 
15126
\    case ${1} in\
 
15127
\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
 
15128
\      *)    func_lo2o_result=${1} ;;\
 
15129
\    esac\
 
15130
} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
 
15131
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15132
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15133
test 0 -eq $? || _lt_function_replace_fail=:
 
15134
 
 
15135
 
 
15136
  sed -e '/^func_xform ()$/,/^} # func_xform /c\
 
15137
func_xform ()\
 
15138
{\
 
15139
    func_xform_result=${1%.*}.lo\
 
15140
} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
 
15141
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15142
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15143
test 0 -eq $? || _lt_function_replace_fail=:
 
15144
 
 
15145
 
 
15146
  sed -e '/^func_arith ()$/,/^} # func_arith /c\
 
15147
func_arith ()\
 
15148
{\
 
15149
    func_arith_result=$(( $* ))\
 
15150
} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
 
15151
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15152
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15153
test 0 -eq $? || _lt_function_replace_fail=:
 
15154
 
 
15155
 
 
15156
  sed -e '/^func_len ()$/,/^} # func_len /c\
 
15157
func_len ()\
 
15158
{\
 
15159
    func_len_result=${#1}\
 
15160
} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
 
15161
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15162
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15163
test 0 -eq $? || _lt_function_replace_fail=:
 
15164
 
 
15165
fi
 
15166
 
 
15167
if test x"$lt_shell_append" = xyes; then
 
15168
  sed -e '/^func_append ()$/,/^} # func_append /c\
 
15169
func_append ()\
 
15170
{\
 
15171
    eval "${1}+=\\${2}"\
 
15172
} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
 
15173
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15174
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15175
test 0 -eq $? || _lt_function_replace_fail=:
 
15176
 
 
15177
 
 
15178
  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
 
15179
func_append_quoted ()\
 
15180
{\
 
15181
\    func_quote_for_eval "${2}"\
 
15182
\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
 
15183
} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
 
15184
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15185
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15186
test 0 -eq $? || _lt_function_replace_fail=:
 
15187
 
 
15188
 
 
15189
  # Save a `func_append' function call where possible by direct use of '+='
 
15190
  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
 
15191
    && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15192
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15193
  test 0 -eq $? || _lt_function_replace_fail=:
 
15194
else
 
15195
  # Save a `func_append' function call even when '+=' is not available
 
15196
  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
 
15197
    && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15198
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15199
  test 0 -eq $? || _lt_function_replace_fail=:
 
15200
fi
 
15201
 
 
15202
if test x"$_lt_function_replace_fail" = x":"; then
 
15203
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
 
15204
$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
 
15205
fi
 
15206
 
 
15207
 
 
15208
   mv -f "$cfgfile" "$ofile" ||
 
15209
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
15210
  chmod +x "$ofile"
 
15211
 
 
15212
 ;;
 
15213
 
 
15214
  esac
 
15215
done # for ac_tag
 
15216
 
 
15217
 
 
15218
as_fn_exit 0
 
15219
_ACEOF
 
15220
ac_clean_files=$ac_clean_files_save
 
15221
 
 
15222
test $ac_write_fail = 0 ||
 
15223
  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
 
15224
 
 
15225
 
 
15226
# configure is writing to config.log, and then calls config.status.
 
15227
# config.status does its own redirection, appending to config.log.
 
15228
# Unfortunately, on DOS this fails, as config.log is still kept open
 
15229
# by configure, so config.status won't be able to write to it; its
 
15230
# output is simply discarded.  So we exec the FD to /dev/null,
 
15231
# effectively closing config.log, so it can be properly (re)opened and
 
15232
# appended to by config.status.  When coming back to configure, we
 
15233
# need to make the FD available again.
 
15234
if test "$no_create" != yes; then
 
15235
  ac_cs_success=:
 
15236
  ac_config_status_args=
 
15237
  test "$silent" = yes &&
 
15238
    ac_config_status_args="$ac_config_status_args --quiet"
 
15239
  exec 5>/dev/null
 
15240
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
15241
  exec 5>>config.log
 
15242
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
15243
  # would make configure fail if this is the last instruction.
 
15244
  $ac_cs_success || as_fn_exit 1
 
15245
fi
 
15246
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
 
15247
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
 
15248
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
 
15249
fi
 
15250