~ubuntu-branches/ubuntu/raring/libdvdread/raring-proposed

« back to all changes in this revision

Viewing changes to autom4te.cache/output.0

  • Committer: Package Import Robot
  • Author(s): Vibhav Pant
  • Date: 2012-12-15 17:06:42 UTC
  • mfrom: (1.3.2) (3.2.15 sid)
  • Revision ID: package-import@ubuntu.com-20121215170642-q0h4cc4r2mchkgcl
Tags: 4.2.0+20121016-1ubuntu1
* Merge from Debian unstable (LP: #1090692).  Remaining changes:
  - Re-add missing install-css.sh.
  - debian/control: add Suggests for install-css.sh on debhelper,
    fakeroot, and build-essential.
  - debian/rules: install install-css.sh, leave perms executable.

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 libdvdread 4.2.0.
 
4
@%:@ 
 
5
@%:@ 
 
6
@%:@ Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
 
7
@%:@ 
 
8
@%:@ 
 
9
@%:@ This configure script is free software; the Free Software Foundation
 
10
@%:@ gives unlimited permission to copy, distribute and modify it.
 
11
## -------------------- ##
 
12
## M4sh Initialization. ##
 
13
## -------------------- ##
 
14
 
 
15
# Be more Bourne compatible
 
16
DUALCASE=1; export DUALCASE # for MKS sh
 
17
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
 
18
  emulate sh
 
19
  NULLCMD=:
 
20
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
21
  # is contrary to our usage.  Disable this feature.
 
22
  alias -g '${1+"$@"}'='"$@"'
 
23
  setopt NO_GLOB_SUBST
 
24
else
 
25
  case `(set -o) 2>/dev/null` in @%:@(
 
26
  *posix*) :
 
27
    set -o posix ;; @%:@(
 
28
  *) :
 
29
     ;;
 
30
esac
 
31
fi
 
32
 
 
33
 
 
34
as_nl='
 
35
'
 
36
export as_nl
 
37
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
38
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
39
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
40
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
41
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
42
# but without wasting forks for bash or zsh.
 
43
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
44
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
45
  as_echo='print -r --'
 
46
  as_echo_n='print -rn --'
 
47
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
48
  as_echo='printf %s\n'
 
49
  as_echo_n='printf %s'
 
50
else
 
51
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
52
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
53
    as_echo_n='/usr/ucb/echo -n'
 
54
  else
 
55
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
56
    as_echo_n_body='eval
 
57
      arg=$1;
 
58
      case $arg in @%:@(
 
59
      *"$as_nl"*)
 
60
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
61
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
62
      esac;
 
63
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
64
    '
 
65
    export as_echo_n_body
 
66
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
67
  fi
 
68
  export as_echo_body
 
69
  as_echo='sh -c $as_echo_body as_echo'
 
70
fi
 
71
 
 
72
# The user is always right.
 
73
if test "${PATH_SEPARATOR+set}" != set; then
 
74
  PATH_SEPARATOR=:
 
75
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
76
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
77
      PATH_SEPARATOR=';'
 
78
  }
 
79
fi
 
80
 
 
81
 
 
82
# IFS
 
83
# We need space, tab and new line, in precisely that order.  Quoting is
 
84
# there to prevent editors from complaining about space-tab.
 
85
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
86
# splitting by setting IFS to empty value.)
 
87
IFS=" ""        $as_nl"
 
88
 
 
89
# Find who we are.  Look in the path if we contain no directory separator.
 
90
as_myself=
 
91
case $0 in @%:@((
 
92
  *[\\/]* ) as_myself=$0 ;;
 
93
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
94
for as_dir in $PATH
 
95
do
 
96
  IFS=$as_save_IFS
 
97
  test -z "$as_dir" && as_dir=.
 
98
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
99
  done
 
100
IFS=$as_save_IFS
 
101
 
 
102
     ;;
 
103
esac
 
104
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
105
# in which case we are not to be found in the path.
 
106
if test "x$as_myself" = x; then
 
107
  as_myself=$0
 
108
fi
 
109
if test ! -f "$as_myself"; then
 
110
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
111
  exit 1
 
112
fi
 
113
 
 
114
# Unset variables that we do not need and which cause bugs (e.g. in
 
115
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
116
# suppresses any "Segmentation fault" message there.  '((' could
 
117
# trigger a bug in pdksh 5.2.14.
 
118
for as_var in BASH_ENV ENV MAIL MAILPATH
 
119
do eval test x\${$as_var+set} = xset \
 
120
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 
121
done
 
122
PS1='$ '
 
123
PS2='> '
 
124
PS4='+ '
 
125
 
 
126
# NLS nuisances.
 
127
LC_ALL=C
 
128
export LC_ALL
 
129
LANGUAGE=C
 
130
export LANGUAGE
 
131
 
 
132
# CDPATH.
 
133
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
134
 
 
135
# Use a proper internal environment variable to ensure we don't fall
 
136
  # into an infinite loop, continuously re-executing ourselves.
 
137
  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
 
138
    _as_can_reexec=no; export _as_can_reexec;
 
139
    # We cannot yet assume a decent shell, so we have to provide a
 
140
# neutralization value for shells without unset; and this also
 
141
# works around shells that cannot unset nonexistent variables.
 
142
# Preserve -v and -x to the replacement shell.
 
143
BASH_ENV=/dev/null
 
144
ENV=/dev/null
 
145
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 
146
case $- in @%:@ ((((
 
147
  *v*x* | *x*v* ) as_opts=-vx ;;
 
148
  *v* ) as_opts=-v ;;
 
149
  *x* ) as_opts=-x ;;
 
150
  * ) as_opts= ;;
 
151
esac
 
152
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
 
153
# Admittedly, this is quite paranoid, since all the known shells bail
 
154
# out after a failed `exec'.
 
155
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
 
156
as_fn_exit 255
 
157
  fi
 
158
  # We don't want this to propagate to other subprocesses.
 
159
          { _as_can_reexec=; unset _as_can_reexec;}
 
160
if test "x$CONFIG_SHELL" = x; then
 
161
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
 
162
  emulate sh
 
163
  NULLCMD=:
 
164
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
 
165
  # is contrary to our usage.  Disable this feature.
 
166
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
 
167
  setopt NO_GLOB_SUBST
 
168
else
 
169
  case \`(set -o) 2>/dev/null\` in @%:@(
 
170
  *posix*) :
 
171
    set -o posix ;; @%:@(
 
172
  *) :
 
173
     ;;
 
174
esac
 
175
fi
 
176
"
 
177
  as_required="as_fn_return () { (exit \$1); }
 
178
as_fn_success () { as_fn_return 0; }
 
179
as_fn_failure () { as_fn_return 1; }
 
180
as_fn_ret_success () { return 0; }
 
181
as_fn_ret_failure () { return 1; }
 
182
 
 
183
exitcode=0
 
184
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
 
185
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
 
186
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
 
187
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
 
188
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
 
189
  
 
190
else
 
191
  exitcode=1; echo positional parameters were not saved.
 
192
fi
 
193
test x\$exitcode = x0 || exit 1
 
194
test -x / || exit 1"
 
195
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
 
196
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
 
197
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
 
198
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
 
199
 
 
200
  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
 
201
    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
202
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
 
203
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
 
204
    PATH=/empty FPATH=/empty; export PATH FPATH
 
205
    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
 
206
      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
 
207
test \$(( 1 + 1 )) = 2 || exit 1"
 
208
  if (eval "$as_required") 2>/dev/null; then :
 
209
  as_have_required=yes
 
210
else
 
211
  as_have_required=no
 
212
fi
 
213
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
 
214
  
 
215
else
 
216
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
217
as_found=false
 
218
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
219
do
 
220
  IFS=$as_save_IFS
 
221
  test -z "$as_dir" && as_dir=.
 
222
  as_found=:
 
223
  case $as_dir in @%:@(
 
224
         /*)
 
225
           for as_base in sh bash ksh sh5; do
 
226
             # Try only shells that exist, to save several forks.
 
227
             as_shell=$as_dir/$as_base
 
228
             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 
229
                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
230
  CONFIG_SHELL=$as_shell as_have_required=yes
 
231
                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
232
  break 2
 
233
fi
 
234
fi
 
235
           done;;
 
236
       esac
 
237
  as_found=false
 
238
done
 
239
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
 
240
              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
 
241
  CONFIG_SHELL=$SHELL as_have_required=yes
 
242
fi; }
 
243
IFS=$as_save_IFS
 
244
 
 
245
 
 
246
      if test "x$CONFIG_SHELL" != x; then :
 
247
  export CONFIG_SHELL
 
248
             # We cannot yet assume a decent shell, so we have to provide a
 
249
# neutralization value for shells without unset; and this also
 
250
# works around shells that cannot unset nonexistent variables.
 
251
# Preserve -v and -x to the replacement shell.
 
252
BASH_ENV=/dev/null
 
253
ENV=/dev/null
 
254
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 
255
case $- in @%:@ ((((
 
256
  *v*x* | *x*v* ) as_opts=-vx ;;
 
257
  *v* ) as_opts=-v ;;
 
258
  *x* ) as_opts=-x ;;
 
259
  * ) as_opts= ;;
 
260
esac
 
261
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
 
262
# Admittedly, this is quite paranoid, since all the known shells bail
 
263
# out after a failed `exec'.
 
264
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
 
265
exit 255
 
266
fi
 
267
 
 
268
    if test x$as_have_required = xno; then :
 
269
  $as_echo "$0: This script requires a shell more modern than all"
 
270
  $as_echo "$0: the shells that I found on your system."
 
271
  if test x${ZSH_VERSION+set} = xset ; then
 
272
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
 
273
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
 
274
  else
 
275
    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
 
276
$0: including any error possibly output before this
 
277
$0: message. Then install a modern shell, or manually run
 
278
$0: the script under such a shell if you do have one."
 
279
  fi
 
280
  exit 1
 
281
fi
 
282
fi
 
283
fi
 
284
SHELL=${CONFIG_SHELL-/bin/sh}
 
285
export SHELL
 
286
# Unset more variables known to interfere with behavior of common tools.
 
287
CLICOLOR_FORCE= GREP_OPTIONS=
 
288
unset CLICOLOR_FORCE GREP_OPTIONS
 
289
 
 
290
## --------------------- ##
 
291
## M4sh Shell Functions. ##
 
292
## --------------------- ##
 
293
@%:@ as_fn_unset VAR
 
294
@%:@ ---------------
 
295
@%:@ Portably unset VAR.
 
296
as_fn_unset ()
 
297
{
 
298
  { eval $1=; unset $1;}
 
299
}
 
300
as_unset=as_fn_unset
 
301
 
 
302
@%:@ as_fn_set_status STATUS
 
303
@%:@ -----------------------
 
304
@%:@ Set @S|@? to STATUS, without forking.
 
305
as_fn_set_status ()
 
306
{
 
307
  return $1
 
308
} @%:@ as_fn_set_status
 
309
 
 
310
@%:@ as_fn_exit STATUS
 
311
@%:@ -----------------
 
312
@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
313
as_fn_exit ()
 
314
{
 
315
  set +e
 
316
  as_fn_set_status $1
 
317
  exit $1
 
318
} @%:@ as_fn_exit
 
319
 
 
320
@%:@ as_fn_mkdir_p
 
321
@%:@ -------------
 
322
@%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
 
323
as_fn_mkdir_p ()
 
324
{
 
325
 
 
326
  case $as_dir in #(
 
327
  -*) as_dir=./$as_dir;;
 
328
  esac
 
329
  test -d "$as_dir" || eval $as_mkdir_p || {
 
330
    as_dirs=
 
331
    while :; do
 
332
      case $as_dir in #(
 
333
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
334
      *) as_qdir=$as_dir;;
 
335
      esac
 
336
      as_dirs="'$as_qdir' $as_dirs"
 
337
      as_dir=`$as_dirname -- "$as_dir" ||
 
338
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
339
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
340
         X"$as_dir" : 'X\(//\)$' \| \
 
341
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
342
$as_echo X"$as_dir" |
 
343
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
344
            s//\1/
 
345
            q
 
346
          }
 
347
          /^X\(\/\/\)[^/].*/{
 
348
            s//\1/
 
349
            q
 
350
          }
 
351
          /^X\(\/\/\)$/{
 
352
            s//\1/
 
353
            q
 
354
          }
 
355
          /^X\(\/\).*/{
 
356
            s//\1/
 
357
            q
 
358
          }
 
359
          s/.*/./; q'`
 
360
      test -d "$as_dir" && break
 
361
    done
 
362
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
363
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 
364
 
 
365
 
 
366
} @%:@ as_fn_mkdir_p
 
367
 
 
368
@%:@ as_fn_executable_p FILE
 
369
@%:@ -----------------------
 
370
@%:@ Test if FILE is an executable regular file.
 
371
as_fn_executable_p ()
 
372
{
 
373
  test -f "$1" && test -x "$1"
 
374
} @%:@ as_fn_executable_p
 
375
@%:@ as_fn_append VAR VALUE
 
376
@%:@ ----------------------
 
377
@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
 
378
@%:@ advantage of any shell optimizations that allow amortized linear growth over
 
379
@%:@ repeated appends, instead of the typical quadratic growth present in naive
 
380
@%:@ implementations.
 
381
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
382
  eval 'as_fn_append ()
 
383
  {
 
384
    eval $1+=\$2
 
385
  }'
 
386
else
 
387
  as_fn_append ()
 
388
  {
 
389
    eval $1=\$$1\$2
 
390
  }
 
391
fi # as_fn_append
 
392
 
 
393
@%:@ as_fn_arith ARG...
 
394
@%:@ ------------------
 
395
@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
 
396
@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
 
397
@%:@ must be portable across @S|@(()) and expr.
 
398
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
399
  eval 'as_fn_arith ()
 
400
  {
 
401
    as_val=$(( $* ))
 
402
  }'
 
403
else
 
404
  as_fn_arith ()
 
405
  {
 
406
    as_val=`expr "$@" || test $? -eq 1`
 
407
  }
 
408
fi # as_fn_arith
 
409
 
 
410
 
 
411
@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
 
412
@%:@ ----------------------------------------
 
413
@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
414
@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
415
@%:@ script with STATUS, using 1 if that was 0.
 
416
as_fn_error ()
 
417
{
 
418
  as_status=$1; test $as_status -eq 0 && as_status=1
 
419
  if test "$4"; then
 
420
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
421
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 
422
  fi
 
423
  $as_echo "$as_me: error: $2" >&2
 
424
  as_fn_exit $as_status
 
425
} @%:@ as_fn_error
 
426
 
 
427
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
428
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
429
  as_expr=expr
 
430
else
 
431
  as_expr=false
 
432
fi
 
433
 
 
434
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
435
  as_basename=basename
 
436
else
 
437
  as_basename=false
 
438
fi
 
439
 
 
440
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
441
  as_dirname=dirname
 
442
else
 
443
  as_dirname=false
 
444
fi
 
445
 
 
446
as_me=`$as_basename -- "$0" ||
 
447
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
448
         X"$0" : 'X\(//\)$' \| \
 
449
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
450
$as_echo X/"$0" |
 
451
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
452
            s//\1/
 
453
            q
 
454
          }
 
455
          /^X\/\(\/\/\)$/{
 
456
            s//\1/
 
457
            q
 
458
          }
 
459
          /^X\/\(\/\).*/{
 
460
            s//\1/
 
461
            q
 
462
          }
 
463
          s/.*/./; q'`
 
464
 
 
465
# Avoid depending upon Character Ranges.
 
466
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
467
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
468
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
469
as_cr_digits='0123456789'
 
470
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
471
 
 
472
 
 
473
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
 
474
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
 
475
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
 
476
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
 
477
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
 
478
  sed -n '
 
479
    p
 
480
    /[$]LINENO/=
 
481
  ' <$as_myself |
 
482
    sed '
 
483
      s/[$]LINENO.*/&-/
 
484
      t lineno
 
485
      b
 
486
      :lineno
 
487
      N
 
488
      :loop
 
489
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
490
      t loop
 
491
      s/-\n.*//
 
492
    ' >$as_me.lineno &&
 
493
  chmod +x "$as_me.lineno" ||
 
494
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
 
495
 
 
496
  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
 
497
  # already done that, so ensure we don't try to do so again and fall
 
498
  # in an infinite loop.  This has already happened in practice.
 
499
  _as_can_reexec=no; export _as_can_reexec
 
500
  # Don't try to exec as it changes $[0], causing all sort of problems
 
501
  # (the dirname of $[0] is not the place where we might find the
 
502
  # original and so on.  Autoconf is especially sensitive to this).
 
503
  . "./$as_me.lineno"
 
504
  # Exit status is that of the last command.
 
505
  exit
 
506
}
 
507
 
 
508
ECHO_C= ECHO_N= ECHO_T=
 
509
case `echo -n x` in @%:@(((((
 
510
-n*)
 
511
  case `echo 'xy\c'` in
 
512
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
513
  xy)  ECHO_C='\c';;
 
514
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
515
       ECHO_T=' ';;
 
516
  esac;;
 
517
*)
 
518
  ECHO_N='-n';;
 
519
esac
 
520
 
 
521
rm -f conf$$ conf$$.exe conf$$.file
 
522
if test -d conf$$.dir; then
 
523
  rm -f conf$$.dir/conf$$.file
 
524
else
 
525
  rm -f conf$$.dir
 
526
  mkdir conf$$.dir 2>/dev/null
 
527
fi
 
528
if (echo >conf$$.file) 2>/dev/null; then
 
529
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
530
    as_ln_s='ln -s'
 
531
    # ... but there are two gotchas:
 
532
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
533
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
534
    # In both cases, we have to default to `cp -pR'.
 
535
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
536
      as_ln_s='cp -pR'
 
537
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
538
    as_ln_s=ln
 
539
  else
 
540
    as_ln_s='cp -pR'
 
541
  fi
 
542
else
 
543
  as_ln_s='cp -pR'
 
544
fi
 
545
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
546
rmdir conf$$.dir 2>/dev/null
 
547
 
 
548
if mkdir -p . 2>/dev/null; then
 
549
  as_mkdir_p='mkdir -p "$as_dir"'
 
550
else
 
551
  test -d ./-p && rmdir ./-p
 
552
  as_mkdir_p=false
 
553
fi
 
554
 
 
555
as_test_x='test -x'
 
556
as_executable_p=as_fn_executable_p
 
557
 
 
558
# Sed expression to map a string onto a valid CPP name.
 
559
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
560
 
 
561
# Sed expression to map a string onto a valid variable name.
 
562
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
563
 
 
564
SHELL=${CONFIG_SHELL-/bin/sh}
 
565
 
 
566
 
 
567
test -n "$DJDIR" || exec 7<&0 </dev/null
 
568
exec 6>&1
 
569
 
 
570
# Name of the host.
 
571
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
 
572
# so uname gets run too.
 
573
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
574
 
 
575
#
 
576
# Initializations.
 
577
#
 
578
ac_default_prefix=/usr/local
 
579
ac_clean_files=
 
580
ac_config_libobj_dir=.
 
581
LIB@&t@OBJS=
 
582
cross_compiling=no
 
583
subdirs=
 
584
MFLAGS=
 
585
MAKEFLAGS=
 
586
 
 
587
# Identity of this package.
 
588
PACKAGE_NAME='libdvdread'
 
589
PACKAGE_TARNAME='libdvdread'
 
590
PACKAGE_VERSION='4.2.0'
 
591
PACKAGE_STRING='libdvdread 4.2.0'
 
592
PACKAGE_BUGREPORT=''
 
593
PACKAGE_URL=''
 
594
 
 
595
ac_unique_file="src/dvdread/dvd_reader.h"
 
596
# Factoring default headers for most tests.
 
597
ac_includes_default="\
 
598
#include <stdio.h>
 
599
#ifdef HAVE_SYS_TYPES_H
 
600
# include <sys/types.h>
 
601
#endif
 
602
#ifdef HAVE_SYS_STAT_H
 
603
# include <sys/stat.h>
 
604
#endif
 
605
#ifdef STDC_HEADERS
 
606
# include <stdlib.h>
 
607
# include <stddef.h>
 
608
#else
 
609
# ifdef HAVE_STDLIB_H
 
610
#  include <stdlib.h>
 
611
# endif
 
612
#endif
 
613
#ifdef HAVE_STRING_H
 
614
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 
615
#  include <memory.h>
 
616
# endif
 
617
# include <string.h>
 
618
#endif
 
619
#ifdef HAVE_STRINGS_H
 
620
# include <strings.h>
 
621
#endif
 
622
#ifdef HAVE_INTTYPES_H
 
623
# include <inttypes.h>
 
624
#endif
 
625
#ifdef HAVE_STDINT_H
 
626
# include <stdint.h>
 
627
#endif
 
628
#ifdef HAVE_UNISTD_H
 
629
# include <unistd.h>
 
630
#endif"
 
631
 
 
632
ac_subst_vars='am__EXEEXT_FALSE
 
633
am__EXEEXT_TRUE
 
634
LTLIBOBJS
 
635
LIB@&t@OBJS
 
636
INCLUDES
 
637
DOXYGEN
 
638
DEBUG_CFLAGS
 
639
CSS_LIBS
 
640
DYNAMIC_LD_LIBS
 
641
STATIC
 
642
LIBTOOL_DEPS
 
643
CPP
 
644
OTOOL64
 
645
OTOOL
 
646
LIPO
 
647
NMEDIT
 
648
DSYMUTIL
 
649
MANIFEST_TOOL
 
650
RANLIB
 
651
ac_ct_AR
 
652
AR
 
653
DLLTOOL
 
654
OBJDUMP
 
655
NM
 
656
ac_ct_DUMPBIN
 
657
DUMPBIN
 
658
LD
 
659
FGREP
 
660
EGREP
 
661
GREP
 
662
SED
 
663
LIBTOOL
 
664
LN_S
 
665
am__fastdepCC_FALSE
 
666
am__fastdepCC_TRUE
 
667
CCDEPMODE
 
668
am__nodep
 
669
AMDEPBACKSLASH
 
670
AMDEP_FALSE
 
671
AMDEP_TRUE
 
672
am__quote
 
673
am__include
 
674
DEPDIR
 
675
OBJEXT
 
676
EXEEXT
 
677
ac_ct_CC
 
678
CPPFLAGS
 
679
LDFLAGS
 
680
CFLAGS
 
681
CC
 
682
DVDREAD_LT_REVISION
 
683
DVDREAD_LT_AGE
 
684
DVDREAD_LT_CURRENT
 
685
DVDREAD_SUB
 
686
DVDREAD_MINOR
 
687
DVDREAD_MAJOR
 
688
host_os
 
689
host_vendor
 
690
host_cpu
 
691
host
 
692
build_os
 
693
build_vendor
 
694
build_cpu
 
695
build
 
696
am__untar
 
697
am__tar
 
698
AMTAR
 
699
am__leading_dot
 
700
SET_MAKE
 
701
AWK
 
702
mkdir_p
 
703
MKDIR_P
 
704
INSTALL_STRIP_PROGRAM
 
705
STRIP
 
706
install_sh
 
707
MAKEINFO
 
708
AUTOHEADER
 
709
AUTOMAKE
 
710
AUTOCONF
 
711
ACLOCAL
 
712
VERSION
 
713
PACKAGE
 
714
CYGPATH_W
 
715
am__isrc
 
716
INSTALL_DATA
 
717
INSTALL_SCRIPT
 
718
INSTALL_PROGRAM
 
719
target_alias
 
720
host_alias
 
721
build_alias
 
722
LIBS
 
723
ECHO_T
 
724
ECHO_N
 
725
ECHO_C
 
726
DEFS
 
727
mandir
 
728
localedir
 
729
libdir
 
730
psdir
 
731
pdfdir
 
732
dvidir
 
733
htmldir
 
734
infodir
 
735
docdir
 
736
oldincludedir
 
737
includedir
 
738
localstatedir
 
739
sharedstatedir
 
740
sysconfdir
 
741
datadir
 
742
datarootdir
 
743
libexecdir
 
744
sbindir
 
745
bindir
 
746
program_transform_name
 
747
prefix
 
748
exec_prefix
 
749
PACKAGE_URL
 
750
PACKAGE_BUGREPORT
 
751
PACKAGE_STRING
 
752
PACKAGE_VERSION
 
753
PACKAGE_TARNAME
 
754
PACKAGE_NAME
 
755
PATH_SEPARATOR
 
756
SHELL'
 
757
ac_subst_files=''
 
758
ac_user_opts='
 
759
enable_option_checking
 
760
enable_dependency_tracking
 
761
enable_static
 
762
enable_shared
 
763
with_pic
 
764
enable_fast_install
 
765
with_gnu_ld
 
766
with_sysroot
 
767
enable_libtool_lock
 
768
enable_libdvdcss
 
769
enable_dlfcn
 
770
'
 
771
      ac_precious_vars='build_alias
 
772
host_alias
 
773
target_alias
 
774
CC
 
775
CFLAGS
 
776
LDFLAGS
 
777
LIBS
 
778
CPPFLAGS
 
779
CPP'
 
780
 
 
781
 
 
782
# Initialize some variables set by options.
 
783
ac_init_help=
 
784
ac_init_version=false
 
785
ac_unrecognized_opts=
 
786
ac_unrecognized_sep=
 
787
# The variables have the same names as the options, with
 
788
# dashes changed to underlines.
 
789
cache_file=/dev/null
 
790
exec_prefix=NONE
 
791
no_create=
 
792
no_recursion=
 
793
prefix=NONE
 
794
program_prefix=NONE
 
795
program_suffix=NONE
 
796
program_transform_name=s,x,x,
 
797
silent=
 
798
site=
 
799
srcdir=
 
800
verbose=
 
801
x_includes=NONE
 
802
x_libraries=NONE
 
803
 
 
804
# Installation directory options.
 
805
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
806
# and all the variables that are supposed to be based on exec_prefix
 
807
# by default will actually change.
 
808
# Use braces instead of parens because sh, perl, etc. also accept them.
 
809
# (The list follows the same order as the GNU Coding Standards.)
 
810
bindir='${exec_prefix}/bin'
 
811
sbindir='${exec_prefix}/sbin'
 
812
libexecdir='${exec_prefix}/libexec'
 
813
datarootdir='${prefix}/share'
 
814
datadir='${datarootdir}'
 
815
sysconfdir='${prefix}/etc'
 
816
sharedstatedir='${prefix}/com'
 
817
localstatedir='${prefix}/var'
 
818
includedir='${prefix}/include'
 
819
oldincludedir='/usr/include'
 
820
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
 
821
infodir='${datarootdir}/info'
 
822
htmldir='${docdir}'
 
823
dvidir='${docdir}'
 
824
pdfdir='${docdir}'
 
825
psdir='${docdir}'
 
826
libdir='${exec_prefix}/lib'
 
827
localedir='${datarootdir}/locale'
 
828
mandir='${datarootdir}/man'
 
829
 
 
830
ac_prev=
 
831
ac_dashdash=
 
832
for ac_option
 
833
do
 
834
  # If the previous option needs an argument, assign it.
 
835
  if test -n "$ac_prev"; then
 
836
    eval $ac_prev=\$ac_option
 
837
    ac_prev=
 
838
    continue
 
839
  fi
 
840
 
 
841
  case $ac_option in
 
842
  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
843
  *=)   ac_optarg= ;;
 
844
  *)    ac_optarg=yes ;;
 
845
  esac
 
846
 
 
847
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
848
 
 
849
  case $ac_dashdash$ac_option in
 
850
  --)
 
851
    ac_dashdash=yes ;;
 
852
 
 
853
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
854
    ac_prev=bindir ;;
 
855
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
856
    bindir=$ac_optarg ;;
 
857
 
 
858
  -build | --build | --buil | --bui | --bu)
 
859
    ac_prev=build_alias ;;
 
860
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
861
    build_alias=$ac_optarg ;;
 
862
 
 
863
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
864
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
865
    ac_prev=cache_file ;;
 
866
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
867
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
868
    cache_file=$ac_optarg ;;
 
869
 
 
870
  --config-cache | -C)
 
871
    cache_file=config.cache ;;
 
872
 
 
873
  -datadir | --datadir | --datadi | --datad)
 
874
    ac_prev=datadir ;;
 
875
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
 
876
    datadir=$ac_optarg ;;
 
877
 
 
878
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 
879
  | --dataroo | --dataro | --datar)
 
880
    ac_prev=datarootdir ;;
 
881
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 
882
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 
883
    datarootdir=$ac_optarg ;;
 
884
 
 
885
  -disable-* | --disable-*)
 
886
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
887
    # Reject names that are not valid shell variable names.
 
888
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
889
      as_fn_error $? "invalid feature name: $ac_useropt"
 
890
    ac_useropt_orig=$ac_useropt
 
891
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
892
    case $ac_user_opts in
 
893
      *"
 
894
"enable_$ac_useropt"
 
895
"*) ;;
 
896
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
 
897
         ac_unrecognized_sep=', ';;
 
898
    esac
 
899
    eval enable_$ac_useropt=no ;;
 
900
 
 
901
  -docdir | --docdir | --docdi | --doc | --do)
 
902
    ac_prev=docdir ;;
 
903
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 
904
    docdir=$ac_optarg ;;
 
905
 
 
906
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 
907
    ac_prev=dvidir ;;
 
908
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 
909
    dvidir=$ac_optarg ;;
 
910
 
 
911
  -enable-* | --enable-*)
 
912
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
913
    # Reject names that are not valid shell variable names.
 
914
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
915
      as_fn_error $? "invalid feature name: $ac_useropt"
 
916
    ac_useropt_orig=$ac_useropt
 
917
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
918
    case $ac_user_opts in
 
919
      *"
 
920
"enable_$ac_useropt"
 
921
"*) ;;
 
922
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
 
923
         ac_unrecognized_sep=', ';;
 
924
    esac
 
925
    eval enable_$ac_useropt=\$ac_optarg ;;
 
926
 
 
927
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
928
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
929
  | --exec | --exe | --ex)
 
930
    ac_prev=exec_prefix ;;
 
931
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
932
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
933
  | --exec=* | --exe=* | --ex=*)
 
934
    exec_prefix=$ac_optarg ;;
 
935
 
 
936
  -gas | --gas | --ga | --g)
 
937
    # Obsolete; use --with-gas.
 
938
    with_gas=yes ;;
 
939
 
 
940
  -help | --help | --hel | --he | -h)
 
941
    ac_init_help=long ;;
 
942
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
943
    ac_init_help=recursive ;;
 
944
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
945
    ac_init_help=short ;;
 
946
 
 
947
  -host | --host | --hos | --ho)
 
948
    ac_prev=host_alias ;;
 
949
  -host=* | --host=* | --hos=* | --ho=*)
 
950
    host_alias=$ac_optarg ;;
 
951
 
 
952
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 
953
    ac_prev=htmldir ;;
 
954
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 
955
  | --ht=*)
 
956
    htmldir=$ac_optarg ;;
 
957
 
 
958
  -includedir | --includedir | --includedi | --included | --include \
 
959
  | --includ | --inclu | --incl | --inc)
 
960
    ac_prev=includedir ;;
 
961
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
962
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
963
    includedir=$ac_optarg ;;
 
964
 
 
965
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
966
    ac_prev=infodir ;;
 
967
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
968
    infodir=$ac_optarg ;;
 
969
 
 
970
  -libdir | --libdir | --libdi | --libd)
 
971
    ac_prev=libdir ;;
 
972
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
973
    libdir=$ac_optarg ;;
 
974
 
 
975
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
976
  | --libexe | --libex | --libe)
 
977
    ac_prev=libexecdir ;;
 
978
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
979
  | --libexe=* | --libex=* | --libe=*)
 
980
    libexecdir=$ac_optarg ;;
 
981
 
 
982
  -localedir | --localedir | --localedi | --localed | --locale)
 
983
    ac_prev=localedir ;;
 
984
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 
985
    localedir=$ac_optarg ;;
 
986
 
 
987
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
988
  | --localstate | --localstat | --localsta | --localst | --locals)
 
989
    ac_prev=localstatedir ;;
 
990
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
991
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
 
992
    localstatedir=$ac_optarg ;;
 
993
 
 
994
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
995
    ac_prev=mandir ;;
 
996
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
997
    mandir=$ac_optarg ;;
 
998
 
 
999
  -nfp | --nfp | --nf)
 
1000
    # Obsolete; use --without-fp.
 
1001
    with_fp=no ;;
 
1002
 
 
1003
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
1004
  | --no-cr | --no-c | -n)
 
1005
    no_create=yes ;;
 
1006
 
 
1007
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
1008
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
1009
    no_recursion=yes ;;
 
1010
 
 
1011
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
1012
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
1013
  | --oldin | --oldi | --old | --ol | --o)
 
1014
    ac_prev=oldincludedir ;;
 
1015
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
1016
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
1017
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
1018
    oldincludedir=$ac_optarg ;;
 
1019
 
 
1020
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
1021
    ac_prev=prefix ;;
 
1022
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
1023
    prefix=$ac_optarg ;;
 
1024
 
 
1025
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
1026
  | --program-pre | --program-pr | --program-p)
 
1027
    ac_prev=program_prefix ;;
 
1028
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
1029
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
1030
    program_prefix=$ac_optarg ;;
 
1031
 
 
1032
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
1033
  | --program-suf | --program-su | --program-s)
 
1034
    ac_prev=program_suffix ;;
 
1035
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
1036
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
1037
    program_suffix=$ac_optarg ;;
 
1038
 
 
1039
  -program-transform-name | --program-transform-name \
 
1040
  | --program-transform-nam | --program-transform-na \
 
1041
  | --program-transform-n | --program-transform- \
 
1042
  | --program-transform | --program-transfor \
 
1043
  | --program-transfo | --program-transf \
 
1044
  | --program-trans | --program-tran \
 
1045
  | --progr-tra | --program-tr | --program-t)
 
1046
    ac_prev=program_transform_name ;;
 
1047
  -program-transform-name=* | --program-transform-name=* \
 
1048
  | --program-transform-nam=* | --program-transform-na=* \
 
1049
  | --program-transform-n=* | --program-transform-=* \
 
1050
  | --program-transform=* | --program-transfor=* \
 
1051
  | --program-transfo=* | --program-transf=* \
 
1052
  | --program-trans=* | --program-tran=* \
 
1053
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
1054
    program_transform_name=$ac_optarg ;;
 
1055
 
 
1056
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 
1057
    ac_prev=pdfdir ;;
 
1058
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 
1059
    pdfdir=$ac_optarg ;;
 
1060
 
 
1061
  -psdir | --psdir | --psdi | --psd | --ps)
 
1062
    ac_prev=psdir ;;
 
1063
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 
1064
    psdir=$ac_optarg ;;
 
1065
 
 
1066
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1067
  | -silent | --silent | --silen | --sile | --sil)
 
1068
    silent=yes ;;
 
1069
 
 
1070
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
1071
    ac_prev=sbindir ;;
 
1072
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
1073
  | --sbi=* | --sb=*)
 
1074
    sbindir=$ac_optarg ;;
 
1075
 
 
1076
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
1077
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
1078
  | --sharedst | --shareds | --shared | --share | --shar \
 
1079
  | --sha | --sh)
 
1080
    ac_prev=sharedstatedir ;;
 
1081
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
1082
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
1083
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
1084
  | --sha=* | --sh=*)
 
1085
    sharedstatedir=$ac_optarg ;;
 
1086
 
 
1087
  -site | --site | --sit)
 
1088
    ac_prev=site ;;
 
1089
  -site=* | --site=* | --sit=*)
 
1090
    site=$ac_optarg ;;
 
1091
 
 
1092
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
1093
    ac_prev=srcdir ;;
 
1094
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
1095
    srcdir=$ac_optarg ;;
 
1096
 
 
1097
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
1098
  | --syscon | --sysco | --sysc | --sys | --sy)
 
1099
    ac_prev=sysconfdir ;;
 
1100
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
1101
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
1102
    sysconfdir=$ac_optarg ;;
 
1103
 
 
1104
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
1105
    ac_prev=target_alias ;;
 
1106
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
1107
    target_alias=$ac_optarg ;;
 
1108
 
 
1109
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
1110
    verbose=yes ;;
 
1111
 
 
1112
  -version | --version | --versio | --versi | --vers | -V)
 
1113
    ac_init_version=: ;;
 
1114
 
 
1115
  -with-* | --with-*)
 
1116
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
1117
    # Reject names that are not valid shell variable names.
 
1118
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1119
      as_fn_error $? "invalid package name: $ac_useropt"
 
1120
    ac_useropt_orig=$ac_useropt
 
1121
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1122
    case $ac_user_opts in
 
1123
      *"
 
1124
"with_$ac_useropt"
 
1125
"*) ;;
 
1126
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
 
1127
         ac_unrecognized_sep=', ';;
 
1128
    esac
 
1129
    eval with_$ac_useropt=\$ac_optarg ;;
 
1130
 
 
1131
  -without-* | --without-*)
 
1132
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
1133
    # Reject names that are not valid shell variable names.
 
1134
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1135
      as_fn_error $? "invalid package name: $ac_useropt"
 
1136
    ac_useropt_orig=$ac_useropt
 
1137
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1138
    case $ac_user_opts in
 
1139
      *"
 
1140
"with_$ac_useropt"
 
1141
"*) ;;
 
1142
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
 
1143
         ac_unrecognized_sep=', ';;
 
1144
    esac
 
1145
    eval with_$ac_useropt=no ;;
 
1146
 
 
1147
  --x)
 
1148
    # Obsolete; use --with-x.
 
1149
    with_x=yes ;;
 
1150
 
 
1151
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
1152
  | --x-incl | --x-inc | --x-in | --x-i)
 
1153
    ac_prev=x_includes ;;
 
1154
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
1155
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
1156
    x_includes=$ac_optarg ;;
 
1157
 
 
1158
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
1159
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
1160
    ac_prev=x_libraries ;;
 
1161
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
1162
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
1163
    x_libraries=$ac_optarg ;;
 
1164
 
 
1165
  -*) as_fn_error $? "unrecognized option: \`$ac_option'
 
1166
Try \`$0 --help' for more information"
 
1167
    ;;
 
1168
 
 
1169
  *=*)
 
1170
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
1171
    # Reject names that are not valid shell variable names.
 
1172
    case $ac_envvar in #(
 
1173
      '' | [0-9]* | *[!_$as_cr_alnum]* )
 
1174
      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
 
1175
    esac
 
1176
    eval $ac_envvar=\$ac_optarg
 
1177
    export $ac_envvar ;;
 
1178
 
 
1179
  *)
 
1180
    # FIXME: should be removed in autoconf 3.0.
 
1181
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
1182
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1183
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
1184
    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
 
1185
    ;;
 
1186
 
 
1187
  esac
 
1188
done
 
1189
 
 
1190
if test -n "$ac_prev"; then
 
1191
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
1192
  as_fn_error $? "missing argument to $ac_option"
 
1193
fi
 
1194
 
 
1195
if test -n "$ac_unrecognized_opts"; then
 
1196
  case $enable_option_checking in
 
1197
    no) ;;
 
1198
    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
 
1199
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
 
1200
  esac
 
1201
fi
 
1202
 
 
1203
# Check all directory arguments for consistency.
 
1204
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 
1205
                datadir sysconfdir sharedstatedir localstatedir includedir \
 
1206
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 
1207
                libdir localedir mandir
 
1208
do
 
1209
  eval ac_val=\$$ac_var
 
1210
  # Remove trailing slashes.
 
1211
  case $ac_val in
 
1212
    */ )
 
1213
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
 
1214
      eval $ac_var=\$ac_val;;
 
1215
  esac
 
1216
  # Be sure to have absolute directory names.
 
1217
  case $ac_val in
 
1218
    [\\/$]* | ?:[\\/]* )  continue;;
 
1219
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 
1220
  esac
 
1221
  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
 
1222
done
 
1223
 
 
1224
# There might be people who depend on the old broken behavior: `$host'
 
1225
# used to hold the argument of --host etc.
 
1226
# FIXME: To remove some day.
 
1227
build=$build_alias
 
1228
host=$host_alias
 
1229
target=$target_alias
 
1230
 
 
1231
# FIXME: To remove some day.
 
1232
if test "x$host_alias" != x; then
 
1233
  if test "x$build_alias" = x; then
 
1234
    cross_compiling=maybe
 
1235
  elif test "x$build_alias" != "x$host_alias"; then
 
1236
    cross_compiling=yes
 
1237
  fi
 
1238
fi
 
1239
 
 
1240
ac_tool_prefix=
 
1241
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
1242
 
 
1243
test "$silent" = yes && exec 6>/dev/null
 
1244
 
 
1245
 
 
1246
ac_pwd=`pwd` && test -n "$ac_pwd" &&
 
1247
ac_ls_di=`ls -di .` &&
 
1248
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 
1249
  as_fn_error $? "working directory cannot be determined"
 
1250
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 
1251
  as_fn_error $? "pwd does not report name of working directory"
 
1252
 
 
1253
 
 
1254
# Find the source files, if location was not specified.
 
1255
if test -z "$srcdir"; then
 
1256
  ac_srcdir_defaulted=yes
 
1257
  # Try the directory containing this script, then the parent directory.
 
1258
  ac_confdir=`$as_dirname -- "$as_myself" ||
 
1259
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
1260
         X"$as_myself" : 'X\(//\)[^/]' \| \
 
1261
         X"$as_myself" : 'X\(//\)$' \| \
 
1262
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
 
1263
$as_echo X"$as_myself" |
 
1264
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
1265
            s//\1/
 
1266
            q
 
1267
          }
 
1268
          /^X\(\/\/\)[^/].*/{
 
1269
            s//\1/
 
1270
            q
 
1271
          }
 
1272
          /^X\(\/\/\)$/{
 
1273
            s//\1/
 
1274
            q
 
1275
          }
 
1276
          /^X\(\/\).*/{
 
1277
            s//\1/
 
1278
            q
 
1279
          }
 
1280
          s/.*/./; q'`
 
1281
  srcdir=$ac_confdir
 
1282
  if test ! -r "$srcdir/$ac_unique_file"; then
 
1283
    srcdir=..
 
1284
  fi
 
1285
else
 
1286
  ac_srcdir_defaulted=no
 
1287
fi
 
1288
if test ! -r "$srcdir/$ac_unique_file"; then
 
1289
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 
1290
  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
 
1291
fi
 
1292
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 
1293
ac_abs_confdir=`(
 
1294
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
 
1295
        pwd)`
 
1296
# When building in place, set srcdir=.
 
1297
if test "$ac_abs_confdir" = "$ac_pwd"; then
 
1298
  srcdir=.
 
1299
fi
 
1300
# Remove unnecessary trailing slashes from srcdir.
 
1301
# Double slashes in file names in object file debugging info
 
1302
# mess up M-x gdb in Emacs.
 
1303
case $srcdir in
 
1304
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 
1305
esac
 
1306
for ac_var in $ac_precious_vars; do
 
1307
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
 
1308
  eval ac_env_${ac_var}_value=\$${ac_var}
 
1309
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 
1310
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
 
1311
done
 
1312
 
 
1313
#
 
1314
# Report the --help message.
 
1315
#
 
1316
if test "$ac_init_help" = "long"; then
 
1317
  # Omit some internal or obsolete options to make the list less imposing.
 
1318
  # This message is too long to be a string in the A/UX 3.1 sh.
 
1319
  cat <<_ACEOF
 
1320
\`configure' configures libdvdread 4.2.0 to adapt to many kinds of systems.
 
1321
 
 
1322
Usage: $0 [OPTION]... [VAR=VALUE]...
 
1323
 
 
1324
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
1325
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
1326
 
 
1327
Defaults for the options are specified in brackets.
 
1328
 
 
1329
Configuration:
 
1330
  -h, --help              display this help and exit
 
1331
      --help=short        display options specific to this package
 
1332
      --help=recursive    display the short help of all the included packages
 
1333
  -V, --version           display version information and exit
 
1334
  -q, --quiet, --silent   do not print \`checking ...' messages
 
1335
      --cache-file=FILE   cache test results in FILE [disabled]
 
1336
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
1337
  -n, --no-create         do not create output files
 
1338
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
1339
 
 
1340
Installation directories:
 
1341
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
1342
                          @<:@@S|@ac_default_prefix@:>@
 
1343
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
1344
                          @<:@PREFIX@:>@
 
1345
 
 
1346
By default, \`make install' will install all the files in
 
1347
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
1348
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
1349
for instance \`--prefix=\$HOME'.
 
1350
 
 
1351
For better control, use the options below.
 
1352
 
 
1353
Fine tuning of the installation directories:
 
1354
  --bindir=DIR            user executables [EPREFIX/bin]
 
1355
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
 
1356
  --libexecdir=DIR        program executables [EPREFIX/libexec]
 
1357
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
 
1358
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
 
1359
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
 
1360
  --libdir=DIR            object code libraries [EPREFIX/lib]
 
1361
  --includedir=DIR        C header files [PREFIX/include]
 
1362
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
 
1363
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
 
1364
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
 
1365
  --infodir=DIR           info documentation [DATAROOTDIR/info]
 
1366
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
 
1367
  --mandir=DIR            man documentation [DATAROOTDIR/man]
 
1368
  --docdir=DIR            documentation root @<:@DATAROOTDIR/doc/libdvdread@:>@
 
1369
  --htmldir=DIR           html documentation [DOCDIR]
 
1370
  --dvidir=DIR            dvi documentation [DOCDIR]
 
1371
  --pdfdir=DIR            pdf documentation [DOCDIR]
 
1372
  --psdir=DIR             ps documentation [DOCDIR]
 
1373
_ACEOF
 
1374
 
 
1375
  cat <<\_ACEOF
 
1376
 
 
1377
Program names:
 
1378
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
1379
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
1380
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
1381
 
 
1382
System types:
 
1383
  --build=BUILD     configure for building on BUILD [guessed]
 
1384
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1385
_ACEOF
 
1386
fi
 
1387
 
 
1388
if test -n "$ac_init_help"; then
 
1389
  case $ac_init_help in
 
1390
     short | recursive ) echo "Configuration of libdvdread 4.2.0:";;
 
1391
   esac
 
1392
  cat <<\_ACEOF
 
1393
 
 
1394
Optional Features:
 
1395
  --disable-option-checking  ignore unrecognized --enable/--with options
 
1396
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1397
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1398
  --disable-dependency-tracking  speeds up one-time build
 
1399
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1400
  --enable-static@<:@=PKGS@:>@  build static libraries @<:@default=no@:>@
 
1401
  --enable-shared@<:@=PKGS@:>@  build shared libraries @<:@default=yes@:>@
 
1402
  --enable-fast-install@<:@=PKGS@:>@ 
 
1403
                          optimize for fast installation @<:@default=yes@:>@
 
1404
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1405
  --enable-libdvdcss    force linking against libdvdcss
 
1406
  --enable-dlfcn          use builtin dlfcn for mingw (default is auto)
 
1407
 
 
1408
Optional Packages:
 
1409
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1410
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1411
  --with-pic@<:@=PKGS@:>@       try to use only PIC/non-PIC objects @<:@default=use
 
1412
                          both@:>@
 
1413
  --with-gnu-ld           assume the C compiler uses GNU ld @<:@default=no@:>@
 
1414
  --with-sysroot=DIR Search for dependent libraries within DIR
 
1415
                        (or the compiler's sysroot if not specified).
 
1416
 
 
1417
Some influential environment variables:
 
1418
  CC          C compiler command
 
1419
  CFLAGS      C compiler flags
 
1420
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1421
              nonstandard directory <lib dir>
 
1422
  LIBS        libraries to pass to the linker, e.g. -l<library>
 
1423
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
 
1424
              you have headers in a nonstandard directory <include dir>
 
1425
  CPP         C preprocessor
 
1426
 
 
1427
Use these variables to override the choices made by `configure' or to help
 
1428
it to find libraries and programs with nonstandard names/locations.
 
1429
 
 
1430
Report bugs to the package provider.
 
1431
_ACEOF
 
1432
ac_status=$?
 
1433
fi
 
1434
 
 
1435
if test "$ac_init_help" = "recursive"; then
 
1436
  # If there are subdirs, report their specific --help.
 
1437
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1438
    test -d "$ac_dir" ||
 
1439
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
 
1440
      continue
 
1441
    ac_builddir=.
 
1442
 
 
1443
case "$ac_dir" in
 
1444
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1445
*)
 
1446
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
1447
  # A ".." for each directory in $ac_dir_suffix.
 
1448
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
1449
  case $ac_top_builddir_sub in
 
1450
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1451
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
1452
  esac ;;
 
1453
esac
 
1454
ac_abs_top_builddir=$ac_pwd
 
1455
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
1456
# for backward compatibility:
 
1457
ac_top_builddir=$ac_top_build_prefix
 
1458
 
 
1459
case $srcdir in
 
1460
  .)  # We are building in place.
 
1461
    ac_srcdir=.
 
1462
    ac_top_srcdir=$ac_top_builddir_sub
 
1463
    ac_abs_top_srcdir=$ac_pwd ;;
 
1464
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
1465
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1466
    ac_top_srcdir=$srcdir
 
1467
    ac_abs_top_srcdir=$srcdir ;;
 
1468
  *) # Relative name.
 
1469
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
1470
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
1471
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
1472
esac
 
1473
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
1474
 
 
1475
    cd "$ac_dir" || { ac_status=$?; continue; }
 
1476
    # Check for guested configure.
 
1477
    if test -f "$ac_srcdir/configure.gnu"; then
 
1478
      echo &&
 
1479
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 
1480
    elif test -f "$ac_srcdir/configure"; then
 
1481
      echo &&
 
1482
      $SHELL "$ac_srcdir/configure" --help=recursive
 
1483
    else
 
1484
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1485
    fi || ac_status=$?
 
1486
    cd "$ac_pwd" || { ac_status=$?; break; }
 
1487
  done
 
1488
fi
 
1489
 
 
1490
test -n "$ac_init_help" && exit $ac_status
 
1491
if $ac_init_version; then
 
1492
  cat <<\_ACEOF
 
1493
libdvdread configure 4.2.0
 
1494
generated by GNU Autoconf 2.69
 
1495
 
 
1496
Copyright (C) 2012 Free Software Foundation, Inc.
 
1497
This configure script is free software; the Free Software Foundation
 
1498
gives unlimited permission to copy, distribute and modify it.
 
1499
_ACEOF
 
1500
  exit
 
1501
fi
 
1502
 
 
1503
## ------------------------ ##
 
1504
## Autoconf initialization. ##
 
1505
## ------------------------ ##
 
1506
 
 
1507
@%:@ ac_fn_c_try_compile LINENO
 
1508
@%:@ --------------------------
 
1509
@%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
 
1510
ac_fn_c_try_compile ()
 
1511
{
 
1512
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1513
  rm -f conftest.$ac_objext
 
1514
  if { { ac_try="$ac_compile"
 
1515
case "(($ac_try" in
 
1516
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1517
  *) ac_try_echo=$ac_try;;
 
1518
esac
 
1519
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1520
$as_echo "$ac_try_echo"; } >&5
 
1521
  (eval "$ac_compile") 2>conftest.err
 
1522
  ac_status=$?
 
1523
  if test -s conftest.err; then
 
1524
    grep -v '^ *+' conftest.err >conftest.er1
 
1525
    cat conftest.er1 >&5
 
1526
    mv -f conftest.er1 conftest.err
 
1527
  fi
 
1528
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1529
  test $ac_status = 0; } && {
 
1530
         test -z "$ac_c_werror_flag" ||
 
1531
         test ! -s conftest.err
 
1532
       } && test -s conftest.$ac_objext; then :
 
1533
  ac_retval=0
 
1534
else
 
1535
  $as_echo "$as_me: failed program was:" >&5
 
1536
sed 's/^/| /' conftest.$ac_ext >&5
 
1537
 
 
1538
        ac_retval=1
 
1539
fi
 
1540
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1541
  as_fn_set_status $ac_retval
 
1542
 
 
1543
} @%:@ ac_fn_c_try_compile
 
1544
 
 
1545
@%:@ ac_fn_c_try_link LINENO
 
1546
@%:@ -----------------------
 
1547
@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
 
1548
ac_fn_c_try_link ()
 
1549
{
 
1550
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1551
  rm -f conftest.$ac_objext conftest$ac_exeext
 
1552
  if { { ac_try="$ac_link"
 
1553
case "(($ac_try" in
 
1554
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1555
  *) ac_try_echo=$ac_try;;
 
1556
esac
 
1557
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1558
$as_echo "$ac_try_echo"; } >&5
 
1559
  (eval "$ac_link") 2>conftest.err
 
1560
  ac_status=$?
 
1561
  if test -s conftest.err; then
 
1562
    grep -v '^ *+' conftest.err >conftest.er1
 
1563
    cat conftest.er1 >&5
 
1564
    mv -f conftest.er1 conftest.err
 
1565
  fi
 
1566
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1567
  test $ac_status = 0; } && {
 
1568
         test -z "$ac_c_werror_flag" ||
 
1569
         test ! -s conftest.err
 
1570
       } && test -s conftest$ac_exeext && {
 
1571
         test "$cross_compiling" = yes ||
 
1572
         test -x conftest$ac_exeext
 
1573
       }; then :
 
1574
  ac_retval=0
 
1575
else
 
1576
  $as_echo "$as_me: failed program was:" >&5
 
1577
sed 's/^/| /' conftest.$ac_ext >&5
 
1578
 
 
1579
        ac_retval=1
 
1580
fi
 
1581
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 
1582
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 
1583
  # interfere with the next link command; also delete a directory that is
 
1584
  # left behind by Apple's compiler.  We do this before executing the actions.
 
1585
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1586
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1587
  as_fn_set_status $ac_retval
 
1588
 
 
1589
} @%:@ ac_fn_c_try_link
 
1590
 
 
1591
@%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
 
1592
@%:@ -------------------------------------------------------
 
1593
@%:@ Tests whether HEADER exists and can be compiled using the include files in
 
1594
@%:@ INCLUDES, setting the cache variable VAR accordingly.
 
1595
ac_fn_c_check_header_compile ()
 
1596
{
 
1597
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1598
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1599
$as_echo_n "checking for $2... " >&6; }
 
1600
if eval \${$3+:} false; then :
 
1601
  $as_echo_n "(cached) " >&6
 
1602
else
 
1603
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1604
/* end confdefs.h.  */
 
1605
$4
 
1606
@%:@include <$2>
 
1607
_ACEOF
 
1608
if ac_fn_c_try_compile "$LINENO"; then :
 
1609
  eval "$3=yes"
 
1610
else
 
1611
  eval "$3=no"
 
1612
fi
 
1613
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1614
fi
 
1615
eval ac_res=\$$3
 
1616
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1617
$as_echo "$ac_res" >&6; }
 
1618
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1619
 
 
1620
} @%:@ ac_fn_c_check_header_compile
 
1621
 
 
1622
@%:@ ac_fn_c_try_cpp LINENO
 
1623
@%:@ ----------------------
 
1624
@%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
 
1625
ac_fn_c_try_cpp ()
 
1626
{
 
1627
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1628
  if { { ac_try="$ac_cpp conftest.$ac_ext"
 
1629
case "(($ac_try" in
 
1630
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1631
  *) ac_try_echo=$ac_try;;
 
1632
esac
 
1633
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1634
$as_echo "$ac_try_echo"; } >&5
 
1635
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
 
1636
  ac_status=$?
 
1637
  if test -s conftest.err; then
 
1638
    grep -v '^ *+' conftest.err >conftest.er1
 
1639
    cat conftest.er1 >&5
 
1640
    mv -f conftest.er1 conftest.err
 
1641
  fi
 
1642
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1643
  test $ac_status = 0; } > conftest.i && {
 
1644
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
1645
         test ! -s conftest.err
 
1646
       }; then :
 
1647
  ac_retval=0
 
1648
else
 
1649
  $as_echo "$as_me: failed program was:" >&5
 
1650
sed 's/^/| /' conftest.$ac_ext >&5
 
1651
 
 
1652
    ac_retval=1
 
1653
fi
 
1654
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1655
  as_fn_set_status $ac_retval
 
1656
 
 
1657
} @%:@ ac_fn_c_try_cpp
 
1658
 
 
1659
@%:@ ac_fn_c_try_run LINENO
 
1660
@%:@ ----------------------
 
1661
@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes
 
1662
@%:@ that executables *can* be run.
 
1663
ac_fn_c_try_run ()
 
1664
{
 
1665
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1666
  if { { ac_try="$ac_link"
 
1667
case "(($ac_try" in
 
1668
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1669
  *) ac_try_echo=$ac_try;;
 
1670
esac
 
1671
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1672
$as_echo "$ac_try_echo"; } >&5
 
1673
  (eval "$ac_link") 2>&5
 
1674
  ac_status=$?
 
1675
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1676
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
 
1677
  { { case "(($ac_try" in
 
1678
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1679
  *) ac_try_echo=$ac_try;;
 
1680
esac
 
1681
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1682
$as_echo "$ac_try_echo"; } >&5
 
1683
  (eval "$ac_try") 2>&5
 
1684
  ac_status=$?
 
1685
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1686
  test $ac_status = 0; }; }; then :
 
1687
  ac_retval=0
 
1688
else
 
1689
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
1690
       $as_echo "$as_me: failed program was:" >&5
 
1691
sed 's/^/| /' conftest.$ac_ext >&5
 
1692
 
 
1693
       ac_retval=$ac_status
 
1694
fi
 
1695
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1696
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1697
  as_fn_set_status $ac_retval
 
1698
 
 
1699
} @%:@ ac_fn_c_try_run
 
1700
 
 
1701
@%:@ ac_fn_c_check_func LINENO FUNC VAR
 
1702
@%:@ ----------------------------------
 
1703
@%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly
 
1704
ac_fn_c_check_func ()
 
1705
{
 
1706
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1707
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1708
$as_echo_n "checking for $2... " >&6; }
 
1709
if eval \${$3+:} false; then :
 
1710
  $as_echo_n "(cached) " >&6
 
1711
else
 
1712
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1713
/* end confdefs.h.  */
 
1714
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
 
1715
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
1716
#define $2 innocuous_$2
 
1717
 
 
1718
/* System header to define __stub macros and hopefully few prototypes,
 
1719
    which can conflict with char $2 (); below.
 
1720
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
1721
    <limits.h> exists even on freestanding compilers.  */
 
1722
 
 
1723
#ifdef __STDC__
 
1724
# include <limits.h>
 
1725
#else
 
1726
# include <assert.h>
 
1727
#endif
 
1728
 
 
1729
#undef $2
 
1730
 
 
1731
/* Override any GCC internal prototype to avoid an error.
 
1732
   Use char because int might match the return type of a GCC
 
1733
   builtin and then its argument prototype would still apply.  */
 
1734
#ifdef __cplusplus
 
1735
extern "C"
 
1736
#endif
 
1737
char $2 ();
 
1738
/* The GNU C library defines this for functions which it implements
 
1739
    to always fail with ENOSYS.  Some functions are actually named
 
1740
    something starting with __ and the normal name is an alias.  */
 
1741
#if defined __stub_$2 || defined __stub___$2
 
1742
choke me
 
1743
#endif
 
1744
 
 
1745
int
 
1746
main ()
 
1747
{
 
1748
return $2 ();
 
1749
  ;
 
1750
  return 0;
 
1751
}
 
1752
_ACEOF
 
1753
if ac_fn_c_try_link "$LINENO"; then :
 
1754
  eval "$3=yes"
 
1755
else
 
1756
  eval "$3=no"
 
1757
fi
 
1758
rm -f core conftest.err conftest.$ac_objext \
 
1759
    conftest$ac_exeext conftest.$ac_ext
 
1760
fi
 
1761
eval ac_res=\$$3
 
1762
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1763
$as_echo "$ac_res" >&6; }
 
1764
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1765
 
 
1766
} @%:@ ac_fn_c_check_func
 
1767
 
 
1768
@%:@ ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
 
1769
@%:@ -------------------------------------------------------
 
1770
@%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using
 
1771
@%:@ the include files in INCLUDES and setting the cache variable VAR
 
1772
@%:@ accordingly.
 
1773
ac_fn_c_check_header_mongrel ()
 
1774
{
 
1775
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1776
  if eval \${$3+:} false; then :
 
1777
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1778
$as_echo_n "checking for $2... " >&6; }
 
1779
if eval \${$3+:} false; then :
 
1780
  $as_echo_n "(cached) " >&6
 
1781
fi
 
1782
eval ac_res=\$$3
 
1783
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1784
$as_echo "$ac_res" >&6; }
 
1785
else
 
1786
  # Is the header compilable?
 
1787
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
 
1788
$as_echo_n "checking $2 usability... " >&6; }
 
1789
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1790
/* end confdefs.h.  */
 
1791
$4
 
1792
@%:@include <$2>
 
1793
_ACEOF
 
1794
if ac_fn_c_try_compile "$LINENO"; then :
 
1795
  ac_header_compiler=yes
 
1796
else
 
1797
  ac_header_compiler=no
 
1798
fi
 
1799
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1800
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
 
1801
$as_echo "$ac_header_compiler" >&6; }
 
1802
 
 
1803
# Is the header present?
 
1804
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
 
1805
$as_echo_n "checking $2 presence... " >&6; }
 
1806
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1807
/* end confdefs.h.  */
 
1808
@%:@include <$2>
 
1809
_ACEOF
 
1810
if ac_fn_c_try_cpp "$LINENO"; then :
 
1811
  ac_header_preproc=yes
 
1812
else
 
1813
  ac_header_preproc=no
 
1814
fi
 
1815
rm -f conftest.err conftest.i conftest.$ac_ext
 
1816
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
 
1817
$as_echo "$ac_header_preproc" >&6; }
 
1818
 
 
1819
# So?  What about this header?
 
1820
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
 
1821
  yes:no: )
 
1822
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
 
1823
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
1824
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 
1825
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 
1826
    ;;
 
1827
  no:yes:* )
 
1828
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
 
1829
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
 
1830
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
 
1831
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
 
1832
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
 
1833
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
 
1834
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
 
1835
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
 
1836
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 
1837
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 
1838
    ;;
 
1839
esac
 
1840
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1841
$as_echo_n "checking for $2... " >&6; }
 
1842
if eval \${$3+:} false; then :
 
1843
  $as_echo_n "(cached) " >&6
 
1844
else
 
1845
  eval "$3=\$ac_header_compiler"
 
1846
fi
 
1847
eval ac_res=\$$3
 
1848
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1849
$as_echo "$ac_res" >&6; }
 
1850
fi
 
1851
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1852
 
 
1853
} @%:@ ac_fn_c_check_header_mongrel
 
1854
 
 
1855
@%:@ ac_fn_c_check_type LINENO TYPE VAR INCLUDES
 
1856
@%:@ -------------------------------------------
 
1857
@%:@ Tests whether TYPE exists after having included INCLUDES, setting cache
 
1858
@%:@ variable VAR accordingly.
 
1859
ac_fn_c_check_type ()
 
1860
{
 
1861
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1862
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1863
$as_echo_n "checking for $2... " >&6; }
 
1864
if eval \${$3+:} false; then :
 
1865
  $as_echo_n "(cached) " >&6
 
1866
else
 
1867
  eval "$3=no"
 
1868
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1869
/* end confdefs.h.  */
 
1870
$4
 
1871
int
 
1872
main ()
 
1873
{
 
1874
if (sizeof ($2))
 
1875
         return 0;
 
1876
  ;
 
1877
  return 0;
 
1878
}
 
1879
_ACEOF
 
1880
if ac_fn_c_try_compile "$LINENO"; then :
 
1881
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1882
/* end confdefs.h.  */
 
1883
$4
 
1884
int
 
1885
main ()
 
1886
{
 
1887
if (sizeof (($2)))
 
1888
            return 0;
 
1889
  ;
 
1890
  return 0;
 
1891
}
 
1892
_ACEOF
 
1893
if ac_fn_c_try_compile "$LINENO"; then :
 
1894
  
 
1895
else
 
1896
  eval "$3=yes"
 
1897
fi
 
1898
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1899
fi
 
1900
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
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
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1906
 
 
1907
} @%:@ ac_fn_c_check_type
 
1908
cat >config.log <<_ACEOF
 
1909
This file contains any messages produced by compilers while
 
1910
running configure, to aid debugging if configure makes a mistake.
 
1911
 
 
1912
It was created by libdvdread $as_me 4.2.0, which was
 
1913
generated by GNU Autoconf 2.69.  Invocation command line was
 
1914
 
 
1915
  $ $0 $@
 
1916
 
 
1917
_ACEOF
 
1918
exec 5>>config.log
 
1919
{
 
1920
cat <<_ASUNAME
 
1921
## --------- ##
 
1922
## Platform. ##
 
1923
## --------- ##
 
1924
 
 
1925
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1926
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1927
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1928
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1929
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1930
 
 
1931
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1932
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1933
 
 
1934
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1935
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1936
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1937
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 
1938
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1939
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1940
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1941
 
 
1942
_ASUNAME
 
1943
 
 
1944
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1945
for as_dir in $PATH
 
1946
do
 
1947
  IFS=$as_save_IFS
 
1948
  test -z "$as_dir" && as_dir=.
 
1949
    $as_echo "PATH: $as_dir"
 
1950
  done
 
1951
IFS=$as_save_IFS
 
1952
 
 
1953
} >&5
 
1954
 
 
1955
cat >&5 <<_ACEOF
 
1956
 
 
1957
 
 
1958
## ----------- ##
 
1959
## Core tests. ##
 
1960
## ----------- ##
 
1961
 
 
1962
_ACEOF
 
1963
 
 
1964
 
 
1965
# Keep a trace of the command line.
 
1966
# Strip out --no-create and --no-recursion so they do not pile up.
 
1967
# Strip out --silent because we don't want to record it for future runs.
 
1968
# Also quote any args containing shell meta-characters.
 
1969
# Make two passes to allow for proper duplicate-argument suppression.
 
1970
ac_configure_args=
 
1971
ac_configure_args0=
 
1972
ac_configure_args1=
 
1973
ac_must_keep_next=false
 
1974
for ac_pass in 1 2
 
1975
do
 
1976
  for ac_arg
 
1977
  do
 
1978
    case $ac_arg in
 
1979
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1980
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1981
    | -silent | --silent | --silen | --sile | --sil)
 
1982
      continue ;;
 
1983
    *\'*)
 
1984
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1985
    esac
 
1986
    case $ac_pass in
 
1987
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
 
1988
    2)
 
1989
      as_fn_append ac_configure_args1 " '$ac_arg'"
 
1990
      if test $ac_must_keep_next = true; then
 
1991
        ac_must_keep_next=false # Got value, back to normal.
 
1992
      else
 
1993
        case $ac_arg in
 
1994
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1995
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1996
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1997
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1998
            case "$ac_configure_args0 " in
 
1999
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
2000
            esac
 
2001
            ;;
 
2002
          -* ) ac_must_keep_next=true ;;
 
2003
        esac
 
2004
      fi
 
2005
      as_fn_append ac_configure_args " '$ac_arg'"
 
2006
      ;;
 
2007
    esac
 
2008
  done
 
2009
done
 
2010
{ ac_configure_args0=; unset ac_configure_args0;}
 
2011
{ ac_configure_args1=; unset ac_configure_args1;}
 
2012
 
 
2013
# When interrupted or exit'd, cleanup temporary files, and complete
 
2014
# config.log.  We remove comments because anyway the quotes in there
 
2015
# would cause problems or look ugly.
 
2016
# WARNING: Use '\'' to represent an apostrophe within the trap.
 
2017
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 
2018
trap 'exit_status=$?
 
2019
  # Save into config.log some information that might help in debugging.
 
2020
  {
 
2021
    echo
 
2022
 
 
2023
    $as_echo "## ---------------- ##
 
2024
## Cache variables. ##
 
2025
## ---------------- ##"
 
2026
    echo
 
2027
    # The following way of writing the cache mishandles newlines in values,
 
2028
(
 
2029
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 
2030
    eval ac_val=\$$ac_var
 
2031
    case $ac_val in #(
 
2032
    *${as_nl}*)
 
2033
      case $ac_var in #(
 
2034
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
2035
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
2036
      esac
 
2037
      case $ac_var in #(
 
2038
      _ | IFS | as_nl) ;; #(
 
2039
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
2040
      *) { eval $ac_var=; unset $ac_var;} ;;
 
2041
      esac ;;
 
2042
    esac
 
2043
  done
 
2044
  (set) 2>&1 |
 
2045
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 
2046
    *${as_nl}ac_space=\ *)
 
2047
      sed -n \
 
2048
        "s/'\''/'\''\\\\'\'''\''/g;
 
2049
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 
2050
      ;; #(
 
2051
    *)
 
2052
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
2053
      ;;
 
2054
    esac |
 
2055
    sort
 
2056
)
 
2057
    echo
 
2058
 
 
2059
    $as_echo "## ----------------- ##
 
2060
## Output variables. ##
 
2061
## ----------------- ##"
 
2062
    echo
 
2063
    for ac_var in $ac_subst_vars
 
2064
    do
 
2065
      eval ac_val=\$$ac_var
 
2066
      case $ac_val in
 
2067
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
2068
      esac
 
2069
      $as_echo "$ac_var='\''$ac_val'\''"
 
2070
    done | sort
 
2071
    echo
 
2072
 
 
2073
    if test -n "$ac_subst_files"; then
 
2074
      $as_echo "## ------------------- ##
 
2075
## File substitutions. ##
 
2076
## ------------------- ##"
 
2077
      echo
 
2078
      for ac_var in $ac_subst_files
 
2079
      do
 
2080
        eval ac_val=\$$ac_var
 
2081
        case $ac_val in
 
2082
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
2083
        esac
 
2084
        $as_echo "$ac_var='\''$ac_val'\''"
 
2085
      done | sort
 
2086
      echo
 
2087
    fi
 
2088
 
 
2089
    if test -s confdefs.h; then
 
2090
      $as_echo "## ----------- ##
 
2091
## confdefs.h. ##
 
2092
## ----------- ##"
 
2093
      echo
 
2094
      cat confdefs.h
 
2095
      echo
 
2096
    fi
 
2097
    test "$ac_signal" != 0 &&
 
2098
      $as_echo "$as_me: caught signal $ac_signal"
 
2099
    $as_echo "$as_me: exit $exit_status"
 
2100
  } >&5
 
2101
  rm -f core *.core core.conftest.* &&
 
2102
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 
2103
    exit $exit_status
 
2104
' 0
 
2105
for ac_signal in 1 2 13 15; do
 
2106
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
 
2107
done
 
2108
ac_signal=0
 
2109
 
 
2110
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
2111
rm -f -r conftest* confdefs.h
 
2112
 
 
2113
$as_echo "/* confdefs.h */" > confdefs.h
 
2114
 
 
2115
# Predefined preprocessor variables.
 
2116
 
 
2117
cat >>confdefs.h <<_ACEOF
 
2118
@%:@define PACKAGE_NAME "$PACKAGE_NAME"
 
2119
_ACEOF
 
2120
 
 
2121
cat >>confdefs.h <<_ACEOF
 
2122
@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
2123
_ACEOF
 
2124
 
 
2125
cat >>confdefs.h <<_ACEOF
 
2126
@%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
 
2127
_ACEOF
 
2128
 
 
2129
cat >>confdefs.h <<_ACEOF
 
2130
@%:@define PACKAGE_STRING "$PACKAGE_STRING"
 
2131
_ACEOF
 
2132
 
 
2133
cat >>confdefs.h <<_ACEOF
 
2134
@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
2135
_ACEOF
 
2136
 
 
2137
cat >>confdefs.h <<_ACEOF
 
2138
@%:@define PACKAGE_URL "$PACKAGE_URL"
 
2139
_ACEOF
 
2140
 
 
2141
 
 
2142
# Let the site file select an alternate cache file if it wants to.
 
2143
# Prefer an explicitly selected file to automatically selected ones.
 
2144
ac_site_file1=NONE
 
2145
ac_site_file2=NONE
 
2146
if test -n "$CONFIG_SITE"; then
 
2147
  # We do not want a PATH search for config.site.
 
2148
  case $CONFIG_SITE in @%:@((
 
2149
    -*)  ac_site_file1=./$CONFIG_SITE;;
 
2150
    */*) ac_site_file1=$CONFIG_SITE;;
 
2151
    *)   ac_site_file1=./$CONFIG_SITE;;
 
2152
  esac
 
2153
elif test "x$prefix" != xNONE; then
 
2154
  ac_site_file1=$prefix/share/config.site
 
2155
  ac_site_file2=$prefix/etc/config.site
 
2156
else
 
2157
  ac_site_file1=$ac_default_prefix/share/config.site
 
2158
  ac_site_file2=$ac_default_prefix/etc/config.site
 
2159
fi
 
2160
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
 
2161
do
 
2162
  test "x$ac_site_file" = xNONE && continue
 
2163
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
 
2164
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
 
2165
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
 
2166
    sed 's/^/| /' "$ac_site_file" >&5
 
2167
    . "$ac_site_file" \
 
2168
      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2169
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2170
as_fn_error $? "failed to load site script $ac_site_file
 
2171
See \`config.log' for more details" "$LINENO" 5; }
 
2172
  fi
 
2173
done
 
2174
 
 
2175
if test -r "$cache_file"; then
 
2176
  # Some versions of bash will fail to source /dev/null (special files
 
2177
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
 
2178
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
 
2179
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
 
2180
$as_echo "$as_me: loading cache $cache_file" >&6;}
 
2181
    case $cache_file in
 
2182
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
 
2183
      *)                      . "./$cache_file";;
 
2184
    esac
 
2185
  fi
 
2186
else
 
2187
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
 
2188
$as_echo "$as_me: creating cache $cache_file" >&6;}
 
2189
  >$cache_file
 
2190
fi
 
2191
 
 
2192
# Check that the precious variables saved in the cache have kept the same
 
2193
# value.
 
2194
ac_cache_corrupted=false
 
2195
for ac_var in $ac_precious_vars; do
 
2196
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
2197
  eval ac_new_set=\$ac_env_${ac_var}_set
 
2198
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
 
2199
  eval ac_new_val=\$ac_env_${ac_var}_value
 
2200
  case $ac_old_set,$ac_new_set in
 
2201
    set,)
 
2202
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
2203
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
2204
      ac_cache_corrupted=: ;;
 
2205
    ,set)
 
2206
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
 
2207
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
2208
      ac_cache_corrupted=: ;;
 
2209
    ,);;
 
2210
    *)
 
2211
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
2212
        # differences in whitespace do not lead to failure.
 
2213
        ac_old_val_w=`echo x $ac_old_val`
 
2214
        ac_new_val_w=`echo x $ac_new_val`
 
2215
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
 
2216
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
 
2217
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
2218
          ac_cache_corrupted=:
 
2219
        else
 
2220
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
 
2221
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
 
2222
          eval $ac_var=\$ac_old_val
 
2223
        fi
 
2224
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
 
2225
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
 
2226
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
 
2227
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
 
2228
      fi;;
 
2229
  esac
 
2230
  # Pass precious variables to config.status.
 
2231
  if test "$ac_new_set" = set; then
 
2232
    case $ac_new_val in
 
2233
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2234
    *) ac_arg=$ac_var=$ac_new_val ;;
 
2235
    esac
 
2236
    case " $ac_configure_args " in
 
2237
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
2238
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
 
2239
    esac
 
2240
  fi
 
2241
done
 
2242
if $ac_cache_corrupted; then
 
2243
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2244
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2245
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
 
2246
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
2247
  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
 
2248
fi
 
2249
## -------------------- ##
 
2250
## Main body of script. ##
 
2251
## -------------------- ##
 
2252
 
 
2253
ac_ext=c
 
2254
ac_cpp='$CPP $CPPFLAGS'
 
2255
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2256
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2257
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2258
 
 
2259
 
 
2260
 
 
2261
am__api_version='1.11'
 
2262
 
 
2263
ac_aux_dir=
 
2264
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
 
2265
  if test -f "$ac_dir/install-sh"; then
 
2266
    ac_aux_dir=$ac_dir
 
2267
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
2268
    break
 
2269
  elif test -f "$ac_dir/install.sh"; then
 
2270
    ac_aux_dir=$ac_dir
 
2271
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
2272
    break
 
2273
  elif test -f "$ac_dir/shtool"; then
 
2274
    ac_aux_dir=$ac_dir
 
2275
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
2276
    break
 
2277
  fi
 
2278
done
 
2279
if test -z "$ac_aux_dir"; then
 
2280
  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
 
2281
fi
 
2282
 
 
2283
# These three variables are undocumented and unsupported,
 
2284
# and are intended to be withdrawn in a future Autoconf release.
 
2285
# They can cause serious problems if a builder's source tree is in a directory
 
2286
# whose full name contains unusual characters.
 
2287
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 
2288
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 
2289
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 
2290
 
 
2291
 
 
2292
# Find a good install program.  We prefer a C program (faster),
 
2293
# so one script is as good as another.  But avoid the broken or
 
2294
# incompatible versions:
 
2295
# SysV /etc/install, /usr/sbin/install
 
2296
# SunOS /usr/etc/install
 
2297
# IRIX /sbin/install
 
2298
# AIX /bin/install
 
2299
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
2300
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
2301
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
2302
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
2303
# OS/2's system install, which has a completely different semantic
 
2304
# ./install, which can be erroneously created by make from ./install.sh.
 
2305
# Reject install programs that cannot install multiple files.
 
2306
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
 
2307
$as_echo_n "checking for a BSD-compatible install... " >&6; }
 
2308
if test -z "$INSTALL"; then
 
2309
if ${ac_cv_path_install+:} false; then :
 
2310
  $as_echo_n "(cached) " >&6
 
2311
else
 
2312
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2313
for as_dir in $PATH
 
2314
do
 
2315
  IFS=$as_save_IFS
 
2316
  test -z "$as_dir" && as_dir=.
 
2317
    # Account for people who put trailing slashes in PATH elements.
 
2318
case $as_dir/ in @%:@((
 
2319
  ./ | .// | /[cC]/* | \
 
2320
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
2321
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
 
2322
  /usr/ucb/* ) ;;
 
2323
  *)
 
2324
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
2325
    # Don't use installbsd from OSF since it installs stuff as root
 
2326
    # by default.
 
2327
    for ac_prog in ginstall scoinst install; do
 
2328
      for ac_exec_ext in '' $ac_executable_extensions; do
 
2329
        if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
2330
          if test $ac_prog = install &&
 
2331
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2332
            # AIX install.  It has an incompatible calling convention.
 
2333
            :
 
2334
          elif test $ac_prog = install &&
 
2335
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2336
            # program-specific install script used by HP pwplus--don't use.
 
2337
            :
 
2338
          else
 
2339
            rm -rf conftest.one conftest.two conftest.dir
 
2340
            echo one > conftest.one
 
2341
            echo two > conftest.two
 
2342
            mkdir conftest.dir
 
2343
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
 
2344
              test -s conftest.one && test -s conftest.two &&
 
2345
              test -s conftest.dir/conftest.one &&
 
2346
              test -s conftest.dir/conftest.two
 
2347
            then
 
2348
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
2349
              break 3
 
2350
            fi
 
2351
          fi
 
2352
        fi
 
2353
      done
 
2354
    done
 
2355
    ;;
 
2356
esac
 
2357
 
 
2358
  done
 
2359
IFS=$as_save_IFS
 
2360
 
 
2361
rm -rf conftest.one conftest.two conftest.dir
 
2362
 
 
2363
fi
 
2364
  if test "${ac_cv_path_install+set}" = set; then
 
2365
    INSTALL=$ac_cv_path_install
 
2366
  else
 
2367
    # As a last resort, use the slow shell script.  Don't cache a
 
2368
    # value for INSTALL within a source directory, because that will
 
2369
    # break other packages using the cache if that directory is
 
2370
    # removed, or if the value is a relative name.
 
2371
    INSTALL=$ac_install_sh
 
2372
  fi
 
2373
fi
 
2374
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
 
2375
$as_echo "$INSTALL" >&6; }
 
2376
 
 
2377
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
2378
# It thinks the first close brace ends the variable substitution.
 
2379
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
2380
 
 
2381
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
2382
 
 
2383
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
2384
 
 
2385
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
 
2386
$as_echo_n "checking whether build environment is sane... " >&6; }
 
2387
# Just in case
 
2388
sleep 1
 
2389
echo timestamp > conftest.file
 
2390
# Reject unsafe characters in $srcdir or the absolute working directory
 
2391
# name.  Accept space and tab only in the latter.
 
2392
am_lf='
 
2393
'
 
2394
case `pwd` in
 
2395
  *[\\\"\#\$\&\'\`$am_lf]*)
 
2396
    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
 
2397
esac
 
2398
case $srcdir in
 
2399
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
 
2400
    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
 
2401
esac
 
2402
 
 
2403
# Do `set' in a subshell so we don't clobber the current shell's
 
2404
# arguments.  Must try -L first in case configure is actually a
 
2405
# symlink; some systems play weird games with the mod time of symlinks
 
2406
# (eg FreeBSD returns the mod time of the symlink's containing
 
2407
# directory).
 
2408
if (
 
2409
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
 
2410
   if test "$*" = "X"; then
 
2411
      # -L didn't work.
 
2412
      set X `ls -t "$srcdir/configure" conftest.file`
 
2413
   fi
 
2414
   rm -f conftest.file
 
2415
   if test "$*" != "X $srcdir/configure conftest.file" \
 
2416
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
2417
 
 
2418
      # If neither matched, then we have a broken ls.  This can happen
 
2419
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
2420
      # broken ls alias from the environment.  This has actually
 
2421
      # happened.  Such a system could not be considered "sane".
 
2422
      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
 
2423
alias in your environment" "$LINENO" 5
 
2424
   fi
 
2425
 
 
2426
   test "$2" = conftest.file
 
2427
   )
 
2428
then
 
2429
   # Ok.
 
2430
   :
 
2431
else
 
2432
   as_fn_error $? "newly created file is older than distributed files!
 
2433
Check your system clock" "$LINENO" 5
 
2434
fi
 
2435
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
2436
$as_echo "yes" >&6; }
 
2437
test "$program_prefix" != NONE &&
 
2438
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
 
2439
# Use a double $ so make ignores it.
 
2440
test "$program_suffix" != NONE &&
 
2441
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
 
2442
# Double any \ or $.
 
2443
# By default was `s,x,x', remove it if useless.
 
2444
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
 
2445
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
 
2446
 
 
2447
# expand $ac_aux_dir to an absolute path
 
2448
am_aux_dir=`cd $ac_aux_dir && pwd`
 
2449
 
 
2450
if test x"${MISSING+set}" != xset; then
 
2451
  case $am_aux_dir in
 
2452
  *\ * | *\     *)
 
2453
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
 
2454
  *)
 
2455
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
 
2456
  esac
 
2457
fi
 
2458
# Use eval to expand $SHELL
 
2459
if eval "$MISSING --run true"; then
 
2460
  am_missing_run="$MISSING --run "
 
2461
else
 
2462
  am_missing_run=
 
2463
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
 
2464
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
2465
fi
 
2466
 
 
2467
if test x"${install_sh}" != xset; then
 
2468
  case $am_aux_dir in
 
2469
  *\ * | *\     *)
 
2470
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
 
2471
  *)
 
2472
    install_sh="\${SHELL} $am_aux_dir/install-sh"
 
2473
  esac
 
2474
fi
 
2475
 
 
2476
# Installed binaries are usually stripped using `strip' when the user
 
2477
# run `make install-strip'.  However `strip' might not be the right
 
2478
# tool to use in cross-compilation environments, therefore Automake
 
2479
# will honor the `STRIP' environment variable to overrule this program.
 
2480
if test "$cross_compiling" != no; then
 
2481
  if test -n "$ac_tool_prefix"; then
 
2482
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
2483
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
2484
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2485
$as_echo_n "checking for $ac_word... " >&6; }
 
2486
if ${ac_cv_prog_STRIP+:} false; then :
 
2487
  $as_echo_n "(cached) " >&6
 
2488
else
 
2489
  if test -n "$STRIP"; then
 
2490
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
2491
else
 
2492
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2493
for as_dir in $PATH
 
2494
do
 
2495
  IFS=$as_save_IFS
 
2496
  test -z "$as_dir" && as_dir=.
 
2497
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2498
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2499
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
2500
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2501
    break 2
 
2502
  fi
 
2503
done
 
2504
  done
 
2505
IFS=$as_save_IFS
 
2506
 
 
2507
fi
 
2508
fi
 
2509
STRIP=$ac_cv_prog_STRIP
 
2510
if test -n "$STRIP"; then
 
2511
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
 
2512
$as_echo "$STRIP" >&6; }
 
2513
else
 
2514
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2515
$as_echo "no" >&6; }
 
2516
fi
 
2517
 
 
2518
 
 
2519
fi
 
2520
if test -z "$ac_cv_prog_STRIP"; then
 
2521
  ac_ct_STRIP=$STRIP
 
2522
  # Extract the first word of "strip", so it can be a program name with args.
 
2523
set dummy strip; ac_word=$2
 
2524
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2525
$as_echo_n "checking for $ac_word... " >&6; }
 
2526
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
 
2527
  $as_echo_n "(cached) " >&6
 
2528
else
 
2529
  if test -n "$ac_ct_STRIP"; then
 
2530
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
2531
else
 
2532
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2533
for as_dir in $PATH
 
2534
do
 
2535
  IFS=$as_save_IFS
 
2536
  test -z "$as_dir" && as_dir=.
 
2537
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2538
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2539
    ac_cv_prog_ac_ct_STRIP="strip"
 
2540
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2541
    break 2
 
2542
  fi
 
2543
done
 
2544
  done
 
2545
IFS=$as_save_IFS
 
2546
 
 
2547
fi
 
2548
fi
 
2549
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
2550
if test -n "$ac_ct_STRIP"; then
 
2551
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
 
2552
$as_echo "$ac_ct_STRIP" >&6; }
 
2553
else
 
2554
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2555
$as_echo "no" >&6; }
 
2556
fi
 
2557
 
 
2558
  if test "x$ac_ct_STRIP" = x; then
 
2559
    STRIP=":"
 
2560
  else
 
2561
    case $cross_compiling:$ac_tool_warned in
 
2562
yes:)
 
2563
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
2564
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2565
ac_tool_warned=yes ;;
 
2566
esac
 
2567
    STRIP=$ac_ct_STRIP
 
2568
  fi
 
2569
else
 
2570
  STRIP="$ac_cv_prog_STRIP"
 
2571
fi
 
2572
 
 
2573
fi
 
2574
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
2575
 
 
2576
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
 
2577
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
 
2578
if test -z "$MKDIR_P"; then
 
2579
  if ${ac_cv_path_mkdir+:} false; then :
 
2580
  $as_echo_n "(cached) " >&6
 
2581
else
 
2582
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2583
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
 
2584
do
 
2585
  IFS=$as_save_IFS
 
2586
  test -z "$as_dir" && as_dir=.
 
2587
    for ac_prog in mkdir gmkdir; do
 
2588
         for ac_exec_ext in '' $ac_executable_extensions; do
 
2589
           as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
 
2590
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
 
2591
             'mkdir (GNU coreutils) '* | \
 
2592
             'mkdir (coreutils) '* | \
 
2593
             'mkdir (fileutils) '4.1*)
 
2594
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
 
2595
               break 3;;
 
2596
           esac
 
2597
         done
 
2598
       done
 
2599
  done
 
2600
IFS=$as_save_IFS
 
2601
 
 
2602
fi
 
2603
 
 
2604
  test -d ./--version && rmdir ./--version
 
2605
  if test "${ac_cv_path_mkdir+set}" = set; then
 
2606
    MKDIR_P="$ac_cv_path_mkdir -p"
 
2607
  else
 
2608
    # As a last resort, use the slow shell script.  Don't cache a
 
2609
    # value for MKDIR_P within a source directory, because that will
 
2610
    # break other packages using the cache if that directory is
 
2611
    # removed, or if the value is a relative name.
 
2612
    MKDIR_P="$ac_install_sh -d"
 
2613
  fi
 
2614
fi
 
2615
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
 
2616
$as_echo "$MKDIR_P" >&6; }
 
2617
 
 
2618
mkdir_p="$MKDIR_P"
 
2619
case $mkdir_p in
 
2620
  [\\/$]* | ?:[\\/]*) ;;
 
2621
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
2622
esac
 
2623
 
 
2624
for ac_prog in gawk mawk nawk awk
 
2625
do
 
2626
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2627
set dummy $ac_prog; ac_word=$2
 
2628
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2629
$as_echo_n "checking for $ac_word... " >&6; }
 
2630
if ${ac_cv_prog_AWK+:} false; then :
 
2631
  $as_echo_n "(cached) " >&6
 
2632
else
 
2633
  if test -n "$AWK"; then
 
2634
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
2635
else
 
2636
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2637
for as_dir in $PATH
 
2638
do
 
2639
  IFS=$as_save_IFS
 
2640
  test -z "$as_dir" && as_dir=.
 
2641
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2642
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2643
    ac_cv_prog_AWK="$ac_prog"
 
2644
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2645
    break 2
 
2646
  fi
 
2647
done
 
2648
  done
 
2649
IFS=$as_save_IFS
 
2650
 
 
2651
fi
 
2652
fi
 
2653
AWK=$ac_cv_prog_AWK
 
2654
if test -n "$AWK"; then
 
2655
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
 
2656
$as_echo "$AWK" >&6; }
 
2657
else
 
2658
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2659
$as_echo "no" >&6; }
 
2660
fi
 
2661
 
 
2662
 
 
2663
  test -n "$AWK" && break
 
2664
done
 
2665
 
 
2666
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
2667
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
 
2668
set x ${MAKE-make}
 
2669
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
2670
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
 
2671
  $as_echo_n "(cached) " >&6
 
2672
else
 
2673
  cat >conftest.make <<\_ACEOF
 
2674
SHELL = /bin/sh
 
2675
all:
 
2676
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
2677
_ACEOF
 
2678
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
 
2679
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
2680
  *@@@%%%=?*=@@@%%%*)
 
2681
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
2682
  *)
 
2683
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
2684
esac
 
2685
rm -f conftest.make
 
2686
fi
 
2687
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
2688
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
2689
$as_echo "yes" >&6; }
 
2690
  SET_MAKE=
 
2691
else
 
2692
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2693
$as_echo "no" >&6; }
 
2694
  SET_MAKE="MAKE=${MAKE-make}"
 
2695
fi
 
2696
 
 
2697
rm -rf .tst 2>/dev/null
 
2698
mkdir .tst 2>/dev/null
 
2699
if test -d .tst; then
 
2700
  am__leading_dot=.
 
2701
else
 
2702
  am__leading_dot=_
 
2703
fi
 
2704
rmdir .tst 2>/dev/null
 
2705
 
 
2706
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
2707
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
2708
  # is not polluted with repeated "-I."
 
2709
  am__isrc=' -I$(srcdir)'
 
2710
  # test to see if srcdir already configured
 
2711
  if test -f $srcdir/config.status; then
 
2712
    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
 
2713
  fi
 
2714
fi
 
2715
 
 
2716
# test whether we have cygpath
 
2717
if test -z "$CYGPATH_W"; then
 
2718
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
2719
    CYGPATH_W='cygpath -w'
 
2720
  else
 
2721
    CYGPATH_W=echo
 
2722
  fi
 
2723
fi
 
2724
 
 
2725
 
 
2726
# Define the identity of the package.
 
2727
 PACKAGE='libdvdread'
 
2728
 VERSION='4.2.0'
 
2729
 
 
2730
 
 
2731
cat >>confdefs.h <<_ACEOF
 
2732
@%:@define PACKAGE "$PACKAGE"
 
2733
_ACEOF
 
2734
 
 
2735
 
 
2736
cat >>confdefs.h <<_ACEOF
 
2737
@%:@define VERSION "$VERSION"
 
2738
_ACEOF
 
2739
 
 
2740
# Some tools Automake needs.
 
2741
 
 
2742
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
2743
 
 
2744
 
 
2745
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
2746
 
 
2747
 
 
2748
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
2749
 
 
2750
 
 
2751
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
2752
 
 
2753
 
 
2754
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
2755
 
 
2756
# We need awk for the "check" target.  The system "awk" is bad on
 
2757
# some platforms.
 
2758
# Always define AMTAR for backward compatibility.  Yes, it's still used
 
2759
# in the wild :-(  We should find a proper way to deprecate it ...
 
2760
AMTAR='$${TAR-tar}'
 
2761
 
 
2762
am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
 
2763
 
 
2764
 
 
2765
 
 
2766
 
 
2767
 
 
2768
 
 
2769
ac_config_headers="$ac_config_headers config.h"
 
2770
 
 
2771
# Make sure we can run config.sub.
 
2772
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 
2773
  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
 
2774
 
 
2775
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
 
2776
$as_echo_n "checking build system type... " >&6; }
 
2777
if ${ac_cv_build+:} false; then :
 
2778
  $as_echo_n "(cached) " >&6
 
2779
else
 
2780
  ac_build_alias=$build_alias
 
2781
test "x$ac_build_alias" = x &&
 
2782
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 
2783
test "x$ac_build_alias" = x &&
 
2784
  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
 
2785
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 
2786
  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
 
2787
 
 
2788
fi
 
2789
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
 
2790
$as_echo "$ac_cv_build" >&6; }
 
2791
case $ac_cv_build in
 
2792
*-*-*) ;;
 
2793
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
 
2794
esac
 
2795
build=$ac_cv_build
 
2796
ac_save_IFS=$IFS; IFS='-'
 
2797
set x $ac_cv_build
 
2798
shift
 
2799
build_cpu=$1
 
2800
build_vendor=$2
 
2801
shift; shift
 
2802
# Remember, the first character of IFS is used to create $*,
 
2803
# except with old shells:
 
2804
build_os=$*
 
2805
IFS=$ac_save_IFS
 
2806
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 
2807
 
 
2808
 
 
2809
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
 
2810
$as_echo_n "checking host system type... " >&6; }
 
2811
if ${ac_cv_host+:} false; then :
 
2812
  $as_echo_n "(cached) " >&6
 
2813
else
 
2814
  if test "x$host_alias" = x; then
 
2815
  ac_cv_host=$ac_cv_build
 
2816
else
 
2817
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 
2818
    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
 
2819
fi
 
2820
 
 
2821
fi
 
2822
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
 
2823
$as_echo "$ac_cv_host" >&6; }
 
2824
case $ac_cv_host in
 
2825
*-*-*) ;;
 
2826
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
 
2827
esac
 
2828
host=$ac_cv_host
 
2829
ac_save_IFS=$IFS; IFS='-'
 
2830
set x $ac_cv_host
 
2831
shift
 
2832
host_cpu=$1
 
2833
host_vendor=$2
 
2834
shift; shift
 
2835
# Remember, the first character of IFS is used to create $*,
 
2836
# except with old shells:
 
2837
host_os=$*
 
2838
IFS=$ac_save_IFS
 
2839
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
2840
 
 
2841
 
 
2842
 
 
2843
DVDREAD_MAJOR="4"
 
2844
DVDREAD_MINOR="2"
 
2845
DVDREAD_SUB="0"
 
2846
DVDREAD_PRE=""
 
2847
 
 
2848
 
 
2849
 
 
2850
 
 
2851
 
 
2852
 
 
2853
DVDREAD_LT_CURRENT=5
 
2854
DVDREAD_LT_AGE=1
 
2855
DVDREAD_LT_REVISION=2
 
2856
 
 
2857
 
 
2858
 
 
2859
 
 
2860
 
 
2861
if test x$DVDREAD_BUILD != "x"; then
 
2862
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** build forced to $DVDREAD_BUILD ***" >&5
 
2863
$as_echo "*** build forced to $DVDREAD_BUILD ***" >&6; }
 
2864
  build=$DVDREAD_BUILD
 
2865
  host=$DVDREAD_BUILD
 
2866
else
 
2867
  check_athlon=yes
 
2868
fi
 
2869
 
 
2870
saved_CFLAGS="$CFLAGS"
 
2871
DEPDIR="${am__leading_dot}deps"
 
2872
 
 
2873
ac_config_commands="$ac_config_commands depfiles"
 
2874
 
 
2875
 
 
2876
am_make=${MAKE-make}
 
2877
cat > confinc << 'END'
 
2878
am__doit:
 
2879
        @echo this is the am__doit target
 
2880
.PHONY: am__doit
 
2881
END
 
2882
# If we don't find an include directive, just comment out the code.
 
2883
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
 
2884
$as_echo_n "checking for style of include used by $am_make... " >&6; }
 
2885
am__include="#"
 
2886
am__quote=
 
2887
_am_result=none
 
2888
# First try GNU make style include.
 
2889
echo "include confinc" > confmf
 
2890
# Ignore all kinds of additional output from `make'.
 
2891
case `$am_make -s -f confmf 2> /dev/null` in #(
 
2892
*the\ am__doit\ target*)
 
2893
  am__include=include
 
2894
  am__quote=
 
2895
  _am_result=GNU
 
2896
  ;;
 
2897
esac
 
2898
# Now try BSD make style include.
 
2899
if test "$am__include" = "#"; then
 
2900
   echo '.include "confinc"' > confmf
 
2901
   case `$am_make -s -f confmf 2> /dev/null` in #(
 
2902
   *the\ am__doit\ target*)
 
2903
     am__include=.include
 
2904
     am__quote="\""
 
2905
     _am_result=BSD
 
2906
     ;;
 
2907
   esac
 
2908
fi
 
2909
 
 
2910
 
 
2911
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
 
2912
$as_echo "$_am_result" >&6; }
 
2913
rm -f confinc confmf
 
2914
 
 
2915
@%:@ Check whether --enable-dependency-tracking was given.
 
2916
if test "${enable_dependency_tracking+set}" = set; then :
 
2917
  enableval=$enable_dependency_tracking; 
 
2918
fi
 
2919
 
 
2920
if test "x$enable_dependency_tracking" != xno; then
 
2921
  am_depcomp="$ac_aux_dir/depcomp"
 
2922
  AMDEPBACKSLASH='\'
 
2923
  am__nodep='_no'
 
2924
fi
 
2925
 if test "x$enable_dependency_tracking" != xno; then
 
2926
  AMDEP_TRUE=
 
2927
  AMDEP_FALSE='#'
 
2928
else
 
2929
  AMDEP_TRUE='#'
 
2930
  AMDEP_FALSE=
 
2931
fi
 
2932
 
 
2933
 
 
2934
ac_ext=c
 
2935
ac_cpp='$CPP $CPPFLAGS'
 
2936
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2937
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2938
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2939
if test -n "$ac_tool_prefix"; then
 
2940
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
2941
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
2942
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2943
$as_echo_n "checking for $ac_word... " >&6; }
 
2944
if ${ac_cv_prog_CC+:} false; then :
 
2945
  $as_echo_n "(cached) " >&6
 
2946
else
 
2947
  if test -n "$CC"; then
 
2948
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2949
else
 
2950
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2951
for as_dir in $PATH
 
2952
do
 
2953
  IFS=$as_save_IFS
 
2954
  test -z "$as_dir" && as_dir=.
 
2955
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2956
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2957
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
2958
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2959
    break 2
 
2960
  fi
 
2961
done
 
2962
  done
 
2963
IFS=$as_save_IFS
 
2964
 
 
2965
fi
 
2966
fi
 
2967
CC=$ac_cv_prog_CC
 
2968
if test -n "$CC"; then
 
2969
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
2970
$as_echo "$CC" >&6; }
 
2971
else
 
2972
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2973
$as_echo "no" >&6; }
 
2974
fi
 
2975
 
 
2976
 
 
2977
fi
 
2978
if test -z "$ac_cv_prog_CC"; then
 
2979
  ac_ct_CC=$CC
 
2980
  # Extract the first word of "gcc", so it can be a program name with args.
 
2981
set dummy gcc; ac_word=$2
 
2982
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2983
$as_echo_n "checking for $ac_word... " >&6; }
 
2984
if ${ac_cv_prog_ac_ct_CC+:} false; then :
 
2985
  $as_echo_n "(cached) " >&6
 
2986
else
 
2987
  if test -n "$ac_ct_CC"; then
 
2988
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2989
else
 
2990
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2991
for as_dir in $PATH
 
2992
do
 
2993
  IFS=$as_save_IFS
 
2994
  test -z "$as_dir" && as_dir=.
 
2995
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2996
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2997
    ac_cv_prog_ac_ct_CC="gcc"
 
2998
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2999
    break 2
 
3000
  fi
 
3001
done
 
3002
  done
 
3003
IFS=$as_save_IFS
 
3004
 
 
3005
fi
 
3006
fi
 
3007
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3008
if test -n "$ac_ct_CC"; then
 
3009
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
3010
$as_echo "$ac_ct_CC" >&6; }
 
3011
else
 
3012
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3013
$as_echo "no" >&6; }
 
3014
fi
 
3015
 
 
3016
  if test "x$ac_ct_CC" = x; then
 
3017
    CC=""
 
3018
  else
 
3019
    case $cross_compiling:$ac_tool_warned in
 
3020
yes:)
 
3021
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
3022
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3023
ac_tool_warned=yes ;;
 
3024
esac
 
3025
    CC=$ac_ct_CC
 
3026
  fi
 
3027
else
 
3028
  CC="$ac_cv_prog_CC"
 
3029
fi
 
3030
 
 
3031
if test -z "$CC"; then
 
3032
          if test -n "$ac_tool_prefix"; then
 
3033
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
3034
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
3035
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3036
$as_echo_n "checking for $ac_word... " >&6; }
 
3037
if ${ac_cv_prog_CC+:} false; then :
 
3038
  $as_echo_n "(cached) " >&6
 
3039
else
 
3040
  if test -n "$CC"; then
 
3041
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3042
else
 
3043
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3044
for as_dir in $PATH
 
3045
do
 
3046
  IFS=$as_save_IFS
 
3047
  test -z "$as_dir" && as_dir=.
 
3048
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3049
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3050
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
3051
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3052
    break 2
 
3053
  fi
 
3054
done
 
3055
  done
 
3056
IFS=$as_save_IFS
 
3057
 
 
3058
fi
 
3059
fi
 
3060
CC=$ac_cv_prog_CC
 
3061
if test -n "$CC"; then
 
3062
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3063
$as_echo "$CC" >&6; }
 
3064
else
 
3065
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3066
$as_echo "no" >&6; }
 
3067
fi
 
3068
 
 
3069
 
 
3070
  fi
 
3071
fi
 
3072
if test -z "$CC"; then
 
3073
  # Extract the first word of "cc", so it can be a program name with args.
 
3074
set dummy cc; ac_word=$2
 
3075
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3076
$as_echo_n "checking for $ac_word... " >&6; }
 
3077
if ${ac_cv_prog_CC+:} false; then :
 
3078
  $as_echo_n "(cached) " >&6
 
3079
else
 
3080
  if test -n "$CC"; then
 
3081
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3082
else
 
3083
  ac_prog_rejected=no
 
3084
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3085
for as_dir in $PATH
 
3086
do
 
3087
  IFS=$as_save_IFS
 
3088
  test -z "$as_dir" && as_dir=.
 
3089
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3090
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3091
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
3092
       ac_prog_rejected=yes
 
3093
       continue
 
3094
     fi
 
3095
    ac_cv_prog_CC="cc"
 
3096
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3097
    break 2
 
3098
  fi
 
3099
done
 
3100
  done
 
3101
IFS=$as_save_IFS
 
3102
 
 
3103
if test $ac_prog_rejected = yes; then
 
3104
  # We found a bogon in the path, so make sure we never use it.
 
3105
  set dummy $ac_cv_prog_CC
 
3106
  shift
 
3107
  if test $@%:@ != 0; then
 
3108
    # We chose a different compiler from the bogus one.
 
3109
    # However, it has the same basename, so the bogon will be chosen
 
3110
    # first if we set CC to just the basename; use the full file name.
 
3111
    shift
 
3112
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
3113
  fi
 
3114
fi
 
3115
fi
 
3116
fi
 
3117
CC=$ac_cv_prog_CC
 
3118
if test -n "$CC"; then
 
3119
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3120
$as_echo "$CC" >&6; }
 
3121
else
 
3122
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3123
$as_echo "no" >&6; }
 
3124
fi
 
3125
 
 
3126
 
 
3127
fi
 
3128
if test -z "$CC"; then
 
3129
  if test -n "$ac_tool_prefix"; then
 
3130
  for ac_prog in cl.exe
 
3131
  do
 
3132
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
3133
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
3134
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3135
$as_echo_n "checking for $ac_word... " >&6; }
 
3136
if ${ac_cv_prog_CC+:} false; then :
 
3137
  $as_echo_n "(cached) " >&6
 
3138
else
 
3139
  if test -n "$CC"; then
 
3140
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3141
else
 
3142
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3143
for as_dir in $PATH
 
3144
do
 
3145
  IFS=$as_save_IFS
 
3146
  test -z "$as_dir" && as_dir=.
 
3147
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3148
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3149
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
3150
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3151
    break 2
 
3152
  fi
 
3153
done
 
3154
  done
 
3155
IFS=$as_save_IFS
 
3156
 
 
3157
fi
 
3158
fi
 
3159
CC=$ac_cv_prog_CC
 
3160
if test -n "$CC"; then
 
3161
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3162
$as_echo "$CC" >&6; }
 
3163
else
 
3164
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3165
$as_echo "no" >&6; }
 
3166
fi
 
3167
 
 
3168
 
 
3169
    test -n "$CC" && break
 
3170
  done
 
3171
fi
 
3172
if test -z "$CC"; then
 
3173
  ac_ct_CC=$CC
 
3174
  for ac_prog in cl.exe
 
3175
do
 
3176
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3177
set dummy $ac_prog; ac_word=$2
 
3178
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3179
$as_echo_n "checking for $ac_word... " >&6; }
 
3180
if ${ac_cv_prog_ac_ct_CC+:} false; then :
 
3181
  $as_echo_n "(cached) " >&6
 
3182
else
 
3183
  if test -n "$ac_ct_CC"; then
 
3184
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3185
else
 
3186
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3187
for as_dir in $PATH
 
3188
do
 
3189
  IFS=$as_save_IFS
 
3190
  test -z "$as_dir" && as_dir=.
 
3191
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3192
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3193
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
3194
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3195
    break 2
 
3196
  fi
 
3197
done
 
3198
  done
 
3199
IFS=$as_save_IFS
 
3200
 
 
3201
fi
 
3202
fi
 
3203
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3204
if test -n "$ac_ct_CC"; then
 
3205
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
3206
$as_echo "$ac_ct_CC" >&6; }
 
3207
else
 
3208
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3209
$as_echo "no" >&6; }
 
3210
fi
 
3211
 
 
3212
 
 
3213
  test -n "$ac_ct_CC" && break
 
3214
done
 
3215
 
 
3216
  if test "x$ac_ct_CC" = x; then
 
3217
    CC=""
 
3218
  else
 
3219
    case $cross_compiling:$ac_tool_warned in
 
3220
yes:)
 
3221
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
3222
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3223
ac_tool_warned=yes ;;
 
3224
esac
 
3225
    CC=$ac_ct_CC
 
3226
  fi
 
3227
fi
 
3228
 
 
3229
fi
 
3230
 
 
3231
 
 
3232
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3233
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3234
as_fn_error $? "no acceptable C compiler found in \$PATH
 
3235
See \`config.log' for more details" "$LINENO" 5; }
 
3236
 
 
3237
# Provide some information about the compiler.
 
3238
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 
3239
set X $ac_compile
 
3240
ac_compiler=$2
 
3241
for ac_option in --version -v -V -qversion; do
 
3242
  { { ac_try="$ac_compiler $ac_option >&5"
 
3243
case "(($ac_try" in
 
3244
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3245
  *) ac_try_echo=$ac_try;;
 
3246
esac
 
3247
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3248
$as_echo "$ac_try_echo"; } >&5
 
3249
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
3250
  ac_status=$?
 
3251
  if test -s conftest.err; then
 
3252
    sed '10a\
 
3253
... rest of stderr output deleted ...
 
3254
         10q' conftest.err >conftest.er1
 
3255
    cat conftest.er1 >&5
 
3256
  fi
 
3257
  rm -f conftest.er1 conftest.err
 
3258
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3259
  test $ac_status = 0; }
 
3260
done
 
3261
 
 
3262
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3263
/* end confdefs.h.  */
 
3264
 
 
3265
int
 
3266
main ()
 
3267
{
 
3268
 
 
3269
  ;
 
3270
  return 0;
 
3271
}
 
3272
_ACEOF
 
3273
ac_clean_files_save=$ac_clean_files
 
3274
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
 
3275
# Try to create an executable without -o first, disregard a.out.
 
3276
# It will help us diagnose broken compilers, and finding out an intuition
 
3277
# of exeext.
 
3278
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
 
3279
$as_echo_n "checking whether the C compiler works... " >&6; }
 
3280
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
3281
 
 
3282
# The possible output files:
 
3283
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
 
3284
 
 
3285
ac_rmfiles=
 
3286
for ac_file in $ac_files
 
3287
do
 
3288
  case $ac_file in
 
3289
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
3290
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
3291
  esac
 
3292
done
 
3293
rm -f $ac_rmfiles
 
3294
 
 
3295
if { { ac_try="$ac_link_default"
 
3296
case "(($ac_try" in
 
3297
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3298
  *) ac_try_echo=$ac_try;;
 
3299
esac
 
3300
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3301
$as_echo "$ac_try_echo"; } >&5
 
3302
  (eval "$ac_link_default") 2>&5
 
3303
  ac_status=$?
 
3304
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3305
  test $ac_status = 0; }; then :
 
3306
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
3307
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
3308
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
3309
# so that the user can short-circuit this test for compilers unknown to
 
3310
# Autoconf.
 
3311
for ac_file in $ac_files ''
 
3312
do
 
3313
  test -f "$ac_file" || continue
 
3314
  case $ac_file in
 
3315
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
 
3316
        ;;
 
3317
    [ab].out )
 
3318
        # We found the default executable, but exeext='' is most
 
3319
        # certainly right.
 
3320
        break;;
 
3321
    *.* )
 
3322
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
3323
        then :; else
 
3324
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3325
        fi
 
3326
        # We set ac_cv_exeext here because the later test for it is not
 
3327
        # safe: cross compilers may not add the suffix if given an `-o'
 
3328
        # argument, so we may need to know it at that point already.
 
3329
        # Even if this section looks crufty: it has the advantage of
 
3330
        # actually working.
 
3331
        break;;
 
3332
    * )
 
3333
        break;;
 
3334
  esac
 
3335
done
 
3336
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
3337
 
 
3338
else
 
3339
  ac_file=''
 
3340
fi
 
3341
if test -z "$ac_file"; then :
 
3342
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3343
$as_echo "no" >&6; }
 
3344
$as_echo "$as_me: failed program was:" >&5
 
3345
sed 's/^/| /' conftest.$ac_ext >&5
 
3346
 
 
3347
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3348
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3349
as_fn_error 77 "C compiler cannot create executables
 
3350
See \`config.log' for more details" "$LINENO" 5; }
 
3351
else
 
3352
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
3353
$as_echo "yes" >&6; }
 
3354
fi
 
3355
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
 
3356
$as_echo_n "checking for C compiler default output file name... " >&6; }
 
3357
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
 
3358
$as_echo "$ac_file" >&6; }
 
3359
ac_exeext=$ac_cv_exeext
 
3360
 
 
3361
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
 
3362
ac_clean_files=$ac_clean_files_save
 
3363
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
 
3364
$as_echo_n "checking for suffix of executables... " >&6; }
 
3365
if { { ac_try="$ac_link"
 
3366
case "(($ac_try" in
 
3367
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3368
  *) ac_try_echo=$ac_try;;
 
3369
esac
 
3370
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3371
$as_echo "$ac_try_echo"; } >&5
 
3372
  (eval "$ac_link") 2>&5
 
3373
  ac_status=$?
 
3374
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3375
  test $ac_status = 0; }; then :
 
3376
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
3377
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
3378
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
3379
# `rm'.
 
3380
for ac_file in conftest.exe conftest conftest.*; do
 
3381
  test -f "$ac_file" || continue
 
3382
  case $ac_file in
 
3383
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
3384
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3385
          break;;
 
3386
    * ) break;;
 
3387
  esac
 
3388
done
 
3389
else
 
3390
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3391
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3392
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
 
3393
See \`config.log' for more details" "$LINENO" 5; }
 
3394
fi
 
3395
rm -f conftest conftest$ac_cv_exeext
 
3396
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
 
3397
$as_echo "$ac_cv_exeext" >&6; }
 
3398
 
 
3399
rm -f conftest.$ac_ext
 
3400
EXEEXT=$ac_cv_exeext
 
3401
ac_exeext=$EXEEXT
 
3402
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3403
/* end confdefs.h.  */
 
3404
@%:@include <stdio.h>
 
3405
int
 
3406
main ()
 
3407
{
 
3408
FILE *f = fopen ("conftest.out", "w");
 
3409
 return ferror (f) || fclose (f) != 0;
 
3410
 
 
3411
  ;
 
3412
  return 0;
 
3413
}
 
3414
_ACEOF
 
3415
ac_clean_files="$ac_clean_files conftest.out"
 
3416
# Check that the compiler produces executables we can run.  If not, either
 
3417
# the compiler is broken, or we cross compile.
 
3418
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
 
3419
$as_echo_n "checking whether we are cross compiling... " >&6; }
 
3420
if test "$cross_compiling" != yes; then
 
3421
  { { ac_try="$ac_link"
 
3422
case "(($ac_try" in
 
3423
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3424
  *) ac_try_echo=$ac_try;;
 
3425
esac
 
3426
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3427
$as_echo "$ac_try_echo"; } >&5
 
3428
  (eval "$ac_link") 2>&5
 
3429
  ac_status=$?
 
3430
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3431
  test $ac_status = 0; }
 
3432
  if { ac_try='./conftest$ac_cv_exeext'
 
3433
  { { case "(($ac_try" in
 
3434
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3435
  *) ac_try_echo=$ac_try;;
 
3436
esac
 
3437
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3438
$as_echo "$ac_try_echo"; } >&5
 
3439
  (eval "$ac_try") 2>&5
 
3440
  ac_status=$?
 
3441
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3442
  test $ac_status = 0; }; }; then
 
3443
    cross_compiling=no
 
3444
  else
 
3445
    if test "$cross_compiling" = maybe; then
 
3446
        cross_compiling=yes
 
3447
    else
 
3448
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3449
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3450
as_fn_error $? "cannot run C compiled programs.
 
3451
If you meant to cross compile, use \`--host'.
 
3452
See \`config.log' for more details" "$LINENO" 5; }
 
3453
    fi
 
3454
  fi
 
3455
fi
 
3456
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
 
3457
$as_echo "$cross_compiling" >&6; }
 
3458
 
 
3459
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
 
3460
ac_clean_files=$ac_clean_files_save
 
3461
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
 
3462
$as_echo_n "checking for suffix of object files... " >&6; }
 
3463
if ${ac_cv_objext+:} false; then :
 
3464
  $as_echo_n "(cached) " >&6
 
3465
else
 
3466
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3467
/* end confdefs.h.  */
 
3468
 
 
3469
int
 
3470
main ()
 
3471
{
 
3472
 
 
3473
  ;
 
3474
  return 0;
 
3475
}
 
3476
_ACEOF
 
3477
rm -f conftest.o conftest.obj
 
3478
if { { ac_try="$ac_compile"
 
3479
case "(($ac_try" in
 
3480
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3481
  *) ac_try_echo=$ac_try;;
 
3482
esac
 
3483
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3484
$as_echo "$ac_try_echo"; } >&5
 
3485
  (eval "$ac_compile") 2>&5
 
3486
  ac_status=$?
 
3487
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3488
  test $ac_status = 0; }; then :
 
3489
  for ac_file in conftest.o conftest.obj conftest.*; do
 
3490
  test -f "$ac_file" || continue;
 
3491
  case $ac_file in
 
3492
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
 
3493
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
3494
       break;;
 
3495
  esac
 
3496
done
 
3497
else
 
3498
  $as_echo "$as_me: failed program was:" >&5
 
3499
sed 's/^/| /' conftest.$ac_ext >&5
 
3500
 
 
3501
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3502
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3503
as_fn_error $? "cannot compute suffix of object files: cannot compile
 
3504
See \`config.log' for more details" "$LINENO" 5; }
 
3505
fi
 
3506
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
3507
fi
 
3508
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
 
3509
$as_echo "$ac_cv_objext" >&6; }
 
3510
OBJEXT=$ac_cv_objext
 
3511
ac_objext=$OBJEXT
 
3512
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
 
3513
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 
3514
if ${ac_cv_c_compiler_gnu+:} false; then :
 
3515
  $as_echo_n "(cached) " >&6
 
3516
else
 
3517
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3518
/* end confdefs.h.  */
 
3519
 
 
3520
int
 
3521
main ()
 
3522
{
 
3523
#ifndef __GNUC__
 
3524
       choke me
 
3525
#endif
 
3526
 
 
3527
  ;
 
3528
  return 0;
 
3529
}
 
3530
_ACEOF
 
3531
if ac_fn_c_try_compile "$LINENO"; then :
 
3532
  ac_compiler_gnu=yes
 
3533
else
 
3534
  ac_compiler_gnu=no
 
3535
fi
 
3536
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3537
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
3538
 
 
3539
fi
 
3540
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
 
3541
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
 
3542
if test $ac_compiler_gnu = yes; then
 
3543
  GCC=yes
 
3544
else
 
3545
  GCC=
 
3546
fi
 
3547
ac_test_CFLAGS=${CFLAGS+set}
 
3548
ac_save_CFLAGS=$CFLAGS
 
3549
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
 
3550
$as_echo_n "checking whether $CC accepts -g... " >&6; }
 
3551
if ${ac_cv_prog_cc_g+:} false; then :
 
3552
  $as_echo_n "(cached) " >&6
 
3553
else
 
3554
  ac_save_c_werror_flag=$ac_c_werror_flag
 
3555
   ac_c_werror_flag=yes
 
3556
   ac_cv_prog_cc_g=no
 
3557
   CFLAGS="-g"
 
3558
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3559
/* end confdefs.h.  */
 
3560
 
 
3561
int
 
3562
main ()
 
3563
{
 
3564
 
 
3565
  ;
 
3566
  return 0;
 
3567
}
 
3568
_ACEOF
 
3569
if ac_fn_c_try_compile "$LINENO"; then :
 
3570
  ac_cv_prog_cc_g=yes
 
3571
else
 
3572
  CFLAGS=""
 
3573
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3574
/* end confdefs.h.  */
 
3575
 
 
3576
int
 
3577
main ()
 
3578
{
 
3579
 
 
3580
  ;
 
3581
  return 0;
 
3582
}
 
3583
_ACEOF
 
3584
if ac_fn_c_try_compile "$LINENO"; then :
 
3585
  
 
3586
else
 
3587
  ac_c_werror_flag=$ac_save_c_werror_flag
 
3588
         CFLAGS="-g"
 
3589
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3590
/* end confdefs.h.  */
 
3591
 
 
3592
int
 
3593
main ()
 
3594
{
 
3595
 
 
3596
  ;
 
3597
  return 0;
 
3598
}
 
3599
_ACEOF
 
3600
if ac_fn_c_try_compile "$LINENO"; then :
 
3601
  ac_cv_prog_cc_g=yes
 
3602
fi
 
3603
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3604
fi
 
3605
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3606
fi
 
3607
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3608
   ac_c_werror_flag=$ac_save_c_werror_flag
 
3609
fi
 
3610
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
 
3611
$as_echo "$ac_cv_prog_cc_g" >&6; }
 
3612
if test "$ac_test_CFLAGS" = set; then
 
3613
  CFLAGS=$ac_save_CFLAGS
 
3614
elif test $ac_cv_prog_cc_g = yes; then
 
3615
  if test "$GCC" = yes; then
 
3616
    CFLAGS="-g -O2"
 
3617
  else
 
3618
    CFLAGS="-g"
 
3619
  fi
 
3620
else
 
3621
  if test "$GCC" = yes; then
 
3622
    CFLAGS="-O2"
 
3623
  else
 
3624
    CFLAGS=
 
3625
  fi
 
3626
fi
 
3627
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
 
3628
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 
3629
if ${ac_cv_prog_cc_c89+:} false; then :
 
3630
  $as_echo_n "(cached) " >&6
 
3631
else
 
3632
  ac_cv_prog_cc_c89=no
 
3633
ac_save_CC=$CC
 
3634
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3635
/* end confdefs.h.  */
 
3636
#include <stdarg.h>
 
3637
#include <stdio.h>
 
3638
struct stat;
 
3639
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
3640
struct buf { int x; };
 
3641
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
3642
static char *e (p, i)
 
3643
     char **p;
 
3644
     int i;
 
3645
{
 
3646
  return p[i];
 
3647
}
 
3648
static char *f (char * (*g) (char **, int), char **p, ...)
 
3649
{
 
3650
  char *s;
 
3651
  va_list v;
 
3652
  va_start (v,p);
 
3653
  s = g (p, va_arg (v,int));
 
3654
  va_end (v);
 
3655
  return s;
 
3656
}
 
3657
 
 
3658
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
3659
   function prototypes and stuff, but not '\xHH' hex character constants.
 
3660
   These don't provoke an error unfortunately, instead are silently treated
 
3661
   as 'x'.  The following induces an error, until -std is added to get
 
3662
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
3663
   array size at least.  It's necessary to write '\x00'==0 to get something
 
3664
   that's true only with -std.  */
 
3665
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
3666
 
 
3667
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
3668
   inside strings and character constants.  */
 
3669
#define FOO(x) 'x'
 
3670
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
3671
 
 
3672
int test (int i, double x);
 
3673
struct s1 {int (*f) (int a);};
 
3674
struct s2 {int (*f) (double a);};
 
3675
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
3676
int argc;
 
3677
char **argv;
 
3678
int
 
3679
main ()
 
3680
{
 
3681
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
3682
  ;
 
3683
  return 0;
 
3684
}
 
3685
_ACEOF
 
3686
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
3687
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
3688
do
 
3689
  CC="$ac_save_CC $ac_arg"
 
3690
  if ac_fn_c_try_compile "$LINENO"; then :
 
3691
  ac_cv_prog_cc_c89=$ac_arg
 
3692
fi
 
3693
rm -f core conftest.err conftest.$ac_objext
 
3694
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
3695
done
 
3696
rm -f conftest.$ac_ext
 
3697
CC=$ac_save_CC
 
3698
 
 
3699
fi
 
3700
# AC_CACHE_VAL
 
3701
case "x$ac_cv_prog_cc_c89" in
 
3702
  x)
 
3703
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 
3704
$as_echo "none needed" >&6; } ;;
 
3705
  xno)
 
3706
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 
3707
$as_echo "unsupported" >&6; } ;;
 
3708
  *)
 
3709
    CC="$CC $ac_cv_prog_cc_c89"
 
3710
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 
3711
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 
3712
esac
 
3713
if test "x$ac_cv_prog_cc_c89" != xno; then :
 
3714
  
 
3715
fi
 
3716
 
 
3717
ac_ext=c
 
3718
ac_cpp='$CPP $CPPFLAGS'
 
3719
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3720
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3721
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3722
 
 
3723
depcc="$CC"   am_compiler_list=
 
3724
 
 
3725
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
3726
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
3727
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
 
3728
  $as_echo_n "(cached) " >&6
 
3729
else
 
3730
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
3731
  # We make a subdir and do the tests there.  Otherwise we can end up
 
3732
  # making bogus files that we don't know about and never remove.  For
 
3733
  # instance it was reported that on HP-UX the gcc test will end up
 
3734
  # making a dummy file named `D' -- because `-MD' means `put the output
 
3735
  # in D'.
 
3736
  rm -rf conftest.dir
 
3737
  mkdir conftest.dir
 
3738
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
3739
  # using a relative directory.
 
3740
  cp "$am_depcomp" conftest.dir
 
3741
  cd conftest.dir
 
3742
  # We will build objects and dependencies in a subdirectory because
 
3743
  # it helps to detect inapplicable dependency modes.  For instance
 
3744
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
3745
  # side effect of compilation, but ICC will put the dependencies in
 
3746
  # the current directory while Tru64 will put them in the object
 
3747
  # directory.
 
3748
  mkdir sub
 
3749
 
 
3750
  am_cv_CC_dependencies_compiler_type=none
 
3751
  if test "$am_compiler_list" = ""; then
 
3752
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
3753
  fi
 
3754
  am__universal=false
 
3755
  case " $depcc " in #(
 
3756
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
3757
     esac
 
3758
 
 
3759
  for depmode in $am_compiler_list; do
 
3760
    # Setup a source with many dependencies, because some compilers
 
3761
    # like to wrap large dependency lists on column 80 (with \), and
 
3762
    # we should not choose a depcomp mode which is confused by this.
 
3763
    #
 
3764
    # We need to recreate these files for each test, as the compiler may
 
3765
    # overwrite some of them when testing with obscure command lines.
 
3766
    # This happens at least with the AIX C compiler.
 
3767
    : > sub/conftest.c
 
3768
    for i in 1 2 3 4 5 6; do
 
3769
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
3770
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
3771
      # Solaris 8's {/usr,}/bin/sh.
 
3772
      touch sub/conftst$i.h
 
3773
    done
 
3774
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
3775
 
 
3776
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3777
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3778
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
3779
    # versions had trouble with output in subdirs
 
3780
    am__obj=sub/conftest.${OBJEXT-o}
 
3781
    am__minus_obj="-o $am__obj"
 
3782
    case $depmode in
 
3783
    gcc)
 
3784
      # This depmode causes a compiler race in universal mode.
 
3785
      test "$am__universal" = false || continue
 
3786
      ;;
 
3787
    nosideeffect)
 
3788
      # after this tag, mechanisms are not by side-effect, so they'll
 
3789
      # only be used when explicitly requested
 
3790
      if test "x$enable_dependency_tracking" = xyes; then
 
3791
        continue
 
3792
      else
 
3793
        break
 
3794
      fi
 
3795
      ;;
 
3796
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
 
3797
      # This compiler won't grok `-c -o', but also, the minuso test has
 
3798
      # not run yet.  These depmodes are late enough in the game, and
 
3799
      # so weak that their functioning should not be impacted.
 
3800
      am__obj=conftest.${OBJEXT-o}
 
3801
      am__minus_obj=
 
3802
      ;;
 
3803
    none) break ;;
 
3804
    esac
 
3805
    if depmode=$depmode \
 
3806
       source=sub/conftest.c object=$am__obj \
 
3807
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
3808
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
3809
         >/dev/null 2>conftest.err &&
 
3810
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
3811
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
3812
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
3813
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3814
      # icc doesn't choke on unknown options, it will just issue warnings
 
3815
      # or remarks (even with -Werror).  So we grep stderr for any message
 
3816
      # that says an option was ignored or not supported.
 
3817
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
3818
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
3819
      # The diagnosis changed in icc 8.0:
 
3820
      #   icc: Command line remark: option '-MP' not supported
 
3821
      if (grep 'ignoring option' conftest.err ||
 
3822
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
3823
        am_cv_CC_dependencies_compiler_type=$depmode
 
3824
        break
 
3825
      fi
 
3826
    fi
 
3827
  done
 
3828
 
 
3829
  cd ..
 
3830
  rm -rf conftest.dir
 
3831
else
 
3832
  am_cv_CC_dependencies_compiler_type=none
 
3833
fi
 
3834
 
 
3835
fi
 
3836
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
 
3837
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
 
3838
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
3839
 
 
3840
 if 
 
3841
  test "x$enable_dependency_tracking" != xno \
 
3842
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
3843
  am__fastdepCC_TRUE=
 
3844
  am__fastdepCC_FALSE='#'
 
3845
else
 
3846
  am__fastdepCC_TRUE='#'
 
3847
  am__fastdepCC_FALSE=
 
3848
fi
 
3849
 
 
3850
 
 
3851
 
 
3852
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
 
3853
$as_echo_n "checking for library containing strerror... " >&6; }
 
3854
if ${ac_cv_search_strerror+:} false; then :
 
3855
  $as_echo_n "(cached) " >&6
 
3856
else
 
3857
  ac_func_search_save_LIBS=$LIBS
 
3858
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3859
/* end confdefs.h.  */
 
3860
 
 
3861
/* Override any GCC internal prototype to avoid an error.
 
3862
   Use char because int might match the return type of a GCC
 
3863
   builtin and then its argument prototype would still apply.  */
 
3864
#ifdef __cplusplus
 
3865
extern "C"
 
3866
#endif
 
3867
char strerror ();
 
3868
int
 
3869
main ()
 
3870
{
 
3871
return strerror ();
 
3872
  ;
 
3873
  return 0;
 
3874
}
 
3875
_ACEOF
 
3876
for ac_lib in '' cposix; do
 
3877
  if test -z "$ac_lib"; then
 
3878
    ac_res="none required"
 
3879
  else
 
3880
    ac_res=-l$ac_lib
 
3881
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
3882
  fi
 
3883
  if ac_fn_c_try_link "$LINENO"; then :
 
3884
  ac_cv_search_strerror=$ac_res
 
3885
fi
 
3886
rm -f core conftest.err conftest.$ac_objext \
 
3887
    conftest$ac_exeext
 
3888
  if ${ac_cv_search_strerror+:} false; then :
 
3889
  break
 
3890
fi
 
3891
done
 
3892
if ${ac_cv_search_strerror+:} false; then :
 
3893
  
 
3894
else
 
3895
  ac_cv_search_strerror=no
 
3896
fi
 
3897
rm conftest.$ac_ext
 
3898
LIBS=$ac_func_search_save_LIBS
 
3899
fi
 
3900
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
 
3901
$as_echo "$ac_cv_search_strerror" >&6; }
 
3902
ac_res=$ac_cv_search_strerror
 
3903
if test "$ac_res" != no; then :
 
3904
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
3905
  
 
3906
fi
 
3907
 
 
3908
CFLAGS="$saved_CFLAGS"
 
3909
ac_ext=c
 
3910
ac_cpp='$CPP $CPPFLAGS'
 
3911
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3912
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3913
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3914
if test -n "$ac_tool_prefix"; then
 
3915
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
3916
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
3917
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3918
$as_echo_n "checking for $ac_word... " >&6; }
 
3919
if ${ac_cv_prog_CC+:} false; then :
 
3920
  $as_echo_n "(cached) " >&6
 
3921
else
 
3922
  if test -n "$CC"; then
 
3923
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3924
else
 
3925
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3926
for as_dir in $PATH
 
3927
do
 
3928
  IFS=$as_save_IFS
 
3929
  test -z "$as_dir" && as_dir=.
 
3930
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3931
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3932
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
3933
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3934
    break 2
 
3935
  fi
 
3936
done
 
3937
  done
 
3938
IFS=$as_save_IFS
 
3939
 
 
3940
fi
 
3941
fi
 
3942
CC=$ac_cv_prog_CC
 
3943
if test -n "$CC"; then
 
3944
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3945
$as_echo "$CC" >&6; }
 
3946
else
 
3947
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3948
$as_echo "no" >&6; }
 
3949
fi
 
3950
 
 
3951
 
 
3952
fi
 
3953
if test -z "$ac_cv_prog_CC"; then
 
3954
  ac_ct_CC=$CC
 
3955
  # Extract the first word of "gcc", so it can be a program name with args.
 
3956
set dummy gcc; ac_word=$2
 
3957
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3958
$as_echo_n "checking for $ac_word... " >&6; }
 
3959
if ${ac_cv_prog_ac_ct_CC+:} false; then :
 
3960
  $as_echo_n "(cached) " >&6
 
3961
else
 
3962
  if test -n "$ac_ct_CC"; then
 
3963
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3964
else
 
3965
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3966
for as_dir in $PATH
 
3967
do
 
3968
  IFS=$as_save_IFS
 
3969
  test -z "$as_dir" && as_dir=.
 
3970
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3971
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3972
    ac_cv_prog_ac_ct_CC="gcc"
 
3973
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3974
    break 2
 
3975
  fi
 
3976
done
 
3977
  done
 
3978
IFS=$as_save_IFS
 
3979
 
 
3980
fi
 
3981
fi
 
3982
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3983
if test -n "$ac_ct_CC"; then
 
3984
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
3985
$as_echo "$ac_ct_CC" >&6; }
 
3986
else
 
3987
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3988
$as_echo "no" >&6; }
 
3989
fi
 
3990
 
 
3991
  if test "x$ac_ct_CC" = x; then
 
3992
    CC=""
 
3993
  else
 
3994
    case $cross_compiling:$ac_tool_warned in
 
3995
yes:)
 
3996
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
3997
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3998
ac_tool_warned=yes ;;
 
3999
esac
 
4000
    CC=$ac_ct_CC
 
4001
  fi
 
4002
else
 
4003
  CC="$ac_cv_prog_CC"
 
4004
fi
 
4005
 
 
4006
if test -z "$CC"; then
 
4007
          if test -n "$ac_tool_prefix"; then
 
4008
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
4009
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
4010
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4011
$as_echo_n "checking for $ac_word... " >&6; }
 
4012
if ${ac_cv_prog_CC+:} false; then :
 
4013
  $as_echo_n "(cached) " >&6
 
4014
else
 
4015
  if test -n "$CC"; then
 
4016
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
4017
else
 
4018
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4019
for as_dir in $PATH
 
4020
do
 
4021
  IFS=$as_save_IFS
 
4022
  test -z "$as_dir" && as_dir=.
 
4023
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4024
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4025
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
4026
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4027
    break 2
 
4028
  fi
 
4029
done
 
4030
  done
 
4031
IFS=$as_save_IFS
 
4032
 
 
4033
fi
 
4034
fi
 
4035
CC=$ac_cv_prog_CC
 
4036
if test -n "$CC"; then
 
4037
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
4038
$as_echo "$CC" >&6; }
 
4039
else
 
4040
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4041
$as_echo "no" >&6; }
 
4042
fi
 
4043
 
 
4044
 
 
4045
  fi
 
4046
fi
 
4047
if test -z "$CC"; then
 
4048
  # Extract the first word of "cc", so it can be a program name with args.
 
4049
set dummy cc; ac_word=$2
 
4050
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4051
$as_echo_n "checking for $ac_word... " >&6; }
 
4052
if ${ac_cv_prog_CC+:} false; then :
 
4053
  $as_echo_n "(cached) " >&6
 
4054
else
 
4055
  if test -n "$CC"; then
 
4056
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
4057
else
 
4058
  ac_prog_rejected=no
 
4059
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4060
for as_dir in $PATH
 
4061
do
 
4062
  IFS=$as_save_IFS
 
4063
  test -z "$as_dir" && as_dir=.
 
4064
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4065
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4066
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
4067
       ac_prog_rejected=yes
 
4068
       continue
 
4069
     fi
 
4070
    ac_cv_prog_CC="cc"
 
4071
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4072
    break 2
 
4073
  fi
 
4074
done
 
4075
  done
 
4076
IFS=$as_save_IFS
 
4077
 
 
4078
if test $ac_prog_rejected = yes; then
 
4079
  # We found a bogon in the path, so make sure we never use it.
 
4080
  set dummy $ac_cv_prog_CC
 
4081
  shift
 
4082
  if test $@%:@ != 0; then
 
4083
    # We chose a different compiler from the bogus one.
 
4084
    # However, it has the same basename, so the bogon will be chosen
 
4085
    # first if we set CC to just the basename; use the full file name.
 
4086
    shift
 
4087
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
4088
  fi
 
4089
fi
 
4090
fi
 
4091
fi
 
4092
CC=$ac_cv_prog_CC
 
4093
if test -n "$CC"; then
 
4094
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
4095
$as_echo "$CC" >&6; }
 
4096
else
 
4097
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4098
$as_echo "no" >&6; }
 
4099
fi
 
4100
 
 
4101
 
 
4102
fi
 
4103
if test -z "$CC"; then
 
4104
  if test -n "$ac_tool_prefix"; then
 
4105
  for ac_prog in cl.exe
 
4106
  do
 
4107
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
4108
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
4109
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4110
$as_echo_n "checking for $ac_word... " >&6; }
 
4111
if ${ac_cv_prog_CC+:} false; then :
 
4112
  $as_echo_n "(cached) " >&6
 
4113
else
 
4114
  if test -n "$CC"; then
 
4115
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
4116
else
 
4117
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4118
for as_dir in $PATH
 
4119
do
 
4120
  IFS=$as_save_IFS
 
4121
  test -z "$as_dir" && as_dir=.
 
4122
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4123
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4124
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
4125
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4126
    break 2
 
4127
  fi
 
4128
done
 
4129
  done
 
4130
IFS=$as_save_IFS
 
4131
 
 
4132
fi
 
4133
fi
 
4134
CC=$ac_cv_prog_CC
 
4135
if test -n "$CC"; then
 
4136
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
4137
$as_echo "$CC" >&6; }
 
4138
else
 
4139
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4140
$as_echo "no" >&6; }
 
4141
fi
 
4142
 
 
4143
 
 
4144
    test -n "$CC" && break
 
4145
  done
 
4146
fi
 
4147
if test -z "$CC"; then
 
4148
  ac_ct_CC=$CC
 
4149
  for ac_prog in cl.exe
 
4150
do
 
4151
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4152
set dummy $ac_prog; ac_word=$2
 
4153
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4154
$as_echo_n "checking for $ac_word... " >&6; }
 
4155
if ${ac_cv_prog_ac_ct_CC+:} false; then :
 
4156
  $as_echo_n "(cached) " >&6
 
4157
else
 
4158
  if test -n "$ac_ct_CC"; then
 
4159
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
4160
else
 
4161
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4162
for as_dir in $PATH
 
4163
do
 
4164
  IFS=$as_save_IFS
 
4165
  test -z "$as_dir" && as_dir=.
 
4166
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4167
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4168
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
4169
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4170
    break 2
 
4171
  fi
 
4172
done
 
4173
  done
 
4174
IFS=$as_save_IFS
 
4175
 
 
4176
fi
 
4177
fi
 
4178
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
4179
if test -n "$ac_ct_CC"; then
 
4180
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
4181
$as_echo "$ac_ct_CC" >&6; }
 
4182
else
 
4183
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4184
$as_echo "no" >&6; }
 
4185
fi
 
4186
 
 
4187
 
 
4188
  test -n "$ac_ct_CC" && break
 
4189
done
 
4190
 
 
4191
  if test "x$ac_ct_CC" = x; then
 
4192
    CC=""
 
4193
  else
 
4194
    case $cross_compiling:$ac_tool_warned in
 
4195
yes:)
 
4196
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
4197
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
4198
ac_tool_warned=yes ;;
 
4199
esac
 
4200
    CC=$ac_ct_CC
 
4201
  fi
 
4202
fi
 
4203
 
 
4204
fi
 
4205
 
 
4206
 
 
4207
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
4208
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
4209
as_fn_error $? "no acceptable C compiler found in \$PATH
 
4210
See \`config.log' for more details" "$LINENO" 5; }
 
4211
 
 
4212
# Provide some information about the compiler.
 
4213
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 
4214
set X $ac_compile
 
4215
ac_compiler=$2
 
4216
for ac_option in --version -v -V -qversion; do
 
4217
  { { ac_try="$ac_compiler $ac_option >&5"
 
4218
case "(($ac_try" in
 
4219
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4220
  *) ac_try_echo=$ac_try;;
 
4221
esac
 
4222
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4223
$as_echo "$ac_try_echo"; } >&5
 
4224
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
4225
  ac_status=$?
 
4226
  if test -s conftest.err; then
 
4227
    sed '10a\
 
4228
... rest of stderr output deleted ...
 
4229
         10q' conftest.err >conftest.er1
 
4230
    cat conftest.er1 >&5
 
4231
  fi
 
4232
  rm -f conftest.er1 conftest.err
 
4233
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4234
  test $ac_status = 0; }
 
4235
done
 
4236
 
 
4237
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
 
4238
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 
4239
if ${ac_cv_c_compiler_gnu+:} false; then :
 
4240
  $as_echo_n "(cached) " >&6
 
4241
else
 
4242
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4243
/* end confdefs.h.  */
 
4244
 
 
4245
int
 
4246
main ()
 
4247
{
 
4248
#ifndef __GNUC__
 
4249
       choke me
 
4250
#endif
 
4251
 
 
4252
  ;
 
4253
  return 0;
 
4254
}
 
4255
_ACEOF
 
4256
if ac_fn_c_try_compile "$LINENO"; then :
 
4257
  ac_compiler_gnu=yes
 
4258
else
 
4259
  ac_compiler_gnu=no
 
4260
fi
 
4261
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4262
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
4263
 
 
4264
fi
 
4265
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
 
4266
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
 
4267
if test $ac_compiler_gnu = yes; then
 
4268
  GCC=yes
 
4269
else
 
4270
  GCC=
 
4271
fi
 
4272
ac_test_CFLAGS=${CFLAGS+set}
 
4273
ac_save_CFLAGS=$CFLAGS
 
4274
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
 
4275
$as_echo_n "checking whether $CC accepts -g... " >&6; }
 
4276
if ${ac_cv_prog_cc_g+:} false; then :
 
4277
  $as_echo_n "(cached) " >&6
 
4278
else
 
4279
  ac_save_c_werror_flag=$ac_c_werror_flag
 
4280
   ac_c_werror_flag=yes
 
4281
   ac_cv_prog_cc_g=no
 
4282
   CFLAGS="-g"
 
4283
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4284
/* end confdefs.h.  */
 
4285
 
 
4286
int
 
4287
main ()
 
4288
{
 
4289
 
 
4290
  ;
 
4291
  return 0;
 
4292
}
 
4293
_ACEOF
 
4294
if ac_fn_c_try_compile "$LINENO"; then :
 
4295
  ac_cv_prog_cc_g=yes
 
4296
else
 
4297
  CFLAGS=""
 
4298
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4299
/* end confdefs.h.  */
 
4300
 
 
4301
int
 
4302
main ()
 
4303
{
 
4304
 
 
4305
  ;
 
4306
  return 0;
 
4307
}
 
4308
_ACEOF
 
4309
if ac_fn_c_try_compile "$LINENO"; then :
 
4310
  
 
4311
else
 
4312
  ac_c_werror_flag=$ac_save_c_werror_flag
 
4313
         CFLAGS="-g"
 
4314
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4315
/* end confdefs.h.  */
 
4316
 
 
4317
int
 
4318
main ()
 
4319
{
 
4320
 
 
4321
  ;
 
4322
  return 0;
 
4323
}
 
4324
_ACEOF
 
4325
if ac_fn_c_try_compile "$LINENO"; then :
 
4326
  ac_cv_prog_cc_g=yes
 
4327
fi
 
4328
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4329
fi
 
4330
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4331
fi
 
4332
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4333
   ac_c_werror_flag=$ac_save_c_werror_flag
 
4334
fi
 
4335
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
 
4336
$as_echo "$ac_cv_prog_cc_g" >&6; }
 
4337
if test "$ac_test_CFLAGS" = set; then
 
4338
  CFLAGS=$ac_save_CFLAGS
 
4339
elif test $ac_cv_prog_cc_g = yes; then
 
4340
  if test "$GCC" = yes; then
 
4341
    CFLAGS="-g -O2"
 
4342
  else
 
4343
    CFLAGS="-g"
 
4344
  fi
 
4345
else
 
4346
  if test "$GCC" = yes; then
 
4347
    CFLAGS="-O2"
 
4348
  else
 
4349
    CFLAGS=
 
4350
  fi
 
4351
fi
 
4352
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
 
4353
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 
4354
if ${ac_cv_prog_cc_c89+:} false; then :
 
4355
  $as_echo_n "(cached) " >&6
 
4356
else
 
4357
  ac_cv_prog_cc_c89=no
 
4358
ac_save_CC=$CC
 
4359
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4360
/* end confdefs.h.  */
 
4361
#include <stdarg.h>
 
4362
#include <stdio.h>
 
4363
struct stat;
 
4364
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
4365
struct buf { int x; };
 
4366
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
4367
static char *e (p, i)
 
4368
     char **p;
 
4369
     int i;
 
4370
{
 
4371
  return p[i];
 
4372
}
 
4373
static char *f (char * (*g) (char **, int), char **p, ...)
 
4374
{
 
4375
  char *s;
 
4376
  va_list v;
 
4377
  va_start (v,p);
 
4378
  s = g (p, va_arg (v,int));
 
4379
  va_end (v);
 
4380
  return s;
 
4381
}
 
4382
 
 
4383
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
4384
   function prototypes and stuff, but not '\xHH' hex character constants.
 
4385
   These don't provoke an error unfortunately, instead are silently treated
 
4386
   as 'x'.  The following induces an error, until -std is added to get
 
4387
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
4388
   array size at least.  It's necessary to write '\x00'==0 to get something
 
4389
   that's true only with -std.  */
 
4390
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
4391
 
 
4392
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
4393
   inside strings and character constants.  */
 
4394
#define FOO(x) 'x'
 
4395
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
4396
 
 
4397
int test (int i, double x);
 
4398
struct s1 {int (*f) (int a);};
 
4399
struct s2 {int (*f) (double a);};
 
4400
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
4401
int argc;
 
4402
char **argv;
 
4403
int
 
4404
main ()
 
4405
{
 
4406
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
4407
  ;
 
4408
  return 0;
 
4409
}
 
4410
_ACEOF
 
4411
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
4412
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
4413
do
 
4414
  CC="$ac_save_CC $ac_arg"
 
4415
  if ac_fn_c_try_compile "$LINENO"; then :
 
4416
  ac_cv_prog_cc_c89=$ac_arg
 
4417
fi
 
4418
rm -f core conftest.err conftest.$ac_objext
 
4419
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
4420
done
 
4421
rm -f conftest.$ac_ext
 
4422
CC=$ac_save_CC
 
4423
 
 
4424
fi
 
4425
# AC_CACHE_VAL
 
4426
case "x$ac_cv_prog_cc_c89" in
 
4427
  x)
 
4428
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 
4429
$as_echo "none needed" >&6; } ;;
 
4430
  xno)
 
4431
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 
4432
$as_echo "unsupported" >&6; } ;;
 
4433
  *)
 
4434
    CC="$CC $ac_cv_prog_cc_c89"
 
4435
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 
4436
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 
4437
esac
 
4438
if test "x$ac_cv_prog_cc_c89" != xno; then :
 
4439
  
 
4440
fi
 
4441
 
 
4442
ac_ext=c
 
4443
ac_cpp='$CPP $CPPFLAGS'
 
4444
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4445
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4446
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4447
 
 
4448
depcc="$CC"   am_compiler_list=
 
4449
 
 
4450
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
4451
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
4452
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
 
4453
  $as_echo_n "(cached) " >&6
 
4454
else
 
4455
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
4456
  # We make a subdir and do the tests there.  Otherwise we can end up
 
4457
  # making bogus files that we don't know about and never remove.  For
 
4458
  # instance it was reported that on HP-UX the gcc test will end up
 
4459
  # making a dummy file named `D' -- because `-MD' means `put the output
 
4460
  # in D'.
 
4461
  rm -rf conftest.dir
 
4462
  mkdir conftest.dir
 
4463
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
4464
  # using a relative directory.
 
4465
  cp "$am_depcomp" conftest.dir
 
4466
  cd conftest.dir
 
4467
  # We will build objects and dependencies in a subdirectory because
 
4468
  # it helps to detect inapplicable dependency modes.  For instance
 
4469
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
4470
  # side effect of compilation, but ICC will put the dependencies in
 
4471
  # the current directory while Tru64 will put them in the object
 
4472
  # directory.
 
4473
  mkdir sub
 
4474
 
 
4475
  am_cv_CC_dependencies_compiler_type=none
 
4476
  if test "$am_compiler_list" = ""; then
 
4477
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
4478
  fi
 
4479
  am__universal=false
 
4480
  case " $depcc " in #(
 
4481
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
4482
     esac
 
4483
 
 
4484
  for depmode in $am_compiler_list; do
 
4485
    # Setup a source with many dependencies, because some compilers
 
4486
    # like to wrap large dependency lists on column 80 (with \), and
 
4487
    # we should not choose a depcomp mode which is confused by this.
 
4488
    #
 
4489
    # We need to recreate these files for each test, as the compiler may
 
4490
    # overwrite some of them when testing with obscure command lines.
 
4491
    # This happens at least with the AIX C compiler.
 
4492
    : > sub/conftest.c
 
4493
    for i in 1 2 3 4 5 6; do
 
4494
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
4495
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
4496
      # Solaris 8's {/usr,}/bin/sh.
 
4497
      touch sub/conftst$i.h
 
4498
    done
 
4499
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
4500
 
 
4501
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
4502
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
4503
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
4504
    # versions had trouble with output in subdirs
 
4505
    am__obj=sub/conftest.${OBJEXT-o}
 
4506
    am__minus_obj="-o $am__obj"
 
4507
    case $depmode in
 
4508
    gcc)
 
4509
      # This depmode causes a compiler race in universal mode.
 
4510
      test "$am__universal" = false || continue
 
4511
      ;;
 
4512
    nosideeffect)
 
4513
      # after this tag, mechanisms are not by side-effect, so they'll
 
4514
      # only be used when explicitly requested
 
4515
      if test "x$enable_dependency_tracking" = xyes; then
 
4516
        continue
 
4517
      else
 
4518
        break
 
4519
      fi
 
4520
      ;;
 
4521
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
 
4522
      # This compiler won't grok `-c -o', but also, the minuso test has
 
4523
      # not run yet.  These depmodes are late enough in the game, and
 
4524
      # so weak that their functioning should not be impacted.
 
4525
      am__obj=conftest.${OBJEXT-o}
 
4526
      am__minus_obj=
 
4527
      ;;
 
4528
    none) break ;;
 
4529
    esac
 
4530
    if depmode=$depmode \
 
4531
       source=sub/conftest.c object=$am__obj \
 
4532
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
4533
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
4534
         >/dev/null 2>conftest.err &&
 
4535
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
4536
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
4537
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
4538
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
4539
      # icc doesn't choke on unknown options, it will just issue warnings
 
4540
      # or remarks (even with -Werror).  So we grep stderr for any message
 
4541
      # that says an option was ignored or not supported.
 
4542
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
4543
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
4544
      # The diagnosis changed in icc 8.0:
 
4545
      #   icc: Command line remark: option '-MP' not supported
 
4546
      if (grep 'ignoring option' conftest.err ||
 
4547
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
4548
        am_cv_CC_dependencies_compiler_type=$depmode
 
4549
        break
 
4550
      fi
 
4551
    fi
 
4552
  done
 
4553
 
 
4554
  cd ..
 
4555
  rm -rf conftest.dir
 
4556
else
 
4557
  am_cv_CC_dependencies_compiler_type=none
 
4558
fi
 
4559
 
 
4560
fi
 
4561
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
 
4562
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
 
4563
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
4564
 
 
4565
 if 
 
4566
  test "x$enable_dependency_tracking" != xno \
 
4567
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
4568
  am__fastdepCC_TRUE=
 
4569
  am__fastdepCC_FALSE='#'
 
4570
else
 
4571
  am__fastdepCC_TRUE='#'
 
4572
  am__fastdepCC_FALSE=
 
4573
fi
 
4574
 
 
4575
 
 
4576
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
4577
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
 
4578
set x ${MAKE-make}
 
4579
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
4580
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
 
4581
  $as_echo_n "(cached) " >&6
 
4582
else
 
4583
  cat >conftest.make <<\_ACEOF
 
4584
SHELL = /bin/sh
 
4585
all:
 
4586
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
4587
_ACEOF
 
4588
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
 
4589
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
4590
  *@@@%%%=?*=@@@%%%*)
 
4591
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
4592
  *)
 
4593
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
4594
esac
 
4595
rm -f conftest.make
 
4596
fi
 
4597
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
4598
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
4599
$as_echo "yes" >&6; }
 
4600
  SET_MAKE=
 
4601
else
 
4602
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4603
$as_echo "no" >&6; }
 
4604
  SET_MAKE="MAKE=${MAKE-make}"
 
4605
fi
 
4606
 
 
4607
 
 
4608
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
 
4609
$as_echo_n "checking whether ln -s works... " >&6; }
 
4610
LN_S=$as_ln_s
 
4611
if test "$LN_S" = "ln -s"; then
 
4612
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
4613
$as_echo "yes" >&6; }
 
4614
else
 
4615
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
 
4616
$as_echo "no, using $LN_S" >&6; }
 
4617
fi
 
4618
 
 
4619
 
 
4620
enable_dlopen=yes
 
4621
 
 
4622
 
 
4623
 
 
4624
@%:@ Check whether --enable-static was given.
 
4625
if test "${enable_static+set}" = set; then :
 
4626
  enableval=$enable_static; p=${PACKAGE-default}
 
4627
    case $enableval in
 
4628
    yes) enable_static=yes ;;
 
4629
    no) enable_static=no ;;
 
4630
    *)
 
4631
     enable_static=no
 
4632
      # Look at the argument we got.  We use all the common list separators.
 
4633
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
4634
      for pkg in $enableval; do
 
4635
        IFS="$lt_save_ifs"
 
4636
        if test "X$pkg" = "X$p"; then
 
4637
          enable_static=yes
 
4638
        fi
 
4639
      done
 
4640
      IFS="$lt_save_ifs"
 
4641
      ;;
 
4642
    esac
 
4643
else
 
4644
  enable_static=no
 
4645
fi
 
4646
 
 
4647
 
 
4648
    
 
4649
    
 
4650
    
 
4651
    
 
4652
 
 
4653
 
 
4654
 
 
4655
case `pwd` in
 
4656
  *\ * | *\     *)
 
4657
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
 
4658
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
 
4659
esac
 
4660
 
 
4661
 
 
4662
 
 
4663
macro_version='2.4.2'
 
4664
macro_revision='1.3337'
 
4665
 
 
4666
    
 
4667
    
 
4668
    
 
4669
 
 
4670
 
 
4671
    
 
4672
    
 
4673
    
 
4674
 
 
4675
 
 
4676
 
 
4677
 
 
4678
ltmain="$ac_aux_dir/ltmain.sh"
 
4679
 
 
4680
# Backslashify metacharacters that are still active within
 
4681
# double-quoted strings.
 
4682
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
 
4683
 
 
4684
# Same as above, but do not quote variable references.
 
4685
double_quote_subst='s/\(["`\\]\)/\\\1/g'
 
4686
 
 
4687
# Sed substitution to delay expansion of an escaped shell variable in a
 
4688
# double_quote_subst'ed string.
 
4689
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
4690
 
 
4691
# Sed substitution to delay expansion of an escaped single quote.
 
4692
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
 
4693
 
 
4694
# Sed substitution to avoid accidental globbing in evaled expressions
 
4695
no_glob_subst='s/\*/\\\*/g'
 
4696
 
 
4697
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
4698
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
 
4699
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
 
4700
 
 
4701
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
 
4702
$as_echo_n "checking how to print strings... " >&6; }
 
4703
# Test print first, because it will be a builtin if present.
 
4704
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
 
4705
   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
 
4706
  ECHO='print -r --'
 
4707
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
 
4708
  ECHO='printf %s\n'
 
4709
else
 
4710
  # Use this function as a fallback that always works.
 
4711
  func_fallback_echo ()
 
4712
  {
 
4713
    eval 'cat <<_LTECHO_EOF
 
4714
$1
 
4715
_LTECHO_EOF'
 
4716
  }
 
4717
  ECHO='func_fallback_echo'
 
4718
fi
 
4719
 
 
4720
# func_echo_all arg...
 
4721
# Invoke $ECHO with all args, space-separated.
 
4722
func_echo_all ()
 
4723
{
 
4724
    $ECHO "" 
 
4725
}
 
4726
 
 
4727
case "$ECHO" in
 
4728
  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
 
4729
$as_echo "printf" >&6; } ;;
 
4730
  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
 
4731
$as_echo "print -r" >&6; } ;;
 
4732
  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
 
4733
$as_echo "cat" >&6; } ;;
 
4734
esac
 
4735
 
 
4736
 
 
4737
 
 
4738
 
 
4739
    
 
4740
    
 
4741
    
 
4742
 
 
4743
 
 
4744
    
 
4745
    
 
4746
    
 
4747
 
 
4748
 
 
4749
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
 
4750
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
 
4751
if ${ac_cv_path_SED+:} false; then :
 
4752
  $as_echo_n "(cached) " >&6
 
4753
else
 
4754
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
 
4755
     for ac_i in 1 2 3 4 5 6 7; do
 
4756
       ac_script="$ac_script$as_nl$ac_script"
 
4757
     done
 
4758
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
 
4759
     { ac_script=; unset ac_script;}
 
4760
     if test -z "$SED"; then
 
4761
  ac_path_SED_found=false
 
4762
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4763
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4764
for as_dir in $PATH
 
4765
do
 
4766
  IFS=$as_save_IFS
 
4767
  test -z "$as_dir" && as_dir=.
 
4768
    for ac_prog in sed gsed; do
 
4769
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4770
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
 
4771
      as_fn_executable_p "$ac_path_SED" || continue
 
4772
# Check for GNU ac_path_SED and select it if it is found.
 
4773
  # Check for GNU $ac_path_SED
 
4774
case `"$ac_path_SED" --version 2>&1` in
 
4775
*GNU*)
 
4776
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
 
4777
*)
 
4778
  ac_count=0
 
4779
  $as_echo_n 0123456789 >"conftest.in"
 
4780
  while :
 
4781
  do
 
4782
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4783
    mv "conftest.tmp" "conftest.in"
 
4784
    cp "conftest.in" "conftest.nl"
 
4785
    $as_echo '' >> "conftest.nl"
 
4786
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4787
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4788
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4789
    if test $ac_count -gt ${ac_path_SED_max-0}; then
 
4790
      # Best one so far, save it but keep looking for a better one
 
4791
      ac_cv_path_SED="$ac_path_SED"
 
4792
      ac_path_SED_max=$ac_count
 
4793
    fi
 
4794
    # 10*(2^10) chars as input seems more than enough
 
4795
    test $ac_count -gt 10 && break
 
4796
  done
 
4797
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4798
esac
 
4799
 
 
4800
      $ac_path_SED_found && break 3
 
4801
    done
 
4802
  done
 
4803
  done
 
4804
IFS=$as_save_IFS
 
4805
  if test -z "$ac_cv_path_SED"; then
 
4806
    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
 
4807
  fi
 
4808
else
 
4809
  ac_cv_path_SED=$SED
 
4810
fi
 
4811
 
 
4812
fi
 
4813
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
 
4814
$as_echo "$ac_cv_path_SED" >&6; }
 
4815
 SED="$ac_cv_path_SED"
 
4816
  rm -f conftest.sed
 
4817
 
 
4818
test -z "$SED" && SED=sed
 
4819
Xsed="$SED -e 1s/^X//"
 
4820
 
 
4821
    
 
4822
    
 
4823
    
 
4824
 
 
4825
 
 
4826
    
 
4827
    
 
4828
    
 
4829
 
 
4830
 
 
4831
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
 
4832
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
 
4833
if ${ac_cv_path_GREP+:} false; then :
 
4834
  $as_echo_n "(cached) " >&6
 
4835
else
 
4836
  if test -z "$GREP"; then
 
4837
  ac_path_GREP_found=false
 
4838
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4839
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4840
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4841
do
 
4842
  IFS=$as_save_IFS
 
4843
  test -z "$as_dir" && as_dir=.
 
4844
    for ac_prog in grep ggrep; do
 
4845
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4846
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
4847
      as_fn_executable_p "$ac_path_GREP" || continue
 
4848
# Check for GNU ac_path_GREP and select it if it is found.
 
4849
  # Check for GNU $ac_path_GREP
 
4850
case `"$ac_path_GREP" --version 2>&1` in
 
4851
*GNU*)
 
4852
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
4853
*)
 
4854
  ac_count=0
 
4855
  $as_echo_n 0123456789 >"conftest.in"
 
4856
  while :
 
4857
  do
 
4858
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4859
    mv "conftest.tmp" "conftest.in"
 
4860
    cp "conftest.in" "conftest.nl"
 
4861
    $as_echo 'GREP' >> "conftest.nl"
 
4862
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4863
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4864
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4865
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
4866
      # Best one so far, save it but keep looking for a better one
 
4867
      ac_cv_path_GREP="$ac_path_GREP"
 
4868
      ac_path_GREP_max=$ac_count
 
4869
    fi
 
4870
    # 10*(2^10) chars as input seems more than enough
 
4871
    test $ac_count -gt 10 && break
 
4872
  done
 
4873
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4874
esac
 
4875
 
 
4876
      $ac_path_GREP_found && break 3
 
4877
    done
 
4878
  done
 
4879
  done
 
4880
IFS=$as_save_IFS
 
4881
  if test -z "$ac_cv_path_GREP"; then
 
4882
    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
4883
  fi
 
4884
else
 
4885
  ac_cv_path_GREP=$GREP
 
4886
fi
 
4887
 
 
4888
fi
 
4889
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
 
4890
$as_echo "$ac_cv_path_GREP" >&6; }
 
4891
 GREP="$ac_cv_path_GREP"
 
4892
 
 
4893
 
 
4894
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
 
4895
$as_echo_n "checking for egrep... " >&6; }
 
4896
if ${ac_cv_path_EGREP+:} false; then :
 
4897
  $as_echo_n "(cached) " >&6
 
4898
else
 
4899
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
4900
   then ac_cv_path_EGREP="$GREP -E"
 
4901
   else
 
4902
     if test -z "$EGREP"; then
 
4903
  ac_path_EGREP_found=false
 
4904
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4905
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4906
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4907
do
 
4908
  IFS=$as_save_IFS
 
4909
  test -z "$as_dir" && as_dir=.
 
4910
    for ac_prog in egrep; do
 
4911
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4912
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
4913
      as_fn_executable_p "$ac_path_EGREP" || continue
 
4914
# Check for GNU ac_path_EGREP and select it if it is found.
 
4915
  # Check for GNU $ac_path_EGREP
 
4916
case `"$ac_path_EGREP" --version 2>&1` in
 
4917
*GNU*)
 
4918
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
4919
*)
 
4920
  ac_count=0
 
4921
  $as_echo_n 0123456789 >"conftest.in"
 
4922
  while :
 
4923
  do
 
4924
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4925
    mv "conftest.tmp" "conftest.in"
 
4926
    cp "conftest.in" "conftest.nl"
 
4927
    $as_echo 'EGREP' >> "conftest.nl"
 
4928
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4929
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4930
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4931
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
4932
      # Best one so far, save it but keep looking for a better one
 
4933
      ac_cv_path_EGREP="$ac_path_EGREP"
 
4934
      ac_path_EGREP_max=$ac_count
 
4935
    fi
 
4936
    # 10*(2^10) chars as input seems more than enough
 
4937
    test $ac_count -gt 10 && break
 
4938
  done
 
4939
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4940
esac
 
4941
 
 
4942
      $ac_path_EGREP_found && break 3
 
4943
    done
 
4944
  done
 
4945
  done
 
4946
IFS=$as_save_IFS
 
4947
  if test -z "$ac_cv_path_EGREP"; then
 
4948
    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
4949
  fi
 
4950
else
 
4951
  ac_cv_path_EGREP=$EGREP
 
4952
fi
 
4953
 
 
4954
   fi
 
4955
fi
 
4956
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
 
4957
$as_echo "$ac_cv_path_EGREP" >&6; }
 
4958
 EGREP="$ac_cv_path_EGREP"
 
4959
 
 
4960
 
 
4961
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
 
4962
$as_echo_n "checking for fgrep... " >&6; }
 
4963
if ${ac_cv_path_FGREP+:} false; then :
 
4964
  $as_echo_n "(cached) " >&6
 
4965
else
 
4966
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
 
4967
   then ac_cv_path_FGREP="$GREP -F"
 
4968
   else
 
4969
     if test -z "$FGREP"; then
 
4970
  ac_path_FGREP_found=false
 
4971
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4972
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4973
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4974
do
 
4975
  IFS=$as_save_IFS
 
4976
  test -z "$as_dir" && as_dir=.
 
4977
    for ac_prog in fgrep; do
 
4978
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4979
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
 
4980
      as_fn_executable_p "$ac_path_FGREP" || continue
 
4981
# Check for GNU ac_path_FGREP and select it if it is found.
 
4982
  # Check for GNU $ac_path_FGREP
 
4983
case `"$ac_path_FGREP" --version 2>&1` in
 
4984
*GNU*)
 
4985
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
 
4986
*)
 
4987
  ac_count=0
 
4988
  $as_echo_n 0123456789 >"conftest.in"
 
4989
  while :
 
4990
  do
 
4991
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4992
    mv "conftest.tmp" "conftest.in"
 
4993
    cp "conftest.in" "conftest.nl"
 
4994
    $as_echo 'FGREP' >> "conftest.nl"
 
4995
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4996
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4997
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4998
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
 
4999
      # Best one so far, save it but keep looking for a better one
 
5000
      ac_cv_path_FGREP="$ac_path_FGREP"
 
5001
      ac_path_FGREP_max=$ac_count
 
5002
    fi
 
5003
    # 10*(2^10) chars as input seems more than enough
 
5004
    test $ac_count -gt 10 && break
 
5005
  done
 
5006
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
5007
esac
 
5008
 
 
5009
      $ac_path_FGREP_found && break 3
 
5010
    done
 
5011
  done
 
5012
  done
 
5013
IFS=$as_save_IFS
 
5014
  if test -z "$ac_cv_path_FGREP"; then
 
5015
    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
5016
  fi
 
5017
else
 
5018
  ac_cv_path_FGREP=$FGREP
 
5019
fi
 
5020
 
 
5021
   fi
 
5022
fi
 
5023
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
 
5024
$as_echo "$ac_cv_path_FGREP" >&6; }
 
5025
 FGREP="$ac_cv_path_FGREP"
 
5026
 
 
5027
 
 
5028
test -z "$GREP" && GREP=grep
 
5029
 
 
5030
    
 
5031
    
 
5032
    
 
5033
 
 
5034
 
 
5035
    
 
5036
    
 
5037
    
 
5038
 
 
5039
 
 
5040
    
 
5041
    
 
5042
    
 
5043
 
 
5044
 
 
5045
 
 
5046
 
 
5047
 
 
5048
@%:@ Check whether --with-gnu-ld was given.
 
5049
if test "${with_gnu_ld+set}" = set; then :
 
5050
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
5051
else
 
5052
  with_gnu_ld=no
 
5053
fi
 
5054
 
 
5055
ac_prog=ld
 
5056
if test "$GCC" = yes; then
 
5057
  # Check if gcc -print-prog-name=ld gives a path.
 
5058
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
 
5059
$as_echo_n "checking for ld used by $CC... " >&6; }
 
5060
  case $host in
 
5061
  *-*-mingw*)
 
5062
    # gcc leaves a trailing carriage return which upsets mingw
 
5063
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
5064
  *)
 
5065
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
5066
  esac
 
5067
  case $ac_prog in
 
5068
    # Accept absolute paths.
 
5069
    [\\/]* | ?:[\\/]*)
 
5070
      re_direlt='/[^/][^/]*/\.\./'
 
5071
      # Canonicalize the pathname of ld
 
5072
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 
5073
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 
5074
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
 
5075
      done
 
5076
      test -z "$LD" && LD="$ac_prog"
 
5077
      ;;
 
5078
  "")
 
5079
    # If it fails, then pretend we aren't using GCC.
 
5080
    ac_prog=ld
 
5081
    ;;
 
5082
  *)
 
5083
    # If it is relative, then search for the first ld in PATH.
 
5084
    with_gnu_ld=unknown
 
5085
    ;;
 
5086
  esac
 
5087
elif test "$with_gnu_ld" = yes; then
 
5088
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
 
5089
$as_echo_n "checking for GNU ld... " >&6; }
 
5090
else
 
5091
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
 
5092
$as_echo_n "checking for non-GNU ld... " >&6; }
 
5093
fi
 
5094
if ${lt_cv_path_LD+:} false; then :
 
5095
  $as_echo_n "(cached) " >&6
 
5096
else
 
5097
  if test -z "$LD"; then
 
5098
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
5099
  for ac_dir in $PATH; do
 
5100
    IFS="$lt_save_ifs"
 
5101
    test -z "$ac_dir" && ac_dir=.
 
5102
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
5103
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
5104
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
5105
      # but apparently some variants of GNU ld only accept -v.
 
5106
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
5107
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
5108
      *GNU* | *'with BFD'*)
 
5109
        test "$with_gnu_ld" != no && break
 
5110
        ;;
 
5111
      *)
 
5112
        test "$with_gnu_ld" != yes && break
 
5113
        ;;
 
5114
      esac
 
5115
    fi
 
5116
  done
 
5117
  IFS="$lt_save_ifs"
 
5118
else
 
5119
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
5120
fi
 
5121
fi
 
5122
 
 
5123
LD="$lt_cv_path_LD"
 
5124
if test -n "$LD"; then
 
5125
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
 
5126
$as_echo "$LD" >&6; }
 
5127
else
 
5128
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5129
$as_echo "no" >&6; }
 
5130
fi
 
5131
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
 
5132
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
 
5133
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 
5134
if ${lt_cv_prog_gnu_ld+:} false; then :
 
5135
  $as_echo_n "(cached) " >&6
 
5136
else
 
5137
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
5138
case `$LD -v 2>&1 </dev/null` in
 
5139
*GNU* | *'with BFD'*)
 
5140
  lt_cv_prog_gnu_ld=yes
 
5141
  ;;
 
5142
*)
 
5143
  lt_cv_prog_gnu_ld=no
 
5144
  ;;
 
5145
esac
 
5146
fi
 
5147
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
 
5148
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
 
5149
with_gnu_ld=$lt_cv_prog_gnu_ld
 
5150
 
 
5151
 
 
5152
 
 
5153
 
 
5154
    
 
5155
    
 
5156
    
 
5157
 
 
5158
 
 
5159
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
 
5160
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
 
5161
if ${lt_cv_path_NM+:} false; then :
 
5162
  $as_echo_n "(cached) " >&6
 
5163
else
 
5164
  if test -n "$NM"; then
 
5165
  # Let the user override the test.
 
5166
  lt_cv_path_NM="$NM"
 
5167
else
 
5168
  lt_nm_to_check="${ac_tool_prefix}nm"
 
5169
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
5170
    lt_nm_to_check="$lt_nm_to_check nm"
 
5171
  fi
 
5172
  for lt_tmp_nm in $lt_nm_to_check; do
 
5173
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
5174
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
5175
      IFS="$lt_save_ifs"
 
5176
      test -z "$ac_dir" && ac_dir=.
 
5177
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
5178
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
5179
        # Check to see if the nm accepts a BSD-compat flag.
 
5180
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
5181
        #   nm: unknown option "B" ignored
 
5182
        # Tru64's nm complains that /dev/null is an invalid object file
 
5183
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
5184
        */dev/null* | *'Invalid file or object type'*)
 
5185
          lt_cv_path_NM="$tmp_nm -B"
 
5186
          break
 
5187
          ;;
 
5188
        *)
 
5189
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
5190
          */dev/null*)
 
5191
            lt_cv_path_NM="$tmp_nm -p"
 
5192
            break
 
5193
            ;;
 
5194
          *)
 
5195
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
5196
            continue # so that we can try to find one that supports BSD flags
 
5197
            ;;
 
5198
          esac
 
5199
          ;;
 
5200
        esac
 
5201
      fi
 
5202
    done
 
5203
    IFS="$lt_save_ifs"
 
5204
  done
 
5205
  : ${lt_cv_path_NM=no}
 
5206
fi
 
5207
fi
 
5208
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
 
5209
$as_echo "$lt_cv_path_NM" >&6; }
 
5210
if test "$lt_cv_path_NM" != "no"; then
 
5211
  NM="$lt_cv_path_NM"
 
5212
else
 
5213
  # Didn't find any BSD compatible name lister, look for dumpbin.
 
5214
  if test -n "$DUMPBIN"; then :
 
5215
    # Let the user override the test.
 
5216
  else
 
5217
    if test -n "$ac_tool_prefix"; then
 
5218
  for ac_prog in dumpbin "link -dump"
 
5219
  do
 
5220
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
5221
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
5222
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5223
$as_echo_n "checking for $ac_word... " >&6; }
 
5224
if ${ac_cv_prog_DUMPBIN+:} false; then :
 
5225
  $as_echo_n "(cached) " >&6
 
5226
else
 
5227
  if test -n "$DUMPBIN"; then
 
5228
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
 
5229
else
 
5230
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5231
for as_dir in $PATH
 
5232
do
 
5233
  IFS=$as_save_IFS
 
5234
  test -z "$as_dir" && as_dir=.
 
5235
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5236
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5237
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
 
5238
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5239
    break 2
 
5240
  fi
 
5241
done
 
5242
  done
 
5243
IFS=$as_save_IFS
 
5244
 
 
5245
fi
 
5246
fi
 
5247
DUMPBIN=$ac_cv_prog_DUMPBIN
 
5248
if test -n "$DUMPBIN"; then
 
5249
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
 
5250
$as_echo "$DUMPBIN" >&6; }
 
5251
else
 
5252
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5253
$as_echo "no" >&6; }
 
5254
fi
 
5255
 
 
5256
 
 
5257
    test -n "$DUMPBIN" && break
 
5258
  done
 
5259
fi
 
5260
if test -z "$DUMPBIN"; then
 
5261
  ac_ct_DUMPBIN=$DUMPBIN
 
5262
  for ac_prog in dumpbin "link -dump"
 
5263
do
 
5264
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5265
set dummy $ac_prog; ac_word=$2
 
5266
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5267
$as_echo_n "checking for $ac_word... " >&6; }
 
5268
if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
 
5269
  $as_echo_n "(cached) " >&6
 
5270
else
 
5271
  if test -n "$ac_ct_DUMPBIN"; then
 
5272
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
 
5273
else
 
5274
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5275
for as_dir in $PATH
 
5276
do
 
5277
  IFS=$as_save_IFS
 
5278
  test -z "$as_dir" && as_dir=.
 
5279
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5280
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5281
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
 
5282
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5283
    break 2
 
5284
  fi
 
5285
done
 
5286
  done
 
5287
IFS=$as_save_IFS
 
5288
 
 
5289
fi
 
5290
fi
 
5291
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
 
5292
if test -n "$ac_ct_DUMPBIN"; then
 
5293
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
 
5294
$as_echo "$ac_ct_DUMPBIN" >&6; }
 
5295
else
 
5296
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5297
$as_echo "no" >&6; }
 
5298
fi
 
5299
 
 
5300
 
 
5301
  test -n "$ac_ct_DUMPBIN" && break
 
5302
done
 
5303
 
 
5304
  if test "x$ac_ct_DUMPBIN" = x; then
 
5305
    DUMPBIN=":"
 
5306
  else
 
5307
    case $cross_compiling:$ac_tool_warned in
 
5308
yes:)
 
5309
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5310
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5311
ac_tool_warned=yes ;;
 
5312
esac
 
5313
    DUMPBIN=$ac_ct_DUMPBIN
 
5314
  fi
 
5315
fi
 
5316
 
 
5317
    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
 
5318
    *COFF*)
 
5319
      DUMPBIN="$DUMPBIN -symbols"
 
5320
      ;;
 
5321
    *)
 
5322
      DUMPBIN=:
 
5323
      ;;
 
5324
    esac
 
5325
  fi
 
5326
  
 
5327
  if test "$DUMPBIN" != ":"; then
 
5328
    NM="$DUMPBIN"
 
5329
  fi
 
5330
fi
 
5331
test -z "$NM" && NM=nm
 
5332
 
 
5333
 
 
5334
    
 
5335
    
 
5336
    
 
5337
 
 
5338
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
 
5339
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
 
5340
if ${lt_cv_nm_interface+:} false; then :
 
5341
  $as_echo_n "(cached) " >&6
 
5342
else
 
5343
  lt_cv_nm_interface="BSD nm"
 
5344
  echo "int some_variable = 0;" > conftest.$ac_ext
 
5345
  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
 
5346
  (eval "$ac_compile" 2>conftest.err)
 
5347
  cat conftest.err >&5
 
5348
  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
 
5349
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
 
5350
  cat conftest.err >&5
 
5351
  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
 
5352
  cat conftest.out >&5
 
5353
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
 
5354
    lt_cv_nm_interface="MS dumpbin"
 
5355
  fi
 
5356
  rm -f conftest*
 
5357
fi
 
5358
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
 
5359
$as_echo "$lt_cv_nm_interface" >&6; }
 
5360
 
 
5361
# find the maximum length of command line arguments
 
5362
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
 
5363
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
 
5364
if ${lt_cv_sys_max_cmd_len+:} false; then :
 
5365
  $as_echo_n "(cached) " >&6
 
5366
else
 
5367
    i=0
 
5368
  teststring="ABCD"
 
5369
 
 
5370
  case $build_os in
 
5371
  msdosdjgpp*)
 
5372
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
5373
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
5374
    # during glob expansion).  Even if it were fixed, the result of this
 
5375
    # check would be larger than it should be.
 
5376
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
5377
    ;;
 
5378
 
 
5379
  gnu*)
 
5380
    # Under GNU Hurd, this test is not required because there is
 
5381
    # no limit to the length of command line arguments.
 
5382
    # Libtool will interpret -1 as no limit whatsoever
 
5383
    lt_cv_sys_max_cmd_len=-1;
 
5384
    ;;
 
5385
 
 
5386
  cygwin* | mingw* | cegcc*)
 
5387
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
5388
    # about 5 minutes as the teststring grows exponentially.
 
5389
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
5390
    # you end up with a "frozen" computer, even though with patience
 
5391
    # the test eventually succeeds (with a max line length of 256k).
 
5392
    # Instead, let's just punt: use the minimum linelength reported by
 
5393
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
5394
    lt_cv_sys_max_cmd_len=8192;
 
5395
    ;;
 
5396
 
 
5397
  mint*)
 
5398
    # On MiNT this can take a long time and run out of memory.
 
5399
    lt_cv_sys_max_cmd_len=8192;
 
5400
    ;;
 
5401
 
 
5402
  amigaos*)
 
5403
    # On AmigaOS with pdksh, this test takes hours, literally.
 
5404
    # So we just punt and use a minimum line length of 8192.
 
5405
    lt_cv_sys_max_cmd_len=8192;
 
5406
    ;;
 
5407
 
 
5408
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
5409
    # This has been around since 386BSD, at least.  Likely further.
 
5410
    if test -x /sbin/sysctl; then
 
5411
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
5412
    elif test -x /usr/sbin/sysctl; then
 
5413
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
5414
    else
 
5415
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
5416
    fi
 
5417
    # And add a safety zone
 
5418
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
5419
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
5420
    ;;
 
5421
 
 
5422
  interix*)
 
5423
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
5424
    lt_cv_sys_max_cmd_len=196608
 
5425
    ;;
 
5426
 
 
5427
  os2*)
 
5428
    # The test takes a long time on OS/2.
 
5429
    lt_cv_sys_max_cmd_len=8192
 
5430
    ;;
 
5431
 
 
5432
  osf*)
 
5433
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
5434
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
5435
    # nice to cause kernel panics so lets avoid the loop below.
 
5436
    # First set a reasonable default.
 
5437
    lt_cv_sys_max_cmd_len=16384
 
5438
    #
 
5439
    if test -x /sbin/sysconfig; then
 
5440
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
5441
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
5442
      esac
 
5443
    fi
 
5444
    ;;
 
5445
  sco3.2v5*)
 
5446
    lt_cv_sys_max_cmd_len=102400
 
5447
    ;;
 
5448
  sysv5* | sco5v6* | sysv4.2uw2*)
 
5449
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
5450
    if test -n "$kargmax"; then
 
5451
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
 
5452
    else
 
5453
      lt_cv_sys_max_cmd_len=32768
 
5454
    fi
 
5455
    ;;
 
5456
  *)
 
5457
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
5458
    if test -n "$lt_cv_sys_max_cmd_len" && \
 
5459
        test undefined != "$lt_cv_sys_max_cmd_len"; then
 
5460
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
5461
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
5462
    else
 
5463
      # Make teststring a little bigger before we do anything with it.
 
5464
      # a 1K string should be a reasonable start.
 
5465
      for i in 1 2 3 4 5 6 7 8 ; do
 
5466
        teststring=$teststring$teststring
 
5467
      done
 
5468
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
5469
      # If test is not a shell built-in, we'll probably end up computing a
 
5470
      # maximum length that is only half of the actual maximum length, but
 
5471
      # we can't tell.
 
5472
      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
 
5473
                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
 
5474
              test $i != 17 # 1/2 MB should be enough
 
5475
      do
 
5476
        i=`expr $i + 1`
 
5477
        teststring=$teststring$teststring
 
5478
      done
 
5479
      # Only check the string length outside the loop.
 
5480
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
 
5481
      teststring=
 
5482
      # Add a significant safety factor because C++ compilers can tack on
 
5483
      # massive amounts of additional arguments before passing them to the
 
5484
      # linker.  It appears as though 1/2 is a usable value.
 
5485
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
5486
    fi
 
5487
    ;;
 
5488
  esac
 
5489
 
 
5490
fi
 
5491
 
 
5492
if test -n $lt_cv_sys_max_cmd_len ; then
 
5493
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
 
5494
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
 
5495
else
 
5496
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
 
5497
$as_echo "none" >&6; }
 
5498
fi
 
5499
max_cmd_len=$lt_cv_sys_max_cmd_len
 
5500
 
 
5501
    
 
5502
    
 
5503
    
 
5504
 
 
5505
 
 
5506
: ${CP="cp -f"}
 
5507
: ${MV="mv -f"}
 
5508
: ${RM="rm -f"}
 
5509
 
 
5510
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
 
5511
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
 
5512
# Try some XSI features
 
5513
xsi_shell=no
 
5514
( _lt_dummy="a/b/c"
 
5515
  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
 
5516
      = c,a/b,b/c, \
 
5517
    && eval 'test $(( 1 + 1 )) -eq 2 \
 
5518
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
 
5519
  && xsi_shell=yes
 
5520
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
 
5521
$as_echo "$xsi_shell" >&6; }
 
5522
 
 
5523
 
 
5524
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
 
5525
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
 
5526
lt_shell_append=no
 
5527
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
 
5528
    >/dev/null 2>&1 \
 
5529
  && lt_shell_append=yes
 
5530
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
 
5531
$as_echo "$lt_shell_append" >&6; }
 
5532
 
 
5533
 
 
5534
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
5535
  lt_unset=unset
 
5536
else
 
5537
  lt_unset=false
 
5538
fi
 
5539
 
 
5540
    
 
5541
    
 
5542
    
 
5543
 
 
5544
# test EBCDIC or ASCII
 
5545
case `echo X|tr X '\101'` in
 
5546
 A) # ASCII based system
 
5547
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
 
5548
  lt_SP2NL='tr \040 \012'
 
5549
  lt_NL2SP='tr \015\012 \040\040'
 
5550
  ;;
 
5551
 *) # EBCDIC based system
 
5552
  lt_SP2NL='tr \100 \n'
 
5553
  lt_NL2SP='tr \r\n \100\100'
 
5554
  ;;
 
5555
esac
 
5556
 
 
5557
    
 
5558
    
 
5559
    
 
5560
 
 
5561
    
 
5562
    
 
5563
    
 
5564
 
 
5565
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
 
5566
$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
 
5567
if ${lt_cv_to_host_file_cmd+:} false; then :
 
5568
  $as_echo_n "(cached) " >&6
 
5569
else
 
5570
  case $host in
 
5571
  *-*-mingw* )
 
5572
    case $build in
 
5573
      *-*-mingw* ) # actually msys
 
5574
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
 
5575
        ;;
 
5576
      *-*-cygwin* )
 
5577
        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
 
5578
        ;;
 
5579
      * ) # otherwise, assume *nix
 
5580
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
 
5581
        ;;
 
5582
    esac
 
5583
    ;;
 
5584
  *-*-cygwin* )
 
5585
    case $build in
 
5586
      *-*-mingw* ) # actually msys
 
5587
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
 
5588
        ;;
 
5589
      *-*-cygwin* )
 
5590
        lt_cv_to_host_file_cmd=func_convert_file_noop
 
5591
        ;;
 
5592
      * ) # otherwise, assume *nix
 
5593
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
 
5594
        ;;
 
5595
    esac
 
5596
    ;;
 
5597
  * ) # unhandled hosts (and "normal" native builds)
 
5598
    lt_cv_to_host_file_cmd=func_convert_file_noop
 
5599
    ;;
 
5600
esac
 
5601
 
 
5602
fi
 
5603
 
 
5604
to_host_file_cmd=$lt_cv_to_host_file_cmd
 
5605
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
 
5606
$as_echo "$lt_cv_to_host_file_cmd" >&6; }
 
5607
 
 
5608
    
 
5609
    
 
5610
    
 
5611
 
 
5612
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
 
5613
$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
 
5614
if ${lt_cv_to_tool_file_cmd+:} false; then :
 
5615
  $as_echo_n "(cached) " >&6
 
5616
else
 
5617
  #assume ordinary cross tools, or native build.
 
5618
lt_cv_to_tool_file_cmd=func_convert_file_noop
 
5619
case $host in
 
5620
  *-*-mingw* )
 
5621
    case $build in
 
5622
      *-*-mingw* ) # actually msys
 
5623
        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
 
5624
        ;;
 
5625
    esac
 
5626
    ;;
 
5627
esac
 
5628
 
 
5629
fi
 
5630
 
 
5631
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
 
5632
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
 
5633
$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
 
5634
 
 
5635
    
 
5636
    
 
5637
    
 
5638
 
 
5639
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
 
5640
$as_echo_n "checking for $LD option to reload object files... " >&6; }
 
5641
if ${lt_cv_ld_reload_flag+:} false; then :
 
5642
  $as_echo_n "(cached) " >&6
 
5643
else
 
5644
  lt_cv_ld_reload_flag='-r'
 
5645
fi
 
5646
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
 
5647
$as_echo "$lt_cv_ld_reload_flag" >&6; }
 
5648
reload_flag=$lt_cv_ld_reload_flag
 
5649
case $reload_flag in
 
5650
"" | " "*) ;;
 
5651
*) reload_flag=" $reload_flag" ;;
 
5652
esac
 
5653
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
5654
case $host_os in
 
5655
  cygwin* | mingw* | pw32* | cegcc*)
 
5656
    if test "$GCC" != yes; then
 
5657
      reload_cmds=false
 
5658
    fi
 
5659
    ;;
 
5660
  darwin*)
 
5661
    if test "$GCC" = yes; then
 
5662
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
5663
    else
 
5664
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
5665
    fi
 
5666
    ;;
 
5667
esac
 
5668
 
 
5669
    
 
5670
    
 
5671
    
 
5672
 
 
5673
    
 
5674
    
 
5675
    
 
5676
 
 
5677
if test -n "$ac_tool_prefix"; then
 
5678
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
 
5679
set dummy ${ac_tool_prefix}objdump; ac_word=$2
 
5680
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5681
$as_echo_n "checking for $ac_word... " >&6; }
 
5682
if ${ac_cv_prog_OBJDUMP+:} false; then :
 
5683
  $as_echo_n "(cached) " >&6
 
5684
else
 
5685
  if test -n "$OBJDUMP"; then
 
5686
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
 
5687
else
 
5688
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5689
for as_dir in $PATH
 
5690
do
 
5691
  IFS=$as_save_IFS
 
5692
  test -z "$as_dir" && as_dir=.
 
5693
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5694
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5695
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
 
5696
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5697
    break 2
 
5698
  fi
 
5699
done
 
5700
  done
 
5701
IFS=$as_save_IFS
 
5702
 
 
5703
fi
 
5704
fi
 
5705
OBJDUMP=$ac_cv_prog_OBJDUMP
 
5706
if test -n "$OBJDUMP"; then
 
5707
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
 
5708
$as_echo "$OBJDUMP" >&6; }
 
5709
else
 
5710
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5711
$as_echo "no" >&6; }
 
5712
fi
 
5713
 
 
5714
 
 
5715
fi
 
5716
if test -z "$ac_cv_prog_OBJDUMP"; then
 
5717
  ac_ct_OBJDUMP=$OBJDUMP
 
5718
  # Extract the first word of "objdump", so it can be a program name with args.
 
5719
set dummy objdump; ac_word=$2
 
5720
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5721
$as_echo_n "checking for $ac_word... " >&6; }
 
5722
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
 
5723
  $as_echo_n "(cached) " >&6
 
5724
else
 
5725
  if test -n "$ac_ct_OBJDUMP"; then
 
5726
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
 
5727
else
 
5728
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5729
for as_dir in $PATH
 
5730
do
 
5731
  IFS=$as_save_IFS
 
5732
  test -z "$as_dir" && as_dir=.
 
5733
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5734
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5735
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
 
5736
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5737
    break 2
 
5738
  fi
 
5739
done
 
5740
  done
 
5741
IFS=$as_save_IFS
 
5742
 
 
5743
fi
 
5744
fi
 
5745
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
 
5746
if test -n "$ac_ct_OBJDUMP"; then
 
5747
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
 
5748
$as_echo "$ac_ct_OBJDUMP" >&6; }
 
5749
else
 
5750
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5751
$as_echo "no" >&6; }
 
5752
fi
 
5753
 
 
5754
  if test "x$ac_ct_OBJDUMP" = x; then
 
5755
    OBJDUMP="false"
 
5756
  else
 
5757
    case $cross_compiling:$ac_tool_warned in
 
5758
yes:)
 
5759
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5760
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5761
ac_tool_warned=yes ;;
 
5762
esac
 
5763
    OBJDUMP=$ac_ct_OBJDUMP
 
5764
  fi
 
5765
else
 
5766
  OBJDUMP="$ac_cv_prog_OBJDUMP"
 
5767
fi
 
5768
 
 
5769
test -z "$OBJDUMP" && OBJDUMP=objdump
 
5770
 
 
5771
    
 
5772
    
 
5773
    
 
5774
 
 
5775
 
 
5776
 
 
5777
 
 
5778
 
 
5779
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
 
5780
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
 
5781
if ${lt_cv_deplibs_check_method+:} false; then :
 
5782
  $as_echo_n "(cached) " >&6
 
5783
else
 
5784
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
5785
lt_cv_file_magic_test_file=
 
5786
lt_cv_deplibs_check_method='unknown'
 
5787
# Need to set the preceding variable on all platforms that support
 
5788
# interlibrary dependencies.
 
5789
# 'none' -- dependencies not supported.
 
5790
# `unknown' -- same as none, but documents that we really don't know.
 
5791
# 'pass_all' -- all dependencies passed with no checks.
 
5792
# 'test_compile' -- check by making test program.
 
5793
# 'file_magic [[regex]]' -- check by looking for files in library path
 
5794
# which responds to the $file_magic_cmd with a given extended regex.
 
5795
# If you have `file' or equivalent on your system and you're not sure
 
5796
# whether `pass_all' will *always* work, you probably want this one.
 
5797
 
 
5798
case $host_os in
 
5799
aix[4-9]*)
 
5800
  lt_cv_deplibs_check_method=pass_all
 
5801
  ;;
 
5802
 
 
5803
beos*)
 
5804
  lt_cv_deplibs_check_method=pass_all
 
5805
  ;;
 
5806
 
 
5807
bsdi[45]*)
 
5808
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
5809
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
5810
  lt_cv_file_magic_test_file=/shlib/libc.so
 
5811
  ;;
 
5812
 
 
5813
cygwin*)
 
5814
  # func_win32_libid is a shell function defined in ltmain.sh
 
5815
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
5816
  lt_cv_file_magic_cmd='func_win32_libid'
 
5817
  ;;
 
5818
 
 
5819
mingw* | pw32*)
 
5820
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
5821
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
5822
  # unless we find 'file', for example because we are cross-compiling.
 
5823
  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
 
5824
  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
 
5825
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
5826
    lt_cv_file_magic_cmd='func_win32_libid'
 
5827
  else
 
5828
    # Keep this pattern in sync with the one in func_win32_libid.
 
5829
    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
 
5830
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
5831
  fi
 
5832
  ;;
 
5833
 
 
5834
cegcc*)
 
5835
  # use the weaker test based on 'objdump'. See mingw*.
 
5836
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
 
5837
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
5838
  ;;
 
5839
 
 
5840
darwin* | rhapsody*)
 
5841
  lt_cv_deplibs_check_method=pass_all
 
5842
  ;;
 
5843
 
 
5844
freebsd* | dragonfly*)
 
5845
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
5846
    case $host_cpu in
 
5847
    i*86 )
 
5848
      # Not sure whether the presence of OpenBSD here was a mistake.
 
5849
      # Let's accept both of them until this is cleared up.
 
5850
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
 
5851
      lt_cv_file_magic_cmd=/usr/bin/file
 
5852
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
5853
      ;;
 
5854
    esac
 
5855
  else
 
5856
    lt_cv_deplibs_check_method=pass_all
 
5857
  fi
 
5858
  ;;
 
5859
 
 
5860
haiku*)
 
5861
  lt_cv_deplibs_check_method=pass_all
 
5862
  ;;
 
5863
 
 
5864
hpux10.20* | hpux11*)
 
5865
  lt_cv_file_magic_cmd=/usr/bin/file
 
5866
  case $host_cpu in
 
5867
  ia64*)
 
5868
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
5869
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
5870
    ;;
 
5871
  hppa*64*)
 
5872
    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]'
 
5873
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
5874
    ;;
 
5875
  *)
 
5876
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
 
5877
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
5878
    ;;
 
5879
  esac
 
5880
  ;;
 
5881
 
 
5882
interix[3-9]*)
 
5883
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
5884
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
 
5885
  ;;
 
5886
 
 
5887
irix5* | irix6* | nonstopux*)
 
5888
  case $LD in
 
5889
  *-32|*"-32 ") libmagic=32-bit;;
 
5890
  *-n32|*"-n32 ") libmagic=N32;;
 
5891
  *-64|*"-64 ") libmagic=64-bit;;
 
5892
  *) libmagic=never-match;;
 
5893
  esac
 
5894
  lt_cv_deplibs_check_method=pass_all
 
5895
  ;;
 
5896
 
 
5897
# This must be glibc/ELF.
 
5898
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
 
5899
  lt_cv_deplibs_check_method=pass_all
 
5900
  ;;
 
5901
 
 
5902
netbsd* | netbsdelf*-gnu)
 
5903
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
5904
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
5905
  else
 
5906
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
5907
  fi
 
5908
  ;;
 
5909
 
 
5910
newos6*)
 
5911
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
5912
  lt_cv_file_magic_cmd=/usr/bin/file
 
5913
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
5914
  ;;
 
5915
 
 
5916
*nto* | *qnx*)
 
5917
  lt_cv_deplibs_check_method=pass_all
 
5918
  ;;
 
5919
 
 
5920
openbsd*)
 
5921
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
5922
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
 
5923
  else
 
5924
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
5925
  fi
 
5926
  ;;
 
5927
 
 
5928
osf3* | osf4* | osf5*)
 
5929
  lt_cv_deplibs_check_method=pass_all
 
5930
  ;;
 
5931
 
 
5932
rdos*)
 
5933
  lt_cv_deplibs_check_method=pass_all
 
5934
  ;;
 
5935
 
 
5936
solaris*)
 
5937
  lt_cv_deplibs_check_method=pass_all
 
5938
  ;;
 
5939
 
 
5940
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
5941
  lt_cv_deplibs_check_method=pass_all
 
5942
  ;;
 
5943
 
 
5944
sysv4 | sysv4.3*)
 
5945
  case $host_vendor in
 
5946
  motorola)
 
5947
    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]'
 
5948
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
5949
    ;;
 
5950
  ncr)
 
5951
    lt_cv_deplibs_check_method=pass_all
 
5952
    ;;
 
5953
  sequent)
 
5954
    lt_cv_file_magic_cmd='/bin/file'
 
5955
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
5956
    ;;
 
5957
  sni)
 
5958
    lt_cv_file_magic_cmd='/bin/file'
 
5959
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
5960
    lt_cv_file_magic_test_file=/lib/libc.so
 
5961
    ;;
 
5962
  siemens)
 
5963
    lt_cv_deplibs_check_method=pass_all
 
5964
    ;;
 
5965
  pc)
 
5966
    lt_cv_deplibs_check_method=pass_all
 
5967
    ;;
 
5968
  esac
 
5969
  ;;
 
5970
 
 
5971
tpf*)
 
5972
  lt_cv_deplibs_check_method=pass_all
 
5973
  ;;
 
5974
esac
 
5975
 
 
5976
fi
 
5977
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
 
5978
$as_echo "$lt_cv_deplibs_check_method" >&6; }
 
5979
 
 
5980
file_magic_glob=
 
5981
want_nocaseglob=no
 
5982
if test "$build" = "$host"; then
 
5983
  case $host_os in
 
5984
  mingw* | pw32*)
 
5985
    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
 
5986
      want_nocaseglob=yes
 
5987
    else
 
5988
      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
 
5989
    fi
 
5990
    ;;
 
5991
  esac
 
5992
fi
 
5993
 
 
5994
file_magic_cmd=$lt_cv_file_magic_cmd
 
5995
deplibs_check_method=$lt_cv_deplibs_check_method
 
5996
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
5997
 
 
5998
 
 
5999
    
 
6000
    
 
6001
    
 
6002
 
 
6003
 
 
6004
    
 
6005
    
 
6006
    
 
6007
 
 
6008
 
 
6009
    
 
6010
    
 
6011
    
 
6012
 
 
6013
 
 
6014
    
 
6015
    
 
6016
    
 
6017
 
 
6018
 
 
6019
if test -n "$ac_tool_prefix"; then
 
6020
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
 
6021
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
 
6022
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6023
$as_echo_n "checking for $ac_word... " >&6; }
 
6024
if ${ac_cv_prog_DLLTOOL+:} false; then :
 
6025
  $as_echo_n "(cached) " >&6
 
6026
else
 
6027
  if test -n "$DLLTOOL"; then
 
6028
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
 
6029
else
 
6030
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6031
for as_dir in $PATH
 
6032
do
 
6033
  IFS=$as_save_IFS
 
6034
  test -z "$as_dir" && as_dir=.
 
6035
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6036
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6037
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
 
6038
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6039
    break 2
 
6040
  fi
 
6041
done
 
6042
  done
 
6043
IFS=$as_save_IFS
 
6044
 
 
6045
fi
 
6046
fi
 
6047
DLLTOOL=$ac_cv_prog_DLLTOOL
 
6048
if test -n "$DLLTOOL"; then
 
6049
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
 
6050
$as_echo "$DLLTOOL" >&6; }
 
6051
else
 
6052
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6053
$as_echo "no" >&6; }
 
6054
fi
 
6055
 
 
6056
 
 
6057
fi
 
6058
if test -z "$ac_cv_prog_DLLTOOL"; then
 
6059
  ac_ct_DLLTOOL=$DLLTOOL
 
6060
  # Extract the first word of "dlltool", so it can be a program name with args.
 
6061
set dummy dlltool; ac_word=$2
 
6062
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6063
$as_echo_n "checking for $ac_word... " >&6; }
 
6064
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
 
6065
  $as_echo_n "(cached) " >&6
 
6066
else
 
6067
  if test -n "$ac_ct_DLLTOOL"; then
 
6068
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
 
6069
else
 
6070
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6071
for as_dir in $PATH
 
6072
do
 
6073
  IFS=$as_save_IFS
 
6074
  test -z "$as_dir" && as_dir=.
 
6075
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6076
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6077
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
 
6078
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6079
    break 2
 
6080
  fi
 
6081
done
 
6082
  done
 
6083
IFS=$as_save_IFS
 
6084
 
 
6085
fi
 
6086
fi
 
6087
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
 
6088
if test -n "$ac_ct_DLLTOOL"; then
 
6089
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
 
6090
$as_echo "$ac_ct_DLLTOOL" >&6; }
 
6091
else
 
6092
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6093
$as_echo "no" >&6; }
 
6094
fi
 
6095
 
 
6096
  if test "x$ac_ct_DLLTOOL" = x; then
 
6097
    DLLTOOL="false"
 
6098
  else
 
6099
    case $cross_compiling:$ac_tool_warned in
 
6100
yes:)
 
6101
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6102
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6103
ac_tool_warned=yes ;;
 
6104
esac
 
6105
    DLLTOOL=$ac_ct_DLLTOOL
 
6106
  fi
 
6107
else
 
6108
  DLLTOOL="$ac_cv_prog_DLLTOOL"
 
6109
fi
 
6110
 
 
6111
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
6112
 
 
6113
    
 
6114
    
 
6115
    
 
6116
 
 
6117
 
 
6118
 
 
6119
 
 
6120
 
 
6121
 
 
6122
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
 
6123
$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
 
6124
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
 
6125
  $as_echo_n "(cached) " >&6
 
6126
else
 
6127
  lt_cv_sharedlib_from_linklib_cmd='unknown'
 
6128
 
 
6129
case $host_os in
 
6130
cygwin* | mingw* | pw32* | cegcc*)
 
6131
  # two different shell functions defined in ltmain.sh
 
6132
  # decide which to use based on capabilities of $DLLTOOL
 
6133
  case `$DLLTOOL --help 2>&1` in
 
6134
  *--identify-strict*)
 
6135
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
 
6136
    ;;
 
6137
  *)
 
6138
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
 
6139
    ;;
 
6140
  esac
 
6141
  ;;
 
6142
*)
 
6143
  # fallback: assume linklib IS sharedlib
 
6144
  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
 
6145
  ;;
 
6146
esac
 
6147
 
 
6148
fi
 
6149
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
 
6150
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
 
6151
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
 
6152
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
 
6153
 
 
6154
 
 
6155
    
 
6156
    
 
6157
    
 
6158
 
 
6159
 
 
6160
if test -n "$ac_tool_prefix"; then
 
6161
  for ac_prog in ar
 
6162
  do
 
6163
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
6164
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
6165
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6166
$as_echo_n "checking for $ac_word... " >&6; }
 
6167
if ${ac_cv_prog_AR+:} false; then :
 
6168
  $as_echo_n "(cached) " >&6
 
6169
else
 
6170
  if test -n "$AR"; then
 
6171
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
6172
else
 
6173
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6174
for as_dir in $PATH
 
6175
do
 
6176
  IFS=$as_save_IFS
 
6177
  test -z "$as_dir" && as_dir=.
 
6178
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6179
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6180
    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
 
6181
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6182
    break 2
 
6183
  fi
 
6184
done
 
6185
  done
 
6186
IFS=$as_save_IFS
 
6187
 
 
6188
fi
 
6189
fi
 
6190
AR=$ac_cv_prog_AR
 
6191
if test -n "$AR"; then
 
6192
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
 
6193
$as_echo "$AR" >&6; }
 
6194
else
 
6195
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6196
$as_echo "no" >&6; }
 
6197
fi
 
6198
 
 
6199
 
 
6200
    test -n "$AR" && break
 
6201
  done
 
6202
fi
 
6203
if test -z "$AR"; then
 
6204
  ac_ct_AR=$AR
 
6205
  for ac_prog in ar
 
6206
do
 
6207
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
6208
set dummy $ac_prog; ac_word=$2
 
6209
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6210
$as_echo_n "checking for $ac_word... " >&6; }
 
6211
if ${ac_cv_prog_ac_ct_AR+:} false; then :
 
6212
  $as_echo_n "(cached) " >&6
 
6213
else
 
6214
  if test -n "$ac_ct_AR"; then
 
6215
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
6216
else
 
6217
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6218
for as_dir in $PATH
 
6219
do
 
6220
  IFS=$as_save_IFS
 
6221
  test -z "$as_dir" && as_dir=.
 
6222
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6223
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6224
    ac_cv_prog_ac_ct_AR="$ac_prog"
 
6225
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6226
    break 2
 
6227
  fi
 
6228
done
 
6229
  done
 
6230
IFS=$as_save_IFS
 
6231
 
 
6232
fi
 
6233
fi
 
6234
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
6235
if test -n "$ac_ct_AR"; then
 
6236
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
 
6237
$as_echo "$ac_ct_AR" >&6; }
 
6238
else
 
6239
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6240
$as_echo "no" >&6; }
 
6241
fi
 
6242
 
 
6243
 
 
6244
  test -n "$ac_ct_AR" && break
 
6245
done
 
6246
 
 
6247
  if test "x$ac_ct_AR" = x; then
 
6248
    AR="false"
 
6249
  else
 
6250
    case $cross_compiling:$ac_tool_warned in
 
6251
yes:)
 
6252
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6253
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6254
ac_tool_warned=yes ;;
 
6255
esac
 
6256
    AR=$ac_ct_AR
 
6257
  fi
 
6258
fi
 
6259
 
 
6260
: ${AR=ar}
 
6261
: ${AR_FLAGS=cru}
 
6262
 
 
6263
    
 
6264
    
 
6265
    
 
6266
 
 
6267
 
 
6268
    
 
6269
    
 
6270
    
 
6271
 
 
6272
 
 
6273
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
 
6274
$as_echo_n "checking for archiver @FILE support... " >&6; }
 
6275
if ${lt_cv_ar_at_file+:} false; then :
 
6276
  $as_echo_n "(cached) " >&6
 
6277
else
 
6278
  lt_cv_ar_at_file=no
 
6279
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6280
/* end confdefs.h.  */
 
6281
 
 
6282
int
 
6283
main ()
 
6284
{
 
6285
 
 
6286
  ;
 
6287
  return 0;
 
6288
}
 
6289
_ACEOF
 
6290
if ac_fn_c_try_compile "$LINENO"; then :
 
6291
  echo conftest.$ac_objext > conftest.lst
 
6292
      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
 
6293
      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
 
6294
  (eval $lt_ar_try) 2>&5
 
6295
  ac_status=$?
 
6296
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6297
  test $ac_status = 0; }
 
6298
      if test "$ac_status" -eq 0; then
 
6299
        # Ensure the archiver fails upon bogus file names.
 
6300
        rm -f conftest.$ac_objext libconftest.a
 
6301
        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
 
6302
  (eval $lt_ar_try) 2>&5
 
6303
  ac_status=$?
 
6304
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6305
  test $ac_status = 0; }
 
6306
        if test "$ac_status" -ne 0; then
 
6307
          lt_cv_ar_at_file=@
 
6308
        fi
 
6309
      fi
 
6310
      rm -f conftest.* libconftest.a
 
6311
     
 
6312
fi
 
6313
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6314
  
 
6315
fi
 
6316
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
 
6317
$as_echo "$lt_cv_ar_at_file" >&6; }
 
6318
 
 
6319
if test "x$lt_cv_ar_at_file" = xno; then
 
6320
  archiver_list_spec=
 
6321
else
 
6322
  archiver_list_spec=$lt_cv_ar_at_file
 
6323
fi
 
6324
 
 
6325
    
 
6326
    
 
6327
    
 
6328
 
 
6329
 
 
6330
 
 
6331
if test -n "$ac_tool_prefix"; then
 
6332
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
6333
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
6334
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6335
$as_echo_n "checking for $ac_word... " >&6; }
 
6336
if ${ac_cv_prog_STRIP+:} false; then :
 
6337
  $as_echo_n "(cached) " >&6
 
6338
else
 
6339
  if test -n "$STRIP"; then
 
6340
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
6341
else
 
6342
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6343
for as_dir in $PATH
 
6344
do
 
6345
  IFS=$as_save_IFS
 
6346
  test -z "$as_dir" && as_dir=.
 
6347
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6348
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6349
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
6350
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6351
    break 2
 
6352
  fi
 
6353
done
 
6354
  done
 
6355
IFS=$as_save_IFS
 
6356
 
 
6357
fi
 
6358
fi
 
6359
STRIP=$ac_cv_prog_STRIP
 
6360
if test -n "$STRIP"; then
 
6361
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
 
6362
$as_echo "$STRIP" >&6; }
 
6363
else
 
6364
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6365
$as_echo "no" >&6; }
 
6366
fi
 
6367
 
 
6368
 
 
6369
fi
 
6370
if test -z "$ac_cv_prog_STRIP"; then
 
6371
  ac_ct_STRIP=$STRIP
 
6372
  # Extract the first word of "strip", so it can be a program name with args.
 
6373
set dummy strip; ac_word=$2
 
6374
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6375
$as_echo_n "checking for $ac_word... " >&6; }
 
6376
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
 
6377
  $as_echo_n "(cached) " >&6
 
6378
else
 
6379
  if test -n "$ac_ct_STRIP"; then
 
6380
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
6381
else
 
6382
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6383
for as_dir in $PATH
 
6384
do
 
6385
  IFS=$as_save_IFS
 
6386
  test -z "$as_dir" && as_dir=.
 
6387
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6388
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6389
    ac_cv_prog_ac_ct_STRIP="strip"
 
6390
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6391
    break 2
 
6392
  fi
 
6393
done
 
6394
  done
 
6395
IFS=$as_save_IFS
 
6396
 
 
6397
fi
 
6398
fi
 
6399
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
6400
if test -n "$ac_ct_STRIP"; then
 
6401
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
 
6402
$as_echo "$ac_ct_STRIP" >&6; }
 
6403
else
 
6404
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6405
$as_echo "no" >&6; }
 
6406
fi
 
6407
 
 
6408
  if test "x$ac_ct_STRIP" = x; then
 
6409
    STRIP=":"
 
6410
  else
 
6411
    case $cross_compiling:$ac_tool_warned in
 
6412
yes:)
 
6413
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6414
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6415
ac_tool_warned=yes ;;
 
6416
esac
 
6417
    STRIP=$ac_ct_STRIP
 
6418
  fi
 
6419
else
 
6420
  STRIP="$ac_cv_prog_STRIP"
 
6421
fi
 
6422
 
 
6423
test -z "$STRIP" && STRIP=:
 
6424
 
 
6425
    
 
6426
    
 
6427
    
 
6428
 
 
6429
 
 
6430
if test -n "$ac_tool_prefix"; then
 
6431
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
6432
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
6433
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6434
$as_echo_n "checking for $ac_word... " >&6; }
 
6435
if ${ac_cv_prog_RANLIB+:} false; then :
 
6436
  $as_echo_n "(cached) " >&6
 
6437
else
 
6438
  if test -n "$RANLIB"; then
 
6439
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
6440
else
 
6441
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6442
for as_dir in $PATH
 
6443
do
 
6444
  IFS=$as_save_IFS
 
6445
  test -z "$as_dir" && as_dir=.
 
6446
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6447
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6448
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
6449
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6450
    break 2
 
6451
  fi
 
6452
done
 
6453
  done
 
6454
IFS=$as_save_IFS
 
6455
 
 
6456
fi
 
6457
fi
 
6458
RANLIB=$ac_cv_prog_RANLIB
 
6459
if test -n "$RANLIB"; then
 
6460
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
 
6461
$as_echo "$RANLIB" >&6; }
 
6462
else
 
6463
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6464
$as_echo "no" >&6; }
 
6465
fi
 
6466
 
 
6467
 
 
6468
fi
 
6469
if test -z "$ac_cv_prog_RANLIB"; then
 
6470
  ac_ct_RANLIB=$RANLIB
 
6471
  # Extract the first word of "ranlib", so it can be a program name with args.
 
6472
set dummy ranlib; ac_word=$2
 
6473
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6474
$as_echo_n "checking for $ac_word... " >&6; }
 
6475
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
 
6476
  $as_echo_n "(cached) " >&6
 
6477
else
 
6478
  if test -n "$ac_ct_RANLIB"; then
 
6479
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
6480
else
 
6481
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6482
for as_dir in $PATH
 
6483
do
 
6484
  IFS=$as_save_IFS
 
6485
  test -z "$as_dir" && as_dir=.
 
6486
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6487
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6488
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
6489
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6490
    break 2
 
6491
  fi
 
6492
done
 
6493
  done
 
6494
IFS=$as_save_IFS
 
6495
 
 
6496
fi
 
6497
fi
 
6498
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
6499
if test -n "$ac_ct_RANLIB"; then
 
6500
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
 
6501
$as_echo "$ac_ct_RANLIB" >&6; }
 
6502
else
 
6503
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6504
$as_echo "no" >&6; }
 
6505
fi
 
6506
 
 
6507
  if test "x$ac_ct_RANLIB" = x; then
 
6508
    RANLIB=":"
 
6509
  else
 
6510
    case $cross_compiling:$ac_tool_warned in
 
6511
yes:)
 
6512
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6513
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6514
ac_tool_warned=yes ;;
 
6515
esac
 
6516
    RANLIB=$ac_ct_RANLIB
 
6517
  fi
 
6518
else
 
6519
  RANLIB="$ac_cv_prog_RANLIB"
 
6520
fi
 
6521
 
 
6522
test -z "$RANLIB" && RANLIB=:
 
6523
 
 
6524
    
 
6525
    
 
6526
    
 
6527
 
 
6528
 
 
6529
# Determine commands to create old-style static archives.
 
6530
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
6531
old_postinstall_cmds='chmod 644 $oldlib'
 
6532
old_postuninstall_cmds=
 
6533
 
 
6534
if test -n "$RANLIB"; then
 
6535
  case $host_os in
 
6536
  openbsd*)
 
6537
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
 
6538
    ;;
 
6539
  *)
 
6540
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
 
6541
    ;;
 
6542
  esac
 
6543
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
 
6544
fi
 
6545
 
 
6546
case $host_os in
 
6547
  darwin*)
 
6548
    lock_old_archive_extraction=yes ;;
 
6549
  *)
 
6550
    lock_old_archive_extraction=no ;;
 
6551
esac
 
6552
 
 
6553
    
 
6554
    
 
6555
    
 
6556
 
 
6557
 
 
6558
    
 
6559
    
 
6560
    
 
6561
 
 
6562
 
 
6563
    
 
6564
    
 
6565
    
 
6566
 
 
6567
 
 
6568
    
 
6569
    
 
6570
    
 
6571
 
 
6572
 
 
6573
 
 
6574
 
 
6575
    
 
6576
    
 
6577
    
 
6578
 
 
6579
    
 
6580
    
 
6581
    
 
6582
 
 
6583
    
 
6584
    
 
6585
    
 
6586
 
 
6587
    
 
6588
    
 
6589
    
 
6590
 
 
6591
# If no C compiler was specified, use CC.
 
6592
LTCC=${LTCC-"$CC"}
 
6593
 
 
6594
# If no C compiler flags were specified, use CFLAGS.
 
6595
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
6596
 
 
6597
# Allow CC to be a program name with arguments.
 
6598
compiler=$CC
 
6599
 
 
6600
 
 
6601
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
6602
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
 
6603
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
 
6604
if ${lt_cv_sys_global_symbol_pipe+:} false; then :
 
6605
  $as_echo_n "(cached) " >&6
 
6606
else
 
6607
  
 
6608
# These are sane defaults that work on at least a few old systems.
 
6609
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
6610
 
 
6611
# Character class describing NM global symbol codes.
 
6612
symcode='[BCDEGRST]'
 
6613
 
 
6614
# Regexp to match symbols that can be accessed directly from C.
 
6615
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
6616
 
 
6617
# Define system-specific variables.
 
6618
case $host_os in
 
6619
aix*)
 
6620
  symcode='[BCDT]'
 
6621
  ;;
 
6622
cygwin* | mingw* | pw32* | cegcc*)
 
6623
  symcode='[ABCDGISTW]'
 
6624
  ;;
 
6625
hpux*)
 
6626
  if test "$host_cpu" = ia64; then
 
6627
    symcode='[ABCDEGRST]'
 
6628
  fi
 
6629
  ;;
 
6630
irix* | nonstopux*)
 
6631
  symcode='[BCDEGRST]'
 
6632
  ;;
 
6633
osf*)
 
6634
  symcode='[BCDEGQRST]'
 
6635
  ;;
 
6636
solaris*)
 
6637
  symcode='[BDRT]'
 
6638
  ;;
 
6639
sco3.2v5*)
 
6640
  symcode='[DT]'
 
6641
  ;;
 
6642
sysv4.2uw2*)
 
6643
  symcode='[DT]'
 
6644
  ;;
 
6645
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
6646
  symcode='[ABDT]'
 
6647
  ;;
 
6648
sysv4)
 
6649
  symcode='[DFNSTU]'
 
6650
  ;;
 
6651
esac
 
6652
 
 
6653
# If we're using GNU nm, then use its standard symbol codes.
 
6654
case `$NM -V 2>&1` in
 
6655
*GNU* | *'with BFD'*)
 
6656
  symcode='[ABCDGIRSTW]' ;;
 
6657
esac
 
6658
 
 
6659
# Transform an extracted symbol line into a proper C declaration.
 
6660
# Some systems (esp. on ia64) link data and code symbols differently,
 
6661
# so use this general approach.
 
6662
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
6663
 
 
6664
# Transform an extracted symbol line into symbol name and symbol address
 
6665
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
 
6666
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'"
 
6667
 
 
6668
# Handle CRLF in mingw tool chain
 
6669
opt_cr=
 
6670
case $build_os in
 
6671
mingw*)
 
6672
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
6673
  ;;
 
6674
esac
 
6675
 
 
6676
# Try without a prefix underscore, then with it.
 
6677
for ac_symprfx in "" "_"; do
 
6678
 
 
6679
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
6680
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
6681
 
 
6682
  # Write the raw and C identifiers.
 
6683
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
6684
    # Fake it for dumpbin and say T for any non-static function
 
6685
    # and D for any global variable.
 
6686
    # Also find C++ and __fastcall symbols from MSVC++,
 
6687
    # which start with @ or ?.
 
6688
    lt_cv_sys_global_symbol_pipe="$AWK '"\
 
6689
"     {last_section=section; section=\$ 3};"\
 
6690
"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
 
6691
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
 
6692
"     \$ 0!~/External *\|/{next};"\
 
6693
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
 
6694
"     {if(hide[section]) next};"\
 
6695
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
 
6696
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
 
6697
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
 
6698
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
 
6699
"     ' prfx=^$ac_symprfx"
 
6700
  else
 
6701
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
6702
  fi
 
6703
  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
 
6704
 
 
6705
  # Check to see that the pipe works correctly.
 
6706
  pipe_works=no
 
6707
 
 
6708
  rm -f conftest*
 
6709
  cat > conftest.$ac_ext <<_LT_EOF
 
6710
#ifdef __cplusplus
 
6711
extern "C" {
 
6712
#endif
 
6713
char nm_test_var;
 
6714
void nm_test_func(void);
 
6715
void nm_test_func(void){}
 
6716
#ifdef __cplusplus
 
6717
}
 
6718
#endif
 
6719
int main(){nm_test_var='a';nm_test_func();return(0);}
 
6720
_LT_EOF
 
6721
 
 
6722
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6723
  (eval $ac_compile) 2>&5
 
6724
  ac_status=$?
 
6725
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6726
  test $ac_status = 0; }; then
 
6727
    # Now try to grab the symbols.
 
6728
    nlist=conftest.nm
 
6729
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
 
6730
  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
 
6731
  ac_status=$?
 
6732
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6733
  test $ac_status = 0; } && test -s "$nlist"; then
 
6734
      # Try sorting and uniquifying the output.
 
6735
      if sort "$nlist" | uniq > "$nlist"T; then
 
6736
        mv -f "$nlist"T "$nlist"
 
6737
      else
 
6738
        rm -f "$nlist"T
 
6739
      fi
 
6740
 
 
6741
      # Make sure that we snagged all the symbols we need.
 
6742
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
 
6743
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
 
6744
          cat <<_LT_EOF > conftest.$ac_ext
 
6745
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
 
6746
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
 
6747
/* DATA imports from DLLs on WIN32 con't be const, because runtime
 
6748
   relocations are performed -- see ld's documentation on pseudo-relocs.  */
 
6749
# define LT@&t@_DLSYM_CONST
 
6750
#elif defined(__osf__)
 
6751
/* This system does not cope well with relocations in const data.  */
 
6752
# define LT@&t@_DLSYM_CONST
 
6753
#else
 
6754
# define LT@&t@_DLSYM_CONST const
 
6755
#endif
 
6756
 
 
6757
#ifdef __cplusplus
 
6758
extern "C" {
 
6759
#endif
 
6760
 
 
6761
_LT_EOF
 
6762
          # Now generate the symbol file.
 
6763
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
 
6764
 
 
6765
          cat <<_LT_EOF >> conftest.$ac_ext
 
6766
 
 
6767
/* The mapping between symbol names and symbols.  */
 
6768
LT@&t@_DLSYM_CONST struct {
 
6769
  const char *name;
 
6770
  void       *address;
 
6771
}
 
6772
lt__PROGRAM__LTX_preloaded_symbols[] =
 
6773
{
 
6774
  { "@PROGRAM@", (void *) 0 },
 
6775
_LT_EOF
 
6776
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
 
6777
          cat <<\_LT_EOF >> conftest.$ac_ext
 
6778
  {0, (void *) 0}
 
6779
};
 
6780
 
 
6781
/* This works around a problem in FreeBSD linker */
 
6782
#ifdef FREEBSD_WORKAROUND
 
6783
static const void *lt_preloaded_setup() {
 
6784
  return lt__PROGRAM__LTX_preloaded_symbols;
 
6785
}
 
6786
#endif
 
6787
 
 
6788
#ifdef __cplusplus
 
6789
}
 
6790
#endif
 
6791
_LT_EOF
 
6792
          # Now try linking the two files.
 
6793
          mv conftest.$ac_objext conftstm.$ac_objext
 
6794
          lt_globsym_save_LIBS=$LIBS
 
6795
          lt_globsym_save_CFLAGS=$CFLAGS
 
6796
          LIBS="conftstm.$ac_objext"
 
6797
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
6798
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
6799
  (eval $ac_link) 2>&5
 
6800
  ac_status=$?
 
6801
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6802
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
 
6803
            pipe_works=yes
 
6804
          fi
 
6805
          LIBS=$lt_globsym_save_LIBS
 
6806
          CFLAGS=$lt_globsym_save_CFLAGS
 
6807
        else
 
6808
          echo "cannot find nm_test_func in $nlist" >&5
 
6809
        fi
 
6810
      else
 
6811
        echo "cannot find nm_test_var in $nlist" >&5
 
6812
      fi
 
6813
    else
 
6814
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
6815
    fi
 
6816
  else
 
6817
    echo "$progname: failed program was:" >&5
 
6818
    cat conftest.$ac_ext >&5
 
6819
  fi
 
6820
  rm -rf conftest* conftst*
 
6821
 
 
6822
  # Do not use the global_symbol_pipe unless it works.
 
6823
  if test "$pipe_works" = yes; then
 
6824
    break
 
6825
  else
 
6826
    lt_cv_sys_global_symbol_pipe=
 
6827
  fi
 
6828
done
 
6829
 
 
6830
fi
 
6831
 
 
6832
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
6833
  lt_cv_sys_global_symbol_to_cdecl=
 
6834
fi
 
6835
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
6836
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
 
6837
$as_echo "failed" >&6; }
 
6838
else
 
6839
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
 
6840
$as_echo "ok" >&6; }
 
6841
fi
 
6842
 
 
6843
# Response file support.
 
6844
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
6845
  nm_file_list_spec='@'
 
6846
elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
 
6847
  nm_file_list_spec='@'
 
6848
fi
 
6849
 
 
6850
 
 
6851
    
 
6852
    
 
6853
    
 
6854
 
 
6855
 
 
6856
    
 
6857
    
 
6858
    
 
6859
 
 
6860
 
 
6861
    
 
6862
    
 
6863
    
 
6864
 
 
6865
 
 
6866
    
 
6867
    
 
6868
    
 
6869
 
 
6870
 
 
6871
    
 
6872
    
 
6873
    
 
6874
 
 
6875
 
 
6876
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
 
6877
$as_echo_n "checking for sysroot... " >&6; }
 
6878
 
 
6879
@%:@ Check whether --with-sysroot was given.
 
6880
if test "${with_sysroot+set}" = set; then :
 
6881
  withval=$with_sysroot; 
 
6882
else
 
6883
  with_sysroot=no
 
6884
fi
 
6885
 
 
6886
 
 
6887
lt_sysroot=
 
6888
case ${with_sysroot} in #(
 
6889
 yes)
 
6890
   if test "$GCC" = yes; then
 
6891
     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
 
6892
   fi
 
6893
   ;; #(
 
6894
 /*)
 
6895
   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
 
6896
   ;; #(
 
6897
 no|'')
 
6898
   ;; #(
 
6899
 *)
 
6900
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
 
6901
$as_echo "${with_sysroot}" >&6; }
 
6902
   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
 
6903
   ;;
 
6904
esac
 
6905
 
 
6906
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
 
6907
$as_echo "${lt_sysroot:-no}" >&6; }
 
6908
 
 
6909
    
 
6910
    
 
6911
    
 
6912
 
 
6913
@%:@ Check whether --enable-libtool-lock was given.
 
6914
if test "${enable_libtool_lock+set}" = set; then :
 
6915
  enableval=$enable_libtool_lock; 
 
6916
fi
 
6917
 
 
6918
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
6919
 
 
6920
# Some flags need to be propagated to the compiler or linker for good
 
6921
# libtool support.
 
6922
case $host in
 
6923
ia64-*-hpux*)
 
6924
  # Find out which ABI we are using.
 
6925
  echo 'int i;' > conftest.$ac_ext
 
6926
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6927
  (eval $ac_compile) 2>&5
 
6928
  ac_status=$?
 
6929
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6930
  test $ac_status = 0; }; then
 
6931
    case `/usr/bin/file conftest.$ac_objext` in
 
6932
      *ELF-32*)
 
6933
        HPUX_IA64_MODE="32"
 
6934
        ;;
 
6935
      *ELF-64*)
 
6936
        HPUX_IA64_MODE="64"
 
6937
        ;;
 
6938
    esac
 
6939
  fi
 
6940
  rm -rf conftest*
 
6941
  ;;
 
6942
*-*-irix6*)
 
6943
  # Find out which ABI we are using.
 
6944
  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
 
6945
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6946
  (eval $ac_compile) 2>&5
 
6947
  ac_status=$?
 
6948
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6949
  test $ac_status = 0; }; then
 
6950
    if test "$lt_cv_prog_gnu_ld" = yes; then
 
6951
      case `/usr/bin/file conftest.$ac_objext` in
 
6952
        *32-bit*)
 
6953
          LD="${LD-ld} -melf32bsmip"
 
6954
          ;;
 
6955
        *N32*)
 
6956
          LD="${LD-ld} -melf32bmipn32"
 
6957
          ;;
 
6958
        *64-bit*)
 
6959
          LD="${LD-ld} -melf64bmip"
 
6960
        ;;
 
6961
      esac
 
6962
    else
 
6963
      case `/usr/bin/file conftest.$ac_objext` in
 
6964
        *32-bit*)
 
6965
          LD="${LD-ld} -32"
 
6966
          ;;
 
6967
        *N32*)
 
6968
          LD="${LD-ld} -n32"
 
6969
          ;;
 
6970
        *64-bit*)
 
6971
          LD="${LD-ld} -64"
 
6972
          ;;
 
6973
      esac
 
6974
    fi
 
6975
  fi
 
6976
  rm -rf conftest*
 
6977
  ;;
 
6978
 
 
6979
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
6980
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
 
6981
  # Find out which ABI we are using.
 
6982
  echo 'int i;' > conftest.$ac_ext
 
6983
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6984
  (eval $ac_compile) 2>&5
 
6985
  ac_status=$?
 
6986
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6987
  test $ac_status = 0; }; then
 
6988
    case `/usr/bin/file conftest.o` in
 
6989
      *32-bit*)
 
6990
        case $host in
 
6991
          x86_64-*kfreebsd*-gnu)
 
6992
            LD="${LD-ld} -m elf_i386_fbsd"
 
6993
            ;;
 
6994
          x86_64-*linux*)
 
6995
            case `/usr/bin/file conftest.o` in
 
6996
              *x86-64*)
 
6997
                LD="${LD-ld} -m elf32_x86_64"
 
6998
                ;;
 
6999
              *)
 
7000
                LD="${LD-ld} -m elf_i386"
 
7001
                ;;
 
7002
            esac
 
7003
            ;;
 
7004
          ppc64-*linux*|powerpc64-*linux*)
 
7005
            LD="${LD-ld} -m elf32ppclinux"
 
7006
            ;;
 
7007
          s390x-*linux*)
 
7008
            LD="${LD-ld} -m elf_s390"
 
7009
            ;;
 
7010
          sparc64-*linux*)
 
7011
            LD="${LD-ld} -m elf32_sparc"
 
7012
            ;;
 
7013
        esac
 
7014
        ;;
 
7015
      *64-bit*)
 
7016
        case $host in
 
7017
          x86_64-*kfreebsd*-gnu)
 
7018
            LD="${LD-ld} -m elf_x86_64_fbsd"
 
7019
            ;;
 
7020
          x86_64-*linux*)
 
7021
            LD="${LD-ld} -m elf_x86_64"
 
7022
            ;;
 
7023
          ppc*-*linux*|powerpc*-*linux*)
 
7024
            LD="${LD-ld} -m elf64ppc"
 
7025
            ;;
 
7026
          s390*-*linux*|s390*-*tpf*)
 
7027
            LD="${LD-ld} -m elf64_s390"
 
7028
            ;;
 
7029
          sparc*-*linux*)
 
7030
            LD="${LD-ld} -m elf64_sparc"
 
7031
            ;;
 
7032
        esac
 
7033
        ;;
 
7034
    esac
 
7035
  fi
 
7036
  rm -rf conftest*
 
7037
  ;;
 
7038
 
 
7039
*-*-sco3.2v5*)
 
7040
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
7041
  SAVE_CFLAGS="$CFLAGS"
 
7042
  CFLAGS="$CFLAGS -belf"
 
7043
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
 
7044
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
 
7045
if ${lt_cv_cc_needs_belf+:} false; then :
 
7046
  $as_echo_n "(cached) " >&6
 
7047
else
 
7048
  ac_ext=c
 
7049
ac_cpp='$CPP $CPPFLAGS'
 
7050
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7051
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7052
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7053
 
 
7054
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7055
/* end confdefs.h.  */
 
7056
 
 
7057
int
 
7058
main ()
 
7059
{
 
7060
 
 
7061
  ;
 
7062
  return 0;
 
7063
}
 
7064
_ACEOF
 
7065
if ac_fn_c_try_link "$LINENO"; then :
 
7066
  lt_cv_cc_needs_belf=yes
 
7067
else
 
7068
  lt_cv_cc_needs_belf=no
 
7069
fi
 
7070
rm -f core conftest.err conftest.$ac_objext \
 
7071
    conftest$ac_exeext conftest.$ac_ext
 
7072
     ac_ext=c
 
7073
ac_cpp='$CPP $CPPFLAGS'
 
7074
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7075
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7076
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7077
 
 
7078
fi
 
7079
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
 
7080
$as_echo "$lt_cv_cc_needs_belf" >&6; }
 
7081
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
7082
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
7083
    CFLAGS="$SAVE_CFLAGS"
 
7084
  fi
 
7085
  ;;
 
7086
*-*solaris*)
 
7087
  # Find out which ABI we are using.
 
7088
  echo 'int i;' > conftest.$ac_ext
 
7089
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
7090
  (eval $ac_compile) 2>&5
 
7091
  ac_status=$?
 
7092
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
7093
  test $ac_status = 0; }; then
 
7094
    case `/usr/bin/file conftest.o` in
 
7095
    *64-bit*)
 
7096
      case $lt_cv_prog_gnu_ld in
 
7097
      yes*)
 
7098
        case $host in
 
7099
        i?86-*-solaris*)
 
7100
          LD="${LD-ld} -m elf_x86_64"
 
7101
          ;;
 
7102
        sparc*-*-solaris*)
 
7103
          LD="${LD-ld} -m elf64_sparc"
 
7104
          ;;
 
7105
        esac
 
7106
        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
 
7107
        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
 
7108
          LD="${LD-ld}_sol2"
 
7109
        fi
 
7110
        ;;
 
7111
      *)
 
7112
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
7113
          LD="${LD-ld} -64"
 
7114
        fi
 
7115
        ;;
 
7116
      esac
 
7117
      ;;
 
7118
    esac
 
7119
  fi
 
7120
  rm -rf conftest*
 
7121
  ;;
 
7122
esac
 
7123
 
 
7124
need_locks="$enable_libtool_lock"
 
7125
 
 
7126
if test -n "$ac_tool_prefix"; then
 
7127
  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
 
7128
set dummy ${ac_tool_prefix}mt; ac_word=$2
 
7129
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7130
$as_echo_n "checking for $ac_word... " >&6; }
 
7131
if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
 
7132
  $as_echo_n "(cached) " >&6
 
7133
else
 
7134
  if test -n "$MANIFEST_TOOL"; then
 
7135
  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
 
7136
else
 
7137
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7138
for as_dir in $PATH
 
7139
do
 
7140
  IFS=$as_save_IFS
 
7141
  test -z "$as_dir" && as_dir=.
 
7142
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7143
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7144
    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
 
7145
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7146
    break 2
 
7147
  fi
 
7148
done
 
7149
  done
 
7150
IFS=$as_save_IFS
 
7151
 
 
7152
fi
 
7153
fi
 
7154
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
 
7155
if test -n "$MANIFEST_TOOL"; then
 
7156
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
 
7157
$as_echo "$MANIFEST_TOOL" >&6; }
 
7158
else
 
7159
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7160
$as_echo "no" >&6; }
 
7161
fi
 
7162
 
 
7163
 
 
7164
fi
 
7165
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
 
7166
  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
 
7167
  # Extract the first word of "mt", so it can be a program name with args.
 
7168
set dummy mt; ac_word=$2
 
7169
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7170
$as_echo_n "checking for $ac_word... " >&6; }
 
7171
if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
 
7172
  $as_echo_n "(cached) " >&6
 
7173
else
 
7174
  if test -n "$ac_ct_MANIFEST_TOOL"; then
 
7175
  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
 
7176
else
 
7177
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7178
for as_dir in $PATH
 
7179
do
 
7180
  IFS=$as_save_IFS
 
7181
  test -z "$as_dir" && as_dir=.
 
7182
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7183
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7184
    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
 
7185
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7186
    break 2
 
7187
  fi
 
7188
done
 
7189
  done
 
7190
IFS=$as_save_IFS
 
7191
 
 
7192
fi
 
7193
fi
 
7194
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
 
7195
if test -n "$ac_ct_MANIFEST_TOOL"; then
 
7196
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
 
7197
$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
 
7198
else
 
7199
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7200
$as_echo "no" >&6; }
 
7201
fi
 
7202
 
 
7203
  if test "x$ac_ct_MANIFEST_TOOL" = x; then
 
7204
    MANIFEST_TOOL=":"
 
7205
  else
 
7206
    case $cross_compiling:$ac_tool_warned in
 
7207
yes:)
 
7208
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7209
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7210
ac_tool_warned=yes ;;
 
7211
esac
 
7212
    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
 
7213
  fi
 
7214
else
 
7215
  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
 
7216
fi
 
7217
 
 
7218
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
 
7219
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
 
7220
$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
 
7221
if ${lt_cv_path_mainfest_tool+:} false; then :
 
7222
  $as_echo_n "(cached) " >&6
 
7223
else
 
7224
  lt_cv_path_mainfest_tool=no
 
7225
  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
 
7226
  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
 
7227
  cat conftest.err >&5
 
7228
  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
 
7229
    lt_cv_path_mainfest_tool=yes
 
7230
  fi
 
7231
  rm -f conftest*
 
7232
fi
 
7233
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
 
7234
$as_echo "$lt_cv_path_mainfest_tool" >&6; }
 
7235
if test "x$lt_cv_path_mainfest_tool" != xyes; then
 
7236
  MANIFEST_TOOL=:
 
7237
fi
 
7238
 
 
7239
    
 
7240
    
 
7241
    
 
7242
 
 
7243
 
 
7244
  case $host_os in
 
7245
    rhapsody* | darwin*)
 
7246
    if test -n "$ac_tool_prefix"; then
 
7247
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
 
7248
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
 
7249
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7250
$as_echo_n "checking for $ac_word... " >&6; }
 
7251
if ${ac_cv_prog_DSYMUTIL+:} false; then :
 
7252
  $as_echo_n "(cached) " >&6
 
7253
else
 
7254
  if test -n "$DSYMUTIL"; then
 
7255
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
 
7256
else
 
7257
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7258
for as_dir in $PATH
 
7259
do
 
7260
  IFS=$as_save_IFS
 
7261
  test -z "$as_dir" && as_dir=.
 
7262
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7263
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7264
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
 
7265
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7266
    break 2
 
7267
  fi
 
7268
done
 
7269
  done
 
7270
IFS=$as_save_IFS
 
7271
 
 
7272
fi
 
7273
fi
 
7274
DSYMUTIL=$ac_cv_prog_DSYMUTIL
 
7275
if test -n "$DSYMUTIL"; then
 
7276
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
 
7277
$as_echo "$DSYMUTIL" >&6; }
 
7278
else
 
7279
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7280
$as_echo "no" >&6; }
 
7281
fi
 
7282
 
 
7283
 
 
7284
fi
 
7285
if test -z "$ac_cv_prog_DSYMUTIL"; then
 
7286
  ac_ct_DSYMUTIL=$DSYMUTIL
 
7287
  # Extract the first word of "dsymutil", so it can be a program name with args.
 
7288
set dummy dsymutil; ac_word=$2
 
7289
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7290
$as_echo_n "checking for $ac_word... " >&6; }
 
7291
if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
 
7292
  $as_echo_n "(cached) " >&6
 
7293
else
 
7294
  if test -n "$ac_ct_DSYMUTIL"; then
 
7295
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
 
7296
else
 
7297
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7298
for as_dir in $PATH
 
7299
do
 
7300
  IFS=$as_save_IFS
 
7301
  test -z "$as_dir" && as_dir=.
 
7302
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7303
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7304
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
 
7305
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7306
    break 2
 
7307
  fi
 
7308
done
 
7309
  done
 
7310
IFS=$as_save_IFS
 
7311
 
 
7312
fi
 
7313
fi
 
7314
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
 
7315
if test -n "$ac_ct_DSYMUTIL"; then
 
7316
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
 
7317
$as_echo "$ac_ct_DSYMUTIL" >&6; }
 
7318
else
 
7319
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7320
$as_echo "no" >&6; }
 
7321
fi
 
7322
 
 
7323
  if test "x$ac_ct_DSYMUTIL" = x; then
 
7324
    DSYMUTIL=":"
 
7325
  else
 
7326
    case $cross_compiling:$ac_tool_warned in
 
7327
yes:)
 
7328
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7329
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7330
ac_tool_warned=yes ;;
 
7331
esac
 
7332
    DSYMUTIL=$ac_ct_DSYMUTIL
 
7333
  fi
 
7334
else
 
7335
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
 
7336
fi
 
7337
 
 
7338
    if test -n "$ac_tool_prefix"; then
 
7339
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
 
7340
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
 
7341
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7342
$as_echo_n "checking for $ac_word... " >&6; }
 
7343
if ${ac_cv_prog_NMEDIT+:} false; then :
 
7344
  $as_echo_n "(cached) " >&6
 
7345
else
 
7346
  if test -n "$NMEDIT"; then
 
7347
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
 
7348
else
 
7349
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7350
for as_dir in $PATH
 
7351
do
 
7352
  IFS=$as_save_IFS
 
7353
  test -z "$as_dir" && as_dir=.
 
7354
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7355
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7356
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
 
7357
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7358
    break 2
 
7359
  fi
 
7360
done
 
7361
  done
 
7362
IFS=$as_save_IFS
 
7363
 
 
7364
fi
 
7365
fi
 
7366
NMEDIT=$ac_cv_prog_NMEDIT
 
7367
if test -n "$NMEDIT"; then
 
7368
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
 
7369
$as_echo "$NMEDIT" >&6; }
 
7370
else
 
7371
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7372
$as_echo "no" >&6; }
 
7373
fi
 
7374
 
 
7375
 
 
7376
fi
 
7377
if test -z "$ac_cv_prog_NMEDIT"; then
 
7378
  ac_ct_NMEDIT=$NMEDIT
 
7379
  # Extract the first word of "nmedit", so it can be a program name with args.
 
7380
set dummy nmedit; ac_word=$2
 
7381
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7382
$as_echo_n "checking for $ac_word... " >&6; }
 
7383
if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
 
7384
  $as_echo_n "(cached) " >&6
 
7385
else
 
7386
  if test -n "$ac_ct_NMEDIT"; then
 
7387
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
 
7388
else
 
7389
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7390
for as_dir in $PATH
 
7391
do
 
7392
  IFS=$as_save_IFS
 
7393
  test -z "$as_dir" && as_dir=.
 
7394
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7395
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7396
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
 
7397
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7398
    break 2
 
7399
  fi
 
7400
done
 
7401
  done
 
7402
IFS=$as_save_IFS
 
7403
 
 
7404
fi
 
7405
fi
 
7406
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
 
7407
if test -n "$ac_ct_NMEDIT"; then
 
7408
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
 
7409
$as_echo "$ac_ct_NMEDIT" >&6; }
 
7410
else
 
7411
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7412
$as_echo "no" >&6; }
 
7413
fi
 
7414
 
 
7415
  if test "x$ac_ct_NMEDIT" = x; then
 
7416
    NMEDIT=":"
 
7417
  else
 
7418
    case $cross_compiling:$ac_tool_warned in
 
7419
yes:)
 
7420
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7421
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7422
ac_tool_warned=yes ;;
 
7423
esac
 
7424
    NMEDIT=$ac_ct_NMEDIT
 
7425
  fi
 
7426
else
 
7427
  NMEDIT="$ac_cv_prog_NMEDIT"
 
7428
fi
 
7429
 
 
7430
    if test -n "$ac_tool_prefix"; then
 
7431
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
 
7432
set dummy ${ac_tool_prefix}lipo; ac_word=$2
 
7433
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7434
$as_echo_n "checking for $ac_word... " >&6; }
 
7435
if ${ac_cv_prog_LIPO+:} false; then :
 
7436
  $as_echo_n "(cached) " >&6
 
7437
else
 
7438
  if test -n "$LIPO"; then
 
7439
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
 
7440
else
 
7441
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7442
for as_dir in $PATH
 
7443
do
 
7444
  IFS=$as_save_IFS
 
7445
  test -z "$as_dir" && as_dir=.
 
7446
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7447
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7448
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
 
7449
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7450
    break 2
 
7451
  fi
 
7452
done
 
7453
  done
 
7454
IFS=$as_save_IFS
 
7455
 
 
7456
fi
 
7457
fi
 
7458
LIPO=$ac_cv_prog_LIPO
 
7459
if test -n "$LIPO"; then
 
7460
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
 
7461
$as_echo "$LIPO" >&6; }
 
7462
else
 
7463
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7464
$as_echo "no" >&6; }
 
7465
fi
 
7466
 
 
7467
 
 
7468
fi
 
7469
if test -z "$ac_cv_prog_LIPO"; then
 
7470
  ac_ct_LIPO=$LIPO
 
7471
  # Extract the first word of "lipo", so it can be a program name with args.
 
7472
set dummy lipo; ac_word=$2
 
7473
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7474
$as_echo_n "checking for $ac_word... " >&6; }
 
7475
if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
 
7476
  $as_echo_n "(cached) " >&6
 
7477
else
 
7478
  if test -n "$ac_ct_LIPO"; then
 
7479
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
 
7480
else
 
7481
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7482
for as_dir in $PATH
 
7483
do
 
7484
  IFS=$as_save_IFS
 
7485
  test -z "$as_dir" && as_dir=.
 
7486
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7487
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7488
    ac_cv_prog_ac_ct_LIPO="lipo"
 
7489
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7490
    break 2
 
7491
  fi
 
7492
done
 
7493
  done
 
7494
IFS=$as_save_IFS
 
7495
 
 
7496
fi
 
7497
fi
 
7498
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
 
7499
if test -n "$ac_ct_LIPO"; then
 
7500
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
 
7501
$as_echo "$ac_ct_LIPO" >&6; }
 
7502
else
 
7503
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7504
$as_echo "no" >&6; }
 
7505
fi
 
7506
 
 
7507
  if test "x$ac_ct_LIPO" = x; then
 
7508
    LIPO=":"
 
7509
  else
 
7510
    case $cross_compiling:$ac_tool_warned in
 
7511
yes:)
 
7512
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7513
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7514
ac_tool_warned=yes ;;
 
7515
esac
 
7516
    LIPO=$ac_ct_LIPO
 
7517
  fi
 
7518
else
 
7519
  LIPO="$ac_cv_prog_LIPO"
 
7520
fi
 
7521
 
 
7522
    if test -n "$ac_tool_prefix"; then
 
7523
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
 
7524
set dummy ${ac_tool_prefix}otool; ac_word=$2
 
7525
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7526
$as_echo_n "checking for $ac_word... " >&6; }
 
7527
if ${ac_cv_prog_OTOOL+:} false; then :
 
7528
  $as_echo_n "(cached) " >&6
 
7529
else
 
7530
  if test -n "$OTOOL"; then
 
7531
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
 
7532
else
 
7533
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7534
for as_dir in $PATH
 
7535
do
 
7536
  IFS=$as_save_IFS
 
7537
  test -z "$as_dir" && as_dir=.
 
7538
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7539
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7540
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
 
7541
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7542
    break 2
 
7543
  fi
 
7544
done
 
7545
  done
 
7546
IFS=$as_save_IFS
 
7547
 
 
7548
fi
 
7549
fi
 
7550
OTOOL=$ac_cv_prog_OTOOL
 
7551
if test -n "$OTOOL"; then
 
7552
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
 
7553
$as_echo "$OTOOL" >&6; }
 
7554
else
 
7555
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7556
$as_echo "no" >&6; }
 
7557
fi
 
7558
 
 
7559
 
 
7560
fi
 
7561
if test -z "$ac_cv_prog_OTOOL"; then
 
7562
  ac_ct_OTOOL=$OTOOL
 
7563
  # Extract the first word of "otool", so it can be a program name with args.
 
7564
set dummy otool; ac_word=$2
 
7565
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7566
$as_echo_n "checking for $ac_word... " >&6; }
 
7567
if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
 
7568
  $as_echo_n "(cached) " >&6
 
7569
else
 
7570
  if test -n "$ac_ct_OTOOL"; then
 
7571
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
 
7572
else
 
7573
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7574
for as_dir in $PATH
 
7575
do
 
7576
  IFS=$as_save_IFS
 
7577
  test -z "$as_dir" && as_dir=.
 
7578
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7579
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7580
    ac_cv_prog_ac_ct_OTOOL="otool"
 
7581
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7582
    break 2
 
7583
  fi
 
7584
done
 
7585
  done
 
7586
IFS=$as_save_IFS
 
7587
 
 
7588
fi
 
7589
fi
 
7590
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
 
7591
if test -n "$ac_ct_OTOOL"; then
 
7592
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
 
7593
$as_echo "$ac_ct_OTOOL" >&6; }
 
7594
else
 
7595
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7596
$as_echo "no" >&6; }
 
7597
fi
 
7598
 
 
7599
  if test "x$ac_ct_OTOOL" = x; then
 
7600
    OTOOL=":"
 
7601
  else
 
7602
    case $cross_compiling:$ac_tool_warned in
 
7603
yes:)
 
7604
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7605
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7606
ac_tool_warned=yes ;;
 
7607
esac
 
7608
    OTOOL=$ac_ct_OTOOL
 
7609
  fi
 
7610
else
 
7611
  OTOOL="$ac_cv_prog_OTOOL"
 
7612
fi
 
7613
 
 
7614
    if test -n "$ac_tool_prefix"; then
 
7615
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
 
7616
set dummy ${ac_tool_prefix}otool64; ac_word=$2
 
7617
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7618
$as_echo_n "checking for $ac_word... " >&6; }
 
7619
if ${ac_cv_prog_OTOOL64+:} false; then :
 
7620
  $as_echo_n "(cached) " >&6
 
7621
else
 
7622
  if test -n "$OTOOL64"; then
 
7623
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
 
7624
else
 
7625
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7626
for as_dir in $PATH
 
7627
do
 
7628
  IFS=$as_save_IFS
 
7629
  test -z "$as_dir" && as_dir=.
 
7630
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7631
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7632
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
 
7633
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7634
    break 2
 
7635
  fi
 
7636
done
 
7637
  done
 
7638
IFS=$as_save_IFS
 
7639
 
 
7640
fi
 
7641
fi
 
7642
OTOOL64=$ac_cv_prog_OTOOL64
 
7643
if test -n "$OTOOL64"; then
 
7644
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
 
7645
$as_echo "$OTOOL64" >&6; }
 
7646
else
 
7647
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7648
$as_echo "no" >&6; }
 
7649
fi
 
7650
 
 
7651
 
 
7652
fi
 
7653
if test -z "$ac_cv_prog_OTOOL64"; then
 
7654
  ac_ct_OTOOL64=$OTOOL64
 
7655
  # Extract the first word of "otool64", so it can be a program name with args.
 
7656
set dummy otool64; ac_word=$2
 
7657
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7658
$as_echo_n "checking for $ac_word... " >&6; }
 
7659
if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
 
7660
  $as_echo_n "(cached) " >&6
 
7661
else
 
7662
  if test -n "$ac_ct_OTOOL64"; then
 
7663
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
 
7664
else
 
7665
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7666
for as_dir in $PATH
 
7667
do
 
7668
  IFS=$as_save_IFS
 
7669
  test -z "$as_dir" && as_dir=.
 
7670
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7671
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7672
    ac_cv_prog_ac_ct_OTOOL64="otool64"
 
7673
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7674
    break 2
 
7675
  fi
 
7676
done
 
7677
  done
 
7678
IFS=$as_save_IFS
 
7679
 
 
7680
fi
 
7681
fi
 
7682
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
 
7683
if test -n "$ac_ct_OTOOL64"; then
 
7684
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
 
7685
$as_echo "$ac_ct_OTOOL64" >&6; }
 
7686
else
 
7687
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7688
$as_echo "no" >&6; }
 
7689
fi
 
7690
 
 
7691
  if test "x$ac_ct_OTOOL64" = x; then
 
7692
    OTOOL64=":"
 
7693
  else
 
7694
    case $cross_compiling:$ac_tool_warned in
 
7695
yes:)
 
7696
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7697
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7698
ac_tool_warned=yes ;;
 
7699
esac
 
7700
    OTOOL64=$ac_ct_OTOOL64
 
7701
  fi
 
7702
else
 
7703
  OTOOL64="$ac_cv_prog_OTOOL64"
 
7704
fi
 
7705
 
 
7706
    
 
7707
    
 
7708
    
 
7709
    
 
7710
 
 
7711
    
 
7712
    
 
7713
    
 
7714
    
 
7715
 
 
7716
    
 
7717
    
 
7718
    
 
7719
    
 
7720
 
 
7721
    
 
7722
    
 
7723
    
 
7724
    
 
7725
 
 
7726
    
 
7727
    
 
7728
    
 
7729
    
 
7730
 
 
7731
 
 
7732
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
 
7733
$as_echo_n "checking for -single_module linker flag... " >&6; }
 
7734
if ${lt_cv_apple_cc_single_mod+:} false; then :
 
7735
  $as_echo_n "(cached) " >&6
 
7736
else
 
7737
  lt_cv_apple_cc_single_mod=no
 
7738
      if test -z "${LT_MULTI_MODULE}"; then
 
7739
        # By default we will add the -single_module flag. You can override
 
7740
        # by either setting the environment variable LT_MULTI_MODULE
 
7741
        # non-empty at configure time, or by adding -multi_module to the
 
7742
        # link flags.
 
7743
        rm -rf libconftest.dylib*
 
7744
        echo "int foo(void){return 1;}" > conftest.c
 
7745
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
7746
-dynamiclib -Wl,-single_module conftest.c" >&5
 
7747
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
7748
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
 
7749
        _lt_result=$?
 
7750
        # If there is a non-empty error log, and "single_module"
 
7751
        # appears in it, assume the flag caused a linker warning
 
7752
        if test -s conftest.err && $GREP single_module conftest.err; then
 
7753
          cat conftest.err >&5
 
7754
        # Otherwise, if the output was created with a 0 exit code from
 
7755
        # the compiler, it worked.
 
7756
        elif test -f libconftest.dylib && test $_lt_result -eq 0; then
 
7757
          lt_cv_apple_cc_single_mod=yes
 
7758
        else
 
7759
          cat conftest.err >&5
 
7760
        fi
 
7761
        rm -rf libconftest.dylib*
 
7762
        rm -f conftest.*
 
7763
      fi
 
7764
fi
 
7765
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
 
7766
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
 
7767
 
 
7768
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
 
7769
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
 
7770
if ${lt_cv_ld_exported_symbols_list+:} false; then :
 
7771
  $as_echo_n "(cached) " >&6
 
7772
else
 
7773
  lt_cv_ld_exported_symbols_list=no
 
7774
      save_LDFLAGS=$LDFLAGS
 
7775
      echo "_main" > conftest.sym
 
7776
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
 
7777
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7778
/* end confdefs.h.  */
 
7779
 
 
7780
int
 
7781
main ()
 
7782
{
 
7783
 
 
7784
  ;
 
7785
  return 0;
 
7786
}
 
7787
_ACEOF
 
7788
if ac_fn_c_try_link "$LINENO"; then :
 
7789
  lt_cv_ld_exported_symbols_list=yes
 
7790
else
 
7791
  lt_cv_ld_exported_symbols_list=no
 
7792
fi
 
7793
rm -f core conftest.err conftest.$ac_objext \
 
7794
    conftest$ac_exeext conftest.$ac_ext
 
7795
        LDFLAGS="$save_LDFLAGS"
 
7796
    
 
7797
fi
 
7798
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
 
7799
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
 
7800
 
 
7801
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
 
7802
$as_echo_n "checking for -force_load linker flag... " >&6; }
 
7803
if ${lt_cv_ld_force_load+:} false; then :
 
7804
  $as_echo_n "(cached) " >&6
 
7805
else
 
7806
  lt_cv_ld_force_load=no
 
7807
      cat > conftest.c << _LT_EOF
 
7808
int forced_loaded() { return 2;}
 
7809
_LT_EOF
 
7810
      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
 
7811
      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
 
7812
      echo "$AR cru libconftest.a conftest.o" >&5
 
7813
      $AR cru libconftest.a conftest.o 2>&5
 
7814
      echo "$RANLIB libconftest.a" >&5
 
7815
      $RANLIB libconftest.a 2>&5
 
7816
      cat > conftest.c << _LT_EOF
 
7817
int main() { return 0;}
 
7818
_LT_EOF
 
7819
      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
 
7820
      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
 
7821
      _lt_result=$?
 
7822
      if test -s conftest.err && $GREP force_load conftest.err; then
 
7823
        cat conftest.err >&5
 
7824
      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
 
7825
        lt_cv_ld_force_load=yes
 
7826
      else
 
7827
        cat conftest.err >&5
 
7828
      fi
 
7829
        rm -f conftest.err libconftest.a conftest conftest.c
 
7830
        rm -rf conftest.dSYM
 
7831
    
 
7832
fi
 
7833
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
 
7834
$as_echo "$lt_cv_ld_force_load" >&6; }
 
7835
    case $host_os in
 
7836
    rhapsody* | darwin1.[012])
 
7837
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
 
7838
    darwin1.*)
 
7839
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
7840
    darwin*) # darwin 5.x on
 
7841
      # if running on 10.5 or later, the deployment target defaults
 
7842
      # to the OS version, if on x86, and 10.4, the deployment
 
7843
      # target defaults to 10.4. Don't you love it?
 
7844
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
 
7845
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
 
7846
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
7847
        10.[012]*)
 
7848
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
7849
        10.*)
 
7850
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
7851
      esac
 
7852
    ;;
 
7853
  esac
 
7854
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
 
7855
      _lt_dar_single_mod='$single_module'
 
7856
    fi
 
7857
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
 
7858
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
 
7859
    else
 
7860
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
7861
    fi
 
7862
    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
 
7863
      _lt_dsymutil='~$DSYMUTIL $lib || :'
 
7864
    else
 
7865
      _lt_dsymutil=
 
7866
    fi
 
7867
    ;;
 
7868
  esac
 
7869
 
 
7870
ac_ext=c
 
7871
ac_cpp='$CPP $CPPFLAGS'
 
7872
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7873
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7874
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7875
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
 
7876
$as_echo_n "checking how to run the C preprocessor... " >&6; }
 
7877
# On Suns, sometimes $CPP names a directory.
 
7878
if test -n "$CPP" && test -d "$CPP"; then
 
7879
  CPP=
 
7880
fi
 
7881
if test -z "$CPP"; then
 
7882
  if ${ac_cv_prog_CPP+:} false; then :
 
7883
  $as_echo_n "(cached) " >&6
 
7884
else
 
7885
      # Double quotes because CPP needs to be expanded
 
7886
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
7887
    do
 
7888
      ac_preproc_ok=false
 
7889
for ac_c_preproc_warn_flag in '' yes
 
7890
do
 
7891
  # Use a header file that comes with gcc, so configuring glibc
 
7892
  # with a fresh cross-compiler works.
 
7893
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
7894
  # <limits.h> exists even on freestanding compilers.
 
7895
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
7896
  # not just through cpp. "Syntax error" is here to catch this case.
 
7897
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7898
/* end confdefs.h.  */
 
7899
@%:@ifdef __STDC__
 
7900
@%:@ include <limits.h>
 
7901
@%:@else
 
7902
@%:@ include <assert.h>
 
7903
@%:@endif
 
7904
                     Syntax error
 
7905
_ACEOF
 
7906
if ac_fn_c_try_cpp "$LINENO"; then :
 
7907
  
 
7908
else
 
7909
  # Broken: fails on valid input.
 
7910
continue
 
7911
fi
 
7912
rm -f conftest.err conftest.i conftest.$ac_ext
 
7913
 
 
7914
  # OK, works on sane cases.  Now check whether nonexistent headers
 
7915
  # can be detected and how.
 
7916
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7917
/* end confdefs.h.  */
 
7918
@%:@include <ac_nonexistent.h>
 
7919
_ACEOF
 
7920
if ac_fn_c_try_cpp "$LINENO"; then :
 
7921
  # Broken: success on invalid input.
 
7922
continue
 
7923
else
 
7924
  # Passes both tests.
 
7925
ac_preproc_ok=:
 
7926
break
 
7927
fi
 
7928
rm -f conftest.err conftest.i conftest.$ac_ext
 
7929
 
 
7930
done
 
7931
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
7932
rm -f conftest.i conftest.err conftest.$ac_ext
 
7933
if $ac_preproc_ok; then :
 
7934
  break
 
7935
fi
 
7936
 
 
7937
    done
 
7938
    ac_cv_prog_CPP=$CPP
 
7939
  
 
7940
fi
 
7941
  CPP=$ac_cv_prog_CPP
 
7942
else
 
7943
  ac_cv_prog_CPP=$CPP
 
7944
fi
 
7945
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
 
7946
$as_echo "$CPP" >&6; }
 
7947
ac_preproc_ok=false
 
7948
for ac_c_preproc_warn_flag in '' yes
 
7949
do
 
7950
  # Use a header file that comes with gcc, so configuring glibc
 
7951
  # with a fresh cross-compiler works.
 
7952
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
7953
  # <limits.h> exists even on freestanding compilers.
 
7954
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
7955
  # not just through cpp. "Syntax error" is here to catch this case.
 
7956
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7957
/* end confdefs.h.  */
 
7958
@%:@ifdef __STDC__
 
7959
@%:@ include <limits.h>
 
7960
@%:@else
 
7961
@%:@ include <assert.h>
 
7962
@%:@endif
 
7963
                     Syntax error
 
7964
_ACEOF
 
7965
if ac_fn_c_try_cpp "$LINENO"; then :
 
7966
  
 
7967
else
 
7968
  # Broken: fails on valid input.
 
7969
continue
 
7970
fi
 
7971
rm -f conftest.err conftest.i conftest.$ac_ext
 
7972
 
 
7973
  # OK, works on sane cases.  Now check whether nonexistent headers
 
7974
  # can be detected and how.
 
7975
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7976
/* end confdefs.h.  */
 
7977
@%:@include <ac_nonexistent.h>
 
7978
_ACEOF
 
7979
if ac_fn_c_try_cpp "$LINENO"; then :
 
7980
  # Broken: success on invalid input.
 
7981
continue
 
7982
else
 
7983
  # Passes both tests.
 
7984
ac_preproc_ok=:
 
7985
break
 
7986
fi
 
7987
rm -f conftest.err conftest.i conftest.$ac_ext
 
7988
 
 
7989
done
 
7990
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
7991
rm -f conftest.i conftest.err conftest.$ac_ext
 
7992
if $ac_preproc_ok; then :
 
7993
  
 
7994
else
 
7995
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
7996
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
7997
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
 
7998
See \`config.log' for more details" "$LINENO" 5; }
 
7999
fi
 
8000
 
 
8001
ac_ext=c
 
8002
ac_cpp='$CPP $CPPFLAGS'
 
8003
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
8004
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
8005
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
8006
 
 
8007
 
 
8008
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
 
8009
$as_echo_n "checking for ANSI C header files... " >&6; }
 
8010
if ${ac_cv_header_stdc+:} false; then :
 
8011
  $as_echo_n "(cached) " >&6
 
8012
else
 
8013
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8014
/* end confdefs.h.  */
 
8015
#include <stdlib.h>
 
8016
#include <stdarg.h>
 
8017
#include <string.h>
 
8018
#include <float.h>
 
8019
 
 
8020
int
 
8021
main ()
 
8022
{
 
8023
 
 
8024
  ;
 
8025
  return 0;
 
8026
}
 
8027
_ACEOF
 
8028
if ac_fn_c_try_compile "$LINENO"; then :
 
8029
  ac_cv_header_stdc=yes
 
8030
else
 
8031
  ac_cv_header_stdc=no
 
8032
fi
 
8033
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8034
 
 
8035
if test $ac_cv_header_stdc = yes; then
 
8036
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
8037
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8038
/* end confdefs.h.  */
 
8039
#include <string.h>
 
8040
 
 
8041
_ACEOF
 
8042
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
8043
  $EGREP "memchr" >/dev/null 2>&1; then :
 
8044
  
 
8045
else
 
8046
  ac_cv_header_stdc=no
 
8047
fi
 
8048
rm -f conftest*
 
8049
 
 
8050
fi
 
8051
 
 
8052
if test $ac_cv_header_stdc = yes; then
 
8053
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
8054
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8055
/* end confdefs.h.  */
 
8056
#include <stdlib.h>
 
8057
 
 
8058
_ACEOF
 
8059
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
8060
  $EGREP "free" >/dev/null 2>&1; then :
 
8061
  
 
8062
else
 
8063
  ac_cv_header_stdc=no
 
8064
fi
 
8065
rm -f conftest*
 
8066
 
 
8067
fi
 
8068
 
 
8069
if test $ac_cv_header_stdc = yes; then
 
8070
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
8071
  if test "$cross_compiling" = yes; then :
 
8072
  :
 
8073
else
 
8074
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8075
/* end confdefs.h.  */
 
8076
#include <ctype.h>
 
8077
#include <stdlib.h>
 
8078
#if ((' ' & 0x0FF) == 0x020)
 
8079
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
8080
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
8081
#else
 
8082
# define ISLOWER(c) \
 
8083
                   (('a' <= (c) && (c) <= 'i') \
 
8084
                     || ('j' <= (c) && (c) <= 'r') \
 
8085
                     || ('s' <= (c) && (c) <= 'z'))
 
8086
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
8087
#endif
 
8088
 
 
8089
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
8090
int
 
8091
main ()
 
8092
{
 
8093
  int i;
 
8094
  for (i = 0; i < 256; i++)
 
8095
    if (XOR (islower (i), ISLOWER (i))
 
8096
        || toupper (i) != TOUPPER (i))
 
8097
      return 2;
 
8098
  return 0;
 
8099
}
 
8100
_ACEOF
 
8101
if ac_fn_c_try_run "$LINENO"; then :
 
8102
  
 
8103
else
 
8104
  ac_cv_header_stdc=no
 
8105
fi
 
8106
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
8107
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
8108
fi
 
8109
 
 
8110
fi
 
8111
fi
 
8112
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
 
8113
$as_echo "$ac_cv_header_stdc" >&6; }
 
8114
if test $ac_cv_header_stdc = yes; then
 
8115
  
 
8116
$as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
 
8117
 
 
8118
fi
 
8119
 
 
8120
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
8121
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
8122
                  inttypes.h stdint.h unistd.h
 
8123
do :
 
8124
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
8125
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
 
8126
"
 
8127
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 
8128
  cat >>confdefs.h <<_ACEOF
 
8129
@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
8130
_ACEOF
 
8131
 
 
8132
fi
 
8133
 
 
8134
done
 
8135
 
 
8136
 
 
8137
for ac_header in dlfcn.h
 
8138
do :
 
8139
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
 
8140
"
 
8141
if test "x$ac_cv_header_dlfcn_h" = xyes; then :
 
8142
  cat >>confdefs.h <<_ACEOF
 
8143
@%:@define HAVE_DLFCN_H 1
 
8144
_ACEOF
 
8145
 
 
8146
fi
 
8147
 
 
8148
done
 
8149
 
 
8150
 
 
8151
 
 
8152
 
 
8153
 
 
8154
# Set options
 
8155
 
 
8156
 
 
8157
 
 
8158
        
 
8159
  enable_win32_dll=no
 
8160
  
 
8161
 
 
8162
            @%:@ Check whether --enable-shared was given.
 
8163
if test "${enable_shared+set}" = set; then :
 
8164
  enableval=$enable_shared; p=${PACKAGE-default}
 
8165
    case $enableval in
 
8166
    yes) enable_shared=yes ;;
 
8167
    no) enable_shared=no ;;
 
8168
    *)
 
8169
      enable_shared=no
 
8170
      # Look at the argument we got.  We use all the common list separators.
 
8171
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
8172
      for pkg in $enableval; do
 
8173
        IFS="$lt_save_ifs"
 
8174
        if test "X$pkg" = "X$p"; then
 
8175
          enable_shared=yes
 
8176
        fi
 
8177
      done
 
8178
      IFS="$lt_save_ifs"
 
8179
      ;;
 
8180
    esac
 
8181
else
 
8182
  enable_shared=yes
 
8183
fi
 
8184
 
 
8185
 
 
8186
    
 
8187
    
 
8188
    
 
8189
    
 
8190
 
 
8191
 
 
8192
 
 
8193
  
 
8194
  
 
8195
@%:@ Check whether --with-pic was given.
 
8196
if test "${with_pic+set}" = set; then :
 
8197
  withval=$with_pic; lt_p=${PACKAGE-default}
 
8198
    case $withval in
 
8199
    yes|no) pic_mode=$withval ;;
 
8200
    *)
 
8201
      pic_mode=default
 
8202
      # Look at the argument we got.  We use all the common list separators.
 
8203
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
8204
      for lt_pkg in $withval; do
 
8205
        IFS="$lt_save_ifs"
 
8206
        if test "X$lt_pkg" = "X$lt_p"; then
 
8207
          pic_mode=yes
 
8208
        fi
 
8209
      done
 
8210
      IFS="$lt_save_ifs"
 
8211
      ;;
 
8212
    esac
 
8213
else
 
8214
  pic_mode=default
 
8215
fi
 
8216
 
 
8217
 
 
8218
test -z "$pic_mode" && pic_mode=default
 
8219
 
 
8220
 
 
8221
    
 
8222
    
 
8223
    
 
8224
 
 
8225
 
 
8226
  @%:@ Check whether --enable-fast-install was given.
 
8227
if test "${enable_fast_install+set}" = set; then :
 
8228
  enableval=$enable_fast_install; p=${PACKAGE-default}
 
8229
    case $enableval in
 
8230
    yes) enable_fast_install=yes ;;
 
8231
    no) enable_fast_install=no ;;
 
8232
    *)
 
8233
      enable_fast_install=no
 
8234
      # Look at the argument we got.  We use all the common list separators.
 
8235
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
8236
      for pkg in $enableval; do
 
8237
        IFS="$lt_save_ifs"
 
8238
        if test "X$pkg" = "X$p"; then
 
8239
          enable_fast_install=yes
 
8240
        fi
 
8241
      done
 
8242
      IFS="$lt_save_ifs"
 
8243
      ;;
 
8244
    esac
 
8245
else
 
8246
  enable_fast_install=yes
 
8247
fi
 
8248
 
 
8249
 
 
8250
 
 
8251
    
 
8252
    
 
8253
    
 
8254
 
 
8255
 
 
8256
  
 
8257
 
 
8258
 
 
8259
# This can be used to rebuild libtool when needed
 
8260
LIBTOOL_DEPS="$ltmain"
 
8261
 
 
8262
# Always use our own libtool.
 
8263
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
8264
 
 
8265
 
 
8266
 
 
8267
    
 
8268
    
 
8269
    
 
8270
 
 
8271
    
 
8272
    
 
8273
    
 
8274
 
 
8275
    
 
8276
    
 
8277
    
 
8278
 
 
8279
    
 
8280
    
 
8281
    
 
8282
 
 
8283
    
 
8284
    
 
8285
    
 
8286
 
 
8287
    
 
8288
    
 
8289
    
 
8290
 
 
8291
    
 
8292
    
 
8293
    
 
8294
test -z "$LN_S" && LN_S="ln -s"
 
8295
 
 
8296
    
 
8297
    
 
8298
    
 
8299
 
 
8300
    
 
8301
    
 
8302
    
 
8303
 
 
8304
    
 
8305
    
 
8306
    
 
8307
 
 
8308
 
 
8309
if test -n "${ZSH_VERSION+set}" ; then
 
8310
   setopt NO_GLOB_SUBST
 
8311
fi
 
8312
 
 
8313
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
 
8314
$as_echo_n "checking for objdir... " >&6; }
 
8315
if ${lt_cv_objdir+:} false; then :
 
8316
  $as_echo_n "(cached) " >&6
 
8317
else
 
8318
  rm -f .libs 2>/dev/null
 
8319
mkdir .libs 2>/dev/null
 
8320
if test -d .libs; then
 
8321
  lt_cv_objdir=.libs
 
8322
else
 
8323
  # MS-DOS does not allow filenames that begin with a dot.
 
8324
  lt_cv_objdir=_libs
 
8325
fi
 
8326
rmdir .libs 2>/dev/null
 
8327
fi
 
8328
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
 
8329
$as_echo "$lt_cv_objdir" >&6; }
 
8330
objdir=$lt_cv_objdir
 
8331
 
 
8332
    
 
8333
    
 
8334
    
 
8335
 
 
8336
cat >>confdefs.h <<_ACEOF
 
8337
@%:@define LT_OBJDIR "$lt_cv_objdir/"
 
8338
_ACEOF
 
8339
 
 
8340
 
 
8341
 
 
8342
 
 
8343
case $host_os in
 
8344
aix3*)
 
8345
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
8346
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
8347
  # vanish in a puff of smoke.
 
8348
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
8349
    COLLECT_NAMES=
 
8350
    export COLLECT_NAMES
 
8351
  fi
 
8352
  ;;
 
8353
esac
 
8354
 
 
8355
# Global variables:
 
8356
ofile=libtool
 
8357
can_build_shared=yes
 
8358
 
 
8359
# All known linkers require a `.a' archive for static linking (except MSVC,
 
8360
# which needs '.lib').
 
8361
libext=a
 
8362
 
 
8363
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
8364
 
 
8365
old_CC="$CC"
 
8366
old_CFLAGS="$CFLAGS"
 
8367
 
 
8368
# Set sane defaults for various variables
 
8369
test -z "$CC" && CC=cc
 
8370
test -z "$LTCC" && LTCC=$CC
 
8371
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
8372
test -z "$LD" && LD=ld
 
8373
test -z "$ac_objext" && ac_objext=o
 
8374
 
 
8375
for cc_temp in $compiler""; do
 
8376
  case $cc_temp in
 
8377
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
8378
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
8379
    \-*) ;;
 
8380
    *) break;;
 
8381
  esac
 
8382
done
 
8383
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
 
8384
 
 
8385
 
 
8386
# Only perform the check for file, if the check method requires it
 
8387
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
8388
case $deplibs_check_method in
 
8389
file_magic*)
 
8390
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
8391
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
 
8392
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
 
8393
if ${lt_cv_path_MAGIC_CMD+:} false; then :
 
8394
  $as_echo_n "(cached) " >&6
 
8395
else
 
8396
  case $MAGIC_CMD in
 
8397
[\\/*] |  ?:[\\/]*)
 
8398
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
8399
  ;;
 
8400
*)
 
8401
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
8402
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
8403
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
8404
  for ac_dir in $ac_dummy; do
 
8405
    IFS="$lt_save_ifs"
 
8406
    test -z "$ac_dir" && ac_dir=.
 
8407
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
8408
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
8409
      if test -n "$file_magic_test_file"; then
 
8410
        case $deplibs_check_method in
 
8411
        "file_magic "*)
 
8412
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
8413
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8414
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
8415
            $EGREP "$file_magic_regex" > /dev/null; then
 
8416
            :
 
8417
          else
 
8418
            cat <<_LT_EOF 1>&2
 
8419
 
 
8420
*** Warning: the command libtool uses to detect shared libraries,
 
8421
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
8422
*** The result is that libtool may fail to recognize shared libraries
 
8423
*** as such.  This will affect the creation of libtool libraries that
 
8424
*** depend on shared libraries, but programs linked with such libtool
 
8425
*** libraries will work regardless of this problem.  Nevertheless, you
 
8426
*** may want to report the problem to your system manager and/or to
 
8427
*** bug-libtool@gnu.org
 
8428
 
 
8429
_LT_EOF
 
8430
          fi ;;
 
8431
        esac
 
8432
      fi
 
8433
      break
 
8434
    fi
 
8435
  done
 
8436
  IFS="$lt_save_ifs"
 
8437
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
8438
  ;;
 
8439
esac
 
8440
fi
 
8441
 
 
8442
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8443
if test -n "$MAGIC_CMD"; then
 
8444
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
 
8445
$as_echo "$MAGIC_CMD" >&6; }
 
8446
else
 
8447
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8448
$as_echo "no" >&6; }
 
8449
fi
 
8450
 
 
8451
    
 
8452
    
 
8453
    
 
8454
 
 
8455
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
8456
  if test -n "$ac_tool_prefix"; then
 
8457
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
 
8458
$as_echo_n "checking for file... " >&6; }
 
8459
if ${lt_cv_path_MAGIC_CMD+:} false; then :
 
8460
  $as_echo_n "(cached) " >&6
 
8461
else
 
8462
  case $MAGIC_CMD in
 
8463
[\\/*] |  ?:[\\/]*)
 
8464
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
8465
  ;;
 
8466
*)
 
8467
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
8468
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
8469
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
8470
  for ac_dir in $ac_dummy; do
 
8471
    IFS="$lt_save_ifs"
 
8472
    test -z "$ac_dir" && ac_dir=.
 
8473
    if test -f $ac_dir/file; then
 
8474
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
8475
      if test -n "$file_magic_test_file"; then
 
8476
        case $deplibs_check_method in
 
8477
        "file_magic "*)
 
8478
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
8479
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8480
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
8481
            $EGREP "$file_magic_regex" > /dev/null; then
 
8482
            :
 
8483
          else
 
8484
            cat <<_LT_EOF 1>&2
 
8485
 
 
8486
*** Warning: the command libtool uses to detect shared libraries,
 
8487
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
8488
*** The result is that libtool may fail to recognize shared libraries
 
8489
*** as such.  This will affect the creation of libtool libraries that
 
8490
*** depend on shared libraries, but programs linked with such libtool
 
8491
*** libraries will work regardless of this problem.  Nevertheless, you
 
8492
*** may want to report the problem to your system manager and/or to
 
8493
*** bug-libtool@gnu.org
 
8494
 
 
8495
_LT_EOF
 
8496
          fi ;;
 
8497
        esac
 
8498
      fi
 
8499
      break
 
8500
    fi
 
8501
  done
 
8502
  IFS="$lt_save_ifs"
 
8503
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
8504
  ;;
 
8505
esac
 
8506
fi
 
8507
 
 
8508
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8509
if test -n "$MAGIC_CMD"; then
 
8510
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
 
8511
$as_echo "$MAGIC_CMD" >&6; }
 
8512
else
 
8513
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8514
$as_echo "no" >&6; }
 
8515
fi
 
8516
 
 
8517
 
 
8518
  else
 
8519
    MAGIC_CMD=:
 
8520
  fi
 
8521
fi
 
8522
 
 
8523
  fi
 
8524
  ;;
 
8525
esac
 
8526
 
 
8527
# Use C for the default configuration in the libtool script
 
8528
 
 
8529
lt_save_CC="$CC"
 
8530
ac_ext=c
 
8531
ac_cpp='$CPP $CPPFLAGS'
 
8532
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
8533
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
8534
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
8535
 
 
8536
 
 
8537
# Source file extension for C test sources.
 
8538
ac_ext=c
 
8539
 
 
8540
# Object file extension for compiled C test sources.
 
8541
objext=o
 
8542
objext=$objext
 
8543
 
 
8544
# Code to be used in simple compile tests
 
8545
lt_simple_compile_test_code="int some_variable = 0;"
 
8546
 
 
8547
# Code to be used in simple link tests
 
8548
lt_simple_link_test_code='int main(){return(0);}'
 
8549
 
 
8550
 
 
8551
 
 
8552
 
 
8553
 
 
8554
 
 
8555
 
 
8556
# If no C compiler was specified, use CC.
 
8557
LTCC=${LTCC-"$CC"}
 
8558
 
 
8559
# If no C compiler flags were specified, use CFLAGS.
 
8560
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
8561
 
 
8562
# Allow CC to be a program name with arguments.
 
8563
compiler=$CC
 
8564
 
 
8565
# Save the default compiler, since it gets overwritten when the other
 
8566
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
 
8567
compiler_DEFAULT=$CC
 
8568
 
 
8569
# save warnings/boilerplate of simple test code
 
8570
ac_outfile=conftest.$ac_objext
 
8571
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
8572
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
8573
_lt_compiler_boilerplate=`cat conftest.err`
 
8574
$RM conftest*
 
8575
 
 
8576
ac_outfile=conftest.$ac_objext
 
8577
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
8578
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
8579
_lt_linker_boilerplate=`cat conftest.err`
 
8580
$RM -r conftest*
 
8581
 
 
8582
 
 
8583
## CAVEAT EMPTOR:
 
8584
## There is no encapsulation within the following macros, do not change
 
8585
## the running order or otherwise move them around unless you know exactly
 
8586
## what you are doing...
 
8587
if test -n "$compiler"; then
 
8588
  
 
8589
lt_prog_compiler_no_builtin_flag=
 
8590
 
 
8591
if test "$GCC" = yes; then
 
8592
  case $cc_basename in
 
8593
  nvcc*)
 
8594
    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
 
8595
  *)
 
8596
    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
 
8597
  esac
 
8598
 
 
8599
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
8600
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
 
8601
if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
 
8602
  $as_echo_n "(cached) " >&6
 
8603
else
 
8604
  lt_cv_prog_compiler_rtti_exceptions=no
 
8605
   ac_outfile=conftest.$ac_objext
 
8606
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8607
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
8608
   # Insert the option either (1) after the last *FLAGS variable, or
 
8609
   # (2) before a word containing "conftest.", or (3) at the end.
 
8610
   # Note that $ac_compile itself does not contain backslashes and begins
 
8611
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8612
   # The option is referenced via a variable to avoid confusing sed.
 
8613
   lt_compile=`echo "$ac_compile" | $SED \
 
8614
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8615
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8616
   -e 's:$: $lt_compiler_flag:'`
 
8617
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
8618
   (eval "$lt_compile" 2>conftest.err)
 
8619
   ac_status=$?
 
8620
   cat conftest.err >&5
 
8621
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8622
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
8623
     # The compiler can only warn and ignore the option if not recognized
 
8624
     # So say no if there are warnings other than the usual output.
 
8625
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
 
8626
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
8627
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
8628
       lt_cv_prog_compiler_rtti_exceptions=yes
 
8629
     fi
 
8630
   fi
 
8631
   $RM conftest*
 
8632
 
 
8633
fi
 
8634
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
8635
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
8636
 
 
8637
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
8638
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
8639
else
 
8640
    :
 
8641
fi
 
8642
 
 
8643
fi
 
8644
 
 
8645
    
 
8646
    
 
8647
    
 
8648
 
 
8649
 
 
8650
  lt_prog_compiler_wl=
 
8651
lt_prog_compiler_pic=
 
8652
lt_prog_compiler_static=
 
8653
 
 
8654
 
 
8655
  if test "$GCC" = yes; then
 
8656
    lt_prog_compiler_wl='-Wl,'
 
8657
    lt_prog_compiler_static='-static'
 
8658
 
 
8659
    case $host_os in
 
8660
      aix*)
 
8661
      # All AIX code is PIC.
 
8662
      if test "$host_cpu" = ia64; then
 
8663
        # AIX 5 now supports IA64 processor
 
8664
        lt_prog_compiler_static='-Bstatic'
 
8665
      fi
 
8666
      ;;
 
8667
 
 
8668
    amigaos*)
 
8669
      case $host_cpu in
 
8670
      powerpc)
 
8671
            # see comment about AmigaOS4 .so support
 
8672
            lt_prog_compiler_pic='-fPIC'
 
8673
        ;;
 
8674
      m68k)
 
8675
            # FIXME: we need at least 68020 code to build shared libraries, but
 
8676
            # adding the `-m68020' flag to GCC prevents building anything better,
 
8677
            # like `-m68040'.
 
8678
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
8679
        ;;
 
8680
      esac
 
8681
      ;;
 
8682
 
 
8683
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
8684
      # PIC is the default for these OSes.
 
8685
      ;;
 
8686
 
 
8687
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
8688
      # This hack is so that the source file can tell whether it is being
 
8689
      # built for inclusion in a dll (and should export symbols for example).
 
8690
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
8691
      # (--disable-auto-import) libraries
 
8692
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
8693
      ;;
 
8694
 
 
8695
    darwin* | rhapsody*)
 
8696
      # PIC is the default on this platform
 
8697
      # Common symbols not allowed in MH_DYLIB files
 
8698
      lt_prog_compiler_pic='-fno-common'
 
8699
      ;;
 
8700
 
 
8701
    haiku*)
 
8702
      # PIC is the default for Haiku.
 
8703
      # The "-static" flag exists, but is broken.
 
8704
      lt_prog_compiler_static=
 
8705
      ;;
 
8706
 
 
8707
    hpux*)
 
8708
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
8709
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
8710
      # sets the default TLS model and affects inlining.
 
8711
      case $host_cpu in
 
8712
      hppa*64*)
 
8713
        # +Z the default
 
8714
        ;;
 
8715
      *)
 
8716
        lt_prog_compiler_pic='-fPIC'
 
8717
        ;;
 
8718
      esac
 
8719
      ;;
 
8720
 
 
8721
    interix[3-9]*)
 
8722
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
8723
      # Instead, we relocate shared libraries at runtime.
 
8724
      ;;
 
8725
 
 
8726
    msdosdjgpp*)
 
8727
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
8728
      # on systems that don't support them.
 
8729
      lt_prog_compiler_can_build_shared=no
 
8730
      enable_shared=no
 
8731
      ;;
 
8732
 
 
8733
    *nto* | *qnx*)
 
8734
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
8735
      # it will coredump.
 
8736
      lt_prog_compiler_pic='-fPIC -shared'
 
8737
      ;;
 
8738
 
 
8739
    sysv4*MP*)
 
8740
      if test -d /usr/nec; then
 
8741
        lt_prog_compiler_pic=-Kconform_pic
 
8742
      fi
 
8743
      ;;
 
8744
 
 
8745
    *)
 
8746
      lt_prog_compiler_pic='-fPIC'
 
8747
      ;;
 
8748
    esac
 
8749
 
 
8750
    case $cc_basename in
 
8751
    nvcc*) # Cuda Compiler Driver 2.2
 
8752
      lt_prog_compiler_wl='-Xlinker '
 
8753
      if test -n "$lt_prog_compiler_pic"; then
 
8754
        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
 
8755
      fi
 
8756
      ;;
 
8757
    esac
 
8758
  else
 
8759
    # PORTME Check for flag to pass linker flags through the system compiler.
 
8760
    case $host_os in
 
8761
    aix*)
 
8762
      lt_prog_compiler_wl='-Wl,'
 
8763
      if test "$host_cpu" = ia64; then
 
8764
        # AIX 5 now supports IA64 processor
 
8765
        lt_prog_compiler_static='-Bstatic'
 
8766
      else
 
8767
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
8768
      fi
 
8769
      ;;
 
8770
 
 
8771
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
8772
      # This hack is so that the source file can tell whether it is being
 
8773
      # built for inclusion in a dll (and should export symbols for example).
 
8774
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
8775
      ;;
 
8776
 
 
8777
    hpux9* | hpux10* | hpux11*)
 
8778
      lt_prog_compiler_wl='-Wl,'
 
8779
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
8780
      # not for PA HP-UX.
 
8781
      case $host_cpu in
 
8782
      hppa*64*|ia64*)
 
8783
        # +Z the default
 
8784
        ;;
 
8785
      *)
 
8786
        lt_prog_compiler_pic='+Z'
 
8787
        ;;
 
8788
      esac
 
8789
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
8790
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
8791
      ;;
 
8792
 
 
8793
    irix5* | irix6* | nonstopux*)
 
8794
      lt_prog_compiler_wl='-Wl,'
 
8795
      # PIC (with -KPIC) is the default.
 
8796
      lt_prog_compiler_static='-non_shared'
 
8797
      ;;
 
8798
 
 
8799
    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
 
8800
      case $cc_basename in
 
8801
      # old Intel for x86_64 which still supported -KPIC.
 
8802
      ecc*)
 
8803
        lt_prog_compiler_wl='-Wl,'
 
8804
        lt_prog_compiler_pic='-KPIC'
 
8805
        lt_prog_compiler_static='-static'
 
8806
        ;;
 
8807
      # icc used to be incompatible with GCC.
 
8808
      # ICC 10 doesn't accept -KPIC any more.
 
8809
      icc* | ifort*)
 
8810
        lt_prog_compiler_wl='-Wl,'
 
8811
        lt_prog_compiler_pic='-fPIC'
 
8812
        lt_prog_compiler_static='-static'
 
8813
        ;;
 
8814
      # Lahey Fortran 8.1.
 
8815
      lf95*)
 
8816
        lt_prog_compiler_wl='-Wl,'
 
8817
        lt_prog_compiler_pic='--shared'
 
8818
        lt_prog_compiler_static='--static'
 
8819
        ;;
 
8820
      nagfor*)
 
8821
        # NAG Fortran compiler
 
8822
        lt_prog_compiler_wl='-Wl,-Wl,,'
 
8823
        lt_prog_compiler_pic='-PIC'
 
8824
        lt_prog_compiler_static='-Bstatic'
 
8825
        ;;
 
8826
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
 
8827
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
8828
        # which looks to be a dead project)
 
8829
        lt_prog_compiler_wl='-Wl,'
 
8830
        lt_prog_compiler_pic='-fpic'
 
8831
        lt_prog_compiler_static='-Bstatic'
 
8832
        ;;
 
8833
      ccc*)
 
8834
        lt_prog_compiler_wl='-Wl,'
 
8835
        # All Alpha code is PIC.
 
8836
        lt_prog_compiler_static='-non_shared'
 
8837
        ;;
 
8838
      xl* | bgxl* | bgf* | mpixl*)
 
8839
        # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
 
8840
        lt_prog_compiler_wl='-Wl,'
 
8841
        lt_prog_compiler_pic='-qpic'
 
8842
        lt_prog_compiler_static='-qstaticlink'
 
8843
        ;;
 
8844
      *)
 
8845
        case `$CC -V 2>&1 | sed 5q` in
 
8846
        *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
 
8847
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
8848
          lt_prog_compiler_pic='-KPIC'
 
8849
          lt_prog_compiler_static='-Bstatic'
 
8850
          lt_prog_compiler_wl=''
 
8851
          ;;
 
8852
        *Sun\ F* | *Sun*Fortran*)
 
8853
          lt_prog_compiler_pic='-KPIC'
 
8854
          lt_prog_compiler_static='-Bstatic'
 
8855
          lt_prog_compiler_wl='-Qoption ld '
 
8856
          ;;
 
8857
        *Sun\ C*)
 
8858
          # Sun C 5.9
 
8859
          lt_prog_compiler_pic='-KPIC'
 
8860
          lt_prog_compiler_static='-Bstatic'
 
8861
          lt_prog_compiler_wl='-Wl,'
 
8862
          ;;
 
8863
        *Intel*\ [CF]*Compiler*)
 
8864
          lt_prog_compiler_wl='-Wl,'
 
8865
          lt_prog_compiler_pic='-fPIC'
 
8866
          lt_prog_compiler_static='-static'
 
8867
          ;;
 
8868
        *Portland\ Group*)
 
8869
          lt_prog_compiler_wl='-Wl,'
 
8870
          lt_prog_compiler_pic='-fpic'
 
8871
          lt_prog_compiler_static='-Bstatic'
 
8872
          ;;
 
8873
        esac
 
8874
        ;;
 
8875
      esac
 
8876
      ;;
 
8877
 
 
8878
    newsos6)
 
8879
      lt_prog_compiler_pic='-KPIC'
 
8880
      lt_prog_compiler_static='-Bstatic'
 
8881
      ;;
 
8882
 
 
8883
    *nto* | *qnx*)
 
8884
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
8885
      # it will coredump.
 
8886
      lt_prog_compiler_pic='-fPIC -shared'
 
8887
      ;;
 
8888
 
 
8889
    osf3* | osf4* | osf5*)
 
8890
      lt_prog_compiler_wl='-Wl,'
 
8891
      # All OSF/1 code is PIC.
 
8892
      lt_prog_compiler_static='-non_shared'
 
8893
      ;;
 
8894
 
 
8895
    rdos*)
 
8896
      lt_prog_compiler_static='-non_shared'
 
8897
      ;;
 
8898
 
 
8899
    solaris*)
 
8900
      lt_prog_compiler_pic='-KPIC'
 
8901
      lt_prog_compiler_static='-Bstatic'
 
8902
      case $cc_basename in
 
8903
      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
 
8904
        lt_prog_compiler_wl='-Qoption ld ';;
 
8905
      *)
 
8906
        lt_prog_compiler_wl='-Wl,';;
 
8907
      esac
 
8908
      ;;
 
8909
 
 
8910
    sunos4*)
 
8911
      lt_prog_compiler_wl='-Qoption ld '
 
8912
      lt_prog_compiler_pic='-PIC'
 
8913
      lt_prog_compiler_static='-Bstatic'
 
8914
      ;;
 
8915
 
 
8916
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
8917
      lt_prog_compiler_wl='-Wl,'
 
8918
      lt_prog_compiler_pic='-KPIC'
 
8919
      lt_prog_compiler_static='-Bstatic'
 
8920
      ;;
 
8921
 
 
8922
    sysv4*MP*)
 
8923
      if test -d /usr/nec ;then
 
8924
        lt_prog_compiler_pic='-Kconform_pic'
 
8925
        lt_prog_compiler_static='-Bstatic'
 
8926
      fi
 
8927
      ;;
 
8928
 
 
8929
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
8930
      lt_prog_compiler_wl='-Wl,'
 
8931
      lt_prog_compiler_pic='-KPIC'
 
8932
      lt_prog_compiler_static='-Bstatic'
 
8933
      ;;
 
8934
 
 
8935
    unicos*)
 
8936
      lt_prog_compiler_wl='-Wl,'
 
8937
      lt_prog_compiler_can_build_shared=no
 
8938
      ;;
 
8939
 
 
8940
    uts4*)
 
8941
      lt_prog_compiler_pic='-pic'
 
8942
      lt_prog_compiler_static='-Bstatic'
 
8943
      ;;
 
8944
 
 
8945
    *)
 
8946
      lt_prog_compiler_can_build_shared=no
 
8947
      ;;
 
8948
    esac
 
8949
  fi
 
8950
 
 
8951
case $host_os in
 
8952
  # For platforms which do not support PIC, -DPIC is meaningless:
 
8953
  *djgpp*)
 
8954
    lt_prog_compiler_pic=
 
8955
    ;;
 
8956
  *)
 
8957
    lt_prog_compiler_pic="$lt_prog_compiler_pic@&t@ -DPIC"
 
8958
    ;;
 
8959
esac
 
8960
 
 
8961
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
 
8962
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
8963
if ${lt_cv_prog_compiler_pic+:} false; then :
 
8964
  $as_echo_n "(cached) " >&6
 
8965
else
 
8966
  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
 
8967
fi
 
8968
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
 
8969
$as_echo "$lt_cv_prog_compiler_pic" >&6; }
 
8970
lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
 
8971
 
 
8972
#
 
8973
# Check to make sure the PIC flag actually works.
 
8974
#
 
8975
if test -n "$lt_prog_compiler_pic"; then
 
8976
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
8977
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
 
8978
if ${lt_cv_prog_compiler_pic_works+:} false; then :
 
8979
  $as_echo_n "(cached) " >&6
 
8980
else
 
8981
  lt_cv_prog_compiler_pic_works=no
 
8982
   ac_outfile=conftest.$ac_objext
 
8983
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8984
   lt_compiler_flag="$lt_prog_compiler_pic@&t@ -DPIC"
 
8985
   # Insert the option either (1) after the last *FLAGS variable, or
 
8986
   # (2) before a word containing "conftest.", or (3) at the end.
 
8987
   # Note that $ac_compile itself does not contain backslashes and begins
 
8988
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8989
   # The option is referenced via a variable to avoid confusing sed.
 
8990
   lt_compile=`echo "$ac_compile" | $SED \
 
8991
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8992
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8993
   -e 's:$: $lt_compiler_flag:'`
 
8994
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
8995
   (eval "$lt_compile" 2>conftest.err)
 
8996
   ac_status=$?
 
8997
   cat conftest.err >&5
 
8998
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8999
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
9000
     # The compiler can only warn and ignore the option if not recognized
 
9001
     # So say no if there are warnings other than the usual output.
 
9002
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
 
9003
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
9004
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
9005
       lt_cv_prog_compiler_pic_works=yes
 
9006
     fi
 
9007
   fi
 
9008
   $RM conftest*
 
9009
 
 
9010
fi
 
9011
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
 
9012
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
 
9013
 
 
9014
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
 
9015
    case $lt_prog_compiler_pic in
 
9016
     "" | " "*) ;;
 
9017
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
9018
     esac
 
9019
else
 
9020
    lt_prog_compiler_pic=
 
9021
     lt_prog_compiler_can_build_shared=no
 
9022
fi
 
9023
 
 
9024
fi
 
9025
 
 
9026
    
 
9027
    
 
9028
    
 
9029
 
 
9030
 
 
9031
 
 
9032
    
 
9033
    
 
9034
    
 
9035
 
 
9036
#
 
9037
# Check to make sure the static flag actually works.
 
9038
#
 
9039
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
 
9040
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
9041
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
9042
if ${lt_cv_prog_compiler_static_works+:} false; then :
 
9043
  $as_echo_n "(cached) " >&6
 
9044
else
 
9045
  lt_cv_prog_compiler_static_works=no
 
9046
   save_LDFLAGS="$LDFLAGS"
 
9047
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
9048
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
9049
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
9050
     # The linker can only warn and ignore the option if not recognized
 
9051
     # So say no if there are warnings
 
9052
     if test -s conftest.err; then
 
9053
       # Append any errors to the config.log.
 
9054
       cat conftest.err 1>&5
 
9055
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
 
9056
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
9057
       if diff conftest.exp conftest.er2 >/dev/null; then
 
9058
         lt_cv_prog_compiler_static_works=yes
 
9059
       fi
 
9060
     else
 
9061
       lt_cv_prog_compiler_static_works=yes
 
9062
     fi
 
9063
   fi
 
9064
   $RM -r conftest*
 
9065
   LDFLAGS="$save_LDFLAGS"
 
9066
 
 
9067
fi
 
9068
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
 
9069
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
 
9070
 
 
9071
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
 
9072
    :
 
9073
else
 
9074
    lt_prog_compiler_static=
 
9075
fi
 
9076
 
 
9077
 
 
9078
    
 
9079
    
 
9080
    
 
9081
 
 
9082
 
 
9083
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
9084
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
9085
if ${lt_cv_prog_compiler_c_o+:} false; then :
 
9086
  $as_echo_n "(cached) " >&6
 
9087
else
 
9088
  lt_cv_prog_compiler_c_o=no
 
9089
   $RM -r conftest 2>/dev/null
 
9090
   mkdir conftest
 
9091
   cd conftest
 
9092
   mkdir out
 
9093
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9094
 
 
9095
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
9096
   # Insert the option either (1) after the last *FLAGS variable, or
 
9097
   # (2) before a word containing "conftest.", or (3) at the end.
 
9098
   # Note that $ac_compile itself does not contain backslashes and begins
 
9099
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
9100
   lt_compile=`echo "$ac_compile" | $SED \
 
9101
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
9102
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
9103
   -e 's:$: $lt_compiler_flag:'`
 
9104
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
9105
   (eval "$lt_compile" 2>out/conftest.err)
 
9106
   ac_status=$?
 
9107
   cat out/conftest.err >&5
 
9108
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9109
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
9110
   then
 
9111
     # The compiler can only warn and ignore the option if not recognized
 
9112
     # So say no if there are warnings
 
9113
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
 
9114
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
9115
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
9116
       lt_cv_prog_compiler_c_o=yes
 
9117
     fi
 
9118
   fi
 
9119
   chmod u+w . 2>&5
 
9120
   $RM conftest*
 
9121
   # SGI C++ compiler will create directory out/ii_files/ for
 
9122
   # template instantiation
 
9123
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
9124
   $RM out/* && rmdir out
 
9125
   cd ..
 
9126
   $RM -r conftest
 
9127
   $RM conftest*
 
9128
 
 
9129
fi
 
9130
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
 
9131
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
9132
 
 
9133
    
 
9134
    
 
9135
    
 
9136
 
 
9137
 
 
9138
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
9139
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
9140
if ${lt_cv_prog_compiler_c_o+:} false; then :
 
9141
  $as_echo_n "(cached) " >&6
 
9142
else
 
9143
  lt_cv_prog_compiler_c_o=no
 
9144
   $RM -r conftest 2>/dev/null
 
9145
   mkdir conftest
 
9146
   cd conftest
 
9147
   mkdir out
 
9148
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9149
 
 
9150
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
9151
   # Insert the option either (1) after the last *FLAGS variable, or
 
9152
   # (2) before a word containing "conftest.", or (3) at the end.
 
9153
   # Note that $ac_compile itself does not contain backslashes and begins
 
9154
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
9155
   lt_compile=`echo "$ac_compile" | $SED \
 
9156
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
9157
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
9158
   -e 's:$: $lt_compiler_flag:'`
 
9159
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
9160
   (eval "$lt_compile" 2>out/conftest.err)
 
9161
   ac_status=$?
 
9162
   cat out/conftest.err >&5
 
9163
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9164
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
9165
   then
 
9166
     # The compiler can only warn and ignore the option if not recognized
 
9167
     # So say no if there are warnings
 
9168
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
 
9169
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
9170
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
9171
       lt_cv_prog_compiler_c_o=yes
 
9172
     fi
 
9173
   fi
 
9174
   chmod u+w . 2>&5
 
9175
   $RM conftest*
 
9176
   # SGI C++ compiler will create directory out/ii_files/ for
 
9177
   # template instantiation
 
9178
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
9179
   $RM out/* && rmdir out
 
9180
   cd ..
 
9181
   $RM -r conftest
 
9182
   $RM conftest*
 
9183
 
 
9184
fi
 
9185
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
 
9186
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
9187
 
 
9188
 
 
9189
 
 
9190
 
 
9191
hard_links="nottested"
 
9192
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
9193
  # do not overwrite the value of need_locks provided by the user
 
9194
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
 
9195
$as_echo_n "checking if we can lock with hard links... " >&6; }
 
9196
  hard_links=yes
 
9197
  $RM conftest*
 
9198
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
9199
  touch conftest.a
 
9200
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
9201
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
9202
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
 
9203
$as_echo "$hard_links" >&6; }
 
9204
  if test "$hard_links" = no; then
 
9205
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
9206
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
9207
    need_locks=warn
 
9208
  fi
 
9209
else
 
9210
  need_locks=no
 
9211
fi
 
9212
 
 
9213
    
 
9214
    
 
9215
    
 
9216
 
 
9217
 
 
9218
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
9219
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
9220
 
 
9221
  runpath_var=
 
9222
  allow_undefined_flag=
 
9223
  always_export_symbols=no
 
9224
  archive_cmds=
 
9225
  archive_expsym_cmds=
 
9226
  compiler_needs_object=no
 
9227
  enable_shared_with_static_runtimes=no
 
9228
  export_dynamic_flag_spec=
 
9229
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
9230
  hardcode_automatic=no
 
9231
  hardcode_direct=no
 
9232
  hardcode_direct_absolute=no
 
9233
  hardcode_libdir_flag_spec=
 
9234
  hardcode_libdir_separator=
 
9235
  hardcode_minus_L=no
 
9236
  hardcode_shlibpath_var=unsupported
 
9237
  inherit_rpath=no
 
9238
  link_all_deplibs=unknown
 
9239
  module_cmds=
 
9240
  module_expsym_cmds=
 
9241
  old_archive_from_new_cmds=
 
9242
  old_archive_from_expsyms_cmds=
 
9243
  thread_safe_flag_spec=
 
9244
  whole_archive_flag_spec=
 
9245
  # include_expsyms should be a list of space-separated symbols to be *always*
 
9246
  # included in the symbol list
 
9247
  include_expsyms=
 
9248
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
9249
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
9250
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
9251
  # as well as any symbol that contains `d'.
 
9252
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
9253
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
9254
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
9255
  # the symbol is explicitly referenced.  Since portable code cannot
 
9256
  # rely on this symbol name, it's probably fine to never include it in
 
9257
  # preloaded symbol tables.
 
9258
  # Exclude shared library initialization/finalization symbols.
 
9259
  extract_expsyms_cmds=
 
9260
 
 
9261
  case $host_os in
 
9262
  cygwin* | mingw* | pw32* | cegcc*)
 
9263
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
9264
    # When not using gcc, we currently assume that we are using
 
9265
    # Microsoft Visual C++.
 
9266
    if test "$GCC" != yes; then
 
9267
      with_gnu_ld=no
 
9268
    fi
 
9269
    ;;
 
9270
  interix*)
 
9271
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
9272
    with_gnu_ld=yes
 
9273
    ;;
 
9274
  openbsd*)
 
9275
    with_gnu_ld=no
 
9276
    ;;
 
9277
  linux* | k*bsd*-gnu | gnu*)
 
9278
    link_all_deplibs=no
 
9279
    ;;
 
9280
  esac
 
9281
 
 
9282
  ld_shlibs=yes
 
9283
 
 
9284
  # On some targets, GNU ld is compatible enough with the native linker
 
9285
  # that we're better off using the native interface for both.
 
9286
  lt_use_gnu_ld_interface=no
 
9287
  if test "$with_gnu_ld" = yes; then
 
9288
    case $host_os in
 
9289
      aix*)
 
9290
        # The AIX port of GNU ld has always aspired to compatibility
 
9291
        # with the native linker.  However, as the warning in the GNU ld
 
9292
        # block says, versions before 2.19.5* couldn't really create working
 
9293
        # shared libraries, regardless of the interface used.
 
9294
        case `$LD -v 2>&1` in
 
9295
          *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
 
9296
          *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
 
9297
          *\ \(GNU\ Binutils\)\ [3-9]*) ;;
 
9298
          *)
 
9299
            lt_use_gnu_ld_interface=yes
 
9300
            ;;
 
9301
        esac
 
9302
        ;;
 
9303
      *)
 
9304
        lt_use_gnu_ld_interface=yes
 
9305
        ;;
 
9306
    esac
 
9307
  fi
 
9308
 
 
9309
  if test "$lt_use_gnu_ld_interface" = yes; then
 
9310
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
9311
    wlarc='${wl}'
 
9312
 
 
9313
    # Set some defaults for GNU ld with shared library support. These
 
9314
    # are reset later if shared libraries are not supported. Putting them
 
9315
    # here allows them to be overridden if necessary.
 
9316
    runpath_var=LD_RUN_PATH
 
9317
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9318
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
9319
    # ancient GNU ld didn't support --whole-archive et. al.
 
9320
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
 
9321
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
9322
    else
 
9323
      whole_archive_flag_spec=
 
9324
    fi
 
9325
    supports_anon_versioning=no
 
9326
    case `$LD -v 2>&1` in
 
9327
      *GNU\ gold*) supports_anon_versioning=yes ;;
 
9328
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
9329
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
9330
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
9331
      *\ 2.11.*) ;; # other 2.11 versions
 
9332
      *) supports_anon_versioning=yes ;;
 
9333
    esac
 
9334
 
 
9335
    # See if GNU ld supports shared libraries.
 
9336
    case $host_os in
 
9337
    aix[3-9]*)
 
9338
      # On AIX/PPC, the GNU linker is very broken
 
9339
      if test "$host_cpu" != ia64; then
 
9340
        ld_shlibs=no
 
9341
        cat <<_LT_EOF 1>&2
 
9342
 
 
9343
*** Warning: the GNU linker, at least up to release 2.19, is reported
 
9344
*** to be unable to reliably create shared libraries on AIX.
 
9345
*** Therefore, libtool is disabling shared libraries support.  If you
 
9346
*** really care for shared libraries, you may want to install binutils
 
9347
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
 
9348
*** You will then need to restart the configuration process.
 
9349
 
 
9350
_LT_EOF
 
9351
      fi
 
9352
      ;;
 
9353
 
 
9354
    amigaos*)
 
9355
      case $host_cpu in
 
9356
      powerpc)
 
9357
            # see comment about AmigaOS4 .so support
 
9358
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9359
            archive_expsym_cmds=''
 
9360
        ;;
 
9361
      m68k)
 
9362
            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)'
 
9363
            hardcode_libdir_flag_spec='-L$libdir'
 
9364
            hardcode_minus_L=yes
 
9365
        ;;
 
9366
      esac
 
9367
      ;;
 
9368
 
 
9369
    beos*)
 
9370
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
9371
        allow_undefined_flag=unsupported
 
9372
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
9373
        # support --undefined.  This deserves some investigation.  FIXME
 
9374
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9375
      else
 
9376
        ld_shlibs=no
 
9377
      fi
 
9378
      ;;
 
9379
 
 
9380
    cygwin* | mingw* | pw32* | cegcc*)
 
9381
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
9382
      # as there is no search path for DLLs.
 
9383
      hardcode_libdir_flag_spec='-L$libdir'
 
9384
      export_dynamic_flag_spec='${wl}--export-all-symbols'
 
9385
      allow_undefined_flag=unsupported
 
9386
      always_export_symbols=no
 
9387
      enable_shared_with_static_runtimes=yes
 
9388
      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'
 
9389
      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
 
9390
 
 
9391
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
9392
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
9393
        # If the export-symbols file already is a .def file (1st line
 
9394
        # is EXPORTS), use it as is; otherwise, prepend...
 
9395
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
9396
          cp $export_symbols $output_objdir/$soname.def;
 
9397
        else
 
9398
          echo EXPORTS > $output_objdir/$soname.def;
 
9399
          cat $export_symbols >> $output_objdir/$soname.def;
 
9400
        fi~
 
9401
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
9402
      else
 
9403
        ld_shlibs=no
 
9404
      fi
 
9405
      ;;
 
9406
 
 
9407
    haiku*)
 
9408
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9409
      link_all_deplibs=yes
 
9410
      ;;
 
9411
 
 
9412
    interix[3-9]*)
 
9413
      hardcode_direct=no
 
9414
      hardcode_shlibpath_var=no
 
9415
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
9416
      export_dynamic_flag_spec='${wl}-E'
 
9417
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
9418
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
9419
      # default) and relocated if they conflict, which is a slow very memory
 
9420
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
9421
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
9422
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
9423
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
9424
      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'
 
9425
      ;;
 
9426
 
 
9427
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
 
9428
      tmp_diet=no
 
9429
      if test "$host_os" = linux-dietlibc; then
 
9430
        case $cc_basename in
 
9431
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
 
9432
        esac
 
9433
      fi
 
9434
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
 
9435
         && test "$tmp_diet" = no
 
9436
      then
 
9437
        tmp_addflag=' $pic_flag'
 
9438
        tmp_sharedflag='-shared'
 
9439
        case $cc_basename,$host_cpu in
 
9440
        pgcc*)                          # Portland Group C compiler
 
9441
          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'
 
9442
          tmp_addflag=' $pic_flag'
 
9443
          ;;
 
9444
        pgf77* | pgf90* | pgf95* | pgfortran*)
 
9445
                                        # Portland Group f77 and f90 compilers
 
9446
          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'
 
9447
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
9448
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
 
9449
          tmp_addflag=' -i_dynamic' ;;
 
9450
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
9451
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
9452
        ifc* | ifort*)                  # Intel Fortran compiler
 
9453
          tmp_addflag=' -nofor_main' ;;
 
9454
        lf95*)                          # Lahey Fortran 8.1
 
9455
          whole_archive_flag_spec=
 
9456
          tmp_sharedflag='--shared' ;;
 
9457
        xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
 
9458
          tmp_sharedflag='-qmkshrobj'
 
9459
          tmp_addflag= ;;
 
9460
        nvcc*)  # Cuda Compiler Driver 2.2
 
9461
          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'
 
9462
          compiler_needs_object=yes
 
9463
          ;;
 
9464
        esac
 
9465
        case `$CC -V 2>&1 | sed 5q` in
 
9466
        *Sun\ C*)                       # Sun C 5.9
 
9467
          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'
 
9468
          compiler_needs_object=yes
 
9469
          tmp_sharedflag='-G' ;;
 
9470
        *Sun\ F*)                       # Sun Fortran 8.3
 
9471
          tmp_sharedflag='-G' ;;
 
9472
        esac
 
9473
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9474
 
 
9475
        if test "x$supports_anon_versioning" = xyes; then
 
9476
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
9477
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
9478
            echo "local: *; };" >> $output_objdir/$libname.ver~
 
9479
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
9480
        fi
 
9481
 
 
9482
        case $cc_basename in
 
9483
        xlf* | bgf* | bgxlf* | mpixlf*)
 
9484
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
 
9485
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
 
9486
          hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9487
          archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
 
9488
          if test "x$supports_anon_versioning" = xyes; then
 
9489
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
9490
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
9491
              echo "local: *; };" >> $output_objdir/$libname.ver~
 
9492
              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 
9493
          fi
 
9494
          ;;
 
9495
        esac
 
9496
      else
 
9497
        ld_shlibs=no
 
9498
      fi
 
9499
      ;;
 
9500
 
 
9501
    netbsd* | netbsdelf*-gnu)
 
9502
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
9503
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
9504
        wlarc=
 
9505
      else
 
9506
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9507
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
9508
      fi
 
9509
      ;;
 
9510
 
 
9511
    solaris*)
 
9512
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
 
9513
        ld_shlibs=no
 
9514
        cat <<_LT_EOF 1>&2
 
9515
 
 
9516
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
9517
*** create shared libraries on Solaris systems.  Therefore, libtool
 
9518
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
9519
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
9520
*** your PATH or compiler configuration so that the native linker is
 
9521
*** used, and then restart.
 
9522
 
 
9523
_LT_EOF
 
9524
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
9525
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9526
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
9527
      else
 
9528
        ld_shlibs=no
 
9529
      fi
 
9530
      ;;
 
9531
 
 
9532
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
9533
      case `$LD -v 2>&1` in
 
9534
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
9535
        ld_shlibs=no
 
9536
        cat <<_LT_EOF 1>&2
 
9537
 
 
9538
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
9539
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
9540
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
9541
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
9542
*** your PATH or compiler configuration so that the native linker is
 
9543
*** used, and then restart.
 
9544
 
 
9545
_LT_EOF
 
9546
        ;;
 
9547
        *)
 
9548
          # For security reasons, it is highly recommended that you always
 
9549
          # use absolute paths for naming shared libraries, and exclude the
 
9550
          # DT_RUNPATH tag from executables and libraries.  But doing so
 
9551
          # requires that you compile everything twice, which is a pain.
 
9552
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
9553
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9554
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9555
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
9556
          else
 
9557
            ld_shlibs=no
 
9558
          fi
 
9559
        ;;
 
9560
      esac
 
9561
      ;;
 
9562
 
 
9563
    sunos4*)
 
9564
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
9565
      wlarc=
 
9566
      hardcode_direct=yes
 
9567
      hardcode_shlibpath_var=no
 
9568
      ;;
 
9569
 
 
9570
    *)
 
9571
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
9572
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9573
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
9574
      else
 
9575
        ld_shlibs=no
 
9576
      fi
 
9577
      ;;
 
9578
    esac
 
9579
 
 
9580
    if test "$ld_shlibs" = no; then
 
9581
      runpath_var=
 
9582
      hardcode_libdir_flag_spec=
 
9583
      export_dynamic_flag_spec=
 
9584
      whole_archive_flag_spec=
 
9585
    fi
 
9586
  else
 
9587
    # PORTME fill in a description of your system's linker (not GNU ld)
 
9588
    case $host_os in
 
9589
    aix3*)
 
9590
      allow_undefined_flag=unsupported
 
9591
      always_export_symbols=yes
 
9592
      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'
 
9593
      # Note: this linker hardcodes the directories in LIBPATH if there
 
9594
      # are no directories specified by -L.
 
9595
      hardcode_minus_L=yes
 
9596
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
9597
        # Neither direct hardcoding nor static linking is supported with a
 
9598
        # broken collect2.
 
9599
        hardcode_direct=unsupported
 
9600
      fi
 
9601
      ;;
 
9602
 
 
9603
    aix[4-9]*)
 
9604
      if test "$host_cpu" = ia64; then
 
9605
        # On IA64, the linker does run time linking by default, so we don't
 
9606
        # have to do anything special.
 
9607
        aix_use_runtimelinking=no
 
9608
        exp_sym_flag='-Bexport'
 
9609
        no_entry_flag=""
 
9610
      else
 
9611
        # If we're using GNU nm, then we don't want the "-C" option.
 
9612
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
9613
        # Also, AIX nm treats weak defined symbols like other global
 
9614
        # defined symbols, whereas GNU nm marks them as "W".
 
9615
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
9616
          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'
 
9617
        else
 
9618
          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'
 
9619
        fi
 
9620
        aix_use_runtimelinking=no
 
9621
 
 
9622
        # Test if we are trying to use run time linking or normal
 
9623
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
9624
        # need to do runtime linking.
 
9625
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
9626
          for ld_flag in $LDFLAGS; do
 
9627
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
9628
            aix_use_runtimelinking=yes
 
9629
            break
 
9630
          fi
 
9631
          done
 
9632
          ;;
 
9633
        esac
 
9634
 
 
9635
        exp_sym_flag='-bexport'
 
9636
        no_entry_flag='-bnoentry'
 
9637
      fi
 
9638
 
 
9639
      # When large executables or shared objects are built, AIX ld can
 
9640
      # have problems creating the table of contents.  If linking a library
 
9641
      # or program results in "error TOC overflow" add -mminimal-toc to
 
9642
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
9643
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
9644
 
 
9645
      archive_cmds=''
 
9646
      hardcode_direct=yes
 
9647
      hardcode_direct_absolute=yes
 
9648
      hardcode_libdir_separator=':'
 
9649
      link_all_deplibs=yes
 
9650
      file_list_spec='${wl}-f,'
 
9651
 
 
9652
      if test "$GCC" = yes; then
 
9653
        case $host_os in aix4.[012]|aix4.[012].*)
 
9654
        # We only want to do this on AIX 4.2 and lower, the check
 
9655
        # below for broken collect2 doesn't work under 4.3+
 
9656
          collect2name=`${CC} -print-prog-name=collect2`
 
9657
          if test -f "$collect2name" &&
 
9658
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 
9659
          then
 
9660
          # We have reworked collect2
 
9661
          :
 
9662
          else
 
9663
          # We have old collect2
 
9664
          hardcode_direct=unsupported
 
9665
          # It fails to find uninstalled libraries when the uninstalled
 
9666
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
9667
          # to unsupported forces relinking
 
9668
          hardcode_minus_L=yes
 
9669
          hardcode_libdir_flag_spec='-L$libdir'
 
9670
          hardcode_libdir_separator=
 
9671
          fi
 
9672
          ;;
 
9673
        esac
 
9674
        shared_flag='-shared'
 
9675
        if test "$aix_use_runtimelinking" = yes; then
 
9676
          shared_flag="$shared_flag "'${wl}-G'
 
9677
        fi
 
9678
        link_all_deplibs=no
 
9679
      else
 
9680
        # not using gcc
 
9681
        if test "$host_cpu" = ia64; then
 
9682
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
9683
        # chokes on -Wl,-G. The following line is correct:
 
9684
          shared_flag='-G'
 
9685
        else
 
9686
          if test "$aix_use_runtimelinking" = yes; then
 
9687
            shared_flag='${wl}-G'
 
9688
          else
 
9689
            shared_flag='${wl}-bM:SRE'
 
9690
          fi
 
9691
        fi
 
9692
      fi
 
9693
 
 
9694
      export_dynamic_flag_spec='${wl}-bexpall'
 
9695
      # It seems that -bexpall does not export symbols beginning with
 
9696
      # underscore (_), so it is better to generate a list of symbols to export.
 
9697
      always_export_symbols=yes
 
9698
      if test "$aix_use_runtimelinking" = yes; then
 
9699
        # Warning - without using the other runtime loading flags (-brtl),
 
9700
        # -berok will link without error, but may produce a broken library.
 
9701
        allow_undefined_flag='-berok'
 
9702
        # Determine the default libpath from the value encoded in an
 
9703
        # empty executable.
 
9704
        if test "${lt_cv_aix_libpath+set}" = set; then
 
9705
  aix_libpath=$lt_cv_aix_libpath
 
9706
else
 
9707
  if ${lt_cv_aix_libpath_+:} false; then :
 
9708
  $as_echo_n "(cached) " >&6
 
9709
else
 
9710
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9711
/* end confdefs.h.  */
 
9712
 
 
9713
int
 
9714
main ()
 
9715
{
 
9716
 
 
9717
  ;
 
9718
  return 0;
 
9719
}
 
9720
_ACEOF
 
9721
if ac_fn_c_try_link "$LINENO"; then :
 
9722
  
 
9723
  lt_aix_libpath_sed='
 
9724
      /Import File Strings/,/^$/ {
 
9725
          /^0/ {
 
9726
              s/^0  *\([^ ]*\) *$/\1/
 
9727
              p
 
9728
          }
 
9729
      }'
 
9730
  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
9731
  # Check for a 64-bit object if we didn't find anything.
 
9732
  if test -z "$lt_cv_aix_libpath_"; then
 
9733
    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
9734
  fi
 
9735
fi
 
9736
rm -f core conftest.err conftest.$ac_objext \
 
9737
    conftest$ac_exeext conftest.$ac_ext
 
9738
  if test -z "$lt_cv_aix_libpath_"; then
 
9739
    lt_cv_aix_libpath_="/usr/lib:/lib"
 
9740
  fi
 
9741
  
 
9742
fi
 
9743
 
 
9744
  aix_libpath=$lt_cv_aix_libpath_
 
9745
fi
 
9746
 
 
9747
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
9748
        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"
 
9749
      else
 
9750
        if test "$host_cpu" = ia64; then
 
9751
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
9752
          allow_undefined_flag="-z nodefs"
 
9753
          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"
 
9754
        else
 
9755
         # Determine the default libpath from the value encoded in an
 
9756
         # empty executable.
 
9757
         if test "${lt_cv_aix_libpath+set}" = set; then
 
9758
  aix_libpath=$lt_cv_aix_libpath
 
9759
else
 
9760
  if ${lt_cv_aix_libpath_+:} false; then :
 
9761
  $as_echo_n "(cached) " >&6
 
9762
else
 
9763
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9764
/* end confdefs.h.  */
 
9765
 
 
9766
int
 
9767
main ()
 
9768
{
 
9769
 
 
9770
  ;
 
9771
  return 0;
 
9772
}
 
9773
_ACEOF
 
9774
if ac_fn_c_try_link "$LINENO"; then :
 
9775
  
 
9776
  lt_aix_libpath_sed='
 
9777
      /Import File Strings/,/^$/ {
 
9778
          /^0/ {
 
9779
              s/^0  *\([^ ]*\) *$/\1/
 
9780
              p
 
9781
          }
 
9782
      }'
 
9783
  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
9784
  # Check for a 64-bit object if we didn't find anything.
 
9785
  if test -z "$lt_cv_aix_libpath_"; then
 
9786
    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
9787
  fi
 
9788
fi
 
9789
rm -f core conftest.err conftest.$ac_objext \
 
9790
    conftest$ac_exeext conftest.$ac_ext
 
9791
  if test -z "$lt_cv_aix_libpath_"; then
 
9792
    lt_cv_aix_libpath_="/usr/lib:/lib"
 
9793
  fi
 
9794
  
 
9795
fi
 
9796
 
 
9797
  aix_libpath=$lt_cv_aix_libpath_
 
9798
fi
 
9799
 
 
9800
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
9801
          # Warning - without using the other run time loading flags,
 
9802
          # -berok will link without error, but may produce a broken library.
 
9803
          no_undefined_flag=' ${wl}-bernotok'
 
9804
          allow_undefined_flag=' ${wl}-berok'
 
9805
          if test "$with_gnu_ld" = yes; then
 
9806
            # We only use this code for GNU lds that support --whole-archive.
 
9807
            whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
9808
          else
 
9809
            # Exported symbols can be pulled into shared objects from archives
 
9810
            whole_archive_flag_spec='$convenience'
 
9811
          fi
 
9812
          archive_cmds_need_lc=yes
 
9813
          # This is similar to how AIX traditionally builds its shared libraries.
 
9814
          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'
 
9815
        fi
 
9816
      fi
 
9817
      ;;
 
9818
 
 
9819
    amigaos*)
 
9820
      case $host_cpu in
 
9821
      powerpc)
 
9822
            # see comment about AmigaOS4 .so support
 
9823
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9824
            archive_expsym_cmds=''
 
9825
        ;;
 
9826
      m68k)
 
9827
            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)'
 
9828
            hardcode_libdir_flag_spec='-L$libdir'
 
9829
            hardcode_minus_L=yes
 
9830
        ;;
 
9831
      esac
 
9832
      ;;
 
9833
 
 
9834
    bsdi[45]*)
 
9835
      export_dynamic_flag_spec=-rdynamic
 
9836
      ;;
 
9837
 
 
9838
    cygwin* | mingw* | pw32* | cegcc*)
 
9839
      # When not using gcc, we currently assume that we are using
 
9840
      # Microsoft Visual C++.
 
9841
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
9842
      # no search path for DLLs.
 
9843
      case $cc_basename in
 
9844
      cl*)
 
9845
        # Native MSVC
 
9846
        hardcode_libdir_flag_spec=' '
 
9847
        allow_undefined_flag=unsupported
 
9848
        always_export_symbols=yes
 
9849
        file_list_spec='@'
 
9850
        # Tell ltmain to make .lib files, not .a files.
 
9851
        libext=lib
 
9852
        # Tell ltmain to make .dll files, not .so files.
 
9853
        shrext_cmds=".dll"
 
9854
        # FIXME: Setting linknames here is a bad hack.
 
9855
        archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
 
9856
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
9857
            sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
 
9858
          else
 
9859
            sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
 
9860
          fi~
 
9861
          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
 
9862
          linknames='
 
9863
        # The linker will not automatically build a static lib if we build a DLL.
 
9864
        # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
 
9865
        enable_shared_with_static_runtimes=yes
 
9866
        exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
 
9867
        export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
9868
        # Don't use ranlib
 
9869
        old_postinstall_cmds='chmod 644 $oldlib'
 
9870
        postlink_cmds='lt_outputfile="@OUTPUT@"~
 
9871
          lt_tool_outputfile="@TOOL_OUTPUT@"~
 
9872
          case $lt_outputfile in
 
9873
            *.exe|*.EXE) ;;
 
9874
            *)
 
9875
              lt_outputfile="$lt_outputfile.exe"
 
9876
              lt_tool_outputfile="$lt_tool_outputfile.exe"
 
9877
              ;;
 
9878
          esac~
 
9879
          if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
 
9880
            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
 
9881
            $RM "$lt_outputfile.manifest";
 
9882
          fi'
 
9883
        ;;
 
9884
      *)
 
9885
        # Assume MSVC wrapper
 
9886
        hardcode_libdir_flag_spec=' '
 
9887
        allow_undefined_flag=unsupported
 
9888
        # Tell ltmain to make .lib files, not .a files.
 
9889
        libext=lib
 
9890
        # Tell ltmain to make .dll files, not .so files.
 
9891
        shrext_cmds=".dll"
 
9892
        # FIXME: Setting linknames here is a bad hack.
 
9893
        archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
 
9894
        # The linker will automatically build a .lib file if we build a DLL.
 
9895
        old_archive_from_new_cmds='true'
 
9896
        # FIXME: Should let the user specify the lib program.
 
9897
        old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
9898
        enable_shared_with_static_runtimes=yes
 
9899
        ;;
 
9900
      esac
 
9901
      ;;
 
9902
 
 
9903
    darwin* | rhapsody*)
 
9904
      
 
9905
  
 
9906
  archive_cmds_need_lc=no
 
9907
  hardcode_direct=no
 
9908
  hardcode_automatic=yes
 
9909
  hardcode_shlibpath_var=unsupported
 
9910
  if test "$lt_cv_ld_force_load" = "yes"; then
 
9911
    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\"`'
 
9912
    
 
9913
  else
 
9914
    whole_archive_flag_spec=''
 
9915
  fi
 
9916
  link_all_deplibs=yes
 
9917
  allow_undefined_flag="$_lt_dar_allow_undefined"
 
9918
  case $cc_basename in
 
9919
     ifort*) _lt_dar_can_shared=yes ;;
 
9920
     *) _lt_dar_can_shared=$GCC ;;
 
9921
  esac
 
9922
  if test "$_lt_dar_can_shared" = "yes"; then
 
9923
    output_verbose_link_cmd=func_echo_all
 
9924
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
9925
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
9926
    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}"
 
9927
    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}"
 
9928
    
 
9929
  else
 
9930
  ld_shlibs=no
 
9931
  fi
 
9932
 
 
9933
      ;;
 
9934
 
 
9935
    dgux*)
 
9936
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9937
      hardcode_libdir_flag_spec='-L$libdir'
 
9938
      hardcode_shlibpath_var=no
 
9939
      ;;
 
9940
 
 
9941
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
9942
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
9943
    # does not break anything, and helps significantly (at the cost of a little
 
9944
    # extra space).
 
9945
    freebsd2.2*)
 
9946
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
9947
      hardcode_libdir_flag_spec='-R$libdir'
 
9948
      hardcode_direct=yes
 
9949
      hardcode_shlibpath_var=no
 
9950
      ;;
 
9951
 
 
9952
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
9953
    freebsd2.*)
 
9954
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
9955
      hardcode_direct=yes
 
9956
      hardcode_minus_L=yes
 
9957
      hardcode_shlibpath_var=no
 
9958
      ;;
 
9959
 
 
9960
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
9961
    freebsd* | dragonfly*)
 
9962
      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
9963
      hardcode_libdir_flag_spec='-R$libdir'
 
9964
      hardcode_direct=yes
 
9965
      hardcode_shlibpath_var=no
 
9966
      ;;
 
9967
 
 
9968
    hpux9*)
 
9969
      if test "$GCC" = yes; then
 
9970
        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'
 
9971
      else
 
9972
        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'
 
9973
      fi
 
9974
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9975
      hardcode_libdir_separator=:
 
9976
      hardcode_direct=yes
 
9977
 
 
9978
      # hardcode_minus_L: Not really in the search PATH,
 
9979
      # but as the default location of the library.
 
9980
      hardcode_minus_L=yes
 
9981
      export_dynamic_flag_spec='${wl}-E'
 
9982
      ;;
 
9983
 
 
9984
    hpux10*)
 
9985
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
 
9986
        archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
9987
      else
 
9988
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
9989
      fi
 
9990
      if test "$with_gnu_ld" = no; then
 
9991
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9992
        hardcode_libdir_separator=:
 
9993
        hardcode_direct=yes
 
9994
        hardcode_direct_absolute=yes
 
9995
        export_dynamic_flag_spec='${wl}-E'
 
9996
        # hardcode_minus_L: Not really in the search PATH,
 
9997
        # but as the default location of the library.
 
9998
        hardcode_minus_L=yes
 
9999
      fi
 
10000
      ;;
 
10001
 
 
10002
    hpux11*)
 
10003
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
 
10004
        case $host_cpu in
 
10005
        hppa*64*)
 
10006
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10007
          ;;
 
10008
        ia64*)
 
10009
          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
10010
          ;;
 
10011
        *)
 
10012
          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
10013
          ;;
 
10014
        esac
 
10015
      else
 
10016
        case $host_cpu in
 
10017
        hppa*64*)
 
10018
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10019
          ;;
 
10020
        ia64*)
 
10021
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
10022
          ;;
 
10023
        *)
 
10024
        
 
10025
          # Older versions of the 11.00 compiler do not understand -b yet
 
10026
          # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
 
10027
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
 
10028
$as_echo_n "checking if $CC understands -b... " >&6; }
 
10029
if ${lt_cv_prog_compiler__b+:} false; then :
 
10030
  $as_echo_n "(cached) " >&6
 
10031
else
 
10032
  lt_cv_prog_compiler__b=no
 
10033
   save_LDFLAGS="$LDFLAGS"
 
10034
   LDFLAGS="$LDFLAGS -b"
 
10035
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
10036
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
10037
     # The linker can only warn and ignore the option if not recognized
 
10038
     # So say no if there are warnings
 
10039
     if test -s conftest.err; then
 
10040
       # Append any errors to the config.log.
 
10041
       cat conftest.err 1>&5
 
10042
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
 
10043
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
10044
       if diff conftest.exp conftest.er2 >/dev/null; then
 
10045
         lt_cv_prog_compiler__b=yes
 
10046
       fi
 
10047
     else
 
10048
       lt_cv_prog_compiler__b=yes
 
10049
     fi
 
10050
   fi
 
10051
   $RM -r conftest*
 
10052
   LDFLAGS="$save_LDFLAGS"
 
10053
 
 
10054
fi
 
10055
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
 
10056
$as_echo "$lt_cv_prog_compiler__b" >&6; }
 
10057
 
 
10058
if test x"$lt_cv_prog_compiler__b" = xyes; then
 
10059
    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
10060
else
 
10061
    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
10062
fi
 
10063
 
 
10064
          ;;
 
10065
        esac
 
10066
      fi
 
10067
      if test "$with_gnu_ld" = no; then
 
10068
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
10069
        hardcode_libdir_separator=:
 
10070
 
 
10071
        case $host_cpu in
 
10072
        hppa*64*|ia64*)
 
10073
          hardcode_direct=no
 
10074
          hardcode_shlibpath_var=no
 
10075
          ;;
 
10076
        *)
 
10077
          hardcode_direct=yes
 
10078
          hardcode_direct_absolute=yes
 
10079
          export_dynamic_flag_spec='${wl}-E'
 
10080
 
 
10081
          # hardcode_minus_L: Not really in the search PATH,
 
10082
          # but as the default location of the library.
 
10083
          hardcode_minus_L=yes
 
10084
          ;;
 
10085
        esac
 
10086
      fi
 
10087
      ;;
 
10088
 
 
10089
    irix5* | irix6* | nonstopux*)
 
10090
      if test "$GCC" = yes; then
 
10091
        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'
 
10092
        # Try to use the -exported_symbol ld option, if it does not
 
10093
        # work, assume that -exports_file does not work either and
 
10094
        # implicitly export all symbols.
 
10095
        # This should be the same for all languages, so no per-tag cache variable.
 
10096
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
 
10097
$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
 
10098
if ${lt_cv_irix_exported_symbol+:} false; then :
 
10099
  $as_echo_n "(cached) " >&6
 
10100
else
 
10101
  save_LDFLAGS="$LDFLAGS"
 
10102
           LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
 
10103
           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10104
/* end confdefs.h.  */
 
10105
int foo (void) { return 0; }
 
10106
_ACEOF
 
10107
if ac_fn_c_try_link "$LINENO"; then :
 
10108
  lt_cv_irix_exported_symbol=yes
 
10109
else
 
10110
  lt_cv_irix_exported_symbol=no
 
10111
fi
 
10112
rm -f core conftest.err conftest.$ac_objext \
 
10113
    conftest$ac_exeext conftest.$ac_ext
 
10114
           LDFLAGS="$save_LDFLAGS"
 
10115
fi
 
10116
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
 
10117
$as_echo "$lt_cv_irix_exported_symbol" >&6; }
 
10118
        if test "$lt_cv_irix_exported_symbol" = yes; then
 
10119
          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'
 
10120
        fi
 
10121
      else
 
10122
        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'
 
10123
        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'
 
10124
      fi
 
10125
      archive_cmds_need_lc='no'
 
10126
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
10127
      hardcode_libdir_separator=:
 
10128
      inherit_rpath=yes
 
10129
      link_all_deplibs=yes
 
10130
      ;;
 
10131
 
 
10132
    netbsd* | netbsdelf*-gnu)
 
10133
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
10134
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
10135
      else
 
10136
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
10137
      fi
 
10138
      hardcode_libdir_flag_spec='-R$libdir'
 
10139
      hardcode_direct=yes
 
10140
      hardcode_shlibpath_var=no
 
10141
      ;;
 
10142
 
 
10143
    newsos6)
 
10144
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10145
      hardcode_direct=yes
 
10146
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
10147
      hardcode_libdir_separator=:
 
10148
      hardcode_shlibpath_var=no
 
10149
      ;;
 
10150
 
 
10151
    *nto* | *qnx*)
 
10152
      ;;
 
10153
 
 
10154
    openbsd*)
 
10155
      if test -f /usr/libexec/ld.so; then
 
10156
        hardcode_direct=yes
 
10157
        hardcode_shlibpath_var=no
 
10158
        hardcode_direct_absolute=yes
 
10159
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
10160
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
10161
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
10162
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
10163
          export_dynamic_flag_spec='${wl}-E'
 
10164
        else
 
10165
          case $host_os in
 
10166
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
10167
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
10168
             hardcode_libdir_flag_spec='-R$libdir'
 
10169
             ;;
 
10170
           *)
 
10171
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
10172
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
10173
             ;;
 
10174
          esac
 
10175
        fi
 
10176
      else
 
10177
        ld_shlibs=no
 
10178
      fi
 
10179
      ;;
 
10180
 
 
10181
    os2*)
 
10182
      hardcode_libdir_flag_spec='-L$libdir'
 
10183
      hardcode_minus_L=yes
 
10184
      allow_undefined_flag=unsupported
 
10185
      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'
 
10186
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
10187
      ;;
 
10188
 
 
10189
    osf3*)
 
10190
      if test "$GCC" = yes; then
 
10191
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
10192
        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'
 
10193
      else
 
10194
        allow_undefined_flag=' -expect_unresolved \*'
 
10195
        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'
 
10196
      fi
 
10197
      archive_cmds_need_lc='no'
 
10198
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
10199
      hardcode_libdir_separator=:
 
10200
      ;;
 
10201
 
 
10202
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
10203
      if test "$GCC" = yes; then
 
10204
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
10205
        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'
 
10206
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
10207
      else
 
10208
        allow_undefined_flag=' -expect_unresolved \*'
 
10209
        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'
 
10210
        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~
 
10211
        $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'
 
10212
 
 
10213
        # Both c and cxx compiler support -rpath directly
 
10214
        hardcode_libdir_flag_spec='-rpath $libdir'
 
10215
      fi
 
10216
      archive_cmds_need_lc='no'
 
10217
      hardcode_libdir_separator=:
 
10218
      ;;
 
10219
 
 
10220
    solaris*)
 
10221
      no_undefined_flag=' -z defs'
 
10222
      if test "$GCC" = yes; then
 
10223
        wlarc='${wl}'
 
10224
        archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10225
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
10226
          $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'
 
10227
      else
 
10228
        case `$CC -V 2>&1` in
 
10229
        *"Compilers 5.0"*)
 
10230
          wlarc=''
 
10231
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10232
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
10233
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
 
10234
          ;;
 
10235
        *)
 
10236
          wlarc='${wl}'
 
10237
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
10238
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
10239
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
10240
          ;;
 
10241
        esac
 
10242
      fi
 
10243
      hardcode_libdir_flag_spec='-R$libdir'
 
10244
      hardcode_shlibpath_var=no
 
10245
      case $host_os in
 
10246
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
10247
      *)
 
10248
        # The compiler driver will combine and reorder linker options,
 
10249
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
10250
        # but is careful enough not to reorder.
 
10251
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
10252
        if test "$GCC" = yes; then
 
10253
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
10254
        else
 
10255
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
 
10256
        fi
 
10257
        ;;
 
10258
      esac
 
10259
      link_all_deplibs=yes
 
10260
      ;;
 
10261
 
 
10262
    sunos4*)
 
10263
      if test "x$host_vendor" = xsequent; then
 
10264
        # Use $CC to link under sequent, because it throws in some extra .o
 
10265
        # files that make .init and .fini sections work.
 
10266
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
10267
      else
 
10268
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
10269
      fi
 
10270
      hardcode_libdir_flag_spec='-L$libdir'
 
10271
      hardcode_direct=yes
 
10272
      hardcode_minus_L=yes
 
10273
      hardcode_shlibpath_var=no
 
10274
      ;;
 
10275
 
 
10276
    sysv4)
 
10277
      case $host_vendor in
 
10278
        sni)
 
10279
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10280
          hardcode_direct=yes # is this really true???
 
10281
        ;;
 
10282
        siemens)
 
10283
          ## LD is ld it makes a PLAMLIB
 
10284
          ## CC just makes a GrossModule.
 
10285
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
10286
          reload_cmds='$CC -r -o $output$reload_objs'
 
10287
          hardcode_direct=no
 
10288
        ;;
 
10289
        motorola)
 
10290
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10291
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
10292
        ;;
 
10293
      esac
 
10294
      runpath_var='LD_RUN_PATH'
 
10295
      hardcode_shlibpath_var=no
 
10296
      ;;
 
10297
 
 
10298
    sysv4.3*)
 
10299
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10300
      hardcode_shlibpath_var=no
 
10301
      export_dynamic_flag_spec='-Bexport'
 
10302
      ;;
 
10303
 
 
10304
    sysv4*MP*)
 
10305
      if test -d /usr/nec; then
 
10306
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10307
        hardcode_shlibpath_var=no
 
10308
        runpath_var=LD_RUN_PATH
 
10309
        hardcode_runpath_var=yes
 
10310
        ld_shlibs=yes
 
10311
      fi
 
10312
      ;;
 
10313
 
 
10314
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
10315
      no_undefined_flag='${wl}-z,text'
 
10316
      archive_cmds_need_lc=no
 
10317
      hardcode_shlibpath_var=no
 
10318
      runpath_var='LD_RUN_PATH'
 
10319
 
 
10320
      if test "$GCC" = yes; then
 
10321
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10322
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10323
      else
 
10324
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10325
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10326
      fi
 
10327
      ;;
 
10328
 
 
10329
    sysv5* | sco3.2v5* | sco5v6*)
 
10330
      # Note: We can NOT use -z defs as we might desire, because we do not
 
10331
      # link with -lc, and that would cause any symbols used from libc to
 
10332
      # always be unresolved, which means just about no library would
 
10333
      # ever link correctly.  If we're not using GNU ld we use -z text
 
10334
      # though, which does catch some bad symbols but isn't as heavy-handed
 
10335
      # as -z defs.
 
10336
      no_undefined_flag='${wl}-z,text'
 
10337
      allow_undefined_flag='${wl}-z,nodefs'
 
10338
      archive_cmds_need_lc=no
 
10339
      hardcode_shlibpath_var=no
 
10340
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
 
10341
      hardcode_libdir_separator=':'
 
10342
      link_all_deplibs=yes
 
10343
      export_dynamic_flag_spec='${wl}-Bexport'
 
10344
      runpath_var='LD_RUN_PATH'
 
10345
 
 
10346
      if test "$GCC" = yes; then
 
10347
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10348
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10349
      else
 
10350
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10351
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10352
      fi
 
10353
      ;;
 
10354
 
 
10355
    uts4*)
 
10356
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10357
      hardcode_libdir_flag_spec='-L$libdir'
 
10358
      hardcode_shlibpath_var=no
 
10359
      ;;
 
10360
 
 
10361
    *)
 
10362
      ld_shlibs=no
 
10363
      ;;
 
10364
    esac
 
10365
 
 
10366
    if test x$host_vendor = xsni; then
 
10367
      case $host in
 
10368
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
10369
        export_dynamic_flag_spec='${wl}-Blargedynsym'
 
10370
        ;;
 
10371
      esac
 
10372
    fi
 
10373
  fi
 
10374
 
 
10375
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
 
10376
$as_echo "$ld_shlibs" >&6; }
 
10377
test "$ld_shlibs" = no && can_build_shared=no
 
10378
 
 
10379
with_gnu_ld=$with_gnu_ld
 
10380
 
 
10381
 
 
10382
    
 
10383
    
 
10384
    
 
10385
 
 
10386
    
 
10387
    
 
10388
    
 
10389
 
 
10390
    
 
10391
    
 
10392
    
 
10393
 
 
10394
 
 
10395
#
 
10396
# Do we need to explicitly link libc?
 
10397
#
 
10398
case "x$archive_cmds_need_lc" in
 
10399
x|xyes)
 
10400
  # Assume -lc should be added
 
10401
  archive_cmds_need_lc=yes
 
10402
 
 
10403
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
10404
    case $archive_cmds in
 
10405
    *'~'*)
 
10406
      # FIXME: we may have to deal with multi-command sequences.
 
10407
      ;;
 
10408
    '$CC '*)
 
10409
      # Test whether the compiler implicitly links with -lc since on some
 
10410
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
10411
      # to ld, don't add -lc before -lgcc.
 
10412
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
 
10413
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
10414
if ${lt_cv_archive_cmds_need_lc+:} false; then :
 
10415
  $as_echo_n "(cached) " >&6
 
10416
else
 
10417
  $RM conftest*
 
10418
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
10419
 
 
10420
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
10421
  (eval $ac_compile) 2>&5
 
10422
  ac_status=$?
 
10423
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
10424
  test $ac_status = 0; } 2>conftest.err; then
 
10425
          soname=conftest
 
10426
          lib=conftest
 
10427
          libobjs=conftest.$ac_objext
 
10428
          deplibs=
 
10429
          wl=$lt_prog_compiler_wl
 
10430
          pic_flag=$lt_prog_compiler_pic
 
10431
          compiler_flags=-v
 
10432
          linker_flags=-v
 
10433
          verstring=
 
10434
          output_objdir=.
 
10435
          libname=conftest
 
10436
          lt_save_allow_undefined_flag=$allow_undefined_flag
 
10437
          allow_undefined_flag=
 
10438
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
 
10439
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
10440
  ac_status=$?
 
10441
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
10442
  test $ac_status = 0; }
 
10443
          then
 
10444
            lt_cv_archive_cmds_need_lc=no
 
10445
          else
 
10446
            lt_cv_archive_cmds_need_lc=yes
 
10447
          fi
 
10448
          allow_undefined_flag=$lt_save_allow_undefined_flag
 
10449
        else
 
10450
          cat conftest.err 1>&5
 
10451
        fi
 
10452
        $RM conftest*
 
10453
        
 
10454
fi
 
10455
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
 
10456
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
 
10457
      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
 
10458
      ;;
 
10459
    esac
 
10460
  fi
 
10461
  ;;
 
10462
esac
 
10463
 
 
10464
 
 
10465
    
 
10466
    
 
10467
    
 
10468
 
 
10469
 
 
10470
    
 
10471
    
 
10472
    
 
10473
 
 
10474
 
 
10475
    
 
10476
    
 
10477
    
 
10478
 
 
10479
 
 
10480
    
 
10481
    
 
10482
    
 
10483
 
 
10484
 
 
10485
    
 
10486
    
 
10487
    
 
10488
 
 
10489
 
 
10490
    
 
10491
    
 
10492
    
 
10493
 
 
10494
 
 
10495
    
 
10496
    
 
10497
    
 
10498
 
 
10499
 
 
10500
    
 
10501
    
 
10502
    
 
10503
 
 
10504
 
 
10505
    
 
10506
    
 
10507
    
 
10508
 
 
10509
 
 
10510
    
 
10511
    
 
10512
    
 
10513
 
 
10514
 
 
10515
    
 
10516
    
 
10517
    
 
10518
 
 
10519
 
 
10520
    
 
10521
    
 
10522
    
 
10523
 
 
10524
 
 
10525
    
 
10526
    
 
10527
    
 
10528
 
 
10529
 
 
10530
    
 
10531
    
 
10532
    
 
10533
 
 
10534
 
 
10535
    
 
10536
    
 
10537
    
 
10538
 
 
10539
 
 
10540
    
 
10541
    
 
10542
    
 
10543
 
 
10544
 
 
10545
    
 
10546
    
 
10547
    
 
10548
 
 
10549
 
 
10550
    
 
10551
    
 
10552
    
 
10553
 
 
10554
 
 
10555
    
 
10556
    
 
10557
    
 
10558
 
 
10559
 
 
10560
    
 
10561
    
 
10562
    
 
10563
 
 
10564
 
 
10565
    
 
10566
    
 
10567
    
 
10568
 
 
10569
 
 
10570
    
 
10571
    
 
10572
    
 
10573
 
 
10574
 
 
10575
    
 
10576
    
 
10577
    
 
10578
 
 
10579
 
 
10580
    
 
10581
    
 
10582
    
 
10583
 
 
10584
 
 
10585
    
 
10586
    
 
10587
    
 
10588
 
 
10589
 
 
10590
    
 
10591
    
 
10592
    
 
10593
 
 
10594
 
 
10595
    
 
10596
    
 
10597
    
 
10598
 
 
10599
 
 
10600
    
 
10601
    
 
10602
    
 
10603
 
 
10604
 
 
10605
    
 
10606
    
 
10607
    
 
10608
 
 
10609
 
 
10610
    
 
10611
    
 
10612
    
 
10613
 
 
10614
 
 
10615
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
 
10616
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
10617
 
 
10618
if test "$GCC" = yes; then
 
10619
  case $host_os in
 
10620
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
10621
    *) lt_awk_arg="/^libraries:/" ;;
 
10622
  esac
 
10623
  case $host_os in
 
10624
    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
 
10625
    *) lt_sed_strip_eq="s,=/,/,g" ;;
 
10626
  esac
 
10627
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
 
10628
  case $lt_search_path_spec in
 
10629
  *\;*)
 
10630
    # if the path contains ";" then we assume it to be the separator
 
10631
    # otherwise default to the standard path separator (i.e. ":") - it is
 
10632
    # assumed that no part of a normal pathname contains ";" but that should
 
10633
    # okay in the real world where ";" in dirpaths is itself problematic.
 
10634
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
 
10635
    ;;
 
10636
  *)
 
10637
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
 
10638
    ;;
 
10639
  esac
 
10640
  # Ok, now we have the path, separated by spaces, we can step through it
 
10641
  # and add multilib dir if necessary.
 
10642
  lt_tmp_lt_search_path_spec=
 
10643
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
10644
  for lt_sys_path in $lt_search_path_spec; do
 
10645
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
10646
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
10647
    else
 
10648
      test -d "$lt_sys_path" && \
 
10649
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
10650
    fi
 
10651
  done
 
10652
  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
 
10653
BEGIN {RS=" "; FS="/|\n";} {
 
10654
  lt_foo="";
 
10655
  lt_count=0;
 
10656
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
10657
    if ($lt_i != "" && $lt_i != ".") {
 
10658
      if ($lt_i == "..") {
 
10659
        lt_count++;
 
10660
      } else {
 
10661
        if (lt_count == 0) {
 
10662
          lt_foo="/" $lt_i lt_foo;
 
10663
        } else {
 
10664
          lt_count--;
 
10665
        }
 
10666
      }
 
10667
    }
 
10668
  }
 
10669
  if (lt_foo != "") { lt_freq[lt_foo]++; }
 
10670
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
 
10671
}'`
 
10672
  # AWK program above erroneously prepends '/' to C:/dos/paths
 
10673
  # for these hosts.
 
10674
  case $host_os in
 
10675
    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
 
10676
      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
 
10677
  esac
 
10678
  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
 
10679
else
 
10680
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
10681
fi
 
10682
library_names_spec=
 
10683
libname_spec='lib$name'
 
10684
soname_spec=
 
10685
shrext_cmds=".so"
 
10686
postinstall_cmds=
 
10687
postuninstall_cmds=
 
10688
finish_cmds=
 
10689
finish_eval=
 
10690
shlibpath_var=
 
10691
shlibpath_overrides_runpath=unknown
 
10692
version_type=none
 
10693
dynamic_linker="$host_os ld.so"
 
10694
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
10695
need_lib_prefix=unknown
 
10696
hardcode_into_libs=no
 
10697
 
 
10698
# when you set need_version to no, make sure it does not cause -set_version
 
10699
# flags to be left without arguments
 
10700
need_version=unknown
 
10701
 
 
10702
case $host_os in
 
10703
aix3*)
 
10704
  version_type=linux # correct to gnu/linux during the next big refactor
 
10705
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
10706
  shlibpath_var=LIBPATH
 
10707
 
 
10708
  # AIX 3 has no versioning support, so we append a major version to the name.
 
10709
  soname_spec='${libname}${release}${shared_ext}$major'
 
10710
  ;;
 
10711
 
 
10712
aix[4-9]*)
 
10713
  version_type=linux # correct to gnu/linux during the next big refactor
 
10714
  need_lib_prefix=no
 
10715
  need_version=no
 
10716
  hardcode_into_libs=yes
 
10717
  if test "$host_cpu" = ia64; then
 
10718
    # AIX 5 supports IA64
 
10719
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
10720
    shlibpath_var=LD_LIBRARY_PATH
 
10721
  else
 
10722
    # With GCC up to 2.95.x, collect2 would create an import file
 
10723
    # for dependence libraries.  The import file would start with
 
10724
    # the line `#! .'.  This would cause the generated library to
 
10725
    # depend on `.', always an invalid library.  This was fixed in
 
10726
    # development snapshots of GCC prior to 3.0.
 
10727
    case $host_os in
 
10728
      aix4 | aix4.[01] | aix4.[01].*)
 
10729
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
10730
           echo ' yes '
 
10731
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
 
10732
        :
 
10733
      else
 
10734
        can_build_shared=no
 
10735
      fi
 
10736
      ;;
 
10737
    esac
 
10738
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
10739
    # soname into executable. Probably we can add versioning support to
 
10740
    # collect2, so additional links can be useful in future.
 
10741
    if test "$aix_use_runtimelinking" = yes; then
 
10742
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
10743
      # instead of lib<name>.a to let people know that these are not
 
10744
      # typical AIX shared libraries.
 
10745
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10746
    else
 
10747
      # We preserve .a as extension for shared libraries through AIX4.2
 
10748
      # and later when we are not doing run time linking.
 
10749
      library_names_spec='${libname}${release}.a $libname.a'
 
10750
      soname_spec='${libname}${release}${shared_ext}$major'
 
10751
    fi
 
10752
    shlibpath_var=LIBPATH
 
10753
  fi
 
10754
  ;;
 
10755
 
 
10756
amigaos*)
 
10757
  case $host_cpu in
 
10758
  powerpc)
 
10759
    # Since July 2007 AmigaOS4 officially supports .so libraries.
 
10760
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 
10761
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10762
    ;;
 
10763
  m68k)
 
10764
    library_names_spec='$libname.ixlibrary $libname.a'
 
10765
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
10766
    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'
 
10767
    ;;
 
10768
  esac
 
10769
  ;;
 
10770
 
 
10771
beos*)
 
10772
  library_names_spec='${libname}${shared_ext}'
 
10773
  dynamic_linker="$host_os ld.so"
 
10774
  shlibpath_var=LIBRARY_PATH
 
10775
  ;;
 
10776
 
 
10777
bsdi[45]*)
 
10778
  version_type=linux # correct to gnu/linux during the next big refactor
 
10779
  need_version=no
 
10780
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10781
  soname_spec='${libname}${release}${shared_ext}$major'
 
10782
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
10783
  shlibpath_var=LD_LIBRARY_PATH
 
10784
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
10785
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
10786
  # the default ld.so.conf also contains /usr/contrib/lib and
 
10787
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
10788
  # libtool to hard-code these into programs
 
10789
  ;;
 
10790
 
 
10791
cygwin* | mingw* | pw32* | cegcc*)
 
10792
  version_type=windows
 
10793
  shrext_cmds=".dll"
 
10794
  need_version=no
 
10795
  need_lib_prefix=no
 
10796
 
 
10797
  case $GCC,$cc_basename in
 
10798
  yes,*)
 
10799
    # gcc
 
10800
    library_names_spec='$libname.dll.a'
 
10801
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
10802
    postinstall_cmds='base_file=`basename \${file}`~
 
10803
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
10804
      dldir=$destdir/`dirname \$dlpath`~
 
10805
      test -d \$dldir || mkdir -p \$dldir~
 
10806
      $install_prog $dir/$dlname \$dldir/$dlname~
 
10807
      chmod a+x \$dldir/$dlname~
 
10808
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
10809
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
10810
      fi'
 
10811
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
10812
      dlpath=$dir/\$dldll~
 
10813
       $RM \$dlpath'
 
10814
    shlibpath_overrides_runpath=yes
 
10815
 
 
10816
    case $host_os in
 
10817
    cygwin*)
 
10818
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
10819
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10820
 
 
10821
      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
 
10822
      ;;
 
10823
    mingw* | cegcc*)
 
10824
      # MinGW DLLs use traditional 'lib' prefix
 
10825
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10826
      ;;
 
10827
    pw32*)
 
10828
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
10829
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10830
      ;;
 
10831
    esac
 
10832
    dynamic_linker='Win32 ld.exe'
 
10833
    ;;
 
10834
 
 
10835
  *,cl*)
 
10836
    # Native MSVC
 
10837
    libname_spec='$name'
 
10838
    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10839
    library_names_spec='${libname}.dll.lib'
 
10840
 
 
10841
    case $build_os in
 
10842
    mingw*)
 
10843
      sys_lib_search_path_spec=
 
10844
      lt_save_ifs=$IFS
 
10845
      IFS=';'
 
10846
      for lt_path in $LIB
 
10847
      do
 
10848
        IFS=$lt_save_ifs
 
10849
        # Let DOS variable expansion print the short 8.3 style file name.
 
10850
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
 
10851
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
 
10852
      done
 
10853
      IFS=$lt_save_ifs
 
10854
      # Convert to MSYS style.
 
10855
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
 
10856
      ;;
 
10857
    cygwin*)
 
10858
      # Convert to unix form, then to dos form, then back to unix form
 
10859
      # but this time dos style (no spaces!) so that the unix form looks
 
10860
      # like /cygdrive/c/PROGRA~1:/cygdr...
 
10861
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
 
10862
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
 
10863
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
10864
      ;;
 
10865
    *)
 
10866
      sys_lib_search_path_spec="$LIB"
 
10867
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
 
10868
        # It is most probably a Windows format PATH.
 
10869
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
10870
      else
 
10871
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
10872
      fi
 
10873
      # FIXME: find the short name or the path components, as spaces are
 
10874
      # common. (e.g. "Program Files" -> "PROGRA~1")
 
10875
      ;;
 
10876
    esac
 
10877
 
 
10878
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
10879
    postinstall_cmds='base_file=`basename \${file}`~
 
10880
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
10881
      dldir=$destdir/`dirname \$dlpath`~
 
10882
      test -d \$dldir || mkdir -p \$dldir~
 
10883
      $install_prog $dir/$dlname \$dldir/$dlname'
 
10884
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
10885
      dlpath=$dir/\$dldll~
 
10886
       $RM \$dlpath'
 
10887
    shlibpath_overrides_runpath=yes
 
10888
    dynamic_linker='Win32 link.exe'
 
10889
    ;;
 
10890
 
 
10891
  *)
 
10892
    # Assume MSVC wrapper
 
10893
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
10894
    dynamic_linker='Win32 ld.exe'
 
10895
    ;;
 
10896
  esac
 
10897
  # FIXME: first we should search . and the directory the executable is in
 
10898
  shlibpath_var=PATH
 
10899
  ;;
 
10900
 
 
10901
darwin* | rhapsody*)
 
10902
  dynamic_linker="$host_os dyld"
 
10903
  version_type=darwin
 
10904
  need_lib_prefix=no
 
10905
  need_version=no
 
10906
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
10907
  soname_spec='${libname}${release}${major}$shared_ext'
 
10908
  shlibpath_overrides_runpath=yes
 
10909
  shlibpath_var=DYLD_LIBRARY_PATH
 
10910
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
10911
 
 
10912
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
 
10913
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
10914
  ;;
 
10915
 
 
10916
dgux*)
 
10917
  version_type=linux # correct to gnu/linux during the next big refactor
 
10918
  need_lib_prefix=no
 
10919
  need_version=no
 
10920
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
10921
  soname_spec='${libname}${release}${shared_ext}$major'
 
10922
  shlibpath_var=LD_LIBRARY_PATH
 
10923
  ;;
 
10924
 
 
10925
freebsd* | dragonfly*)
 
10926
  # DragonFly does not have aout.  When/if they implement a new
 
10927
  # versioning mechanism, adjust this.
 
10928
  if test -x /usr/bin/objformat; then
 
10929
    objformat=`/usr/bin/objformat`
 
10930
  else
 
10931
    case $host_os in
 
10932
    freebsd[23].*) objformat=aout ;;
 
10933
    *) objformat=elf ;;
 
10934
    esac
 
10935
  fi
 
10936
  version_type=freebsd-$objformat
 
10937
  case $version_type in
 
10938
    freebsd-elf*)
 
10939
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
10940
      need_version=no
 
10941
      need_lib_prefix=no
 
10942
      ;;
 
10943
    freebsd-*)
 
10944
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
10945
      need_version=yes
 
10946
      ;;
 
10947
  esac
 
10948
  shlibpath_var=LD_LIBRARY_PATH
 
10949
  case $host_os in
 
10950
  freebsd2.*)
 
10951
    shlibpath_overrides_runpath=yes
 
10952
    ;;
 
10953
  freebsd3.[01]* | freebsdelf3.[01]*)
 
10954
    shlibpath_overrides_runpath=yes
 
10955
    hardcode_into_libs=yes
 
10956
    ;;
 
10957
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
10958
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
10959
    shlibpath_overrides_runpath=no
 
10960
    hardcode_into_libs=yes
 
10961
    ;;
 
10962
  *) # from 4.6 on, and DragonFly
 
10963
    shlibpath_overrides_runpath=yes
 
10964
    hardcode_into_libs=yes
 
10965
    ;;
 
10966
  esac
 
10967
  ;;
 
10968
 
 
10969
haiku*)
 
10970
  version_type=linux # correct to gnu/linux during the next big refactor
 
10971
  need_lib_prefix=no
 
10972
  need_version=no
 
10973
  dynamic_linker="$host_os runtime_loader"
 
10974
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
10975
  soname_spec='${libname}${release}${shared_ext}$major'
 
10976
  shlibpath_var=LIBRARY_PATH
 
10977
  shlibpath_overrides_runpath=yes
 
10978
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
 
10979
  hardcode_into_libs=yes
 
10980
  ;;
 
10981
 
 
10982
hpux9* | hpux10* | hpux11*)
 
10983
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
10984
  # link against other versions.
 
10985
  version_type=sunos
 
10986
  need_lib_prefix=no
 
10987
  need_version=no
 
10988
  case $host_cpu in
 
10989
  ia64*)
 
10990
    shrext_cmds='.so'
 
10991
    hardcode_into_libs=yes
 
10992
    dynamic_linker="$host_os dld.so"
 
10993
    shlibpath_var=LD_LIBRARY_PATH
 
10994
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
10995
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10996
    soname_spec='${libname}${release}${shared_ext}$major'
 
10997
    if test "X$HPUX_IA64_MODE" = X32; then
 
10998
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
10999
    else
 
11000
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
11001
    fi
 
11002
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
11003
    ;;
 
11004
  hppa*64*)
 
11005
    shrext_cmds='.sl'
 
11006
    hardcode_into_libs=yes
 
11007
    dynamic_linker="$host_os dld.sl"
 
11008
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
11009
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
11010
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11011
    soname_spec='${libname}${release}${shared_ext}$major'
 
11012
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
11013
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
11014
    ;;
 
11015
  *)
 
11016
    shrext_cmds='.sl'
 
11017
    dynamic_linker="$host_os dld.sl"
 
11018
    shlibpath_var=SHLIB_PATH
 
11019
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
11020
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11021
    soname_spec='${libname}${release}${shared_ext}$major'
 
11022
    ;;
 
11023
  esac
 
11024
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
 
11025
  postinstall_cmds='chmod 555 $lib'
 
11026
  # or fails outright, so override atomically:
 
11027
  install_override_mode=555
 
11028
  ;;
 
11029
 
 
11030
interix[3-9]*)
 
11031
  version_type=linux # correct to gnu/linux during the next big refactor
 
11032
  need_lib_prefix=no
 
11033
  need_version=no
 
11034
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
11035
  soname_spec='${libname}${release}${shared_ext}$major'
 
11036
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
11037
  shlibpath_var=LD_LIBRARY_PATH
 
11038
  shlibpath_overrides_runpath=no
 
11039
  hardcode_into_libs=yes
 
11040
  ;;
 
11041
 
 
11042
irix5* | irix6* | nonstopux*)
 
11043
  case $host_os in
 
11044
    nonstopux*) version_type=nonstopux ;;
 
11045
    *)
 
11046
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
11047
                version_type=linux # correct to gnu/linux during the next big refactor
 
11048
        else
 
11049
                version_type=irix
 
11050
        fi ;;
 
11051
  esac
 
11052
  need_lib_prefix=no
 
11053
  need_version=no
 
11054
  soname_spec='${libname}${release}${shared_ext}$major'
 
11055
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
11056
  case $host_os in
 
11057
  irix5* | nonstopux*)
 
11058
    libsuff= shlibsuff=
 
11059
    ;;
 
11060
  *)
 
11061
    case $LD in # libtool.m4 will add one of these switches to LD
 
11062
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
11063
      libsuff= shlibsuff= libmagic=32-bit;;
 
11064
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
11065
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
11066
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
11067
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
11068
    *) libsuff= shlibsuff= libmagic=never-match;;
 
11069
    esac
 
11070
    ;;
 
11071
  esac
 
11072
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
11073
  shlibpath_overrides_runpath=no
 
11074
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
11075
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
11076
  hardcode_into_libs=yes
 
11077
  ;;
 
11078
 
 
11079
# No shared lib support for Linux oldld, aout, or coff.
 
11080
linux*oldld* | linux*aout* | linux*coff*)
 
11081
  dynamic_linker=no
 
11082
  ;;
 
11083
 
 
11084
# This must be glibc/ELF.
 
11085
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
 
11086
  version_type=linux # correct to gnu/linux during the next big refactor
 
11087
  need_lib_prefix=no
 
11088
  need_version=no
 
11089
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11090
  soname_spec='${libname}${release}${shared_ext}$major'
 
11091
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
11092
  shlibpath_var=LD_LIBRARY_PATH
 
11093
  shlibpath_overrides_runpath=no
 
11094
 
 
11095
  # Some binutils ld are patched to set DT_RUNPATH
 
11096
  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
 
11097
  $as_echo_n "(cached) " >&6
 
11098
else
 
11099
  lt_cv_shlibpath_overrides_runpath=no
 
11100
    save_LDFLAGS=$LDFLAGS
 
11101
    save_libdir=$libdir
 
11102
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
 
11103
         LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
 
11104
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11105
/* end confdefs.h.  */
 
11106
 
 
11107
int
 
11108
main ()
 
11109
{
 
11110
 
 
11111
  ;
 
11112
  return 0;
 
11113
}
 
11114
_ACEOF
 
11115
if ac_fn_c_try_link "$LINENO"; then :
 
11116
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
 
11117
  lt_cv_shlibpath_overrides_runpath=yes
 
11118
fi
 
11119
fi
 
11120
rm -f core conftest.err conftest.$ac_objext \
 
11121
    conftest$ac_exeext conftest.$ac_ext
 
11122
    LDFLAGS=$save_LDFLAGS
 
11123
    libdir=$save_libdir
 
11124
    
 
11125
fi
 
11126
 
 
11127
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
 
11128
 
 
11129
  # This implies no fast_install, which is unacceptable.
 
11130
  # Some rework will be needed to allow for fast_install
 
11131
  # before this can be enabled.
 
11132
  hardcode_into_libs=yes
 
11133
 
 
11134
  # Append ld.so.conf contents to the search path
 
11135
  if test -f /etc/ld.so.conf; then
 
11136
    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' ' '`
 
11137
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
11138
  fi
 
11139
 
 
11140
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
11141
  # powerpc, because MkLinux only supported shared libraries with the
 
11142
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
11143
  # most powerpc-linux boxes support dynamic linking these days and
 
11144
  # people can always --disable-shared, the test was removed, and we
 
11145
  # assume the GNU/Linux dynamic linker is in use.
 
11146
  dynamic_linker='GNU/Linux ld.so'
 
11147
  ;;
 
11148
 
 
11149
netbsdelf*-gnu)
 
11150
  version_type=linux
 
11151
  need_lib_prefix=no
 
11152
  need_version=no
 
11153
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
11154
  soname_spec='${libname}${release}${shared_ext}$major'
 
11155
  shlibpath_var=LD_LIBRARY_PATH
 
11156
  shlibpath_overrides_runpath=no
 
11157
  hardcode_into_libs=yes
 
11158
  dynamic_linker='NetBSD ld.elf_so'
 
11159
  ;;
 
11160
 
 
11161
netbsd*)
 
11162
  version_type=sunos
 
11163
  need_lib_prefix=no
 
11164
  need_version=no
 
11165
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
11166
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
11167
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
11168
    dynamic_linker='NetBSD (a.out) ld.so'
 
11169
  else
 
11170
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
11171
    soname_spec='${libname}${release}${shared_ext}$major'
 
11172
    dynamic_linker='NetBSD ld.elf_so'
 
11173
  fi
 
11174
  shlibpath_var=LD_LIBRARY_PATH
 
11175
  shlibpath_overrides_runpath=yes
 
11176
  hardcode_into_libs=yes
 
11177
  ;;
 
11178
 
 
11179
newsos6)
 
11180
  version_type=linux # correct to gnu/linux during the next big refactor
 
11181
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11182
  shlibpath_var=LD_LIBRARY_PATH
 
11183
  shlibpath_overrides_runpath=yes
 
11184
  ;;
 
11185
 
 
11186
*nto* | *qnx*)
 
11187
  version_type=qnx
 
11188
  need_lib_prefix=no
 
11189
  need_version=no
 
11190
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11191
  soname_spec='${libname}${release}${shared_ext}$major'
 
11192
  shlibpath_var=LD_LIBRARY_PATH
 
11193
  shlibpath_overrides_runpath=no
 
11194
  hardcode_into_libs=yes
 
11195
  dynamic_linker='ldqnx.so'
 
11196
  ;;
 
11197
 
 
11198
openbsd*)
 
11199
  version_type=sunos
 
11200
  sys_lib_dlsearch_path_spec="/usr/lib"
 
11201
  need_lib_prefix=no
 
11202
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
11203
  case $host_os in
 
11204
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
 
11205
    *)                          need_version=no  ;;
 
11206
  esac
 
11207
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
11208
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
11209
  shlibpath_var=LD_LIBRARY_PATH
 
11210
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
11211
    case $host_os in
 
11212
      openbsd2.[89] | openbsd2.[89].*)
 
11213
        shlibpath_overrides_runpath=no
 
11214
        ;;
 
11215
      *)
 
11216
        shlibpath_overrides_runpath=yes
 
11217
        ;;
 
11218
      esac
 
11219
  else
 
11220
    shlibpath_overrides_runpath=yes
 
11221
  fi
 
11222
  ;;
 
11223
 
 
11224
os2*)
 
11225
  libname_spec='$name'
 
11226
  shrext_cmds=".dll"
 
11227
  need_lib_prefix=no
 
11228
  library_names_spec='$libname${shared_ext} $libname.a'
 
11229
  dynamic_linker='OS/2 ld.exe'
 
11230
  shlibpath_var=LIBPATH
 
11231
  ;;
 
11232
 
 
11233
osf3* | osf4* | osf5*)
 
11234
  version_type=osf
 
11235
  need_lib_prefix=no
 
11236
  need_version=no
 
11237
  soname_spec='${libname}${release}${shared_ext}$major'
 
11238
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11239
  shlibpath_var=LD_LIBRARY_PATH
 
11240
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
11241
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
11242
  ;;
 
11243
 
 
11244
rdos*)
 
11245
  dynamic_linker=no
 
11246
  ;;
 
11247
 
 
11248
solaris*)
 
11249
  version_type=linux # correct to gnu/linux during the next big refactor
 
11250
  need_lib_prefix=no
 
11251
  need_version=no
 
11252
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11253
  soname_spec='${libname}${release}${shared_ext}$major'
 
11254
  shlibpath_var=LD_LIBRARY_PATH
 
11255
  shlibpath_overrides_runpath=yes
 
11256
  hardcode_into_libs=yes
 
11257
  # ldd complains unless libraries are executable
 
11258
  postinstall_cmds='chmod +x $lib'
 
11259
  ;;
 
11260
 
 
11261
sunos4*)
 
11262
  version_type=sunos
 
11263
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
11264
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
11265
  shlibpath_var=LD_LIBRARY_PATH
 
11266
  shlibpath_overrides_runpath=yes
 
11267
  if test "$with_gnu_ld" = yes; then
 
11268
    need_lib_prefix=no
 
11269
  fi
 
11270
  need_version=yes
 
11271
  ;;
 
11272
 
 
11273
sysv4 | sysv4.3*)
 
11274
  version_type=linux # correct to gnu/linux during the next big refactor
 
11275
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11276
  soname_spec='${libname}${release}${shared_ext}$major'
 
11277
  shlibpath_var=LD_LIBRARY_PATH
 
11278
  case $host_vendor in
 
11279
    sni)
 
11280
      shlibpath_overrides_runpath=no
 
11281
      need_lib_prefix=no
 
11282
      runpath_var=LD_RUN_PATH
 
11283
      ;;
 
11284
    siemens)
 
11285
      need_lib_prefix=no
 
11286
      ;;
 
11287
    motorola)
 
11288
      need_lib_prefix=no
 
11289
      need_version=no
 
11290
      shlibpath_overrides_runpath=no
 
11291
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
11292
      ;;
 
11293
  esac
 
11294
  ;;
 
11295
 
 
11296
sysv4*MP*)
 
11297
  if test -d /usr/nec ;then
 
11298
    version_type=linux # correct to gnu/linux during the next big refactor
 
11299
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
11300
    soname_spec='$libname${shared_ext}.$major'
 
11301
    shlibpath_var=LD_LIBRARY_PATH
 
11302
  fi
 
11303
  ;;
 
11304
 
 
11305
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
11306
  version_type=freebsd-elf
 
11307
  need_lib_prefix=no
 
11308
  need_version=no
 
11309
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
11310
  soname_spec='${libname}${release}${shared_ext}$major'
 
11311
  shlibpath_var=LD_LIBRARY_PATH
 
11312
  shlibpath_overrides_runpath=yes
 
11313
  hardcode_into_libs=yes
 
11314
  if test "$with_gnu_ld" = yes; then
 
11315
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
11316
  else
 
11317
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
11318
    case $host_os in
 
11319
      sco3.2v5*)
 
11320
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
11321
        ;;
 
11322
    esac
 
11323
  fi
 
11324
  sys_lib_dlsearch_path_spec='/usr/lib'
 
11325
  ;;
 
11326
 
 
11327
tpf*)
 
11328
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 
11329
  version_type=linux # correct to gnu/linux during the next big refactor
 
11330
  need_lib_prefix=no
 
11331
  need_version=no
 
11332
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11333
  shlibpath_var=LD_LIBRARY_PATH
 
11334
  shlibpath_overrides_runpath=no
 
11335
  hardcode_into_libs=yes
 
11336
  ;;
 
11337
 
 
11338
uts4*)
 
11339
  version_type=linux # correct to gnu/linux during the next big refactor
 
11340
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11341
  soname_spec='${libname}${release}${shared_ext}$major'
 
11342
  shlibpath_var=LD_LIBRARY_PATH
 
11343
  ;;
 
11344
 
 
11345
*)
 
11346
  dynamic_linker=no
 
11347
  ;;
 
11348
esac
 
11349
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
 
11350
$as_echo "$dynamic_linker" >&6; }
 
11351
test "$dynamic_linker" = no && can_build_shared=no
 
11352
 
 
11353
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
11354
if test "$GCC" = yes; then
 
11355
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
11356
fi
 
11357
 
 
11358
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
11359
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
11360
fi
 
11361
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
11362
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
11363
fi
 
11364
 
 
11365
 
 
11366
    
 
11367
    
 
11368
    
 
11369
 
 
11370
 
 
11371
    
 
11372
    
 
11373
    
 
11374
 
 
11375
 
 
11376
    
 
11377
    
 
11378
    
 
11379
 
 
11380
 
 
11381
    
 
11382
    
 
11383
    
 
11384
 
 
11385
 
 
11386
    
 
11387
    
 
11388
    
 
11389
 
 
11390
 
 
11391
    
 
11392
    
 
11393
    
 
11394
 
 
11395
 
 
11396
    
 
11397
    
 
11398
    
 
11399
 
 
11400
 
 
11401
    
 
11402
    
 
11403
    
 
11404
 
 
11405
 
 
11406
    
 
11407
    
 
11408
    
 
11409
 
 
11410
 
 
11411
    
 
11412
    
 
11413
    
 
11414
 
 
11415
 
 
11416
    
 
11417
    
 
11418
    
 
11419
 
 
11420
 
 
11421
    
 
11422
    
 
11423
    
 
11424
 
 
11425
 
 
11426
    
 
11427
    
 
11428
    
 
11429
 
 
11430
 
 
11431
    
 
11432
    
 
11433
    
 
11434
 
 
11435
 
 
11436
    
 
11437
    
 
11438
    
 
11439
 
 
11440
 
 
11441
    
 
11442
    
 
11443
    
 
11444
 
 
11445
 
 
11446
    
 
11447
    
 
11448
    
 
11449
 
 
11450
 
 
11451
    
 
11452
    
 
11453
    
 
11454
 
 
11455
 
 
11456
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
 
11457
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 
11458
hardcode_action=
 
11459
if test -n "$hardcode_libdir_flag_spec" ||
 
11460
   test -n "$runpath_var" ||
 
11461
   test "X$hardcode_automatic" = "Xyes" ; then
 
11462
 
 
11463
  # We can hardcode non-existent directories.
 
11464
  if test "$hardcode_direct" != no &&
 
11465
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
11466
     # have to relink, otherwise we might link with an installed library
 
11467
     # when we should be linking with a yet-to-be-installed one
 
11468
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
11469
     test "$hardcode_minus_L" != no; then
 
11470
    # Linking always hardcodes the temporary library directory.
 
11471
    hardcode_action=relink
 
11472
  else
 
11473
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
11474
    hardcode_action=immediate
 
11475
  fi
 
11476
else
 
11477
  # We cannot hardcode anything, or else we can only hardcode existing
 
11478
  # directories.
 
11479
  hardcode_action=unsupported
 
11480
fi
 
11481
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
 
11482
$as_echo "$hardcode_action" >&6; }
 
11483
 
 
11484
if test "$hardcode_action" = relink ||
 
11485
   test "$inherit_rpath" = yes; then
 
11486
  # Fast installation is not supported
 
11487
  enable_fast_install=no
 
11488
elif test "$shlibpath_overrides_runpath" = yes ||
 
11489
     test "$enable_shared" = no; then
 
11490
  # Fast installation is not necessary
 
11491
  enable_fast_install=needless
 
11492
fi
 
11493
 
 
11494
    
 
11495
    
 
11496
    
 
11497
 
 
11498
 
 
11499
  if test "x$enable_dlopen" != xyes; then
 
11500
  enable_dlopen=unknown
 
11501
  enable_dlopen_self=unknown
 
11502
  enable_dlopen_self_static=unknown
 
11503
else
 
11504
  lt_cv_dlopen=no
 
11505
  lt_cv_dlopen_libs=
 
11506
 
 
11507
  case $host_os in
 
11508
  beos*)
 
11509
    lt_cv_dlopen="load_add_on"
 
11510
    lt_cv_dlopen_libs=
 
11511
    lt_cv_dlopen_self=yes
 
11512
    ;;
 
11513
 
 
11514
  mingw* | pw32* | cegcc*)
 
11515
    lt_cv_dlopen="LoadLibrary"
 
11516
    lt_cv_dlopen_libs=
 
11517
    ;;
 
11518
 
 
11519
  cygwin*)
 
11520
    lt_cv_dlopen="dlopen"
 
11521
    lt_cv_dlopen_libs=
 
11522
    ;;
 
11523
 
 
11524
  darwin*)
 
11525
  # if libdl is installed we need to link against it
 
11526
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
 
11527
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
11528
if ${ac_cv_lib_dl_dlopen+:} false; then :
 
11529
  $as_echo_n "(cached) " >&6
 
11530
else
 
11531
  ac_check_lib_save_LIBS=$LIBS
 
11532
LIBS="-ldl  $LIBS"
 
11533
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11534
/* end confdefs.h.  */
 
11535
 
 
11536
/* Override any GCC internal prototype to avoid an error.
 
11537
   Use char because int might match the return type of a GCC
 
11538
   builtin and then its argument prototype would still apply.  */
 
11539
#ifdef __cplusplus
 
11540
extern "C"
 
11541
#endif
 
11542
char dlopen ();
 
11543
int
 
11544
main ()
 
11545
{
 
11546
return dlopen ();
 
11547
  ;
 
11548
  return 0;
 
11549
}
 
11550
_ACEOF
 
11551
if ac_fn_c_try_link "$LINENO"; then :
 
11552
  ac_cv_lib_dl_dlopen=yes
 
11553
else
 
11554
  ac_cv_lib_dl_dlopen=no
 
11555
fi
 
11556
rm -f core conftest.err conftest.$ac_objext \
 
11557
    conftest$ac_exeext conftest.$ac_ext
 
11558
LIBS=$ac_check_lib_save_LIBS
 
11559
fi
 
11560
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
 
11561
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
11562
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
 
11563
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
11564
else
 
11565
  
 
11566
    lt_cv_dlopen="dyld"
 
11567
    lt_cv_dlopen_libs=
 
11568
    lt_cv_dlopen_self=yes
 
11569
    
 
11570
fi
 
11571
 
 
11572
    ;;
 
11573
 
 
11574
  *)
 
11575
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
 
11576
if test "x$ac_cv_func_shl_load" = xyes; then :
 
11577
  lt_cv_dlopen="shl_load"
 
11578
else
 
11579
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
 
11580
$as_echo_n "checking for shl_load in -ldld... " >&6; }
 
11581
if ${ac_cv_lib_dld_shl_load+:} false; then :
 
11582
  $as_echo_n "(cached) " >&6
 
11583
else
 
11584
  ac_check_lib_save_LIBS=$LIBS
 
11585
LIBS="-ldld  $LIBS"
 
11586
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11587
/* end confdefs.h.  */
 
11588
 
 
11589
/* Override any GCC internal prototype to avoid an error.
 
11590
   Use char because int might match the return type of a GCC
 
11591
   builtin and then its argument prototype would still apply.  */
 
11592
#ifdef __cplusplus
 
11593
extern "C"
 
11594
#endif
 
11595
char shl_load ();
 
11596
int
 
11597
main ()
 
11598
{
 
11599
return shl_load ();
 
11600
  ;
 
11601
  return 0;
 
11602
}
 
11603
_ACEOF
 
11604
if ac_fn_c_try_link "$LINENO"; then :
 
11605
  ac_cv_lib_dld_shl_load=yes
 
11606
else
 
11607
  ac_cv_lib_dld_shl_load=no
 
11608
fi
 
11609
rm -f core conftest.err conftest.$ac_objext \
 
11610
    conftest$ac_exeext conftest.$ac_ext
 
11611
LIBS=$ac_check_lib_save_LIBS
 
11612
fi
 
11613
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
 
11614
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
 
11615
if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
 
11616
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
 
11617
else
 
11618
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
 
11619
if test "x$ac_cv_func_dlopen" = xyes; then :
 
11620
  lt_cv_dlopen="dlopen"
 
11621
else
 
11622
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
 
11623
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
11624
if ${ac_cv_lib_dl_dlopen+:} false; then :
 
11625
  $as_echo_n "(cached) " >&6
 
11626
else
 
11627
  ac_check_lib_save_LIBS=$LIBS
 
11628
LIBS="-ldl  $LIBS"
 
11629
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11630
/* end confdefs.h.  */
 
11631
 
 
11632
/* Override any GCC internal prototype to avoid an error.
 
11633
   Use char because int might match the return type of a GCC
 
11634
   builtin and then its argument prototype would still apply.  */
 
11635
#ifdef __cplusplus
 
11636
extern "C"
 
11637
#endif
 
11638
char dlopen ();
 
11639
int
 
11640
main ()
 
11641
{
 
11642
return dlopen ();
 
11643
  ;
 
11644
  return 0;
 
11645
}
 
11646
_ACEOF
 
11647
if ac_fn_c_try_link "$LINENO"; then :
 
11648
  ac_cv_lib_dl_dlopen=yes
 
11649
else
 
11650
  ac_cv_lib_dl_dlopen=no
 
11651
fi
 
11652
rm -f core conftest.err conftest.$ac_objext \
 
11653
    conftest$ac_exeext conftest.$ac_ext
 
11654
LIBS=$ac_check_lib_save_LIBS
 
11655
fi
 
11656
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
 
11657
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
11658
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
 
11659
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
11660
else
 
11661
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
 
11662
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
 
11663
if ${ac_cv_lib_svld_dlopen+:} false; then :
 
11664
  $as_echo_n "(cached) " >&6
 
11665
else
 
11666
  ac_check_lib_save_LIBS=$LIBS
 
11667
LIBS="-lsvld  $LIBS"
 
11668
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11669
/* end confdefs.h.  */
 
11670
 
 
11671
/* Override any GCC internal prototype to avoid an error.
 
11672
   Use char because int might match the return type of a GCC
 
11673
   builtin and then its argument prototype would still apply.  */
 
11674
#ifdef __cplusplus
 
11675
extern "C"
 
11676
#endif
 
11677
char dlopen ();
 
11678
int
 
11679
main ()
 
11680
{
 
11681
return dlopen ();
 
11682
  ;
 
11683
  return 0;
 
11684
}
 
11685
_ACEOF
 
11686
if ac_fn_c_try_link "$LINENO"; then :
 
11687
  ac_cv_lib_svld_dlopen=yes
 
11688
else
 
11689
  ac_cv_lib_svld_dlopen=no
 
11690
fi
 
11691
rm -f core conftest.err conftest.$ac_objext \
 
11692
    conftest$ac_exeext conftest.$ac_ext
 
11693
LIBS=$ac_check_lib_save_LIBS
 
11694
fi
 
11695
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
 
11696
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
 
11697
if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
 
11698
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
11699
else
 
11700
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
 
11701
$as_echo_n "checking for dld_link in -ldld... " >&6; }
 
11702
if ${ac_cv_lib_dld_dld_link+:} false; then :
 
11703
  $as_echo_n "(cached) " >&6
 
11704
else
 
11705
  ac_check_lib_save_LIBS=$LIBS
 
11706
LIBS="-ldld  $LIBS"
 
11707
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11708
/* end confdefs.h.  */
 
11709
 
 
11710
/* Override any GCC internal prototype to avoid an error.
 
11711
   Use char because int might match the return type of a GCC
 
11712
   builtin and then its argument prototype would still apply.  */
 
11713
#ifdef __cplusplus
 
11714
extern "C"
 
11715
#endif
 
11716
char dld_link ();
 
11717
int
 
11718
main ()
 
11719
{
 
11720
return dld_link ();
 
11721
  ;
 
11722
  return 0;
 
11723
}
 
11724
_ACEOF
 
11725
if ac_fn_c_try_link "$LINENO"; then :
 
11726
  ac_cv_lib_dld_dld_link=yes
 
11727
else
 
11728
  ac_cv_lib_dld_dld_link=no
 
11729
fi
 
11730
rm -f core conftest.err conftest.$ac_objext \
 
11731
    conftest$ac_exeext conftest.$ac_ext
 
11732
LIBS=$ac_check_lib_save_LIBS
 
11733
fi
 
11734
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
 
11735
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
 
11736
if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
 
11737
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
 
11738
fi
 
11739
 
 
11740
              
 
11741
fi
 
11742
 
 
11743
            
 
11744
fi
 
11745
 
 
11746
          
 
11747
fi
 
11748
 
 
11749
        
 
11750
fi
 
11751
 
 
11752
      
 
11753
fi
 
11754
 
 
11755
    ;;
 
11756
  esac
 
11757
 
 
11758
  if test "x$lt_cv_dlopen" != xno; then
 
11759
    enable_dlopen=yes
 
11760
  else
 
11761
    enable_dlopen=no
 
11762
  fi
 
11763
 
 
11764
  case $lt_cv_dlopen in
 
11765
  dlopen)
 
11766
    save_CPPFLAGS="$CPPFLAGS"
 
11767
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
11768
 
 
11769
    save_LDFLAGS="$LDFLAGS"
 
11770
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
11771
 
 
11772
    save_LIBS="$LIBS"
 
11773
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
11774
 
 
11775
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
 
11776
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
 
11777
if ${lt_cv_dlopen_self+:} false; then :
 
11778
  $as_echo_n "(cached) " >&6
 
11779
else
 
11780
          if test "$cross_compiling" = yes; then :
 
11781
  lt_cv_dlopen_self=cross
 
11782
else
 
11783
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
11784
  lt_status=$lt_dlunknown
 
11785
  cat > conftest.$ac_ext <<_LT_EOF
 
11786
#line $LINENO "configure"
 
11787
#include "confdefs.h"
 
11788
 
 
11789
#if HAVE_DLFCN_H
 
11790
#include <dlfcn.h>
 
11791
#endif
 
11792
 
 
11793
#include <stdio.h>
 
11794
 
 
11795
#ifdef RTLD_GLOBAL
 
11796
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
11797
#else
 
11798
#  ifdef DL_GLOBAL
 
11799
#    define LT_DLGLOBAL         DL_GLOBAL
 
11800
#  else
 
11801
#    define LT_DLGLOBAL         0
 
11802
#  endif
 
11803
#endif
 
11804
 
 
11805
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
11806
   find out it does not work in some platform. */
 
11807
#ifndef LT_DLLAZY_OR_NOW
 
11808
#  ifdef RTLD_LAZY
 
11809
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
11810
#  else
 
11811
#    ifdef DL_LAZY
 
11812
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
11813
#    else
 
11814
#      ifdef RTLD_NOW
 
11815
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
11816
#      else
 
11817
#        ifdef DL_NOW
 
11818
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
11819
#        else
 
11820
#          define LT_DLLAZY_OR_NOW      0
 
11821
#        endif
 
11822
#      endif
 
11823
#    endif
 
11824
#  endif
 
11825
#endif
 
11826
 
 
11827
/* When -fvisbility=hidden is used, assume the code has been annotated
 
11828
   correspondingly for the symbols needed.  */
 
11829
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
 
11830
int fnord () __attribute__((visibility("default")));
 
11831
#endif
 
11832
 
 
11833
int fnord () { return 42; }
 
11834
int main ()
 
11835
{
 
11836
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
11837
  int status = $lt_dlunknown;
 
11838
 
 
11839
  if (self)
 
11840
    {
 
11841
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
11842
      else
 
11843
        {
 
11844
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
 
11845
          else puts (dlerror ());
 
11846
        }
 
11847
      /* dlclose (self); */
 
11848
    }
 
11849
  else
 
11850
    puts (dlerror ());
 
11851
 
 
11852
  return status;
 
11853
}
 
11854
_LT_EOF
 
11855
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
11856
  (eval $ac_link) 2>&5
 
11857
  ac_status=$?
 
11858
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
11859
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
 
11860
    (./conftest; exit; ) >&5 2>/dev/null
 
11861
    lt_status=$?
 
11862
    case x$lt_status in
 
11863
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
11864
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
11865
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
 
11866
    esac
 
11867
  else :
 
11868
    # compilation failed
 
11869
    lt_cv_dlopen_self=no
 
11870
  fi
 
11871
fi
 
11872
rm -fr conftest*
 
11873
 
 
11874
    
 
11875
fi
 
11876
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
 
11877
$as_echo "$lt_cv_dlopen_self" >&6; }
 
11878
 
 
11879
    if test "x$lt_cv_dlopen_self" = xyes; then
 
11880
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 
11881
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
 
11882
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
 
11883
if ${lt_cv_dlopen_self_static+:} false; then :
 
11884
  $as_echo_n "(cached) " >&6
 
11885
else
 
11886
          if test "$cross_compiling" = yes; then :
 
11887
  lt_cv_dlopen_self_static=cross
 
11888
else
 
11889
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
11890
  lt_status=$lt_dlunknown
 
11891
  cat > conftest.$ac_ext <<_LT_EOF
 
11892
#line $LINENO "configure"
 
11893
#include "confdefs.h"
 
11894
 
 
11895
#if HAVE_DLFCN_H
 
11896
#include <dlfcn.h>
 
11897
#endif
 
11898
 
 
11899
#include <stdio.h>
 
11900
 
 
11901
#ifdef RTLD_GLOBAL
 
11902
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
11903
#else
 
11904
#  ifdef DL_GLOBAL
 
11905
#    define LT_DLGLOBAL         DL_GLOBAL
 
11906
#  else
 
11907
#    define LT_DLGLOBAL         0
 
11908
#  endif
 
11909
#endif
 
11910
 
 
11911
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
11912
   find out it does not work in some platform. */
 
11913
#ifndef LT_DLLAZY_OR_NOW
 
11914
#  ifdef RTLD_LAZY
 
11915
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
11916
#  else
 
11917
#    ifdef DL_LAZY
 
11918
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
11919
#    else
 
11920
#      ifdef RTLD_NOW
 
11921
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
11922
#      else
 
11923
#        ifdef DL_NOW
 
11924
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
11925
#        else
 
11926
#          define LT_DLLAZY_OR_NOW      0
 
11927
#        endif
 
11928
#      endif
 
11929
#    endif
 
11930
#  endif
 
11931
#endif
 
11932
 
 
11933
/* When -fvisbility=hidden is used, assume the code has been annotated
 
11934
   correspondingly for the symbols needed.  */
 
11935
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
 
11936
int fnord () __attribute__((visibility("default")));
 
11937
#endif
 
11938
 
 
11939
int fnord () { return 42; }
 
11940
int main ()
 
11941
{
 
11942
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
11943
  int status = $lt_dlunknown;
 
11944
 
 
11945
  if (self)
 
11946
    {
 
11947
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
11948
      else
 
11949
        {
 
11950
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
 
11951
          else puts (dlerror ());
 
11952
        }
 
11953
      /* dlclose (self); */
 
11954
    }
 
11955
  else
 
11956
    puts (dlerror ());
 
11957
 
 
11958
  return status;
 
11959
}
 
11960
_LT_EOF
 
11961
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
11962
  (eval $ac_link) 2>&5
 
11963
  ac_status=$?
 
11964
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
11965
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
 
11966
    (./conftest; exit; ) >&5 2>/dev/null
 
11967
    lt_status=$?
 
11968
    case x$lt_status in
 
11969
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
11970
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
11971
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
 
11972
    esac
 
11973
  else :
 
11974
    # compilation failed
 
11975
    lt_cv_dlopen_self_static=no
 
11976
  fi
 
11977
fi
 
11978
rm -fr conftest*
 
11979
 
 
11980
      
 
11981
fi
 
11982
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
 
11983
$as_echo "$lt_cv_dlopen_self_static" >&6; }
 
11984
    fi
 
11985
 
 
11986
    CPPFLAGS="$save_CPPFLAGS"
 
11987
    LDFLAGS="$save_LDFLAGS"
 
11988
    LIBS="$save_LIBS"
 
11989
    ;;
 
11990
  esac
 
11991
 
 
11992
  case $lt_cv_dlopen_self in
 
11993
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
11994
  *) enable_dlopen_self=unknown ;;
 
11995
  esac
 
11996
 
 
11997
  case $lt_cv_dlopen_self_static in
 
11998
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
11999
  *) enable_dlopen_self_static=unknown ;;
 
12000
  esac
 
12001
fi
 
12002
 
 
12003
    
 
12004
    
 
12005
    
 
12006
 
 
12007
 
 
12008
    
 
12009
    
 
12010
    
 
12011
 
 
12012
 
 
12013
    
 
12014
    
 
12015
    
 
12016
 
 
12017
 
 
12018
  
 
12019
striplib=
 
12020
old_striplib=
 
12021
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
 
12022
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
 
12023
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
 
12024
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
12025
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
12026
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
12027
$as_echo "yes" >&6; }
 
12028
else
 
12029
# FIXME - insert some real tests, host_os isn't really good enough
 
12030
  case $host_os in
 
12031
  darwin*)
 
12032
    if test -n "$STRIP" ; then
 
12033
      striplib="$STRIP -x"
 
12034
      old_striplib="$STRIP -S"
 
12035
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
12036
$as_echo "yes" >&6; }
 
12037
    else
 
12038
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12039
$as_echo "no" >&6; }
 
12040
    fi
 
12041
    ;;
 
12042
  *)
 
12043
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12044
$as_echo "no" >&6; }
 
12045
    ;;
 
12046
  esac
 
12047
fi
 
12048
 
 
12049
    
 
12050
    
 
12051
    
 
12052
 
 
12053
 
 
12054
    
 
12055
    
 
12056
    
 
12057
 
 
12058
 
 
12059
 
 
12060
  # Report which library types will actually be built
 
12061
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
 
12062
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
 
12063
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
 
12064
$as_echo "$can_build_shared" >&6; }
 
12065
 
 
12066
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
 
12067
$as_echo_n "checking whether to build shared libraries... " >&6; }
 
12068
  test "$can_build_shared" = "no" && enable_shared=no
 
12069
 
 
12070
  # On AIX, shared libraries and static libraries use the same namespace, and
 
12071
  # are all built from PIC.
 
12072
  case $host_os in
 
12073
  aix3*)
 
12074
    test "$enable_shared" = yes && enable_static=no
 
12075
    if test -n "$RANLIB"; then
 
12076
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
12077
      postinstall_cmds='$RANLIB $lib'
 
12078
    fi
 
12079
    ;;
 
12080
 
 
12081
  aix[4-9]*)
 
12082
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
12083
      test "$enable_shared" = yes && enable_static=no
 
12084
    fi
 
12085
    ;;
 
12086
  esac
 
12087
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
 
12088
$as_echo "$enable_shared" >&6; }
 
12089
 
 
12090
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
 
12091
$as_echo_n "checking whether to build static libraries... " >&6; }
 
12092
  # Make sure either enable_shared or enable_static is yes.
 
12093
  test "$enable_shared" = yes || enable_static=yes
 
12094
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
 
12095
$as_echo "$enable_static" >&6; }
 
12096
 
 
12097
  
 
12098
 
 
12099
 
 
12100
fi
 
12101
ac_ext=c
 
12102
ac_cpp='$CPP $CPPFLAGS'
 
12103
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
12104
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
12105
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
12106
 
 
12107
CC="$lt_save_CC"
 
12108
 
 
12109
 
 
12110
 
 
12111
 
 
12112
 
 
12113
 
 
12114
 
 
12115
 
 
12116
       
 
12117
       
 
12118
 
 
12119
 
 
12120
 
 
12121
 
 
12122
 
 
12123
        ac_config_commands="$ac_config_commands libtool"
 
12124
 
 
12125
 
 
12126
 
 
12127
 
 
12128
# Only expand once:
 
12129
 
 
12130
 
 
12131
 
 
12132
if ${CONFIG_SHELL} ./libtool --features | grep "enable static" >/dev/null; then
 
12133
  STATIC="-static"
 
12134
else
 
12135
  STATIC=
 
12136
fi
 
12137
 
 
12138
 
 
12139
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
 
12140
$as_echo_n "checking for ANSI C header files... " >&6; }
 
12141
if ${ac_cv_header_stdc+:} false; then :
 
12142
  $as_echo_n "(cached) " >&6
 
12143
else
 
12144
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12145
/* end confdefs.h.  */
 
12146
#include <stdlib.h>
 
12147
#include <stdarg.h>
 
12148
#include <string.h>
 
12149
#include <float.h>
 
12150
 
 
12151
int
 
12152
main ()
 
12153
{
 
12154
 
 
12155
  ;
 
12156
  return 0;
 
12157
}
 
12158
_ACEOF
 
12159
if ac_fn_c_try_compile "$LINENO"; then :
 
12160
  ac_cv_header_stdc=yes
 
12161
else
 
12162
  ac_cv_header_stdc=no
 
12163
fi
 
12164
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12165
 
 
12166
if test $ac_cv_header_stdc = yes; then
 
12167
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
12168
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12169
/* end confdefs.h.  */
 
12170
#include <string.h>
 
12171
 
 
12172
_ACEOF
 
12173
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
12174
  $EGREP "memchr" >/dev/null 2>&1; then :
 
12175
  
 
12176
else
 
12177
  ac_cv_header_stdc=no
 
12178
fi
 
12179
rm -f conftest*
 
12180
 
 
12181
fi
 
12182
 
 
12183
if test $ac_cv_header_stdc = yes; then
 
12184
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
12185
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12186
/* end confdefs.h.  */
 
12187
#include <stdlib.h>
 
12188
 
 
12189
_ACEOF
 
12190
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
12191
  $EGREP "free" >/dev/null 2>&1; then :
 
12192
  
 
12193
else
 
12194
  ac_cv_header_stdc=no
 
12195
fi
 
12196
rm -f conftest*
 
12197
 
 
12198
fi
 
12199
 
 
12200
if test $ac_cv_header_stdc = yes; then
 
12201
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
12202
  if test "$cross_compiling" = yes; then :
 
12203
  :
 
12204
else
 
12205
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12206
/* end confdefs.h.  */
 
12207
#include <ctype.h>
 
12208
#include <stdlib.h>
 
12209
#if ((' ' & 0x0FF) == 0x020)
 
12210
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
12211
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
12212
#else
 
12213
# define ISLOWER(c) \
 
12214
                   (('a' <= (c) && (c) <= 'i') \
 
12215
                     || ('j' <= (c) && (c) <= 'r') \
 
12216
                     || ('s' <= (c) && (c) <= 'z'))
 
12217
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
12218
#endif
 
12219
 
 
12220
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
12221
int
 
12222
main ()
 
12223
{
 
12224
  int i;
 
12225
  for (i = 0; i < 256; i++)
 
12226
    if (XOR (islower (i), ISLOWER (i))
 
12227
        || toupper (i) != TOUPPER (i))
 
12228
      return 2;
 
12229
  return 0;
 
12230
}
 
12231
_ACEOF
 
12232
if ac_fn_c_try_run "$LINENO"; then :
 
12233
  
 
12234
else
 
12235
  ac_cv_header_stdc=no
 
12236
fi
 
12237
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
12238
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
12239
fi
 
12240
 
 
12241
fi
 
12242
fi
 
12243
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
 
12244
$as_echo "$ac_cv_header_stdc" >&6; }
 
12245
if test $ac_cv_header_stdc = yes; then
 
12246
  
 
12247
$as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
 
12248
 
 
12249
fi
 
12250
 
 
12251
ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
 
12252
if test "x$ac_cv_header_unistd_h" = xyes; then :
 
12253
  
 
12254
fi
 
12255
 
 
12256
 
 
12257
ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
 
12258
if test "x$ac_cv_header_string_h" = xyes; then :
 
12259
  
 
12260
fi
 
12261
 
 
12262
 
 
12263
 
 
12264
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
 
12265
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
 
12266
if ${ac_cv_c_const+:} false; then :
 
12267
  $as_echo_n "(cached) " >&6
 
12268
else
 
12269
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12270
/* end confdefs.h.  */
 
12271
 
 
12272
int
 
12273
main ()
 
12274
{
 
12275
 
 
12276
#ifndef __cplusplus
 
12277
  /* Ultrix mips cc rejects this sort of thing.  */
 
12278
  typedef int charset[2];
 
12279
  const charset cs = { 0, 0 };
 
12280
  /* SunOS 4.1.1 cc rejects this.  */
 
12281
  char const *const *pcpcc;
 
12282
  char **ppc;
 
12283
  /* NEC SVR4.0.2 mips cc rejects this.  */
 
12284
  struct point {int x, y;};
 
12285
  static struct point const zero = {0,0};
 
12286
  /* AIX XL C 1.02.0.0 rejects this.
 
12287
     It does not let you subtract one const X* pointer from another in
 
12288
     an arm of an if-expression whose if-part is not a constant
 
12289
     expression */
 
12290
  const char *g = "string";
 
12291
  pcpcc = &g + (g ? g-g : 0);
 
12292
  /* HPUX 7.0 cc rejects these. */
 
12293
  ++pcpcc;
 
12294
  ppc = (char**) pcpcc;
 
12295
  pcpcc = (char const *const *) ppc;
 
12296
  { /* SCO 3.2v4 cc rejects this sort of thing.  */
 
12297
    char tx;
 
12298
    char *t = &tx;
 
12299
    char const *s = 0 ? (char *) 0 : (char const *) 0;
 
12300
 
 
12301
    *t++ = 0;
 
12302
    if (s) return 0;
 
12303
  }
 
12304
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
 
12305
    int x[] = {25, 17};
 
12306
    const int *foo = &x[0];
 
12307
    ++foo;
 
12308
  }
 
12309
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
 
12310
    typedef const int *iptr;
 
12311
    iptr p = 0;
 
12312
    ++p;
 
12313
  }
 
12314
  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
 
12315
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
 
12316
    struct s { int j; const int *ap[3]; } bx;
 
12317
    struct s *b = &bx; b->j = 5;
 
12318
  }
 
12319
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
 
12320
    const int foo = 10;
 
12321
    if (!foo) return 0;
 
12322
  }
 
12323
  return !cs[0] && !zero.x;
 
12324
#endif
 
12325
 
 
12326
  ;
 
12327
  return 0;
 
12328
}
 
12329
_ACEOF
 
12330
if ac_fn_c_try_compile "$LINENO"; then :
 
12331
  ac_cv_c_const=yes
 
12332
else
 
12333
  ac_cv_c_const=no
 
12334
fi
 
12335
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12336
fi
 
12337
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
 
12338
$as_echo "$ac_cv_c_const" >&6; }
 
12339
if test $ac_cv_c_const = no; then
 
12340
  
 
12341
$as_echo "@%:@define const /**/" >>confdefs.h
 
12342
 
 
12343
fi
 
12344
 
 
12345
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
 
12346
$as_echo_n "checking for inline... " >&6; }
 
12347
if ${ac_cv_c_inline+:} false; then :
 
12348
  $as_echo_n "(cached) " >&6
 
12349
else
 
12350
  ac_cv_c_inline=no
 
12351
for ac_kw in inline __inline__ __inline; do
 
12352
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12353
/* end confdefs.h.  */
 
12354
#ifndef __cplusplus
 
12355
typedef int foo_t;
 
12356
static $ac_kw foo_t static_foo () {return 0; }
 
12357
$ac_kw foo_t foo () {return 0; }
 
12358
#endif
 
12359
 
 
12360
_ACEOF
 
12361
if ac_fn_c_try_compile "$LINENO"; then :
 
12362
  ac_cv_c_inline=$ac_kw
 
12363
fi
 
12364
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12365
  test "$ac_cv_c_inline" != no && break
 
12366
done
 
12367
 
 
12368
fi
 
12369
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
 
12370
$as_echo "$ac_cv_c_inline" >&6; }
 
12371
 
 
12372
case $ac_cv_c_inline in
 
12373
  inline | yes) ;;
 
12374
  *)
 
12375
    case $ac_cv_c_inline in
 
12376
      no) ac_val=;;
 
12377
      *) ac_val=$ac_cv_c_inline;;
 
12378
    esac
 
12379
    cat >>confdefs.h <<_ACEOF
 
12380
#ifndef __cplusplus
 
12381
#define inline $ac_val
 
12382
#endif
 
12383
_ACEOF
 
12384
    ;;
 
12385
esac
 
12386
 
 
12387
ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
 
12388
if test "x$ac_cv_type_off_t" = xyes; then :
 
12389
  
 
12390
else
 
12391
  
 
12392
cat >>confdefs.h <<_ACEOF
 
12393
@%:@define off_t long int
 
12394
_ACEOF
 
12395
 
 
12396
fi
 
12397
 
 
12398
ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
 
12399
if test "x$ac_cv_type_size_t" = xyes; then :
 
12400
  
 
12401
else
 
12402
  
 
12403
cat >>confdefs.h <<_ACEOF
 
12404
@%:@define size_t unsigned int
 
12405
_ACEOF
 
12406
 
 
12407
fi
 
12408
 
 
12409
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
 
12410
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
 
12411
if ${ac_cv_c_bigendian+:} false; then :
 
12412
  $as_echo_n "(cached) " >&6
 
12413
else
 
12414
  ac_cv_c_bigendian=unknown
 
12415
    # See if we're dealing with a universal compiler.
 
12416
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12417
/* end confdefs.h.  */
 
12418
#ifndef __APPLE_CC__
 
12419
               not a universal capable compiler
 
12420
             #endif
 
12421
             typedef int dummy;
 
12422
            
 
12423
_ACEOF
 
12424
if ac_fn_c_try_compile "$LINENO"; then :
 
12425
  
 
12426
        # Check for potential -arch flags.  It is not universal unless
 
12427
        # there are at least two -arch flags with different values.
 
12428
        ac_arch=
 
12429
        ac_prev=
 
12430
        for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
 
12431
         if test -n "$ac_prev"; then
 
12432
           case $ac_word in
 
12433
             i?86 | x86_64 | ppc | ppc64)
 
12434
               if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
 
12435
                 ac_arch=$ac_word
 
12436
               else
 
12437
                 ac_cv_c_bigendian=universal
 
12438
                 break
 
12439
               fi
 
12440
               ;;
 
12441
           esac
 
12442
           ac_prev=
 
12443
         elif test "x$ac_word" = "x-arch"; then
 
12444
           ac_prev=arch
 
12445
         fi
 
12446
       done
 
12447
fi
 
12448
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12449
    if test $ac_cv_c_bigendian = unknown; then
 
12450
      # See if sys/param.h defines the BYTE_ORDER macro.
 
12451
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12452
/* end confdefs.h.  */
 
12453
#include <sys/types.h>
 
12454
             #include <sys/param.h>
 
12455
           
 
12456
int
 
12457
main ()
 
12458
{
 
12459
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
 
12460
                     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
 
12461
                     && LITTLE_ENDIAN)
 
12462
              bogus endian macros
 
12463
             #endif
 
12464
           
 
12465
  ;
 
12466
  return 0;
 
12467
}
 
12468
_ACEOF
 
12469
if ac_fn_c_try_compile "$LINENO"; then :
 
12470
  # It does; now see whether it defined to BIG_ENDIAN or not.
 
12471
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12472
/* end confdefs.h.  */
 
12473
#include <sys/types.h>
 
12474
                #include <sys/param.h>
 
12475
              
 
12476
int
 
12477
main ()
 
12478
{
 
12479
#if BYTE_ORDER != BIG_ENDIAN
 
12480
                 not big endian
 
12481
                #endif
 
12482
              
 
12483
  ;
 
12484
  return 0;
 
12485
}
 
12486
_ACEOF
 
12487
if ac_fn_c_try_compile "$LINENO"; then :
 
12488
  ac_cv_c_bigendian=yes
 
12489
else
 
12490
  ac_cv_c_bigendian=no
 
12491
fi
 
12492
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12493
fi
 
12494
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12495
    fi
 
12496
    if test $ac_cv_c_bigendian = unknown; then
 
12497
      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
 
12498
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12499
/* end confdefs.h.  */
 
12500
#include <limits.h>
 
12501
           
 
12502
int
 
12503
main ()
 
12504
{
 
12505
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
 
12506
              bogus endian macros
 
12507
             #endif
 
12508
           
 
12509
  ;
 
12510
  return 0;
 
12511
}
 
12512
_ACEOF
 
12513
if ac_fn_c_try_compile "$LINENO"; then :
 
12514
  # It does; now see whether it defined to _BIG_ENDIAN or not.
 
12515
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12516
/* end confdefs.h.  */
 
12517
#include <limits.h>
 
12518
              
 
12519
int
 
12520
main ()
 
12521
{
 
12522
#ifndef _BIG_ENDIAN
 
12523
                 not big endian
 
12524
                #endif
 
12525
              
 
12526
  ;
 
12527
  return 0;
 
12528
}
 
12529
_ACEOF
 
12530
if ac_fn_c_try_compile "$LINENO"; then :
 
12531
  ac_cv_c_bigendian=yes
 
12532
else
 
12533
  ac_cv_c_bigendian=no
 
12534
fi
 
12535
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12536
fi
 
12537
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12538
    fi
 
12539
    if test $ac_cv_c_bigendian = unknown; then
 
12540
      # Compile a test program.
 
12541
      if test "$cross_compiling" = yes; then :
 
12542
  # Try to guess by grepping values from an object file.
 
12543
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12544
/* end confdefs.h.  */
 
12545
short int ascii_mm[] =
 
12546
                  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
 
12547
                short int ascii_ii[] =
 
12548
                  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
 
12549
                int use_ascii (int i) {
 
12550
                  return ascii_mm[i] + ascii_ii[i];
 
12551
                }
 
12552
                short int ebcdic_ii[] =
 
12553
                  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
 
12554
                short int ebcdic_mm[] =
 
12555
                  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
 
12556
                int use_ebcdic (int i) {
 
12557
                  return ebcdic_mm[i] + ebcdic_ii[i];
 
12558
                }
 
12559
                extern int foo;
 
12560
              
 
12561
int
 
12562
main ()
 
12563
{
 
12564
return use_ascii (foo) == use_ebcdic (foo);
 
12565
  ;
 
12566
  return 0;
 
12567
}
 
12568
_ACEOF
 
12569
if ac_fn_c_try_compile "$LINENO"; then :
 
12570
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
 
12571
              ac_cv_c_bigendian=yes
 
12572
            fi
 
12573
            if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
 
12574
              if test "$ac_cv_c_bigendian" = unknown; then
 
12575
                ac_cv_c_bigendian=no
 
12576
              else
 
12577
                # finding both strings is unlikely to happen, but who knows?
 
12578
                ac_cv_c_bigendian=unknown
 
12579
              fi
 
12580
            fi
 
12581
fi
 
12582
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12583
else
 
12584
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12585
/* end confdefs.h.  */
 
12586
$ac_includes_default
 
12587
int
 
12588
main ()
 
12589
{
 
12590
 
 
12591
             /* Are we little or big endian?  From Harbison&Steele.  */
 
12592
             union
 
12593
             {
 
12594
               long int l;
 
12595
               char c[sizeof (long int)];
 
12596
             } u;
 
12597
             u.l = 1;
 
12598
             return u.c[sizeof (long int) - 1] == 1;
 
12599
           
 
12600
  ;
 
12601
  return 0;
 
12602
}
 
12603
_ACEOF
 
12604
if ac_fn_c_try_run "$LINENO"; then :
 
12605
  ac_cv_c_bigendian=no
 
12606
else
 
12607
  ac_cv_c_bigendian=yes
 
12608
fi
 
12609
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
12610
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
12611
fi
 
12612
 
 
12613
    fi
 
12614
fi
 
12615
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
 
12616
$as_echo "$ac_cv_c_bigendian" >&6; }
 
12617
 case $ac_cv_c_bigendian in #(
 
12618
   yes)
 
12619
     $as_echo "@%:@define WORDS_BIGENDIAN 1" >>confdefs.h
 
12620
;; #(
 
12621
   no)
 
12622
      ;; #(
 
12623
   universal)
 
12624
        
 
12625
$as_echo "@%:@define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
 
12626
 
 
12627
     ;; #(
 
12628
   *)
 
12629
     as_fn_error $? "unknown endianness
 
12630
 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
 
12631
 esac
 
12632
 
 
12633
 
 
12634
case $host in
 
12635
  *mingw32* | *cygwin*)
 
12636
    for ac_func in gettimeofday
 
12637
do :
 
12638
  ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
 
12639
if test "x$ac_cv_func_gettimeofday" = xyes; then :
 
12640
  cat >>confdefs.h <<_ACEOF
 
12641
@%:@define HAVE_GETTIMEOFDAY 1
 
12642
_ACEOF
 
12643
 
 
12644
fi
 
12645
done
 
12646
 
 
12647
    ;;
 
12648
  *)
 
12649
    ;;
 
12650
esac
 
12651
 
 
12652
@%:@ Check whether --enable-libdvdcss was given.
 
12653
if test "${enable_libdvdcss+set}" = set; then :
 
12654
  enableval=$enable_libdvdcss; 
 
12655
fi
 
12656
 
 
12657
 
 
12658
@%:@ Check whether --enable-dlfcn was given.
 
12659
if test "${enable_dlfcn+set}" = set; then :
 
12660
  enableval=$enable_dlfcn; use_builtin_dlfcn=$enableval
 
12661
else
 
12662
  use_builtin_dlfcn=no
 
12663
fi
 
12664
 
 
12665
 
 
12666
if [ $use_builtin_dlfcn = "yes" ]; then
 
12667
        
 
12668
$as_echo "@%:@define USING_BUILTIN_DLFCN 1" >>confdefs.h
 
12669
 
 
12670
fi
 
12671
 
 
12672
CSS_LIBS=""
 
12673
if test x"$enable_libdvdcss" != xyes; then
 
12674
case $host in
 
12675
  *mingw32*)
 
12676
    if [ $use_builtin_dlfcn = "no" ]; then
 
12677
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
 
12678
$as_echo_n "checking for dlopen in -lc... " >&6; }
 
12679
if ${ac_cv_lib_c_dlopen+:} false; then :
 
12680
  $as_echo_n "(cached) " >&6
 
12681
else
 
12682
  ac_check_lib_save_LIBS=$LIBS
 
12683
LIBS="-lc  $LIBS"
 
12684
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12685
/* end confdefs.h.  */
 
12686
 
 
12687
/* Override any GCC internal prototype to avoid an error.
 
12688
   Use char because int might match the return type of a GCC
 
12689
   builtin and then its argument prototype would still apply.  */
 
12690
#ifdef __cplusplus
 
12691
extern "C"
 
12692
#endif
 
12693
char dlopen ();
 
12694
int
 
12695
main ()
 
12696
{
 
12697
return dlopen ();
 
12698
  ;
 
12699
  return 0;
 
12700
}
 
12701
_ACEOF
 
12702
if ac_fn_c_try_link "$LINENO"; then :
 
12703
  ac_cv_lib_c_dlopen=yes
 
12704
else
 
12705
  ac_cv_lib_c_dlopen=no
 
12706
fi
 
12707
rm -f core conftest.err conftest.$ac_objext \
 
12708
    conftest$ac_exeext conftest.$ac_ext
 
12709
LIBS=$ac_check_lib_save_LIBS
 
12710
fi
 
12711
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
 
12712
$as_echo "$ac_cv_lib_c_dlopen" >&6; }
 
12713
if test "x$ac_cv_lib_c_dlopen" = xyes; then :
 
12714
  DYNAMIC_LD_LIBS=""
 
12715
else
 
12716
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
 
12717
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
12718
if ${ac_cv_lib_dl_dlopen+:} false; then :
 
12719
  $as_echo_n "(cached) " >&6
 
12720
else
 
12721
  ac_check_lib_save_LIBS=$LIBS
 
12722
LIBS="-ldl  $LIBS"
 
12723
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12724
/* end confdefs.h.  */
 
12725
 
 
12726
/* Override any GCC internal prototype to avoid an error.
 
12727
   Use char because int might match the return type of a GCC
 
12728
   builtin and then its argument prototype would still apply.  */
 
12729
#ifdef __cplusplus
 
12730
extern "C"
 
12731
#endif
 
12732
char dlopen ();
 
12733
int
 
12734
main ()
 
12735
{
 
12736
return dlopen ();
 
12737
  ;
 
12738
  return 0;
 
12739
}
 
12740
_ACEOF
 
12741
if ac_fn_c_try_link "$LINENO"; then :
 
12742
  ac_cv_lib_dl_dlopen=yes
 
12743
else
 
12744
  ac_cv_lib_dl_dlopen=no
 
12745
fi
 
12746
rm -f core conftest.err conftest.$ac_objext \
 
12747
    conftest$ac_exeext conftest.$ac_ext
 
12748
LIBS=$ac_check_lib_save_LIBS
 
12749
fi
 
12750
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
 
12751
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
12752
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
 
12753
  DYNAMIC_LD_LIBS="-ldl"
 
12754
else
 
12755
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Using builtin dlopen" >&5
 
12756
$as_echo "$as_me: WARNING: Using builtin dlopen" >&2;}
 
12757
fi
 
12758
 
 
12759
fi
 
12760
 
 
12761
        
 
12762
    fi
 
12763
    LDFLAGS="-no-undefined $LDFLAGS"
 
12764
    ;;
 
12765
  *cygwin*)
 
12766
    LDFLAGS="-no-undefined $LDFLAGS"
 
12767
    ;;
 
12768
  *os2*)
 
12769
    LDFLAGS="-no-undefined -Zbin-files $LDFLAGS"
 
12770
    ;;
 
12771
  *)
 
12772
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
 
12773
$as_echo_n "checking for dlopen in -lc... " >&6; }
 
12774
if ${ac_cv_lib_c_dlopen+:} false; then :
 
12775
  $as_echo_n "(cached) " >&6
 
12776
else
 
12777
  ac_check_lib_save_LIBS=$LIBS
 
12778
LIBS="-lc  $LIBS"
 
12779
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12780
/* end confdefs.h.  */
 
12781
 
 
12782
/* Override any GCC internal prototype to avoid an error.
 
12783
   Use char because int might match the return type of a GCC
 
12784
   builtin and then its argument prototype would still apply.  */
 
12785
#ifdef __cplusplus
 
12786
extern "C"
 
12787
#endif
 
12788
char dlopen ();
 
12789
int
 
12790
main ()
 
12791
{
 
12792
return dlopen ();
 
12793
  ;
 
12794
  return 0;
 
12795
}
 
12796
_ACEOF
 
12797
if ac_fn_c_try_link "$LINENO"; then :
 
12798
  ac_cv_lib_c_dlopen=yes
 
12799
else
 
12800
  ac_cv_lib_c_dlopen=no
 
12801
fi
 
12802
rm -f core conftest.err conftest.$ac_objext \
 
12803
    conftest$ac_exeext conftest.$ac_ext
 
12804
LIBS=$ac_check_lib_save_LIBS
 
12805
fi
 
12806
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
 
12807
$as_echo "$ac_cv_lib_c_dlopen" >&6; }
 
12808
if test "x$ac_cv_lib_c_dlopen" = xyes; then :
 
12809
  DYNAMIC_LD_LIBS=""
 
12810
else
 
12811
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
 
12812
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
12813
if ${ac_cv_lib_dl_dlopen+:} false; then :
 
12814
  $as_echo_n "(cached) " >&6
 
12815
else
 
12816
  ac_check_lib_save_LIBS=$LIBS
 
12817
LIBS="-ldl  $LIBS"
 
12818
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12819
/* end confdefs.h.  */
 
12820
 
 
12821
/* Override any GCC internal prototype to avoid an error.
 
12822
   Use char because int might match the return type of a GCC
 
12823
   builtin and then its argument prototype would still apply.  */
 
12824
#ifdef __cplusplus
 
12825
extern "C"
 
12826
#endif
 
12827
char dlopen ();
 
12828
int
 
12829
main ()
 
12830
{
 
12831
return dlopen ();
 
12832
  ;
 
12833
  return 0;
 
12834
}
 
12835
_ACEOF
 
12836
if ac_fn_c_try_link "$LINENO"; then :
 
12837
  ac_cv_lib_dl_dlopen=yes
 
12838
else
 
12839
  ac_cv_lib_dl_dlopen=no
 
12840
fi
 
12841
rm -f core conftest.err conftest.$ac_objext \
 
12842
    conftest$ac_exeext conftest.$ac_ext
 
12843
LIBS=$ac_check_lib_save_LIBS
 
12844
fi
 
12845
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
 
12846
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
12847
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
 
12848
  DYNAMIC_LD_LIBS="-ldl"
 
12849
else
 
12850
  as_fn_error $? "dynamic linker needed" "$LINENO" 5
 
12851
fi
 
12852
 
 
12853
fi
 
12854
 
 
12855
    
 
12856
    ;;
 
12857
esac
 
12858
else
 
12859
  CSS_LIBS=-ldvdcss
 
12860
  case "${host}" in
 
12861
    *darwin*) CSS_LIBS="${CSS_LIBS} -Wl,-framework,CoreFoundation -Wl,-framework,IOKit"
 
12862
    ;;
 
12863
  esac
 
12864
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dvdcss_interface_2 in -ldvdcss" >&5
 
12865
$as_echo_n "checking for dvdcss_interface_2 in -ldvdcss... " >&6; }
 
12866
if ${ac_cv_lib_dvdcss_dvdcss_interface_2+:} false; then :
 
12867
  $as_echo_n "(cached) " >&6
 
12868
else
 
12869
  ac_check_lib_save_LIBS=$LIBS
 
12870
LIBS="-ldvdcss  $LIBS"
 
12871
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12872
/* end confdefs.h.  */
 
12873
 
 
12874
/* Override any GCC internal prototype to avoid an error.
 
12875
   Use char because int might match the return type of a GCC
 
12876
   builtin and then its argument prototype would still apply.  */
 
12877
#ifdef __cplusplus
 
12878
extern "C"
 
12879
#endif
 
12880
char dvdcss_interface_2 ();
 
12881
int
 
12882
main ()
 
12883
{
 
12884
return dvdcss_interface_2 ();
 
12885
  ;
 
12886
  return 0;
 
12887
}
 
12888
_ACEOF
 
12889
if ac_fn_c_try_link "$LINENO"; then :
 
12890
  ac_cv_lib_dvdcss_dvdcss_interface_2=yes
 
12891
else
 
12892
  ac_cv_lib_dvdcss_dvdcss_interface_2=no
 
12893
fi
 
12894
rm -f core conftest.err conftest.$ac_objext \
 
12895
    conftest$ac_exeext conftest.$ac_ext
 
12896
LIBS=$ac_check_lib_save_LIBS
 
12897
fi
 
12898
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dvdcss_dvdcss_interface_2" >&5
 
12899
$as_echo "$ac_cv_lib_dvdcss_dvdcss_interface_2" >&6; }
 
12900
if test "x$ac_cv_lib_dvdcss_dvdcss_interface_2" = xyes; then :
 
12901
  cat >>confdefs.h <<_ACEOF
 
12902
@%:@define HAVE_LIBDVDCSS 1
 
12903
_ACEOF
 
12904
 
 
12905
  LIBS="-ldvdcss $LIBS"
 
12906
 
 
12907
else
 
12908
  as_fn_error $? "You need libdvdcss.so.2 or later" "$LINENO" 5
 
12909
fi
 
12910
 
 
12911
  for ac_header in dvdcss/dvdcss.h
 
12912
do :
 
12913
  ac_fn_c_check_header_mongrel "$LINENO" "dvdcss/dvdcss.h" "ac_cv_header_dvdcss_dvdcss_h" "$ac_includes_default"
 
12914
if test "x$ac_cv_header_dvdcss_dvdcss_h" = xyes; then :
 
12915
  cat >>confdefs.h <<_ACEOF
 
12916
@%:@define HAVE_DVDCSS_DVDCSS_H 1
 
12917
_ACEOF
 
12918
 
 
12919
else
 
12920
  as_fn_error $? "You need libdvdcss (dvdcss.h)" "$LINENO" 5
 
12921
fi
 
12922
 
 
12923
done
 
12924
 
 
12925
fi
 
12926
 
 
12927
 
 
12928
 
 
12929
 
 
12930
CFLAGS="-O3 -Wall -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE $CFLAGS"
 
12931
DEBUG_CFLAGS="-g -DDEBUG $CFLAGS"
 
12932
 
 
12933
 
 
12934
 
 
12935
# Extract the first word of "doxygen", so it can be a program name with args.
 
12936
set dummy doxygen; ac_word=$2
 
12937
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
12938
$as_echo_n "checking for $ac_word... " >&6; }
 
12939
if ${ac_cv_prog_DOXYGEN+:} false; then :
 
12940
  $as_echo_n "(cached) " >&6
 
12941
else
 
12942
  if test -n "$DOXYGEN"; then
 
12943
  ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
 
12944
else
 
12945
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12946
for as_dir in $PATH
 
12947
do
 
12948
  IFS=$as_save_IFS
 
12949
  test -z "$as_dir" && as_dir=.
 
12950
    for ac_exec_ext in '' $ac_executable_extensions; do
 
12951
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
12952
    ac_cv_prog_DOXYGEN="doxygen"
 
12953
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
12954
    break 2
 
12955
  fi
 
12956
done
 
12957
  done
 
12958
IFS=$as_save_IFS
 
12959
 
 
12960
  test -z "$ac_cv_prog_DOXYGEN" && ac_cv_prog_DOXYGEN="no"
 
12961
fi
 
12962
fi
 
12963
DOXYGEN=$ac_cv_prog_DOXYGEN
 
12964
if test -n "$DOXYGEN"; then
 
12965
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
 
12966
$as_echo "$DOXYGEN" >&6; }
 
12967
else
 
12968
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12969
$as_echo "no" >&6; }
 
12970
fi
 
12971
 
 
12972
 
 
12973
 
 
12974
INCLUDES='-I$(top_srcdir) $(DVDREAD_CFLAGS)'
 
12975
 
 
12976
 
 
12977
ac_config_files="$ac_config_files Makefile src/Makefile misc/Makefile misc/dvdread-config misc/dvdread.pc misc/libdvdread.spec misc/relchk.sh m4/Makefile"
 
12978
 
 
12979
cat >confcache <<\_ACEOF
 
12980
# This file is a shell script that caches the results of configure
 
12981
# tests run on this system so they can be shared between configure
 
12982
# scripts and configure runs, see configure's option --config-cache.
 
12983
# It is not useful on other systems.  If it contains results you don't
 
12984
# want to keep, you may remove or edit it.
 
12985
#
 
12986
# config.status only pays attention to the cache file if you give it
 
12987
# the --recheck option to rerun configure.
 
12988
#
 
12989
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
12990
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
12991
# following values.
 
12992
 
 
12993
_ACEOF
 
12994
 
 
12995
# The following way of writing the cache mishandles newlines in values,
 
12996
# but we know of no workaround that is simple, portable, and efficient.
 
12997
# So, we kill variables containing newlines.
 
12998
# Ultrix sh set writes to stderr and can't be redirected directly,
 
12999
# and sets the high bit in the cache file unless we assign to the vars.
 
13000
(
 
13001
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 
13002
    eval ac_val=\$$ac_var
 
13003
    case $ac_val in #(
 
13004
    *${as_nl}*)
 
13005
      case $ac_var in #(
 
13006
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
13007
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
13008
      esac
 
13009
      case $ac_var in #(
 
13010
      _ | IFS | as_nl) ;; #(
 
13011
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
13012
      *) { eval $ac_var=; unset $ac_var;} ;;
 
13013
      esac ;;
 
13014
    esac
 
13015
  done
 
13016
 
 
13017
  (set) 2>&1 |
 
13018
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 
13019
    *${as_nl}ac_space=\ *)
 
13020
      # `set' does not quote correctly, so add quotes: double-quote
 
13021
      # substitution turns \\\\ into \\, and sed turns \\ into \.
 
13022
      sed -n \
 
13023
        "s/'/'\\\\''/g;
 
13024
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
13025
      ;; #(
 
13026
    *)
 
13027
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
13028
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
13029
      ;;
 
13030
    esac |
 
13031
    sort
 
13032
) |
 
13033
  sed '
 
13034
     /^ac_cv_env_/b end
 
13035
     t clear
 
13036
     :clear
 
13037
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
13038
     t end
 
13039
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
13040
     :end' >>confcache
 
13041
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 
13042
  if test -w "$cache_file"; then
 
13043
    if test "x$cache_file" != "x/dev/null"; then
 
13044
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
 
13045
$as_echo "$as_me: updating cache $cache_file" >&6;}
 
13046
      if test ! -f "$cache_file" || test -h "$cache_file"; then
 
13047
        cat confcache >"$cache_file"
 
13048
      else
 
13049
        case $cache_file in #(
 
13050
        */* | ?:*)
 
13051
          mv -f confcache "$cache_file"$$ &&
 
13052
          mv -f "$cache_file"$$ "$cache_file" ;; #(
 
13053
        *)
 
13054
          mv -f confcache "$cache_file" ;;
 
13055
        esac
 
13056
      fi
 
13057
    fi
 
13058
  else
 
13059
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
 
13060
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 
13061
  fi
 
13062
fi
 
13063
rm -f confcache
 
13064
 
 
13065
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
13066
# Let make expand exec_prefix.
 
13067
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
13068
 
 
13069
DEFS=-DHAVE_CONFIG_H
 
13070
 
 
13071
ac_libobjs=
 
13072
ac_ltlibobjs=
 
13073
U=
 
13074
for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
 
13075
  # 1. Remove the extension, and $U if already installed.
 
13076
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 
13077
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
 
13078
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 
13079
  #    will be set to the directory where LIBOBJS objects are built.
 
13080
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
13081
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
 
13082
done
 
13083
LIB@&t@OBJS=$ac_libobjs
 
13084
 
 
13085
LTLIBOBJS=$ac_ltlibobjs
 
13086
 
 
13087
 
 
13088
 if test -n "$EXEEXT"; then
 
13089
  am__EXEEXT_TRUE=
 
13090
  am__EXEEXT_FALSE='#'
 
13091
else
 
13092
  am__EXEEXT_TRUE='#'
 
13093
  am__EXEEXT_FALSE=
 
13094
fi
 
13095
 
 
13096
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
13097
  as_fn_error $? "conditional \"AMDEP\" was never defined.
 
13098
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
13099
fi
 
13100
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
13101
  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
 
13102
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
13103
fi
 
13104
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
13105
  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
 
13106
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
13107
fi
 
13108
 
 
13109
 
 
13110
: "${CONFIG_STATUS=./config.status}"
 
13111
ac_write_fail=0
 
13112
ac_clean_files_save=$ac_clean_files
 
13113
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
13114
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
 
13115
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
13116
as_write_fail=0
 
13117
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
 
13118
#! $SHELL
 
13119
# Generated by $as_me.
 
13120
# Run this file to recreate the current configuration.
 
13121
# Compiler output produced by configure, useful for debugging
 
13122
# configure, is in config.log if it exists.
 
13123
 
 
13124
debug=false
 
13125
ac_cs_recheck=false
 
13126
ac_cs_silent=false
 
13127
 
 
13128
SHELL=\${CONFIG_SHELL-$SHELL}
 
13129
export SHELL
 
13130
_ASEOF
 
13131
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
 
13132
## -------------------- ##
 
13133
## M4sh Initialization. ##
 
13134
## -------------------- ##
 
13135
 
 
13136
# Be more Bourne compatible
 
13137
DUALCASE=1; export DUALCASE # for MKS sh
 
13138
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
 
13139
  emulate sh
 
13140
  NULLCMD=:
 
13141
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
13142
  # is contrary to our usage.  Disable this feature.
 
13143
  alias -g '${1+"$@"}'='"$@"'
 
13144
  setopt NO_GLOB_SUBST
 
13145
else
 
13146
  case `(set -o) 2>/dev/null` in @%:@(
 
13147
  *posix*) :
 
13148
    set -o posix ;; @%:@(
 
13149
  *) :
 
13150
     ;;
 
13151
esac
 
13152
fi
 
13153
 
 
13154
 
 
13155
as_nl='
 
13156
'
 
13157
export as_nl
 
13158
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
13159
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
13160
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
13161
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
13162
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
13163
# but without wasting forks for bash or zsh.
 
13164
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
13165
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
13166
  as_echo='print -r --'
 
13167
  as_echo_n='print -rn --'
 
13168
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
13169
  as_echo='printf %s\n'
 
13170
  as_echo_n='printf %s'
 
13171
else
 
13172
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
13173
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
13174
    as_echo_n='/usr/ucb/echo -n'
 
13175
  else
 
13176
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
13177
    as_echo_n_body='eval
 
13178
      arg=$1;
 
13179
      case $arg in @%:@(
 
13180
      *"$as_nl"*)
 
13181
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
13182
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
13183
      esac;
 
13184
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
13185
    '
 
13186
    export as_echo_n_body
 
13187
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
13188
  fi
 
13189
  export as_echo_body
 
13190
  as_echo='sh -c $as_echo_body as_echo'
 
13191
fi
 
13192
 
 
13193
# The user is always right.
 
13194
if test "${PATH_SEPARATOR+set}" != set; then
 
13195
  PATH_SEPARATOR=:
 
13196
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
13197
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
13198
      PATH_SEPARATOR=';'
 
13199
  }
 
13200
fi
 
13201
 
 
13202
 
 
13203
# IFS
 
13204
# We need space, tab and new line, in precisely that order.  Quoting is
 
13205
# there to prevent editors from complaining about space-tab.
 
13206
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
13207
# splitting by setting IFS to empty value.)
 
13208
IFS=" ""        $as_nl"
 
13209
 
 
13210
# Find who we are.  Look in the path if we contain no directory separator.
 
13211
as_myself=
 
13212
case $0 in @%:@((
 
13213
  *[\\/]* ) as_myself=$0 ;;
 
13214
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
13215
for as_dir in $PATH
 
13216
do
 
13217
  IFS=$as_save_IFS
 
13218
  test -z "$as_dir" && as_dir=.
 
13219
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
13220
  done
 
13221
IFS=$as_save_IFS
 
13222
 
 
13223
     ;;
 
13224
esac
 
13225
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
13226
# in which case we are not to be found in the path.
 
13227
if test "x$as_myself" = x; then
 
13228
  as_myself=$0
 
13229
fi
 
13230
if test ! -f "$as_myself"; then
 
13231
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
13232
  exit 1
 
13233
fi
 
13234
 
 
13235
# Unset variables that we do not need and which cause bugs (e.g. in
 
13236
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
13237
# suppresses any "Segmentation fault" message there.  '((' could
 
13238
# trigger a bug in pdksh 5.2.14.
 
13239
for as_var in BASH_ENV ENV MAIL MAILPATH
 
13240
do eval test x\${$as_var+set} = xset \
 
13241
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 
13242
done
 
13243
PS1='$ '
 
13244
PS2='> '
 
13245
PS4='+ '
 
13246
 
 
13247
# NLS nuisances.
 
13248
LC_ALL=C
 
13249
export LC_ALL
 
13250
LANGUAGE=C
 
13251
export LANGUAGE
 
13252
 
 
13253
# CDPATH.
 
13254
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
13255
 
 
13256
 
 
13257
@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
 
13258
@%:@ ----------------------------------------
 
13259
@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
13260
@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
13261
@%:@ script with STATUS, using 1 if that was 0.
 
13262
as_fn_error ()
 
13263
{
 
13264
  as_status=$1; test $as_status -eq 0 && as_status=1
 
13265
  if test "$4"; then
 
13266
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
13267
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 
13268
  fi
 
13269
  $as_echo "$as_me: error: $2" >&2
 
13270
  as_fn_exit $as_status
 
13271
} @%:@ as_fn_error
 
13272
 
 
13273
 
 
13274
@%:@ as_fn_set_status STATUS
 
13275
@%:@ -----------------------
 
13276
@%:@ Set @S|@? to STATUS, without forking.
 
13277
as_fn_set_status ()
 
13278
{
 
13279
  return $1
 
13280
} @%:@ as_fn_set_status
 
13281
 
 
13282
@%:@ as_fn_exit STATUS
 
13283
@%:@ -----------------
 
13284
@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
13285
as_fn_exit ()
 
13286
{
 
13287
  set +e
 
13288
  as_fn_set_status $1
 
13289
  exit $1
 
13290
} @%:@ as_fn_exit
 
13291
 
 
13292
@%:@ as_fn_unset VAR
 
13293
@%:@ ---------------
 
13294
@%:@ Portably unset VAR.
 
13295
as_fn_unset ()
 
13296
{
 
13297
  { eval $1=; unset $1;}
 
13298
}
 
13299
as_unset=as_fn_unset
 
13300
@%:@ as_fn_append VAR VALUE
 
13301
@%:@ ----------------------
 
13302
@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
 
13303
@%:@ advantage of any shell optimizations that allow amortized linear growth over
 
13304
@%:@ repeated appends, instead of the typical quadratic growth present in naive
 
13305
@%:@ implementations.
 
13306
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
13307
  eval 'as_fn_append ()
 
13308
  {
 
13309
    eval $1+=\$2
 
13310
  }'
 
13311
else
 
13312
  as_fn_append ()
 
13313
  {
 
13314
    eval $1=\$$1\$2
 
13315
  }
 
13316
fi # as_fn_append
 
13317
 
 
13318
@%:@ as_fn_arith ARG...
 
13319
@%:@ ------------------
 
13320
@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
 
13321
@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
 
13322
@%:@ must be portable across @S|@(()) and expr.
 
13323
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
13324
  eval 'as_fn_arith ()
 
13325
  {
 
13326
    as_val=$(( $* ))
 
13327
  }'
 
13328
else
 
13329
  as_fn_arith ()
 
13330
  {
 
13331
    as_val=`expr "$@" || test $? -eq 1`
 
13332
  }
 
13333
fi # as_fn_arith
 
13334
 
 
13335
 
 
13336
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
13337
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
13338
  as_expr=expr
 
13339
else
 
13340
  as_expr=false
 
13341
fi
 
13342
 
 
13343
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
13344
  as_basename=basename
 
13345
else
 
13346
  as_basename=false
 
13347
fi
 
13348
 
 
13349
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
13350
  as_dirname=dirname
 
13351
else
 
13352
  as_dirname=false
 
13353
fi
 
13354
 
 
13355
as_me=`$as_basename -- "$0" ||
 
13356
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
13357
         X"$0" : 'X\(//\)$' \| \
 
13358
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
13359
$as_echo X/"$0" |
 
13360
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
13361
            s//\1/
 
13362
            q
 
13363
          }
 
13364
          /^X\/\(\/\/\)$/{
 
13365
            s//\1/
 
13366
            q
 
13367
          }
 
13368
          /^X\/\(\/\).*/{
 
13369
            s//\1/
 
13370
            q
 
13371
          }
 
13372
          s/.*/./; q'`
 
13373
 
 
13374
# Avoid depending upon Character Ranges.
 
13375
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
13376
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
13377
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
13378
as_cr_digits='0123456789'
 
13379
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
13380
 
 
13381
ECHO_C= ECHO_N= ECHO_T=
 
13382
case `echo -n x` in @%:@(((((
 
13383
-n*)
 
13384
  case `echo 'xy\c'` in
 
13385
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
13386
  xy)  ECHO_C='\c';;
 
13387
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
13388
       ECHO_T=' ';;
 
13389
  esac;;
 
13390
*)
 
13391
  ECHO_N='-n';;
 
13392
esac
 
13393
 
 
13394
rm -f conf$$ conf$$.exe conf$$.file
 
13395
if test -d conf$$.dir; then
 
13396
  rm -f conf$$.dir/conf$$.file
 
13397
else
 
13398
  rm -f conf$$.dir
 
13399
  mkdir conf$$.dir 2>/dev/null
 
13400
fi
 
13401
if (echo >conf$$.file) 2>/dev/null; then
 
13402
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
13403
    as_ln_s='ln -s'
 
13404
    # ... but there are two gotchas:
 
13405
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
13406
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
13407
    # In both cases, we have to default to `cp -pR'.
 
13408
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
13409
      as_ln_s='cp -pR'
 
13410
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
13411
    as_ln_s=ln
 
13412
  else
 
13413
    as_ln_s='cp -pR'
 
13414
  fi
 
13415
else
 
13416
  as_ln_s='cp -pR'
 
13417
fi
 
13418
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
13419
rmdir conf$$.dir 2>/dev/null
 
13420
 
 
13421
 
 
13422
@%:@ as_fn_mkdir_p
 
13423
@%:@ -------------
 
13424
@%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
 
13425
as_fn_mkdir_p ()
 
13426
{
 
13427
 
 
13428
  case $as_dir in #(
 
13429
  -*) as_dir=./$as_dir;;
 
13430
  esac
 
13431
  test -d "$as_dir" || eval $as_mkdir_p || {
 
13432
    as_dirs=
 
13433
    while :; do
 
13434
      case $as_dir in #(
 
13435
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
13436
      *) as_qdir=$as_dir;;
 
13437
      esac
 
13438
      as_dirs="'$as_qdir' $as_dirs"
 
13439
      as_dir=`$as_dirname -- "$as_dir" ||
 
13440
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
13441
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
13442
         X"$as_dir" : 'X\(//\)$' \| \
 
13443
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
13444
$as_echo X"$as_dir" |
 
13445
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
13446
            s//\1/
 
13447
            q
 
13448
          }
 
13449
          /^X\(\/\/\)[^/].*/{
 
13450
            s//\1/
 
13451
            q
 
13452
          }
 
13453
          /^X\(\/\/\)$/{
 
13454
            s//\1/
 
13455
            q
 
13456
          }
 
13457
          /^X\(\/\).*/{
 
13458
            s//\1/
 
13459
            q
 
13460
          }
 
13461
          s/.*/./; q'`
 
13462
      test -d "$as_dir" && break
 
13463
    done
 
13464
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
13465
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 
13466
 
 
13467
 
 
13468
} @%:@ as_fn_mkdir_p
 
13469
if mkdir -p . 2>/dev/null; then
 
13470
  as_mkdir_p='mkdir -p "$as_dir"'
 
13471
else
 
13472
  test -d ./-p && rmdir ./-p
 
13473
  as_mkdir_p=false
 
13474
fi
 
13475
 
 
13476
 
 
13477
@%:@ as_fn_executable_p FILE
 
13478
@%:@ -----------------------
 
13479
@%:@ Test if FILE is an executable regular file.
 
13480
as_fn_executable_p ()
 
13481
{
 
13482
  test -f "$1" && test -x "$1"
 
13483
} @%:@ as_fn_executable_p
 
13484
as_test_x='test -x'
 
13485
as_executable_p=as_fn_executable_p
 
13486
 
 
13487
# Sed expression to map a string onto a valid CPP name.
 
13488
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
13489
 
 
13490
# Sed expression to map a string onto a valid variable name.
 
13491
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
13492
 
 
13493
 
 
13494
exec 6>&1
 
13495
## ----------------------------------- ##
 
13496
## Main body of $CONFIG_STATUS script. ##
 
13497
## ----------------------------------- ##
 
13498
_ASEOF
 
13499
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
 
13500
 
 
13501
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
13502
# Save the log message, to keep $0 and so on meaningful, and to
 
13503
# report actual input values of CONFIG_FILES etc. instead of their
 
13504
# values after options handling.
 
13505
ac_log="
 
13506
This file was extended by libdvdread $as_me 4.2.0, which was
 
13507
generated by GNU Autoconf 2.69.  Invocation command line was
 
13508
 
 
13509
  CONFIG_FILES    = $CONFIG_FILES
 
13510
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
13511
  CONFIG_LINKS    = $CONFIG_LINKS
 
13512
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
13513
  $ $0 $@
 
13514
 
 
13515
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
13516
"
 
13517
 
 
13518
_ACEOF
 
13519
 
 
13520
case $ac_config_files in *"
 
13521
"*) set x $ac_config_files; shift; ac_config_files=$*;;
 
13522
esac
 
13523
 
 
13524
case $ac_config_headers in *"
 
13525
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
 
13526
esac
 
13527
 
 
13528
 
 
13529
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
13530
# Files that config.status was made for.
 
13531
config_files="$ac_config_files"
 
13532
config_headers="$ac_config_headers"
 
13533
config_commands="$ac_config_commands"
 
13534
 
 
13535
_ACEOF
 
13536
 
 
13537
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
13538
ac_cs_usage="\
 
13539
\`$as_me' instantiates files and other configuration actions
 
13540
from templates according to the current configuration.  Unless the files
 
13541
and actions are specified as TAGs, all are instantiated by default.
 
13542
 
 
13543
Usage: $0 [OPTION]... [TAG]...
 
13544
 
 
13545
  -h, --help       print this help, then exit
 
13546
  -V, --version    print version number and configuration settings, then exit
 
13547
      --config     print configuration, then exit
 
13548
  -q, --quiet, --silent
 
13549
                   do not print progress messages
 
13550
  -d, --debug      don't remove temporary files
 
13551
      --recheck    update $as_me by reconfiguring in the same conditions
 
13552
      --file=FILE[:TEMPLATE] 
 
13553
                   instantiate the configuration file FILE
 
13554
      --header=FILE[:TEMPLATE] 
 
13555
                   instantiate the configuration header FILE
 
13556
 
 
13557
Configuration files:
 
13558
$config_files
 
13559
 
 
13560
Configuration headers:
 
13561
$config_headers
 
13562
 
 
13563
Configuration commands:
 
13564
$config_commands
 
13565
 
 
13566
Report bugs to the package provider."
 
13567
 
 
13568
_ACEOF
 
13569
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
13570
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
 
13571
ac_cs_version="\\
 
13572
libdvdread config.status 4.2.0
 
13573
configured by $0, generated by GNU Autoconf 2.69,
 
13574
  with options \\"\$ac_cs_config\\"
 
13575
 
 
13576
Copyright (C) 2012 Free Software Foundation, Inc.
 
13577
This config.status script is free software; the Free Software Foundation
 
13578
gives unlimited permission to copy, distribute and modify it."
 
13579
 
 
13580
ac_pwd='$ac_pwd'
 
13581
srcdir='$srcdir'
 
13582
INSTALL='$INSTALL'
 
13583
MKDIR_P='$MKDIR_P'
 
13584
AWK='$AWK'
 
13585
test -n "\$AWK" || AWK=awk
 
13586
_ACEOF
 
13587
 
 
13588
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
13589
# The default lists apply if the user does not specify any file.
 
13590
ac_need_defaults=:
 
13591
while test $# != 0
 
13592
do
 
13593
  case $1 in
 
13594
  --*=?*)
 
13595
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
13596
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 
13597
    ac_shift=:
 
13598
    ;;
 
13599
  --*=)
 
13600
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
13601
    ac_optarg=
 
13602
    ac_shift=:
 
13603
    ;;
 
13604
  *)
 
13605
    ac_option=$1
 
13606
    ac_optarg=$2
 
13607
    ac_shift=shift
 
13608
    ;;
 
13609
  esac
 
13610
 
 
13611
  case $ac_option in
 
13612
  # Handling of the options.
 
13613
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
13614
    ac_cs_recheck=: ;;
 
13615
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 
13616
    $as_echo "$ac_cs_version"; exit ;;
 
13617
  --config | --confi | --conf | --con | --co | --c )
 
13618
    $as_echo "$ac_cs_config"; exit ;;
 
13619
  --debug | --debu | --deb | --de | --d | -d )
 
13620
    debug=: ;;
 
13621
  --file | --fil | --fi | --f )
 
13622
    $ac_shift
 
13623
    case $ac_optarg in
 
13624
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
13625
    '') as_fn_error $? "missing file argument" ;;
 
13626
    esac
 
13627
    as_fn_append CONFIG_FILES " '$ac_optarg'"
 
13628
    ac_need_defaults=false;;
 
13629
  --header | --heade | --head | --hea )
 
13630
    $ac_shift
 
13631
    case $ac_optarg in
 
13632
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
13633
    esac
 
13634
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
 
13635
    ac_need_defaults=false;;
 
13636
  --he | --h)
 
13637
    # Conflict between --help and --header
 
13638
    as_fn_error $? "ambiguous option: \`$1'
 
13639
Try \`$0 --help' for more information.";;
 
13640
  --help | --hel | -h )
 
13641
    $as_echo "$ac_cs_usage"; exit ;;
 
13642
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
13643
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
13644
    ac_cs_silent=: ;;
 
13645
 
 
13646
  # This is an error.
 
13647
  -*) as_fn_error $? "unrecognized option: \`$1'
 
13648
Try \`$0 --help' for more information." ;;
 
13649
 
 
13650
  *) as_fn_append ac_config_targets " $1"
 
13651
     ac_need_defaults=false ;;
 
13652
 
 
13653
  esac
 
13654
  shift
 
13655
done
 
13656
 
 
13657
ac_configure_extra_args=
 
13658
 
 
13659
if $ac_cs_silent; then
 
13660
  exec 6>/dev/null
 
13661
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
13662
fi
 
13663
 
 
13664
_ACEOF
 
13665
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
13666
if \$ac_cs_recheck; then
 
13667
  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
13668
  shift
 
13669
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
 
13670
  CONFIG_SHELL='$SHELL'
 
13671
  export CONFIG_SHELL
 
13672
  exec "\$@"
 
13673
fi
 
13674
 
 
13675
_ACEOF
 
13676
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
13677
exec 5>>config.log
 
13678
{
 
13679
  echo
 
13680
  sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
 
13681
@%:@@%:@ Running $as_me. @%:@@%:@
 
13682
_ASBOX
 
13683
  $as_echo "$ac_log"
 
13684
} >&5
 
13685
 
 
13686
_ACEOF
 
13687
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
13688
#
 
13689
# INIT-COMMANDS
 
13690
#
 
13691
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
13692
 
 
13693
 
 
13694
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
13695
# if CDPATH is set.
 
13696
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
13697
 
 
13698
sed_quote_subst='$sed_quote_subst'
 
13699
double_quote_subst='$double_quote_subst'
 
13700
delay_variable_subst='$delay_variable_subst'
 
13701
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
 
13702
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
 
13703
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
 
13704
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
 
13705
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
 
13706
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
 
13707
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
 
13708
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
 
13709
PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
 
13710
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
 
13711
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
 
13712
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
 
13713
build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
 
13714
build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
 
13715
build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
 
13716
SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
 
13717
Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
 
13718
GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
 
13719
EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
 
13720
FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
 
13721
LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
 
13722
NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
 
13723
LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
 
13724
max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
 
13725
ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
 
13726
exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
 
13727
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
 
13728
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
 
13729
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
 
13730
lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
 
13731
lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
 
13732
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
 
13733
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
 
13734
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
 
13735
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
 
13736
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
 
13737
file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
 
13738
want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
 
13739
DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
 
13740
sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
 
13741
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
 
13742
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
 
13743
archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
 
13744
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
 
13745
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
 
13746
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
 
13747
old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
 
13748
old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
 
13749
lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
 
13750
CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
 
13751
CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
 
13752
compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
 
13753
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
 
13754
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
 
13755
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
 
13756
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
 
13757
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"`'
 
13758
nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
 
13759
lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
 
13760
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
 
13761
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
 
13762
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
 
13763
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
 
13764
lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
 
13765
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
 
13766
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
 
13767
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
 
13768
MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
 
13769
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
 
13770
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
 
13771
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
 
13772
OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
 
13773
OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
 
13774
libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
 
13775
shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
 
13776
extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
 
13777
archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
 
13778
enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
 
13779
export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
 
13780
whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
 
13781
compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
 
13782
old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
 
13783
old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
 
13784
archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
 
13785
archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
 
13786
module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
 
13787
module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
 
13788
with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
 
13789
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
 
13790
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
 
13791
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
 
13792
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
 
13793
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
 
13794
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
 
13795
hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
 
13796
hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
 
13797
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
 
13798
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
 
13799
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
 
13800
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
 
13801
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
 
13802
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
 
13803
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
 
13804
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
 
13805
postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
 
13806
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
 
13807
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
 
13808
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
 
13809
need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
 
13810
version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
 
13811
runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
 
13812
shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
 
13813
shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
 
13814
libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
 
13815
library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
 
13816
soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
 
13817
install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
 
13818
postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
 
13819
postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
 
13820
finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
 
13821
finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
 
13822
hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
 
13823
sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
 
13824
sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
 
13825
hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
 
13826
enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
 
13827
enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
 
13828
enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
 
13829
old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
 
13830
striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
 
13831
 
 
13832
LTCC='$LTCC'
 
13833
LTCFLAGS='$LTCFLAGS'
 
13834
compiler='$compiler_DEFAULT'
 
13835
 
 
13836
# A function that is used when there is no print builtin or printf.
 
13837
func_fallback_echo ()
 
13838
{
 
13839
  eval 'cat <<_LTECHO_EOF
 
13840
\$1
 
13841
_LTECHO_EOF'
 
13842
}
 
13843
 
 
13844
# Quote evaled strings.
 
13845
for var in SHELL \
 
13846
ECHO \
 
13847
PATH_SEPARATOR \
 
13848
SED \
 
13849
GREP \
 
13850
EGREP \
 
13851
FGREP \
 
13852
LD \
 
13853
NM \
 
13854
LN_S \
 
13855
lt_SP2NL \
 
13856
lt_NL2SP \
 
13857
reload_flag \
 
13858
OBJDUMP \
 
13859
deplibs_check_method \
 
13860
file_magic_cmd \
 
13861
file_magic_glob \
 
13862
want_nocaseglob \
 
13863
DLLTOOL \
 
13864
sharedlib_from_linklib_cmd \
 
13865
AR \
 
13866
AR_FLAGS \
 
13867
archiver_list_spec \
 
13868
STRIP \
 
13869
RANLIB \
 
13870
CC \
 
13871
CFLAGS \
 
13872
compiler \
 
13873
lt_cv_sys_global_symbol_pipe \
 
13874
lt_cv_sys_global_symbol_to_cdecl \
 
13875
lt_cv_sys_global_symbol_to_c_name_address \
 
13876
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
 
13877
nm_file_list_spec \
 
13878
lt_prog_compiler_no_builtin_flag \
 
13879
lt_prog_compiler_pic \
 
13880
lt_prog_compiler_wl \
 
13881
lt_prog_compiler_static \
 
13882
lt_cv_prog_compiler_c_o \
 
13883
need_locks \
 
13884
MANIFEST_TOOL \
 
13885
DSYMUTIL \
 
13886
NMEDIT \
 
13887
LIPO \
 
13888
OTOOL \
 
13889
OTOOL64 \
 
13890
shrext_cmds \
 
13891
export_dynamic_flag_spec \
 
13892
whole_archive_flag_spec \
 
13893
compiler_needs_object \
 
13894
with_gnu_ld \
 
13895
allow_undefined_flag \
 
13896
no_undefined_flag \
 
13897
hardcode_libdir_flag_spec \
 
13898
hardcode_libdir_separator \
 
13899
exclude_expsyms \
 
13900
include_expsyms \
 
13901
file_list_spec \
 
13902
variables_saved_for_relink \
 
13903
libname_spec \
 
13904
library_names_spec \
 
13905
soname_spec \
 
13906
install_override_mode \
 
13907
finish_eval \
 
13908
old_striplib \
 
13909
striplib; do
 
13910
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
 
13911
    *[\\\\\\\`\\"\\\$]*)
 
13912
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
 
13913
      ;;
 
13914
    *)
 
13915
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
13916
      ;;
 
13917
    esac
 
13918
done
 
13919
 
 
13920
# Double-quote double-evaled strings.
 
13921
for var in reload_cmds \
 
13922
old_postinstall_cmds \
 
13923
old_postuninstall_cmds \
 
13924
old_archive_cmds \
 
13925
extract_expsyms_cmds \
 
13926
old_archive_from_new_cmds \
 
13927
old_archive_from_expsyms_cmds \
 
13928
archive_cmds \
 
13929
archive_expsym_cmds \
 
13930
module_cmds \
 
13931
module_expsym_cmds \
 
13932
export_symbols_cmds \
 
13933
prelink_cmds \
 
13934
postlink_cmds \
 
13935
postinstall_cmds \
 
13936
postuninstall_cmds \
 
13937
finish_cmds \
 
13938
sys_lib_search_path_spec \
 
13939
sys_lib_dlsearch_path_spec; do
 
13940
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
 
13941
    *[\\\\\\\`\\"\\\$]*)
 
13942
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
 
13943
      ;;
 
13944
    *)
 
13945
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
13946
      ;;
 
13947
    esac
 
13948
done
 
13949
 
 
13950
ac_aux_dir='$ac_aux_dir'
 
13951
xsi_shell='$xsi_shell'
 
13952
lt_shell_append='$lt_shell_append'
 
13953
 
 
13954
# See if we are running on zsh, and set the options which allow our
 
13955
# commands through without removal of \ escapes INIT.
 
13956
if test -n "\${ZSH_VERSION+set}" ; then
 
13957
   setopt NO_GLOB_SUBST
 
13958
fi
 
13959
 
 
13960
 
 
13961
    PACKAGE='$PACKAGE'
 
13962
    VERSION='$VERSION'
 
13963
    TIMESTAMP='$TIMESTAMP'
 
13964
    RM='$RM'
 
13965
    ofile='$ofile'
 
13966
 
 
13967
 
 
13968
 
 
13969
 
 
13970
_ACEOF
 
13971
 
 
13972
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
13973
 
 
13974
# Handling of arguments.
 
13975
for ac_config_target in $ac_config_targets
 
13976
do
 
13977
  case $ac_config_target in
 
13978
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
13979
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
13980
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
 
13981
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
13982
    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
 
13983
    "misc/Makefile") CONFIG_FILES="$CONFIG_FILES misc/Makefile" ;;
 
13984
    "misc/dvdread-config") CONFIG_FILES="$CONFIG_FILES misc/dvdread-config" ;;
 
13985
    "misc/dvdread.pc") CONFIG_FILES="$CONFIG_FILES misc/dvdread.pc" ;;
 
13986
    "misc/libdvdread.spec") CONFIG_FILES="$CONFIG_FILES misc/libdvdread.spec" ;;
 
13987
    "misc/relchk.sh") CONFIG_FILES="$CONFIG_FILES misc/relchk.sh" ;;
 
13988
    "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
 
13989
 
 
13990
  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
 
13991
  esac
 
13992
done
 
13993
 
 
13994
 
 
13995
# If the user did not use the arguments to specify the items to instantiate,
 
13996
# then the envvar interface is used.  Set only those that are not.
 
13997
# We use the long form for the default assignment because of an extremely
 
13998
# bizarre bug on SunOS 4.1.3.
 
13999
if $ac_need_defaults; then
 
14000
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
14001
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
14002
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
14003
fi
 
14004
 
 
14005
# Have a temporary directory for convenience.  Make it in the build tree
 
14006
# simply because there is no reason against having it here, and in addition,
 
14007
# creating and moving files from /tmp can sometimes cause problems.
 
14008
# Hook for its removal unless debugging.
 
14009
# Note that there is a small window in which the directory will not be cleaned:
 
14010
# after its creation but before its name has been assigned to `$tmp'.
 
14011
$debug ||
 
14012
{
 
14013
  tmp= ac_tmp=
 
14014
  trap 'exit_status=$?
 
14015
  : "${ac_tmp:=$tmp}"
 
14016
  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
 
14017
' 0
 
14018
  trap 'as_fn_exit 1' 1 2 13 15
 
14019
}
 
14020
# Create a (secure) tmp directory for tmp files.
 
14021
 
 
14022
{
 
14023
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 
14024
  test -d "$tmp"
 
14025
}  ||
 
14026
{
 
14027
  tmp=./conf$$-$RANDOM
 
14028
  (umask 077 && mkdir "$tmp")
 
14029
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
 
14030
ac_tmp=$tmp
 
14031
 
 
14032
# Set up the scripts for CONFIG_FILES section.
 
14033
# No need to generate them if there are no CONFIG_FILES.
 
14034
# This happens for instance with `./config.status config.h'.
 
14035
if test -n "$CONFIG_FILES"; then
 
14036
 
 
14037
 
 
14038
ac_cr=`echo X | tr X '\015'`
 
14039
# On cygwin, bash can eat \r inside `` if the user requested igncr.
 
14040
# But we know of no other shell where ac_cr would be empty at this
 
14041
# point, so we can use a bashism as a fallback.
 
14042
if test "x$ac_cr" = x; then
 
14043
  eval ac_cr=\$\'\\r\'
 
14044
fi
 
14045
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
 
14046
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
 
14047
  ac_cs_awk_cr='\\r'
 
14048
else
 
14049
  ac_cs_awk_cr=$ac_cr
 
14050
fi
 
14051
 
 
14052
echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
 
14053
_ACEOF
 
14054
 
 
14055
 
 
14056
{
 
14057
  echo "cat >conf$$subs.awk <<_ACEOF" &&
 
14058
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
 
14059
  echo "_ACEOF"
 
14060
} >conf$$subs.sh ||
 
14061
  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
14062
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
 
14063
ac_delim='%!_!# '
 
14064
for ac_last_try in false false false false false :; do
 
14065
  . ./conf$$subs.sh ||
 
14066
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
14067
 
 
14068
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
 
14069
  if test $ac_delim_n = $ac_delim_num; then
 
14070
    break
 
14071
  elif $ac_last_try; then
 
14072
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
14073
  else
 
14074
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
14075
  fi
 
14076
done
 
14077
rm -f conf$$subs.sh
 
14078
 
 
14079
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
14080
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
 
14081
_ACEOF
 
14082
sed -n '
 
14083
h
 
14084
s/^/S["/; s/!.*/"]=/
 
14085
p
 
14086
g
 
14087
s/^[^!]*!//
 
14088
:repl
 
14089
t repl
 
14090
s/'"$ac_delim"'$//
 
14091
t delim
 
14092
:nl
 
14093
h
 
14094
s/\(.\{148\}\)..*/\1/
 
14095
t more1
 
14096
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
 
14097
p
 
14098
n
 
14099
b repl
 
14100
:more1
 
14101
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
14102
p
 
14103
g
 
14104
s/.\{148\}//
 
14105
t nl
 
14106
:delim
 
14107
h
 
14108
s/\(.\{148\}\)..*/\1/
 
14109
t more2
 
14110
s/["\\]/\\&/g; s/^/"/; s/$/"/
 
14111
p
 
14112
b
 
14113
:more2
 
14114
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
14115
p
 
14116
g
 
14117
s/.\{148\}//
 
14118
t delim
 
14119
' <conf$$subs.awk | sed '
 
14120
/^[^""]/{
 
14121
  N
 
14122
  s/\n//
 
14123
}
 
14124
' >>$CONFIG_STATUS || ac_write_fail=1
 
14125
rm -f conf$$subs.awk
 
14126
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
14127
_ACAWK
 
14128
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
 
14129
  for (key in S) S_is_set[key] = 1
 
14130
  FS = ""
 
14131
 
 
14132
}
 
14133
{
 
14134
  line = $ 0
 
14135
  nfields = split(line, field, "@")
 
14136
  substed = 0
 
14137
  len = length(field[1])
 
14138
  for (i = 2; i < nfields; i++) {
 
14139
    key = field[i]
 
14140
    keylen = length(key)
 
14141
    if (S_is_set[key]) {
 
14142
      value = S[key]
 
14143
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
 
14144
      len += length(value) + length(field[++i])
 
14145
      substed = 1
 
14146
    } else
 
14147
      len += 1 + keylen
 
14148
  }
 
14149
 
 
14150
  print line
 
14151
}
 
14152
 
 
14153
_ACAWK
 
14154
_ACEOF
 
14155
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14156
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
 
14157
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
 
14158
else
 
14159
  cat
 
14160
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
 
14161
  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
 
14162
_ACEOF
 
14163
 
 
14164
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
 
14165
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
 
14166
# trailing colons and then remove the whole line if VPATH becomes empty
 
14167
# (actually we leave an empty line to preserve line numbers).
 
14168
if test "x$srcdir" = x.; then
 
14169
  ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
 
14170
h
 
14171
s///
 
14172
s/^/:/
 
14173
s/[      ]*$/:/
 
14174
s/:\$(srcdir):/:/g
 
14175
s/:\${srcdir}:/:/g
 
14176
s/:@srcdir@:/:/g
 
14177
s/^:*//
 
14178
s/:*$//
 
14179
x
 
14180
s/\(=[   ]*\).*/\1/
 
14181
G
 
14182
s/\n//
 
14183
s/^[^=]*=[       ]*$//
 
14184
}'
 
14185
fi
 
14186
 
 
14187
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14188
fi # test -n "$CONFIG_FILES"
 
14189
 
 
14190
# Set up the scripts for CONFIG_HEADERS section.
 
14191
# No need to generate them if there are no CONFIG_HEADERS.
 
14192
# This happens for instance with `./config.status Makefile'.
 
14193
if test -n "$CONFIG_HEADERS"; then
 
14194
cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
 
14195
BEGIN {
 
14196
_ACEOF
 
14197
 
 
14198
# Transform confdefs.h into an awk script `defines.awk', embedded as
 
14199
# here-document in config.status, that substitutes the proper values into
 
14200
# config.h.in to produce config.h.
 
14201
 
 
14202
# Create a delimiter string that does not exist in confdefs.h, to ease
 
14203
# handling of long lines.
 
14204
ac_delim='%!_!# '
 
14205
for ac_last_try in false false :; do
 
14206
  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
 
14207
  if test -z "$ac_tt"; then
 
14208
    break
 
14209
  elif $ac_last_try; then
 
14210
    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
 
14211
  else
 
14212
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
14213
  fi
 
14214
done
 
14215
 
 
14216
# For the awk script, D is an array of macro values keyed by name,
 
14217
# likewise P contains macro parameters if any.  Preserve backslash
 
14218
# newline sequences.
 
14219
 
 
14220
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 
14221
sed -n '
 
14222
s/.\{148\}/&'"$ac_delim"'/g
 
14223
t rset
 
14224
:rset
 
14225
s/^[     ]*#[    ]*define[       ][      ]*/ /
 
14226
t def
 
14227
d
 
14228
:def
 
14229
s/\\$//
 
14230
t bsnl
 
14231
s/["\\]/\\&/g
 
14232
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
14233
D["\1"]=" \3"/p
 
14234
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
 
14235
d
 
14236
:bsnl
 
14237
s/["\\]/\\&/g
 
14238
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
14239
D["\1"]=" \3\\\\\\n"\\/p
 
14240
t cont
 
14241
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
 
14242
t cont
 
14243
d
 
14244
:cont
 
14245
n
 
14246
s/.\{148\}/&'"$ac_delim"'/g
 
14247
t clear
 
14248
:clear
 
14249
s/\\$//
 
14250
t bsnlc
 
14251
s/["\\]/\\&/g; s/^/"/; s/$/"/p
 
14252
d
 
14253
:bsnlc
 
14254
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
 
14255
b cont
 
14256
' <confdefs.h | sed '
 
14257
s/'"$ac_delim"'/"\\\
 
14258
"/g' >>$CONFIG_STATUS || ac_write_fail=1
 
14259
 
 
14260
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
14261
  for (key in D) D_is_set[key] = 1
 
14262
  FS = ""
 
14263
}
 
14264
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
 
14265
  line = \$ 0
 
14266
  split(line, arg, " ")
 
14267
  if (arg[1] == "#") {
 
14268
    defundef = arg[2]
 
14269
    mac1 = arg[3]
 
14270
  } else {
 
14271
    defundef = substr(arg[1], 2)
 
14272
    mac1 = arg[2]
 
14273
  }
 
14274
  split(mac1, mac2, "(") #)
 
14275
  macro = mac2[1]
 
14276
  prefix = substr(line, 1, index(line, defundef) - 1)
 
14277
  if (D_is_set[macro]) {
 
14278
    # Preserve the white space surrounding the "#".
 
14279
    print prefix "define", macro P[macro] D[macro]
 
14280
    next
 
14281
  } else {
 
14282
    # Replace #undef with comments.  This is necessary, for example,
 
14283
    # in the case of _POSIX_SOURCE, which is predefined and required
 
14284
    # on some systems where configure will not decide to define it.
 
14285
    if (defundef == "undef") {
 
14286
      print "/*", prefix defundef, macro, "*/"
 
14287
      next
 
14288
    }
 
14289
  }
 
14290
}
 
14291
{ print }
 
14292
_ACAWK
 
14293
_ACEOF
 
14294
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14295
  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
 
14296
fi # test -n "$CONFIG_HEADERS"
 
14297
 
 
14298
 
 
14299
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
 
14300
shift
 
14301
for ac_tag
 
14302
do
 
14303
  case $ac_tag in
 
14304
  :[FHLC]) ac_mode=$ac_tag; continue;;
 
14305
  esac
 
14306
  case $ac_mode$ac_tag in
 
14307
  :[FHL]*:*);;
 
14308
  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
 
14309
  :[FH]-) ac_tag=-:-;;
 
14310
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 
14311
  esac
 
14312
  ac_save_IFS=$IFS
 
14313
  IFS=:
 
14314
  set x $ac_tag
 
14315
  IFS=$ac_save_IFS
 
14316
  shift
 
14317
  ac_file=$1
 
14318
  shift
 
14319
 
 
14320
  case $ac_mode in
 
14321
  :L) ac_source=$1;;
 
14322
  :[FH])
 
14323
    ac_file_inputs=
 
14324
    for ac_f
 
14325
    do
 
14326
      case $ac_f in
 
14327
      -) ac_f="$ac_tmp/stdin";;
 
14328
      *) # Look for the file first in the build tree, then in the source tree
 
14329
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
 
14330
         # because $ac_f cannot contain `:'.
 
14331
         test -f "$ac_f" ||
 
14332
           case $ac_f in
 
14333
           [\\/$]*) false;;
 
14334
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 
14335
           esac ||
 
14336
           as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
 
14337
      esac
 
14338
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
 
14339
      as_fn_append ac_file_inputs " '$ac_f'"
 
14340
    done
 
14341
 
 
14342
    # Let's still pretend it is `configure' which instantiates (i.e., don't
 
14343
    # use $as_me), people would be surprised to read:
 
14344
    #    /* config.h.  Generated by config.status.  */
 
14345
    configure_input='Generated from '`
 
14346
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
 
14347
        `' by configure.'
 
14348
    if test x"$ac_file" != x-; then
 
14349
      configure_input="$ac_file.  $configure_input"
 
14350
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
 
14351
$as_echo "$as_me: creating $ac_file" >&6;}
 
14352
    fi
 
14353
    # Neutralize special characters interpreted by sed in replacement strings.
 
14354
    case $configure_input in #(
 
14355
    *\&* | *\|* | *\\* )
 
14356
       ac_sed_conf_input=`$as_echo "$configure_input" |
 
14357
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
 
14358
    *) ac_sed_conf_input=$configure_input;;
 
14359
    esac
 
14360
 
 
14361
    case $ac_tag in
 
14362
    *:-:* | *:-) cat >"$ac_tmp/stdin" \
 
14363
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
 
14364
    esac
 
14365
    ;;
 
14366
  esac
 
14367
 
 
14368
  ac_dir=`$as_dirname -- "$ac_file" ||
 
14369
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
14370
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
14371
         X"$ac_file" : 'X\(//\)$' \| \
 
14372
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 
14373
$as_echo X"$ac_file" |
 
14374
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
14375
            s//\1/
 
14376
            q
 
14377
          }
 
14378
          /^X\(\/\/\)[^/].*/{
 
14379
            s//\1/
 
14380
            q
 
14381
          }
 
14382
          /^X\(\/\/\)$/{
 
14383
            s//\1/
 
14384
            q
 
14385
          }
 
14386
          /^X\(\/\).*/{
 
14387
            s//\1/
 
14388
            q
 
14389
          }
 
14390
          s/.*/./; q'`
 
14391
  as_dir="$ac_dir"; as_fn_mkdir_p
 
14392
  ac_builddir=.
 
14393
 
 
14394
case "$ac_dir" in
 
14395
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
14396
*)
 
14397
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
14398
  # A ".." for each directory in $ac_dir_suffix.
 
14399
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
14400
  case $ac_top_builddir_sub in
 
14401
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
14402
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
14403
  esac ;;
 
14404
esac
 
14405
ac_abs_top_builddir=$ac_pwd
 
14406
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
14407
# for backward compatibility:
 
14408
ac_top_builddir=$ac_top_build_prefix
 
14409
 
 
14410
case $srcdir in
 
14411
  .)  # We are building in place.
 
14412
    ac_srcdir=.
 
14413
    ac_top_srcdir=$ac_top_builddir_sub
 
14414
    ac_abs_top_srcdir=$ac_pwd ;;
 
14415
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
14416
    ac_srcdir=$srcdir$ac_dir_suffix;
 
14417
    ac_top_srcdir=$srcdir
 
14418
    ac_abs_top_srcdir=$srcdir ;;
 
14419
  *) # Relative name.
 
14420
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
14421
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
14422
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
14423
esac
 
14424
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
14425
 
 
14426
 
 
14427
  case $ac_mode in
 
14428
  :F)
 
14429
  #
 
14430
  # CONFIG_FILE
 
14431
  #
 
14432
 
 
14433
  case $INSTALL in
 
14434
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
14435
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 
14436
  esac
 
14437
  ac_MKDIR_P=$MKDIR_P
 
14438
  case $MKDIR_P in
 
14439
  [\\/$]* | ?:[\\/]* ) ;;
 
14440
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
 
14441
  esac
 
14442
_ACEOF
 
14443
 
 
14444
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14445
# If the template does not know about datarootdir, expand it.
 
14446
# FIXME: This hack should be removed a few years after 2.60.
 
14447
ac_datarootdir_hack=; ac_datarootdir_seen=
 
14448
ac_sed_dataroot='
 
14449
/datarootdir/ {
 
14450
  p
 
14451
  q
 
14452
}
 
14453
/@datadir@/p
 
14454
/@docdir@/p
 
14455
/@infodir@/p
 
14456
/@localedir@/p
 
14457
/@mandir@/p'
 
14458
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
 
14459
*datarootdir*) ac_datarootdir_seen=yes;;
 
14460
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 
14461
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
14462
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
14463
_ACEOF
 
14464
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
14465
  ac_datarootdir_hack='
 
14466
  s&@datadir@&$datadir&g
 
14467
  s&@docdir@&$docdir&g
 
14468
  s&@infodir@&$infodir&g
 
14469
  s&@localedir@&$localedir&g
 
14470
  s&@mandir@&$mandir&g
 
14471
  s&\\\${datarootdir}&$datarootdir&g' ;;
 
14472
esac
 
14473
_ACEOF
 
14474
 
 
14475
# Neutralize VPATH when `$srcdir' = `.'.
 
14476
# Shell code in configure.ac might set extrasub.
 
14477
# FIXME: do we really want to maintain this feature?
 
14478
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
14479
ac_sed_extra="$ac_vpsub
 
14480
$extrasub
 
14481
_ACEOF
 
14482
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14483
:t
 
14484
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
14485
s|@configure_input@|$ac_sed_conf_input|;t t
 
14486
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
14487
s&@top_build_prefix@&$ac_top_build_prefix&;t t
 
14488
s&@srcdir@&$ac_srcdir&;t t
 
14489
s&@abs_srcdir@&$ac_abs_srcdir&;t t
 
14490
s&@top_srcdir@&$ac_top_srcdir&;t t
 
14491
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 
14492
s&@builddir@&$ac_builddir&;t t
 
14493
s&@abs_builddir@&$ac_abs_builddir&;t t
 
14494
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 
14495
s&@INSTALL@&$ac_INSTALL&;t t
 
14496
s&@MKDIR_P@&$ac_MKDIR_P&;t t
 
14497
$ac_datarootdir_hack
 
14498
"
 
14499
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
 
14500
  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
14501
 
 
14502
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 
14503
  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
 
14504
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
 
14505
      "$ac_tmp/out"`; test -z "$ac_out"; } &&
 
14506
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
14507
which seems to be undefined.  Please make sure it is defined" >&5
 
14508
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
14509
which seems to be undefined.  Please make sure it is defined" >&2;}
 
14510
 
 
14511
  rm -f "$ac_tmp/stdin"
 
14512
  case $ac_file in
 
14513
  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
 
14514
  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
 
14515
  esac \
 
14516
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
14517
 ;;
 
14518
  :H)
 
14519
  #
 
14520
  # CONFIG_HEADER
 
14521
  #
 
14522
  if test x"$ac_file" != x-; then
 
14523
    {
 
14524
      $as_echo "/* $configure_input  */" \
 
14525
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
 
14526
    } >"$ac_tmp/config.h" \
 
14527
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
14528
    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
 
14529
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
 
14530
$as_echo "$as_me: $ac_file is unchanged" >&6;}
 
14531
    else
 
14532
      rm -f "$ac_file"
 
14533
      mv "$ac_tmp/config.h" "$ac_file" \
 
14534
        || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
14535
    fi
 
14536
  else
 
14537
    $as_echo "/* $configure_input  */" \
 
14538
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
 
14539
      || as_fn_error $? "could not create -" "$LINENO" 5
 
14540
  fi
 
14541
# Compute "$ac_file"'s index in $config_headers.
 
14542
_am_arg="$ac_file"
 
14543
_am_stamp_count=1
 
14544
for _am_header in $config_headers :; do
 
14545
  case $_am_header in
 
14546
    $_am_arg | $_am_arg:* )
 
14547
      break ;;
 
14548
    * )
 
14549
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
14550
  esac
 
14551
done
 
14552
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
 
14553
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
14554
         X"$_am_arg" : 'X\(//\)[^/]' \| \
 
14555
         X"$_am_arg" : 'X\(//\)$' \| \
 
14556
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
 
14557
$as_echo X"$_am_arg" |
 
14558
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
14559
            s//\1/
 
14560
            q
 
14561
          }
 
14562
          /^X\(\/\/\)[^/].*/{
 
14563
            s//\1/
 
14564
            q
 
14565
          }
 
14566
          /^X\(\/\/\)$/{
 
14567
            s//\1/
 
14568
            q
 
14569
          }
 
14570
          /^X\(\/\).*/{
 
14571
            s//\1/
 
14572
            q
 
14573
          }
 
14574
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
14575
 ;;
 
14576
  
 
14577
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
 
14578
$as_echo "$as_me: executing $ac_file commands" >&6;}
 
14579
 ;;
 
14580
  esac
 
14581
 
 
14582
 
 
14583
  case $ac_file$ac_mode in
 
14584
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
 
14585
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
 
14586
  # are listed without --file.  Let's play safe and only enable the eval
 
14587
  # if we detect the quoting.
 
14588
  case $CONFIG_FILES in
 
14589
  *\'*) eval set x "$CONFIG_FILES" ;;
 
14590
  *)   set x $CONFIG_FILES ;;
 
14591
  esac
 
14592
  shift
 
14593
  for mf
 
14594
  do
 
14595
    # Strip MF so we end up with the name of the file.
 
14596
    mf=`echo "$mf" | sed -e 's/:.*$//'`
 
14597
    # Check whether this is an Automake generated Makefile or not.
 
14598
    # We used to match only the files named `Makefile.in', but
 
14599
    # some people rename them; so instead we look at the file content.
 
14600
    # Grep'ing the first line is not enough: some people post-process
 
14601
    # each Makefile.in and add a new line on top of each file to say so.
 
14602
    # Grep'ing the whole file is not good either: AIX grep has a line
 
14603
    # limit of 2048, but all sed's we know have understand at least 4000.
 
14604
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
14605
      dirpart=`$as_dirname -- "$mf" ||
 
14606
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
14607
         X"$mf" : 'X\(//\)[^/]' \| \
 
14608
         X"$mf" : 'X\(//\)$' \| \
 
14609
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
 
14610
$as_echo X"$mf" |
 
14611
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
14612
            s//\1/
 
14613
            q
 
14614
          }
 
14615
          /^X\(\/\/\)[^/].*/{
 
14616
            s//\1/
 
14617
            q
 
14618
          }
 
14619
          /^X\(\/\/\)$/{
 
14620
            s//\1/
 
14621
            q
 
14622
          }
 
14623
          /^X\(\/\).*/{
 
14624
            s//\1/
 
14625
            q
 
14626
          }
 
14627
          s/.*/./; q'`
 
14628
    else
 
14629
      continue
 
14630
    fi
 
14631
    # Extract the definition of DEPDIR, am__include, and am__quote
 
14632
    # from the Makefile without running `make'.
 
14633
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
14634
    test -z "$DEPDIR" && continue
 
14635
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
14636
    test -z "am__include" && continue
 
14637
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
14638
    # When using ansi2knr, U may be empty or an underscore; expand it
 
14639
    U=`sed -n 's/^U = //p' < "$mf"`
 
14640
    # Find all dependency output files, they are included files with
 
14641
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
14642
    # simplest approach to changing $(DEPDIR) to its actual value in the
 
14643
    # expansion.
 
14644
    for file in `sed -n "
 
14645
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
14646
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
14647
      # Make sure the directory exists.
 
14648
      test -f "$dirpart/$file" && continue
 
14649
      fdir=`$as_dirname -- "$file" ||
 
14650
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
14651
         X"$file" : 'X\(//\)[^/]' \| \
 
14652
         X"$file" : 'X\(//\)$' \| \
 
14653
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
 
14654
$as_echo X"$file" |
 
14655
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
14656
            s//\1/
 
14657
            q
 
14658
          }
 
14659
          /^X\(\/\/\)[^/].*/{
 
14660
            s//\1/
 
14661
            q
 
14662
          }
 
14663
          /^X\(\/\/\)$/{
 
14664
            s//\1/
 
14665
            q
 
14666
          }
 
14667
          /^X\(\/\).*/{
 
14668
            s//\1/
 
14669
            q
 
14670
          }
 
14671
          s/.*/./; q'`
 
14672
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
 
14673
      # echo "creating $dirpart/$file"
 
14674
      echo '# dummy' > "$dirpart/$file"
 
14675
    done
 
14676
  done
 
14677
}
 
14678
 ;;
 
14679
    "libtool":C) 
 
14680
    
 
14681
    # See if we are running on zsh, and set the options which allow our
 
14682
    # commands through without removal of \ escapes.
 
14683
    if test -n "${ZSH_VERSION+set}" ; then
 
14684
      setopt NO_GLOB_SUBST
 
14685
    fi
 
14686
 
 
14687
    cfgfile="${ofile}T"
 
14688
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
 
14689
    $RM "$cfgfile"
 
14690
 
 
14691
    cat <<_LT_EOF >> "$cfgfile"
 
14692
#! $SHELL
 
14693
 
 
14694
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
14695
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
 
14696
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
14697
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
14698
#
 
14699
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
 
14700
#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
 
14701
#                 Foundation, Inc.
 
14702
#   Written by Gordon Matzigkeit, 1996
 
14703
#
 
14704
#   This file is part of GNU Libtool.
 
14705
#
 
14706
# GNU Libtool is free software; you can redistribute it and/or
 
14707
# modify it under the terms of the GNU General Public License as
 
14708
# published by the Free Software Foundation; either version 2 of
 
14709
# the License, or (at your option) any later version.
 
14710
#
 
14711
# As a special exception to the GNU General Public License,
 
14712
# if you distribute this file as part of a program or library that
 
14713
# is built using GNU Libtool, you may include this file under the
 
14714
# same distribution terms that you use for the rest of that program.
 
14715
#
 
14716
# GNU Libtool is distributed in the hope that it will be useful,
 
14717
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14718
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14719
# GNU General Public License for more details.
 
14720
#
 
14721
# You should have received a copy of the GNU General Public License
 
14722
# along with GNU Libtool; see the file COPYING.  If not, a copy
 
14723
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
 
14724
# obtained by writing to the Free Software Foundation, Inc.,
 
14725
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
14726
 
 
14727
 
 
14728
# The names of the tagged configurations supported by this script.
 
14729
available_tags=""
 
14730
 
 
14731
# ### BEGIN LIBTOOL CONFIG
 
14732
 
 
14733
# Whether or not to build static libraries.
 
14734
build_old_libs=$enable_static
 
14735
 
 
14736
# Which release of libtool.m4 was used?
 
14737
macro_version=$macro_version
 
14738
macro_revision=$macro_revision
 
14739
 
 
14740
# Whether or not to build shared libraries.
 
14741
build_libtool_libs=$enable_shared
 
14742
 
 
14743
# What type of objects to build.
 
14744
pic_mode=$pic_mode
 
14745
 
 
14746
# Whether or not to optimize for fast installation.
 
14747
fast_install=$enable_fast_install
 
14748
 
 
14749
# Shell to use when invoking shell scripts.
 
14750
SHELL=$lt_SHELL
 
14751
 
 
14752
# An echo program that protects backslashes.
 
14753
ECHO=$lt_ECHO
 
14754
 
 
14755
# The PATH separator for the build system.
 
14756
PATH_SEPARATOR=$lt_PATH_SEPARATOR
 
14757
 
 
14758
# The host system.
 
14759
host_alias=$host_alias
 
14760
host=$host
 
14761
host_os=$host_os
 
14762
 
 
14763
# The build system.
 
14764
build_alias=$build_alias
 
14765
build=$build
 
14766
build_os=$build_os
 
14767
 
 
14768
# A sed program that does not truncate output.
 
14769
SED=$lt_SED
 
14770
 
 
14771
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
14772
Xsed="\$SED -e 1s/^X//"
 
14773
 
 
14774
# A grep program that handles long lines.
 
14775
GREP=$lt_GREP
 
14776
 
 
14777
# An ERE matcher.
 
14778
EGREP=$lt_EGREP
 
14779
 
 
14780
# A literal string matcher.
 
14781
FGREP=$lt_FGREP
 
14782
 
 
14783
# A BSD- or MS-compatible name lister.
 
14784
NM=$lt_NM
 
14785
 
 
14786
# Whether we need soft or hard links.
 
14787
LN_S=$lt_LN_S
 
14788
 
 
14789
# What is the maximum length of a command?
 
14790
max_cmd_len=$max_cmd_len
 
14791
 
 
14792
# Object file suffix (normally "o").
 
14793
objext=$ac_objext
 
14794
 
 
14795
# Executable file suffix (normally "").
 
14796
exeext=$exeext
 
14797
 
 
14798
# whether the shell understands "unset".
 
14799
lt_unset=$lt_unset
 
14800
 
 
14801
# turn spaces into newlines.
 
14802
SP2NL=$lt_lt_SP2NL
 
14803
 
 
14804
# turn newlines into spaces.
 
14805
NL2SP=$lt_lt_NL2SP
 
14806
 
 
14807
# convert \$build file names to \$host format.
 
14808
to_host_file_cmd=$lt_cv_to_host_file_cmd
 
14809
 
 
14810
# convert \$build files to toolchain format.
 
14811
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
 
14812
 
 
14813
# An object symbol dumper.
 
14814
OBJDUMP=$lt_OBJDUMP
 
14815
 
 
14816
# Method to check whether dependent libraries are shared objects.
 
14817
deplibs_check_method=$lt_deplibs_check_method
 
14818
 
 
14819
# Command to use when deplibs_check_method = "file_magic".
 
14820
file_magic_cmd=$lt_file_magic_cmd
 
14821
 
 
14822
# How to find potential files when deplibs_check_method = "file_magic".
 
14823
file_magic_glob=$lt_file_magic_glob
 
14824
 
 
14825
# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
 
14826
want_nocaseglob=$lt_want_nocaseglob
 
14827
 
 
14828
# DLL creation program.
 
14829
DLLTOOL=$lt_DLLTOOL
 
14830
 
 
14831
# Command to associate shared and link libraries.
 
14832
sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
 
14833
 
 
14834
# The archiver.
 
14835
AR=$lt_AR
 
14836
 
 
14837
# Flags to create an archive.
 
14838
AR_FLAGS=$lt_AR_FLAGS
 
14839
 
 
14840
# How to feed a file listing to the archiver.
 
14841
archiver_list_spec=$lt_archiver_list_spec
 
14842
 
 
14843
# A symbol stripping program.
 
14844
STRIP=$lt_STRIP
 
14845
 
 
14846
# Commands used to install an old-style archive.
 
14847
RANLIB=$lt_RANLIB
 
14848
old_postinstall_cmds=$lt_old_postinstall_cmds
 
14849
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
14850
 
 
14851
# Whether to use a lock for old archive extraction.
 
14852
lock_old_archive_extraction=$lock_old_archive_extraction
 
14853
 
 
14854
# A C compiler.
 
14855
LTCC=$lt_CC
 
14856
 
 
14857
# LTCC compiler flags.
 
14858
LTCFLAGS=$lt_CFLAGS
 
14859
 
 
14860
# Take the output of nm and produce a listing of raw symbols and C names.
 
14861
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
14862
 
 
14863
# Transform the output of nm in a proper C declaration.
 
14864
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
14865
 
 
14866
# Transform the output of nm in a C name address pair.
 
14867
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
14868
 
 
14869
# Transform the output of nm in a C name address pair when lib prefix is needed.
 
14870
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
 
14871
 
 
14872
# Specify filename containing input files for \$NM.
 
14873
nm_file_list_spec=$lt_nm_file_list_spec
 
14874
 
 
14875
# The root where to search for dependent libraries,and in which our libraries should be installed.
 
14876
lt_sysroot=$lt_sysroot
 
14877
 
 
14878
# The name of the directory that contains temporary libtool files.
 
14879
objdir=$objdir
 
14880
 
 
14881
# Used to examine libraries when file_magic_cmd begins with "file".
 
14882
MAGIC_CMD=$MAGIC_CMD
 
14883
 
 
14884
# Must we lock files when doing compilation?
 
14885
need_locks=$lt_need_locks
 
14886
 
 
14887
# Manifest tool.
 
14888
MANIFEST_TOOL=$lt_MANIFEST_TOOL
 
14889
 
 
14890
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
 
14891
DSYMUTIL=$lt_DSYMUTIL
 
14892
 
 
14893
# Tool to change global to local symbols on Mac OS X.
 
14894
NMEDIT=$lt_NMEDIT
 
14895
 
 
14896
# Tool to manipulate fat objects and archives on Mac OS X.
 
14897
LIPO=$lt_LIPO
 
14898
 
 
14899
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
 
14900
OTOOL=$lt_OTOOL
 
14901
 
 
14902
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
 
14903
OTOOL64=$lt_OTOOL64
 
14904
 
 
14905
# Old archive suffix (normally "a").
 
14906
libext=$libext
 
14907
 
 
14908
# Shared library suffix (normally ".so").
 
14909
shrext_cmds=$lt_shrext_cmds
 
14910
 
 
14911
# The commands to extract the exported symbol list from a shared archive.
 
14912
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
14913
 
 
14914
# Variables whose values should be saved in libtool wrapper scripts and
 
14915
# restored at link time.
 
14916
variables_saved_for_relink=$lt_variables_saved_for_relink
 
14917
 
 
14918
# Do we need the "lib" prefix for modules?
 
14919
need_lib_prefix=$need_lib_prefix
 
14920
 
 
14921
# Do we need a version for libraries?
 
14922
need_version=$need_version
 
14923
 
 
14924
# Library versioning type.
 
14925
version_type=$version_type
 
14926
 
 
14927
# Shared library runtime path variable.
 
14928
runpath_var=$runpath_var
 
14929
 
 
14930
# Shared library path variable.
 
14931
shlibpath_var=$shlibpath_var
 
14932
 
 
14933
# Is shlibpath searched before the hard-coded library search path?
 
14934
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
14935
 
 
14936
# Format of library name prefix.
 
14937
libname_spec=$lt_libname_spec
 
14938
 
 
14939
# List of archive names.  First name is the real one, the rest are links.
 
14940
# The last name is the one that the linker finds with -lNAME
 
14941
library_names_spec=$lt_library_names_spec
 
14942
 
 
14943
# The coded name of the library, if different from the real name.
 
14944
soname_spec=$lt_soname_spec
 
14945
 
 
14946
# Permission mode override for installation of shared libraries.
 
14947
install_override_mode=$lt_install_override_mode
 
14948
 
 
14949
# Command to use after installation of a shared archive.
 
14950
postinstall_cmds=$lt_postinstall_cmds
 
14951
 
 
14952
# Command to use after uninstallation of a shared archive.
 
14953
postuninstall_cmds=$lt_postuninstall_cmds
 
14954
 
 
14955
# Commands used to finish a libtool library installation in a directory.
 
14956
finish_cmds=$lt_finish_cmds
 
14957
 
 
14958
# As "finish_cmds", except a single script fragment to be evaled but
 
14959
# not shown.
 
14960
finish_eval=$lt_finish_eval
 
14961
 
 
14962
# Whether we should hardcode library paths into libraries.
 
14963
hardcode_into_libs=$hardcode_into_libs
 
14964
 
 
14965
# Compile-time system search path for libraries.
 
14966
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
14967
 
 
14968
# Run-time system search path for libraries.
 
14969
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
14970
 
 
14971
# Whether dlopen is supported.
 
14972
dlopen_support=$enable_dlopen
 
14973
 
 
14974
# Whether dlopen of programs is supported.
 
14975
dlopen_self=$enable_dlopen_self
 
14976
 
 
14977
# Whether dlopen of statically linked programs is supported.
 
14978
dlopen_self_static=$enable_dlopen_self_static
 
14979
 
 
14980
# Commands to strip libraries.
 
14981
old_striplib=$lt_old_striplib
 
14982
striplib=$lt_striplib
 
14983
 
 
14984
 
 
14985
# The linker used to build libraries.
 
14986
LD=$lt_LD
 
14987
 
 
14988
# How to create reloadable object files.
 
14989
reload_flag=$lt_reload_flag
 
14990
reload_cmds=$lt_reload_cmds
 
14991
 
 
14992
# Commands used to build an old-style archive.
 
14993
old_archive_cmds=$lt_old_archive_cmds
 
14994
 
 
14995
# A language specific compiler.
 
14996
CC=$lt_compiler
 
14997
 
 
14998
# Is the compiler the GNU compiler?
 
14999
with_gcc=$GCC
 
15000
 
 
15001
# Compiler flag to turn off builtin functions.
 
15002
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
15003
 
 
15004
# Additional compiler flags for building library objects.
 
15005
pic_flag=$lt_lt_prog_compiler_pic
 
15006
 
 
15007
# How to pass a linker flag through the compiler.
 
15008
wl=$lt_lt_prog_compiler_wl
 
15009
 
 
15010
# Compiler flag to prevent dynamic linking.
 
15011
link_static_flag=$lt_lt_prog_compiler_static
 
15012
 
 
15013
# Does compiler simultaneously support -c and -o options?
 
15014
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
15015
 
 
15016
# Whether or not to add -lc for building shared libraries.
 
15017
build_libtool_need_lc=$archive_cmds_need_lc
 
15018
 
 
15019
# Whether or not to disallow shared libs when runtime libs are static.
 
15020
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
15021
 
 
15022
# Compiler flag to allow reflexive dlopens.
 
15023
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
15024
 
 
15025
# Compiler flag to generate shared objects directly from archives.
 
15026
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
15027
 
 
15028
# Whether the compiler copes with passing no objects directly.
 
15029
compiler_needs_object=$lt_compiler_needs_object
 
15030
 
 
15031
# Create an old-style archive from a shared archive.
 
15032
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
15033
 
 
15034
# Create a temporary old-style archive to link instead of a shared archive.
 
15035
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
15036
 
 
15037
# Commands used to build a shared archive.
 
15038
archive_cmds=$lt_archive_cmds
 
15039
archive_expsym_cmds=$lt_archive_expsym_cmds
 
15040
 
 
15041
# Commands used to build a loadable module if different from building
 
15042
# a shared archive.
 
15043
module_cmds=$lt_module_cmds
 
15044
module_expsym_cmds=$lt_module_expsym_cmds
 
15045
 
 
15046
# Whether we are building with GNU ld or not.
 
15047
with_gnu_ld=$lt_with_gnu_ld
 
15048
 
 
15049
# Flag that allows shared libraries with undefined symbols to be built.
 
15050
allow_undefined_flag=$lt_allow_undefined_flag
 
15051
 
 
15052
# Flag that enforces no undefined symbols.
 
15053
no_undefined_flag=$lt_no_undefined_flag
 
15054
 
 
15055
# Flag to hardcode \$libdir into a binary during linking.
 
15056
# This must work even if \$libdir does not exist
 
15057
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
15058
 
 
15059
# Whether we need a single "-rpath" flag with a separated argument.
 
15060
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
15061
 
 
15062
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
15063
# DIR into the resulting binary.
 
15064
hardcode_direct=$hardcode_direct
 
15065
 
 
15066
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
15067
# DIR into the resulting binary and the resulting library dependency is
 
15068
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
 
15069
# library is relocated.
 
15070
hardcode_direct_absolute=$hardcode_direct_absolute
 
15071
 
 
15072
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 
15073
# into the resulting binary.
 
15074
hardcode_minus_L=$hardcode_minus_L
 
15075
 
 
15076
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 
15077
# into the resulting binary.
 
15078
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
15079
 
 
15080
# Set to "yes" if building a shared library automatically hardcodes DIR
 
15081
# into the library and all subsequent libraries and executables linked
 
15082
# against it.
 
15083
hardcode_automatic=$hardcode_automatic
 
15084
 
 
15085
# Set to yes if linker adds runtime paths of dependent libraries
 
15086
# to runtime path list.
 
15087
inherit_rpath=$inherit_rpath
 
15088
 
 
15089
# Whether libtool must link a program against all its dependency libraries.
 
15090
link_all_deplibs=$link_all_deplibs
 
15091
 
 
15092
# Set to "yes" if exported symbols are required.
 
15093
always_export_symbols=$always_export_symbols
 
15094
 
 
15095
# The commands to list exported symbols.
 
15096
export_symbols_cmds=$lt_export_symbols_cmds
 
15097
 
 
15098
# Symbols that should not be listed in the preloaded symbols.
 
15099
exclude_expsyms=$lt_exclude_expsyms
 
15100
 
 
15101
# Symbols that must always be exported.
 
15102
include_expsyms=$lt_include_expsyms
 
15103
 
 
15104
# Commands necessary for linking programs (against libraries) with templates.
 
15105
prelink_cmds=$lt_prelink_cmds
 
15106
 
 
15107
# Commands necessary for finishing linking programs.
 
15108
postlink_cmds=$lt_postlink_cmds
 
15109
 
 
15110
# Specify filename containing input files.
 
15111
file_list_spec=$lt_file_list_spec
 
15112
 
 
15113
# How to hardcode a shared library path into an executable.
 
15114
hardcode_action=$hardcode_action
 
15115
 
 
15116
# ### END LIBTOOL CONFIG
 
15117
 
 
15118
_LT_EOF
 
15119
 
 
15120
  case $host_os in
 
15121
  aix3*)
 
15122
    cat <<\_LT_EOF >> "$cfgfile"
 
15123
# AIX sometimes has problems with the GCC collect2 program.  For some
 
15124
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
15125
# vanish in a puff of smoke.
 
15126
if test "X${COLLECT_NAMES+set}" != Xset; then
 
15127
  COLLECT_NAMES=
 
15128
  export COLLECT_NAMES
 
15129
fi
 
15130
_LT_EOF
 
15131
    ;;
 
15132
  esac
 
15133
 
 
15134
  
 
15135
ltmain="$ac_aux_dir/ltmain.sh"
 
15136
 
 
15137
 
 
15138
  # We use sed instead of cat because bash on DJGPP gets confused if
 
15139
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
15140
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
15141
  # is reportedly fixed, but why not run on old versions too?
 
15142
  sed '$q' "$ltmain" >> "$cfgfile" \
 
15143
     || (rm -f "$cfgfile"; exit 1)
 
15144
 
 
15145
  if test x"$xsi_shell" = xyes; then
 
15146
  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
 
15147
func_dirname ()\
 
15148
{\
 
15149
\    case ${1} in\
 
15150
\      */*) func_dirname_result="${1%/*}${2}" ;;\
 
15151
\      *  ) func_dirname_result="${3}" ;;\
 
15152
\    esac\
 
15153
} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
 
15154
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15155
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15156
test 0 -eq $? || _lt_function_replace_fail=:
 
15157
 
 
15158
 
 
15159
  sed -e '/^func_basename ()$/,/^} # func_basename /c\
 
15160
func_basename ()\
 
15161
{\
 
15162
\    func_basename_result="${1##*/}"\
 
15163
} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
 
15164
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15165
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15166
test 0 -eq $? || _lt_function_replace_fail=:
 
15167
 
 
15168
 
 
15169
  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
 
15170
func_dirname_and_basename ()\
 
15171
{\
 
15172
\    case ${1} in\
 
15173
\      */*) func_dirname_result="${1%/*}${2}" ;;\
 
15174
\      *  ) func_dirname_result="${3}" ;;\
 
15175
\    esac\
 
15176
\    func_basename_result="${1##*/}"\
 
15177
} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
 
15178
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15179
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15180
test 0 -eq $? || _lt_function_replace_fail=:
 
15181
 
 
15182
 
 
15183
  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
 
15184
func_stripname ()\
 
15185
{\
 
15186
\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
 
15187
\    # positional parameters, so assign one to ordinary parameter first.\
 
15188
\    func_stripname_result=${3}\
 
15189
\    func_stripname_result=${func_stripname_result#"${1}"}\
 
15190
\    func_stripname_result=${func_stripname_result%"${2}"}\
 
15191
} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
 
15192
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15193
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15194
test 0 -eq $? || _lt_function_replace_fail=:
 
15195
 
 
15196
 
 
15197
  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
 
15198
func_split_long_opt ()\
 
15199
{\
 
15200
\    func_split_long_opt_name=${1%%=*}\
 
15201
\    func_split_long_opt_arg=${1#*=}\
 
15202
} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
 
15203
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15204
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15205
test 0 -eq $? || _lt_function_replace_fail=:
 
15206
 
 
15207
 
 
15208
  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
 
15209
func_split_short_opt ()\
 
15210
{\
 
15211
\    func_split_short_opt_arg=${1#??}\
 
15212
\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
 
15213
} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
 
15214
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15215
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15216
test 0 -eq $? || _lt_function_replace_fail=:
 
15217
 
 
15218
 
 
15219
  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
 
15220
func_lo2o ()\
 
15221
{\
 
15222
\    case ${1} in\
 
15223
\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
 
15224
\      *)    func_lo2o_result=${1} ;;\
 
15225
\    esac\
 
15226
} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
 
15227
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15228
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15229
test 0 -eq $? || _lt_function_replace_fail=:
 
15230
 
 
15231
 
 
15232
  sed -e '/^func_xform ()$/,/^} # func_xform /c\
 
15233
func_xform ()\
 
15234
{\
 
15235
    func_xform_result=${1%.*}.lo\
 
15236
} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
 
15237
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15238
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15239
test 0 -eq $? || _lt_function_replace_fail=:
 
15240
 
 
15241
 
 
15242
  sed -e '/^func_arith ()$/,/^} # func_arith /c\
 
15243
func_arith ()\
 
15244
{\
 
15245
    func_arith_result=$(( $* ))\
 
15246
} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
 
15247
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15248
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15249
test 0 -eq $? || _lt_function_replace_fail=:
 
15250
 
 
15251
 
 
15252
  sed -e '/^func_len ()$/,/^} # func_len /c\
 
15253
func_len ()\
 
15254
{\
 
15255
    func_len_result=${#1}\
 
15256
} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
 
15257
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15258
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15259
test 0 -eq $? || _lt_function_replace_fail=:
 
15260
 
 
15261
fi
 
15262
 
 
15263
if test x"$lt_shell_append" = xyes; then
 
15264
  sed -e '/^func_append ()$/,/^} # func_append /c\
 
15265
func_append ()\
 
15266
{\
 
15267
    eval "${1}+=\\${2}"\
 
15268
} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
 
15269
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15270
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15271
test 0 -eq $? || _lt_function_replace_fail=:
 
15272
 
 
15273
 
 
15274
  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
 
15275
func_append_quoted ()\
 
15276
{\
 
15277
\    func_quote_for_eval "${2}"\
 
15278
\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
 
15279
} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
 
15280
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15281
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15282
test 0 -eq $? || _lt_function_replace_fail=:
 
15283
 
 
15284
 
 
15285
  # Save a `func_append' function call where possible by direct use of '+='
 
15286
  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
 
15287
    && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15288
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15289
  test 0 -eq $? || _lt_function_replace_fail=:
 
15290
else
 
15291
  # Save a `func_append' function call even when '+=' is not available
 
15292
  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
 
15293
    && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15294
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15295
  test 0 -eq $? || _lt_function_replace_fail=:
 
15296
fi
 
15297
 
 
15298
if test x"$_lt_function_replace_fail" = x":"; then
 
15299
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
 
15300
$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
 
15301
fi
 
15302
 
 
15303
 
 
15304
   mv -f "$cfgfile" "$ofile" ||
 
15305
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
15306
  chmod +x "$ofile"
 
15307
 
 
15308
 ;;
 
15309
 
 
15310
  esac
 
15311
done # for ac_tag
 
15312
 
 
15313
 
 
15314
as_fn_exit 0
 
15315
_ACEOF
 
15316
ac_clean_files=$ac_clean_files_save
 
15317
 
 
15318
test $ac_write_fail = 0 ||
 
15319
  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
 
15320
 
 
15321
 
 
15322
# configure is writing to config.log, and then calls config.status.
 
15323
# config.status does its own redirection, appending to config.log.
 
15324
# Unfortunately, on DOS this fails, as config.log is still kept open
 
15325
# by configure, so config.status won't be able to write to it; its
 
15326
# output is simply discarded.  So we exec the FD to /dev/null,
 
15327
# effectively closing config.log, so it can be properly (re)opened and
 
15328
# appended to by config.status.  When coming back to configure, we
 
15329
# need to make the FD available again.
 
15330
if test "$no_create" != yes; then
 
15331
  ac_cs_success=:
 
15332
  ac_config_status_args=
 
15333
  test "$silent" = yes &&
 
15334
    ac_config_status_args="$ac_config_status_args --quiet"
 
15335
  exec 5>/dev/null
 
15336
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
15337
  exec 5>>config.log
 
15338
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
15339
  # would make configure fail if this is the last instruction.
 
15340
  $ac_cs_success || as_fn_exit 1
 
15341
fi
 
15342
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
 
15343
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
 
15344
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
 
15345
fi
 
15346