OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [binutils-2.20.1/] [gprof/] [configure] - Blame information for rev 818

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 205 julius
#! /bin/sh
2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.64.
4
#
5
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7
# Foundation, Inc.
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
case $0 in #((
91
  *[\\/]* ) as_myself=$0 ;;
92
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93
for as_dir in $PATH
94
do
95
  IFS=$as_save_IFS
96
  test -z "$as_dir" && as_dir=.
97
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98
  done
99
IFS=$as_save_IFS
100
 
101
     ;;
102
esac
103
# We did not find ourselves, most probably we were run as `sh COMMAND'
104
# in which case we are not to be found in the path.
105
if test "x$as_myself" = x; then
106
  as_myself=$0
107
fi
108
if test ! -f "$as_myself"; then
109
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110
  exit 1
111
fi
112
 
113
# Unset variables that we do not need and which cause bugs (e.g. in
114
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
115
# suppresses any "Segmentation fault" message there.  '((' could
116
# trigger a bug in pdksh 5.2.14.
117
for as_var in BASH_ENV ENV MAIL MAILPATH
118
do eval test x\${$as_var+set} = xset \
119
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120
done
121
PS1='$ '
122
PS2='> '
123
PS4='+ '
124
 
125
# NLS nuisances.
126
LC_ALL=C
127
export LC_ALL
128
LANGUAGE=C
129
export LANGUAGE
130
 
131
# CDPATH.
132
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
 
134
if test "x$CONFIG_SHELL" = x; then
135
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136
  emulate sh
137
  NULLCMD=:
138
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139
  # is contrary to our usage.  Disable this feature.
140
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
141
  setopt NO_GLOB_SUBST
142
else
143
  case \`(set -o) 2>/dev/null\` in #(
144
  *posix*) :
145
    set -o posix ;; #(
146
  *) :
147
     ;;
148
esac
149
fi
150
"
151
  as_required="as_fn_return () { (exit \$1); }
152
as_fn_success () { as_fn_return 0; }
153
as_fn_failure () { as_fn_return 1; }
154
as_fn_ret_success () { return 0; }
155
as_fn_ret_failure () { return 1; }
156
 
157
exitcode=0
158
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
 
164
else
165
  exitcode=1; echo positional parameters were not saved.
166
fi
167
test x\$exitcode = x0 || exit 1"
168
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172
test \$(( 1 + 1 )) = 2 || exit 1"
173
  if (eval "$as_required") 2>/dev/null; then :
174
  as_have_required=yes
175
else
176
  as_have_required=no
177
fi
178
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
 
180
else
181
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182
as_found=false
183
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184
do
185
  IFS=$as_save_IFS
186
  test -z "$as_dir" && as_dir=.
187
  as_found=:
188
  case $as_dir in #(
189
         /*)
190
           for as_base in sh bash ksh sh5; do
191
             # Try only shells that exist, to save several forks.
192
             as_shell=$as_dir/$as_base
193
             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194
                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195
  CONFIG_SHELL=$as_shell as_have_required=yes
196
                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197
  break 2
198
fi
199
fi
200
           done;;
201
       esac
202
  as_found=false
203
done
204
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205
              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206
  CONFIG_SHELL=$SHELL as_have_required=yes
207
fi; }
208
IFS=$as_save_IFS
209
 
210
 
211
      if test "x$CONFIG_SHELL" != x; then :
212
  # We cannot yet assume a decent shell, so we have to provide a
213
        # neutralization value for shells without unset; and this also
214
        # works around shells that cannot unset nonexistent variables.
215
        BASH_ENV=/dev/null
216
        ENV=/dev/null
217
        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218
        export CONFIG_SHELL
219
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220
fi
221
 
222
    if test x$as_have_required = xno; then :
223
  $as_echo "$0: This script requires a shell more modern than all"
224
  $as_echo "$0: the shells that I found on your system."
225
  if test x${ZSH_VERSION+set} = xset ; then
226
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228
  else
229
    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230
$0: including any error possibly output before this
231
$0: message. Then install a modern shell, or manually run
232
$0: the script under such a shell if you do have one."
233
  fi
234
  exit 1
235
fi
236
fi
237
fi
238
SHELL=${CONFIG_SHELL-/bin/sh}
239
export SHELL
240
# Unset more variables known to interfere with behavior of common tools.
241
CLICOLOR_FORCE= GREP_OPTIONS=
242
unset CLICOLOR_FORCE GREP_OPTIONS
243
 
244
## --------------------- ##
245
## M4sh Shell Functions. ##
246
## --------------------- ##
247
# as_fn_unset VAR
248
# ---------------
249
# Portably unset VAR.
250
as_fn_unset ()
251
{
252
  { eval $1=; unset $1;}
253
}
254
as_unset=as_fn_unset
255
 
256
# as_fn_set_status STATUS
257
# -----------------------
258
# Set $? to STATUS, without forking.
259
as_fn_set_status ()
260
{
261
  return $1
262
} # as_fn_set_status
263
 
264
# as_fn_exit STATUS
265
# -----------------
266
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267
as_fn_exit ()
268
{
269
  set +e
270
  as_fn_set_status $1
271
  exit $1
272
} # as_fn_exit
273
 
274
# as_fn_mkdir_p
275
# -------------
276
# Create "$as_dir" as a directory, including parents if necessary.
277
as_fn_mkdir_p ()
278
{
279
 
280
  case $as_dir in #(
281
  -*) as_dir=./$as_dir;;
282
  esac
283
  test -d "$as_dir" || eval $as_mkdir_p || {
284
    as_dirs=
285
    while :; do
286
      case $as_dir in #(
287
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288
      *) as_qdir=$as_dir;;
289
      esac
290
      as_dirs="'$as_qdir' $as_dirs"
291
      as_dir=`$as_dirname -- "$as_dir" ||
292
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293
         X"$as_dir" : 'X\(//\)[^/]' \| \
294
         X"$as_dir" : 'X\(//\)$' \| \
295
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296
$as_echo X"$as_dir" |
297
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298
            s//\1/
299
            q
300
          }
301
          /^X\(\/\/\)[^/].*/{
302
            s//\1/
303
            q
304
          }
305
          /^X\(\/\/\)$/{
306
            s//\1/
307
            q
308
          }
309
          /^X\(\/\).*/{
310
            s//\1/
311
            q
312
          }
313
          s/.*/./; q'`
314
      test -d "$as_dir" && break
315
    done
316
    test -z "$as_dirs" || eval "mkdir $as_dirs"
317
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
 
319
 
320
} # as_fn_mkdir_p
321
# as_fn_append VAR VALUE
322
# ----------------------
323
# Append the text in VALUE to the end of the definition contained in VAR. Take
324
# advantage of any shell optimizations that allow amortized linear growth over
325
# repeated appends, instead of the typical quadratic growth present in naive
326
# implementations.
327
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328
  eval 'as_fn_append ()
329
  {
330
    eval $1+=\$2
331
  }'
332
else
333
  as_fn_append ()
334
  {
335
    eval $1=\$$1\$2
336
  }
337
fi # as_fn_append
338
 
339
# as_fn_arith ARG...
340
# ------------------
341
# Perform arithmetic evaluation on the ARGs, and store the result in the
342
# global $as_val. Take advantage of shells that can avoid forks. The arguments
343
# must be portable across $(()) and expr.
344
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345
  eval 'as_fn_arith ()
346
  {
347
    as_val=$(( $* ))
348
  }'
349
else
350
  as_fn_arith ()
351
  {
352
    as_val=`expr "$@" || test $? -eq 1`
353
  }
354
fi # as_fn_arith
355
 
356
 
357
# as_fn_error ERROR [LINENO LOG_FD]
358
# ---------------------------------
359
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361
# script with status $?, using 1 if that was 0.
362
as_fn_error ()
363
{
364
  as_status=$?; test $as_status -eq 0 && as_status=1
365
  if test "$3"; then
366
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368
  fi
369
  $as_echo "$as_me: error: $1" >&2
370
  as_fn_exit $as_status
371
} # as_fn_error
372
 
373
if expr a : '\(a\)' >/dev/null 2>&1 &&
374
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
375
  as_expr=expr
376
else
377
  as_expr=false
378
fi
379
 
380
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381
  as_basename=basename
382
else
383
  as_basename=false
384
fi
385
 
386
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387
  as_dirname=dirname
388
else
389
  as_dirname=false
390
fi
391
 
392
as_me=`$as_basename -- "$0" ||
393
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394
         X"$0" : 'X\(//\)$' \| \
395
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396
$as_echo X/"$0" |
397
    sed '/^.*\/\([^/][^/]*\)\/*$/{
398
            s//\1/
399
            q
400
          }
401
          /^X\/\(\/\/\)$/{
402
            s//\1/
403
            q
404
          }
405
          /^X\/\(\/\).*/{
406
            s//\1/
407
            q
408
          }
409
          s/.*/./; q'`
410
 
411
# Avoid depending upon Character Ranges.
412
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415
as_cr_digits='0123456789'
416
as_cr_alnum=$as_cr_Letters$as_cr_digits
417
 
418
 
419
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
420
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
421
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
424
  sed -n '
425
    p
426
    /[$]LINENO/=
427
  ' <$as_myself |
428
    sed '
429
      s/[$]LINENO.*/&-/
430
      t lineno
431
      b
432
      :lineno
433
      N
434
      :loop
435
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436
      t loop
437
      s/-\n.*//
438
    ' >$as_me.lineno &&
439
  chmod +x "$as_me.lineno" ||
440
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
441
 
442
  # Don't try to exec as it changes $[0], causing all sort of problems
443
  # (the dirname of $[0] is not the place where we might find the
444
  # original and so on.  Autoconf is especially sensitive to this).
445
  . "./$as_me.lineno"
446
  # Exit status is that of the last command.
447
  exit
448
}
449
 
450
ECHO_C= ECHO_N= ECHO_T=
451
case `echo -n x` in #(((((
452
-n*)
453
  case `echo 'xy\c'` in
454
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
455
  xy)  ECHO_C='\c';;
456
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
457
       ECHO_T=' ';;
458
  esac;;
459
*)
460
  ECHO_N='-n';;
461
esac
462
 
463
rm -f conf$$ conf$$.exe conf$$.file
464
if test -d conf$$.dir; then
465
  rm -f conf$$.dir/conf$$.file
466
else
467
  rm -f conf$$.dir
468
  mkdir conf$$.dir 2>/dev/null
469
fi
470
if (echo >conf$$.file) 2>/dev/null; then
471
  if ln -s conf$$.file conf$$ 2>/dev/null; then
472
    as_ln_s='ln -s'
473
    # ... but there are two gotchas:
474
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476
    # In both cases, we have to default to `cp -p'.
477
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478
      as_ln_s='cp -p'
479
  elif ln conf$$.file conf$$ 2>/dev/null; then
480
    as_ln_s=ln
481
  else
482
    as_ln_s='cp -p'
483
  fi
484
else
485
  as_ln_s='cp -p'
486
fi
487
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488
rmdir conf$$.dir 2>/dev/null
489
 
490
if mkdir -p . 2>/dev/null; then
491
  as_mkdir_p='mkdir -p "$as_dir"'
492
else
493
  test -d ./-p && rmdir ./-p
494
  as_mkdir_p=false
495
fi
496
 
497
if test -x / >/dev/null 2>&1; then
498
  as_test_x='test -x'
499
else
500
  if ls -dL / >/dev/null 2>&1; then
501
    as_ls_L_option=L
502
  else
503
    as_ls_L_option=
504
  fi
505
  as_test_x='
506
    eval sh -c '\''
507
      if test -d "$1"; then
508
        test -d "$1/.";
509
      else
510
        case $1 in #(
511
        -*)set "./$1";;
512
        esac;
513
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514
        ???[sx]*):;;*)false;;esac;fi
515
    '\'' sh
516
  '
517
fi
518
as_executable_p=$as_test_x
519
 
520
# Sed expression to map a string onto a valid CPP name.
521
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
 
523
# Sed expression to map a string onto a valid variable name.
524
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
 
526
 
527
 
528
# Check that we are running under the correct shell.
529
SHELL=${CONFIG_SHELL-/bin/sh}
530
 
531
case X$lt_ECHO in
532
X*--fallback-echo)
533
  # Remove one level of quotation (which was required for Make).
534
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
535
  ;;
536
esac
537
 
538
ECHO=${lt_ECHO-echo}
539
if test "X$1" = X--no-reexec; then
540
  # Discard the --no-reexec flag, and continue.
541
  shift
542
elif test "X$1" = X--fallback-echo; then
543
  # Avoid inline document here, it may be left over
544
  :
545
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
546
  # Yippee, $ECHO works!
547
  :
548
else
549
  # Restart under the correct shell.
550
  exec $SHELL "$0" --no-reexec ${1+"$@"}
551
fi
552
 
553
if test "X$1" = X--fallback-echo; then
554
  # used as fallback echo
555
  shift
556
  cat <<_LT_EOF
557
$*
558
_LT_EOF
559
  exit 0
560
fi
561
 
562
# The HP-UX ksh and POSIX shell print the target directory to stdout
563
# if CDPATH is set.
564
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
565
 
566
if test -z "$lt_ECHO"; then
567
  if test "X${echo_test_string+set}" != Xset; then
568
    # find a string as large as possible, as long as the shell can cope with it
569
    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
570
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
571
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
572
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
573
      then
574
        break
575
      fi
576
    done
577
  fi
578
 
579
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
580
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
581
     test "X$echo_testing_string" = "X$echo_test_string"; then
582
    :
583
  else
584
    # The Solaris, AIX, and Digital Unix default echo programs unquote
585
    # backslashes.  This makes it impossible to quote backslashes using
586
    #   echo "$something" | sed 's/\\/\\\\/g'
587
    #
588
    # So, first we look for a working echo in the user's PATH.
589
 
590
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
591
    for dir in $PATH /usr/ucb; do
592
      IFS="$lt_save_ifs"
593
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
594
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
595
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
596
         test "X$echo_testing_string" = "X$echo_test_string"; then
597
        ECHO="$dir/echo"
598
        break
599
      fi
600
    done
601
    IFS="$lt_save_ifs"
602
 
603
    if test "X$ECHO" = Xecho; then
604
      # We didn't find a better echo, so look for alternatives.
605
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
606
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
607
         test "X$echo_testing_string" = "X$echo_test_string"; then
608
        # This shell has a builtin print -r that does the trick.
609
        ECHO='print -r'
610
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
611
           test "X$CONFIG_SHELL" != X/bin/ksh; then
612
        # If we have ksh, try running configure again with it.
613
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
614
        export ORIGINAL_CONFIG_SHELL
615
        CONFIG_SHELL=/bin/ksh
616
        export CONFIG_SHELL
617
        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
618
      else
619
        # Try using printf.
620
        ECHO='printf %s\n'
621
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
622
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
623
           test "X$echo_testing_string" = "X$echo_test_string"; then
624
          # Cool, printf works
625
          :
626
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
627
             test "X$echo_testing_string" = 'X\t' &&
628
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
629
             test "X$echo_testing_string" = "X$echo_test_string"; then
630
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
631
          export CONFIG_SHELL
632
          SHELL="$CONFIG_SHELL"
633
          export SHELL
634
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
635
        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
636
             test "X$echo_testing_string" = 'X\t' &&
637
             echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
638
             test "X$echo_testing_string" = "X$echo_test_string"; then
639
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
640
        else
641
          # maybe with a smaller string...
642
          prev=:
643
 
644
          for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
645
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
646
            then
647
              break
648
            fi
649
            prev="$cmd"
650
          done
651
 
652
          if test "$prev" != 'sed 50q "$0"'; then
653
            echo_test_string=`eval $prev`
654
            export echo_test_string
655
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
656
          else
657
            # Oops.  We lost completely, so just stick with echo.
658
            ECHO=echo
659
          fi
660
        fi
661
      fi
662
    fi
663
  fi
664
fi
665
 
666
# Copy echo and quote the copy suitably for passing to libtool from
667
# the Makefile, instead of quoting the original, which is used later.
668
lt_ECHO=$ECHO
669
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
670
   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
671
fi
672
 
673
 
674
 
675
 
676
exec 7<&0 &1
677
 
678
# Name of the host.
679
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
680
# so uname gets run too.
681
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
682
 
683
#
684
# Initializations.
685
#
686
ac_default_prefix=/usr/local
687
ac_clean_files=
688
ac_config_libobj_dir=.
689
LIBOBJS=
690
cross_compiling=no
691
subdirs=
692
MFLAGS=
693
MAKEFLAGS=
694
 
695
# Identity of this package.
696
PACKAGE_NAME=
697
PACKAGE_TARNAME=
698
PACKAGE_VERSION=
699
PACKAGE_STRING=
700
PACKAGE_BUGREPORT=
701
PACKAGE_URL=
702
 
703
ac_unique_file="gprof.c"
704
# Factoring default headers for most tests.
705
ac_includes_default="\
706
#include 
707
#ifdef HAVE_SYS_TYPES_H
708
# include 
709
#endif
710
#ifdef HAVE_SYS_STAT_H
711
# include 
712
#endif
713
#ifdef STDC_HEADERS
714
# include 
715
# include 
716
#else
717
# ifdef HAVE_STDLIB_H
718
#  include 
719
# endif
720
#endif
721
#ifdef HAVE_STRING_H
722
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
723
#  include 
724
# endif
725
# include 
726
#endif
727
#ifdef HAVE_STRINGS_H
728
# include 
729
#endif
730
#ifdef HAVE_INTTYPES_H
731
# include 
732
#endif
733
#ifdef HAVE_STDINT_H
734
# include 
735
#endif
736
#ifdef HAVE_UNISTD_H
737
# include 
738
#endif"
739
 
740
ac_subst_vars='am__EXEEXT_FALSE
741
am__EXEEXT_TRUE
742
LTLIBOBJS
743
LIBOBJS
744
NO_WERROR
745
WARN_CFLAGS
746
GENINSRC_NEVER_FALSE
747
GENINSRC_NEVER_TRUE
748
MAINT
749
MAINTAINER_MODE_FALSE
750
MAINTAINER_MODE_TRUE
751
MSGMERGE
752
MSGFMT
753
MKINSTALLDIRS
754
CATOBJEXT
755
GENCAT
756
INSTOBJEXT
757
DATADIRNAME
758
CATALOGS
759
POSUB
760
GMSGFMT
761
XGETTEXT
762
INCINTL
763
LIBINTL_DEP
764
LIBINTL
765
USE_NLS
766
OTOOL64
767
OTOOL
768
LIPO
769
NMEDIT
770
DSYMUTIL
771
lt_ECHO
772
RANLIB
773
AR
774
OBJDUMP
775
LN_S
776
NM
777
ac_ct_DUMPBIN
778
DUMPBIN
779
LD
780
FGREP
781
SED
782
LIBTOOL
783
EGREP
784
GREP
785
CPP
786
am__fastdepCC_FALSE
787
am__fastdepCC_TRUE
788
CCDEPMODE
789
AMDEPBACKSLASH
790
AMDEP_FALSE
791
AMDEP_TRUE
792
am__quote
793
am__include
794
DEPDIR
795
am__untar
796
am__tar
797
AMTAR
798
am__leading_dot
799
SET_MAKE
800
AWK
801
mkdir_p
802
MKDIR_P
803
INSTALL_STRIP_PROGRAM
804
STRIP
805
install_sh
806
MAKEINFO
807
AUTOHEADER
808
AUTOMAKE
809
AUTOCONF
810
ACLOCAL
811
VERSION
812
PACKAGE
813
CYGPATH_W
814
am__isrc
815
INSTALL_DATA
816
INSTALL_SCRIPT
817
INSTALL_PROGRAM
818
OBJEXT
819
EXEEXT
820
ac_ct_CC
821
CPPFLAGS
822
LDFLAGS
823
CFLAGS
824
CC
825
target_os
826
target_vendor
827
target_cpu
828
target
829
host_os
830
host_vendor
831
host_cpu
832
host
833
build_os
834
build_vendor
835
build_cpu
836
build
837
target_alias
838
host_alias
839
build_alias
840
LIBS
841
ECHO_T
842
ECHO_N
843
ECHO_C
844
DEFS
845
mandir
846
localedir
847
libdir
848
psdir
849
pdfdir
850
dvidir
851
htmldir
852
infodir
853
docdir
854
oldincludedir
855
includedir
856
localstatedir
857
sharedstatedir
858
sysconfdir
859
datadir
860
datarootdir
861
libexecdir
862
sbindir
863
bindir
864
program_transform_name
865
prefix
866
exec_prefix
867
PACKAGE_URL
868
PACKAGE_BUGREPORT
869
PACKAGE_STRING
870
PACKAGE_VERSION
871
PACKAGE_TARNAME
872
PACKAGE_NAME
873
PATH_SEPARATOR
874
SHELL'
875
ac_subst_files=''
876
ac_user_opts='
877
enable_option_checking
878
enable_dependency_tracking
879
enable_largefile
880
enable_shared
881
enable_static
882
with_pic
883
enable_fast_install
884
with_gnu_ld
885
enable_libtool_lock
886
enable_nls
887
enable_maintainer_mode
888
enable_werror
889
enable_build_warnings
890
'
891
      ac_precious_vars='build_alias
892
host_alias
893
target_alias
894
CC
895
CFLAGS
896
LDFLAGS
897
LIBS
898
CPPFLAGS
899
CPP'
900
 
901
 
902
# Initialize some variables set by options.
903
ac_init_help=
904
ac_init_version=false
905
ac_unrecognized_opts=
906
ac_unrecognized_sep=
907
# The variables have the same names as the options, with
908
# dashes changed to underlines.
909
cache_file=/dev/null
910
exec_prefix=NONE
911
no_create=
912
no_recursion=
913
prefix=NONE
914
program_prefix=NONE
915
program_suffix=NONE
916
program_transform_name=s,x,x,
917
silent=
918
site=
919
srcdir=
920
verbose=
921
x_includes=NONE
922
x_libraries=NONE
923
 
924
# Installation directory options.
925
# These are left unexpanded so users can "make install exec_prefix=/foo"
926
# and all the variables that are supposed to be based on exec_prefix
927
# by default will actually change.
928
# Use braces instead of parens because sh, perl, etc. also accept them.
929
# (The list follows the same order as the GNU Coding Standards.)
930
bindir='${exec_prefix}/bin'
931
sbindir='${exec_prefix}/sbin'
932
libexecdir='${exec_prefix}/libexec'
933
datarootdir='${prefix}/share'
934
datadir='${datarootdir}'
935
sysconfdir='${prefix}/etc'
936
sharedstatedir='${prefix}/com'
937
localstatedir='${prefix}/var'
938
includedir='${prefix}/include'
939
oldincludedir='/usr/include'
940
docdir='${datarootdir}/doc/${PACKAGE}'
941
infodir='${datarootdir}/info'
942
htmldir='${docdir}'
943
dvidir='${docdir}'
944
pdfdir='${docdir}'
945
psdir='${docdir}'
946
libdir='${exec_prefix}/lib'
947
localedir='${datarootdir}/locale'
948
mandir='${datarootdir}/man'
949
 
950
ac_prev=
951
ac_dashdash=
952
for ac_option
953
do
954
  # If the previous option needs an argument, assign it.
955
  if test -n "$ac_prev"; then
956
    eval $ac_prev=\$ac_option
957
    ac_prev=
958
    continue
959
  fi
960
 
961
  case $ac_option in
962
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
963
  *)    ac_optarg=yes ;;
964
  esac
965
 
966
  # Accept the important Cygnus configure options, so we can diagnose typos.
967
 
968
  case $ac_dashdash$ac_option in
969
  --)
970
    ac_dashdash=yes ;;
971
 
972
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
973
    ac_prev=bindir ;;
974
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
975
    bindir=$ac_optarg ;;
976
 
977
  -build | --build | --buil | --bui | --bu)
978
    ac_prev=build_alias ;;
979
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
980
    build_alias=$ac_optarg ;;
981
 
982
  -cache-file | --cache-file | --cache-fil | --cache-fi \
983
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
984
    ac_prev=cache_file ;;
985
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
986
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
987
    cache_file=$ac_optarg ;;
988
 
989
  --config-cache | -C)
990
    cache_file=config.cache ;;
991
 
992
  -datadir | --datadir | --datadi | --datad)
993
    ac_prev=datadir ;;
994
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
995
    datadir=$ac_optarg ;;
996
 
997
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
998
  | --dataroo | --dataro | --datar)
999
    ac_prev=datarootdir ;;
1000
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1001
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1002
    datarootdir=$ac_optarg ;;
1003
 
1004
  -disable-* | --disable-*)
1005
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1006
    # Reject names that are not valid shell variable names.
1007
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1008
      as_fn_error "invalid feature name: $ac_useropt"
1009
    ac_useropt_orig=$ac_useropt
1010
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1011
    case $ac_user_opts in
1012
      *"
1013
"enable_$ac_useropt"
1014
"*) ;;
1015
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1016
         ac_unrecognized_sep=', ';;
1017
    esac
1018
    eval enable_$ac_useropt=no ;;
1019
 
1020
  -docdir | --docdir | --docdi | --doc | --do)
1021
    ac_prev=docdir ;;
1022
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1023
    docdir=$ac_optarg ;;
1024
 
1025
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1026
    ac_prev=dvidir ;;
1027
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1028
    dvidir=$ac_optarg ;;
1029
 
1030
  -enable-* | --enable-*)
1031
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1032
    # Reject names that are not valid shell variable names.
1033
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1034
      as_fn_error "invalid feature name: $ac_useropt"
1035
    ac_useropt_orig=$ac_useropt
1036
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1037
    case $ac_user_opts in
1038
      *"
1039
"enable_$ac_useropt"
1040
"*) ;;
1041
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1042
         ac_unrecognized_sep=', ';;
1043
    esac
1044
    eval enable_$ac_useropt=\$ac_optarg ;;
1045
 
1046
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1047
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1048
  | --exec | --exe | --ex)
1049
    ac_prev=exec_prefix ;;
1050
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1051
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1052
  | --exec=* | --exe=* | --ex=*)
1053
    exec_prefix=$ac_optarg ;;
1054
 
1055
  -gas | --gas | --ga | --g)
1056
    # Obsolete; use --with-gas.
1057
    with_gas=yes ;;
1058
 
1059
  -help | --help | --hel | --he | -h)
1060
    ac_init_help=long ;;
1061
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1062
    ac_init_help=recursive ;;
1063
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1064
    ac_init_help=short ;;
1065
 
1066
  -host | --host | --hos | --ho)
1067
    ac_prev=host_alias ;;
1068
  -host=* | --host=* | --hos=* | --ho=*)
1069
    host_alias=$ac_optarg ;;
1070
 
1071
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1072
    ac_prev=htmldir ;;
1073
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1074
  | --ht=*)
1075
    htmldir=$ac_optarg ;;
1076
 
1077
  -includedir | --includedir | --includedi | --included | --include \
1078
  | --includ | --inclu | --incl | --inc)
1079
    ac_prev=includedir ;;
1080
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1081
  | --includ=* | --inclu=* | --incl=* | --inc=*)
1082
    includedir=$ac_optarg ;;
1083
 
1084
  -infodir | --infodir | --infodi | --infod | --info | --inf)
1085
    ac_prev=infodir ;;
1086
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1087
    infodir=$ac_optarg ;;
1088
 
1089
  -libdir | --libdir | --libdi | --libd)
1090
    ac_prev=libdir ;;
1091
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1092
    libdir=$ac_optarg ;;
1093
 
1094
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1095
  | --libexe | --libex | --libe)
1096
    ac_prev=libexecdir ;;
1097
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1098
  | --libexe=* | --libex=* | --libe=*)
1099
    libexecdir=$ac_optarg ;;
1100
 
1101
  -localedir | --localedir | --localedi | --localed | --locale)
1102
    ac_prev=localedir ;;
1103
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1104
    localedir=$ac_optarg ;;
1105
 
1106
  -localstatedir | --localstatedir | --localstatedi | --localstated \
1107
  | --localstate | --localstat | --localsta | --localst | --locals)
1108
    ac_prev=localstatedir ;;
1109
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1110
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1111
    localstatedir=$ac_optarg ;;
1112
 
1113
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1114
    ac_prev=mandir ;;
1115
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1116
    mandir=$ac_optarg ;;
1117
 
1118
  -nfp | --nfp | --nf)
1119
    # Obsolete; use --without-fp.
1120
    with_fp=no ;;
1121
 
1122
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1123
  | --no-cr | --no-c | -n)
1124
    no_create=yes ;;
1125
 
1126
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1127
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1128
    no_recursion=yes ;;
1129
 
1130
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1131
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1132
  | --oldin | --oldi | --old | --ol | --o)
1133
    ac_prev=oldincludedir ;;
1134
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1135
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1136
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1137
    oldincludedir=$ac_optarg ;;
1138
 
1139
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1140
    ac_prev=prefix ;;
1141
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1142
    prefix=$ac_optarg ;;
1143
 
1144
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1145
  | --program-pre | --program-pr | --program-p)
1146
    ac_prev=program_prefix ;;
1147
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1148
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1149
    program_prefix=$ac_optarg ;;
1150
 
1151
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1152
  | --program-suf | --program-su | --program-s)
1153
    ac_prev=program_suffix ;;
1154
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1155
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1156
    program_suffix=$ac_optarg ;;
1157
 
1158
  -program-transform-name | --program-transform-name \
1159
  | --program-transform-nam | --program-transform-na \
1160
  | --program-transform-n | --program-transform- \
1161
  | --program-transform | --program-transfor \
1162
  | --program-transfo | --program-transf \
1163
  | --program-trans | --program-tran \
1164
  | --progr-tra | --program-tr | --program-t)
1165
    ac_prev=program_transform_name ;;
1166
  -program-transform-name=* | --program-transform-name=* \
1167
  | --program-transform-nam=* | --program-transform-na=* \
1168
  | --program-transform-n=* | --program-transform-=* \
1169
  | --program-transform=* | --program-transfor=* \
1170
  | --program-transfo=* | --program-transf=* \
1171
  | --program-trans=* | --program-tran=* \
1172
  | --progr-tra=* | --program-tr=* | --program-t=*)
1173
    program_transform_name=$ac_optarg ;;
1174
 
1175
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1176
    ac_prev=pdfdir ;;
1177
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1178
    pdfdir=$ac_optarg ;;
1179
 
1180
  -psdir | --psdir | --psdi | --psd | --ps)
1181
    ac_prev=psdir ;;
1182
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1183
    psdir=$ac_optarg ;;
1184
 
1185
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1186
  | -silent | --silent | --silen | --sile | --sil)
1187
    silent=yes ;;
1188
 
1189
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1190
    ac_prev=sbindir ;;
1191
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1192
  | --sbi=* | --sb=*)
1193
    sbindir=$ac_optarg ;;
1194
 
1195
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1196
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1197
  | --sharedst | --shareds | --shared | --share | --shar \
1198
  | --sha | --sh)
1199
    ac_prev=sharedstatedir ;;
1200
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1201
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1202
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1203
  | --sha=* | --sh=*)
1204
    sharedstatedir=$ac_optarg ;;
1205
 
1206
  -site | --site | --sit)
1207
    ac_prev=site ;;
1208
  -site=* | --site=* | --sit=*)
1209
    site=$ac_optarg ;;
1210
 
1211
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1212
    ac_prev=srcdir ;;
1213
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1214
    srcdir=$ac_optarg ;;
1215
 
1216
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1217
  | --syscon | --sysco | --sysc | --sys | --sy)
1218
    ac_prev=sysconfdir ;;
1219
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1220
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1221
    sysconfdir=$ac_optarg ;;
1222
 
1223
  -target | --target | --targe | --targ | --tar | --ta | --t)
1224
    ac_prev=target_alias ;;
1225
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1226
    target_alias=$ac_optarg ;;
1227
 
1228
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1229
    verbose=yes ;;
1230
 
1231
  -version | --version | --versio | --versi | --vers | -V)
1232
    ac_init_version=: ;;
1233
 
1234
  -with-* | --with-*)
1235
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1236
    # Reject names that are not valid shell variable names.
1237
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1238
      as_fn_error "invalid package name: $ac_useropt"
1239
    ac_useropt_orig=$ac_useropt
1240
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1241
    case $ac_user_opts in
1242
      *"
1243
"with_$ac_useropt"
1244
"*) ;;
1245
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1246
         ac_unrecognized_sep=', ';;
1247
    esac
1248
    eval with_$ac_useropt=\$ac_optarg ;;
1249
 
1250
  -without-* | --without-*)
1251
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1252
    # Reject names that are not valid shell variable names.
1253
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1254
      as_fn_error "invalid package name: $ac_useropt"
1255
    ac_useropt_orig=$ac_useropt
1256
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1257
    case $ac_user_opts in
1258
      *"
1259
"with_$ac_useropt"
1260
"*) ;;
1261
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1262
         ac_unrecognized_sep=', ';;
1263
    esac
1264
    eval with_$ac_useropt=no ;;
1265
 
1266
  --x)
1267
    # Obsolete; use --with-x.
1268
    with_x=yes ;;
1269
 
1270
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1271
  | --x-incl | --x-inc | --x-in | --x-i)
1272
    ac_prev=x_includes ;;
1273
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1274
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1275
    x_includes=$ac_optarg ;;
1276
 
1277
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1278
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1279
    ac_prev=x_libraries ;;
1280
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1281
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1282
    x_libraries=$ac_optarg ;;
1283
 
1284
  -*) as_fn_error "unrecognized option: \`$ac_option'
1285
Try \`$0 --help' for more information."
1286
    ;;
1287
 
1288
  *=*)
1289
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1290
    # Reject names that are not valid shell variable names.
1291
    case $ac_envvar in #(
1292
      '' | [0-9]* | *[!_$as_cr_alnum]* )
1293
      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1294
    esac
1295
    eval $ac_envvar=\$ac_optarg
1296
    export $ac_envvar ;;
1297
 
1298
  *)
1299
    # FIXME: should be removed in autoconf 3.0.
1300
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1301
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1302
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1303
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1304
    ;;
1305
 
1306
  esac
1307
done
1308
 
1309
if test -n "$ac_prev"; then
1310
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1311
  as_fn_error "missing argument to $ac_option"
1312
fi
1313
 
1314
if test -n "$ac_unrecognized_opts"; then
1315
  case $enable_option_checking in
1316
    no) ;;
1317
    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1318
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1319
  esac
1320
fi
1321
 
1322
# Check all directory arguments for consistency.
1323
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1324
                datadir sysconfdir sharedstatedir localstatedir includedir \
1325
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1326
                libdir localedir mandir
1327
do
1328
  eval ac_val=\$$ac_var
1329
  # Remove trailing slashes.
1330
  case $ac_val in
1331
    */ )
1332
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1333
      eval $ac_var=\$ac_val;;
1334
  esac
1335
  # Be sure to have absolute directory names.
1336
  case $ac_val in
1337
    [\\/$]* | ?:[\\/]* )  continue;;
1338
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1339
  esac
1340
  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1341
done
1342
 
1343
# There might be people who depend on the old broken behavior: `$host'
1344
# used to hold the argument of --host etc.
1345
# FIXME: To remove some day.
1346
build=$build_alias
1347
host=$host_alias
1348
target=$target_alias
1349
 
1350
# FIXME: To remove some day.
1351
if test "x$host_alias" != x; then
1352
  if test "x$build_alias" = x; then
1353
    cross_compiling=maybe
1354
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1355
    If a cross compiler is detected then cross compile mode will be used." >&2
1356
  elif test "x$build_alias" != "x$host_alias"; then
1357
    cross_compiling=yes
1358
  fi
1359
fi
1360
 
1361
ac_tool_prefix=
1362
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1363
 
1364
test "$silent" = yes && exec 6>/dev/null
1365
 
1366
 
1367
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1368
ac_ls_di=`ls -di .` &&
1369
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1370
  as_fn_error "working directory cannot be determined"
1371
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1372
  as_fn_error "pwd does not report name of working directory"
1373
 
1374
 
1375
# Find the source files, if location was not specified.
1376
if test -z "$srcdir"; then
1377
  ac_srcdir_defaulted=yes
1378
  # Try the directory containing this script, then the parent directory.
1379
  ac_confdir=`$as_dirname -- "$as_myself" ||
1380
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1381
         X"$as_myself" : 'X\(//\)[^/]' \| \
1382
         X"$as_myself" : 'X\(//\)$' \| \
1383
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1384
$as_echo X"$as_myself" |
1385
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1386
            s//\1/
1387
            q
1388
          }
1389
          /^X\(\/\/\)[^/].*/{
1390
            s//\1/
1391
            q
1392
          }
1393
          /^X\(\/\/\)$/{
1394
            s//\1/
1395
            q
1396
          }
1397
          /^X\(\/\).*/{
1398
            s//\1/
1399
            q
1400
          }
1401
          s/.*/./; q'`
1402
  srcdir=$ac_confdir
1403
  if test ! -r "$srcdir/$ac_unique_file"; then
1404
    srcdir=..
1405
  fi
1406
else
1407
  ac_srcdir_defaulted=no
1408
fi
1409
if test ! -r "$srcdir/$ac_unique_file"; then
1410
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1411
  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1412
fi
1413
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1414
ac_abs_confdir=`(
1415
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1416
        pwd)`
1417
# When building in place, set srcdir=.
1418
if test "$ac_abs_confdir" = "$ac_pwd"; then
1419
  srcdir=.
1420
fi
1421
# Remove unnecessary trailing slashes from srcdir.
1422
# Double slashes in file names in object file debugging info
1423
# mess up M-x gdb in Emacs.
1424
case $srcdir in
1425
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1426
esac
1427
for ac_var in $ac_precious_vars; do
1428
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1429
  eval ac_env_${ac_var}_value=\$${ac_var}
1430
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1431
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1432
done
1433
 
1434
#
1435
# Report the --help message.
1436
#
1437
if test "$ac_init_help" = "long"; then
1438
  # Omit some internal or obsolete options to make the list less imposing.
1439
  # This message is too long to be a string in the A/UX 3.1 sh.
1440
  cat <<_ACEOF
1441
\`configure' configures this package to adapt to many kinds of systems.
1442
 
1443
Usage: $0 [OPTION]... [VAR=VALUE]...
1444
 
1445
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1446
VAR=VALUE.  See below for descriptions of some of the useful variables.
1447
 
1448
Defaults for the options are specified in brackets.
1449
 
1450
Configuration:
1451
  -h, --help              display this help and exit
1452
      --help=short        display options specific to this package
1453
      --help=recursive    display the short help of all the included packages
1454
  -V, --version           display version information and exit
1455
  -q, --quiet, --silent   do not print \`checking...' messages
1456
      --cache-file=FILE   cache test results in FILE [disabled]
1457
  -C, --config-cache      alias for \`--cache-file=config.cache'
1458
  -n, --no-create         do not create output files
1459
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1460
 
1461
Installation directories:
1462
  --prefix=PREFIX         install architecture-independent files in PREFIX
1463
                          [$ac_default_prefix]
1464
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1465
                          [PREFIX]
1466
 
1467
By default, \`make install' will install all the files in
1468
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1469
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1470
for instance \`--prefix=\$HOME'.
1471
 
1472
For better control, use the options below.
1473
 
1474
Fine tuning of the installation directories:
1475
  --bindir=DIR            user executables [EPREFIX/bin]
1476
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1477
  --libexecdir=DIR        program executables [EPREFIX/libexec]
1478
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1479
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1480
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1481
  --libdir=DIR            object code libraries [EPREFIX/lib]
1482
  --includedir=DIR        C header files [PREFIX/include]
1483
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1484
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1485
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1486
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1487
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1488
  --mandir=DIR            man documentation [DATAROOTDIR/man]
1489
  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1490
  --htmldir=DIR           html documentation [DOCDIR]
1491
  --dvidir=DIR            dvi documentation [DOCDIR]
1492
  --pdfdir=DIR            pdf documentation [DOCDIR]
1493
  --psdir=DIR             ps documentation [DOCDIR]
1494
_ACEOF
1495
 
1496
  cat <<\_ACEOF
1497
 
1498
Program names:
1499
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1500
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1501
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1502
 
1503
System types:
1504
  --build=BUILD     configure for building on BUILD [guessed]
1505
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1506
  --target=TARGET   configure for building compilers for TARGET [HOST]
1507
_ACEOF
1508
fi
1509
 
1510
if test -n "$ac_init_help"; then
1511
 
1512
  cat <<\_ACEOF
1513
 
1514
Optional Features:
1515
  --disable-option-checking  ignore unrecognized --enable/--with options
1516
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1517
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1518
  --disable-dependency-tracking  speeds up one-time build
1519
  --enable-dependency-tracking   do not reject slow dependency extractors
1520
  --disable-largefile     omit support for large files
1521
  --enable-shared[=PKGS]  build shared libraries [default=yes]
1522
  --enable-static[=PKGS]  build static libraries [default=yes]
1523
  --enable-fast-install[=PKGS]
1524
                          optimize for fast installation [default=yes]
1525
  --disable-libtool-lock  avoid locking (might break parallel builds)
1526
  --disable-nls           do not use Native Language Support
1527
  --enable-maintainer-mode  enable make rules and dependencies not useful
1528
                          (and sometimes confusing) to the casual installer
1529
  --enable-werror         treat compile warnings as errors
1530
  --enable-build-warnings enable build-time compiler warnings
1531
 
1532
Optional Packages:
1533
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1534
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1535
  --with-pic              try to use only PIC/non-PIC objects [default=use
1536
                          both]
1537
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1538
 
1539
Some influential environment variables:
1540
  CC          C compiler command
1541
  CFLAGS      C compiler flags
1542
  LDFLAGS     linker flags, e.g. -L if you have libraries in a
1543
              nonstandard directory 
1544
  LIBS        libraries to pass to the linker, e.g. -l
1545
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I if
1546
              you have headers in a nonstandard directory 
1547
  CPP         C preprocessor
1548
 
1549
Use these variables to override the choices made by `configure' or to help
1550
it to find libraries and programs with nonstandard names/locations.
1551
 
1552
Report bugs to the package provider.
1553
_ACEOF
1554
ac_status=$?
1555
fi
1556
 
1557
if test "$ac_init_help" = "recursive"; then
1558
  # If there are subdirs, report their specific --help.
1559
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1560
    test -d "$ac_dir" ||
1561
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1562
      continue
1563
    ac_builddir=.
1564
 
1565
case "$ac_dir" in
1566
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1567
*)
1568
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1569
  # A ".." for each directory in $ac_dir_suffix.
1570
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1571
  case $ac_top_builddir_sub in
1572
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1573
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1574
  esac ;;
1575
esac
1576
ac_abs_top_builddir=$ac_pwd
1577
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1578
# for backward compatibility:
1579
ac_top_builddir=$ac_top_build_prefix
1580
 
1581
case $srcdir in
1582
  .)  # We are building in place.
1583
    ac_srcdir=.
1584
    ac_top_srcdir=$ac_top_builddir_sub
1585
    ac_abs_top_srcdir=$ac_pwd ;;
1586
  [\\/]* | ?:[\\/]* )  # Absolute name.
1587
    ac_srcdir=$srcdir$ac_dir_suffix;
1588
    ac_top_srcdir=$srcdir
1589
    ac_abs_top_srcdir=$srcdir ;;
1590
  *) # Relative name.
1591
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1592
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1593
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1594
esac
1595
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1596
 
1597
    cd "$ac_dir" || { ac_status=$?; continue; }
1598
    # Check for guested configure.
1599
    if test -f "$ac_srcdir/configure.gnu"; then
1600
      echo &&
1601
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1602
    elif test -f "$ac_srcdir/configure"; then
1603
      echo &&
1604
      $SHELL "$ac_srcdir/configure" --help=recursive
1605
    else
1606
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1607
    fi || ac_status=$?
1608
    cd "$ac_pwd" || { ac_status=$?; break; }
1609
  done
1610
fi
1611
 
1612
test -n "$ac_init_help" && exit $ac_status
1613
if $ac_init_version; then
1614
  cat <<\_ACEOF
1615
configure
1616
generated by GNU Autoconf 2.64
1617
 
1618
Copyright (C) 2009 Free Software Foundation, Inc.
1619
This configure script is free software; the Free Software Foundation
1620
gives unlimited permission to copy, distribute and modify it.
1621
_ACEOF
1622
  exit
1623
fi
1624
 
1625
## ------------------------ ##
1626
## Autoconf initialization. ##
1627
## ------------------------ ##
1628
 
1629
# ac_fn_c_try_compile LINENO
1630
# --------------------------
1631
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1632
ac_fn_c_try_compile ()
1633
{
1634
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1635
  rm -f conftest.$ac_objext
1636
  if { { ac_try="$ac_compile"
1637
case "(($ac_try" in
1638
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1639
  *) ac_try_echo=$ac_try;;
1640
esac
1641
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1642
$as_echo "$ac_try_echo"; } >&5
1643
  (eval "$ac_compile") 2>conftest.err
1644
  ac_status=$?
1645
  if test -s conftest.err; then
1646
    grep -v '^ *+' conftest.err >conftest.er1
1647
    cat conftest.er1 >&5
1648
    mv -f conftest.er1 conftest.err
1649
  fi
1650
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1651
  test $ac_status = 0; } && {
1652
         test -z "$ac_c_werror_flag" ||
1653
         test ! -s conftest.err
1654
       } && test -s conftest.$ac_objext; then :
1655
  ac_retval=0
1656
else
1657
  $as_echo "$as_me: failed program was:" >&5
1658
sed 's/^/| /' conftest.$ac_ext >&5
1659
 
1660
        ac_retval=1
1661
fi
1662
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1663
  return $ac_retval
1664
 
1665
} # ac_fn_c_try_compile
1666
 
1667
# ac_fn_c_try_link LINENO
1668
# -----------------------
1669
# Try to link conftest.$ac_ext, and return whether this succeeded.
1670
ac_fn_c_try_link ()
1671
{
1672
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673
  rm -f conftest.$ac_objext conftest$ac_exeext
1674
  if { { ac_try="$ac_link"
1675
case "(($ac_try" in
1676
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1677
  *) ac_try_echo=$ac_try;;
1678
esac
1679
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1680
$as_echo "$ac_try_echo"; } >&5
1681
  (eval "$ac_link") 2>conftest.err
1682
  ac_status=$?
1683
  if test -s conftest.err; then
1684
    grep -v '^ *+' conftest.err >conftest.er1
1685
    cat conftest.er1 >&5
1686
    mv -f conftest.er1 conftest.err
1687
  fi
1688
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1689
  test $ac_status = 0; } && {
1690
         test -z "$ac_c_werror_flag" ||
1691
         test ! -s conftest.err
1692
       } && test -s conftest$ac_exeext && {
1693
         test "$cross_compiling" = yes ||
1694
         $as_test_x conftest$ac_exeext
1695
       }; then :
1696
  ac_retval=0
1697
else
1698
  $as_echo "$as_me: failed program was:" >&5
1699
sed 's/^/| /' conftest.$ac_ext >&5
1700
 
1701
        ac_retval=1
1702
fi
1703
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1704
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1705
  # interfere with the next link command; also delete a directory that is
1706
  # left behind by Apple's compiler.  We do this before executing the actions.
1707
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1708
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1709
  return $ac_retval
1710
 
1711
} # ac_fn_c_try_link
1712
 
1713
# ac_fn_c_try_cpp LINENO
1714
# ----------------------
1715
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1716
ac_fn_c_try_cpp ()
1717
{
1718
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719
  if { { ac_try="$ac_cpp conftest.$ac_ext"
1720
case "(($ac_try" in
1721
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1722
  *) ac_try_echo=$ac_try;;
1723
esac
1724
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725
$as_echo "$ac_try_echo"; } >&5
1726
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1727
  ac_status=$?
1728
  if test -s conftest.err; then
1729
    grep -v '^ *+' conftest.err >conftest.er1
1730
    cat conftest.er1 >&5
1731
    mv -f conftest.er1 conftest.err
1732
  fi
1733
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734
  test $ac_status = 0; } >/dev/null && {
1735
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1736
         test ! -s conftest.err
1737
       }; then :
1738
  ac_retval=0
1739
else
1740
  $as_echo "$as_me: failed program was:" >&5
1741
sed 's/^/| /' conftest.$ac_ext >&5
1742
 
1743
    ac_retval=1
1744
fi
1745
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1746
  return $ac_retval
1747
 
1748
} # ac_fn_c_try_cpp
1749
 
1750
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1751
# -------------------------------------------------------
1752
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1753
# the include files in INCLUDES and setting the cache variable VAR
1754
# accordingly.
1755
ac_fn_c_check_header_mongrel ()
1756
{
1757
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1758
  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1759
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1760
$as_echo_n "checking for $2... " >&6; }
1761
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1762
  $as_echo_n "(cached) " >&6
1763
fi
1764
eval ac_res=\$$3
1765
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1766
$as_echo "$ac_res" >&6; }
1767
else
1768
  # Is the header compilable?
1769
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1770
$as_echo_n "checking $2 usability... " >&6; }
1771
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1772
/* end confdefs.h.  */
1773
$4
1774
#include <$2>
1775
_ACEOF
1776
if ac_fn_c_try_compile "$LINENO"; then :
1777
  ac_header_compiler=yes
1778
else
1779
  ac_header_compiler=no
1780
fi
1781
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1782
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1783
$as_echo "$ac_header_compiler" >&6; }
1784
 
1785
# Is the header present?
1786
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1787
$as_echo_n "checking $2 presence... " >&6; }
1788
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1789
/* end confdefs.h.  */
1790
#include <$2>
1791
_ACEOF
1792
if ac_fn_c_try_cpp "$LINENO"; then :
1793
  ac_header_preproc=yes
1794
else
1795
  ac_header_preproc=no
1796
fi
1797
rm -f conftest.err conftest.$ac_ext
1798
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1799
$as_echo "$ac_header_preproc" >&6; }
1800
 
1801
# So?  What about this header?
1802
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1803
  yes:no: )
1804
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1805
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1806
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1807
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1808
    ;;
1809
  no:yes:* )
1810
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1811
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1812
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1813
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1814
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1815
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1816
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1817
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1818
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1819
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1820
    ;;
1821
esac
1822
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1823
$as_echo_n "checking for $2... " >&6; }
1824
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1825
  $as_echo_n "(cached) " >&6
1826
else
1827
  eval "$3=\$ac_header_compiler"
1828
fi
1829
eval ac_res=\$$3
1830
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1831
$as_echo "$ac_res" >&6; }
1832
fi
1833
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1834
 
1835
} # ac_fn_c_check_header_mongrel
1836
 
1837
# ac_fn_c_try_run LINENO
1838
# ----------------------
1839
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1840
# that executables *can* be run.
1841
ac_fn_c_try_run ()
1842
{
1843
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844
  if { { ac_try="$ac_link"
1845
case "(($ac_try" in
1846
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1847
  *) ac_try_echo=$ac_try;;
1848
esac
1849
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1850
$as_echo "$ac_try_echo"; } >&5
1851
  (eval "$ac_link") 2>&5
1852
  ac_status=$?
1853
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1854
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1855
  { { case "(($ac_try" in
1856
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1857
  *) ac_try_echo=$ac_try;;
1858
esac
1859
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1860
$as_echo "$ac_try_echo"; } >&5
1861
  (eval "$ac_try") 2>&5
1862
  ac_status=$?
1863
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1864
  test $ac_status = 0; }; }; then :
1865
  ac_retval=0
1866
else
1867
  $as_echo "$as_me: program exited with status $ac_status" >&5
1868
       $as_echo "$as_me: failed program was:" >&5
1869
sed 's/^/| /' conftest.$ac_ext >&5
1870
 
1871
       ac_retval=$ac_status
1872
fi
1873
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1874
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1875
  return $ac_retval
1876
 
1877
} # ac_fn_c_try_run
1878
 
1879
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1880
# -------------------------------------------------------
1881
# Tests whether HEADER exists and can be compiled using the include files in
1882
# INCLUDES, setting the cache variable VAR accordingly.
1883
ac_fn_c_check_header_compile ()
1884
{
1885
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1887
$as_echo_n "checking for $2... " >&6; }
1888
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1889
  $as_echo_n "(cached) " >&6
1890
else
1891
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1892
/* end confdefs.h.  */
1893
$4
1894
#include <$2>
1895
_ACEOF
1896
if ac_fn_c_try_compile "$LINENO"; then :
1897
  eval "$3=yes"
1898
else
1899
  eval "$3=no"
1900
fi
1901
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1902
fi
1903
eval ac_res=\$$3
1904
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1905
$as_echo "$ac_res" >&6; }
1906
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1907
 
1908
} # ac_fn_c_check_header_compile
1909
 
1910
# ac_fn_c_check_func LINENO FUNC VAR
1911
# ----------------------------------
1912
# Tests whether FUNC exists, setting the cache variable VAR accordingly
1913
ac_fn_c_check_func ()
1914
{
1915
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1916
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1917
$as_echo_n "checking for $2... " >&6; }
1918
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1919
  $as_echo_n "(cached) " >&6
1920
else
1921
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1922
/* end confdefs.h.  */
1923
/* Define $2 to an innocuous variant, in case  declares $2.
1924
   For example, HP-UX 11i  declares gettimeofday.  */
1925
#define $2 innocuous_$2
1926
 
1927
/* System header to define __stub macros and hopefully few prototypes,
1928
    which can conflict with char $2 (); below.
1929
    Prefer  to  if __STDC__ is defined, since
1930
     exists even on freestanding compilers.  */
1931
 
1932
#ifdef __STDC__
1933
# include 
1934
#else
1935
# include 
1936
#endif
1937
 
1938
#undef $2
1939
 
1940
/* Override any GCC internal prototype to avoid an error.
1941
   Use char because int might match the return type of a GCC
1942
   builtin and then its argument prototype would still apply.  */
1943
#ifdef __cplusplus
1944
extern "C"
1945
#endif
1946
char $2 ();
1947
/* The GNU C library defines this for functions which it implements
1948
    to always fail with ENOSYS.  Some functions are actually named
1949
    something starting with __ and the normal name is an alias.  */
1950
#if defined __stub_$2 || defined __stub___$2
1951
choke me
1952
#endif
1953
 
1954
int
1955
main ()
1956
{
1957
return $2 ();
1958
  ;
1959
  return 0;
1960
}
1961
_ACEOF
1962
if ac_fn_c_try_link "$LINENO"; then :
1963
  eval "$3=yes"
1964
else
1965
  eval "$3=no"
1966
fi
1967
rm -f core conftest.err conftest.$ac_objext \
1968
    conftest$ac_exeext conftest.$ac_ext
1969
fi
1970
eval ac_res=\$$3
1971
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1972
$as_echo "$ac_res" >&6; }
1973
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1974
 
1975
} # ac_fn_c_check_func
1976
cat >config.log <<_ACEOF
1977
This file contains any messages produced by compilers while
1978
running configure, to aid debugging if configure makes a mistake.
1979
 
1980
It was created by $as_me, which was
1981
generated by GNU Autoconf 2.64.  Invocation command line was
1982
 
1983
  $ $0 $@
1984
 
1985
_ACEOF
1986
exec 5>>config.log
1987
{
1988
cat <<_ASUNAME
1989
## --------- ##
1990
## Platform. ##
1991
## --------- ##
1992
 
1993
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1994
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1995
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1996
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1997
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1998
 
1999
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2000
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2001
 
2002
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2003
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2004
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2005
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2006
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2007
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2008
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2009
 
2010
_ASUNAME
2011
 
2012
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2013
for as_dir in $PATH
2014
do
2015
  IFS=$as_save_IFS
2016
  test -z "$as_dir" && as_dir=.
2017
    $as_echo "PATH: $as_dir"
2018
  done
2019
IFS=$as_save_IFS
2020
 
2021
} >&5
2022
 
2023
cat >&5 <<_ACEOF
2024
 
2025
 
2026
## ----------- ##
2027
## Core tests. ##
2028
## ----------- ##
2029
 
2030
_ACEOF
2031
 
2032
 
2033
# Keep a trace of the command line.
2034
# Strip out --no-create and --no-recursion so they do not pile up.
2035
# Strip out --silent because we don't want to record it for future runs.
2036
# Also quote any args containing shell meta-characters.
2037
# Make two passes to allow for proper duplicate-argument suppression.
2038
ac_configure_args=
2039
ac_configure_args0=
2040
ac_configure_args1=
2041
ac_must_keep_next=false
2042
for ac_pass in 1 2
2043
do
2044
  for ac_arg
2045
  do
2046
    case $ac_arg in
2047
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2048
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2049
    | -silent | --silent | --silen | --sile | --sil)
2050
      continue ;;
2051
    *\'*)
2052
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2053
    esac
2054
    case $ac_pass in
2055
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2056
    2)
2057
      as_fn_append ac_configure_args1 " '$ac_arg'"
2058
      if test $ac_must_keep_next = true; then
2059
        ac_must_keep_next=false # Got value, back to normal.
2060
      else
2061
        case $ac_arg in
2062
          *=* | --config-cache | -C | -disable-* | --disable-* \
2063
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2064
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2065
          | -with-* | --with-* | -without-* | --without-* | --x)
2066
            case "$ac_configure_args0 " in
2067
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2068
            esac
2069
            ;;
2070
          -* ) ac_must_keep_next=true ;;
2071
        esac
2072
      fi
2073
      as_fn_append ac_configure_args " '$ac_arg'"
2074
      ;;
2075
    esac
2076
  done
2077
done
2078
{ ac_configure_args0=; unset ac_configure_args0;}
2079
{ ac_configure_args1=; unset ac_configure_args1;}
2080
 
2081
# When interrupted or exit'd, cleanup temporary files, and complete
2082
# config.log.  We remove comments because anyway the quotes in there
2083
# would cause problems or look ugly.
2084
# WARNING: Use '\'' to represent an apostrophe within the trap.
2085
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2086
trap 'exit_status=$?
2087
  # Save into config.log some information that might help in debugging.
2088
  {
2089
    echo
2090
 
2091
    cat <<\_ASBOX
2092
## ---------------- ##
2093
## Cache variables. ##
2094
## ---------------- ##
2095
_ASBOX
2096
    echo
2097
    # The following way of writing the cache mishandles newlines in values,
2098
(
2099
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2100
    eval ac_val=\$$ac_var
2101
    case $ac_val in #(
2102
    *${as_nl}*)
2103
      case $ac_var in #(
2104
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2105
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2106
      esac
2107
      case $ac_var in #(
2108
      _ | IFS | as_nl) ;; #(
2109
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2110
      *) { eval $ac_var=; unset $ac_var;} ;;
2111
      esac ;;
2112
    esac
2113
  done
2114
  (set) 2>&1 |
2115
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2116
    *${as_nl}ac_space=\ *)
2117
      sed -n \
2118
        "s/'\''/'\''\\\\'\'''\''/g;
2119
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2120
      ;; #(
2121
    *)
2122
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2123
      ;;
2124
    esac |
2125
    sort
2126
)
2127
    echo
2128
 
2129
    cat <<\_ASBOX
2130
## ----------------- ##
2131
## Output variables. ##
2132
## ----------------- ##
2133
_ASBOX
2134
    echo
2135
    for ac_var in $ac_subst_vars
2136
    do
2137
      eval ac_val=\$$ac_var
2138
      case $ac_val in
2139
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2140
      esac
2141
      $as_echo "$ac_var='\''$ac_val'\''"
2142
    done | sort
2143
    echo
2144
 
2145
    if test -n "$ac_subst_files"; then
2146
      cat <<\_ASBOX
2147
## ------------------- ##
2148
## File substitutions. ##
2149
## ------------------- ##
2150
_ASBOX
2151
      echo
2152
      for ac_var in $ac_subst_files
2153
      do
2154
        eval ac_val=\$$ac_var
2155
        case $ac_val in
2156
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2157
        esac
2158
        $as_echo "$ac_var='\''$ac_val'\''"
2159
      done | sort
2160
      echo
2161
    fi
2162
 
2163
    if test -s confdefs.h; then
2164
      cat <<\_ASBOX
2165
## ----------- ##
2166
## confdefs.h. ##
2167
## ----------- ##
2168
_ASBOX
2169
      echo
2170
      cat confdefs.h
2171
      echo
2172
    fi
2173
    test "$ac_signal" != 0 &&
2174
      $as_echo "$as_me: caught signal $ac_signal"
2175
    $as_echo "$as_me: exit $exit_status"
2176
  } >&5
2177
  rm -f core *.core core.conftest.* &&
2178
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2179
    exit $exit_status
2180
' 0
2181
for ac_signal in 1 2 13 15; do
2182
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2183
done
2184
ac_signal=0
2185
 
2186
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2187
rm -f -r conftest* confdefs.h
2188
 
2189
$as_echo "/* confdefs.h */" > confdefs.h
2190
 
2191
# Predefined preprocessor variables.
2192
 
2193
cat >>confdefs.h <<_ACEOF
2194
#define PACKAGE_NAME "$PACKAGE_NAME"
2195
_ACEOF
2196
 
2197
cat >>confdefs.h <<_ACEOF
2198
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2199
_ACEOF
2200
 
2201
cat >>confdefs.h <<_ACEOF
2202
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2203
_ACEOF
2204
 
2205
cat >>confdefs.h <<_ACEOF
2206
#define PACKAGE_STRING "$PACKAGE_STRING"
2207
_ACEOF
2208
 
2209
cat >>confdefs.h <<_ACEOF
2210
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2211
_ACEOF
2212
 
2213
cat >>confdefs.h <<_ACEOF
2214
#define PACKAGE_URL "$PACKAGE_URL"
2215
_ACEOF
2216
 
2217
 
2218
# Let the site file select an alternate cache file if it wants to.
2219
# Prefer an explicitly selected file to automatically selected ones.
2220
ac_site_file1=NONE
2221
ac_site_file2=NONE
2222
if test -n "$CONFIG_SITE"; then
2223
  ac_site_file1=$CONFIG_SITE
2224
elif test "x$prefix" != xNONE; then
2225
  ac_site_file1=$prefix/share/config.site
2226
  ac_site_file2=$prefix/etc/config.site
2227
else
2228
  ac_site_file1=$ac_default_prefix/share/config.site
2229
  ac_site_file2=$ac_default_prefix/etc/config.site
2230
fi
2231
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2232
do
2233
  test "x$ac_site_file" = xNONE && continue
2234
  if test -r "$ac_site_file"; then
2235
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2236
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2237
    sed 's/^/| /' "$ac_site_file" >&5
2238
    . "$ac_site_file"
2239
  fi
2240
done
2241
 
2242
if test -r "$cache_file"; then
2243
  # Some versions of bash will fail to source /dev/null (special
2244
  # files actually), so we avoid doing that.
2245
  if test -f "$cache_file"; then
2246
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2247
$as_echo "$as_me: loading cache $cache_file" >&6;}
2248
    case $cache_file in
2249
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2250
      *)                      . "./$cache_file";;
2251
    esac
2252
  fi
2253
else
2254
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2255
$as_echo "$as_me: creating cache $cache_file" >&6;}
2256
  >$cache_file
2257
fi
2258
 
2259
# Check that the precious variables saved in the cache have kept the same
2260
# value.
2261
ac_cache_corrupted=false
2262
for ac_var in $ac_precious_vars; do
2263
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2264
  eval ac_new_set=\$ac_env_${ac_var}_set
2265
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2266
  eval ac_new_val=\$ac_env_${ac_var}_value
2267
  case $ac_old_set,$ac_new_set in
2268
    set,)
2269
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2270
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2271
      ac_cache_corrupted=: ;;
2272
    ,set)
2273
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2274
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2275
      ac_cache_corrupted=: ;;
2276
    ,);;
2277
    *)
2278
      if test "x$ac_old_val" != "x$ac_new_val"; then
2279
        # differences in whitespace do not lead to failure.
2280
        ac_old_val_w=`echo x $ac_old_val`
2281
        ac_new_val_w=`echo x $ac_new_val`
2282
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
2283
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2284
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2285
          ac_cache_corrupted=:
2286
        else
2287
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2288
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2289
          eval $ac_var=\$ac_old_val
2290
        fi
2291
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2292
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2293
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2294
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2295
      fi;;
2296
  esac
2297
  # Pass precious variables to config.status.
2298
  if test "$ac_new_set" = set; then
2299
    case $ac_new_val in
2300
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2301
    *) ac_arg=$ac_var=$ac_new_val ;;
2302
    esac
2303
    case " $ac_configure_args " in
2304
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2305
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2306
    esac
2307
  fi
2308
done
2309
if $ac_cache_corrupted; then
2310
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2311
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2312
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2313
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2314
  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2315
fi
2316
## -------------------- ##
2317
## Main body of script. ##
2318
## -------------------- ##
2319
 
2320
ac_ext=c
2321
ac_cpp='$CPP $CPPFLAGS'
2322
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2323
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2324
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2325
 
2326
 
2327
 
2328
 
2329
 
2330
 
2331
 
2332
ac_aux_dir=
2333
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2334
  for ac_t in install-sh install.sh shtool; do
2335
    if test -f "$ac_dir/$ac_t"; then
2336
      ac_aux_dir=$ac_dir
2337
      ac_install_sh="$ac_aux_dir/$ac_t -c"
2338
      break 2
2339
    fi
2340
  done
2341
done
2342
if test -z "$ac_aux_dir"; then
2343
  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2344
fi
2345
 
2346
# These three variables are undocumented and unsupported,
2347
# and are intended to be withdrawn in a future Autoconf release.
2348
# They can cause serious problems if a builder's source tree is in a directory
2349
# whose full name contains unusual characters.
2350
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2351
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2352
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2353
 
2354
 
2355
# Make sure we can run config.sub.
2356
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2357
  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2358
 
2359
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2360
$as_echo_n "checking build system type... " >&6; }
2361
if test "${ac_cv_build+set}" = set; then :
2362
  $as_echo_n "(cached) " >&6
2363
else
2364
  ac_build_alias=$build_alias
2365
test "x$ac_build_alias" = x &&
2366
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2367
test "x$ac_build_alias" = x &&
2368
  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2369
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2370
  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2371
 
2372
fi
2373
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2374
$as_echo "$ac_cv_build" >&6; }
2375
case $ac_cv_build in
2376
*-*-*) ;;
2377
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2378
esac
2379
build=$ac_cv_build
2380
ac_save_IFS=$IFS; IFS='-'
2381
set x $ac_cv_build
2382
shift
2383
build_cpu=$1
2384
build_vendor=$2
2385
shift; shift
2386
# Remember, the first character of IFS is used to create $*,
2387
# except with old shells:
2388
build_os=$*
2389
IFS=$ac_save_IFS
2390
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2391
 
2392
 
2393
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2394
$as_echo_n "checking host system type... " >&6; }
2395
if test "${ac_cv_host+set}" = set; then :
2396
  $as_echo_n "(cached) " >&6
2397
else
2398
  if test "x$host_alias" = x; then
2399
  ac_cv_host=$ac_cv_build
2400
else
2401
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2402
    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2403
fi
2404
 
2405
fi
2406
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2407
$as_echo "$ac_cv_host" >&6; }
2408
case $ac_cv_host in
2409
*-*-*) ;;
2410
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2411
esac
2412
host=$ac_cv_host
2413
ac_save_IFS=$IFS; IFS='-'
2414
set x $ac_cv_host
2415
shift
2416
host_cpu=$1
2417
host_vendor=$2
2418
shift; shift
2419
# Remember, the first character of IFS is used to create $*,
2420
# except with old shells:
2421
host_os=$*
2422
IFS=$ac_save_IFS
2423
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2424
 
2425
 
2426
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2427
$as_echo_n "checking target system type... " >&6; }
2428
if test "${ac_cv_target+set}" = set; then :
2429
  $as_echo_n "(cached) " >&6
2430
else
2431
  if test "x$target_alias" = x; then
2432
  ac_cv_target=$ac_cv_host
2433
else
2434
  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2435
    as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2436
fi
2437
 
2438
fi
2439
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2440
$as_echo "$ac_cv_target" >&6; }
2441
case $ac_cv_target in
2442
*-*-*) ;;
2443
*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2444
esac
2445
target=$ac_cv_target
2446
ac_save_IFS=$IFS; IFS='-'
2447
set x $ac_cv_target
2448
shift
2449
target_cpu=$1
2450
target_vendor=$2
2451
shift; shift
2452
# Remember, the first character of IFS is used to create $*,
2453
# except with old shells:
2454
target_os=$*
2455
IFS=$ac_save_IFS
2456
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2457
 
2458
 
2459
# The aliases save the names the user supplied, while $host etc.
2460
# will get canonicalized.
2461
test -n "$target_alias" &&
2462
  test "$program_prefix$program_suffix$program_transform_name" = \
2463
    NONENONEs,x,x, &&
2464
  program_prefix=${target_alias}-
2465
ac_ext=c
2466
ac_cpp='$CPP $CPPFLAGS'
2467
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2468
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2469
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2470
if test -n "$ac_tool_prefix"; then
2471
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2472
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2473
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2474
$as_echo_n "checking for $ac_word... " >&6; }
2475
if test "${ac_cv_prog_CC+set}" = set; then :
2476
  $as_echo_n "(cached) " >&6
2477
else
2478
  if test -n "$CC"; then
2479
  ac_cv_prog_CC="$CC" # Let the user override the test.
2480
else
2481
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2482
for as_dir in $PATH
2483
do
2484
  IFS=$as_save_IFS
2485
  test -z "$as_dir" && as_dir=.
2486
    for ac_exec_ext in '' $ac_executable_extensions; do
2487
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2488
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2489
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2490
    break 2
2491
  fi
2492
done
2493
  done
2494
IFS=$as_save_IFS
2495
 
2496
fi
2497
fi
2498
CC=$ac_cv_prog_CC
2499
if test -n "$CC"; then
2500
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2501
$as_echo "$CC" >&6; }
2502
else
2503
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2504
$as_echo "no" >&6; }
2505
fi
2506
 
2507
 
2508
fi
2509
if test -z "$ac_cv_prog_CC"; then
2510
  ac_ct_CC=$CC
2511
  # Extract the first word of "gcc", so it can be a program name with args.
2512
set dummy gcc; ac_word=$2
2513
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2514
$as_echo_n "checking for $ac_word... " >&6; }
2515
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2516
  $as_echo_n "(cached) " >&6
2517
else
2518
  if test -n "$ac_ct_CC"; then
2519
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2520
else
2521
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2522
for as_dir in $PATH
2523
do
2524
  IFS=$as_save_IFS
2525
  test -z "$as_dir" && as_dir=.
2526
    for ac_exec_ext in '' $ac_executable_extensions; do
2527
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2528
    ac_cv_prog_ac_ct_CC="gcc"
2529
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2530
    break 2
2531
  fi
2532
done
2533
  done
2534
IFS=$as_save_IFS
2535
 
2536
fi
2537
fi
2538
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2539
if test -n "$ac_ct_CC"; then
2540
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2541
$as_echo "$ac_ct_CC" >&6; }
2542
else
2543
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2544
$as_echo "no" >&6; }
2545
fi
2546
 
2547
  if test "x$ac_ct_CC" = x; then
2548
    CC=""
2549
  else
2550
    case $cross_compiling:$ac_tool_warned in
2551
yes:)
2552
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2553
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2554
ac_tool_warned=yes ;;
2555
esac
2556
    CC=$ac_ct_CC
2557
  fi
2558
else
2559
  CC="$ac_cv_prog_CC"
2560
fi
2561
 
2562
if test -z "$CC"; then
2563
          if test -n "$ac_tool_prefix"; then
2564
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2565
set dummy ${ac_tool_prefix}cc; ac_word=$2
2566
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2567
$as_echo_n "checking for $ac_word... " >&6; }
2568
if test "${ac_cv_prog_CC+set}" = set; then :
2569
  $as_echo_n "(cached) " >&6
2570
else
2571
  if test -n "$CC"; then
2572
  ac_cv_prog_CC="$CC" # Let the user override the test.
2573
else
2574
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2575
for as_dir in $PATH
2576
do
2577
  IFS=$as_save_IFS
2578
  test -z "$as_dir" && as_dir=.
2579
    for ac_exec_ext in '' $ac_executable_extensions; do
2580
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2581
    ac_cv_prog_CC="${ac_tool_prefix}cc"
2582
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2583
    break 2
2584
  fi
2585
done
2586
  done
2587
IFS=$as_save_IFS
2588
 
2589
fi
2590
fi
2591
CC=$ac_cv_prog_CC
2592
if test -n "$CC"; then
2593
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2594
$as_echo "$CC" >&6; }
2595
else
2596
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2597
$as_echo "no" >&6; }
2598
fi
2599
 
2600
 
2601
  fi
2602
fi
2603
if test -z "$CC"; then
2604
  # Extract the first word of "cc", so it can be a program name with args.
2605
set dummy cc; ac_word=$2
2606
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2607
$as_echo_n "checking for $ac_word... " >&6; }
2608
if test "${ac_cv_prog_CC+set}" = set; then :
2609
  $as_echo_n "(cached) " >&6
2610
else
2611
  if test -n "$CC"; then
2612
  ac_cv_prog_CC="$CC" # Let the user override the test.
2613
else
2614
  ac_prog_rejected=no
2615
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616
for as_dir in $PATH
2617
do
2618
  IFS=$as_save_IFS
2619
  test -z "$as_dir" && as_dir=.
2620
    for ac_exec_ext in '' $ac_executable_extensions; do
2621
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2622
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2623
       ac_prog_rejected=yes
2624
       continue
2625
     fi
2626
    ac_cv_prog_CC="cc"
2627
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2628
    break 2
2629
  fi
2630
done
2631
  done
2632
IFS=$as_save_IFS
2633
 
2634
if test $ac_prog_rejected = yes; then
2635
  # We found a bogon in the path, so make sure we never use it.
2636
  set dummy $ac_cv_prog_CC
2637
  shift
2638
  if test $# != 0; then
2639
    # We chose a different compiler from the bogus one.
2640
    # However, it has the same basename, so the bogon will be chosen
2641
    # first if we set CC to just the basename; use the full file name.
2642
    shift
2643
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2644
  fi
2645
fi
2646
fi
2647
fi
2648
CC=$ac_cv_prog_CC
2649
if test -n "$CC"; then
2650
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2651
$as_echo "$CC" >&6; }
2652
else
2653
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2654
$as_echo "no" >&6; }
2655
fi
2656
 
2657
 
2658
fi
2659
if test -z "$CC"; then
2660
  if test -n "$ac_tool_prefix"; then
2661
  for ac_prog in cl.exe
2662
  do
2663
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2664
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2665
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2666
$as_echo_n "checking for $ac_word... " >&6; }
2667
if test "${ac_cv_prog_CC+set}" = set; then :
2668
  $as_echo_n "(cached) " >&6
2669
else
2670
  if test -n "$CC"; then
2671
  ac_cv_prog_CC="$CC" # Let the user override the test.
2672
else
2673
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2674
for as_dir in $PATH
2675
do
2676
  IFS=$as_save_IFS
2677
  test -z "$as_dir" && as_dir=.
2678
    for ac_exec_ext in '' $ac_executable_extensions; do
2679
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2680
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2681
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2682
    break 2
2683
  fi
2684
done
2685
  done
2686
IFS=$as_save_IFS
2687
 
2688
fi
2689
fi
2690
CC=$ac_cv_prog_CC
2691
if test -n "$CC"; then
2692
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2693
$as_echo "$CC" >&6; }
2694
else
2695
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2696
$as_echo "no" >&6; }
2697
fi
2698
 
2699
 
2700
    test -n "$CC" && break
2701
  done
2702
fi
2703
if test -z "$CC"; then
2704
  ac_ct_CC=$CC
2705
  for ac_prog in cl.exe
2706
do
2707
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2708
set dummy $ac_prog; ac_word=$2
2709
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2710
$as_echo_n "checking for $ac_word... " >&6; }
2711
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2712
  $as_echo_n "(cached) " >&6
2713
else
2714
  if test -n "$ac_ct_CC"; then
2715
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2716
else
2717
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2718
for as_dir in $PATH
2719
do
2720
  IFS=$as_save_IFS
2721
  test -z "$as_dir" && as_dir=.
2722
    for ac_exec_ext in '' $ac_executable_extensions; do
2723
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2724
    ac_cv_prog_ac_ct_CC="$ac_prog"
2725
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2726
    break 2
2727
  fi
2728
done
2729
  done
2730
IFS=$as_save_IFS
2731
 
2732
fi
2733
fi
2734
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2735
if test -n "$ac_ct_CC"; then
2736
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2737
$as_echo "$ac_ct_CC" >&6; }
2738
else
2739
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2740
$as_echo "no" >&6; }
2741
fi
2742
 
2743
 
2744
  test -n "$ac_ct_CC" && break
2745
done
2746
 
2747
  if test "x$ac_ct_CC" = x; then
2748
    CC=""
2749
  else
2750
    case $cross_compiling:$ac_tool_warned in
2751
yes:)
2752
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2753
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2754
ac_tool_warned=yes ;;
2755
esac
2756
    CC=$ac_ct_CC
2757
  fi
2758
fi
2759
 
2760
fi
2761
 
2762
 
2763
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2764
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2765
as_fn_error "no acceptable C compiler found in \$PATH
2766
See \`config.log' for more details." "$LINENO" 5; }
2767
 
2768
# Provide some information about the compiler.
2769
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2770
set X $ac_compile
2771
ac_compiler=$2
2772
for ac_option in --version -v -V -qversion; do
2773
  { { ac_try="$ac_compiler $ac_option >&5"
2774
case "(($ac_try" in
2775
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2776
  *) ac_try_echo=$ac_try;;
2777
esac
2778
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2779
$as_echo "$ac_try_echo"; } >&5
2780
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2781
  ac_status=$?
2782
  if test -s conftest.err; then
2783
    sed '10a\
2784
... rest of stderr output deleted ...
2785
         10q' conftest.err >conftest.er1
2786
    cat conftest.er1 >&5
2787
    rm -f conftest.er1 conftest.err
2788
  fi
2789
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2790
  test $ac_status = 0; }
2791
done
2792
 
2793
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2794
/* end confdefs.h.  */
2795
 
2796
int
2797
main ()
2798
{
2799
 
2800
  ;
2801
  return 0;
2802
}
2803
_ACEOF
2804
ac_clean_files_save=$ac_clean_files
2805
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2806
# Try to create an executable without -o first, disregard a.out.
2807
# It will help us diagnose broken compilers, and finding out an intuition
2808
# of exeext.
2809
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2810
$as_echo_n "checking for C compiler default output file name... " >&6; }
2811
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2812
 
2813
# The possible output files:
2814
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2815
 
2816
ac_rmfiles=
2817
for ac_file in $ac_files
2818
do
2819
  case $ac_file in
2820
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2821
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2822
  esac
2823
done
2824
rm -f $ac_rmfiles
2825
 
2826
if { { ac_try="$ac_link_default"
2827
case "(($ac_try" in
2828
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2829
  *) ac_try_echo=$ac_try;;
2830
esac
2831
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2832
$as_echo "$ac_try_echo"; } >&5
2833
  (eval "$ac_link_default") 2>&5
2834
  ac_status=$?
2835
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2836
  test $ac_status = 0; }; then :
2837
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2838
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2839
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2840
# so that the user can short-circuit this test for compilers unknown to
2841
# Autoconf.
2842
for ac_file in $ac_files ''
2843
do
2844
  test -f "$ac_file" || continue
2845
  case $ac_file in
2846
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2847
        ;;
2848
    [ab].out )
2849
        # We found the default executable, but exeext='' is most
2850
        # certainly right.
2851
        break;;
2852
    *.* )
2853
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2854
        then :; else
2855
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2856
        fi
2857
        # We set ac_cv_exeext here because the later test for it is not
2858
        # safe: cross compilers may not add the suffix if given an `-o'
2859
        # argument, so we may need to know it at that point already.
2860
        # Even if this section looks crufty: it has the advantage of
2861
        # actually working.
2862
        break;;
2863
    * )
2864
        break;;
2865
  esac
2866
done
2867
test "$ac_cv_exeext" = no && ac_cv_exeext=
2868
 
2869
else
2870
  ac_file=''
2871
fi
2872
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2873
$as_echo "$ac_file" >&6; }
2874
if test -z "$ac_file"; then :
2875
  $as_echo "$as_me: failed program was:" >&5
2876
sed 's/^/| /' conftest.$ac_ext >&5
2877
 
2878
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2879
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2880
{ as_fn_set_status 77
2881
as_fn_error "C compiler cannot create executables
2882
See \`config.log' for more details." "$LINENO" 5; }; }
2883
fi
2884
ac_exeext=$ac_cv_exeext
2885
 
2886
# Check that the compiler produces executables we can run.  If not, either
2887
# the compiler is broken, or we cross compile.
2888
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2889
$as_echo_n "checking whether the C compiler works... " >&6; }
2890
# If not cross compiling, check that we can run a simple program.
2891
if test "$cross_compiling" != yes; then
2892
  if { ac_try='./$ac_file'
2893
  { { case "(($ac_try" in
2894
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2895
  *) ac_try_echo=$ac_try;;
2896
esac
2897
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2898
$as_echo "$ac_try_echo"; } >&5
2899
  (eval "$ac_try") 2>&5
2900
  ac_status=$?
2901
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2902
  test $ac_status = 0; }; }; then
2903
    cross_compiling=no
2904
  else
2905
    if test "$cross_compiling" = maybe; then
2906
        cross_compiling=yes
2907
    else
2908
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2909
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2910
as_fn_error "cannot run C compiled programs.
2911
If you meant to cross compile, use \`--host'.
2912
See \`config.log' for more details." "$LINENO" 5; }
2913
    fi
2914
  fi
2915
fi
2916
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2917
$as_echo "yes" >&6; }
2918
 
2919
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2920
ac_clean_files=$ac_clean_files_save
2921
# Check that the compiler produces executables we can run.  If not, either
2922
# the compiler is broken, or we cross compile.
2923
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2924
$as_echo_n "checking whether we are cross compiling... " >&6; }
2925
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2926
$as_echo "$cross_compiling" >&6; }
2927
 
2928
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2929
$as_echo_n "checking for suffix of executables... " >&6; }
2930
if { { ac_try="$ac_link"
2931
case "(($ac_try" in
2932
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2933
  *) ac_try_echo=$ac_try;;
2934
esac
2935
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2936
$as_echo "$ac_try_echo"; } >&5
2937
  (eval "$ac_link") 2>&5
2938
  ac_status=$?
2939
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2940
  test $ac_status = 0; }; then :
2941
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2942
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2943
# work properly (i.e., refer to `conftest.exe'), while it won't with
2944
# `rm'.
2945
for ac_file in conftest.exe conftest conftest.*; do
2946
  test -f "$ac_file" || continue
2947
  case $ac_file in
2948
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2949
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2950
          break;;
2951
    * ) break;;
2952
  esac
2953
done
2954
else
2955
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2956
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2957
as_fn_error "cannot compute suffix of executables: cannot compile and link
2958
See \`config.log' for more details." "$LINENO" 5; }
2959
fi
2960
rm -f conftest$ac_cv_exeext
2961
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2962
$as_echo "$ac_cv_exeext" >&6; }
2963
 
2964
rm -f conftest.$ac_ext
2965
EXEEXT=$ac_cv_exeext
2966
ac_exeext=$EXEEXT
2967
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2968
$as_echo_n "checking for suffix of object files... " >&6; }
2969
if test "${ac_cv_objext+set}" = set; then :
2970
  $as_echo_n "(cached) " >&6
2971
else
2972
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2973
/* end confdefs.h.  */
2974
 
2975
int
2976
main ()
2977
{
2978
 
2979
  ;
2980
  return 0;
2981
}
2982
_ACEOF
2983
rm -f conftest.o conftest.obj
2984
if { { ac_try="$ac_compile"
2985
case "(($ac_try" in
2986
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2987
  *) ac_try_echo=$ac_try;;
2988
esac
2989
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2990
$as_echo "$ac_try_echo"; } >&5
2991
  (eval "$ac_compile") 2>&5
2992
  ac_status=$?
2993
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2994
  test $ac_status = 0; }; then :
2995
  for ac_file in conftest.o conftest.obj conftest.*; do
2996
  test -f "$ac_file" || continue;
2997
  case $ac_file in
2998
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2999
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3000
       break;;
3001
  esac
3002
done
3003
else
3004
  $as_echo "$as_me: failed program was:" >&5
3005
sed 's/^/| /' conftest.$ac_ext >&5
3006
 
3007
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3008
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3009
as_fn_error "cannot compute suffix of object files: cannot compile
3010
See \`config.log' for more details." "$LINENO" 5; }
3011
fi
3012
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3013
fi
3014
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3015
$as_echo "$ac_cv_objext" >&6; }
3016
OBJEXT=$ac_cv_objext
3017
ac_objext=$OBJEXT
3018
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3019
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3020
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3021
  $as_echo_n "(cached) " >&6
3022
else
3023
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3024
/* end confdefs.h.  */
3025
 
3026
int
3027
main ()
3028
{
3029
#ifndef __GNUC__
3030
       choke me
3031
#endif
3032
 
3033
  ;
3034
  return 0;
3035
}
3036
_ACEOF
3037
if ac_fn_c_try_compile "$LINENO"; then :
3038
  ac_compiler_gnu=yes
3039
else
3040
  ac_compiler_gnu=no
3041
fi
3042
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3043
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3044
 
3045
fi
3046
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3047
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3048
if test $ac_compiler_gnu = yes; then
3049
  GCC=yes
3050
else
3051
  GCC=
3052
fi
3053
ac_test_CFLAGS=${CFLAGS+set}
3054
ac_save_CFLAGS=$CFLAGS
3055
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3056
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3057
if test "${ac_cv_prog_cc_g+set}" = set; then :
3058
  $as_echo_n "(cached) " >&6
3059
else
3060
  ac_save_c_werror_flag=$ac_c_werror_flag
3061
   ac_c_werror_flag=yes
3062
   ac_cv_prog_cc_g=no
3063
   CFLAGS="-g"
3064
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3065
/* end confdefs.h.  */
3066
 
3067
int
3068
main ()
3069
{
3070
 
3071
  ;
3072
  return 0;
3073
}
3074
_ACEOF
3075
if ac_fn_c_try_compile "$LINENO"; then :
3076
  ac_cv_prog_cc_g=yes
3077
else
3078
  CFLAGS=""
3079
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3080
/* end confdefs.h.  */
3081
 
3082
int
3083
main ()
3084
{
3085
 
3086
  ;
3087
  return 0;
3088
}
3089
_ACEOF
3090
if ac_fn_c_try_compile "$LINENO"; then :
3091
 
3092
else
3093
  ac_c_werror_flag=$ac_save_c_werror_flag
3094
         CFLAGS="-g"
3095
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3096
/* end confdefs.h.  */
3097
 
3098
int
3099
main ()
3100
{
3101
 
3102
  ;
3103
  return 0;
3104
}
3105
_ACEOF
3106
if ac_fn_c_try_compile "$LINENO"; then :
3107
  ac_cv_prog_cc_g=yes
3108
fi
3109
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3110
fi
3111
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3112
fi
3113
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3114
   ac_c_werror_flag=$ac_save_c_werror_flag
3115
fi
3116
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3117
$as_echo "$ac_cv_prog_cc_g" >&6; }
3118
if test "$ac_test_CFLAGS" = set; then
3119
  CFLAGS=$ac_save_CFLAGS
3120
elif test $ac_cv_prog_cc_g = yes; then
3121
  if test "$GCC" = yes; then
3122
    CFLAGS="-g -O2"
3123
  else
3124
    CFLAGS="-g"
3125
  fi
3126
else
3127
  if test "$GCC" = yes; then
3128
    CFLAGS="-O2"
3129
  else
3130
    CFLAGS=
3131
  fi
3132
fi
3133
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3134
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3135
if test "${ac_cv_prog_cc_c89+set}" = set; then :
3136
  $as_echo_n "(cached) " >&6
3137
else
3138
  ac_cv_prog_cc_c89=no
3139
ac_save_CC=$CC
3140
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3141
/* end confdefs.h.  */
3142
#include 
3143
#include 
3144
#include 
3145
#include 
3146
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3147
struct buf { int x; };
3148
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3149
static char *e (p, i)
3150
     char **p;
3151
     int i;
3152
{
3153
  return p[i];
3154
}
3155
static char *f (char * (*g) (char **, int), char **p, ...)
3156
{
3157
  char *s;
3158
  va_list v;
3159
  va_start (v,p);
3160
  s = g (p, va_arg (v,int));
3161
  va_end (v);
3162
  return s;
3163
}
3164
 
3165
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3166
   function prototypes and stuff, but not '\xHH' hex character constants.
3167
   These don't provoke an error unfortunately, instead are silently treated
3168
   as 'x'.  The following induces an error, until -std is added to get
3169
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3170
   array size at least.  It's necessary to write '\x00'==0 to get something
3171
   that's true only with -std.  */
3172
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3173
 
3174
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3175
   inside strings and character constants.  */
3176
#define FOO(x) 'x'
3177
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3178
 
3179
int test (int i, double x);
3180
struct s1 {int (*f) (int a);};
3181
struct s2 {int (*f) (double a);};
3182
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3183
int argc;
3184
char **argv;
3185
int
3186
main ()
3187
{
3188
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3189
  ;
3190
  return 0;
3191
}
3192
_ACEOF
3193
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3194
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3195
do
3196
  CC="$ac_save_CC $ac_arg"
3197
  if ac_fn_c_try_compile "$LINENO"; then :
3198
  ac_cv_prog_cc_c89=$ac_arg
3199
fi
3200
rm -f core conftest.err conftest.$ac_objext
3201
  test "x$ac_cv_prog_cc_c89" != "xno" && break
3202
done
3203
rm -f conftest.$ac_ext
3204
CC=$ac_save_CC
3205
 
3206
fi
3207
# AC_CACHE_VAL
3208
case "x$ac_cv_prog_cc_c89" in
3209
  x)
3210
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3211
$as_echo "none needed" >&6; } ;;
3212
  xno)
3213
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3214
$as_echo "unsupported" >&6; } ;;
3215
  *)
3216
    CC="$CC $ac_cv_prog_cc_c89"
3217
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3218
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3219
esac
3220
if test "x$ac_cv_prog_cc_c89" != xno; then :
3221
 
3222
fi
3223
 
3224
ac_ext=c
3225
ac_cpp='$CPP $CPPFLAGS'
3226
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3227
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3228
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3229
 
3230
 
3231
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3232
$as_echo_n "checking for library containing strerror... " >&6; }
3233
if test "${ac_cv_search_strerror+set}" = set; then :
3234
  $as_echo_n "(cached) " >&6
3235
else
3236
  ac_func_search_save_LIBS=$LIBS
3237
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3238
/* end confdefs.h.  */
3239
 
3240
/* Override any GCC internal prototype to avoid an error.
3241
   Use char because int might match the return type of a GCC
3242
   builtin and then its argument prototype would still apply.  */
3243
#ifdef __cplusplus
3244
extern "C"
3245
#endif
3246
char strerror ();
3247
int
3248
main ()
3249
{
3250
return strerror ();
3251
  ;
3252
  return 0;
3253
}
3254
_ACEOF
3255
for ac_lib in '' cposix; do
3256
  if test -z "$ac_lib"; then
3257
    ac_res="none required"
3258
  else
3259
    ac_res=-l$ac_lib
3260
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3261
  fi
3262
  if ac_fn_c_try_link "$LINENO"; then :
3263
  ac_cv_search_strerror=$ac_res
3264
fi
3265
rm -f core conftest.err conftest.$ac_objext \
3266
    conftest$ac_exeext
3267
  if test "${ac_cv_search_strerror+set}" = set; then :
3268
  break
3269
fi
3270
done
3271
if test "${ac_cv_search_strerror+set}" = set; then :
3272
 
3273
else
3274
  ac_cv_search_strerror=no
3275
fi
3276
rm conftest.$ac_ext
3277
LIBS=$ac_func_search_save_LIBS
3278
fi
3279
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3280
$as_echo "$ac_cv_search_strerror" >&6; }
3281
ac_res=$ac_cv_search_strerror
3282
if test "$ac_res" != no; then :
3283
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3284
 
3285
fi
3286
 
3287
 
3288
BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[         ]*\([^  ]*\)[   ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
3289
am__api_version='1.11'
3290
 
3291
# Find a good install program.  We prefer a C program (faster),
3292
# so one script is as good as another.  But avoid the broken or
3293
# incompatible versions:
3294
# SysV /etc/install, /usr/sbin/install
3295
# SunOS /usr/etc/install
3296
# IRIX /sbin/install
3297
# AIX /bin/install
3298
# AmigaOS /C/install, which installs bootblocks on floppy discs
3299
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3300
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3301
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3302
# OS/2's system install, which has a completely different semantic
3303
# ./install, which can be erroneously created by make from ./install.sh.
3304
# Reject install programs that cannot install multiple files.
3305
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3306
$as_echo_n "checking for a BSD-compatible install... " >&6; }
3307
if test -z "$INSTALL"; then
3308
if test "${ac_cv_path_install+set}" = set; then :
3309
  $as_echo_n "(cached) " >&6
3310
else
3311
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3312
for as_dir in $PATH
3313
do
3314
  IFS=$as_save_IFS
3315
  test -z "$as_dir" && as_dir=.
3316
    # Account for people who put trailing slashes in PATH elements.
3317
case $as_dir/ in #((
3318
  ./ | .// | /[cC]/* | \
3319
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3320
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3321
  /usr/ucb/* ) ;;
3322
  *)
3323
    # OSF1 and SCO ODT 3.0 have their own names for install.
3324
    # Don't use installbsd from OSF since it installs stuff as root
3325
    # by default.
3326
    for ac_prog in ginstall scoinst install; do
3327
      for ac_exec_ext in '' $ac_executable_extensions; do
3328
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3329
          if test $ac_prog = install &&
3330
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3331
            # AIX install.  It has an incompatible calling convention.
3332
            :
3333
          elif test $ac_prog = install &&
3334
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3335
            # program-specific install script used by HP pwplus--don't use.
3336
            :
3337
          else
3338
            rm -rf conftest.one conftest.two conftest.dir
3339
            echo one > conftest.one
3340
            echo two > conftest.two
3341
            mkdir conftest.dir
3342
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3343
              test -s conftest.one && test -s conftest.two &&
3344
              test -s conftest.dir/conftest.one &&
3345
              test -s conftest.dir/conftest.two
3346
            then
3347
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3348
              break 3
3349
            fi
3350
          fi
3351
        fi
3352
      done
3353
    done
3354
    ;;
3355
esac
3356
 
3357
  done
3358
IFS=$as_save_IFS
3359
 
3360
rm -rf conftest.one conftest.two conftest.dir
3361
 
3362
fi
3363
  if test "${ac_cv_path_install+set}" = set; then
3364
    INSTALL=$ac_cv_path_install
3365
  else
3366
    # As a last resort, use the slow shell script.  Don't cache a
3367
    # value for INSTALL within a source directory, because that will
3368
    # break other packages using the cache if that directory is
3369
    # removed, or if the value is a relative name.
3370
    INSTALL=$ac_install_sh
3371
  fi
3372
fi
3373
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3374
$as_echo "$INSTALL" >&6; }
3375
 
3376
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3377
# It thinks the first close brace ends the variable substitution.
3378
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3379
 
3380
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3381
 
3382
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3383
 
3384
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3385
$as_echo_n "checking whether build environment is sane... " >&6; }
3386
# Just in case
3387
sleep 1
3388
echo timestamp > conftest.file
3389
# Reject unsafe characters in $srcdir or the absolute working directory
3390
# name.  Accept space and tab only in the latter.
3391
am_lf='
3392
'
3393
case `pwd` in
3394
  *[\\\"\#\$\&\'\`$am_lf]*)
3395
    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3396
esac
3397
case $srcdir in
3398
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3399
    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3400
esac
3401
 
3402
# Do `set' in a subshell so we don't clobber the current shell's
3403
# arguments.  Must try -L first in case configure is actually a
3404
# symlink; some systems play weird games with the mod time of symlinks
3405
# (eg FreeBSD returns the mod time of the symlink's containing
3406
# directory).
3407
if (
3408
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3409
   if test "$*" = "X"; then
3410
      # -L didn't work.
3411
      set X `ls -t "$srcdir/configure" conftest.file`
3412
   fi
3413
   rm -f conftest.file
3414
   if test "$*" != "X $srcdir/configure conftest.file" \
3415
      && test "$*" != "X conftest.file $srcdir/configure"; then
3416
 
3417
      # If neither matched, then we have a broken ls.  This can happen
3418
      # if, for instance, CONFIG_SHELL is bash and it inherits a
3419
      # broken ls alias from the environment.  This has actually
3420
      # happened.  Such a system could not be considered "sane".
3421
      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
3422
alias in your environment" "$LINENO" 5
3423
   fi
3424
 
3425
   test "$2" = conftest.file
3426
   )
3427
then
3428
   # Ok.
3429
   :
3430
else
3431
   as_fn_error "newly created file is older than distributed files!
3432
Check your system clock" "$LINENO" 5
3433
fi
3434
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3435
$as_echo "yes" >&6; }
3436
test "$program_prefix" != NONE &&
3437
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3438
# Use a double $ so make ignores it.
3439
test "$program_suffix" != NONE &&
3440
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3441
# Double any \ or $.
3442
# By default was `s,x,x', remove it if useless.
3443
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3444
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3445
 
3446
# expand $ac_aux_dir to an absolute path
3447
am_aux_dir=`cd $ac_aux_dir && pwd`
3448
 
3449
if test x"${MISSING+set}" != xset; then
3450
  case $am_aux_dir in
3451
  *\ * | *\     *)
3452
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3453
  *)
3454
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3455
  esac
3456
fi
3457
# Use eval to expand $SHELL
3458
if eval "$MISSING --run true"; then
3459
  am_missing_run="$MISSING --run "
3460
else
3461
  am_missing_run=
3462
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3463
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3464
fi
3465
 
3466
if test x"${install_sh}" != xset; then
3467
  case $am_aux_dir in
3468
  *\ * | *\     *)
3469
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3470
  *)
3471
    install_sh="\${SHELL} $am_aux_dir/install-sh"
3472
  esac
3473
fi
3474
 
3475
# Installed binaries are usually stripped using `strip' when the user
3476
# run `make install-strip'.  However `strip' might not be the right
3477
# tool to use in cross-compilation environments, therefore Automake
3478
# will honor the `STRIP' environment variable to overrule this program.
3479
if test "$cross_compiling" != no; then
3480
  if test -n "$ac_tool_prefix"; then
3481
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3482
set dummy ${ac_tool_prefix}strip; ac_word=$2
3483
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3484
$as_echo_n "checking for $ac_word... " >&6; }
3485
if test "${ac_cv_prog_STRIP+set}" = set; then :
3486
  $as_echo_n "(cached) " >&6
3487
else
3488
  if test -n "$STRIP"; then
3489
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3490
else
3491
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3492
for as_dir in $PATH
3493
do
3494
  IFS=$as_save_IFS
3495
  test -z "$as_dir" && as_dir=.
3496
    for ac_exec_ext in '' $ac_executable_extensions; do
3497
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3498
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3499
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3500
    break 2
3501
  fi
3502
done
3503
  done
3504
IFS=$as_save_IFS
3505
 
3506
fi
3507
fi
3508
STRIP=$ac_cv_prog_STRIP
3509
if test -n "$STRIP"; then
3510
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3511
$as_echo "$STRIP" >&6; }
3512
else
3513
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3514
$as_echo "no" >&6; }
3515
fi
3516
 
3517
 
3518
fi
3519
if test -z "$ac_cv_prog_STRIP"; then
3520
  ac_ct_STRIP=$STRIP
3521
  # Extract the first word of "strip", so it can be a program name with args.
3522
set dummy strip; ac_word=$2
3523
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3524
$as_echo_n "checking for $ac_word... " >&6; }
3525
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3526
  $as_echo_n "(cached) " >&6
3527
else
3528
  if test -n "$ac_ct_STRIP"; then
3529
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3530
else
3531
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3532
for as_dir in $PATH
3533
do
3534
  IFS=$as_save_IFS
3535
  test -z "$as_dir" && as_dir=.
3536
    for ac_exec_ext in '' $ac_executable_extensions; do
3537
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3538
    ac_cv_prog_ac_ct_STRIP="strip"
3539
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3540
    break 2
3541
  fi
3542
done
3543
  done
3544
IFS=$as_save_IFS
3545
 
3546
fi
3547
fi
3548
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3549
if test -n "$ac_ct_STRIP"; then
3550
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3551
$as_echo "$ac_ct_STRIP" >&6; }
3552
else
3553
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3554
$as_echo "no" >&6; }
3555
fi
3556
 
3557
  if test "x$ac_ct_STRIP" = x; then
3558
    STRIP=":"
3559
  else
3560
    case $cross_compiling:$ac_tool_warned in
3561
yes:)
3562
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3563
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3564
ac_tool_warned=yes ;;
3565
esac
3566
    STRIP=$ac_ct_STRIP
3567
  fi
3568
else
3569
  STRIP="$ac_cv_prog_STRIP"
3570
fi
3571
 
3572
fi
3573
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3574
 
3575
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3576
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3577
if test -z "$MKDIR_P"; then
3578
  if test "${ac_cv_path_mkdir+set}" = set; then :
3579
  $as_echo_n "(cached) " >&6
3580
else
3581
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3582
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3583
do
3584
  IFS=$as_save_IFS
3585
  test -z "$as_dir" && as_dir=.
3586
    for ac_prog in mkdir gmkdir; do
3587
         for ac_exec_ext in '' $ac_executable_extensions; do
3588
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3589
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3590
             'mkdir (GNU coreutils) '* | \
3591
             'mkdir (coreutils) '* | \
3592
             'mkdir (fileutils) '4.1*)
3593
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3594
               break 3;;
3595
           esac
3596
         done
3597
       done
3598
  done
3599
IFS=$as_save_IFS
3600
 
3601
fi
3602
 
3603
  if test "${ac_cv_path_mkdir+set}" = set; then
3604
    MKDIR_P="$ac_cv_path_mkdir -p"
3605
  else
3606
    # As a last resort, use the slow shell script.  Don't cache a
3607
    # value for MKDIR_P within a source directory, because that will
3608
    # break other packages using the cache if that directory is
3609
    # removed, or if the value is a relative name.
3610
    test -d ./--version && rmdir ./--version
3611
    MKDIR_P="$ac_install_sh -d"
3612
  fi
3613
fi
3614
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3615
$as_echo "$MKDIR_P" >&6; }
3616
 
3617
mkdir_p="$MKDIR_P"
3618
case $mkdir_p in
3619
  [\\/$]* | ?:[\\/]*) ;;
3620
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3621
esac
3622
 
3623
for ac_prog in gawk mawk nawk awk
3624
do
3625
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3626
set dummy $ac_prog; ac_word=$2
3627
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3628
$as_echo_n "checking for $ac_word... " >&6; }
3629
if test "${ac_cv_prog_AWK+set}" = set; then :
3630
  $as_echo_n "(cached) " >&6
3631
else
3632
  if test -n "$AWK"; then
3633
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3634
else
3635
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3636
for as_dir in $PATH
3637
do
3638
  IFS=$as_save_IFS
3639
  test -z "$as_dir" && as_dir=.
3640
    for ac_exec_ext in '' $ac_executable_extensions; do
3641
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3642
    ac_cv_prog_AWK="$ac_prog"
3643
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3644
    break 2
3645
  fi
3646
done
3647
  done
3648
IFS=$as_save_IFS
3649
 
3650
fi
3651
fi
3652
AWK=$ac_cv_prog_AWK
3653
if test -n "$AWK"; then
3654
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3655
$as_echo "$AWK" >&6; }
3656
else
3657
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3658
$as_echo "no" >&6; }
3659
fi
3660
 
3661
 
3662
  test -n "$AWK" && break
3663
done
3664
 
3665
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3666
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3667
set x ${MAKE-make}
3668
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3669
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3670
  $as_echo_n "(cached) " >&6
3671
else
3672
  cat >conftest.make <<\_ACEOF
3673
SHELL = /bin/sh
3674
all:
3675
        @echo '@@@%%%=$(MAKE)=@@@%%%'
3676
_ACEOF
3677
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3678
case `${MAKE-make} -f conftest.make 2>/dev/null` in
3679
  *@@@%%%=?*=@@@%%%*)
3680
    eval ac_cv_prog_make_${ac_make}_set=yes;;
3681
  *)
3682
    eval ac_cv_prog_make_${ac_make}_set=no;;
3683
esac
3684
rm -f conftest.make
3685
fi
3686
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3687
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3688
$as_echo "yes" >&6; }
3689
  SET_MAKE=
3690
else
3691
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3692
$as_echo "no" >&6; }
3693
  SET_MAKE="MAKE=${MAKE-make}"
3694
fi
3695
 
3696
rm -rf .tst 2>/dev/null
3697
mkdir .tst 2>/dev/null
3698
if test -d .tst; then
3699
  am__leading_dot=.
3700
else
3701
  am__leading_dot=_
3702
fi
3703
rmdir .tst 2>/dev/null
3704
 
3705
DEPDIR="${am__leading_dot}deps"
3706
 
3707
ac_config_commands="$ac_config_commands depfiles"
3708
 
3709
 
3710
am_make=${MAKE-make}
3711
cat > confinc << 'END'
3712
am__doit:
3713
        @echo this is the am__doit target
3714
.PHONY: am__doit
3715
END
3716
# If we don't find an include directive, just comment out the code.
3717
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3718
$as_echo_n "checking for style of include used by $am_make... " >&6; }
3719
am__include="#"
3720
am__quote=
3721
_am_result=none
3722
# First try GNU make style include.
3723
echo "include confinc" > confmf
3724
# Ignore all kinds of additional output from `make'.
3725
case `$am_make -s -f confmf 2> /dev/null` in #(
3726
*the\ am__doit\ target*)
3727
  am__include=include
3728
  am__quote=
3729
  _am_result=GNU
3730
  ;;
3731
esac
3732
# Now try BSD make style include.
3733
if test "$am__include" = "#"; then
3734
   echo '.include "confinc"' > confmf
3735
   case `$am_make -s -f confmf 2> /dev/null` in #(
3736
   *the\ am__doit\ target*)
3737
     am__include=.include
3738
     am__quote="\""
3739
     _am_result=BSD
3740
     ;;
3741
   esac
3742
fi
3743
 
3744
 
3745
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3746
$as_echo "$_am_result" >&6; }
3747
rm -f confinc confmf
3748
 
3749
# Check whether --enable-dependency-tracking was given.
3750
if test "${enable_dependency_tracking+set}" = set; then :
3751
  enableval=$enable_dependency_tracking;
3752
fi
3753
 
3754
if test "x$enable_dependency_tracking" != xno; then
3755
  am_depcomp="$ac_aux_dir/depcomp"
3756
  AMDEPBACKSLASH='\'
3757
fi
3758
 if test "x$enable_dependency_tracking" != xno; then
3759
  AMDEP_TRUE=
3760
  AMDEP_FALSE='#'
3761
else
3762
  AMDEP_TRUE='#'
3763
  AMDEP_FALSE=
3764
fi
3765
 
3766
 
3767
if test "`cd $srcdir && pwd`" != "`pwd`"; then
3768
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3769
  # is not polluted with repeated "-I."
3770
  am__isrc=' -I$(srcdir)'
3771
  # test to see if srcdir already configured
3772
  if test -f $srcdir/config.status; then
3773
    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3774
  fi
3775
fi
3776
 
3777
# test whether we have cygpath
3778
if test -z "$CYGPATH_W"; then
3779
  if (cygpath --version) >/dev/null 2>/dev/null; then
3780
    CYGPATH_W='cygpath -w'
3781
  else
3782
    CYGPATH_W=echo
3783
  fi
3784
fi
3785
 
3786
 
3787
# Define the identity of the package.
3788
 PACKAGE=gprof
3789
 VERSION=${BFD_VERSION}
3790
 
3791
 
3792
cat >>confdefs.h <<_ACEOF
3793
#define PACKAGE "$PACKAGE"
3794
_ACEOF
3795
 
3796
 
3797
cat >>confdefs.h <<_ACEOF
3798
#define VERSION "$VERSION"
3799
_ACEOF
3800
 
3801
# Some tools Automake needs.
3802
 
3803
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3804
 
3805
 
3806
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3807
 
3808
 
3809
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3810
 
3811
 
3812
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3813
 
3814
 
3815
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3816
 
3817
# We need awk for the "check" target.  The system "awk" is bad on
3818
# some platforms.
3819
# Always define AMTAR for backward compatibility.
3820
 
3821
AMTAR=${AMTAR-"${am_missing_run}tar"}
3822
 
3823
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3824
 
3825
 
3826
 
3827
 
3828
depcc="$CC"   am_compiler_list=
3829
 
3830
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3831
$as_echo_n "checking dependency style of $depcc... " >&6; }
3832
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3833
  $as_echo_n "(cached) " >&6
3834
else
3835
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3836
  # We make a subdir and do the tests there.  Otherwise we can end up
3837
  # making bogus files that we don't know about and never remove.  For
3838
  # instance it was reported that on HP-UX the gcc test will end up
3839
  # making a dummy file named `D' -- because `-MD' means `put the output
3840
  # in D'.
3841
  mkdir conftest.dir
3842
  # Copy depcomp to subdir because otherwise we won't find it if we're
3843
  # using a relative directory.
3844
  cp "$am_depcomp" conftest.dir
3845
  cd conftest.dir
3846
  # We will build objects and dependencies in a subdirectory because
3847
  # it helps to detect inapplicable dependency modes.  For instance
3848
  # both Tru64's cc and ICC support -MD to output dependencies as a
3849
  # side effect of compilation, but ICC will put the dependencies in
3850
  # the current directory while Tru64 will put them in the object
3851
  # directory.
3852
  mkdir sub
3853
 
3854
  am_cv_CC_dependencies_compiler_type=none
3855
  if test "$am_compiler_list" = ""; then
3856
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3857
  fi
3858
  am__universal=false
3859
  case " $depcc " in #(
3860
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3861
     esac
3862
 
3863
  for depmode in $am_compiler_list; do
3864
    # Setup a source with many dependencies, because some compilers
3865
    # like to wrap large dependency lists on column 80 (with \), and
3866
    # we should not choose a depcomp mode which is confused by this.
3867
    #
3868
    # We need to recreate these files for each test, as the compiler may
3869
    # overwrite some of them when testing with obscure command lines.
3870
    # This happens at least with the AIX C compiler.
3871
    : > sub/conftest.c
3872
    for i in 1 2 3 4 5 6; do
3873
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3874
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3875
      # Solaris 8's {/usr,}/bin/sh.
3876
      touch sub/conftst$i.h
3877
    done
3878
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3879
 
3880
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3881
    # mode.  It turns out that the SunPro C++ compiler does not properly
3882
    # handle `-M -o', and we need to detect this.  Also, some Intel
3883
    # versions had trouble with output in subdirs
3884
    am__obj=sub/conftest.${OBJEXT-o}
3885
    am__minus_obj="-o $am__obj"
3886
    case $depmode in
3887
    gcc)
3888
      # This depmode causes a compiler race in universal mode.
3889
      test "$am__universal" = false || continue
3890
      ;;
3891
    nosideeffect)
3892
      # after this tag, mechanisms are not by side-effect, so they'll
3893
      # only be used when explicitly requested
3894
      if test "x$enable_dependency_tracking" = xyes; then
3895
        continue
3896
      else
3897
        break
3898
      fi
3899
      ;;
3900
    msvisualcpp | msvcmsys)
3901
      # This compiler won't grok `-c -o', but also, the minuso test has
3902
      # not run yet.  These depmodes are late enough in the game, and
3903
      # so weak that their functioning should not be impacted.
3904
      am__obj=conftest.${OBJEXT-o}
3905
      am__minus_obj=
3906
      ;;
3907
    none) break ;;
3908
    esac
3909
    if depmode=$depmode \
3910
       source=sub/conftest.c object=$am__obj \
3911
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3912
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3913
         >/dev/null 2>conftest.err &&
3914
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3915
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3916
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3917
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3918
      # icc doesn't choke on unknown options, it will just issue warnings
3919
      # or remarks (even with -Werror).  So we grep stderr for any message
3920
      # that says an option was ignored or not supported.
3921
      # When given -MP, icc 7.0 and 7.1 complain thusly:
3922
      #   icc: Command line warning: ignoring option '-M'; no argument required
3923
      # The diagnosis changed in icc 8.0:
3924
      #   icc: Command line remark: option '-MP' not supported
3925
      if (grep 'ignoring option' conftest.err ||
3926
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3927
        am_cv_CC_dependencies_compiler_type=$depmode
3928
        break
3929
      fi
3930
    fi
3931
  done
3932
 
3933
  cd ..
3934
  rm -rf conftest.dir
3935
else
3936
  am_cv_CC_dependencies_compiler_type=none
3937
fi
3938
 
3939
fi
3940
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3941
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3942
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3943
 
3944
 if
3945
  test "x$enable_dependency_tracking" != xno \
3946
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3947
  am__fastdepCC_TRUE=
3948
  am__fastdepCC_FALSE='#'
3949
else
3950
  am__fastdepCC_TRUE='#'
3951
  am__fastdepCC_FALSE=
3952
fi
3953
 
3954
 
3955
 
3956
 
3957
ac_config_headers="$ac_config_headers gconfig.h:gconfig.in"
3958
 
3959
 
3960
ac_ext=c
3961
ac_cpp='$CPP $CPPFLAGS'
3962
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3963
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3964
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3965
if test -n "$ac_tool_prefix"; then
3966
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3967
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3968
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3969
$as_echo_n "checking for $ac_word... " >&6; }
3970
if test "${ac_cv_prog_CC+set}" = set; then :
3971
  $as_echo_n "(cached) " >&6
3972
else
3973
  if test -n "$CC"; then
3974
  ac_cv_prog_CC="$CC" # Let the user override the test.
3975
else
3976
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3977
for as_dir in $PATH
3978
do
3979
  IFS=$as_save_IFS
3980
  test -z "$as_dir" && as_dir=.
3981
    for ac_exec_ext in '' $ac_executable_extensions; do
3982
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3983
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3984
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3985
    break 2
3986
  fi
3987
done
3988
  done
3989
IFS=$as_save_IFS
3990
 
3991
fi
3992
fi
3993
CC=$ac_cv_prog_CC
3994
if test -n "$CC"; then
3995
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3996
$as_echo "$CC" >&6; }
3997
else
3998
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3999
$as_echo "no" >&6; }
4000
fi
4001
 
4002
 
4003
fi
4004
if test -z "$ac_cv_prog_CC"; then
4005
  ac_ct_CC=$CC
4006
  # Extract the first word of "gcc", so it can be a program name with args.
4007
set dummy gcc; ac_word=$2
4008
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4009
$as_echo_n "checking for $ac_word... " >&6; }
4010
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4011
  $as_echo_n "(cached) " >&6
4012
else
4013
  if test -n "$ac_ct_CC"; then
4014
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4015
else
4016
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4017
for as_dir in $PATH
4018
do
4019
  IFS=$as_save_IFS
4020
  test -z "$as_dir" && as_dir=.
4021
    for ac_exec_ext in '' $ac_executable_extensions; do
4022
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4023
    ac_cv_prog_ac_ct_CC="gcc"
4024
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4025
    break 2
4026
  fi
4027
done
4028
  done
4029
IFS=$as_save_IFS
4030
 
4031
fi
4032
fi
4033
ac_ct_CC=$ac_cv_prog_ac_ct_CC
4034
if test -n "$ac_ct_CC"; then
4035
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4036
$as_echo "$ac_ct_CC" >&6; }
4037
else
4038
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4039
$as_echo "no" >&6; }
4040
fi
4041
 
4042
  if test "x$ac_ct_CC" = x; then
4043
    CC=""
4044
  else
4045
    case $cross_compiling:$ac_tool_warned in
4046
yes:)
4047
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4048
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4049
ac_tool_warned=yes ;;
4050
esac
4051
    CC=$ac_ct_CC
4052
  fi
4053
else
4054
  CC="$ac_cv_prog_CC"
4055
fi
4056
 
4057
if test -z "$CC"; then
4058
          if test -n "$ac_tool_prefix"; then
4059
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4060
set dummy ${ac_tool_prefix}cc; ac_word=$2
4061
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4062
$as_echo_n "checking for $ac_word... " >&6; }
4063
if test "${ac_cv_prog_CC+set}" = set; then :
4064
  $as_echo_n "(cached) " >&6
4065
else
4066
  if test -n "$CC"; then
4067
  ac_cv_prog_CC="$CC" # Let the user override the test.
4068
else
4069
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4070
for as_dir in $PATH
4071
do
4072
  IFS=$as_save_IFS
4073
  test -z "$as_dir" && as_dir=.
4074
    for ac_exec_ext in '' $ac_executable_extensions; do
4075
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4076
    ac_cv_prog_CC="${ac_tool_prefix}cc"
4077
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4078
    break 2
4079
  fi
4080
done
4081
  done
4082
IFS=$as_save_IFS
4083
 
4084
fi
4085
fi
4086
CC=$ac_cv_prog_CC
4087
if test -n "$CC"; then
4088
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4089
$as_echo "$CC" >&6; }
4090
else
4091
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4092
$as_echo "no" >&6; }
4093
fi
4094
 
4095
 
4096
  fi
4097
fi
4098
if test -z "$CC"; then
4099
  # Extract the first word of "cc", so it can be a program name with args.
4100
set dummy cc; ac_word=$2
4101
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4102
$as_echo_n "checking for $ac_word... " >&6; }
4103
if test "${ac_cv_prog_CC+set}" = set; then :
4104
  $as_echo_n "(cached) " >&6
4105
else
4106
  if test -n "$CC"; then
4107
  ac_cv_prog_CC="$CC" # Let the user override the test.
4108
else
4109
  ac_prog_rejected=no
4110
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4111
for as_dir in $PATH
4112
do
4113
  IFS=$as_save_IFS
4114
  test -z "$as_dir" && as_dir=.
4115
    for ac_exec_ext in '' $ac_executable_extensions; do
4116
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4117
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4118
       ac_prog_rejected=yes
4119
       continue
4120
     fi
4121
    ac_cv_prog_CC="cc"
4122
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4123
    break 2
4124
  fi
4125
done
4126
  done
4127
IFS=$as_save_IFS
4128
 
4129
if test $ac_prog_rejected = yes; then
4130
  # We found a bogon in the path, so make sure we never use it.
4131
  set dummy $ac_cv_prog_CC
4132
  shift
4133
  if test $# != 0; then
4134
    # We chose a different compiler from the bogus one.
4135
    # However, it has the same basename, so the bogon will be chosen
4136
    # first if we set CC to just the basename; use the full file name.
4137
    shift
4138
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4139
  fi
4140
fi
4141
fi
4142
fi
4143
CC=$ac_cv_prog_CC
4144
if test -n "$CC"; then
4145
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4146
$as_echo "$CC" >&6; }
4147
else
4148
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4149
$as_echo "no" >&6; }
4150
fi
4151
 
4152
 
4153
fi
4154
if test -z "$CC"; then
4155
  if test -n "$ac_tool_prefix"; then
4156
  for ac_prog in cl.exe
4157
  do
4158
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4159
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4160
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4161
$as_echo_n "checking for $ac_word... " >&6; }
4162
if test "${ac_cv_prog_CC+set}" = set; then :
4163
  $as_echo_n "(cached) " >&6
4164
else
4165
  if test -n "$CC"; then
4166
  ac_cv_prog_CC="$CC" # Let the user override the test.
4167
else
4168
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4169
for as_dir in $PATH
4170
do
4171
  IFS=$as_save_IFS
4172
  test -z "$as_dir" && as_dir=.
4173
    for ac_exec_ext in '' $ac_executable_extensions; do
4174
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4175
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4176
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4177
    break 2
4178
  fi
4179
done
4180
  done
4181
IFS=$as_save_IFS
4182
 
4183
fi
4184
fi
4185
CC=$ac_cv_prog_CC
4186
if test -n "$CC"; then
4187
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4188
$as_echo "$CC" >&6; }
4189
else
4190
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4191
$as_echo "no" >&6; }
4192
fi
4193
 
4194
 
4195
    test -n "$CC" && break
4196
  done
4197
fi
4198
if test -z "$CC"; then
4199
  ac_ct_CC=$CC
4200
  for ac_prog in cl.exe
4201
do
4202
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4203
set dummy $ac_prog; ac_word=$2
4204
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4205
$as_echo_n "checking for $ac_word... " >&6; }
4206
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4207
  $as_echo_n "(cached) " >&6
4208
else
4209
  if test -n "$ac_ct_CC"; then
4210
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4211
else
4212
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4213
for as_dir in $PATH
4214
do
4215
  IFS=$as_save_IFS
4216
  test -z "$as_dir" && as_dir=.
4217
    for ac_exec_ext in '' $ac_executable_extensions; do
4218
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4219
    ac_cv_prog_ac_ct_CC="$ac_prog"
4220
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4221
    break 2
4222
  fi
4223
done
4224
  done
4225
IFS=$as_save_IFS
4226
 
4227
fi
4228
fi
4229
ac_ct_CC=$ac_cv_prog_ac_ct_CC
4230
if test -n "$ac_ct_CC"; then
4231
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4232
$as_echo "$ac_ct_CC" >&6; }
4233
else
4234
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4235
$as_echo "no" >&6; }
4236
fi
4237
 
4238
 
4239
  test -n "$ac_ct_CC" && break
4240
done
4241
 
4242
  if test "x$ac_ct_CC" = x; then
4243
    CC=""
4244
  else
4245
    case $cross_compiling:$ac_tool_warned in
4246
yes:)
4247
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4248
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4249
ac_tool_warned=yes ;;
4250
esac
4251
    CC=$ac_ct_CC
4252
  fi
4253
fi
4254
 
4255
fi
4256
 
4257
 
4258
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4259
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4260
as_fn_error "no acceptable C compiler found in \$PATH
4261
See \`config.log' for more details." "$LINENO" 5; }
4262
 
4263
# Provide some information about the compiler.
4264
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4265
set X $ac_compile
4266
ac_compiler=$2
4267
for ac_option in --version -v -V -qversion; do
4268
  { { ac_try="$ac_compiler $ac_option >&5"
4269
case "(($ac_try" in
4270
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4271
  *) ac_try_echo=$ac_try;;
4272
esac
4273
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4274
$as_echo "$ac_try_echo"; } >&5
4275
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4276
  ac_status=$?
4277
  if test -s conftest.err; then
4278
    sed '10a\
4279
... rest of stderr output deleted ...
4280
         10q' conftest.err >conftest.er1
4281
    cat conftest.er1 >&5
4282
    rm -f conftest.er1 conftest.err
4283
  fi
4284
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4285
  test $ac_status = 0; }
4286
done
4287
 
4288
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4289
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4290
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4291
  $as_echo_n "(cached) " >&6
4292
else
4293
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4294
/* end confdefs.h.  */
4295
 
4296
int
4297
main ()
4298
{
4299
#ifndef __GNUC__
4300
       choke me
4301
#endif
4302
 
4303
  ;
4304
  return 0;
4305
}
4306
_ACEOF
4307
if ac_fn_c_try_compile "$LINENO"; then :
4308
  ac_compiler_gnu=yes
4309
else
4310
  ac_compiler_gnu=no
4311
fi
4312
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4313
ac_cv_c_compiler_gnu=$ac_compiler_gnu
4314
 
4315
fi
4316
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4317
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4318
if test $ac_compiler_gnu = yes; then
4319
  GCC=yes
4320
else
4321
  GCC=
4322
fi
4323
ac_test_CFLAGS=${CFLAGS+set}
4324
ac_save_CFLAGS=$CFLAGS
4325
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4326
$as_echo_n "checking whether $CC accepts -g... " >&6; }
4327
if test "${ac_cv_prog_cc_g+set}" = set; then :
4328
  $as_echo_n "(cached) " >&6
4329
else
4330
  ac_save_c_werror_flag=$ac_c_werror_flag
4331
   ac_c_werror_flag=yes
4332
   ac_cv_prog_cc_g=no
4333
   CFLAGS="-g"
4334
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4335
/* end confdefs.h.  */
4336
 
4337
int
4338
main ()
4339
{
4340
 
4341
  ;
4342
  return 0;
4343
}
4344
_ACEOF
4345
if ac_fn_c_try_compile "$LINENO"; then :
4346
  ac_cv_prog_cc_g=yes
4347
else
4348
  CFLAGS=""
4349
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4350
/* end confdefs.h.  */
4351
 
4352
int
4353
main ()
4354
{
4355
 
4356
  ;
4357
  return 0;
4358
}
4359
_ACEOF
4360
if ac_fn_c_try_compile "$LINENO"; then :
4361
 
4362
else
4363
  ac_c_werror_flag=$ac_save_c_werror_flag
4364
         CFLAGS="-g"
4365
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4366
/* end confdefs.h.  */
4367
 
4368
int
4369
main ()
4370
{
4371
 
4372
  ;
4373
  return 0;
4374
}
4375
_ACEOF
4376
if ac_fn_c_try_compile "$LINENO"; then :
4377
  ac_cv_prog_cc_g=yes
4378
fi
4379
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4380
fi
4381
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4382
fi
4383
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4384
   ac_c_werror_flag=$ac_save_c_werror_flag
4385
fi
4386
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4387
$as_echo "$ac_cv_prog_cc_g" >&6; }
4388
if test "$ac_test_CFLAGS" = set; then
4389
  CFLAGS=$ac_save_CFLAGS
4390
elif test $ac_cv_prog_cc_g = yes; then
4391
  if test "$GCC" = yes; then
4392
    CFLAGS="-g -O2"
4393
  else
4394
    CFLAGS="-g"
4395
  fi
4396
else
4397
  if test "$GCC" = yes; then
4398
    CFLAGS="-O2"
4399
  else
4400
    CFLAGS=
4401
  fi
4402
fi
4403
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4404
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4405
if test "${ac_cv_prog_cc_c89+set}" = set; then :
4406
  $as_echo_n "(cached) " >&6
4407
else
4408
  ac_cv_prog_cc_c89=no
4409
ac_save_CC=$CC
4410
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4411
/* end confdefs.h.  */
4412
#include 
4413
#include 
4414
#include 
4415
#include 
4416
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4417
struct buf { int x; };
4418
FILE * (*rcsopen) (struct buf *, struct stat *, int);
4419
static char *e (p, i)
4420
     char **p;
4421
     int i;
4422
{
4423
  return p[i];
4424
}
4425
static char *f (char * (*g) (char **, int), char **p, ...)
4426
{
4427
  char *s;
4428
  va_list v;
4429
  va_start (v,p);
4430
  s = g (p, va_arg (v,int));
4431
  va_end (v);
4432
  return s;
4433
}
4434
 
4435
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4436
   function prototypes and stuff, but not '\xHH' hex character constants.
4437
   These don't provoke an error unfortunately, instead are silently treated
4438
   as 'x'.  The following induces an error, until -std is added to get
4439
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4440
   array size at least.  It's necessary to write '\x00'==0 to get something
4441
   that's true only with -std.  */
4442
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4443
 
4444
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4445
   inside strings and character constants.  */
4446
#define FOO(x) 'x'
4447
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4448
 
4449
int test (int i, double x);
4450
struct s1 {int (*f) (int a);};
4451
struct s2 {int (*f) (double a);};
4452
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4453
int argc;
4454
char **argv;
4455
int
4456
main ()
4457
{
4458
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4459
  ;
4460
  return 0;
4461
}
4462
_ACEOF
4463
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4464
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4465
do
4466
  CC="$ac_save_CC $ac_arg"
4467
  if ac_fn_c_try_compile "$LINENO"; then :
4468
  ac_cv_prog_cc_c89=$ac_arg
4469
fi
4470
rm -f core conftest.err conftest.$ac_objext
4471
  test "x$ac_cv_prog_cc_c89" != "xno" && break
4472
done
4473
rm -f conftest.$ac_ext
4474
CC=$ac_save_CC
4475
 
4476
fi
4477
# AC_CACHE_VAL
4478
case "x$ac_cv_prog_cc_c89" in
4479
  x)
4480
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4481
$as_echo "none needed" >&6; } ;;
4482
  xno)
4483
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4484
$as_echo "unsupported" >&6; } ;;
4485
  *)
4486
    CC="$CC $ac_cv_prog_cc_c89"
4487
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4488
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4489
esac
4490
if test "x$ac_cv_prog_cc_c89" != xno; then :
4491
 
4492
fi
4493
 
4494
ac_ext=c
4495
ac_cpp='$CPP $CPPFLAGS'
4496
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4497
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4498
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4499
 
4500
ac_ext=c
4501
ac_cpp='$CPP $CPPFLAGS'
4502
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4503
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4504
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4505
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4506
$as_echo_n "checking how to run the C preprocessor... " >&6; }
4507
# On Suns, sometimes $CPP names a directory.
4508
if test -n "$CPP" && test -d "$CPP"; then
4509
  CPP=
4510
fi
4511
if test -z "$CPP"; then
4512
  if test "${ac_cv_prog_CPP+set}" = set; then :
4513
  $as_echo_n "(cached) " >&6
4514
else
4515
      # Double quotes because CPP needs to be expanded
4516
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4517
    do
4518
      ac_preproc_ok=false
4519
for ac_c_preproc_warn_flag in '' yes
4520
do
4521
  # Use a header file that comes with gcc, so configuring glibc
4522
  # with a fresh cross-compiler works.
4523
  # Prefer  to  if __STDC__ is defined, since
4524
  #  exists even on freestanding compilers.
4525
  # On the NeXT, cc -E runs the code through the compiler's parser,
4526
  # not just through cpp. "Syntax error" is here to catch this case.
4527
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4528
/* end confdefs.h.  */
4529
#ifdef __STDC__
4530
# include 
4531
#else
4532
# include 
4533
#endif
4534
                     Syntax error
4535
_ACEOF
4536
if ac_fn_c_try_cpp "$LINENO"; then :
4537
 
4538
else
4539
  # Broken: fails on valid input.
4540
continue
4541
fi
4542
rm -f conftest.err conftest.$ac_ext
4543
 
4544
  # OK, works on sane cases.  Now check whether nonexistent headers
4545
  # can be detected and how.
4546
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4547
/* end confdefs.h.  */
4548
#include 
4549
_ACEOF
4550
if ac_fn_c_try_cpp "$LINENO"; then :
4551
  # Broken: success on invalid input.
4552
continue
4553
else
4554
  # Passes both tests.
4555
ac_preproc_ok=:
4556
break
4557
fi
4558
rm -f conftest.err conftest.$ac_ext
4559
 
4560
done
4561
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4562
rm -f conftest.err conftest.$ac_ext
4563
if $ac_preproc_ok; then :
4564
  break
4565
fi
4566
 
4567
    done
4568
    ac_cv_prog_CPP=$CPP
4569
 
4570
fi
4571
  CPP=$ac_cv_prog_CPP
4572
else
4573
  ac_cv_prog_CPP=$CPP
4574
fi
4575
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4576
$as_echo "$CPP" >&6; }
4577
ac_preproc_ok=false
4578
for ac_c_preproc_warn_flag in '' yes
4579
do
4580
  # Use a header file that comes with gcc, so configuring glibc
4581
  # with a fresh cross-compiler works.
4582
  # Prefer  to  if __STDC__ is defined, since
4583
  #  exists even on freestanding compilers.
4584
  # On the NeXT, cc -E runs the code through the compiler's parser,
4585
  # not just through cpp. "Syntax error" is here to catch this case.
4586
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4587
/* end confdefs.h.  */
4588
#ifdef __STDC__
4589
# include 
4590
#else
4591
# include 
4592
#endif
4593
                     Syntax error
4594
_ACEOF
4595
if ac_fn_c_try_cpp "$LINENO"; then :
4596
 
4597
else
4598
  # Broken: fails on valid input.
4599
continue
4600
fi
4601
rm -f conftest.err conftest.$ac_ext
4602
 
4603
  # OK, works on sane cases.  Now check whether nonexistent headers
4604
  # can be detected and how.
4605
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4606
/* end confdefs.h.  */
4607
#include 
4608
_ACEOF
4609
if ac_fn_c_try_cpp "$LINENO"; then :
4610
  # Broken: success on invalid input.
4611
continue
4612
else
4613
  # Passes both tests.
4614
ac_preproc_ok=:
4615
break
4616
fi
4617
rm -f conftest.err conftest.$ac_ext
4618
 
4619
done
4620
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4621
rm -f conftest.err conftest.$ac_ext
4622
if $ac_preproc_ok; then :
4623
 
4624
else
4625
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4626
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4627
as_fn_error "C preprocessor \"$CPP\" fails sanity check
4628
See \`config.log' for more details." "$LINENO" 5; }
4629
fi
4630
 
4631
ac_ext=c
4632
ac_cpp='$CPP $CPPFLAGS'
4633
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4634
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4635
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4636
 
4637
 
4638
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4639
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4640
if test "${ac_cv_path_GREP+set}" = set; then :
4641
  $as_echo_n "(cached) " >&6
4642
else
4643
  if test -z "$GREP"; then
4644
  ac_path_GREP_found=false
4645
  # Loop through the user's path and test for each of PROGNAME-LIST
4646
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4647
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4648
do
4649
  IFS=$as_save_IFS
4650
  test -z "$as_dir" && as_dir=.
4651
    for ac_prog in grep ggrep; do
4652
    for ac_exec_ext in '' $ac_executable_extensions; do
4653
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4654
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4655
# Check for GNU ac_path_GREP and select it if it is found.
4656
  # Check for GNU $ac_path_GREP
4657
case `"$ac_path_GREP" --version 2>&1` in
4658
*GNU*)
4659
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4660
*)
4661
  ac_count=0
4662
  $as_echo_n 0123456789 >"conftest.in"
4663
  while :
4664
  do
4665
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4666
    mv "conftest.tmp" "conftest.in"
4667
    cp "conftest.in" "conftest.nl"
4668
    $as_echo 'GREP' >> "conftest.nl"
4669
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4670
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4671
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4672
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4673
      # Best one so far, save it but keep looking for a better one
4674
      ac_cv_path_GREP="$ac_path_GREP"
4675
      ac_path_GREP_max=$ac_count
4676
    fi
4677
    # 10*(2^10) chars as input seems more than enough
4678
    test $ac_count -gt 10 && break
4679
  done
4680
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4681
esac
4682
 
4683
      $ac_path_GREP_found && break 3
4684
    done
4685
  done
4686
  done
4687
IFS=$as_save_IFS
4688
  if test -z "$ac_cv_path_GREP"; then
4689
    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4690
  fi
4691
else
4692
  ac_cv_path_GREP=$GREP
4693
fi
4694
 
4695
fi
4696
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4697
$as_echo "$ac_cv_path_GREP" >&6; }
4698
 GREP="$ac_cv_path_GREP"
4699
 
4700
 
4701
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4702
$as_echo_n "checking for egrep... " >&6; }
4703
if test "${ac_cv_path_EGREP+set}" = set; then :
4704
  $as_echo_n "(cached) " >&6
4705
else
4706
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4707
   then ac_cv_path_EGREP="$GREP -E"
4708
   else
4709
     if test -z "$EGREP"; then
4710
  ac_path_EGREP_found=false
4711
  # Loop through the user's path and test for each of PROGNAME-LIST
4712
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4713
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4714
do
4715
  IFS=$as_save_IFS
4716
  test -z "$as_dir" && as_dir=.
4717
    for ac_prog in egrep; do
4718
    for ac_exec_ext in '' $ac_executable_extensions; do
4719
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4720
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4721
# Check for GNU ac_path_EGREP and select it if it is found.
4722
  # Check for GNU $ac_path_EGREP
4723
case `"$ac_path_EGREP" --version 2>&1` in
4724
*GNU*)
4725
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4726
*)
4727
  ac_count=0
4728
  $as_echo_n 0123456789 >"conftest.in"
4729
  while :
4730
  do
4731
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4732
    mv "conftest.tmp" "conftest.in"
4733
    cp "conftest.in" "conftest.nl"
4734
    $as_echo 'EGREP' >> "conftest.nl"
4735
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4736
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4737
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4738
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4739
      # Best one so far, save it but keep looking for a better one
4740
      ac_cv_path_EGREP="$ac_path_EGREP"
4741
      ac_path_EGREP_max=$ac_count
4742
    fi
4743
    # 10*(2^10) chars as input seems more than enough
4744
    test $ac_count -gt 10 && break
4745
  done
4746
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4747
esac
4748
 
4749
      $ac_path_EGREP_found && break 3
4750
    done
4751
  done
4752
  done
4753
IFS=$as_save_IFS
4754
  if test -z "$ac_cv_path_EGREP"; then
4755
    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4756
  fi
4757
else
4758
  ac_cv_path_EGREP=$EGREP
4759
fi
4760
 
4761
   fi
4762
fi
4763
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4764
$as_echo "$ac_cv_path_EGREP" >&6; }
4765
 EGREP="$ac_cv_path_EGREP"
4766
 
4767
 
4768
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4769
$as_echo_n "checking for ANSI C header files... " >&6; }
4770
if test "${ac_cv_header_stdc+set}" = set; then :
4771
  $as_echo_n "(cached) " >&6
4772
else
4773
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4774
/* end confdefs.h.  */
4775
#include 
4776
#include 
4777
#include 
4778
#include 
4779
 
4780
int
4781
main ()
4782
{
4783
 
4784
  ;
4785
  return 0;
4786
}
4787
_ACEOF
4788
if ac_fn_c_try_compile "$LINENO"; then :
4789
  ac_cv_header_stdc=yes
4790
else
4791
  ac_cv_header_stdc=no
4792
fi
4793
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4794
 
4795
if test $ac_cv_header_stdc = yes; then
4796
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4797
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4798
/* end confdefs.h.  */
4799
#include 
4800
 
4801
_ACEOF
4802
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4803
  $EGREP "memchr" >/dev/null 2>&1; then :
4804
 
4805
else
4806
  ac_cv_header_stdc=no
4807
fi
4808
rm -f conftest*
4809
 
4810
fi
4811
 
4812
if test $ac_cv_header_stdc = yes; then
4813
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4814
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4815
/* end confdefs.h.  */
4816
#include 
4817
 
4818
_ACEOF
4819
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4820
  $EGREP "free" >/dev/null 2>&1; then :
4821
 
4822
else
4823
  ac_cv_header_stdc=no
4824
fi
4825
rm -f conftest*
4826
 
4827
fi
4828
 
4829
if test $ac_cv_header_stdc = yes; then
4830
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4831
  if test "$cross_compiling" = yes; then :
4832
  :
4833
else
4834
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4835
/* end confdefs.h.  */
4836
#include 
4837
#include 
4838
#if ((' ' & 0x0FF) == 0x020)
4839
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4840
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4841
#else
4842
# define ISLOWER(c) \
4843
                   (('a' <= (c) && (c) <= 'i') \
4844
                     || ('j' <= (c) && (c) <= 'r') \
4845
                     || ('s' <= (c) && (c) <= 'z'))
4846
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4847
#endif
4848
 
4849
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4850
int
4851
main ()
4852
{
4853
  int i;
4854
  for (i = 0; i < 256; i++)
4855
    if (XOR (islower (i), ISLOWER (i))
4856
        || toupper (i) != TOUPPER (i))
4857
      return 2;
4858
  return 0;
4859
}
4860
_ACEOF
4861
if ac_fn_c_try_run "$LINENO"; then :
4862
 
4863
else
4864
  ac_cv_header_stdc=no
4865
fi
4866
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4867
  conftest.$ac_objext conftest.beam conftest.$ac_ext
4868
fi
4869
 
4870
fi
4871
fi
4872
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4873
$as_echo "$ac_cv_header_stdc" >&6; }
4874
if test $ac_cv_header_stdc = yes; then
4875
 
4876
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4877
 
4878
fi
4879
 
4880
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4881
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4882
                  inttypes.h stdint.h unistd.h
4883
do :
4884
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4885
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4886
"
4887
eval as_val=\$$as_ac_Header
4888
   if test "x$as_val" = x""yes; then :
4889
  cat >>confdefs.h <<_ACEOF
4890
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4891
_ACEOF
4892
 
4893
fi
4894
 
4895
done
4896
 
4897
 
4898
 
4899
  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4900
if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4901
  MINIX=yes
4902
else
4903
  MINIX=
4904
fi
4905
 
4906
 
4907
  if test "$MINIX" = yes; then
4908
 
4909
$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4910
 
4911
 
4912
$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4913
 
4914
 
4915
$as_echo "#define _MINIX 1" >>confdefs.h
4916
 
4917
  fi
4918
 
4919
 
4920
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4921
$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4922
if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4923
  $as_echo_n "(cached) " >&6
4924
else
4925
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4926
/* end confdefs.h.  */
4927
 
4928
#         define __EXTENSIONS__ 1
4929
          $ac_includes_default
4930
int
4931
main ()
4932
{
4933
 
4934
  ;
4935
  return 0;
4936
}
4937
_ACEOF
4938
if ac_fn_c_try_compile "$LINENO"; then :
4939
  ac_cv_safe_to_define___extensions__=yes
4940
else
4941
  ac_cv_safe_to_define___extensions__=no
4942
fi
4943
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4944
fi
4945
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4946
$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4947
  test $ac_cv_safe_to_define___extensions__ = yes &&
4948
    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4949
 
4950
  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4951
 
4952
  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4953
 
4954
  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4955
 
4956
  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4957
 
4958
 
4959
 
4960
 
4961
# Check whether --enable-largefile was given.
4962
if test "${enable_largefile+set}" = set; then :
4963
  enableval=$enable_largefile;
4964
fi
4965
 
4966
if test "$enable_largefile" != no; then
4967
 
4968
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4969
$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4970
if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4971
  $as_echo_n "(cached) " >&6
4972
else
4973
  ac_cv_sys_largefile_CC=no
4974
     if test "$GCC" != yes; then
4975
       ac_save_CC=$CC
4976
       while :; do
4977
         # IRIX 6.2 and later do not support large files by default,
4978
         # so use the C compiler's -n32 option if that helps.
4979
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4980
/* end confdefs.h.  */
4981
#include 
4982
 /* Check that off_t can represent 2**63 - 1 correctly.
4983
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4984
    since some C++ compilers masquerading as C compilers
4985
    incorrectly reject 9223372036854775807.  */
4986
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4987
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4988
                       && LARGE_OFF_T % 2147483647 == 1)
4989
                      ? 1 : -1];
4990
int
4991
main ()
4992
{
4993
 
4994
  ;
4995
  return 0;
4996
}
4997
_ACEOF
4998
         if ac_fn_c_try_compile "$LINENO"; then :
4999
  break
5000
fi
5001
rm -f core conftest.err conftest.$ac_objext
5002
         CC="$CC -n32"
5003
         if ac_fn_c_try_compile "$LINENO"; then :
5004
  ac_cv_sys_largefile_CC=' -n32'; break
5005
fi
5006
rm -f core conftest.err conftest.$ac_objext
5007
         break
5008
       done
5009
       CC=$ac_save_CC
5010
       rm -f conftest.$ac_ext
5011
    fi
5012
fi
5013
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5014
$as_echo "$ac_cv_sys_largefile_CC" >&6; }
5015
  if test "$ac_cv_sys_largefile_CC" != no; then
5016
    CC=$CC$ac_cv_sys_largefile_CC
5017
  fi
5018
 
5019
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5020
$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5021
if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5022
  $as_echo_n "(cached) " >&6
5023
else
5024
  while :; do
5025
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5026
/* end confdefs.h.  */
5027
#include 
5028
 /* Check that off_t can represent 2**63 - 1 correctly.
5029
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5030
    since some C++ compilers masquerading as C compilers
5031
    incorrectly reject 9223372036854775807.  */
5032
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5033
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5034
                       && LARGE_OFF_T % 2147483647 == 1)
5035
                      ? 1 : -1];
5036
int
5037
main ()
5038
{
5039
 
5040
  ;
5041
  return 0;
5042
}
5043
_ACEOF
5044
if ac_fn_c_try_compile "$LINENO"; then :
5045
  ac_cv_sys_file_offset_bits=no; break
5046
fi
5047
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5048
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5049
/* end confdefs.h.  */
5050
#define _FILE_OFFSET_BITS 64
5051
#include 
5052
 /* Check that off_t can represent 2**63 - 1 correctly.
5053
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5054
    since some C++ compilers masquerading as C compilers
5055
    incorrectly reject 9223372036854775807.  */
5056
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5057
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5058
                       && LARGE_OFF_T % 2147483647 == 1)
5059
                      ? 1 : -1];
5060
int
5061
main ()
5062
{
5063
 
5064
  ;
5065
  return 0;
5066
}
5067
_ACEOF
5068
if ac_fn_c_try_compile "$LINENO"; then :
5069
  ac_cv_sys_file_offset_bits=64; break
5070
fi
5071
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5072
  ac_cv_sys_file_offset_bits=unknown
5073
  break
5074
done
5075
fi
5076
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5077
$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5078
case $ac_cv_sys_file_offset_bits in #(
5079
  no | unknown) ;;
5080
  *)
5081
cat >>confdefs.h <<_ACEOF
5082
#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5083
_ACEOF
5084
;;
5085
esac
5086
rm -rf conftest*
5087
  if test $ac_cv_sys_file_offset_bits = unknown; then
5088
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5089
$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5090
if test "${ac_cv_sys_large_files+set}" = set; then :
5091
  $as_echo_n "(cached) " >&6
5092
else
5093
  while :; do
5094
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5095
/* end confdefs.h.  */
5096
#include 
5097
 /* Check that off_t can represent 2**63 - 1 correctly.
5098
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5099
    since some C++ compilers masquerading as C compilers
5100
    incorrectly reject 9223372036854775807.  */
5101
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5102
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5103
                       && LARGE_OFF_T % 2147483647 == 1)
5104
                      ? 1 : -1];
5105
int
5106
main ()
5107
{
5108
 
5109
  ;
5110
  return 0;
5111
}
5112
_ACEOF
5113
if ac_fn_c_try_compile "$LINENO"; then :
5114
  ac_cv_sys_large_files=no; break
5115
fi
5116
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5117
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5118
/* end confdefs.h.  */
5119
#define _LARGE_FILES 1
5120
#include 
5121
 /* Check that off_t can represent 2**63 - 1 correctly.
5122
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5123
    since some C++ compilers masquerading as C compilers
5124
    incorrectly reject 9223372036854775807.  */
5125
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5126
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5127
                       && LARGE_OFF_T % 2147483647 == 1)
5128
                      ? 1 : -1];
5129
int
5130
main ()
5131
{
5132
 
5133
  ;
5134
  return 0;
5135
}
5136
_ACEOF
5137
if ac_fn_c_try_compile "$LINENO"; then :
5138
  ac_cv_sys_large_files=1; break
5139
fi
5140
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5141
  ac_cv_sys_large_files=unknown
5142
  break
5143
done
5144
fi
5145
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5146
$as_echo "$ac_cv_sys_large_files" >&6; }
5147
case $ac_cv_sys_large_files in #(
5148
  no | unknown) ;;
5149
  *)
5150
cat >>confdefs.h <<_ACEOF
5151
#define _LARGE_FILES $ac_cv_sys_large_files
5152
_ACEOF
5153
;;
5154
esac
5155
rm -rf conftest*
5156
  fi
5157
fi
5158
 
5159
 
5160
 
5161
case `pwd` in
5162
  *\ * | *\     *)
5163
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5164
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5165
esac
5166
 
5167
 
5168
 
5169
macro_version='2.2.6'
5170
macro_revision='1.3012'
5171
 
5172
 
5173
 
5174
 
5175
 
5176
 
5177
 
5178
 
5179
 
5180
 
5181
 
5182
 
5183
 
5184
ltmain="$ac_aux_dir/ltmain.sh"
5185
 
5186
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5187
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5188
if test "${ac_cv_path_SED+set}" = set; then :
5189
  $as_echo_n "(cached) " >&6
5190
else
5191
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5192
     for ac_i in 1 2 3 4 5 6 7; do
5193
       ac_script="$ac_script$as_nl$ac_script"
5194
     done
5195
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5196
     { ac_script=; unset ac_script;}
5197
     if test -z "$SED"; then
5198
  ac_path_SED_found=false
5199
  # Loop through the user's path and test for each of PROGNAME-LIST
5200
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5201
for as_dir in $PATH
5202
do
5203
  IFS=$as_save_IFS
5204
  test -z "$as_dir" && as_dir=.
5205
    for ac_prog in sed gsed; do
5206
    for ac_exec_ext in '' $ac_executable_extensions; do
5207
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5208
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5209
# Check for GNU ac_path_SED and select it if it is found.
5210
  # Check for GNU $ac_path_SED
5211
case `"$ac_path_SED" --version 2>&1` in
5212
*GNU*)
5213
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5214
*)
5215
  ac_count=0
5216
  $as_echo_n 0123456789 >"conftest.in"
5217
  while :
5218
  do
5219
    cat "conftest.in" "conftest.in" >"conftest.tmp"
5220
    mv "conftest.tmp" "conftest.in"
5221
    cp "conftest.in" "conftest.nl"
5222
    $as_echo '' >> "conftest.nl"
5223
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5224
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5225
    as_fn_arith $ac_count + 1 && ac_count=$as_val
5226
    if test $ac_count -gt ${ac_path_SED_max-0}; then
5227
      # Best one so far, save it but keep looking for a better one
5228
      ac_cv_path_SED="$ac_path_SED"
5229
      ac_path_SED_max=$ac_count
5230
    fi
5231
    # 10*(2^10) chars as input seems more than enough
5232
    test $ac_count -gt 10 && break
5233
  done
5234
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5235
esac
5236
 
5237
      $ac_path_SED_found && break 3
5238
    done
5239
  done
5240
  done
5241
IFS=$as_save_IFS
5242
  if test -z "$ac_cv_path_SED"; then
5243
    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5244
  fi
5245
else
5246
  ac_cv_path_SED=$SED
5247
fi
5248
 
5249
fi
5250
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5251
$as_echo "$ac_cv_path_SED" >&6; }
5252
 SED="$ac_cv_path_SED"
5253
  rm -f conftest.sed
5254
 
5255
test -z "$SED" && SED=sed
5256
Xsed="$SED -e 1s/^X//"
5257
 
5258
 
5259
 
5260
 
5261
 
5262
 
5263
 
5264
 
5265
 
5266
 
5267
 
5268
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5269
$as_echo_n "checking for fgrep... " >&6; }
5270
if test "${ac_cv_path_FGREP+set}" = set; then :
5271
  $as_echo_n "(cached) " >&6
5272
else
5273
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5274
   then ac_cv_path_FGREP="$GREP -F"
5275
   else
5276
     if test -z "$FGREP"; then
5277
  ac_path_FGREP_found=false
5278
  # Loop through the user's path and test for each of PROGNAME-LIST
5279
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5280
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5281
do
5282
  IFS=$as_save_IFS
5283
  test -z "$as_dir" && as_dir=.
5284
    for ac_prog in fgrep; do
5285
    for ac_exec_ext in '' $ac_executable_extensions; do
5286
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5287
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5288
# Check for GNU ac_path_FGREP and select it if it is found.
5289
  # Check for GNU $ac_path_FGREP
5290
case `"$ac_path_FGREP" --version 2>&1` in
5291
*GNU*)
5292
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5293
*)
5294
  ac_count=0
5295
  $as_echo_n 0123456789 >"conftest.in"
5296
  while :
5297
  do
5298
    cat "conftest.in" "conftest.in" >"conftest.tmp"
5299
    mv "conftest.tmp" "conftest.in"
5300
    cp "conftest.in" "conftest.nl"
5301
    $as_echo 'FGREP' >> "conftest.nl"
5302
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5303
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5304
    as_fn_arith $ac_count + 1 && ac_count=$as_val
5305
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5306
      # Best one so far, save it but keep looking for a better one
5307
      ac_cv_path_FGREP="$ac_path_FGREP"
5308
      ac_path_FGREP_max=$ac_count
5309
    fi
5310
    # 10*(2^10) chars as input seems more than enough
5311
    test $ac_count -gt 10 && break
5312
  done
5313
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5314
esac
5315
 
5316
      $ac_path_FGREP_found && break 3
5317
    done
5318
  done
5319
  done
5320
IFS=$as_save_IFS
5321
  if test -z "$ac_cv_path_FGREP"; then
5322
    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5323
  fi
5324
else
5325
  ac_cv_path_FGREP=$FGREP
5326
fi
5327
 
5328
   fi
5329
fi
5330
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5331
$as_echo "$ac_cv_path_FGREP" >&6; }
5332
 FGREP="$ac_cv_path_FGREP"
5333
 
5334
 
5335
test -z "$GREP" && GREP=grep
5336
 
5337
 
5338
 
5339
 
5340
 
5341
 
5342
 
5343
 
5344
 
5345
 
5346
 
5347
 
5348
 
5349
 
5350
 
5351
 
5352
 
5353
 
5354
 
5355
# Check whether --with-gnu-ld was given.
5356
if test "${with_gnu_ld+set}" = set; then :
5357
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5358
else
5359
  with_gnu_ld=no
5360
fi
5361
 
5362
ac_prog=ld
5363
if test "$GCC" = yes; then
5364
  # Check if gcc -print-prog-name=ld gives a path.
5365
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5366
$as_echo_n "checking for ld used by $CC... " >&6; }
5367
  case $host in
5368
  *-*-mingw*)
5369
    # gcc leaves a trailing carriage return which upsets mingw
5370
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5371
  *)
5372
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5373
  esac
5374
  case $ac_prog in
5375
    # Accept absolute paths.
5376
    [\\/]* | ?:[\\/]*)
5377
      re_direlt='/[^/][^/]*/\.\./'
5378
      # Canonicalize the pathname of ld
5379
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5380
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5381
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5382
      done
5383
      test -z "$LD" && LD="$ac_prog"
5384
      ;;
5385
  "")
5386
    # If it fails, then pretend we aren't using GCC.
5387
    ac_prog=ld
5388
    ;;
5389
  *)
5390
    # If it is relative, then search for the first ld in PATH.
5391
    with_gnu_ld=unknown
5392
    ;;
5393
  esac
5394
elif test "$with_gnu_ld" = yes; then
5395
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5396
$as_echo_n "checking for GNU ld... " >&6; }
5397
else
5398
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5399
$as_echo_n "checking for non-GNU ld... " >&6; }
5400
fi
5401
if test "${lt_cv_path_LD+set}" = set; then :
5402
  $as_echo_n "(cached) " >&6
5403
else
5404
  if test -z "$LD"; then
5405
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5406
  for ac_dir in $PATH; do
5407
    IFS="$lt_save_ifs"
5408
    test -z "$ac_dir" && ac_dir=.
5409
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5410
      lt_cv_path_LD="$ac_dir/$ac_prog"
5411
      # Check to see if the program is GNU ld.  I'd rather use --version,
5412
      # but apparently some variants of GNU ld only accept -v.
5413
      # Break only if it was the GNU/non-GNU ld that we prefer.
5414
      case `"$lt_cv_path_LD" -v 2>&1 
5415
      *GNU* | *'with BFD'*)
5416
        test "$with_gnu_ld" != no && break
5417
        ;;
5418
      *)
5419
        test "$with_gnu_ld" != yes && break
5420
        ;;
5421
      esac
5422
    fi
5423
  done
5424
  IFS="$lt_save_ifs"
5425
else
5426
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5427
fi
5428
fi
5429
 
5430
LD="$lt_cv_path_LD"
5431
if test -n "$LD"; then
5432
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5433
$as_echo "$LD" >&6; }
5434
else
5435
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5436
$as_echo "no" >&6; }
5437
fi
5438
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5439
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5440
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5441
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5442
  $as_echo_n "(cached) " >&6
5443
else
5444
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5445
case `$LD -v 2>&1 
5446
*GNU* | *'with BFD'*)
5447
  lt_cv_prog_gnu_ld=yes
5448
  ;;
5449
*)
5450
  lt_cv_prog_gnu_ld=no
5451
  ;;
5452
esac
5453
fi
5454
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5455
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5456
with_gnu_ld=$lt_cv_prog_gnu_ld
5457
 
5458
 
5459
 
5460
 
5461
 
5462
 
5463
 
5464
 
5465
 
5466
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5467
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5468
if test "${lt_cv_path_NM+set}" = set; then :
5469
  $as_echo_n "(cached) " >&6
5470
else
5471
  if test -n "$NM"; then
5472
  # Let the user override the test.
5473
  lt_cv_path_NM="$NM"
5474
else
5475
  lt_nm_to_check="${ac_tool_prefix}nm"
5476
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5477
    lt_nm_to_check="$lt_nm_to_check nm"
5478
  fi
5479
  for lt_tmp_nm in $lt_nm_to_check; do
5480
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5481
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5482
      IFS="$lt_save_ifs"
5483
      test -z "$ac_dir" && ac_dir=.
5484
      tmp_nm="$ac_dir/$lt_tmp_nm"
5485
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5486
        # Check to see if the nm accepts a BSD-compat flag.
5487
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5488
        #   nm: unknown option "B" ignored
5489
        # Tru64's nm complains that /dev/null is an invalid object file
5490
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5491
        */dev/null* | *'Invalid file or object type'*)
5492
          lt_cv_path_NM="$tmp_nm -B"
5493
          break
5494
          ;;
5495
        *)
5496
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5497
          */dev/null*)
5498
            lt_cv_path_NM="$tmp_nm -p"
5499
            break
5500
            ;;
5501
          *)
5502
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5503
            continue # so that we can try to find one that supports BSD flags
5504
            ;;
5505
          esac
5506
          ;;
5507
        esac
5508
      fi
5509
    done
5510
    IFS="$lt_save_ifs"
5511
  done
5512
  : ${lt_cv_path_NM=no}
5513
fi
5514
fi
5515
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5516
$as_echo "$lt_cv_path_NM" >&6; }
5517
if test "$lt_cv_path_NM" != "no"; then
5518
  NM="$lt_cv_path_NM"
5519
else
5520
  # Didn't find any BSD compatible name lister, look for dumpbin.
5521
  if test -n "$ac_tool_prefix"; then
5522
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5523
  do
5524
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5525
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5526
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5527
$as_echo_n "checking for $ac_word... " >&6; }
5528
if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5529
  $as_echo_n "(cached) " >&6
5530
else
5531
  if test -n "$DUMPBIN"; then
5532
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5533
else
5534
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5535
for as_dir in $PATH
5536
do
5537
  IFS=$as_save_IFS
5538
  test -z "$as_dir" && as_dir=.
5539
    for ac_exec_ext in '' $ac_executable_extensions; do
5540
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5541
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5542
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5543
    break 2
5544
  fi
5545
done
5546
  done
5547
IFS=$as_save_IFS
5548
 
5549
fi
5550
fi
5551
DUMPBIN=$ac_cv_prog_DUMPBIN
5552
if test -n "$DUMPBIN"; then
5553
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5554
$as_echo "$DUMPBIN" >&6; }
5555
else
5556
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5557
$as_echo "no" >&6; }
5558
fi
5559
 
5560
 
5561
    test -n "$DUMPBIN" && break
5562
  done
5563
fi
5564
if test -z "$DUMPBIN"; then
5565
  ac_ct_DUMPBIN=$DUMPBIN
5566
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5567
do
5568
  # Extract the first word of "$ac_prog", so it can be a program name with args.
5569
set dummy $ac_prog; ac_word=$2
5570
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5571
$as_echo_n "checking for $ac_word... " >&6; }
5572
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5573
  $as_echo_n "(cached) " >&6
5574
else
5575
  if test -n "$ac_ct_DUMPBIN"; then
5576
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5577
else
5578
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5579
for as_dir in $PATH
5580
do
5581
  IFS=$as_save_IFS
5582
  test -z "$as_dir" && as_dir=.
5583
    for ac_exec_ext in '' $ac_executable_extensions; do
5584
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5585
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5586
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5587
    break 2
5588
  fi
5589
done
5590
  done
5591
IFS=$as_save_IFS
5592
 
5593
fi
5594
fi
5595
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5596
if test -n "$ac_ct_DUMPBIN"; then
5597
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5598
$as_echo "$ac_ct_DUMPBIN" >&6; }
5599
else
5600
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5601
$as_echo "no" >&6; }
5602
fi
5603
 
5604
 
5605
  test -n "$ac_ct_DUMPBIN" && break
5606
done
5607
 
5608
  if test "x$ac_ct_DUMPBIN" = x; then
5609
    DUMPBIN=":"
5610
  else
5611
    case $cross_compiling:$ac_tool_warned in
5612
yes:)
5613
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5614
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5615
ac_tool_warned=yes ;;
5616
esac
5617
    DUMPBIN=$ac_ct_DUMPBIN
5618
  fi
5619
fi
5620
 
5621
 
5622
  if test "$DUMPBIN" != ":"; then
5623
    NM="$DUMPBIN"
5624
  fi
5625
fi
5626
test -z "$NM" && NM=nm
5627
 
5628
 
5629
 
5630
 
5631
 
5632
 
5633
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5634
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5635
if test "${lt_cv_nm_interface+set}" = set; then :
5636
  $as_echo_n "(cached) " >&6
5637
else
5638
  lt_cv_nm_interface="BSD nm"
5639
  echo "int some_variable = 0;" > conftest.$ac_ext
5640
  (eval echo "\"\$as_me:5640: $ac_compile\"" >&5)
5641
  (eval "$ac_compile" 2>conftest.err)
5642
  cat conftest.err >&5
5643
  (eval echo "\"\$as_me:5643: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5644
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5645
  cat conftest.err >&5
5646
  (eval echo "\"\$as_me:5646: output\"" >&5)
5647
  cat conftest.out >&5
5648
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5649
    lt_cv_nm_interface="MS dumpbin"
5650
  fi
5651
  rm -f conftest*
5652
fi
5653
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5654
$as_echo "$lt_cv_nm_interface" >&6; }
5655
 
5656
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5657
$as_echo_n "checking whether ln -s works... " >&6; }
5658
LN_S=$as_ln_s
5659
if test "$LN_S" = "ln -s"; then
5660
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5661
$as_echo "yes" >&6; }
5662
else
5663
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5664
$as_echo "no, using $LN_S" >&6; }
5665
fi
5666
 
5667
# find the maximum length of command line arguments
5668
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5669
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5670
if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5671
  $as_echo_n "(cached) " >&6
5672
else
5673
    i=0
5674
  teststring="ABCD"
5675
 
5676
  case $build_os in
5677
  msdosdjgpp*)
5678
    # On DJGPP, this test can blow up pretty badly due to problems in libc
5679
    # (any single argument exceeding 2000 bytes causes a buffer overrun
5680
    # during glob expansion).  Even if it were fixed, the result of this
5681
    # check would be larger than it should be.
5682
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5683
    ;;
5684
 
5685
  gnu*)
5686
    # Under GNU Hurd, this test is not required because there is
5687
    # no limit to the length of command line arguments.
5688
    # Libtool will interpret -1 as no limit whatsoever
5689
    lt_cv_sys_max_cmd_len=-1;
5690
    ;;
5691
 
5692
  cygwin* | mingw* | cegcc*)
5693
    # On Win9x/ME, this test blows up -- it succeeds, but takes
5694
    # about 5 minutes as the teststring grows exponentially.
5695
    # Worse, since 9x/ME are not pre-emptively multitasking,
5696
    # you end up with a "frozen" computer, even though with patience
5697
    # the test eventually succeeds (with a max line length of 256k).
5698
    # Instead, let's just punt: use the minimum linelength reported by
5699
    # all of the supported platforms: 8192 (on NT/2K/XP).
5700
    lt_cv_sys_max_cmd_len=8192;
5701
    ;;
5702
 
5703
  amigaos*)
5704
    # On AmigaOS with pdksh, this test takes hours, literally.
5705
    # So we just punt and use a minimum line length of 8192.
5706
    lt_cv_sys_max_cmd_len=8192;
5707
    ;;
5708
 
5709
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5710
    # This has been around since 386BSD, at least.  Likely further.
5711
    if test -x /sbin/sysctl; then
5712
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5713
    elif test -x /usr/sbin/sysctl; then
5714
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5715
    else
5716
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5717
    fi
5718
    # And add a safety zone
5719
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5720
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5721
    ;;
5722
 
5723
  interix*)
5724
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5725
    lt_cv_sys_max_cmd_len=196608
5726
    ;;
5727
 
5728
  osf*)
5729
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5730
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5731
    # nice to cause kernel panics so lets avoid the loop below.
5732
    # First set a reasonable default.
5733
    lt_cv_sys_max_cmd_len=16384
5734
    #
5735
    if test -x /sbin/sysconfig; then
5736
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5737
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5738
      esac
5739
    fi
5740
    ;;
5741
  sco3.2v5*)
5742
    lt_cv_sys_max_cmd_len=102400
5743
    ;;
5744
  sysv5* | sco5v6* | sysv4.2uw2*)
5745
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5746
    if test -n "$kargmax"; then
5747
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5748
    else
5749
      lt_cv_sys_max_cmd_len=32768
5750
    fi
5751
    ;;
5752
  *)
5753
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5754
    if test -n "$lt_cv_sys_max_cmd_len"; then
5755
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5756
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5757
    else
5758
      # Make teststring a little bigger before we do anything with it.
5759
      # a 1K string should be a reasonable start.
5760
      for i in 1 2 3 4 5 6 7 8 ; do
5761
        teststring=$teststring$teststring
5762
      done
5763
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5764
      # If test is not a shell built-in, we'll probably end up computing a
5765
      # maximum length that is only half of the actual maximum length, but
5766
      # we can't tell.
5767
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5768
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5769
              test $i != 17 # 1/2 MB should be enough
5770
      do
5771
        i=`expr $i + 1`
5772
        teststring=$teststring$teststring
5773
      done
5774
      # Only check the string length outside the loop.
5775
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5776
      teststring=
5777
      # Add a significant safety factor because C++ compilers can tack on
5778
      # massive amounts of additional arguments before passing them to the
5779
      # linker.  It appears as though 1/2 is a usable value.
5780
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5781
    fi
5782
    ;;
5783
  esac
5784
 
5785
fi
5786
 
5787
if test -n $lt_cv_sys_max_cmd_len ; then
5788
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5789
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5790
else
5791
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5792
$as_echo "none" >&6; }
5793
fi
5794
max_cmd_len=$lt_cv_sys_max_cmd_len
5795
 
5796
 
5797
 
5798
 
5799
 
5800
 
5801
: ${CP="cp -f"}
5802
: ${MV="mv -f"}
5803
: ${RM="rm -f"}
5804
 
5805
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5806
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5807
# Try some XSI features
5808
xsi_shell=no
5809
( _lt_dummy="a/b/c"
5810
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5811
      = c,a/b,, \
5812
    && eval 'test $(( 1 + 1 )) -eq 2 \
5813
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5814
  && xsi_shell=yes
5815
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5816
$as_echo "$xsi_shell" >&6; }
5817
 
5818
 
5819
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5820
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5821
lt_shell_append=no
5822
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5823
    >/dev/null 2>&1 \
5824
  && lt_shell_append=yes
5825
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5826
$as_echo "$lt_shell_append" >&6; }
5827
 
5828
 
5829
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5830
  lt_unset=unset
5831
else
5832
  lt_unset=false
5833
fi
5834
 
5835
 
5836
 
5837
 
5838
 
5839
# test EBCDIC or ASCII
5840
case `echo X|tr X '\101'` in
5841
 A) # ASCII based system
5842
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5843
  lt_SP2NL='tr \040 \012'
5844
  lt_NL2SP='tr \015\012 \040\040'
5845
  ;;
5846
 *) # EBCDIC based system
5847
  lt_SP2NL='tr \100 \n'
5848
  lt_NL2SP='tr \r\n \100\100'
5849
  ;;
5850
esac
5851
 
5852
 
5853
 
5854
 
5855
 
5856
 
5857
 
5858
 
5859
 
5860
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5861
$as_echo_n "checking for $LD option to reload object files... " >&6; }
5862
if test "${lt_cv_ld_reload_flag+set}" = set; then :
5863
  $as_echo_n "(cached) " >&6
5864
else
5865
  lt_cv_ld_reload_flag='-r'
5866
fi
5867
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5868
$as_echo "$lt_cv_ld_reload_flag" >&6; }
5869
reload_flag=$lt_cv_ld_reload_flag
5870
case $reload_flag in
5871
"" | " "*) ;;
5872
*) reload_flag=" $reload_flag" ;;
5873
esac
5874
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5875
case $host_os in
5876
  darwin*)
5877
    if test "$GCC" = yes; then
5878
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5879
    else
5880
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5881
    fi
5882
    ;;
5883
esac
5884
 
5885
 
5886
 
5887
 
5888
 
5889
 
5890
 
5891
 
5892
 
5893
if test -n "$ac_tool_prefix"; then
5894
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5895
set dummy ${ac_tool_prefix}objdump; ac_word=$2
5896
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5897
$as_echo_n "checking for $ac_word... " >&6; }
5898
if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5899
  $as_echo_n "(cached) " >&6
5900
else
5901
  if test -n "$OBJDUMP"; then
5902
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5903
else
5904
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5905
for as_dir in $PATH
5906
do
5907
  IFS=$as_save_IFS
5908
  test -z "$as_dir" && as_dir=.
5909
    for ac_exec_ext in '' $ac_executable_extensions; do
5910
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5911
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5912
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5913
    break 2
5914
  fi
5915
done
5916
  done
5917
IFS=$as_save_IFS
5918
 
5919
fi
5920
fi
5921
OBJDUMP=$ac_cv_prog_OBJDUMP
5922
if test -n "$OBJDUMP"; then
5923
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5924
$as_echo "$OBJDUMP" >&6; }
5925
else
5926
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5927
$as_echo "no" >&6; }
5928
fi
5929
 
5930
 
5931
fi
5932
if test -z "$ac_cv_prog_OBJDUMP"; then
5933
  ac_ct_OBJDUMP=$OBJDUMP
5934
  # Extract the first word of "objdump", so it can be a program name with args.
5935
set dummy objdump; ac_word=$2
5936
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5937
$as_echo_n "checking for $ac_word... " >&6; }
5938
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5939
  $as_echo_n "(cached) " >&6
5940
else
5941
  if test -n "$ac_ct_OBJDUMP"; then
5942
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5943
else
5944
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5945
for as_dir in $PATH
5946
do
5947
  IFS=$as_save_IFS
5948
  test -z "$as_dir" && as_dir=.
5949
    for ac_exec_ext in '' $ac_executable_extensions; do
5950
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5951
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5952
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5953
    break 2
5954
  fi
5955
done
5956
  done
5957
IFS=$as_save_IFS
5958
 
5959
fi
5960
fi
5961
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5962
if test -n "$ac_ct_OBJDUMP"; then
5963
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5964
$as_echo "$ac_ct_OBJDUMP" >&6; }
5965
else
5966
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5967
$as_echo "no" >&6; }
5968
fi
5969
 
5970
  if test "x$ac_ct_OBJDUMP" = x; then
5971
    OBJDUMP="false"
5972
  else
5973
    case $cross_compiling:$ac_tool_warned in
5974
yes:)
5975
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5976
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5977
ac_tool_warned=yes ;;
5978
esac
5979
    OBJDUMP=$ac_ct_OBJDUMP
5980
  fi
5981
else
5982
  OBJDUMP="$ac_cv_prog_OBJDUMP"
5983
fi
5984
 
5985
test -z "$OBJDUMP" && OBJDUMP=objdump
5986
 
5987
 
5988
 
5989
 
5990
 
5991
 
5992
 
5993
 
5994
 
5995
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5996
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5997
if test "${lt_cv_deplibs_check_method+set}" = set; then :
5998
  $as_echo_n "(cached) " >&6
5999
else
6000
  lt_cv_file_magic_cmd='$MAGIC_CMD'
6001
lt_cv_file_magic_test_file=
6002
lt_cv_deplibs_check_method='unknown'
6003
# Need to set the preceding variable on all platforms that support
6004
# interlibrary dependencies.
6005
# 'none' -- dependencies not supported.
6006
# `unknown' -- same as none, but documents that we really don't know.
6007
# 'pass_all' -- all dependencies passed with no checks.
6008
# 'test_compile' -- check by making test program.
6009
# 'file_magic [[regex]]' -- check by looking for files in library path
6010
# which responds to the $file_magic_cmd with a given extended regex.
6011
# If you have `file' or equivalent on your system and you're not sure
6012
# whether `pass_all' will *always* work, you probably want this one.
6013
 
6014
case $host_os in
6015
aix[4-9]*)
6016
  lt_cv_deplibs_check_method=pass_all
6017
  ;;
6018
 
6019
beos*)
6020
  lt_cv_deplibs_check_method=pass_all
6021
  ;;
6022
 
6023
bsdi[45]*)
6024
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6025
  lt_cv_file_magic_cmd='/usr/bin/file -L'
6026
  lt_cv_file_magic_test_file=/shlib/libc.so
6027
  ;;
6028
 
6029
cygwin*)
6030
  # func_win32_libid is a shell function defined in ltmain.sh
6031
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6032
  lt_cv_file_magic_cmd='func_win32_libid'
6033
  ;;
6034
 
6035
mingw* | pw32*)
6036
  # Base MSYS/MinGW do not provide the 'file' command needed by
6037
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6038
  # unless we find 'file', for example because we are cross-compiling.
6039
  if ( file / ) >/dev/null 2>&1; then
6040
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6041
    lt_cv_file_magic_cmd='func_win32_libid'
6042
  else
6043
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6044
    lt_cv_file_magic_cmd='$OBJDUMP -f'
6045
  fi
6046
  ;;
6047
 
6048
cegcc)
6049
  # use the weaker test based on 'objdump'. See mingw*.
6050
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6051
  lt_cv_file_magic_cmd='$OBJDUMP -f'
6052
  ;;
6053
 
6054
darwin* | rhapsody*)
6055
  lt_cv_deplibs_check_method=pass_all
6056
  ;;
6057
 
6058
freebsd* | dragonfly*)
6059
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6060
    case $host_cpu in
6061
    i*86 )
6062
      # Not sure whether the presence of OpenBSD here was a mistake.
6063
      # Let's accept both of them until this is cleared up.
6064
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6065
      lt_cv_file_magic_cmd=/usr/bin/file
6066
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6067
      ;;
6068
    esac
6069
  else
6070
    lt_cv_deplibs_check_method=pass_all
6071
  fi
6072
  ;;
6073
 
6074
gnu*)
6075
  lt_cv_deplibs_check_method=pass_all
6076
  ;;
6077
 
6078
hpux10.20* | hpux11*)
6079
  lt_cv_file_magic_cmd=/usr/bin/file
6080
  case $host_cpu in
6081
  ia64*)
6082
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6083
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6084
    ;;
6085
  hppa*64*)
6086
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6087
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6088
    ;;
6089
  *)
6090
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6091
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6092
    ;;
6093
  esac
6094
  ;;
6095
 
6096
interix[3-9]*)
6097
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6098
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6099
  ;;
6100
 
6101
irix5* | irix6* | nonstopux*)
6102
  case $LD in
6103
  *-32|*"-32 ") libmagic=32-bit;;
6104
  *-n32|*"-n32 ") libmagic=N32;;
6105
  *-64|*"-64 ") libmagic=64-bit;;
6106
  *) libmagic=never-match;;
6107
  esac
6108
  lt_cv_deplibs_check_method=pass_all
6109
  ;;
6110
 
6111
# This must be Linux ELF.
6112
linux* | k*bsd*-gnu | kopensolaris*-gnu)
6113
  lt_cv_deplibs_check_method=pass_all
6114
  ;;
6115
 
6116
netbsd*)
6117
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6118
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6119
  else
6120
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6121
  fi
6122
  ;;
6123
 
6124
newos6*)
6125
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6126
  lt_cv_file_magic_cmd=/usr/bin/file
6127
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6128
  ;;
6129
 
6130
*nto* | *qnx*)
6131
  lt_cv_deplibs_check_method=pass_all
6132
  ;;
6133
 
6134
openbsd*)
6135
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6136
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6137
  else
6138
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6139
  fi
6140
  ;;
6141
 
6142
osf3* | osf4* | osf5*)
6143
  lt_cv_deplibs_check_method=pass_all
6144
  ;;
6145
 
6146
rdos*)
6147
  lt_cv_deplibs_check_method=pass_all
6148
  ;;
6149
 
6150
solaris*)
6151
  lt_cv_deplibs_check_method=pass_all
6152
  ;;
6153
 
6154
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6155
  lt_cv_deplibs_check_method=pass_all
6156
  ;;
6157
 
6158
sysv4 | sysv4.3*)
6159
  case $host_vendor in
6160
  motorola)
6161
    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]'
6162
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6163
    ;;
6164
  ncr)
6165
    lt_cv_deplibs_check_method=pass_all
6166
    ;;
6167
  sequent)
6168
    lt_cv_file_magic_cmd='/bin/file'
6169
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6170
    ;;
6171
  sni)
6172
    lt_cv_file_magic_cmd='/bin/file'
6173
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6174
    lt_cv_file_magic_test_file=/lib/libc.so
6175
    ;;
6176
  siemens)
6177
    lt_cv_deplibs_check_method=pass_all
6178
    ;;
6179
  pc)
6180
    lt_cv_deplibs_check_method=pass_all
6181
    ;;
6182
  esac
6183
  ;;
6184
 
6185
tpf*)
6186
  lt_cv_deplibs_check_method=pass_all
6187
  ;;
6188
esac
6189
 
6190
fi
6191
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6192
$as_echo "$lt_cv_deplibs_check_method" >&6; }
6193
file_magic_cmd=$lt_cv_file_magic_cmd
6194
deplibs_check_method=$lt_cv_deplibs_check_method
6195
test -z "$deplibs_check_method" && deplibs_check_method=unknown
6196
 
6197
 
6198
 
6199
 
6200
 
6201
 
6202
 
6203
 
6204
 
6205
 
6206
 
6207
 
6208
if test -n "$ac_tool_prefix"; then
6209
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6210
set dummy ${ac_tool_prefix}ar; ac_word=$2
6211
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6212
$as_echo_n "checking for $ac_word... " >&6; }
6213
if test "${ac_cv_prog_AR+set}" = set; then :
6214
  $as_echo_n "(cached) " >&6
6215
else
6216
  if test -n "$AR"; then
6217
  ac_cv_prog_AR="$AR" # Let the user override the test.
6218
else
6219
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6220
for as_dir in $PATH
6221
do
6222
  IFS=$as_save_IFS
6223
  test -z "$as_dir" && as_dir=.
6224
    for ac_exec_ext in '' $ac_executable_extensions; do
6225
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6226
    ac_cv_prog_AR="${ac_tool_prefix}ar"
6227
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6228
    break 2
6229
  fi
6230
done
6231
  done
6232
IFS=$as_save_IFS
6233
 
6234
fi
6235
fi
6236
AR=$ac_cv_prog_AR
6237
if test -n "$AR"; then
6238
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6239
$as_echo "$AR" >&6; }
6240
else
6241
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6242
$as_echo "no" >&6; }
6243
fi
6244
 
6245
 
6246
fi
6247
if test -z "$ac_cv_prog_AR"; then
6248
  ac_ct_AR=$AR
6249
  # Extract the first word of "ar", so it can be a program name with args.
6250
set dummy ar; ac_word=$2
6251
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6252
$as_echo_n "checking for $ac_word... " >&6; }
6253
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6254
  $as_echo_n "(cached) " >&6
6255
else
6256
  if test -n "$ac_ct_AR"; then
6257
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6258
else
6259
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6260
for as_dir in $PATH
6261
do
6262
  IFS=$as_save_IFS
6263
  test -z "$as_dir" && as_dir=.
6264
    for ac_exec_ext in '' $ac_executable_extensions; do
6265
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6266
    ac_cv_prog_ac_ct_AR="ar"
6267
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6268
    break 2
6269
  fi
6270
done
6271
  done
6272
IFS=$as_save_IFS
6273
 
6274
fi
6275
fi
6276
ac_ct_AR=$ac_cv_prog_ac_ct_AR
6277
if test -n "$ac_ct_AR"; then
6278
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6279
$as_echo "$ac_ct_AR" >&6; }
6280
else
6281
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6282
$as_echo "no" >&6; }
6283
fi
6284
 
6285
  if test "x$ac_ct_AR" = x; then
6286
    AR="false"
6287
  else
6288
    case $cross_compiling:$ac_tool_warned in
6289
yes:)
6290
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6291
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6292
ac_tool_warned=yes ;;
6293
esac
6294
    AR=$ac_ct_AR
6295
  fi
6296
else
6297
  AR="$ac_cv_prog_AR"
6298
fi
6299
 
6300
test -z "$AR" && AR=ar
6301
test -z "$AR_FLAGS" && AR_FLAGS=cru
6302
 
6303
 
6304
 
6305
 
6306
 
6307
 
6308
 
6309
 
6310
 
6311
 
6312
 
6313
if test -n "$ac_tool_prefix"; then
6314
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6315
set dummy ${ac_tool_prefix}strip; ac_word=$2
6316
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6317
$as_echo_n "checking for $ac_word... " >&6; }
6318
if test "${ac_cv_prog_STRIP+set}" = set; then :
6319
  $as_echo_n "(cached) " >&6
6320
else
6321
  if test -n "$STRIP"; then
6322
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6323
else
6324
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6325
for as_dir in $PATH
6326
do
6327
  IFS=$as_save_IFS
6328
  test -z "$as_dir" && as_dir=.
6329
    for ac_exec_ext in '' $ac_executable_extensions; do
6330
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6331
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6332
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6333
    break 2
6334
  fi
6335
done
6336
  done
6337
IFS=$as_save_IFS
6338
 
6339
fi
6340
fi
6341
STRIP=$ac_cv_prog_STRIP
6342
if test -n "$STRIP"; then
6343
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6344
$as_echo "$STRIP" >&6; }
6345
else
6346
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6347
$as_echo "no" >&6; }
6348
fi
6349
 
6350
 
6351
fi
6352
if test -z "$ac_cv_prog_STRIP"; then
6353
  ac_ct_STRIP=$STRIP
6354
  # Extract the first word of "strip", so it can be a program name with args.
6355
set dummy strip; ac_word=$2
6356
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6357
$as_echo_n "checking for $ac_word... " >&6; }
6358
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6359
  $as_echo_n "(cached) " >&6
6360
else
6361
  if test -n "$ac_ct_STRIP"; then
6362
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6363
else
6364
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6365
for as_dir in $PATH
6366
do
6367
  IFS=$as_save_IFS
6368
  test -z "$as_dir" && as_dir=.
6369
    for ac_exec_ext in '' $ac_executable_extensions; do
6370
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6371
    ac_cv_prog_ac_ct_STRIP="strip"
6372
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6373
    break 2
6374
  fi
6375
done
6376
  done
6377
IFS=$as_save_IFS
6378
 
6379
fi
6380
fi
6381
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6382
if test -n "$ac_ct_STRIP"; then
6383
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6384
$as_echo "$ac_ct_STRIP" >&6; }
6385
else
6386
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6387
$as_echo "no" >&6; }
6388
fi
6389
 
6390
  if test "x$ac_ct_STRIP" = x; then
6391
    STRIP=":"
6392
  else
6393
    case $cross_compiling:$ac_tool_warned in
6394
yes:)
6395
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6396
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6397
ac_tool_warned=yes ;;
6398
esac
6399
    STRIP=$ac_ct_STRIP
6400
  fi
6401
else
6402
  STRIP="$ac_cv_prog_STRIP"
6403
fi
6404
 
6405
test -z "$STRIP" && STRIP=:
6406
 
6407
 
6408
 
6409
 
6410
 
6411
 
6412
if test -n "$ac_tool_prefix"; then
6413
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6414
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6415
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6416
$as_echo_n "checking for $ac_word... " >&6; }
6417
if test "${ac_cv_prog_RANLIB+set}" = set; then :
6418
  $as_echo_n "(cached) " >&6
6419
else
6420
  if test -n "$RANLIB"; then
6421
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6422
else
6423
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6424
for as_dir in $PATH
6425
do
6426
  IFS=$as_save_IFS
6427
  test -z "$as_dir" && as_dir=.
6428
    for ac_exec_ext in '' $ac_executable_extensions; do
6429
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6430
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6431
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6432
    break 2
6433
  fi
6434
done
6435
  done
6436
IFS=$as_save_IFS
6437
 
6438
fi
6439
fi
6440
RANLIB=$ac_cv_prog_RANLIB
6441
if test -n "$RANLIB"; then
6442
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6443
$as_echo "$RANLIB" >&6; }
6444
else
6445
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6446
$as_echo "no" >&6; }
6447
fi
6448
 
6449
 
6450
fi
6451
if test -z "$ac_cv_prog_RANLIB"; then
6452
  ac_ct_RANLIB=$RANLIB
6453
  # Extract the first word of "ranlib", so it can be a program name with args.
6454
set dummy ranlib; ac_word=$2
6455
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6456
$as_echo_n "checking for $ac_word... " >&6; }
6457
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6458
  $as_echo_n "(cached) " >&6
6459
else
6460
  if test -n "$ac_ct_RANLIB"; then
6461
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6462
else
6463
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6464
for as_dir in $PATH
6465
do
6466
  IFS=$as_save_IFS
6467
  test -z "$as_dir" && as_dir=.
6468
    for ac_exec_ext in '' $ac_executable_extensions; do
6469
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6470
    ac_cv_prog_ac_ct_RANLIB="ranlib"
6471
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6472
    break 2
6473
  fi
6474
done
6475
  done
6476
IFS=$as_save_IFS
6477
 
6478
fi
6479
fi
6480
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6481
if test -n "$ac_ct_RANLIB"; then
6482
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6483
$as_echo "$ac_ct_RANLIB" >&6; }
6484
else
6485
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6486
$as_echo "no" >&6; }
6487
fi
6488
 
6489
  if test "x$ac_ct_RANLIB" = x; then
6490
    RANLIB=":"
6491
  else
6492
    case $cross_compiling:$ac_tool_warned in
6493
yes:)
6494
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6495
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6496
ac_tool_warned=yes ;;
6497
esac
6498
    RANLIB=$ac_ct_RANLIB
6499
  fi
6500
else
6501
  RANLIB="$ac_cv_prog_RANLIB"
6502
fi
6503
 
6504
test -z "$RANLIB" && RANLIB=:
6505
 
6506
 
6507
 
6508
 
6509
 
6510
 
6511
# Determine commands to create old-style static archives.
6512
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6513
old_postinstall_cmds='chmod 644 $oldlib'
6514
old_postuninstall_cmds=
6515
 
6516
if test -n "$RANLIB"; then
6517
  case $host_os in
6518
  openbsd*)
6519
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6520
    ;;
6521
  *)
6522
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6523
    ;;
6524
  esac
6525
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6526
fi
6527
 
6528
 
6529
 
6530
 
6531
 
6532
 
6533
 
6534
 
6535
 
6536
 
6537
 
6538
 
6539
 
6540
 
6541
 
6542
 
6543
 
6544
 
6545
 
6546
 
6547
 
6548
 
6549
 
6550
 
6551
 
6552
 
6553
 
6554
 
6555
 
6556
 
6557
 
6558
 
6559
 
6560
 
6561
# If no C compiler was specified, use CC.
6562
LTCC=${LTCC-"$CC"}
6563
 
6564
# If no C compiler flags were specified, use CFLAGS.
6565
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6566
 
6567
# Allow CC to be a program name with arguments.
6568
compiler=$CC
6569
 
6570
 
6571
# Check for command to grab the raw symbol name followed by C symbol from nm.
6572
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6573
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6574
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6575
  $as_echo_n "(cached) " >&6
6576
else
6577
 
6578
# These are sane defaults that work on at least a few old systems.
6579
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6580
 
6581
# Character class describing NM global symbol codes.
6582
symcode='[BCDEGRST]'
6583
 
6584
# Regexp to match symbols that can be accessed directly from C.
6585
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6586
 
6587
# Define system-specific variables.
6588
case $host_os in
6589
aix*)
6590
  symcode='[BCDT]'
6591
  ;;
6592
cygwin* | mingw* | pw32* | cegcc*)
6593
  symcode='[ABCDGISTW]'
6594
  ;;
6595
hpux*)
6596
  if test "$host_cpu" = ia64; then
6597
    symcode='[ABCDEGRST]'
6598
  fi
6599
  ;;
6600
irix* | nonstopux*)
6601
  symcode='[BCDEGRST]'
6602
  ;;
6603
osf*)
6604
  symcode='[BCDEGQRST]'
6605
  ;;
6606
solaris*)
6607
  symcode='[BDRT]'
6608
  ;;
6609
sco3.2v5*)
6610
  symcode='[DT]'
6611
  ;;
6612
sysv4.2uw2*)
6613
  symcode='[DT]'
6614
  ;;
6615
sysv5* | sco5v6* | unixware* | OpenUNIX*)
6616
  symcode='[ABDT]'
6617
  ;;
6618
sysv4)
6619
  symcode='[DFNSTU]'
6620
  ;;
6621
esac
6622
 
6623
# If we're using GNU nm, then use its standard symbol codes.
6624
case `$NM -V 2>&1` in
6625
*GNU* | *'with BFD'*)
6626
  symcode='[ABCDGIRSTW]' ;;
6627
esac
6628
 
6629
# Transform an extracted symbol line into a proper C declaration.
6630
# Some systems (esp. on ia64) link data and code symbols differently,
6631
# so use this general approach.
6632
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6633
 
6634
# Transform an extracted symbol line into symbol name and symbol address
6635
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6636
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'"
6637
 
6638
# Handle CRLF in mingw tool chain
6639
opt_cr=
6640
case $build_os in
6641
mingw*)
6642
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6643
  ;;
6644
esac
6645
 
6646
# Try without a prefix underscore, then with it.
6647
for ac_symprfx in "" "_"; do
6648
 
6649
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6650
  symxfrm="\\1 $ac_symprfx\\2 \\2"
6651
 
6652
  # Write the raw and C identifiers.
6653
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6654
    # Fake it for dumpbin and say T for any non-static function
6655
    # and D for any global variable.
6656
    # Also find C++ and __fastcall symbols from MSVC++,
6657
    # which start with @ or ?.
6658
    lt_cv_sys_global_symbol_pipe="$AWK '"\
6659
"     {last_section=section; section=\$ 3};"\
6660
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6661
"     \$ 0!~/External *\|/{next};"\
6662
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6663
"     {if(hide[section]) next};"\
6664
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6665
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6666
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6667
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6668
"     ' prfx=^$ac_symprfx"
6669
  else
6670
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6671
  fi
6672
 
6673
  # Check to see that the pipe works correctly.
6674
  pipe_works=no
6675
 
6676
  rm -f conftest*
6677
  cat > conftest.$ac_ext <<_LT_EOF
6678
#ifdef __cplusplus
6679
extern "C" {
6680
#endif
6681
char nm_test_var;
6682
void nm_test_func(void);
6683
void nm_test_func(void){}
6684
#ifdef __cplusplus
6685
}
6686
#endif
6687
int main(){nm_test_var='a';nm_test_func();return(0);}
6688
_LT_EOF
6689
 
6690
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6691
  (eval $ac_compile) 2>&5
6692
  ac_status=$?
6693
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6694
  test $ac_status = 0; }; then
6695
    # Now try to grab the symbols.
6696
    nlist=conftest.nm
6697
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6698
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6699
  ac_status=$?
6700
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6701
  test $ac_status = 0; } && test -s "$nlist"; then
6702
      # Try sorting and uniquifying the output.
6703
      if sort "$nlist" | uniq > "$nlist"T; then
6704
        mv -f "$nlist"T "$nlist"
6705
      else
6706
        rm -f "$nlist"T
6707
      fi
6708
 
6709
      # Make sure that we snagged all the symbols we need.
6710
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6711
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6712
          cat <<_LT_EOF > conftest.$ac_ext
6713
#ifdef __cplusplus
6714
extern "C" {
6715
#endif
6716
 
6717
_LT_EOF
6718
          # Now generate the symbol file.
6719
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6720
 
6721
          cat <<_LT_EOF >> conftest.$ac_ext
6722
 
6723
/* The mapping between symbol names and symbols.  */
6724
const struct {
6725
  const char *name;
6726
  void       *address;
6727
}
6728
lt__PROGRAM__LTX_preloaded_symbols[] =
6729
{
6730
  { "@PROGRAM@", (void *) 0 },
6731
_LT_EOF
6732
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6733
          cat <<\_LT_EOF >> conftest.$ac_ext
6734
  {0, (void *) 0}
6735
};
6736
 
6737
/* This works around a problem in FreeBSD linker */
6738
#ifdef FREEBSD_WORKAROUND
6739
static const void *lt_preloaded_setup() {
6740
  return lt__PROGRAM__LTX_preloaded_symbols;
6741
}
6742
#endif
6743
 
6744
#ifdef __cplusplus
6745
}
6746
#endif
6747
_LT_EOF
6748
          # Now try linking the two files.
6749
          mv conftest.$ac_objext conftstm.$ac_objext
6750
          lt_save_LIBS="$LIBS"
6751
          lt_save_CFLAGS="$CFLAGS"
6752
          LIBS="conftstm.$ac_objext"
6753
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6754
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6755
  (eval $ac_link) 2>&5
6756
  ac_status=$?
6757
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6758
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6759
            pipe_works=yes
6760
          fi
6761
          LIBS="$lt_save_LIBS"
6762
          CFLAGS="$lt_save_CFLAGS"
6763
        else
6764
          echo "cannot find nm_test_func in $nlist" >&5
6765
        fi
6766
      else
6767
        echo "cannot find nm_test_var in $nlist" >&5
6768
      fi
6769
    else
6770
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6771
    fi
6772
  else
6773
    echo "$progname: failed program was:" >&5
6774
    cat conftest.$ac_ext >&5
6775
  fi
6776
  rm -rf conftest* conftst*
6777
 
6778
  # Do not use the global_symbol_pipe unless it works.
6779
  if test "$pipe_works" = yes; then
6780
    break
6781
  else
6782
    lt_cv_sys_global_symbol_pipe=
6783
  fi
6784
done
6785
 
6786
fi
6787
 
6788
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6789
  lt_cv_sys_global_symbol_to_cdecl=
6790
fi
6791
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6792
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6793
$as_echo "failed" >&6; }
6794
else
6795
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6796
$as_echo "ok" >&6; }
6797
fi
6798
 
6799
 
6800
 
6801
 
6802
 
6803
 
6804
 
6805
 
6806
 
6807
 
6808
 
6809
 
6810
 
6811
 
6812
 
6813
 
6814
 
6815
 
6816
 
6817
 
6818
 
6819
 
6820
# Check whether --enable-libtool-lock was given.
6821
if test "${enable_libtool_lock+set}" = set; then :
6822
  enableval=$enable_libtool_lock;
6823
fi
6824
 
6825
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6826
 
6827
# Some flags need to be propagated to the compiler or linker for good
6828
# libtool support.
6829
case $host in
6830
ia64-*-hpux*)
6831
  # Find out which ABI we are using.
6832
  echo 'int i;' > conftest.$ac_ext
6833
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6834
  (eval $ac_compile) 2>&5
6835
  ac_status=$?
6836
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6837
  test $ac_status = 0; }; then
6838
    case `/usr/bin/file conftest.$ac_objext` in
6839
      *ELF-32*)
6840
        HPUX_IA64_MODE="32"
6841
        ;;
6842
      *ELF-64*)
6843
        HPUX_IA64_MODE="64"
6844
        ;;
6845
    esac
6846
  fi
6847
  rm -rf conftest*
6848
  ;;
6849
*-*-irix6*)
6850
  # Find out which ABI we are using.
6851
  echo '#line 6851 "configure"' > conftest.$ac_ext
6852
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6853
  (eval $ac_compile) 2>&5
6854
  ac_status=$?
6855
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6856
  test $ac_status = 0; }; then
6857
    if test "$lt_cv_prog_gnu_ld" = yes; then
6858
      case `/usr/bin/file conftest.$ac_objext` in
6859
        *32-bit*)
6860
          LD="${LD-ld} -melf32bsmip"
6861
          ;;
6862
        *N32*)
6863
          LD="${LD-ld} -melf32bmipn32"
6864
          ;;
6865
        *64-bit*)
6866
          LD="${LD-ld} -melf64bmip"
6867
        ;;
6868
      esac
6869
    else
6870
      case `/usr/bin/file conftest.$ac_objext` in
6871
        *32-bit*)
6872
          LD="${LD-ld} -32"
6873
          ;;
6874
        *N32*)
6875
          LD="${LD-ld} -n32"
6876
          ;;
6877
        *64-bit*)
6878
          LD="${LD-ld} -64"
6879
          ;;
6880
      esac
6881
    fi
6882
  fi
6883
  rm -rf conftest*
6884
  ;;
6885
 
6886
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6887
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6888
  # Find out which ABI we are using.
6889
  echo 'int i;' > conftest.$ac_ext
6890
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6891
  (eval $ac_compile) 2>&5
6892
  ac_status=$?
6893
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6894
  test $ac_status = 0; }; then
6895
    case `/usr/bin/file conftest.o` in
6896
      *32-bit*)
6897
        case $host in
6898
          x86_64-*kfreebsd*-gnu)
6899
            LD="${LD-ld} -m elf_i386_fbsd"
6900
            ;;
6901
          x86_64-*linux*)
6902
            LD="${LD-ld} -m elf_i386"
6903
            ;;
6904
          ppc64-*linux*|powerpc64-*linux*)
6905
            LD="${LD-ld} -m elf32ppclinux"
6906
            ;;
6907
          s390x-*linux*)
6908
            LD="${LD-ld} -m elf_s390"
6909
            ;;
6910
          sparc64-*linux*)
6911
            LD="${LD-ld} -m elf32_sparc"
6912
            ;;
6913
        esac
6914
        ;;
6915
      *64-bit*)
6916
        case $host in
6917
          x86_64-*kfreebsd*-gnu)
6918
            LD="${LD-ld} -m elf_x86_64_fbsd"
6919
            ;;
6920
          x86_64-*linux*)
6921
            LD="${LD-ld} -m elf_x86_64"
6922
            ;;
6923
          ppc*-*linux*|powerpc*-*linux*)
6924
            LD="${LD-ld} -m elf64ppc"
6925
            ;;
6926
          s390*-*linux*|s390*-*tpf*)
6927
            LD="${LD-ld} -m elf64_s390"
6928
            ;;
6929
          sparc*-*linux*)
6930
            LD="${LD-ld} -m elf64_sparc"
6931
            ;;
6932
        esac
6933
        ;;
6934
    esac
6935
  fi
6936
  rm -rf conftest*
6937
  ;;
6938
 
6939
*-*-sco3.2v5*)
6940
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6941
  SAVE_CFLAGS="$CFLAGS"
6942
  CFLAGS="$CFLAGS -belf"
6943
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6944
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6945
if test "${lt_cv_cc_needs_belf+set}" = set; then :
6946
  $as_echo_n "(cached) " >&6
6947
else
6948
  ac_ext=c
6949
ac_cpp='$CPP $CPPFLAGS'
6950
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6951
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6952
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6953
 
6954
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6955
/* end confdefs.h.  */
6956
 
6957
int
6958
main ()
6959
{
6960
 
6961
  ;
6962
  return 0;
6963
}
6964
_ACEOF
6965
if ac_fn_c_try_link "$LINENO"; then :
6966
  lt_cv_cc_needs_belf=yes
6967
else
6968
  lt_cv_cc_needs_belf=no
6969
fi
6970
rm -f core conftest.err conftest.$ac_objext \
6971
    conftest$ac_exeext conftest.$ac_ext
6972
     ac_ext=c
6973
ac_cpp='$CPP $CPPFLAGS'
6974
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6975
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6976
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6977
 
6978
fi
6979
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6980
$as_echo "$lt_cv_cc_needs_belf" >&6; }
6981
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6982
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6983
    CFLAGS="$SAVE_CFLAGS"
6984
  fi
6985
  ;;
6986
sparc*-*solaris*)
6987
  # Find out which ABI we are using.
6988
  echo 'int i;' > conftest.$ac_ext
6989
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6990
  (eval $ac_compile) 2>&5
6991
  ac_status=$?
6992
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6993
  test $ac_status = 0; }; then
6994
    case `/usr/bin/file conftest.o` in
6995
    *64-bit*)
6996
      case $lt_cv_prog_gnu_ld in
6997
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6998
      *)
6999
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7000
          LD="${LD-ld} -64"
7001
        fi
7002
        ;;
7003
      esac
7004
      ;;
7005
    esac
7006
  fi
7007
  rm -rf conftest*
7008
  ;;
7009
esac
7010
 
7011
need_locks="$enable_libtool_lock"
7012
 
7013
 
7014
  case $host_os in
7015
    rhapsody* | darwin*)
7016
    if test -n "$ac_tool_prefix"; then
7017
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7018
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7019
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7020
$as_echo_n "checking for $ac_word... " >&6; }
7021
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7022
  $as_echo_n "(cached) " >&6
7023
else
7024
  if test -n "$DSYMUTIL"; then
7025
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7026
else
7027
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7028
for as_dir in $PATH
7029
do
7030
  IFS=$as_save_IFS
7031
  test -z "$as_dir" && as_dir=.
7032
    for ac_exec_ext in '' $ac_executable_extensions; do
7033
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7034
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7035
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7036
    break 2
7037
  fi
7038
done
7039
  done
7040
IFS=$as_save_IFS
7041
 
7042
fi
7043
fi
7044
DSYMUTIL=$ac_cv_prog_DSYMUTIL
7045
if test -n "$DSYMUTIL"; then
7046
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7047
$as_echo "$DSYMUTIL" >&6; }
7048
else
7049
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7050
$as_echo "no" >&6; }
7051
fi
7052
 
7053
 
7054
fi
7055
if test -z "$ac_cv_prog_DSYMUTIL"; then
7056
  ac_ct_DSYMUTIL=$DSYMUTIL
7057
  # Extract the first word of "dsymutil", so it can be a program name with args.
7058
set dummy dsymutil; ac_word=$2
7059
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7060
$as_echo_n "checking for $ac_word... " >&6; }
7061
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7062
  $as_echo_n "(cached) " >&6
7063
else
7064
  if test -n "$ac_ct_DSYMUTIL"; then
7065
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7066
else
7067
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7068
for as_dir in $PATH
7069
do
7070
  IFS=$as_save_IFS
7071
  test -z "$as_dir" && as_dir=.
7072
    for ac_exec_ext in '' $ac_executable_extensions; do
7073
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7074
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7075
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7076
    break 2
7077
  fi
7078
done
7079
  done
7080
IFS=$as_save_IFS
7081
 
7082
fi
7083
fi
7084
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7085
if test -n "$ac_ct_DSYMUTIL"; then
7086
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7087
$as_echo "$ac_ct_DSYMUTIL" >&6; }
7088
else
7089
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7090
$as_echo "no" >&6; }
7091
fi
7092
 
7093
  if test "x$ac_ct_DSYMUTIL" = x; then
7094
    DSYMUTIL=":"
7095
  else
7096
    case $cross_compiling:$ac_tool_warned in
7097
yes:)
7098
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7099
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7100
ac_tool_warned=yes ;;
7101
esac
7102
    DSYMUTIL=$ac_ct_DSYMUTIL
7103
  fi
7104
else
7105
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7106
fi
7107
 
7108
    if test -n "$ac_tool_prefix"; then
7109
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7110
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7111
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7112
$as_echo_n "checking for $ac_word... " >&6; }
7113
if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7114
  $as_echo_n "(cached) " >&6
7115
else
7116
  if test -n "$NMEDIT"; then
7117
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7118
else
7119
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7120
for as_dir in $PATH
7121
do
7122
  IFS=$as_save_IFS
7123
  test -z "$as_dir" && as_dir=.
7124
    for ac_exec_ext in '' $ac_executable_extensions; do
7125
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7126
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7127
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7128
    break 2
7129
  fi
7130
done
7131
  done
7132
IFS=$as_save_IFS
7133
 
7134
fi
7135
fi
7136
NMEDIT=$ac_cv_prog_NMEDIT
7137
if test -n "$NMEDIT"; then
7138
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7139
$as_echo "$NMEDIT" >&6; }
7140
else
7141
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7142
$as_echo "no" >&6; }
7143
fi
7144
 
7145
 
7146
fi
7147
if test -z "$ac_cv_prog_NMEDIT"; then
7148
  ac_ct_NMEDIT=$NMEDIT
7149
  # Extract the first word of "nmedit", so it can be a program name with args.
7150
set dummy nmedit; ac_word=$2
7151
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7152
$as_echo_n "checking for $ac_word... " >&6; }
7153
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7154
  $as_echo_n "(cached) " >&6
7155
else
7156
  if test -n "$ac_ct_NMEDIT"; then
7157
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7158
else
7159
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7160
for as_dir in $PATH
7161
do
7162
  IFS=$as_save_IFS
7163
  test -z "$as_dir" && as_dir=.
7164
    for ac_exec_ext in '' $ac_executable_extensions; do
7165
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7166
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7167
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7168
    break 2
7169
  fi
7170
done
7171
  done
7172
IFS=$as_save_IFS
7173
 
7174
fi
7175
fi
7176
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7177
if test -n "$ac_ct_NMEDIT"; then
7178
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7179
$as_echo "$ac_ct_NMEDIT" >&6; }
7180
else
7181
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7182
$as_echo "no" >&6; }
7183
fi
7184
 
7185
  if test "x$ac_ct_NMEDIT" = x; then
7186
    NMEDIT=":"
7187
  else
7188
    case $cross_compiling:$ac_tool_warned in
7189
yes:)
7190
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7191
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7192
ac_tool_warned=yes ;;
7193
esac
7194
    NMEDIT=$ac_ct_NMEDIT
7195
  fi
7196
else
7197
  NMEDIT="$ac_cv_prog_NMEDIT"
7198
fi
7199
 
7200
    if test -n "$ac_tool_prefix"; then
7201
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7202
set dummy ${ac_tool_prefix}lipo; ac_word=$2
7203
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7204
$as_echo_n "checking for $ac_word... " >&6; }
7205
if test "${ac_cv_prog_LIPO+set}" = set; then :
7206
  $as_echo_n "(cached) " >&6
7207
else
7208
  if test -n "$LIPO"; then
7209
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7210
else
7211
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7212
for as_dir in $PATH
7213
do
7214
  IFS=$as_save_IFS
7215
  test -z "$as_dir" && as_dir=.
7216
    for ac_exec_ext in '' $ac_executable_extensions; do
7217
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7218
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7219
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7220
    break 2
7221
  fi
7222
done
7223
  done
7224
IFS=$as_save_IFS
7225
 
7226
fi
7227
fi
7228
LIPO=$ac_cv_prog_LIPO
7229
if test -n "$LIPO"; then
7230
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7231
$as_echo "$LIPO" >&6; }
7232
else
7233
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7234
$as_echo "no" >&6; }
7235
fi
7236
 
7237
 
7238
fi
7239
if test -z "$ac_cv_prog_LIPO"; then
7240
  ac_ct_LIPO=$LIPO
7241
  # Extract the first word of "lipo", so it can be a program name with args.
7242
set dummy lipo; ac_word=$2
7243
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7244
$as_echo_n "checking for $ac_word... " >&6; }
7245
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7246
  $as_echo_n "(cached) " >&6
7247
else
7248
  if test -n "$ac_ct_LIPO"; then
7249
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7250
else
7251
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7252
for as_dir in $PATH
7253
do
7254
  IFS=$as_save_IFS
7255
  test -z "$as_dir" && as_dir=.
7256
    for ac_exec_ext in '' $ac_executable_extensions; do
7257
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7258
    ac_cv_prog_ac_ct_LIPO="lipo"
7259
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7260
    break 2
7261
  fi
7262
done
7263
  done
7264
IFS=$as_save_IFS
7265
 
7266
fi
7267
fi
7268
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7269
if test -n "$ac_ct_LIPO"; then
7270
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7271
$as_echo "$ac_ct_LIPO" >&6; }
7272
else
7273
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7274
$as_echo "no" >&6; }
7275
fi
7276
 
7277
  if test "x$ac_ct_LIPO" = x; then
7278
    LIPO=":"
7279
  else
7280
    case $cross_compiling:$ac_tool_warned in
7281
yes:)
7282
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7283
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7284
ac_tool_warned=yes ;;
7285
esac
7286
    LIPO=$ac_ct_LIPO
7287
  fi
7288
else
7289
  LIPO="$ac_cv_prog_LIPO"
7290
fi
7291
 
7292
    if test -n "$ac_tool_prefix"; then
7293
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7294
set dummy ${ac_tool_prefix}otool; ac_word=$2
7295
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7296
$as_echo_n "checking for $ac_word... " >&6; }
7297
if test "${ac_cv_prog_OTOOL+set}" = set; then :
7298
  $as_echo_n "(cached) " >&6
7299
else
7300
  if test -n "$OTOOL"; then
7301
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7302
else
7303
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7304
for as_dir in $PATH
7305
do
7306
  IFS=$as_save_IFS
7307
  test -z "$as_dir" && as_dir=.
7308
    for ac_exec_ext in '' $ac_executable_extensions; do
7309
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7310
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7311
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7312
    break 2
7313
  fi
7314
done
7315
  done
7316
IFS=$as_save_IFS
7317
 
7318
fi
7319
fi
7320
OTOOL=$ac_cv_prog_OTOOL
7321
if test -n "$OTOOL"; then
7322
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7323
$as_echo "$OTOOL" >&6; }
7324
else
7325
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7326
$as_echo "no" >&6; }
7327
fi
7328
 
7329
 
7330
fi
7331
if test -z "$ac_cv_prog_OTOOL"; then
7332
  ac_ct_OTOOL=$OTOOL
7333
  # Extract the first word of "otool", so it can be a program name with args.
7334
set dummy otool; ac_word=$2
7335
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7336
$as_echo_n "checking for $ac_word... " >&6; }
7337
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7338
  $as_echo_n "(cached) " >&6
7339
else
7340
  if test -n "$ac_ct_OTOOL"; then
7341
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7342
else
7343
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7344
for as_dir in $PATH
7345
do
7346
  IFS=$as_save_IFS
7347
  test -z "$as_dir" && as_dir=.
7348
    for ac_exec_ext in '' $ac_executable_extensions; do
7349
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7350
    ac_cv_prog_ac_ct_OTOOL="otool"
7351
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7352
    break 2
7353
  fi
7354
done
7355
  done
7356
IFS=$as_save_IFS
7357
 
7358
fi
7359
fi
7360
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7361
if test -n "$ac_ct_OTOOL"; then
7362
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7363
$as_echo "$ac_ct_OTOOL" >&6; }
7364
else
7365
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7366
$as_echo "no" >&6; }
7367
fi
7368
 
7369
  if test "x$ac_ct_OTOOL" = x; then
7370
    OTOOL=":"
7371
  else
7372
    case $cross_compiling:$ac_tool_warned in
7373
yes:)
7374
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7375
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7376
ac_tool_warned=yes ;;
7377
esac
7378
    OTOOL=$ac_ct_OTOOL
7379
  fi
7380
else
7381
  OTOOL="$ac_cv_prog_OTOOL"
7382
fi
7383
 
7384
    if test -n "$ac_tool_prefix"; then
7385
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7386
set dummy ${ac_tool_prefix}otool64; ac_word=$2
7387
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7388
$as_echo_n "checking for $ac_word... " >&6; }
7389
if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7390
  $as_echo_n "(cached) " >&6
7391
else
7392
  if test -n "$OTOOL64"; then
7393
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7394
else
7395
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7396
for as_dir in $PATH
7397
do
7398
  IFS=$as_save_IFS
7399
  test -z "$as_dir" && as_dir=.
7400
    for ac_exec_ext in '' $ac_executable_extensions; do
7401
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7402
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7403
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7404
    break 2
7405
  fi
7406
done
7407
  done
7408
IFS=$as_save_IFS
7409
 
7410
fi
7411
fi
7412
OTOOL64=$ac_cv_prog_OTOOL64
7413
if test -n "$OTOOL64"; then
7414
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7415
$as_echo "$OTOOL64" >&6; }
7416
else
7417
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7418
$as_echo "no" >&6; }
7419
fi
7420
 
7421
 
7422
fi
7423
if test -z "$ac_cv_prog_OTOOL64"; then
7424
  ac_ct_OTOOL64=$OTOOL64
7425
  # Extract the first word of "otool64", so it can be a program name with args.
7426
set dummy otool64; ac_word=$2
7427
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7428
$as_echo_n "checking for $ac_word... " >&6; }
7429
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7430
  $as_echo_n "(cached) " >&6
7431
else
7432
  if test -n "$ac_ct_OTOOL64"; then
7433
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7434
else
7435
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7436
for as_dir in $PATH
7437
do
7438
  IFS=$as_save_IFS
7439
  test -z "$as_dir" && as_dir=.
7440
    for ac_exec_ext in '' $ac_executable_extensions; do
7441
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7442
    ac_cv_prog_ac_ct_OTOOL64="otool64"
7443
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7444
    break 2
7445
  fi
7446
done
7447
  done
7448
IFS=$as_save_IFS
7449
 
7450
fi
7451
fi
7452
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7453
if test -n "$ac_ct_OTOOL64"; then
7454
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7455
$as_echo "$ac_ct_OTOOL64" >&6; }
7456
else
7457
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7458
$as_echo "no" >&6; }
7459
fi
7460
 
7461
  if test "x$ac_ct_OTOOL64" = x; then
7462
    OTOOL64=":"
7463
  else
7464
    case $cross_compiling:$ac_tool_warned in
7465
yes:)
7466
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7467
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7468
ac_tool_warned=yes ;;
7469
esac
7470
    OTOOL64=$ac_ct_OTOOL64
7471
  fi
7472
else
7473
  OTOOL64="$ac_cv_prog_OTOOL64"
7474
fi
7475
 
7476
 
7477
 
7478
 
7479
 
7480
 
7481
 
7482
 
7483
 
7484
 
7485
 
7486
 
7487
 
7488
 
7489
 
7490
 
7491
 
7492
 
7493
 
7494
 
7495
 
7496
 
7497
 
7498
 
7499
 
7500
 
7501
 
7502
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7503
$as_echo_n "checking for -single_module linker flag... " >&6; }
7504
if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7505
  $as_echo_n "(cached) " >&6
7506
else
7507
  lt_cv_apple_cc_single_mod=no
7508
      if test -z "${LT_MULTI_MODULE}"; then
7509
        # By default we will add the -single_module flag. You can override
7510
        # by either setting the environment variable LT_MULTI_MODULE
7511
        # non-empty at configure time, or by adding -multi_module to the
7512
        # link flags.
7513
        rm -rf libconftest.dylib*
7514
        echo "int foo(void){return 1;}" > conftest.c
7515
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7516
-dynamiclib -Wl,-single_module conftest.c" >&5
7517
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7518
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7519
        _lt_result=$?
7520
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7521
          lt_cv_apple_cc_single_mod=yes
7522
        else
7523
          cat conftest.err >&5
7524
        fi
7525
        rm -rf libconftest.dylib*
7526
        rm -f conftest.*
7527
      fi
7528
fi
7529
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7530
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7531
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7532
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7533
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7534
  $as_echo_n "(cached) " >&6
7535
else
7536
  lt_cv_ld_exported_symbols_list=no
7537
      save_LDFLAGS=$LDFLAGS
7538
      echo "_main" > conftest.sym
7539
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7540
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7541
/* end confdefs.h.  */
7542
 
7543
int
7544
main ()
7545
{
7546
 
7547
  ;
7548
  return 0;
7549
}
7550
_ACEOF
7551
if ac_fn_c_try_link "$LINENO"; then :
7552
  lt_cv_ld_exported_symbols_list=yes
7553
else
7554
  lt_cv_ld_exported_symbols_list=no
7555
fi
7556
rm -f core conftest.err conftest.$ac_objext \
7557
    conftest$ac_exeext conftest.$ac_ext
7558
        LDFLAGS="$save_LDFLAGS"
7559
 
7560
fi
7561
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7562
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7563
    case $host_os in
7564
    rhapsody* | darwin1.[012])
7565
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7566
    darwin1.*)
7567
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7568
    darwin*) # darwin 5.x on
7569
      # if running on 10.5 or later, the deployment target defaults
7570
      # to the OS version, if on x86, and 10.4, the deployment
7571
      # target defaults to 10.4. Don't you love it?
7572
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7573
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7574
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7575
        10.[012]*)
7576
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7577
        10.*)
7578
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7579
      esac
7580
    ;;
7581
  esac
7582
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7583
      _lt_dar_single_mod='$single_module'
7584
    fi
7585
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7586
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7587
    else
7588
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7589
    fi
7590
    if test "$DSYMUTIL" != ":"; then
7591
      _lt_dsymutil='~$DSYMUTIL $lib || :'
7592
    else
7593
      _lt_dsymutil=
7594
    fi
7595
    ;;
7596
  esac
7597
 
7598
for ac_header in dlfcn.h
7599
do :
7600
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7601
"
7602
if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7603
  cat >>confdefs.h <<_ACEOF
7604
#define HAVE_DLFCN_H 1
7605
_ACEOF
7606
 
7607
fi
7608
 
7609
done
7610
 
7611
 
7612
 
7613
# Set options
7614
 
7615
 
7616
 
7617
        enable_dlopen=no
7618
 
7619
 
7620
  enable_win32_dll=no
7621
 
7622
 
7623
            # Check whether --enable-shared was given.
7624
if test "${enable_shared+set}" = set; then :
7625
  enableval=$enable_shared; p=${PACKAGE-default}
7626
    case $enableval in
7627
    yes) enable_shared=yes ;;
7628
    no) enable_shared=no ;;
7629
    *)
7630
      enable_shared=no
7631
      # Look at the argument we got.  We use all the common list separators.
7632
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7633
      for pkg in $enableval; do
7634
        IFS="$lt_save_ifs"
7635
        if test "X$pkg" = "X$p"; then
7636
          enable_shared=yes
7637
        fi
7638
      done
7639
      IFS="$lt_save_ifs"
7640
      ;;
7641
    esac
7642
else
7643
  enable_shared=yes
7644
fi
7645
 
7646
 
7647
 
7648
 
7649
 
7650
 
7651
 
7652
 
7653
 
7654
  # Check whether --enable-static was given.
7655
if test "${enable_static+set}" = set; then :
7656
  enableval=$enable_static; p=${PACKAGE-default}
7657
    case $enableval in
7658
    yes) enable_static=yes ;;
7659
    no) enable_static=no ;;
7660
    *)
7661
     enable_static=no
7662
      # Look at the argument we got.  We use all the common list separators.
7663
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7664
      for pkg in $enableval; do
7665
        IFS="$lt_save_ifs"
7666
        if test "X$pkg" = "X$p"; then
7667
          enable_static=yes
7668
        fi
7669
      done
7670
      IFS="$lt_save_ifs"
7671
      ;;
7672
    esac
7673
else
7674
  enable_static=yes
7675
fi
7676
 
7677
 
7678
 
7679
 
7680
 
7681
 
7682
 
7683
 
7684
 
7685
 
7686
# Check whether --with-pic was given.
7687
if test "${with_pic+set}" = set; then :
7688
  withval=$with_pic; pic_mode="$withval"
7689
else
7690
  pic_mode=default
7691
fi
7692
 
7693
 
7694
test -z "$pic_mode" && pic_mode=default
7695
 
7696
 
7697
 
7698
 
7699
 
7700
 
7701
 
7702
  # Check whether --enable-fast-install was given.
7703
if test "${enable_fast_install+set}" = set; then :
7704
  enableval=$enable_fast_install; p=${PACKAGE-default}
7705
    case $enableval in
7706
    yes) enable_fast_install=yes ;;
7707
    no) enable_fast_install=no ;;
7708
    *)
7709
      enable_fast_install=no
7710
      # Look at the argument we got.  We use all the common list separators.
7711
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7712
      for pkg in $enableval; do
7713
        IFS="$lt_save_ifs"
7714
        if test "X$pkg" = "X$p"; then
7715
          enable_fast_install=yes
7716
        fi
7717
      done
7718
      IFS="$lt_save_ifs"
7719
      ;;
7720
    esac
7721
else
7722
  enable_fast_install=yes
7723
fi
7724
 
7725
 
7726
 
7727
 
7728
 
7729
 
7730
 
7731
 
7732
 
7733
 
7734
 
7735
# This can be used to rebuild libtool when needed
7736
LIBTOOL_DEPS="$ltmain"
7737
 
7738
# Always use our own libtool.
7739
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7740
 
7741
 
7742
 
7743
 
7744
 
7745
 
7746
 
7747
 
7748
 
7749
 
7750
 
7751
 
7752
 
7753
 
7754
 
7755
 
7756
 
7757
 
7758
 
7759
 
7760
 
7761
 
7762
 
7763
 
7764
 
7765
test -z "$LN_S" && LN_S="ln -s"
7766
 
7767
 
7768
 
7769
 
7770
 
7771
 
7772
 
7773
 
7774
 
7775
 
7776
 
7777
 
7778
 
7779
 
7780
if test -n "${ZSH_VERSION+set}" ; then
7781
   setopt NO_GLOB_SUBST
7782
fi
7783
 
7784
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7785
$as_echo_n "checking for objdir... " >&6; }
7786
if test "${lt_cv_objdir+set}" = set; then :
7787
  $as_echo_n "(cached) " >&6
7788
else
7789
  rm -f .libs 2>/dev/null
7790
mkdir .libs 2>/dev/null
7791
if test -d .libs; then
7792
  lt_cv_objdir=.libs
7793
else
7794
  # MS-DOS does not allow filenames that begin with a dot.
7795
  lt_cv_objdir=_libs
7796
fi
7797
rmdir .libs 2>/dev/null
7798
fi
7799
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7800
$as_echo "$lt_cv_objdir" >&6; }
7801
objdir=$lt_cv_objdir
7802
 
7803
 
7804
 
7805
 
7806
 
7807
cat >>confdefs.h <<_ACEOF
7808
#define LT_OBJDIR "$lt_cv_objdir/"
7809
_ACEOF
7810
 
7811
 
7812
 
7813
 
7814
 
7815
 
7816
 
7817
 
7818
 
7819
 
7820
 
7821
 
7822
 
7823
 
7824
 
7825
 
7826
 
7827
case $host_os in
7828
aix3*)
7829
  # AIX sometimes has problems with the GCC collect2 program.  For some
7830
  # reason, if we set the COLLECT_NAMES environment variable, the problems
7831
  # vanish in a puff of smoke.
7832
  if test "X${COLLECT_NAMES+set}" != Xset; then
7833
    COLLECT_NAMES=
7834
    export COLLECT_NAMES
7835
  fi
7836
  ;;
7837
esac
7838
 
7839
# Sed substitution that helps us do robust quoting.  It backslashifies
7840
# metacharacters that are still active within double-quoted strings.
7841
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7842
 
7843
# Same as above, but do not quote variable references.
7844
double_quote_subst='s/\(["`\\]\)/\\\1/g'
7845
 
7846
# Sed substitution to delay expansion of an escaped shell variable in a
7847
# double_quote_subst'ed string.
7848
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7849
 
7850
# Sed substitution to delay expansion of an escaped single quote.
7851
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7852
 
7853
# Sed substitution to avoid accidental globbing in evaled expressions
7854
no_glob_subst='s/\*/\\\*/g'
7855
 
7856
# Global variables:
7857
ofile=libtool
7858
can_build_shared=yes
7859
 
7860
# All known linkers require a `.a' archive for static linking (except MSVC,
7861
# which needs '.lib').
7862
libext=a
7863
 
7864
with_gnu_ld="$lt_cv_prog_gnu_ld"
7865
 
7866
old_CC="$CC"
7867
old_CFLAGS="$CFLAGS"
7868
 
7869
# Set sane defaults for various variables
7870
test -z "$CC" && CC=cc
7871
test -z "$LTCC" && LTCC=$CC
7872
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7873
test -z "$LD" && LD=ld
7874
test -z "$ac_objext" && ac_objext=o
7875
 
7876
for cc_temp in $compiler""; do
7877
  case $cc_temp in
7878
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7879
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7880
    \-*) ;;
7881
    *) break;;
7882
  esac
7883
done
7884
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7885
 
7886
 
7887
# Only perform the check for file, if the check method requires it
7888
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7889
case $deplibs_check_method in
7890
file_magic*)
7891
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7892
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7893
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7894
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7895
  $as_echo_n "(cached) " >&6
7896
else
7897
  case $MAGIC_CMD in
7898
[\\/*] |  ?:[\\/]*)
7899
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7900
  ;;
7901
*)
7902
  lt_save_MAGIC_CMD="$MAGIC_CMD"
7903
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7904
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7905
  for ac_dir in $ac_dummy; do
7906
    IFS="$lt_save_ifs"
7907
    test -z "$ac_dir" && ac_dir=.
7908
    if test -f $ac_dir/${ac_tool_prefix}file; then
7909
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7910
      if test -n "$file_magic_test_file"; then
7911
        case $deplibs_check_method in
7912
        "file_magic "*)
7913
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7914
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7915
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7916
            $EGREP "$file_magic_regex" > /dev/null; then
7917
            :
7918
          else
7919
            cat <<_LT_EOF 1>&2
7920
 
7921
*** Warning: the command libtool uses to detect shared libraries,
7922
*** $file_magic_cmd, produces output that libtool cannot recognize.
7923
*** The result is that libtool may fail to recognize shared libraries
7924
*** as such.  This will affect the creation of libtool libraries that
7925
*** depend on shared libraries, but programs linked with such libtool
7926
*** libraries will work regardless of this problem.  Nevertheless, you
7927
*** may want to report the problem to your system manager and/or to
7928
*** bug-libtool@gnu.org
7929
 
7930
_LT_EOF
7931
          fi ;;
7932
        esac
7933
      fi
7934
      break
7935
    fi
7936
  done
7937
  IFS="$lt_save_ifs"
7938
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7939
  ;;
7940
esac
7941
fi
7942
 
7943
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7944
if test -n "$MAGIC_CMD"; then
7945
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7946
$as_echo "$MAGIC_CMD" >&6; }
7947
else
7948
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7949
$as_echo "no" >&6; }
7950
fi
7951
 
7952
 
7953
 
7954
 
7955
 
7956
if test -z "$lt_cv_path_MAGIC_CMD"; then
7957
  if test -n "$ac_tool_prefix"; then
7958
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7959
$as_echo_n "checking for file... " >&6; }
7960
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7961
  $as_echo_n "(cached) " >&6
7962
else
7963
  case $MAGIC_CMD in
7964
[\\/*] |  ?:[\\/]*)
7965
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7966
  ;;
7967
*)
7968
  lt_save_MAGIC_CMD="$MAGIC_CMD"
7969
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7970
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7971
  for ac_dir in $ac_dummy; do
7972
    IFS="$lt_save_ifs"
7973
    test -z "$ac_dir" && ac_dir=.
7974
    if test -f $ac_dir/file; then
7975
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7976
      if test -n "$file_magic_test_file"; then
7977
        case $deplibs_check_method in
7978
        "file_magic "*)
7979
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7980
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7981
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7982
            $EGREP "$file_magic_regex" > /dev/null; then
7983
            :
7984
          else
7985
            cat <<_LT_EOF 1>&2
7986
 
7987
*** Warning: the command libtool uses to detect shared libraries,
7988
*** $file_magic_cmd, produces output that libtool cannot recognize.
7989
*** The result is that libtool may fail to recognize shared libraries
7990
*** as such.  This will affect the creation of libtool libraries that
7991
*** depend on shared libraries, but programs linked with such libtool
7992
*** libraries will work regardless of this problem.  Nevertheless, you
7993
*** may want to report the problem to your system manager and/or to
7994
*** bug-libtool@gnu.org
7995
 
7996
_LT_EOF
7997
          fi ;;
7998
        esac
7999
      fi
8000
      break
8001
    fi
8002
  done
8003
  IFS="$lt_save_ifs"
8004
  MAGIC_CMD="$lt_save_MAGIC_CMD"
8005
  ;;
8006
esac
8007
fi
8008
 
8009
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8010
if test -n "$MAGIC_CMD"; then
8011
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8012
$as_echo "$MAGIC_CMD" >&6; }
8013
else
8014
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8015
$as_echo "no" >&6; }
8016
fi
8017
 
8018
 
8019
  else
8020
    MAGIC_CMD=:
8021
  fi
8022
fi
8023
 
8024
  fi
8025
  ;;
8026
esac
8027
 
8028
# Use C for the default configuration in the libtool script
8029
 
8030
lt_save_CC="$CC"
8031
ac_ext=c
8032
ac_cpp='$CPP $CPPFLAGS'
8033
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8034
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8035
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8036
 
8037
 
8038
# Source file extension for C test sources.
8039
ac_ext=c
8040
 
8041
# Object file extension for compiled C test sources.
8042
objext=o
8043
objext=$objext
8044
 
8045
# Code to be used in simple compile tests
8046
lt_simple_compile_test_code="int some_variable = 0;"
8047
 
8048
# Code to be used in simple link tests
8049
lt_simple_link_test_code='int main(){return(0);}'
8050
 
8051
 
8052
 
8053
 
8054
 
8055
 
8056
 
8057
# If no C compiler was specified, use CC.
8058
LTCC=${LTCC-"$CC"}
8059
 
8060
# If no C compiler flags were specified, use CFLAGS.
8061
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8062
 
8063
# Allow CC to be a program name with arguments.
8064
compiler=$CC
8065
 
8066
# Save the default compiler, since it gets overwritten when the other
8067
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8068
compiler_DEFAULT=$CC
8069
 
8070
# save warnings/boilerplate of simple test code
8071
ac_outfile=conftest.$ac_objext
8072
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8073
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8074
_lt_compiler_boilerplate=`cat conftest.err`
8075
$RM conftest*
8076
 
8077
ac_outfile=conftest.$ac_objext
8078
echo "$lt_simple_link_test_code" >conftest.$ac_ext
8079
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8080
_lt_linker_boilerplate=`cat conftest.err`
8081
$RM -r conftest*
8082
 
8083
 
8084
## CAVEAT EMPTOR:
8085
## There is no encapsulation within the following macros, do not change
8086
## the running order or otherwise move them around unless you know exactly
8087
## what you are doing...
8088
if test -n "$compiler"; then
8089
 
8090
lt_prog_compiler_no_builtin_flag=
8091
 
8092
if test "$GCC" = yes; then
8093
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8094
 
8095
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8096
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8097
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8098
  $as_echo_n "(cached) " >&6
8099
else
8100
  lt_cv_prog_compiler_rtti_exceptions=no
8101
   ac_outfile=conftest.$ac_objext
8102
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8103
   lt_compiler_flag="-fno-rtti -fno-exceptions"
8104
   # Insert the option either (1) after the last *FLAGS variable, or
8105
   # (2) before a word containing "conftest.", or (3) at the end.
8106
   # Note that $ac_compile itself does not contain backslashes and begins
8107
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8108
   # The option is referenced via a variable to avoid confusing sed.
8109
   lt_compile=`echo "$ac_compile" | $SED \
8110
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8111
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8112
   -e 's:$: $lt_compiler_flag:'`
8113
   (eval echo "\"\$as_me:8113: $lt_compile\"" >&5)
8114
   (eval "$lt_compile" 2>conftest.err)
8115
   ac_status=$?
8116
   cat conftest.err >&5
8117
   echo "$as_me:8117: \$? = $ac_status" >&5
8118
   if (exit $ac_status) && test -s "$ac_outfile"; then
8119
     # The compiler can only warn and ignore the option if not recognized
8120
     # So say no if there are warnings other than the usual output.
8121
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8122
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8123
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8124
       lt_cv_prog_compiler_rtti_exceptions=yes
8125
     fi
8126
   fi
8127
   $RM conftest*
8128
 
8129
fi
8130
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8131
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8132
 
8133
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8134
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8135
else
8136
    :
8137
fi
8138
 
8139
fi
8140
 
8141
 
8142
 
8143
 
8144
 
8145
 
8146
  lt_prog_compiler_wl=
8147
lt_prog_compiler_pic=
8148
lt_prog_compiler_static=
8149
 
8150
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8151
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8152
 
8153
  if test "$GCC" = yes; then
8154
    lt_prog_compiler_wl='-Wl,'
8155
    lt_prog_compiler_static='-static'
8156
 
8157
    case $host_os in
8158
      aix*)
8159
      # All AIX code is PIC.
8160
      if test "$host_cpu" = ia64; then
8161
        # AIX 5 now supports IA64 processor
8162
        lt_prog_compiler_static='-Bstatic'
8163
      fi
8164
      ;;
8165
 
8166
    amigaos*)
8167
      case $host_cpu in
8168
      powerpc)
8169
            # see comment about AmigaOS4 .so support
8170
            lt_prog_compiler_pic='-fPIC'
8171
        ;;
8172
      m68k)
8173
            # FIXME: we need at least 68020 code to build shared libraries, but
8174
            # adding the `-m68020' flag to GCC prevents building anything better,
8175
            # like `-m68040'.
8176
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8177
        ;;
8178
      esac
8179
      ;;
8180
 
8181
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8182
      # PIC is the default for these OSes.
8183
      ;;
8184
 
8185
    mingw* | cygwin* | pw32* | os2* | cegcc*)
8186
      # This hack is so that the source file can tell whether it is being
8187
      # built for inclusion in a dll (and should export symbols for example).
8188
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8189
      # (--disable-auto-import) libraries
8190
      lt_prog_compiler_pic='-DDLL_EXPORT'
8191
      ;;
8192
 
8193
    darwin* | rhapsody*)
8194
      # PIC is the default on this platform
8195
      # Common symbols not allowed in MH_DYLIB files
8196
      lt_prog_compiler_pic='-fno-common'
8197
      ;;
8198
 
8199
    hpux*)
8200
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8201
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8202
      # sets the default TLS model and affects inlining.
8203
      case $host_cpu in
8204
      hppa*64*)
8205
        # +Z the default
8206
        ;;
8207
      *)
8208
        lt_prog_compiler_pic='-fPIC'
8209
        ;;
8210
      esac
8211
      ;;
8212
 
8213
    interix[3-9]*)
8214
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8215
      # Instead, we relocate shared libraries at runtime.
8216
      ;;
8217
 
8218
    msdosdjgpp*)
8219
      # Just because we use GCC doesn't mean we suddenly get shared libraries
8220
      # on systems that don't support them.
8221
      lt_prog_compiler_can_build_shared=no
8222
      enable_shared=no
8223
      ;;
8224
 
8225
    *nto* | *qnx*)
8226
      # QNX uses GNU C++, but need to define -shared option too, otherwise
8227
      # it will coredump.
8228
      lt_prog_compiler_pic='-fPIC -shared'
8229
      ;;
8230
 
8231
    sysv4*MP*)
8232
      if test -d /usr/nec; then
8233
        lt_prog_compiler_pic=-Kconform_pic
8234
      fi
8235
      ;;
8236
 
8237
    *)
8238
      lt_prog_compiler_pic='-fPIC'
8239
      ;;
8240
    esac
8241
  else
8242
    # PORTME Check for flag to pass linker flags through the system compiler.
8243
    case $host_os in
8244
    aix*)
8245
      lt_prog_compiler_wl='-Wl,'
8246
      if test "$host_cpu" = ia64; then
8247
        # AIX 5 now supports IA64 processor
8248
        lt_prog_compiler_static='-Bstatic'
8249
      else
8250
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8251
      fi
8252
      ;;
8253
 
8254
    mingw* | cygwin* | pw32* | os2* | cegcc*)
8255
      # This hack is so that the source file can tell whether it is being
8256
      # built for inclusion in a dll (and should export symbols for example).
8257
      lt_prog_compiler_pic='-DDLL_EXPORT'
8258
      ;;
8259
 
8260
    hpux9* | hpux10* | hpux11*)
8261
      lt_prog_compiler_wl='-Wl,'
8262
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8263
      # not for PA HP-UX.
8264
      case $host_cpu in
8265
      hppa*64*|ia64*)
8266
        # +Z the default
8267
        ;;
8268
      *)
8269
        lt_prog_compiler_pic='+Z'
8270
        ;;
8271
      esac
8272
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8273
      lt_prog_compiler_static='${wl}-a ${wl}archive'
8274
      ;;
8275
 
8276
    irix5* | irix6* | nonstopux*)
8277
      lt_prog_compiler_wl='-Wl,'
8278
      # PIC (with -KPIC) is the default.
8279
      lt_prog_compiler_static='-non_shared'
8280
      ;;
8281
 
8282
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8283
      case $cc_basename in
8284
      # old Intel for x86_64 which still supported -KPIC.
8285
      ecc*)
8286
        lt_prog_compiler_wl='-Wl,'
8287
        lt_prog_compiler_pic='-KPIC'
8288
        lt_prog_compiler_static='-static'
8289
        ;;
8290
      # icc used to be incompatible with GCC.
8291
      # ICC 10 doesn't accept -KPIC any more.
8292
      icc* | ifort*)
8293
        lt_prog_compiler_wl='-Wl,'
8294
        lt_prog_compiler_pic='-fPIC'
8295
        lt_prog_compiler_static='-static'
8296
        ;;
8297
      # Lahey Fortran 8.1.
8298
      lf95*)
8299
        lt_prog_compiler_wl='-Wl,'
8300
        lt_prog_compiler_pic='--shared'
8301
        lt_prog_compiler_static='--static'
8302
        ;;
8303
      pgcc* | pgf77* | pgf90* | pgf95*)
8304
        # Portland Group compilers (*not* the Pentium gcc compiler,
8305
        # which looks to be a dead project)
8306
        lt_prog_compiler_wl='-Wl,'
8307
        lt_prog_compiler_pic='-fpic'
8308
        lt_prog_compiler_static='-Bstatic'
8309
        ;;
8310
      ccc*)
8311
        lt_prog_compiler_wl='-Wl,'
8312
        # All Alpha code is PIC.
8313
        lt_prog_compiler_static='-non_shared'
8314
        ;;
8315
      xl*)
8316
        # IBM XL C 8.0/Fortran 10.1 on PPC
8317
        lt_prog_compiler_wl='-Wl,'
8318
        lt_prog_compiler_pic='-qpic'
8319
        lt_prog_compiler_static='-qstaticlink'
8320
        ;;
8321
      *)
8322
        case `$CC -V 2>&1 | sed 5q` in
8323
        *Sun\ C*)
8324
          # Sun C 5.9
8325
          lt_prog_compiler_pic='-KPIC'
8326
          lt_prog_compiler_static='-Bstatic'
8327
          lt_prog_compiler_wl='-Wl,'
8328
          ;;
8329
        *Sun\ F*)
8330
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
8331
          lt_prog_compiler_pic='-KPIC'
8332
          lt_prog_compiler_static='-Bstatic'
8333
          lt_prog_compiler_wl=''
8334
          ;;
8335
        esac
8336
        ;;
8337
      esac
8338
      ;;
8339
 
8340
    newsos6)
8341
      lt_prog_compiler_pic='-KPIC'
8342
      lt_prog_compiler_static='-Bstatic'
8343
      ;;
8344
 
8345
    *nto* | *qnx*)
8346
      # QNX uses GNU C++, but need to define -shared option too, otherwise
8347
      # it will coredump.
8348
      lt_prog_compiler_pic='-fPIC -shared'
8349
      ;;
8350
 
8351
    osf3* | osf4* | osf5*)
8352
      lt_prog_compiler_wl='-Wl,'
8353
      # All OSF/1 code is PIC.
8354
      lt_prog_compiler_static='-non_shared'
8355
      ;;
8356
 
8357
    rdos*)
8358
      lt_prog_compiler_static='-non_shared'
8359
      ;;
8360
 
8361
    solaris*)
8362
      lt_prog_compiler_pic='-KPIC'
8363
      lt_prog_compiler_static='-Bstatic'
8364
      case $cc_basename in
8365
      f77* | f90* | f95*)
8366
        lt_prog_compiler_wl='-Qoption ld ';;
8367
      *)
8368
        lt_prog_compiler_wl='-Wl,';;
8369
      esac
8370
      ;;
8371
 
8372
    sunos4*)
8373
      lt_prog_compiler_wl='-Qoption ld '
8374
      lt_prog_compiler_pic='-PIC'
8375
      lt_prog_compiler_static='-Bstatic'
8376
      ;;
8377
 
8378
    sysv4 | sysv4.2uw2* | sysv4.3*)
8379
      lt_prog_compiler_wl='-Wl,'
8380
      lt_prog_compiler_pic='-KPIC'
8381
      lt_prog_compiler_static='-Bstatic'
8382
      ;;
8383
 
8384
    sysv4*MP*)
8385
      if test -d /usr/nec ;then
8386
        lt_prog_compiler_pic='-Kconform_pic'
8387
        lt_prog_compiler_static='-Bstatic'
8388
      fi
8389
      ;;
8390
 
8391
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8392
      lt_prog_compiler_wl='-Wl,'
8393
      lt_prog_compiler_pic='-KPIC'
8394
      lt_prog_compiler_static='-Bstatic'
8395
      ;;
8396
 
8397
    unicos*)
8398
      lt_prog_compiler_wl='-Wl,'
8399
      lt_prog_compiler_can_build_shared=no
8400
      ;;
8401
 
8402
    uts4*)
8403
      lt_prog_compiler_pic='-pic'
8404
      lt_prog_compiler_static='-Bstatic'
8405
      ;;
8406
 
8407
    *)
8408
      lt_prog_compiler_can_build_shared=no
8409
      ;;
8410
    esac
8411
  fi
8412
 
8413
case $host_os in
8414
  # For platforms which do not support PIC, -DPIC is meaningless:
8415
  *djgpp*)
8416
    lt_prog_compiler_pic=
8417
    ;;
8418
  *)
8419
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8420
    ;;
8421
esac
8422
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8423
$as_echo "$lt_prog_compiler_pic" >&6; }
8424
 
8425
 
8426
 
8427
 
8428
 
8429
 
8430
#
8431
# Check to make sure the PIC flag actually works.
8432
#
8433
if test -n "$lt_prog_compiler_pic"; then
8434
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8435
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8436
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8437
  $as_echo_n "(cached) " >&6
8438
else
8439
  lt_cv_prog_compiler_pic_works=no
8440
   ac_outfile=conftest.$ac_objext
8441
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8442
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8443
   # Insert the option either (1) after the last *FLAGS variable, or
8444
   # (2) before a word containing "conftest.", or (3) at the end.
8445
   # Note that $ac_compile itself does not contain backslashes and begins
8446
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8447
   # The option is referenced via a variable to avoid confusing sed.
8448
   lt_compile=`echo "$ac_compile" | $SED \
8449
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8450
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8451
   -e 's:$: $lt_compiler_flag:'`
8452
   (eval echo "\"\$as_me:8452: $lt_compile\"" >&5)
8453
   (eval "$lt_compile" 2>conftest.err)
8454
   ac_status=$?
8455
   cat conftest.err >&5
8456
   echo "$as_me:8456: \$? = $ac_status" >&5
8457
   if (exit $ac_status) && test -s "$ac_outfile"; then
8458
     # The compiler can only warn and ignore the option if not recognized
8459
     # So say no if there are warnings other than the usual output.
8460
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8461
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8462
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8463
       lt_cv_prog_compiler_pic_works=yes
8464
     fi
8465
   fi
8466
   $RM conftest*
8467
 
8468
fi
8469
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8470
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8471
 
8472
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8473
    case $lt_prog_compiler_pic in
8474
     "" | " "*) ;;
8475
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8476
     esac
8477
else
8478
    lt_prog_compiler_pic=
8479
     lt_prog_compiler_can_build_shared=no
8480
fi
8481
 
8482
fi
8483
 
8484
 
8485
 
8486
 
8487
 
8488
 
8489
#
8490
# Check to make sure the static flag actually works.
8491
#
8492
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8493
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8494
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8495
if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8496
  $as_echo_n "(cached) " >&6
8497
else
8498
  lt_cv_prog_compiler_static_works=no
8499
   save_LDFLAGS="$LDFLAGS"
8500
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8501
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8502
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8503
     # The linker can only warn and ignore the option if not recognized
8504
     # So say no if there are warnings
8505
     if test -s conftest.err; then
8506
       # Append any errors to the config.log.
8507
       cat conftest.err 1>&5
8508
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8509
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8510
       if diff conftest.exp conftest.er2 >/dev/null; then
8511
         lt_cv_prog_compiler_static_works=yes
8512
       fi
8513
     else
8514
       lt_cv_prog_compiler_static_works=yes
8515
     fi
8516
   fi
8517
   $RM -r conftest*
8518
   LDFLAGS="$save_LDFLAGS"
8519
 
8520
fi
8521
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8522
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8523
 
8524
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8525
    :
8526
else
8527
    lt_prog_compiler_static=
8528
fi
8529
 
8530
 
8531
 
8532
 
8533
 
8534
 
8535
 
8536
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8537
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8538
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8539
  $as_echo_n "(cached) " >&6
8540
else
8541
  lt_cv_prog_compiler_c_o=no
8542
   $RM -r conftest 2>/dev/null
8543
   mkdir conftest
8544
   cd conftest
8545
   mkdir out
8546
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8547
 
8548
   lt_compiler_flag="-o out/conftest2.$ac_objext"
8549
   # Insert the option either (1) after the last *FLAGS variable, or
8550
   # (2) before a word containing "conftest.", or (3) at the end.
8551
   # Note that $ac_compile itself does not contain backslashes and begins
8552
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8553
   lt_compile=`echo "$ac_compile" | $SED \
8554
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8555
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8556
   -e 's:$: $lt_compiler_flag:'`
8557
   (eval echo "\"\$as_me:8557: $lt_compile\"" >&5)
8558
   (eval "$lt_compile" 2>out/conftest.err)
8559
   ac_status=$?
8560
   cat out/conftest.err >&5
8561
   echo "$as_me:8561: \$? = $ac_status" >&5
8562
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8563
   then
8564
     # The compiler can only warn and ignore the option if not recognized
8565
     # So say no if there are warnings
8566
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8567
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8568
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8569
       lt_cv_prog_compiler_c_o=yes
8570
     fi
8571
   fi
8572
   chmod u+w . 2>&5
8573
   $RM conftest*
8574
   # SGI C++ compiler will create directory out/ii_files/ for
8575
   # template instantiation
8576
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8577
   $RM out/* && rmdir out
8578
   cd ..
8579
   $RM -r conftest
8580
   $RM conftest*
8581
 
8582
fi
8583
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8584
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8585
 
8586
 
8587
 
8588
 
8589
 
8590
 
8591
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8592
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8593
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8594
  $as_echo_n "(cached) " >&6
8595
else
8596
  lt_cv_prog_compiler_c_o=no
8597
   $RM -r conftest 2>/dev/null
8598
   mkdir conftest
8599
   cd conftest
8600
   mkdir out
8601
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8602
 
8603
   lt_compiler_flag="-o out/conftest2.$ac_objext"
8604
   # Insert the option either (1) after the last *FLAGS variable, or
8605
   # (2) before a word containing "conftest.", or (3) at the end.
8606
   # Note that $ac_compile itself does not contain backslashes and begins
8607
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8608
   lt_compile=`echo "$ac_compile" | $SED \
8609
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8610
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8611
   -e 's:$: $lt_compiler_flag:'`
8612
   (eval echo "\"\$as_me:8612: $lt_compile\"" >&5)
8613
   (eval "$lt_compile" 2>out/conftest.err)
8614
   ac_status=$?
8615
   cat out/conftest.err >&5
8616
   echo "$as_me:8616: \$? = $ac_status" >&5
8617
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8618
   then
8619
     # The compiler can only warn and ignore the option if not recognized
8620
     # So say no if there are warnings
8621
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8622
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8623
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8624
       lt_cv_prog_compiler_c_o=yes
8625
     fi
8626
   fi
8627
   chmod u+w . 2>&5
8628
   $RM conftest*
8629
   # SGI C++ compiler will create directory out/ii_files/ for
8630
   # template instantiation
8631
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8632
   $RM out/* && rmdir out
8633
   cd ..
8634
   $RM -r conftest
8635
   $RM conftest*
8636
 
8637
fi
8638
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8639
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8640
 
8641
 
8642
 
8643
 
8644
hard_links="nottested"
8645
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8646
  # do not overwrite the value of need_locks provided by the user
8647
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8648
$as_echo_n "checking if we can lock with hard links... " >&6; }
8649
  hard_links=yes
8650
  $RM conftest*
8651
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8652
  touch conftest.a
8653
  ln conftest.a conftest.b 2>&5 || hard_links=no
8654
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8655
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8656
$as_echo "$hard_links" >&6; }
8657
  if test "$hard_links" = no; then
8658
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8659
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8660
    need_locks=warn
8661
  fi
8662
else
8663
  need_locks=no
8664
fi
8665
 
8666
 
8667
 
8668
 
8669
 
8670
 
8671
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8672
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8673
 
8674
  runpath_var=
8675
  allow_undefined_flag=
8676
  always_export_symbols=no
8677
  archive_cmds=
8678
  archive_expsym_cmds=
8679
  compiler_needs_object=no
8680
  enable_shared_with_static_runtimes=no
8681
  export_dynamic_flag_spec=
8682
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8683
  hardcode_automatic=no
8684
  hardcode_direct=no
8685
  hardcode_direct_absolute=no
8686
  hardcode_libdir_flag_spec=
8687
  hardcode_libdir_flag_spec_ld=
8688
  hardcode_libdir_separator=
8689
  hardcode_minus_L=no
8690
  hardcode_shlibpath_var=unsupported
8691
  inherit_rpath=no
8692
  link_all_deplibs=unknown
8693
  module_cmds=
8694
  module_expsym_cmds=
8695
  old_archive_from_new_cmds=
8696
  old_archive_from_expsyms_cmds=
8697
  thread_safe_flag_spec=
8698
  whole_archive_flag_spec=
8699
  # include_expsyms should be a list of space-separated symbols to be *always*
8700
  # included in the symbol list
8701
  include_expsyms=
8702
  # exclude_expsyms can be an extended regexp of symbols to exclude
8703
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8704
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8705
  # as well as any symbol that contains `d'.
8706
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8707
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8708
  # platforms (ab)use it in PIC code, but their linkers get confused if
8709
  # the symbol is explicitly referenced.  Since portable code cannot
8710
  # rely on this symbol name, it's probably fine to never include it in
8711
  # preloaded symbol tables.
8712
  # Exclude shared library initialization/finalization symbols.
8713
  extract_expsyms_cmds=
8714
 
8715
  case $host_os in
8716
  cygwin* | mingw* | pw32* | cegcc*)
8717
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8718
    # When not using gcc, we currently assume that we are using
8719
    # Microsoft Visual C++.
8720
    if test "$GCC" != yes; then
8721
      with_gnu_ld=no
8722
    fi
8723
    ;;
8724
  interix*)
8725
    # we just hope/assume this is gcc and not c89 (= MSVC++)
8726
    with_gnu_ld=yes
8727
    ;;
8728
  openbsd*)
8729
    with_gnu_ld=no
8730
    ;;
8731
  esac
8732
 
8733
  ld_shlibs=yes
8734
  if test "$with_gnu_ld" = yes; then
8735
    # If archive_cmds runs LD, not CC, wlarc should be empty
8736
    wlarc='${wl}'
8737
 
8738
    # Set some defaults for GNU ld with shared library support. These
8739
    # are reset later if shared libraries are not supported. Putting them
8740
    # here allows them to be overridden if necessary.
8741
    runpath_var=LD_RUN_PATH
8742
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8743
    export_dynamic_flag_spec='${wl}--export-dynamic'
8744
    # ancient GNU ld didn't support --whole-archive et. al.
8745
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8746
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8747
    else
8748
      whole_archive_flag_spec=
8749
    fi
8750
    supports_anon_versioning=no
8751
    case `$LD -v 2>&1` in
8752
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8753
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8754
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8755
      *\ 2.11.*) ;; # other 2.11 versions
8756
      *) supports_anon_versioning=yes ;;
8757
    esac
8758
 
8759
    # See if GNU ld supports shared libraries.
8760
    case $host_os in
8761
    aix[3-9]*)
8762
      # On AIX/PPC, the GNU linker is very broken
8763
      if test "$host_cpu" != ia64; then
8764
        ld_shlibs=no
8765
        cat <<_LT_EOF 1>&2
8766
 
8767
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8768
*** to be unable to reliably create shared libraries on AIX.
8769
*** Therefore, libtool is disabling shared libraries support.  If you
8770
*** really care for shared libraries, you may want to modify your PATH
8771
*** so that a non-GNU linker is found, and then restart.
8772
 
8773
_LT_EOF
8774
      fi
8775
      ;;
8776
 
8777
    amigaos*)
8778
      case $host_cpu in
8779
      powerpc)
8780
            # see comment about AmigaOS4 .so support
8781
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8782
            archive_expsym_cmds=''
8783
        ;;
8784
      m68k)
8785
            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)'
8786
            hardcode_libdir_flag_spec='-L$libdir'
8787
            hardcode_minus_L=yes
8788
        ;;
8789
      esac
8790
      ;;
8791
 
8792
    beos*)
8793
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8794
        allow_undefined_flag=unsupported
8795
        # Joseph Beckenbach  says some releases of gcc
8796
        # support --undefined.  This deserves some investigation.  FIXME
8797
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8798
      else
8799
        ld_shlibs=no
8800
      fi
8801
      ;;
8802
 
8803
    cygwin* | mingw* | pw32* | cegcc*)
8804
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8805
      # as there is no search path for DLLs.
8806
      hardcode_libdir_flag_spec='-L$libdir'
8807
      allow_undefined_flag=unsupported
8808
      always_export_symbols=no
8809
      enable_shared_with_static_runtimes=yes
8810
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8811
 
8812
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8813
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8814
        # If the export-symbols file already is a .def file (1st line
8815
        # is EXPORTS), use it as is; otherwise, prepend...
8816
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8817
          cp $export_symbols $output_objdir/$soname.def;
8818
        else
8819
          echo EXPORTS > $output_objdir/$soname.def;
8820
          cat $export_symbols >> $output_objdir/$soname.def;
8821
        fi~
8822
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8823
      else
8824
        ld_shlibs=no
8825
      fi
8826
      ;;
8827
 
8828
    interix[3-9]*)
8829
      hardcode_direct=no
8830
      hardcode_shlibpath_var=no
8831
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8832
      export_dynamic_flag_spec='${wl}-E'
8833
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8834
      # Instead, shared libraries are loaded at an image base (0x10000000 by
8835
      # default) and relocated if they conflict, which is a slow very memory
8836
      # consuming and fragmenting process.  To avoid this, we pick a random,
8837
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8838
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8839
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8840
      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'
8841
      ;;
8842
 
8843
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8844
      tmp_diet=no
8845
      if test "$host_os" = linux-dietlibc; then
8846
        case $cc_basename in
8847
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8848
        esac
8849
      fi
8850
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8851
         && test "$tmp_diet" = no
8852
      then
8853
        tmp_addflag=
8854
        tmp_sharedflag='-shared'
8855
        case $cc_basename,$host_cpu in
8856
        pgcc*)                          # Portland Group C compiler
8857
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8858
          tmp_addflag=' $pic_flag'
8859
          ;;
8860
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8861
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8862
          tmp_addflag=' $pic_flag -Mnomain' ;;
8863
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8864
          tmp_addflag=' -i_dynamic' ;;
8865
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8866
          tmp_addflag=' -i_dynamic -nofor_main' ;;
8867
        ifc* | ifort*)                  # Intel Fortran compiler
8868
          tmp_addflag=' -nofor_main' ;;
8869
        lf95*)                          # Lahey Fortran 8.1
8870
          whole_archive_flag_spec=
8871
          tmp_sharedflag='--shared' ;;
8872
        xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
8873
          tmp_sharedflag='-qmkshrobj'
8874
          tmp_addflag= ;;
8875
        esac
8876
        case `$CC -V 2>&1 | sed 5q` in
8877
        *Sun\ C*)                       # Sun C 5.9
8878
          whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8879
          compiler_needs_object=yes
8880
          tmp_sharedflag='-G' ;;
8881
        *Sun\ F*)                       # Sun Fortran 8.3
8882
          tmp_sharedflag='-G' ;;
8883
        esac
8884
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8885
 
8886
        if test "x$supports_anon_versioning" = xyes; then
8887
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8888
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8889
            echo "local: *; };" >> $output_objdir/$libname.ver~
8890
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8891
        fi
8892
 
8893
        case $cc_basename in
8894
        xlf*)
8895
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8896
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8897
          hardcode_libdir_flag_spec=
8898
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
8899
          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8900
          if test "x$supports_anon_versioning" = xyes; then
8901
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8902
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8903
              echo "local: *; };" >> $output_objdir/$libname.ver~
8904
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8905
          fi
8906
          ;;
8907
        esac
8908
      else
8909
        ld_shlibs=no
8910
      fi
8911
      ;;
8912
 
8913
    netbsd*)
8914
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8915
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8916
        wlarc=
8917
      else
8918
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8919
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8920
      fi
8921
      ;;
8922
 
8923
    solaris*)
8924
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8925
        ld_shlibs=no
8926
        cat <<_LT_EOF 1>&2
8927
 
8928
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8929
*** create shared libraries on Solaris systems.  Therefore, libtool
8930
*** is disabling shared libraries support.  We urge you to upgrade GNU
8931
*** binutils to release 2.9.1 or newer.  Another option is to modify
8932
*** your PATH or compiler configuration so that the native linker is
8933
*** used, and then restart.
8934
 
8935
_LT_EOF
8936
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8937
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8938
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8939
      else
8940
        ld_shlibs=no
8941
      fi
8942
      ;;
8943
 
8944
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8945
      case `$LD -v 2>&1` in
8946
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8947
        ld_shlibs=no
8948
        cat <<_LT_EOF 1>&2
8949
 
8950
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8951
*** reliably create shared libraries on SCO systems.  Therefore, libtool
8952
*** is disabling shared libraries support.  We urge you to upgrade GNU
8953
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8954
*** your PATH or compiler configuration so that the native linker is
8955
*** used, and then restart.
8956
 
8957
_LT_EOF
8958
        ;;
8959
        *)
8960
          # For security reasons, it is highly recommended that you always
8961
          # use absolute paths for naming shared libraries, and exclude the
8962
          # DT_RUNPATH tag from executables and libraries.  But doing so
8963
          # requires that you compile everything twice, which is a pain.
8964
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8965
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8966
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8967
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8968
          else
8969
            ld_shlibs=no
8970
          fi
8971
        ;;
8972
      esac
8973
      ;;
8974
 
8975
    sunos4*)
8976
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8977
      wlarc=
8978
      hardcode_direct=yes
8979
      hardcode_shlibpath_var=no
8980
      ;;
8981
 
8982
    *)
8983
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8984
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8985
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8986
      else
8987
        ld_shlibs=no
8988
      fi
8989
      ;;
8990
    esac
8991
 
8992
    if test "$ld_shlibs" = no; then
8993
      runpath_var=
8994
      hardcode_libdir_flag_spec=
8995
      export_dynamic_flag_spec=
8996
      whole_archive_flag_spec=
8997
    fi
8998
  else
8999
    # PORTME fill in a description of your system's linker (not GNU ld)
9000
    case $host_os in
9001
    aix3*)
9002
      allow_undefined_flag=unsupported
9003
      always_export_symbols=yes
9004
      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'
9005
      # Note: this linker hardcodes the directories in LIBPATH if there
9006
      # are no directories specified by -L.
9007
      hardcode_minus_L=yes
9008
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9009
        # Neither direct hardcoding nor static linking is supported with a
9010
        # broken collect2.
9011
        hardcode_direct=unsupported
9012
      fi
9013
      ;;
9014
 
9015
    aix[4-9]*)
9016
      if test "$host_cpu" = ia64; then
9017
        # On IA64, the linker does run time linking by default, so we don't
9018
        # have to do anything special.
9019
        aix_use_runtimelinking=no
9020
        exp_sym_flag='-Bexport'
9021
        no_entry_flag=""
9022
      else
9023
        # If we're using GNU nm, then we don't want the "-C" option.
9024
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9025
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9026
          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9027
        else
9028
          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'
9029
        fi
9030
        aix_use_runtimelinking=no
9031
 
9032
        # Test if we are trying to use run time linking or normal
9033
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9034
        # need to do runtime linking.
9035
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9036
          for ld_flag in $LDFLAGS; do
9037
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9038
            aix_use_runtimelinking=yes
9039
            break
9040
          fi
9041
          done
9042
          ;;
9043
        esac
9044
 
9045
        exp_sym_flag='-bexport'
9046
        no_entry_flag='-bnoentry'
9047
      fi
9048
 
9049
      # When large executables or shared objects are built, AIX ld can
9050
      # have problems creating the table of contents.  If linking a library
9051
      # or program results in "error TOC overflow" add -mminimal-toc to
9052
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9053
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9054
 
9055
      archive_cmds=''
9056
      hardcode_direct=yes
9057
      hardcode_direct_absolute=yes
9058
      hardcode_libdir_separator=':'
9059
      link_all_deplibs=yes
9060
      file_list_spec='${wl}-f,'
9061
 
9062
      if test "$GCC" = yes; then
9063
        case $host_os in aix4.[012]|aix4.[012].*)
9064
        # We only want to do this on AIX 4.2 and lower, the check
9065
        # below for broken collect2 doesn't work under 4.3+
9066
          collect2name=`${CC} -print-prog-name=collect2`
9067
          if test -f "$collect2name" &&
9068
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9069
          then
9070
          # We have reworked collect2
9071
          :
9072
          else
9073
          # We have old collect2
9074
          hardcode_direct=unsupported
9075
          # It fails to find uninstalled libraries when the uninstalled
9076
          # path is not listed in the libpath.  Setting hardcode_minus_L
9077
          # to unsupported forces relinking
9078
          hardcode_minus_L=yes
9079
          hardcode_libdir_flag_spec='-L$libdir'
9080
          hardcode_libdir_separator=
9081
          fi
9082
          ;;
9083
        esac
9084
        shared_flag='-shared'
9085
        if test "$aix_use_runtimelinking" = yes; then
9086
          shared_flag="$shared_flag "'${wl}-G'
9087
        fi
9088
      else
9089
        # not using gcc
9090
        if test "$host_cpu" = ia64; then
9091
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9092
        # chokes on -Wl,-G. The following line is correct:
9093
          shared_flag='-G'
9094
        else
9095
          if test "$aix_use_runtimelinking" = yes; then
9096
            shared_flag='${wl}-G'
9097
          else
9098
            shared_flag='${wl}-bM:SRE'
9099
          fi
9100
        fi
9101
      fi
9102
 
9103
      export_dynamic_flag_spec='${wl}-bexpall'
9104
      # It seems that -bexpall does not export symbols beginning with
9105
      # underscore (_), so it is better to generate a list of symbols to export.
9106
      always_export_symbols=yes
9107
      if test "$aix_use_runtimelinking" = yes; then
9108
        # Warning - without using the other runtime loading flags (-brtl),
9109
        # -berok will link without error, but may produce a broken library.
9110
        allow_undefined_flag='-berok'
9111
        # Determine the default libpath from the value encoded in an
9112
        # empty executable.
9113
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9114
/* end confdefs.h.  */
9115
 
9116
int
9117
main ()
9118
{
9119
 
9120
  ;
9121
  return 0;
9122
}
9123
_ACEOF
9124
if ac_fn_c_try_link "$LINENO"; then :
9125
 
9126
lt_aix_libpath_sed='
9127
    /Import File Strings/,/^$/ {
9128
        /^0/ {
9129
            s/^0  *\(.*\)$/\1/
9130
            p
9131
        }
9132
    }'
9133
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9134
# Check for a 64-bit object if we didn't find anything.
9135
if test -z "$aix_libpath"; then
9136
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9137
fi
9138
fi
9139
rm -f core conftest.err conftest.$ac_objext \
9140
    conftest$ac_exeext conftest.$ac_ext
9141
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9142
 
9143
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9144
        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9145
      else
9146
        if test "$host_cpu" = ia64; then
9147
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9148
          allow_undefined_flag="-z nodefs"
9149
          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"
9150
        else
9151
         # Determine the default libpath from the value encoded in an
9152
         # empty executable.
9153
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9154
/* end confdefs.h.  */
9155
 
9156
int
9157
main ()
9158
{
9159
 
9160
  ;
9161
  return 0;
9162
}
9163
_ACEOF
9164
if ac_fn_c_try_link "$LINENO"; then :
9165
 
9166
lt_aix_libpath_sed='
9167
    /Import File Strings/,/^$/ {
9168
        /^0/ {
9169
            s/^0  *\(.*\)$/\1/
9170
            p
9171
        }
9172
    }'
9173
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9174
# Check for a 64-bit object if we didn't find anything.
9175
if test -z "$aix_libpath"; then
9176
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9177
fi
9178
fi
9179
rm -f core conftest.err conftest.$ac_objext \
9180
    conftest$ac_exeext conftest.$ac_ext
9181
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9182
 
9183
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9184
          # Warning - without using the other run time loading flags,
9185
          # -berok will link without error, but may produce a broken library.
9186
          no_undefined_flag=' ${wl}-bernotok'
9187
          allow_undefined_flag=' ${wl}-berok'
9188
          # Exported symbols can be pulled into shared objects from archives
9189
          whole_archive_flag_spec='$convenience'
9190
          archive_cmds_need_lc=yes
9191
          # This is similar to how AIX traditionally builds its shared libraries.
9192
          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'
9193
        fi
9194
      fi
9195
      ;;
9196
 
9197
    amigaos*)
9198
      case $host_cpu in
9199
      powerpc)
9200
            # see comment about AmigaOS4 .so support
9201
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9202
            archive_expsym_cmds=''
9203
        ;;
9204
      m68k)
9205
            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)'
9206
            hardcode_libdir_flag_spec='-L$libdir'
9207
            hardcode_minus_L=yes
9208
        ;;
9209
      esac
9210
      ;;
9211
 
9212
    bsdi[45]*)
9213
      export_dynamic_flag_spec=-rdynamic
9214
      ;;
9215
 
9216
    cygwin* | mingw* | pw32* | cegcc*)
9217
      # When not using gcc, we currently assume that we are using
9218
      # Microsoft Visual C++.
9219
      # hardcode_libdir_flag_spec is actually meaningless, as there is
9220
      # no search path for DLLs.
9221
      hardcode_libdir_flag_spec=' '
9222
      allow_undefined_flag=unsupported
9223
      # Tell ltmain to make .lib files, not .a files.
9224
      libext=lib
9225
      # Tell ltmain to make .dll files, not .so files.
9226
      shrext_cmds=".dll"
9227
      # FIXME: Setting linknames here is a bad hack.
9228
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9229
      # The linker will automatically build a .lib file if we build a DLL.
9230
      old_archive_from_new_cmds='true'
9231
      # FIXME: Should let the user specify the lib program.
9232
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9233
      fix_srcfile_path='`cygpath -w "$srcfile"`'
9234
      enable_shared_with_static_runtimes=yes
9235
      ;;
9236
 
9237
    darwin* | rhapsody*)
9238
 
9239
 
9240
  archive_cmds_need_lc=no
9241
  hardcode_direct=no
9242
  hardcode_automatic=yes
9243
  hardcode_shlibpath_var=unsupported
9244
  whole_archive_flag_spec=''
9245
  link_all_deplibs=yes
9246
  allow_undefined_flag="$_lt_dar_allow_undefined"
9247
  case $cc_basename in
9248
     ifort*) _lt_dar_can_shared=yes ;;
9249
     *) _lt_dar_can_shared=$GCC ;;
9250
  esac
9251
  if test "$_lt_dar_can_shared" = "yes"; then
9252
    output_verbose_link_cmd=echo
9253
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9254
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9255
    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}"
9256
    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}"
9257
 
9258
  else
9259
  ld_shlibs=no
9260
  fi
9261
 
9262
      ;;
9263
 
9264
    dgux*)
9265
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9266
      hardcode_libdir_flag_spec='-L$libdir'
9267
      hardcode_shlibpath_var=no
9268
      ;;
9269
 
9270
    freebsd1*)
9271
      ld_shlibs=no
9272
      ;;
9273
 
9274
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9275
    # support.  Future versions do this automatically, but an explicit c++rt0.o
9276
    # does not break anything, and helps significantly (at the cost of a little
9277
    # extra space).
9278
    freebsd2.2*)
9279
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9280
      hardcode_libdir_flag_spec='-R$libdir'
9281
      hardcode_direct=yes
9282
      hardcode_shlibpath_var=no
9283
      ;;
9284
 
9285
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9286
    freebsd2*)
9287
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9288
      hardcode_direct=yes
9289
      hardcode_minus_L=yes
9290
      hardcode_shlibpath_var=no
9291
      ;;
9292
 
9293
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9294
    freebsd* | dragonfly*)
9295
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9296
      hardcode_libdir_flag_spec='-R$libdir'
9297
      hardcode_direct=yes
9298
      hardcode_shlibpath_var=no
9299
      ;;
9300
 
9301
    hpux9*)
9302
      if test "$GCC" = yes; then
9303
        archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9304
      else
9305
        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'
9306
      fi
9307
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9308
      hardcode_libdir_separator=:
9309
      hardcode_direct=yes
9310
 
9311
      # hardcode_minus_L: Not really in the search PATH,
9312
      # but as the default location of the library.
9313
      hardcode_minus_L=yes
9314
      export_dynamic_flag_spec='${wl}-E'
9315
      ;;
9316
 
9317
    hpux10*)
9318
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9319
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9320
      else
9321
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9322
      fi
9323
      if test "$with_gnu_ld" = no; then
9324
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9325
        hardcode_libdir_flag_spec_ld='+b $libdir'
9326
        hardcode_libdir_separator=:
9327
        hardcode_direct=yes
9328
        hardcode_direct_absolute=yes
9329
        export_dynamic_flag_spec='${wl}-E'
9330
        # hardcode_minus_L: Not really in the search PATH,
9331
        # but as the default location of the library.
9332
        hardcode_minus_L=yes
9333
      fi
9334
      ;;
9335
 
9336
    hpux11*)
9337
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9338
        case $host_cpu in
9339
        hppa*64*)
9340
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9341
          ;;
9342
        ia64*)
9343
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9344
          ;;
9345
        *)
9346
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9347
          ;;
9348
        esac
9349
      else
9350
        case $host_cpu in
9351
        hppa*64*)
9352
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9353
          ;;
9354
        ia64*)
9355
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9356
          ;;
9357
        *)
9358
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9359
          ;;
9360
        esac
9361
      fi
9362
      if test "$with_gnu_ld" = no; then
9363
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9364
        hardcode_libdir_separator=:
9365
 
9366
        case $host_cpu in
9367
        hppa*64*|ia64*)
9368
          hardcode_direct=no
9369
          hardcode_shlibpath_var=no
9370
          ;;
9371
        *)
9372
          hardcode_direct=yes
9373
          hardcode_direct_absolute=yes
9374
          export_dynamic_flag_spec='${wl}-E'
9375
 
9376
          # hardcode_minus_L: Not really in the search PATH,
9377
          # but as the default location of the library.
9378
          hardcode_minus_L=yes
9379
          ;;
9380
        esac
9381
      fi
9382
      ;;
9383
 
9384
    irix5* | irix6* | nonstopux*)
9385
      if test "$GCC" = yes; then
9386
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9387
        # Try to use the -exported_symbol ld option, if it does not
9388
        # work, assume that -exports_file does not work either and
9389
        # implicitly export all symbols.
9390
        save_LDFLAGS="$LDFLAGS"
9391
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9392
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9393
/* end confdefs.h.  */
9394
int foo(void) {}
9395
_ACEOF
9396
if ac_fn_c_try_link "$LINENO"; then :
9397
  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9398
 
9399
fi
9400
rm -f core conftest.err conftest.$ac_objext \
9401
    conftest$ac_exeext conftest.$ac_ext
9402
        LDFLAGS="$save_LDFLAGS"
9403
      else
9404
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9405
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9406
      fi
9407
      archive_cmds_need_lc='no'
9408
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9409
      hardcode_libdir_separator=:
9410
      inherit_rpath=yes
9411
      link_all_deplibs=yes
9412
      ;;
9413
 
9414
    netbsd*)
9415
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9416
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9417
      else
9418
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9419
      fi
9420
      hardcode_libdir_flag_spec='-R$libdir'
9421
      hardcode_direct=yes
9422
      hardcode_shlibpath_var=no
9423
      ;;
9424
 
9425
    newsos6)
9426
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9427
      hardcode_direct=yes
9428
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9429
      hardcode_libdir_separator=:
9430
      hardcode_shlibpath_var=no
9431
      ;;
9432
 
9433
    *nto* | *qnx*)
9434
      ;;
9435
 
9436
    openbsd*)
9437
      if test -f /usr/libexec/ld.so; then
9438
        hardcode_direct=yes
9439
        hardcode_shlibpath_var=no
9440
        hardcode_direct_absolute=yes
9441
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9442
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9443
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9444
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9445
          export_dynamic_flag_spec='${wl}-E'
9446
        else
9447
          case $host_os in
9448
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9449
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9450
             hardcode_libdir_flag_spec='-R$libdir'
9451
             ;;
9452
           *)
9453
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9454
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9455
             ;;
9456
          esac
9457
        fi
9458
      else
9459
        ld_shlibs=no
9460
      fi
9461
      ;;
9462
 
9463
    os2*)
9464
      hardcode_libdir_flag_spec='-L$libdir'
9465
      hardcode_minus_L=yes
9466
      allow_undefined_flag=unsupported
9467
      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'
9468
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9469
      ;;
9470
 
9471
    osf3*)
9472
      if test "$GCC" = yes; then
9473
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9474
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9475
      else
9476
        allow_undefined_flag=' -expect_unresolved \*'
9477
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9478
      fi
9479
      archive_cmds_need_lc='no'
9480
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9481
      hardcode_libdir_separator=:
9482
      ;;
9483
 
9484
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9485
      if test "$GCC" = yes; then
9486
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9487
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9488
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9489
      else
9490
        allow_undefined_flag=' -expect_unresolved \*'
9491
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9492
        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~
9493
        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9494
 
9495
        # Both c and cxx compiler support -rpath directly
9496
        hardcode_libdir_flag_spec='-rpath $libdir'
9497
      fi
9498
      archive_cmds_need_lc='no'
9499
      hardcode_libdir_separator=:
9500
      ;;
9501
 
9502
    solaris*)
9503
      no_undefined_flag=' -z defs'
9504
      if test "$GCC" = yes; then
9505
        wlarc='${wl}'
9506
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9507
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9508
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9509
      else
9510
        case `$CC -V 2>&1` in
9511
        *"Compilers 5.0"*)
9512
          wlarc=''
9513
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9514
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9515
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9516
          ;;
9517
        *)
9518
          wlarc='${wl}'
9519
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9520
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9521
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9522
          ;;
9523
        esac
9524
      fi
9525
      hardcode_libdir_flag_spec='-R$libdir'
9526
      hardcode_shlibpath_var=no
9527
      case $host_os in
9528
      solaris2.[0-5] | solaris2.[0-5].*) ;;
9529
      *)
9530
        # The compiler driver will combine and reorder linker options,
9531
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
9532
        # but is careful enough not to reorder.
9533
        # Supported since Solaris 2.6 (maybe 2.5.1?)
9534
        if test "$GCC" = yes; then
9535
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9536
        else
9537
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9538
        fi
9539
        ;;
9540
      esac
9541
      link_all_deplibs=yes
9542
      ;;
9543
 
9544
    sunos4*)
9545
      if test "x$host_vendor" = xsequent; then
9546
        # Use $CC to link under sequent, because it throws in some extra .o
9547
        # files that make .init and .fini sections work.
9548
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9549
      else
9550
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9551
      fi
9552
      hardcode_libdir_flag_spec='-L$libdir'
9553
      hardcode_direct=yes
9554
      hardcode_minus_L=yes
9555
      hardcode_shlibpath_var=no
9556
      ;;
9557
 
9558
    sysv4)
9559
      case $host_vendor in
9560
        sni)
9561
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9562
          hardcode_direct=yes # is this really true???
9563
        ;;
9564
        siemens)
9565
          ## LD is ld it makes a PLAMLIB
9566
          ## CC just makes a GrossModule.
9567
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9568
          reload_cmds='$CC -r -o $output$reload_objs'
9569
          hardcode_direct=no
9570
        ;;
9571
        motorola)
9572
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9573
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9574
        ;;
9575
      esac
9576
      runpath_var='LD_RUN_PATH'
9577
      hardcode_shlibpath_var=no
9578
      ;;
9579
 
9580
    sysv4.3*)
9581
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9582
      hardcode_shlibpath_var=no
9583
      export_dynamic_flag_spec='-Bexport'
9584
      ;;
9585
 
9586
    sysv4*MP*)
9587
      if test -d /usr/nec; then
9588
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9589
        hardcode_shlibpath_var=no
9590
        runpath_var=LD_RUN_PATH
9591
        hardcode_runpath_var=yes
9592
        ld_shlibs=yes
9593
      fi
9594
      ;;
9595
 
9596
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9597
      no_undefined_flag='${wl}-z,text'
9598
      archive_cmds_need_lc=no
9599
      hardcode_shlibpath_var=no
9600
      runpath_var='LD_RUN_PATH'
9601
 
9602
      if test "$GCC" = yes; then
9603
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9604
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9605
      else
9606
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9607
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9608
      fi
9609
      ;;
9610
 
9611
    sysv5* | sco3.2v5* | sco5v6*)
9612
      # Note: We can NOT use -z defs as we might desire, because we do not
9613
      # link with -lc, and that would cause any symbols used from libc to
9614
      # always be unresolved, which means just about no library would
9615
      # ever link correctly.  If we're not using GNU ld we use -z text
9616
      # though, which does catch some bad symbols but isn't as heavy-handed
9617
      # as -z defs.
9618
      no_undefined_flag='${wl}-z,text'
9619
      allow_undefined_flag='${wl}-z,nodefs'
9620
      archive_cmds_need_lc=no
9621
      hardcode_shlibpath_var=no
9622
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9623
      hardcode_libdir_separator=':'
9624
      link_all_deplibs=yes
9625
      export_dynamic_flag_spec='${wl}-Bexport'
9626
      runpath_var='LD_RUN_PATH'
9627
 
9628
      if test "$GCC" = yes; then
9629
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9630
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9631
      else
9632
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9633
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9634
      fi
9635
      ;;
9636
 
9637
    uts4*)
9638
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9639
      hardcode_libdir_flag_spec='-L$libdir'
9640
      hardcode_shlibpath_var=no
9641
      ;;
9642
 
9643
    *)
9644
      ld_shlibs=no
9645
      ;;
9646
    esac
9647
 
9648
    if test x$host_vendor = xsni; then
9649
      case $host in
9650
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9651
        export_dynamic_flag_spec='${wl}-Blargedynsym'
9652
        ;;
9653
      esac
9654
    fi
9655
  fi
9656
 
9657
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9658
$as_echo "$ld_shlibs" >&6; }
9659
test "$ld_shlibs" = no && can_build_shared=no
9660
 
9661
with_gnu_ld=$with_gnu_ld
9662
 
9663
 
9664
 
9665
 
9666
 
9667
 
9668
 
9669
 
9670
 
9671
 
9672
 
9673
 
9674
 
9675
 
9676
 
9677
#
9678
# Do we need to explicitly link libc?
9679
#
9680
case "x$archive_cmds_need_lc" in
9681
x|xyes)
9682
  # Assume -lc should be added
9683
  archive_cmds_need_lc=yes
9684
 
9685
  if test "$enable_shared" = yes && test "$GCC" = yes; then
9686
    case $archive_cmds in
9687
    *'~'*)
9688
      # FIXME: we may have to deal with multi-command sequences.
9689
      ;;
9690
    '$CC '*)
9691
      # Test whether the compiler implicitly links with -lc since on some
9692
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9693
      # to ld, don't add -lc before -lgcc.
9694
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9695
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9696
if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9697
  $as_echo_n "(cached) " >&6
9698
else
9699
  $RM conftest*
9700
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9701
 
9702
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9703
  (eval $ac_compile) 2>&5
9704
  ac_status=$?
9705
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9706
  test $ac_status = 0; } 2>conftest.err; then
9707
          soname=conftest
9708
          lib=conftest
9709
          libobjs=conftest.$ac_objext
9710
          deplibs=
9711
          wl=$lt_prog_compiler_wl
9712
          pic_flag=$lt_prog_compiler_pic
9713
          compiler_flags=-v
9714
          linker_flags=-v
9715
          verstring=
9716
          output_objdir=.
9717
          libname=conftest
9718
          lt_save_allow_undefined_flag=$allow_undefined_flag
9719
          allow_undefined_flag=
9720
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9721
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9722
  ac_status=$?
9723
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9724
  test $ac_status = 0; }
9725
          then
9726
            lt_cv_archive_cmds_need_lc=no
9727
          else
9728
            lt_cv_archive_cmds_need_lc=yes
9729
          fi
9730
          allow_undefined_flag=$lt_save_allow_undefined_flag
9731
        else
9732
          cat conftest.err 1>&5
9733
        fi
9734
        $RM conftest*
9735
 
9736
fi
9737
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9738
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9739
      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9740
      ;;
9741
    esac
9742
  fi
9743
  ;;
9744
esac
9745
 
9746
 
9747
 
9748
 
9749
 
9750
 
9751
 
9752
 
9753
 
9754
 
9755
 
9756
 
9757
 
9758
 
9759
 
9760
 
9761
 
9762
 
9763
 
9764
 
9765
 
9766
 
9767
 
9768
 
9769
 
9770
 
9771
 
9772
 
9773
 
9774
 
9775
 
9776
 
9777
 
9778
 
9779
 
9780
 
9781
 
9782
 
9783
 
9784
 
9785
 
9786
 
9787
 
9788
 
9789
 
9790
 
9791
 
9792
 
9793
 
9794
 
9795
 
9796
 
9797
 
9798
 
9799
 
9800
 
9801
 
9802
 
9803
 
9804
 
9805
 
9806
 
9807
 
9808
 
9809
 
9810
 
9811
 
9812
 
9813
 
9814
 
9815
 
9816
 
9817
 
9818
 
9819
 
9820
 
9821
 
9822
 
9823
 
9824
 
9825
 
9826
 
9827
 
9828
 
9829
 
9830
 
9831
 
9832
 
9833
 
9834
 
9835
 
9836
 
9837
 
9838
 
9839
 
9840
 
9841
 
9842
 
9843
 
9844
 
9845
 
9846
 
9847
 
9848
 
9849
 
9850
 
9851
 
9852
 
9853
 
9854
 
9855
 
9856
 
9857
 
9858
 
9859
 
9860
 
9861
 
9862
 
9863
 
9864
 
9865
 
9866
 
9867
 
9868
 
9869
 
9870
 
9871
 
9872
 
9873
 
9874
 
9875
 
9876
 
9877
 
9878
 
9879
 
9880
 
9881
 
9882
 
9883
 
9884
 
9885
 
9886
 
9887
 
9888
 
9889
 
9890
 
9891
 
9892
 
9893
 
9894
 
9895
 
9896
 
9897
 
9898
 
9899
 
9900
 
9901
 
9902
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9903
$as_echo_n "checking dynamic linker characteristics... " >&6; }
9904
 
9905
if test "$GCC" = yes; then
9906
  case $host_os in
9907
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9908
    *) lt_awk_arg="/^libraries:/" ;;
9909
  esac
9910
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9911
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9912
    # if the path contains ";" then we assume it to be the separator
9913
    # otherwise default to the standard path separator (i.e. ":") - it is
9914
    # assumed that no part of a normal pathname contains ";" but that should
9915
    # okay in the real world where ";" in dirpaths is itself problematic.
9916
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9917
  else
9918
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9919
  fi
9920
  # Ok, now we have the path, separated by spaces, we can step through it
9921
  # and add multilib dir if necessary.
9922
  lt_tmp_lt_search_path_spec=
9923
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9924
  for lt_sys_path in $lt_search_path_spec; do
9925
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9926
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9927
    else
9928
      test -d "$lt_sys_path" && \
9929
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9930
    fi
9931
  done
9932
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9933
BEGIN {RS=" "; FS="/|\n";} {
9934
  lt_foo="";
9935
  lt_count=0;
9936
  for (lt_i = NF; lt_i > 0; lt_i--) {
9937
    if ($lt_i != "" && $lt_i != ".") {
9938
      if ($lt_i == "..") {
9939
        lt_count++;
9940
      } else {
9941
        if (lt_count == 0) {
9942
          lt_foo="/" $lt_i lt_foo;
9943
        } else {
9944
          lt_count--;
9945
        }
9946
      }
9947
    }
9948
  }
9949
  if (lt_foo != "") { lt_freq[lt_foo]++; }
9950
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9951
}'`
9952
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9953
else
9954
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9955
fi
9956
library_names_spec=
9957
libname_spec='lib$name'
9958
soname_spec=
9959
shrext_cmds=".so"
9960
postinstall_cmds=
9961
postuninstall_cmds=
9962
finish_cmds=
9963
finish_eval=
9964
shlibpath_var=
9965
shlibpath_overrides_runpath=unknown
9966
version_type=none
9967
dynamic_linker="$host_os ld.so"
9968
sys_lib_dlsearch_path_spec="/lib /usr/lib"
9969
need_lib_prefix=unknown
9970
hardcode_into_libs=no
9971
 
9972
# when you set need_version to no, make sure it does not cause -set_version
9973
# flags to be left without arguments
9974
need_version=unknown
9975
 
9976
case $host_os in
9977
aix3*)
9978
  version_type=linux
9979
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9980
  shlibpath_var=LIBPATH
9981
 
9982
  # AIX 3 has no versioning support, so we append a major version to the name.
9983
  soname_spec='${libname}${release}${shared_ext}$major'
9984
  ;;
9985
 
9986
aix[4-9]*)
9987
  version_type=linux
9988
  need_lib_prefix=no
9989
  need_version=no
9990
  hardcode_into_libs=yes
9991
  if test "$host_cpu" = ia64; then
9992
    # AIX 5 supports IA64
9993
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9994
    shlibpath_var=LD_LIBRARY_PATH
9995
  else
9996
    # With GCC up to 2.95.x, collect2 would create an import file
9997
    # for dependence libraries.  The import file would start with
9998
    # the line `#! .'.  This would cause the generated library to
9999
    # depend on `.', always an invalid library.  This was fixed in
10000
    # development snapshots of GCC prior to 3.0.
10001
    case $host_os in
10002
      aix4 | aix4.[01] | aix4.[01].*)
10003
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10004
           echo ' yes '
10005
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10006
        :
10007
      else
10008
        can_build_shared=no
10009
      fi
10010
      ;;
10011
    esac
10012
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10013
    # soname into executable. Probably we can add versioning support to
10014
    # collect2, so additional links can be useful in future.
10015
    if test "$aix_use_runtimelinking" = yes; then
10016
      # If using run time linking (on AIX 4.2 or later) use lib.so
10017
      # instead of lib.a to let people know that these are not
10018
      # typical AIX shared libraries.
10019
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10020
    else
10021
      # We preserve .a as extension for shared libraries through AIX4.2
10022
      # and later when we are not doing run time linking.
10023
      library_names_spec='${libname}${release}.a $libname.a'
10024
      soname_spec='${libname}${release}${shared_ext}$major'
10025
    fi
10026
    shlibpath_var=LIBPATH
10027
  fi
10028
  ;;
10029
 
10030
amigaos*)
10031
  case $host_cpu in
10032
  powerpc)
10033
    # Since July 2007 AmigaOS4 officially supports .so libraries.
10034
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10035
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10036
    ;;
10037
  m68k)
10038
    library_names_spec='$libname.ixlibrary $libname.a'
10039
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10040
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10041
    ;;
10042
  esac
10043
  ;;
10044
 
10045
beos*)
10046
  library_names_spec='${libname}${shared_ext}'
10047
  dynamic_linker="$host_os ld.so"
10048
  shlibpath_var=LIBRARY_PATH
10049
  ;;
10050
 
10051
bsdi[45]*)
10052
  version_type=linux
10053
  need_version=no
10054
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10055
  soname_spec='${libname}${release}${shared_ext}$major'
10056
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10057
  shlibpath_var=LD_LIBRARY_PATH
10058
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10059
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10060
  # the default ld.so.conf also contains /usr/contrib/lib and
10061
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10062
  # libtool to hard-code these into programs
10063
  ;;
10064
 
10065
cygwin* | mingw* | pw32* | cegcc*)
10066
  version_type=windows
10067
  shrext_cmds=".dll"
10068
  need_version=no
10069
  need_lib_prefix=no
10070
 
10071
  case $GCC,$host_os in
10072
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10073
    library_names_spec='$libname.dll.a'
10074
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10075
    postinstall_cmds='base_file=`basename \${file}`~
10076
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10077
      dldir=$destdir/`dirname \$dlpath`~
10078
      test -d \$dldir || mkdir -p \$dldir~
10079
      $install_prog $dir/$dlname \$dldir/$dlname~
10080
      chmod a+x \$dldir/$dlname~
10081
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10082
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10083
      fi'
10084
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10085
      dlpath=$dir/\$dldll~
10086
       $RM \$dlpath'
10087
    shlibpath_overrides_runpath=yes
10088
 
10089
    case $host_os in
10090
    cygwin*)
10091
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10092
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10093
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10094
      ;;
10095
    mingw* | cegcc*)
10096
      # MinGW DLLs use traditional 'lib' prefix
10097
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10098
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10099
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10100
        # It is most probably a Windows format PATH printed by
10101
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10102
        # path with ; separators, and with drive letters. We can handle the
10103
        # drive letters (cygwin fileutils understands them), so leave them,
10104
        # especially as we might pass files found there to a mingw objdump,
10105
        # which wouldn't understand a cygwinified path. Ahh.
10106
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10107
      else
10108
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10109
      fi
10110
      ;;
10111
    pw32*)
10112
      # pw32 DLLs use 'pw' prefix rather than 'lib'
10113
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10114
      ;;
10115
    esac
10116
    ;;
10117
 
10118
  *)
10119
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10120
    ;;
10121
  esac
10122
  dynamic_linker='Win32 ld.exe'
10123
  # FIXME: first we should search . and the directory the executable is in
10124
  shlibpath_var=PATH
10125
  ;;
10126
 
10127
darwin* | rhapsody*)
10128
  dynamic_linker="$host_os dyld"
10129
  version_type=darwin
10130
  need_lib_prefix=no
10131
  need_version=no
10132
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10133
  soname_spec='${libname}${release}${major}$shared_ext'
10134
  shlibpath_overrides_runpath=yes
10135
  shlibpath_var=DYLD_LIBRARY_PATH
10136
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10137
 
10138
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10139
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10140
  ;;
10141
 
10142
dgux*)
10143
  version_type=linux
10144
  need_lib_prefix=no
10145
  need_version=no
10146
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10147
  soname_spec='${libname}${release}${shared_ext}$major'
10148
  shlibpath_var=LD_LIBRARY_PATH
10149
  ;;
10150
 
10151
freebsd1*)
10152
  dynamic_linker=no
10153
  ;;
10154
 
10155
freebsd* | dragonfly*)
10156
  # DragonFly does not have aout.  When/if they implement a new
10157
  # versioning mechanism, adjust this.
10158
  if test -x /usr/bin/objformat; then
10159
    objformat=`/usr/bin/objformat`
10160
  else
10161
    case $host_os in
10162
    freebsd[123]*) objformat=aout ;;
10163
    *) objformat=elf ;;
10164
    esac
10165
  fi
10166
  version_type=freebsd-$objformat
10167
  case $version_type in
10168
    freebsd-elf*)
10169
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10170
      need_version=no
10171
      need_lib_prefix=no
10172
      ;;
10173
    freebsd-*)
10174
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10175
      need_version=yes
10176
      ;;
10177
  esac
10178
  shlibpath_var=LD_LIBRARY_PATH
10179
  case $host_os in
10180
  freebsd2*)
10181
    shlibpath_overrides_runpath=yes
10182
    ;;
10183
  freebsd3.[01]* | freebsdelf3.[01]*)
10184
    shlibpath_overrides_runpath=yes
10185
    hardcode_into_libs=yes
10186
    ;;
10187
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10188
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10189
    shlibpath_overrides_runpath=no
10190
    hardcode_into_libs=yes
10191
    ;;
10192
  *) # from 4.6 on, and DragonFly
10193
    shlibpath_overrides_runpath=yes
10194
    hardcode_into_libs=yes
10195
    ;;
10196
  esac
10197
  ;;
10198
 
10199
gnu*)
10200
  version_type=linux
10201
  need_lib_prefix=no
10202
  need_version=no
10203
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10204
  soname_spec='${libname}${release}${shared_ext}$major'
10205
  shlibpath_var=LD_LIBRARY_PATH
10206
  hardcode_into_libs=yes
10207
  ;;
10208
 
10209
hpux9* | hpux10* | hpux11*)
10210
  # Give a soname corresponding to the major version so that dld.sl refuses to
10211
  # link against other versions.
10212
  version_type=sunos
10213
  need_lib_prefix=no
10214
  need_version=no
10215
  case $host_cpu in
10216
  ia64*)
10217
    shrext_cmds='.so'
10218
    hardcode_into_libs=yes
10219
    dynamic_linker="$host_os dld.so"
10220
    shlibpath_var=LD_LIBRARY_PATH
10221
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10222
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10223
    soname_spec='${libname}${release}${shared_ext}$major'
10224
    if test "X$HPUX_IA64_MODE" = X32; then
10225
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10226
    else
10227
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10228
    fi
10229
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10230
    ;;
10231
  hppa*64*)
10232
    shrext_cmds='.sl'
10233
    hardcode_into_libs=yes
10234
    dynamic_linker="$host_os dld.sl"
10235
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10236
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10237
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10238
    soname_spec='${libname}${release}${shared_ext}$major'
10239
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10240
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10241
    ;;
10242
  *)
10243
    shrext_cmds='.sl'
10244
    dynamic_linker="$host_os dld.sl"
10245
    shlibpath_var=SHLIB_PATH
10246
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10247
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10248
    soname_spec='${libname}${release}${shared_ext}$major'
10249
    ;;
10250
  esac
10251
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10252
  postinstall_cmds='chmod 555 $lib'
10253
  ;;
10254
 
10255
interix[3-9]*)
10256
  version_type=linux
10257
  need_lib_prefix=no
10258
  need_version=no
10259
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10260
  soname_spec='${libname}${release}${shared_ext}$major'
10261
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10262
  shlibpath_var=LD_LIBRARY_PATH
10263
  shlibpath_overrides_runpath=no
10264
  hardcode_into_libs=yes
10265
  ;;
10266
 
10267
irix5* | irix6* | nonstopux*)
10268
  case $host_os in
10269
    nonstopux*) version_type=nonstopux ;;
10270
    *)
10271
        if test "$lt_cv_prog_gnu_ld" = yes; then
10272
                version_type=linux
10273
        else
10274
                version_type=irix
10275
        fi ;;
10276
  esac
10277
  need_lib_prefix=no
10278
  need_version=no
10279
  soname_spec='${libname}${release}${shared_ext}$major'
10280
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10281
  case $host_os in
10282
  irix5* | nonstopux*)
10283
    libsuff= shlibsuff=
10284
    ;;
10285
  *)
10286
    case $LD in # libtool.m4 will add one of these switches to LD
10287
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10288
      libsuff= shlibsuff= libmagic=32-bit;;
10289
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10290
      libsuff=32 shlibsuff=N32 libmagic=N32;;
10291
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10292
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10293
    *) libsuff= shlibsuff= libmagic=never-match;;
10294
    esac
10295
    ;;
10296
  esac
10297
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10298
  shlibpath_overrides_runpath=no
10299
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10300
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10301
  hardcode_into_libs=yes
10302
  ;;
10303
 
10304
# No shared lib support for Linux oldld, aout, or coff.
10305
linux*oldld* | linux*aout* | linux*coff*)
10306
  dynamic_linker=no
10307
  ;;
10308
 
10309
# This must be Linux ELF.
10310
linux* | k*bsd*-gnu | kopensolaris*-gnu)
10311
  version_type=linux
10312
  need_lib_prefix=no
10313
  need_version=no
10314
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10315
  soname_spec='${libname}${release}${shared_ext}$major'
10316
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10317
  shlibpath_var=LD_LIBRARY_PATH
10318
  shlibpath_overrides_runpath=no
10319
 
10320
  # Some binutils ld are patched to set DT_RUNPATH
10321
  if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10322
  $as_echo_n "(cached) " >&6
10323
else
10324
  lt_cv_shlibpath_overrides_runpath=no
10325
    save_LDFLAGS=$LDFLAGS
10326
    save_libdir=$libdir
10327
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10328
         LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10329
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10330
/* end confdefs.h.  */
10331
 
10332
int
10333
main ()
10334
{
10335
 
10336
  ;
10337
  return 0;
10338
}
10339
_ACEOF
10340
if ac_fn_c_try_link "$LINENO"; then :
10341
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10342
  lt_cv_shlibpath_overrides_runpath=yes
10343
fi
10344
fi
10345
rm -f core conftest.err conftest.$ac_objext \
10346
    conftest$ac_exeext conftest.$ac_ext
10347
    LDFLAGS=$save_LDFLAGS
10348
    libdir=$save_libdir
10349
 
10350
fi
10351
 
10352
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10353
 
10354
  # This implies no fast_install, which is unacceptable.
10355
  # Some rework will be needed to allow for fast_install
10356
  # before this can be enabled.
10357
  hardcode_into_libs=yes
10358
 
10359
  # Append ld.so.conf contents to the search path
10360
  if test -f /etc/ld.so.conf; then
10361
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10362
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10363
  fi
10364
 
10365
  # We used to test for /lib/ld.so.1 and disable shared libraries on
10366
  # powerpc, because MkLinux only supported shared libraries with the
10367
  # GNU dynamic linker.  Since this was broken with cross compilers,
10368
  # most powerpc-linux boxes support dynamic linking these days and
10369
  # people can always --disable-shared, the test was removed, and we
10370
  # assume the GNU/Linux dynamic linker is in use.
10371
  dynamic_linker='GNU/Linux ld.so'
10372
  ;;
10373
 
10374
netbsd*)
10375
  version_type=sunos
10376
  need_lib_prefix=no
10377
  need_version=no
10378
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10379
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10380
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10381
    dynamic_linker='NetBSD (a.out) ld.so'
10382
  else
10383
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10384
    soname_spec='${libname}${release}${shared_ext}$major'
10385
    dynamic_linker='NetBSD ld.elf_so'
10386
  fi
10387
  shlibpath_var=LD_LIBRARY_PATH
10388
  shlibpath_overrides_runpath=yes
10389
  hardcode_into_libs=yes
10390
  ;;
10391
 
10392
newsos6)
10393
  version_type=linux
10394
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10395
  shlibpath_var=LD_LIBRARY_PATH
10396
  shlibpath_overrides_runpath=yes
10397
  ;;
10398
 
10399
*nto* | *qnx*)
10400
  version_type=qnx
10401
  need_lib_prefix=no
10402
  need_version=no
10403
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10404
  soname_spec='${libname}${release}${shared_ext}$major'
10405
  shlibpath_var=LD_LIBRARY_PATH
10406
  shlibpath_overrides_runpath=no
10407
  hardcode_into_libs=yes
10408
  dynamic_linker='ldqnx.so'
10409
  ;;
10410
 
10411
openbsd*)
10412
  version_type=sunos
10413
  sys_lib_dlsearch_path_spec="/usr/lib"
10414
  need_lib_prefix=no
10415
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10416
  case $host_os in
10417
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10418
    *)                          need_version=no  ;;
10419
  esac
10420
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10421
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10422
  shlibpath_var=LD_LIBRARY_PATH
10423
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10424
    case $host_os in
10425
      openbsd2.[89] | openbsd2.[89].*)
10426
        shlibpath_overrides_runpath=no
10427
        ;;
10428
      *)
10429
        shlibpath_overrides_runpath=yes
10430
        ;;
10431
      esac
10432
  else
10433
    shlibpath_overrides_runpath=yes
10434
  fi
10435
  ;;
10436
 
10437
os2*)
10438
  libname_spec='$name'
10439
  shrext_cmds=".dll"
10440
  need_lib_prefix=no
10441
  library_names_spec='$libname${shared_ext} $libname.a'
10442
  dynamic_linker='OS/2 ld.exe'
10443
  shlibpath_var=LIBPATH
10444
  ;;
10445
 
10446
osf3* | osf4* | osf5*)
10447
  version_type=osf
10448
  need_lib_prefix=no
10449
  need_version=no
10450
  soname_spec='${libname}${release}${shared_ext}$major'
10451
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10452
  shlibpath_var=LD_LIBRARY_PATH
10453
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10454
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10455
  ;;
10456
 
10457
rdos*)
10458
  dynamic_linker=no
10459
  ;;
10460
 
10461
solaris*)
10462
  version_type=linux
10463
  need_lib_prefix=no
10464
  need_version=no
10465
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10466
  soname_spec='${libname}${release}${shared_ext}$major'
10467
  shlibpath_var=LD_LIBRARY_PATH
10468
  shlibpath_overrides_runpath=yes
10469
  hardcode_into_libs=yes
10470
  # ldd complains unless libraries are executable
10471
  postinstall_cmds='chmod +x $lib'
10472
  ;;
10473
 
10474
sunos4*)
10475
  version_type=sunos
10476
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10477
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10478
  shlibpath_var=LD_LIBRARY_PATH
10479
  shlibpath_overrides_runpath=yes
10480
  if test "$with_gnu_ld" = yes; then
10481
    need_lib_prefix=no
10482
  fi
10483
  need_version=yes
10484
  ;;
10485
 
10486
sysv4 | sysv4.3*)
10487
  version_type=linux
10488
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10489
  soname_spec='${libname}${release}${shared_ext}$major'
10490
  shlibpath_var=LD_LIBRARY_PATH
10491
  case $host_vendor in
10492
    sni)
10493
      shlibpath_overrides_runpath=no
10494
      need_lib_prefix=no
10495
      runpath_var=LD_RUN_PATH
10496
      ;;
10497
    siemens)
10498
      need_lib_prefix=no
10499
      ;;
10500
    motorola)
10501
      need_lib_prefix=no
10502
      need_version=no
10503
      shlibpath_overrides_runpath=no
10504
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10505
      ;;
10506
  esac
10507
  ;;
10508
 
10509
sysv4*MP*)
10510
  if test -d /usr/nec ;then
10511
    version_type=linux
10512
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10513
    soname_spec='$libname${shared_ext}.$major'
10514
    shlibpath_var=LD_LIBRARY_PATH
10515
  fi
10516
  ;;
10517
 
10518
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10519
  version_type=freebsd-elf
10520
  need_lib_prefix=no
10521
  need_version=no
10522
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10523
  soname_spec='${libname}${release}${shared_ext}$major'
10524
  shlibpath_var=LD_LIBRARY_PATH
10525
  shlibpath_overrides_runpath=yes
10526
  hardcode_into_libs=yes
10527
  if test "$with_gnu_ld" = yes; then
10528
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10529
  else
10530
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10531
    case $host_os in
10532
      sco3.2v5*)
10533
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10534
        ;;
10535
    esac
10536
  fi
10537
  sys_lib_dlsearch_path_spec='/usr/lib'
10538
  ;;
10539
 
10540
tpf*)
10541
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10542
  version_type=linux
10543
  need_lib_prefix=no
10544
  need_version=no
10545
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10546
  shlibpath_var=LD_LIBRARY_PATH
10547
  shlibpath_overrides_runpath=no
10548
  hardcode_into_libs=yes
10549
  ;;
10550
 
10551
uts4*)
10552
  version_type=linux
10553
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10554
  soname_spec='${libname}${release}${shared_ext}$major'
10555
  shlibpath_var=LD_LIBRARY_PATH
10556
  ;;
10557
 
10558
*)
10559
  dynamic_linker=no
10560
  ;;
10561
esac
10562
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10563
$as_echo "$dynamic_linker" >&6; }
10564
test "$dynamic_linker" = no && can_build_shared=no
10565
 
10566
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10567
if test "$GCC" = yes; then
10568
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10569
fi
10570
 
10571
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10572
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10573
fi
10574
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10575
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10576
fi
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
 
10616
 
10617
 
10618
 
10619
 
10620
 
10621
 
10622
 
10623
 
10624
 
10625
 
10626
 
10627
 
10628
 
10629
 
10630
 
10631
 
10632
 
10633
 
10634
 
10635
 
10636
 
10637
 
10638
 
10639
 
10640
 
10641
 
10642
 
10643
 
10644
 
10645
 
10646
 
10647
 
10648
 
10649
 
10650
 
10651
 
10652
 
10653
 
10654
 
10655
 
10656
 
10657
 
10658
 
10659
 
10660
 
10661
 
10662
 
10663
 
10664
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10665
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10666
hardcode_action=
10667
if test -n "$hardcode_libdir_flag_spec" ||
10668
   test -n "$runpath_var" ||
10669
   test "X$hardcode_automatic" = "Xyes" ; then
10670
 
10671
  # We can hardcode non-existent directories.
10672
  if test "$hardcode_direct" != no &&
10673
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10674
     # have to relink, otherwise we might link with an installed library
10675
     # when we should be linking with a yet-to-be-installed one
10676
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10677
     test "$hardcode_minus_L" != no; then
10678
    # Linking always hardcodes the temporary library directory.
10679
    hardcode_action=relink
10680
  else
10681
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10682
    hardcode_action=immediate
10683
  fi
10684
else
10685
  # We cannot hardcode anything, or else we can only hardcode existing
10686
  # directories.
10687
  hardcode_action=unsupported
10688
fi
10689
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10690
$as_echo "$hardcode_action" >&6; }
10691
 
10692
if test "$hardcode_action" = relink ||
10693
   test "$inherit_rpath" = yes; then
10694
  # Fast installation is not supported
10695
  enable_fast_install=no
10696
elif test "$shlibpath_overrides_runpath" = yes ||
10697
     test "$enable_shared" = no; then
10698
  # Fast installation is not necessary
10699
  enable_fast_install=needless
10700
fi
10701
 
10702
 
10703
 
10704
 
10705
 
10706
 
10707
  if test "x$enable_dlopen" != xyes; then
10708
  enable_dlopen=unknown
10709
  enable_dlopen_self=unknown
10710
  enable_dlopen_self_static=unknown
10711
else
10712
  lt_cv_dlopen=no
10713
  lt_cv_dlopen_libs=
10714
 
10715
  case $host_os in
10716
  beos*)
10717
    lt_cv_dlopen="load_add_on"
10718
    lt_cv_dlopen_libs=
10719
    lt_cv_dlopen_self=yes
10720
    ;;
10721
 
10722
  mingw* | pw32* | cegcc*)
10723
    lt_cv_dlopen="LoadLibrary"
10724
    lt_cv_dlopen_libs=
10725
    ;;
10726
 
10727
  cygwin*)
10728
    lt_cv_dlopen="dlopen"
10729
    lt_cv_dlopen_libs=
10730
    ;;
10731
 
10732
  darwin*)
10733
  # if libdl is installed we need to link against it
10734
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10735
$as_echo_n "checking for dlopen in -ldl... " >&6; }
10736
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10737
  $as_echo_n "(cached) " >&6
10738
else
10739
  ac_check_lib_save_LIBS=$LIBS
10740
LIBS="-ldl  $LIBS"
10741
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10742
/* end confdefs.h.  */
10743
 
10744
/* Override any GCC internal prototype to avoid an error.
10745
   Use char because int might match the return type of a GCC
10746
   builtin and then its argument prototype would still apply.  */
10747
#ifdef __cplusplus
10748
extern "C"
10749
#endif
10750
char dlopen ();
10751
int
10752
main ()
10753
{
10754
return dlopen ();
10755
  ;
10756
  return 0;
10757
}
10758
_ACEOF
10759
if ac_fn_c_try_link "$LINENO"; then :
10760
  ac_cv_lib_dl_dlopen=yes
10761
else
10762
  ac_cv_lib_dl_dlopen=no
10763
fi
10764
rm -f core conftest.err conftest.$ac_objext \
10765
    conftest$ac_exeext conftest.$ac_ext
10766
LIBS=$ac_check_lib_save_LIBS
10767
fi
10768
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10769
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10770
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10771
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10772
else
10773
 
10774
    lt_cv_dlopen="dyld"
10775
    lt_cv_dlopen_libs=
10776
    lt_cv_dlopen_self=yes
10777
 
10778
fi
10779
 
10780
    ;;
10781
 
10782
  *)
10783
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10784
if test "x$ac_cv_func_shl_load" = x""yes; then :
10785
  lt_cv_dlopen="shl_load"
10786
else
10787
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10788
$as_echo_n "checking for shl_load in -ldld... " >&6; }
10789
if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10790
  $as_echo_n "(cached) " >&6
10791
else
10792
  ac_check_lib_save_LIBS=$LIBS
10793
LIBS="-ldld  $LIBS"
10794
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10795
/* end confdefs.h.  */
10796
 
10797
/* Override any GCC internal prototype to avoid an error.
10798
   Use char because int might match the return type of a GCC
10799
   builtin and then its argument prototype would still apply.  */
10800
#ifdef __cplusplus
10801
extern "C"
10802
#endif
10803
char shl_load ();
10804
int
10805
main ()
10806
{
10807
return shl_load ();
10808
  ;
10809
  return 0;
10810
}
10811
_ACEOF
10812
if ac_fn_c_try_link "$LINENO"; then :
10813
  ac_cv_lib_dld_shl_load=yes
10814
else
10815
  ac_cv_lib_dld_shl_load=no
10816
fi
10817
rm -f core conftest.err conftest.$ac_objext \
10818
    conftest$ac_exeext conftest.$ac_ext
10819
LIBS=$ac_check_lib_save_LIBS
10820
fi
10821
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10822
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10823
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10824
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10825
else
10826
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10827
if test "x$ac_cv_func_dlopen" = x""yes; then :
10828
  lt_cv_dlopen="dlopen"
10829
else
10830
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10831
$as_echo_n "checking for dlopen in -ldl... " >&6; }
10832
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10833
  $as_echo_n "(cached) " >&6
10834
else
10835
  ac_check_lib_save_LIBS=$LIBS
10836
LIBS="-ldl  $LIBS"
10837
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10838
/* end confdefs.h.  */
10839
 
10840
/* Override any GCC internal prototype to avoid an error.
10841
   Use char because int might match the return type of a GCC
10842
   builtin and then its argument prototype would still apply.  */
10843
#ifdef __cplusplus
10844
extern "C"
10845
#endif
10846
char dlopen ();
10847
int
10848
main ()
10849
{
10850
return dlopen ();
10851
  ;
10852
  return 0;
10853
}
10854
_ACEOF
10855
if ac_fn_c_try_link "$LINENO"; then :
10856
  ac_cv_lib_dl_dlopen=yes
10857
else
10858
  ac_cv_lib_dl_dlopen=no
10859
fi
10860
rm -f core conftest.err conftest.$ac_objext \
10861
    conftest$ac_exeext conftest.$ac_ext
10862
LIBS=$ac_check_lib_save_LIBS
10863
fi
10864
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10865
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10866
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10867
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10868
else
10869
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10870
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10871
if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10872
  $as_echo_n "(cached) " >&6
10873
else
10874
  ac_check_lib_save_LIBS=$LIBS
10875
LIBS="-lsvld  $LIBS"
10876
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10877
/* end confdefs.h.  */
10878
 
10879
/* Override any GCC internal prototype to avoid an error.
10880
   Use char because int might match the return type of a GCC
10881
   builtin and then its argument prototype would still apply.  */
10882
#ifdef __cplusplus
10883
extern "C"
10884
#endif
10885
char dlopen ();
10886
int
10887
main ()
10888
{
10889
return dlopen ();
10890
  ;
10891
  return 0;
10892
}
10893
_ACEOF
10894
if ac_fn_c_try_link "$LINENO"; then :
10895
  ac_cv_lib_svld_dlopen=yes
10896
else
10897
  ac_cv_lib_svld_dlopen=no
10898
fi
10899
rm -f core conftest.err conftest.$ac_objext \
10900
    conftest$ac_exeext conftest.$ac_ext
10901
LIBS=$ac_check_lib_save_LIBS
10902
fi
10903
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10904
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10905
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10906
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10907
else
10908
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10909
$as_echo_n "checking for dld_link in -ldld... " >&6; }
10910
if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10911
  $as_echo_n "(cached) " >&6
10912
else
10913
  ac_check_lib_save_LIBS=$LIBS
10914
LIBS="-ldld  $LIBS"
10915
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10916
/* end confdefs.h.  */
10917
 
10918
/* Override any GCC internal prototype to avoid an error.
10919
   Use char because int might match the return type of a GCC
10920
   builtin and then its argument prototype would still apply.  */
10921
#ifdef __cplusplus
10922
extern "C"
10923
#endif
10924
char dld_link ();
10925
int
10926
main ()
10927
{
10928
return dld_link ();
10929
  ;
10930
  return 0;
10931
}
10932
_ACEOF
10933
if ac_fn_c_try_link "$LINENO"; then :
10934
  ac_cv_lib_dld_dld_link=yes
10935
else
10936
  ac_cv_lib_dld_dld_link=no
10937
fi
10938
rm -f core conftest.err conftest.$ac_objext \
10939
    conftest$ac_exeext conftest.$ac_ext
10940
LIBS=$ac_check_lib_save_LIBS
10941
fi
10942
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10943
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10944
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10945
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10946
fi
10947
 
10948
 
10949
fi
10950
 
10951
 
10952
fi
10953
 
10954
 
10955
fi
10956
 
10957
 
10958
fi
10959
 
10960
 
10961
fi
10962
 
10963
    ;;
10964
  esac
10965
 
10966
  if test "x$lt_cv_dlopen" != xno; then
10967
    enable_dlopen=yes
10968
  else
10969
    enable_dlopen=no
10970
  fi
10971
 
10972
  case $lt_cv_dlopen in
10973
  dlopen)
10974
    save_CPPFLAGS="$CPPFLAGS"
10975
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10976
 
10977
    save_LDFLAGS="$LDFLAGS"
10978
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10979
 
10980
    save_LIBS="$LIBS"
10981
    LIBS="$lt_cv_dlopen_libs $LIBS"
10982
 
10983
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10984
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10985
if test "${lt_cv_dlopen_self+set}" = set; then :
10986
  $as_echo_n "(cached) " >&6
10987
else
10988
          if test "$cross_compiling" = yes; then :
10989
  lt_cv_dlopen_self=cross
10990
else
10991
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10992
  lt_status=$lt_dlunknown
10993
  cat > conftest.$ac_ext <<_LT_EOF
10994
#line 10994 "configure"
10995
#include "confdefs.h"
10996
 
10997
#if HAVE_DLFCN_H
10998
#include 
10999
#endif
11000
 
11001
#include 
11002
 
11003
#ifdef RTLD_GLOBAL
11004
#  define LT_DLGLOBAL           RTLD_GLOBAL
11005
#else
11006
#  ifdef DL_GLOBAL
11007
#    define LT_DLGLOBAL         DL_GLOBAL
11008
#  else
11009
#    define LT_DLGLOBAL         0
11010
#  endif
11011
#endif
11012
 
11013
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11014
   find out it does not work in some platform. */
11015
#ifndef LT_DLLAZY_OR_NOW
11016
#  ifdef RTLD_LAZY
11017
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11018
#  else
11019
#    ifdef DL_LAZY
11020
#      define LT_DLLAZY_OR_NOW          DL_LAZY
11021
#    else
11022
#      ifdef RTLD_NOW
11023
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
11024
#      else
11025
#        ifdef DL_NOW
11026
#          define LT_DLLAZY_OR_NOW      DL_NOW
11027
#        else
11028
#          define LT_DLLAZY_OR_NOW      0
11029
#        endif
11030
#      endif
11031
#    endif
11032
#  endif
11033
#endif
11034
 
11035
void fnord() { int i=42;}
11036
int main ()
11037
{
11038
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11039
  int status = $lt_dlunknown;
11040
 
11041
  if (self)
11042
    {
11043
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11044
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11045
      /* dlclose (self); */
11046
    }
11047
  else
11048
    puts (dlerror ());
11049
 
11050
  return status;
11051
}
11052
_LT_EOF
11053
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11054
  (eval $ac_link) 2>&5
11055
  ac_status=$?
11056
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11057
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11058
    (./conftest; exit; ) >&5 2>/dev/null
11059
    lt_status=$?
11060
    case x$lt_status in
11061
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11062
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11063
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11064
    esac
11065
  else :
11066
    # compilation failed
11067
    lt_cv_dlopen_self=no
11068
  fi
11069
fi
11070
rm -fr conftest*
11071
 
11072
 
11073
fi
11074
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11075
$as_echo "$lt_cv_dlopen_self" >&6; }
11076
 
11077
    if test "x$lt_cv_dlopen_self" = xyes; then
11078
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11079
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11080
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11081
if test "${lt_cv_dlopen_self_static+set}" = set; then :
11082
  $as_echo_n "(cached) " >&6
11083
else
11084
          if test "$cross_compiling" = yes; then :
11085
  lt_cv_dlopen_self_static=cross
11086
else
11087
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11088
  lt_status=$lt_dlunknown
11089
  cat > conftest.$ac_ext <<_LT_EOF
11090
#line 11090 "configure"
11091
#include "confdefs.h"
11092
 
11093
#if HAVE_DLFCN_H
11094
#include 
11095
#endif
11096
 
11097
#include 
11098
 
11099
#ifdef RTLD_GLOBAL
11100
#  define LT_DLGLOBAL           RTLD_GLOBAL
11101
#else
11102
#  ifdef DL_GLOBAL
11103
#    define LT_DLGLOBAL         DL_GLOBAL
11104
#  else
11105
#    define LT_DLGLOBAL         0
11106
#  endif
11107
#endif
11108
 
11109
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11110
   find out it does not work in some platform. */
11111
#ifndef LT_DLLAZY_OR_NOW
11112
#  ifdef RTLD_LAZY
11113
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11114
#  else
11115
#    ifdef DL_LAZY
11116
#      define LT_DLLAZY_OR_NOW          DL_LAZY
11117
#    else
11118
#      ifdef RTLD_NOW
11119
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
11120
#      else
11121
#        ifdef DL_NOW
11122
#          define LT_DLLAZY_OR_NOW      DL_NOW
11123
#        else
11124
#          define LT_DLLAZY_OR_NOW      0
11125
#        endif
11126
#      endif
11127
#    endif
11128
#  endif
11129
#endif
11130
 
11131
void fnord() { int i=42;}
11132
int main ()
11133
{
11134
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11135
  int status = $lt_dlunknown;
11136
 
11137
  if (self)
11138
    {
11139
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11140
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11141
      /* dlclose (self); */
11142
    }
11143
  else
11144
    puts (dlerror ());
11145
 
11146
  return status;
11147
}
11148
_LT_EOF
11149
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11150
  (eval $ac_link) 2>&5
11151
  ac_status=$?
11152
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11153
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11154
    (./conftest; exit; ) >&5 2>/dev/null
11155
    lt_status=$?
11156
    case x$lt_status in
11157
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11158
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11159
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11160
    esac
11161
  else :
11162
    # compilation failed
11163
    lt_cv_dlopen_self_static=no
11164
  fi
11165
fi
11166
rm -fr conftest*
11167
 
11168
 
11169
fi
11170
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11171
$as_echo "$lt_cv_dlopen_self_static" >&6; }
11172
    fi
11173
 
11174
    CPPFLAGS="$save_CPPFLAGS"
11175
    LDFLAGS="$save_LDFLAGS"
11176
    LIBS="$save_LIBS"
11177
    ;;
11178
  esac
11179
 
11180
  case $lt_cv_dlopen_self in
11181
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11182
  *) enable_dlopen_self=unknown ;;
11183
  esac
11184
 
11185
  case $lt_cv_dlopen_self_static in
11186
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11187
  *) enable_dlopen_self_static=unknown ;;
11188
  esac
11189
fi
11190
 
11191
 
11192
 
11193
 
11194
 
11195
 
11196
 
11197
 
11198
 
11199
 
11200
 
11201
 
11202
 
11203
 
11204
 
11205
 
11206
 
11207
striplib=
11208
old_striplib=
11209
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11210
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11211
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11212
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11213
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11214
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11215
$as_echo "yes" >&6; }
11216
else
11217
# FIXME - insert some real tests, host_os isn't really good enough
11218
  case $host_os in
11219
  darwin*)
11220
    if test -n "$STRIP" ; then
11221
      striplib="$STRIP -x"
11222
      old_striplib="$STRIP -S"
11223
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11224
$as_echo "yes" >&6; }
11225
    else
11226
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11227
$as_echo "no" >&6; }
11228
    fi
11229
    ;;
11230
  *)
11231
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11232
$as_echo "no" >&6; }
11233
    ;;
11234
  esac
11235
fi
11236
 
11237
 
11238
 
11239
 
11240
 
11241
 
11242
 
11243
 
11244
 
11245
 
11246
 
11247
 
11248
  # Report which library types will actually be built
11249
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11250
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11251
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11252
$as_echo "$can_build_shared" >&6; }
11253
 
11254
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11255
$as_echo_n "checking whether to build shared libraries... " >&6; }
11256
  test "$can_build_shared" = "no" && enable_shared=no
11257
 
11258
  # On AIX, shared libraries and static libraries use the same namespace, and
11259
  # are all built from PIC.
11260
  case $host_os in
11261
  aix3*)
11262
    test "$enable_shared" = yes && enable_static=no
11263
    if test -n "$RANLIB"; then
11264
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11265
      postinstall_cmds='$RANLIB $lib'
11266
    fi
11267
    ;;
11268
 
11269
  aix[4-9]*)
11270
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11271
      test "$enable_shared" = yes && enable_static=no
11272
    fi
11273
    ;;
11274
  esac
11275
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11276
$as_echo "$enable_shared" >&6; }
11277
 
11278
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11279
$as_echo_n "checking whether to build static libraries... " >&6; }
11280
  # Make sure either enable_shared or enable_static is yes.
11281
  test "$enable_shared" = yes || enable_static=yes
11282
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11283
$as_echo "$enable_static" >&6; }
11284
 
11285
 
11286
 
11287
 
11288
fi
11289
ac_ext=c
11290
ac_cpp='$CPP $CPPFLAGS'
11291
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11292
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11293
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11294
 
11295
CC="$lt_save_CC"
11296
 
11297
 
11298
 
11299
 
11300
 
11301
 
11302
 
11303
 
11304
 
11305
 
11306
 
11307
 
11308
 
11309
        ac_config_commands="$ac_config_commands libtool"
11310
 
11311
 
11312
 
11313
 
11314
# Only expand once:
11315
 
11316
 
11317
 
11318
for ac_func in setmode
11319
do :
11320
  ac_fn_c_check_func "$LINENO" "setmode" "ac_cv_func_setmode"
11321
if test "x$ac_cv_func_setmode" = x""yes; then :
11322
  cat >>confdefs.h <<_ACEOF
11323
#define HAVE_SETMODE 1
11324
_ACEOF
11325
 
11326
fi
11327
done
11328
 
11329
 
11330
ALL_LINGUAS="fr tr sv es id da pt_BR de vi rw ga ms fi nl"
11331
# If we haven't got the data from the intl directory,
11332
# assume NLS is disabled.
11333
USE_NLS=no
11334
LIBINTL=
11335
LIBINTL_DEP=
11336
INCINTL=
11337
XGETTEXT=
11338
GMSGFMT=
11339
POSUB=
11340
 
11341
if test -f  ../intl/config.intl; then
11342
  .  ../intl/config.intl
11343
fi
11344
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11345
$as_echo_n "checking whether NLS is requested... " >&6; }
11346
if test x"$USE_NLS" != xyes; then
11347
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11348
$as_echo "no" >&6; }
11349
else
11350
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11351
$as_echo "yes" >&6; }
11352
 
11353
$as_echo "#define ENABLE_NLS 1" >>confdefs.h
11354
 
11355
 
11356
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11357
$as_echo_n "checking for catalogs to be installed... " >&6; }
11358
  # Look for .po and .gmo files in the source directory.
11359
  CATALOGS=
11360
  XLINGUAS=
11361
  for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11362
    # If there aren't any .gmo files the shell will give us the
11363
    # literal string "../path/to/srcdir/po/*.gmo" which has to be
11364
    # weeded out.
11365
    case "$cat" in *\**)
11366
      continue;;
11367
    esac
11368
    # The quadruple backslash is collapsed to a double backslash
11369
    # by the backticks, then collapsed again by the double quotes,
11370
    # leaving us with one backslash in the sed expression (right
11371
    # before the dot that mustn't act as a wildcard).
11372
    cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11373
    lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11374
    # The user is allowed to set LINGUAS to a list of languages to
11375
    # install catalogs for.  If it's empty that means "all of them."
11376
    if test "x$LINGUAS" = x; then
11377
      CATALOGS="$CATALOGS $cat"
11378
      XLINGUAS="$XLINGUAS $lang"
11379
    else
11380
      case "$LINGUAS" in *$lang*)
11381
        CATALOGS="$CATALOGS $cat"
11382
        XLINGUAS="$XLINGUAS $lang"
11383
        ;;
11384
      esac
11385
    fi
11386
  done
11387
  LINGUAS="$XLINGUAS"
11388
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11389
$as_echo "$LINGUAS" >&6; }
11390
 
11391
 
11392
    DATADIRNAME=share
11393
 
11394
  INSTOBJEXT=.mo
11395
 
11396
  GENCAT=gencat
11397
 
11398
  CATOBJEXT=.gmo
11399
 
11400
fi
11401
 
11402
        MKINSTALLDIRS=
11403
  if test -n "$ac_aux_dir"; then
11404
    case "$ac_aux_dir" in
11405
      /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
11406
      *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
11407
    esac
11408
  fi
11409
  if test -z "$MKINSTALLDIRS"; then
11410
    MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
11411
  fi
11412
 
11413
 
11414
 
11415
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11416
$as_echo_n "checking whether NLS is requested... " >&6; }
11417
    # Check whether --enable-nls was given.
11418
if test "${enable_nls+set}" = set; then :
11419
  enableval=$enable_nls; USE_NLS=$enableval
11420
else
11421
  USE_NLS=yes
11422
fi
11423
 
11424
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11425
$as_echo "$USE_NLS" >&6; }
11426
 
11427
 
11428
 
11429
 
11430
 
11431
 
11432
# Prepare PATH_SEPARATOR.
11433
# The user is always right.
11434
if test "${PATH_SEPARATOR+set}" != set; then
11435
  echo "#! /bin/sh" >conf$$.sh
11436
  echo  "exit 0"   >>conf$$.sh
11437
  chmod +x conf$$.sh
11438
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11439
    PATH_SEPARATOR=';'
11440
  else
11441
    PATH_SEPARATOR=:
11442
  fi
11443
  rm -f conf$$.sh
11444
fi
11445
 
11446
# Find out how to test for executable files. Don't use a zero-byte file,
11447
# as systems may use methods other than mode bits to determine executability.
11448
cat >conf$$.file <<_ASEOF
11449
#! /bin/sh
11450
exit 0
11451
_ASEOF
11452
chmod +x conf$$.file
11453
if test -x conf$$.file >/dev/null 2>&1; then
11454
  ac_executable_p="test -x"
11455
else
11456
  ac_executable_p="test -f"
11457
fi
11458
rm -f conf$$.file
11459
 
11460
# Extract the first word of "msgfmt", so it can be a program name with args.
11461
set dummy msgfmt; ac_word=$2
11462
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11463
$as_echo_n "checking for $ac_word... " >&6; }
11464
if test "${ac_cv_path_MSGFMT+set}" = set; then :
11465
  $as_echo_n "(cached) " >&6
11466
else
11467
  case "$MSGFMT" in
11468
  [\\/]* | ?:[\\/]*)
11469
    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11470
    ;;
11471
  *)
11472
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11473
    for ac_dir in $PATH; do
11474
      IFS="$ac_save_IFS"
11475
      test -z "$ac_dir" && ac_dir=.
11476
      for ac_exec_ext in '' $ac_executable_extensions; do
11477
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11478
          if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
11479
     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11480
            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
11481
            break 2
11482
          fi
11483
        fi
11484
      done
11485
    done
11486
    IFS="$ac_save_IFS"
11487
  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11488
    ;;
11489
esac
11490
fi
11491
MSGFMT="$ac_cv_path_MSGFMT"
11492
if test "$MSGFMT" != ":"; then
11493
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
11494
$as_echo "$MSGFMT" >&6; }
11495
else
11496
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11497
$as_echo "no" >&6; }
11498
fi
11499
 
11500
  # Extract the first word of "gmsgfmt", so it can be a program name with args.
11501
set dummy gmsgfmt; ac_word=$2
11502
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11503
$as_echo_n "checking for $ac_word... " >&6; }
11504
if test "${ac_cv_path_GMSGFMT+set}" = set; then :
11505
  $as_echo_n "(cached) " >&6
11506
else
11507
  case $GMSGFMT in
11508
  [\\/]* | ?:[\\/]*)
11509
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11510
  ;;
11511
  *)
11512
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11513
for as_dir in $PATH
11514
do
11515
  IFS=$as_save_IFS
11516
  test -z "$as_dir" && as_dir=.
11517
    for ac_exec_ext in '' $ac_executable_extensions; do
11518
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11519
    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
11520
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11521
    break 2
11522
  fi
11523
done
11524
  done
11525
IFS=$as_save_IFS
11526
 
11527
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11528
  ;;
11529
esac
11530
fi
11531
GMSGFMT=$ac_cv_path_GMSGFMT
11532
if test -n "$GMSGFMT"; then
11533
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
11534
$as_echo "$GMSGFMT" >&6; }
11535
else
11536
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11537
$as_echo "no" >&6; }
11538
fi
11539
 
11540
 
11541
 
11542
 
11543
# Prepare PATH_SEPARATOR.
11544
# The user is always right.
11545
if test "${PATH_SEPARATOR+set}" != set; then
11546
  echo "#! /bin/sh" >conf$$.sh
11547
  echo  "exit 0"   >>conf$$.sh
11548
  chmod +x conf$$.sh
11549
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11550
    PATH_SEPARATOR=';'
11551
  else
11552
    PATH_SEPARATOR=:
11553
  fi
11554
  rm -f conf$$.sh
11555
fi
11556
 
11557
# Find out how to test for executable files. Don't use a zero-byte file,
11558
# as systems may use methods other than mode bits to determine executability.
11559
cat >conf$$.file <<_ASEOF
11560
#! /bin/sh
11561
exit 0
11562
_ASEOF
11563
chmod +x conf$$.file
11564
if test -x conf$$.file >/dev/null 2>&1; then
11565
  ac_executable_p="test -x"
11566
else
11567
  ac_executable_p="test -f"
11568
fi
11569
rm -f conf$$.file
11570
 
11571
# Extract the first word of "xgettext", so it can be a program name with args.
11572
set dummy xgettext; ac_word=$2
11573
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11574
$as_echo_n "checking for $ac_word... " >&6; }
11575
if test "${ac_cv_path_XGETTEXT+set}" = set; then :
11576
  $as_echo_n "(cached) " >&6
11577
else
11578
  case "$XGETTEXT" in
11579
  [\\/]* | ?:[\\/]*)
11580
    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11581
    ;;
11582
  *)
11583
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11584
    for ac_dir in $PATH; do
11585
      IFS="$ac_save_IFS"
11586
      test -z "$ac_dir" && ac_dir=.
11587
      for ac_exec_ext in '' $ac_executable_extensions; do
11588
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11589
          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11590
     (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11591
            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
11592
            break 2
11593
          fi
11594
        fi
11595
      done
11596
    done
11597
    IFS="$ac_save_IFS"
11598
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11599
    ;;
11600
esac
11601
fi
11602
XGETTEXT="$ac_cv_path_XGETTEXT"
11603
if test "$XGETTEXT" != ":"; then
11604
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
11605
$as_echo "$XGETTEXT" >&6; }
11606
else
11607
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11608
$as_echo "no" >&6; }
11609
fi
11610
 
11611
    rm -f messages.po
11612
 
11613
 
11614
# Prepare PATH_SEPARATOR.
11615
# The user is always right.
11616
if test "${PATH_SEPARATOR+set}" != set; then
11617
  echo "#! /bin/sh" >conf$$.sh
11618
  echo  "exit 0"   >>conf$$.sh
11619
  chmod +x conf$$.sh
11620
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11621
    PATH_SEPARATOR=';'
11622
  else
11623
    PATH_SEPARATOR=:
11624
  fi
11625
  rm -f conf$$.sh
11626
fi
11627
 
11628
# Find out how to test for executable files. Don't use a zero-byte file,
11629
# as systems may use methods other than mode bits to determine executability.
11630
cat >conf$$.file <<_ASEOF
11631
#! /bin/sh
11632
exit 0
11633
_ASEOF
11634
chmod +x conf$$.file
11635
if test -x conf$$.file >/dev/null 2>&1; then
11636
  ac_executable_p="test -x"
11637
else
11638
  ac_executable_p="test -f"
11639
fi
11640
rm -f conf$$.file
11641
 
11642
# Extract the first word of "msgmerge", so it can be a program name with args.
11643
set dummy msgmerge; ac_word=$2
11644
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11645
$as_echo_n "checking for $ac_word... " >&6; }
11646
if test "${ac_cv_path_MSGMERGE+set}" = set; then :
11647
  $as_echo_n "(cached) " >&6
11648
else
11649
  case "$MSGMERGE" in
11650
  [\\/]* | ?:[\\/]*)
11651
    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11652
    ;;
11653
  *)
11654
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11655
    for ac_dir in $PATH; do
11656
      IFS="$ac_save_IFS"
11657
      test -z "$ac_dir" && ac_dir=.
11658
      for ac_exec_ext in '' $ac_executable_extensions; do
11659
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11660
          if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
11661
            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11662
            break 2
11663
          fi
11664
        fi
11665
      done
11666
    done
11667
    IFS="$ac_save_IFS"
11668
  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11669
    ;;
11670
esac
11671
fi
11672
MSGMERGE="$ac_cv_path_MSGMERGE"
11673
if test "$MSGMERGE" != ":"; then
11674
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
11675
$as_echo "$MSGMERGE" >&6; }
11676
else
11677
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11678
$as_echo "no" >&6; }
11679
fi
11680
 
11681
 
11682
      if test "$GMSGFMT" != ":"; then
11683
            if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
11684
       (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11685
      : ;
11686
    else
11687
      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
11688
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
11689
$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
11690
      GMSGFMT=":"
11691
    fi
11692
  fi
11693
 
11694
      if test "$XGETTEXT" != ":"; then
11695
            if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11696
       (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11697
      : ;
11698
    else
11699
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
11700
$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
11701
      XGETTEXT=":"
11702
    fi
11703
        rm -f messages.po
11704
  fi
11705
 
11706
  ac_config_commands="$ac_config_commands default-1"
11707
 
11708
 
11709
 
11710
 
11711
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11712
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11713
    # Check whether --enable-maintainer-mode was given.
11714
if test "${enable_maintainer_mode+set}" = set; then :
11715
  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11716
else
11717
  USE_MAINTAINER_MODE=no
11718
fi
11719
 
11720
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11721
$as_echo "$USE_MAINTAINER_MODE" >&6; }
11722
   if test $USE_MAINTAINER_MODE = yes; then
11723
  MAINTAINER_MODE_TRUE=
11724
  MAINTAINER_MODE_FALSE='#'
11725
else
11726
  MAINTAINER_MODE_TRUE='#'
11727
  MAINTAINER_MODE_FALSE=
11728
fi
11729
 
11730
  MAINT=$MAINTAINER_MODE_TRUE
11731
 
11732
 
11733
 if false; then
11734
  GENINSRC_NEVER_TRUE=
11735
  GENINSRC_NEVER_FALSE='#'
11736
else
11737
  GENINSRC_NEVER_TRUE='#'
11738
  GENINSRC_NEVER_FALSE=
11739
fi
11740
 
11741
 
11742
 
11743
for ac_header in sys/gmon_out.h
11744
do :
11745
  ac_fn_c_check_header_mongrel "$LINENO" "sys/gmon_out.h" "ac_cv_header_sys_gmon_out_h" "$ac_includes_default"
11746
if test "x$ac_cv_header_sys_gmon_out_h" = x""yes; then :
11747
  cat >>confdefs.h <<_ACEOF
11748
#define HAVE_SYS_GMON_OUT_H 1
11749
_ACEOF
11750
 
11751
fi
11752
 
11753
done
11754
 
11755
 
11756
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
11757
$as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
11758
if test "${gprof_cv_decl_getopt_unistd_h+set}" = set; then :
11759
  $as_echo_n "(cached) " >&6
11760
else
11761
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11762
/* end confdefs.h.  */
11763
#include 
11764
int
11765
main ()
11766
{
11767
extern int getopt (int, char *const*, const char *);
11768
  ;
11769
  return 0;
11770
}
11771
_ACEOF
11772
if ac_fn_c_try_compile "$LINENO"; then :
11773
  gprof_cv_decl_getopt_unistd_h=yes
11774
else
11775
  gprof_cv_decl_getopt_unistd_h=no
11776
fi
11777
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11778
fi
11779
 
11780
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gprof_cv_decl_getopt_unistd_h" >&5
11781
$as_echo "$gprof_cv_decl_getopt_unistd_h" >&6; }
11782
if test $gprof_cv_decl_getopt_unistd_h = yes; then
11783
 
11784
$as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
11785
 
11786
fi
11787
 
11788
# Some systems have fabs only in -lm, not in -lc.
11789
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fabs" >&5
11790
$as_echo_n "checking for library containing fabs... " >&6; }
11791
if test "${ac_cv_search_fabs+set}" = set; then :
11792
  $as_echo_n "(cached) " >&6
11793
else
11794
  ac_func_search_save_LIBS=$LIBS
11795
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11796
/* end confdefs.h.  */
11797
 
11798
/* Override any GCC internal prototype to avoid an error.
11799
   Use char because int might match the return type of a GCC
11800
   builtin and then its argument prototype would still apply.  */
11801
#ifdef __cplusplus
11802
extern "C"
11803
#endif
11804
char fabs ();
11805
int
11806
main ()
11807
{
11808
return fabs ();
11809
  ;
11810
  return 0;
11811
}
11812
_ACEOF
11813
for ac_lib in '' m; do
11814
  if test -z "$ac_lib"; then
11815
    ac_res="none required"
11816
  else
11817
    ac_res=-l$ac_lib
11818
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11819
  fi
11820
  if ac_fn_c_try_link "$LINENO"; then :
11821
  ac_cv_search_fabs=$ac_res
11822
fi
11823
rm -f core conftest.err conftest.$ac_objext \
11824
    conftest$ac_exeext
11825
  if test "${ac_cv_search_fabs+set}" = set; then :
11826
  break
11827
fi
11828
done
11829
if test "${ac_cv_search_fabs+set}" = set; then :
11830
 
11831
else
11832
  ac_cv_search_fabs=no
11833
fi
11834
rm conftest.$ac_ext
11835
LIBS=$ac_func_search_save_LIBS
11836
fi
11837
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fabs" >&5
11838
$as_echo "$ac_cv_search_fabs" >&6; }
11839
ac_res=$ac_cv_search_fabs
11840
if test "$ac_res" != no; then :
11841
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11842
 
11843
fi
11844
 
11845
 
11846
 
11847
GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
11848
 
11849
# Check whether --enable-werror was given.
11850
if test "${enable_werror+set}" = set; then :
11851
  enableval=$enable_werror; case "${enableval}" in
11852
     yes | y) ERROR_ON_WARNING="yes" ;;
11853
     no | n)  ERROR_ON_WARNING="no" ;;
11854
     *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
11855
   esac
11856
fi
11857
 
11858
 
11859
# Enable -Wno-format by default when using gcc on mingw
11860
case "${host}" in
11861
  *-*-mingw32*)
11862
    if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11863
      GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
11864
    fi
11865
    ;;
11866
  *) ;;
11867
esac
11868
 
11869
# Enable -Werror by default when using gcc
11870
if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11871
    ERROR_ON_WARNING=yes
11872
fi
11873
 
11874
NO_WERROR=
11875
if test "${ERROR_ON_WARNING}" = yes ; then
11876
    GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
11877
    NO_WERROR="-Wno-error"
11878
fi
11879
 
11880
if test "${GCC}" = yes ; then
11881
  WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11882
fi
11883
 
11884
# Check whether --enable-build-warnings was given.
11885
if test "${enable_build_warnings+set}" = set; then :
11886
  enableval=$enable_build_warnings; case "${enableval}" in
11887
  yes)  WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
11888
  no)   if test "${GCC}" = yes ; then
11889
          WARN_CFLAGS="-w"
11890
        fi;;
11891
  ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
11892
        WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
11893
  *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
11894
        WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
11895
  *)    WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
11896
esac
11897
fi
11898
 
11899
 
11900
if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
11901
  echo "Setting warning flags = $WARN_CFLAGS" 6>&1
11902
fi
11903
 
11904
 
11905
 
11906
 
11907
 
11908
 
11909
 
11910
 
11911
 
11912
 
11913
ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
11914
 
11915
cat >confcache <<\_ACEOF
11916
# This file is a shell script that caches the results of configure
11917
# tests run on this system so they can be shared between configure
11918
# scripts and configure runs, see configure's option --config-cache.
11919
# It is not useful on other systems.  If it contains results you don't
11920
# want to keep, you may remove or edit it.
11921
#
11922
# config.status only pays attention to the cache file if you give it
11923
# the --recheck option to rerun configure.
11924
#
11925
# `ac_cv_env_foo' variables (set or unset) will be overridden when
11926
# loading this file, other *unset* `ac_cv_foo' will be assigned the
11927
# following values.
11928
 
11929
_ACEOF
11930
 
11931
# The following way of writing the cache mishandles newlines in values,
11932
# but we know of no workaround that is simple, portable, and efficient.
11933
# So, we kill variables containing newlines.
11934
# Ultrix sh set writes to stderr and can't be redirected directly,
11935
# and sets the high bit in the cache file unless we assign to the vars.
11936
(
11937
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11938
    eval ac_val=\$$ac_var
11939
    case $ac_val in #(
11940
    *${as_nl}*)
11941
      case $ac_var in #(
11942
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11943
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11944
      esac
11945
      case $ac_var in #(
11946
      _ | IFS | as_nl) ;; #(
11947
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11948
      *) { eval $ac_var=; unset $ac_var;} ;;
11949
      esac ;;
11950
    esac
11951
  done
11952
 
11953
  (set) 2>&1 |
11954
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11955
    *${as_nl}ac_space=\ *)
11956
      # `set' does not quote correctly, so add quotes: double-quote
11957
      # substitution turns \\\\ into \\, and sed turns \\ into \.
11958
      sed -n \
11959
        "s/'/'\\\\''/g;
11960
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11961
      ;; #(
11962
    *)
11963
      # `set' quotes correctly as required by POSIX, so do not add quotes.
11964
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11965
      ;;
11966
    esac |
11967
    sort
11968
) |
11969
  sed '
11970
     /^ac_cv_env_/b end
11971
     t clear
11972
     :clear
11973
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11974
     t end
11975
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11976
     :end' >>confcache
11977
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11978
  if test -w "$cache_file"; then
11979
    test "x$cache_file" != "x/dev/null" &&
11980
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11981
$as_echo "$as_me: updating cache $cache_file" >&6;}
11982
    cat confcache >$cache_file
11983
  else
11984
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11985
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11986
  fi
11987
fi
11988
rm -f confcache
11989
 
11990
test "x$prefix" = xNONE && prefix=$ac_default_prefix
11991
# Let make expand exec_prefix.
11992
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11993
 
11994
DEFS=-DHAVE_CONFIG_H
11995
 
11996
ac_libobjs=
11997
ac_ltlibobjs=
11998
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11999
  # 1. Remove the extension, and $U if already installed.
12000
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12001
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12002
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12003
  #    will be set to the directory where LIBOBJS objects are built.
12004
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12005
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12006
done
12007
LIBOBJS=$ac_libobjs
12008
 
12009
LTLIBOBJS=$ac_ltlibobjs
12010
 
12011
 
12012
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12013
  as_fn_error "conditional \"AMDEP\" was never defined.
12014
Usually this means the macro was only invoked conditionally." "$LINENO" 5
12015
fi
12016
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12017
  as_fn_error "conditional \"am__fastdepCC\" was never defined.
12018
Usually this means the macro was only invoked conditionally." "$LINENO" 5
12019
fi
12020
 if test -n "$EXEEXT"; then
12021
  am__EXEEXT_TRUE=
12022
  am__EXEEXT_FALSE='#'
12023
else
12024
  am__EXEEXT_TRUE='#'
12025
  am__EXEEXT_FALSE=
12026
fi
12027
 
12028
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12029
  as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
12030
Usually this means the macro was only invoked conditionally." "$LINENO" 5
12031
fi
12032
if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
12033
  as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
12034
Usually this means the macro was only invoked conditionally." "$LINENO" 5
12035
fi
12036
 
12037
: ${CONFIG_STATUS=./config.status}
12038
ac_write_fail=0
12039
ac_clean_files_save=$ac_clean_files
12040
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12041
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12042
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12043
as_write_fail=0
12044
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12045
#! $SHELL
12046
# Generated by $as_me.
12047
# Run this file to recreate the current configuration.
12048
# Compiler output produced by configure, useful for debugging
12049
# configure, is in config.log if it exists.
12050
 
12051
debug=false
12052
ac_cs_recheck=false
12053
ac_cs_silent=false
12054
 
12055
SHELL=\${CONFIG_SHELL-$SHELL}
12056
export SHELL
12057
_ASEOF
12058
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12059
## -------------------- ##
12060
## M4sh Initialization. ##
12061
## -------------------- ##
12062
 
12063
# Be more Bourne compatible
12064
DUALCASE=1; export DUALCASE # for MKS sh
12065
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12066
  emulate sh
12067
  NULLCMD=:
12068
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12069
  # is contrary to our usage.  Disable this feature.
12070
  alias -g '${1+"$@"}'='"$@"'
12071
  setopt NO_GLOB_SUBST
12072
else
12073
  case `(set -o) 2>/dev/null` in #(
12074
  *posix*) :
12075
    set -o posix ;; #(
12076
  *) :
12077
     ;;
12078
esac
12079
fi
12080
 
12081
 
12082
as_nl='
12083
'
12084
export as_nl
12085
# Printing a long string crashes Solaris 7 /usr/bin/printf.
12086
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12087
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12088
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12089
# Prefer a ksh shell builtin over an external printf program on Solaris,
12090
# but without wasting forks for bash or zsh.
12091
if test -z "$BASH_VERSION$ZSH_VERSION" \
12092
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12093
  as_echo='print -r --'
12094
  as_echo_n='print -rn --'
12095
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12096
  as_echo='printf %s\n'
12097
  as_echo_n='printf %s'
12098
else
12099
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12100
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12101
    as_echo_n='/usr/ucb/echo -n'
12102
  else
12103
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12104
    as_echo_n_body='eval
12105
      arg=$1;
12106
      case $arg in #(
12107
      *"$as_nl"*)
12108
        expr "X$arg" : "X\\(.*\\)$as_nl";
12109
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12110
      esac;
12111
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12112
    '
12113
    export as_echo_n_body
12114
    as_echo_n='sh -c $as_echo_n_body as_echo'
12115
  fi
12116
  export as_echo_body
12117
  as_echo='sh -c $as_echo_body as_echo'
12118
fi
12119
 
12120
# The user is always right.
12121
if test "${PATH_SEPARATOR+set}" != set; then
12122
  PATH_SEPARATOR=:
12123
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12124
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12125
      PATH_SEPARATOR=';'
12126
  }
12127
fi
12128
 
12129
 
12130
# IFS
12131
# We need space, tab and new line, in precisely that order.  Quoting is
12132
# there to prevent editors from complaining about space-tab.
12133
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12134
# splitting by setting IFS to empty value.)
12135
IFS=" ""        $as_nl"
12136
 
12137
# Find who we are.  Look in the path if we contain no directory separator.
12138
case $0 in #((
12139
  *[\\/]* ) as_myself=$0 ;;
12140
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12141
for as_dir in $PATH
12142
do
12143
  IFS=$as_save_IFS
12144
  test -z "$as_dir" && as_dir=.
12145
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12146
  done
12147
IFS=$as_save_IFS
12148
 
12149
     ;;
12150
esac
12151
# We did not find ourselves, most probably we were run as `sh COMMAND'
12152
# in which case we are not to be found in the path.
12153
if test "x$as_myself" = x; then
12154
  as_myself=$0
12155
fi
12156
if test ! -f "$as_myself"; then
12157
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12158
  exit 1
12159
fi
12160
 
12161
# Unset variables that we do not need and which cause bugs (e.g. in
12162
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12163
# suppresses any "Segmentation fault" message there.  '((' could
12164
# trigger a bug in pdksh 5.2.14.
12165
for as_var in BASH_ENV ENV MAIL MAILPATH
12166
do eval test x\${$as_var+set} = xset \
12167
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12168
done
12169
PS1='$ '
12170
PS2='> '
12171
PS4='+ '
12172
 
12173
# NLS nuisances.
12174
LC_ALL=C
12175
export LC_ALL
12176
LANGUAGE=C
12177
export LANGUAGE
12178
 
12179
# CDPATH.
12180
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12181
 
12182
 
12183
# as_fn_error ERROR [LINENO LOG_FD]
12184
# ---------------------------------
12185
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12186
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12187
# script with status $?, using 1 if that was 0.
12188
as_fn_error ()
12189
{
12190
  as_status=$?; test $as_status -eq 0 && as_status=1
12191
  if test "$3"; then
12192
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12193
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
12194
  fi
12195
  $as_echo "$as_me: error: $1" >&2
12196
  as_fn_exit $as_status
12197
} # as_fn_error
12198
 
12199
 
12200
# as_fn_set_status STATUS
12201
# -----------------------
12202
# Set $? to STATUS, without forking.
12203
as_fn_set_status ()
12204
{
12205
  return $1
12206
} # as_fn_set_status
12207
 
12208
# as_fn_exit STATUS
12209
# -----------------
12210
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12211
as_fn_exit ()
12212
{
12213
  set +e
12214
  as_fn_set_status $1
12215
  exit $1
12216
} # as_fn_exit
12217
 
12218
# as_fn_unset VAR
12219
# ---------------
12220
# Portably unset VAR.
12221
as_fn_unset ()
12222
{
12223
  { eval $1=; unset $1;}
12224
}
12225
as_unset=as_fn_unset
12226
# as_fn_append VAR VALUE
12227
# ----------------------
12228
# Append the text in VALUE to the end of the definition contained in VAR. Take
12229
# advantage of any shell optimizations that allow amortized linear growth over
12230
# repeated appends, instead of the typical quadratic growth present in naive
12231
# implementations.
12232
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12233
  eval 'as_fn_append ()
12234
  {
12235
    eval $1+=\$2
12236
  }'
12237
else
12238
  as_fn_append ()
12239
  {
12240
    eval $1=\$$1\$2
12241
  }
12242
fi # as_fn_append
12243
 
12244
# as_fn_arith ARG...
12245
# ------------------
12246
# Perform arithmetic evaluation on the ARGs, and store the result in the
12247
# global $as_val. Take advantage of shells that can avoid forks. The arguments
12248
# must be portable across $(()) and expr.
12249
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12250
  eval 'as_fn_arith ()
12251
  {
12252
    as_val=$(( $* ))
12253
  }'
12254
else
12255
  as_fn_arith ()
12256
  {
12257
    as_val=`expr "$@" || test $? -eq 1`
12258
  }
12259
fi # as_fn_arith
12260
 
12261
 
12262
if expr a : '\(a\)' >/dev/null 2>&1 &&
12263
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12264
  as_expr=expr
12265
else
12266
  as_expr=false
12267
fi
12268
 
12269
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12270
  as_basename=basename
12271
else
12272
  as_basename=false
12273
fi
12274
 
12275
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12276
  as_dirname=dirname
12277
else
12278
  as_dirname=false
12279
fi
12280
 
12281
as_me=`$as_basename -- "$0" ||
12282
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12283
         X"$0" : 'X\(//\)$' \| \
12284
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12285
$as_echo X/"$0" |
12286
    sed '/^.*\/\([^/][^/]*\)\/*$/{
12287
            s//\1/
12288
            q
12289
          }
12290
          /^X\/\(\/\/\)$/{
12291
            s//\1/
12292
            q
12293
          }
12294
          /^X\/\(\/\).*/{
12295
            s//\1/
12296
            q
12297
          }
12298
          s/.*/./; q'`
12299
 
12300
# Avoid depending upon Character Ranges.
12301
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12302
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12303
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12304
as_cr_digits='0123456789'
12305
as_cr_alnum=$as_cr_Letters$as_cr_digits
12306
 
12307
ECHO_C= ECHO_N= ECHO_T=
12308
case `echo -n x` in #(((((
12309
-n*)
12310
  case `echo 'xy\c'` in
12311
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
12312
  xy)  ECHO_C='\c';;
12313
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12314
       ECHO_T=' ';;
12315
  esac;;
12316
*)
12317
  ECHO_N='-n';;
12318
esac
12319
 
12320
rm -f conf$$ conf$$.exe conf$$.file
12321
if test -d conf$$.dir; then
12322
  rm -f conf$$.dir/conf$$.file
12323
else
12324
  rm -f conf$$.dir
12325
  mkdir conf$$.dir 2>/dev/null
12326
fi
12327
if (echo >conf$$.file) 2>/dev/null; then
12328
  if ln -s conf$$.file conf$$ 2>/dev/null; then
12329
    as_ln_s='ln -s'
12330
    # ... but there are two gotchas:
12331
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12332
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12333
    # In both cases, we have to default to `cp -p'.
12334
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12335
      as_ln_s='cp -p'
12336
  elif ln conf$$.file conf$$ 2>/dev/null; then
12337
    as_ln_s=ln
12338
  else
12339
    as_ln_s='cp -p'
12340
  fi
12341
else
12342
  as_ln_s='cp -p'
12343
fi
12344
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12345
rmdir conf$$.dir 2>/dev/null
12346
 
12347
 
12348
# as_fn_mkdir_p
12349
# -------------
12350
# Create "$as_dir" as a directory, including parents if necessary.
12351
as_fn_mkdir_p ()
12352
{
12353
 
12354
  case $as_dir in #(
12355
  -*) as_dir=./$as_dir;;
12356
  esac
12357
  test -d "$as_dir" || eval $as_mkdir_p || {
12358
    as_dirs=
12359
    while :; do
12360
      case $as_dir in #(
12361
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12362
      *) as_qdir=$as_dir;;
12363
      esac
12364
      as_dirs="'$as_qdir' $as_dirs"
12365
      as_dir=`$as_dirname -- "$as_dir" ||
12366
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12367
         X"$as_dir" : 'X\(//\)[^/]' \| \
12368
         X"$as_dir" : 'X\(//\)$' \| \
12369
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12370
$as_echo X"$as_dir" |
12371
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12372
            s//\1/
12373
            q
12374
          }
12375
          /^X\(\/\/\)[^/].*/{
12376
            s//\1/
12377
            q
12378
          }
12379
          /^X\(\/\/\)$/{
12380
            s//\1/
12381
            q
12382
          }
12383
          /^X\(\/\).*/{
12384
            s//\1/
12385
            q
12386
          }
12387
          s/.*/./; q'`
12388
      test -d "$as_dir" && break
12389
    done
12390
    test -z "$as_dirs" || eval "mkdir $as_dirs"
12391
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
12392
 
12393
 
12394
} # as_fn_mkdir_p
12395
if mkdir -p . 2>/dev/null; then
12396
  as_mkdir_p='mkdir -p "$as_dir"'
12397
else
12398
  test -d ./-p && rmdir ./-p
12399
  as_mkdir_p=false
12400
fi
12401
 
12402
if test -x / >/dev/null 2>&1; then
12403
  as_test_x='test -x'
12404
else
12405
  if ls -dL / >/dev/null 2>&1; then
12406
    as_ls_L_option=L
12407
  else
12408
    as_ls_L_option=
12409
  fi
12410
  as_test_x='
12411
    eval sh -c '\''
12412
      if test -d "$1"; then
12413
        test -d "$1/.";
12414
      else
12415
        case $1 in #(
12416
        -*)set "./$1";;
12417
        esac;
12418
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12419
        ???[sx]*):;;*)false;;esac;fi
12420
    '\'' sh
12421
  '
12422
fi
12423
as_executable_p=$as_test_x
12424
 
12425
# Sed expression to map a string onto a valid CPP name.
12426
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12427
 
12428
# Sed expression to map a string onto a valid variable name.
12429
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12430
 
12431
 
12432
exec 6>&1
12433
## ----------------------------------- ##
12434
## Main body of $CONFIG_STATUS script. ##
12435
## ----------------------------------- ##
12436
_ASEOF
12437
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12438
 
12439
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12440
# Save the log message, to keep $0 and so on meaningful, and to
12441
# report actual input values of CONFIG_FILES etc. instead of their
12442
# values after options handling.
12443
ac_log="
12444
This file was extended by $as_me, which was
12445
generated by GNU Autoconf 2.64.  Invocation command line was
12446
 
12447
  CONFIG_FILES    = $CONFIG_FILES
12448
  CONFIG_HEADERS  = $CONFIG_HEADERS
12449
  CONFIG_LINKS    = $CONFIG_LINKS
12450
  CONFIG_COMMANDS = $CONFIG_COMMANDS
12451
  $ $0 $@
12452
 
12453
on `(hostname || uname -n) 2>/dev/null | sed 1q`
12454
"
12455
 
12456
_ACEOF
12457
 
12458
case $ac_config_files in *"
12459
"*) set x $ac_config_files; shift; ac_config_files=$*;;
12460
esac
12461
 
12462
case $ac_config_headers in *"
12463
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12464
esac
12465
 
12466
 
12467
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12468
# Files that config.status was made for.
12469
config_files="$ac_config_files"
12470
config_headers="$ac_config_headers"
12471
config_commands="$ac_config_commands"
12472
 
12473
_ACEOF
12474
 
12475
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12476
ac_cs_usage="\
12477
\`$as_me' instantiates files and other configuration actions
12478
from templates according to the current configuration.  Unless the files
12479
and actions are specified as TAGs, all are instantiated by default.
12480
 
12481
Usage: $0 [OPTION]... [TAG]...
12482
 
12483
  -h, --help       print this help, then exit
12484
  -V, --version    print version number and configuration settings, then exit
12485
  -q, --quiet, --silent
12486
                   do not print progress messages
12487
  -d, --debug      don't remove temporary files
12488
      --recheck    update $as_me by reconfiguring in the same conditions
12489
      --file=FILE[:TEMPLATE]
12490
                   instantiate the configuration file FILE
12491
      --header=FILE[:TEMPLATE]
12492
                   instantiate the configuration header FILE
12493
 
12494
Configuration files:
12495
$config_files
12496
 
12497
Configuration headers:
12498
$config_headers
12499
 
12500
Configuration commands:
12501
$config_commands
12502
 
12503
Report bugs to the package provider."
12504
 
12505
_ACEOF
12506
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12507
ac_cs_version="\\
12508
config.status
12509
configured by $0, generated by GNU Autoconf 2.64,
12510
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12511
 
12512
Copyright (C) 2009 Free Software Foundation, Inc.
12513
This config.status script is free software; the Free Software Foundation
12514
gives unlimited permission to copy, distribute and modify it."
12515
 
12516
ac_pwd='$ac_pwd'
12517
srcdir='$srcdir'
12518
INSTALL='$INSTALL'
12519
MKDIR_P='$MKDIR_P'
12520
AWK='$AWK'
12521
test -n "\$AWK" || AWK=awk
12522
_ACEOF
12523
 
12524
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12525
# The default lists apply if the user does not specify any file.
12526
ac_need_defaults=:
12527
while test $# != 0
12528
do
12529
  case $1 in
12530
  --*=*)
12531
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12532
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12533
    ac_shift=:
12534
    ;;
12535
  *)
12536
    ac_option=$1
12537
    ac_optarg=$2
12538
    ac_shift=shift
12539
    ;;
12540
  esac
12541
 
12542
  case $ac_option in
12543
  # Handling of the options.
12544
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12545
    ac_cs_recheck=: ;;
12546
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12547
    $as_echo "$ac_cs_version"; exit ;;
12548
  --debug | --debu | --deb | --de | --d | -d )
12549
    debug=: ;;
12550
  --file | --fil | --fi | --f )
12551
    $ac_shift
12552
    case $ac_optarg in
12553
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12554
    esac
12555
    as_fn_append CONFIG_FILES " '$ac_optarg'"
12556
    ac_need_defaults=false;;
12557
  --header | --heade | --head | --hea )
12558
    $ac_shift
12559
    case $ac_optarg in
12560
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12561
    esac
12562
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12563
    ac_need_defaults=false;;
12564
  --he | --h)
12565
    # Conflict between --help and --header
12566
    as_fn_error "ambiguous option: \`$1'
12567
Try \`$0 --help' for more information.";;
12568
  --help | --hel | -h )
12569
    $as_echo "$ac_cs_usage"; exit ;;
12570
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12571
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12572
    ac_cs_silent=: ;;
12573
 
12574
  # This is an error.
12575
  -*) as_fn_error "unrecognized option: \`$1'
12576
Try \`$0 --help' for more information." ;;
12577
 
12578
  *) as_fn_append ac_config_targets " $1"
12579
     ac_need_defaults=false ;;
12580
 
12581
  esac
12582
  shift
12583
done
12584
 
12585
ac_configure_extra_args=
12586
 
12587
if $ac_cs_silent; then
12588
  exec 6>/dev/null
12589
  ac_configure_extra_args="$ac_configure_extra_args --silent"
12590
fi
12591
 
12592
_ACEOF
12593
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12594
if \$ac_cs_recheck; then
12595
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12596
  shift
12597
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12598
  CONFIG_SHELL='$SHELL'
12599
  export CONFIG_SHELL
12600
  exec "\$@"
12601
fi
12602
 
12603
_ACEOF
12604
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12605
exec 5>>config.log
12606
{
12607
  echo
12608
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12609
## Running $as_me. ##
12610
_ASBOX
12611
  $as_echo "$ac_log"
12612
} >&5
12613
 
12614
_ACEOF
12615
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12616
#
12617
# INIT-COMMANDS
12618
#
12619
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12620
 
12621
 
12622
# The HP-UX ksh and POSIX shell print the target directory to stdout
12623
# if CDPATH is set.
12624
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12625
 
12626
sed_quote_subst='$sed_quote_subst'
12627
double_quote_subst='$double_quote_subst'
12628
delay_variable_subst='$delay_variable_subst'
12629
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12630
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12631
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12632
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12633
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12634
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12635
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12636
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12637
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12638
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12639
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12640
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12641
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12642
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12643
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12644
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12645
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12646
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12647
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12648
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12649
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12650
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12651
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12652
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12653
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12654
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12655
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12656
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12657
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
12658
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12659
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12660
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12661
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12662
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12663
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12664
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12665
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12666
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12667
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12668
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12669
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12670
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12671
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12672
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12673
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
12674
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12675
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12676
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12677
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12678
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12679
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12680
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12681
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12682
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12683
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12684
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12685
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12686
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12687
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12688
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12689
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12690
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12691
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12692
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12693
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12694
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12695
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12696
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12697
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12698
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12699
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12700
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12701
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12702
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12703
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12704
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12705
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12706
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12707
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12708
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12709
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12710
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12711
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12712
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12713
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12714
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12715
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12716
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12717
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12718
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12719
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12720
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12721
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12722
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12723
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12724
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12725
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12726
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12727
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12728
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12729
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12730
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12731
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12732
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12733
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12734
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12735
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12736
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12737
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12738
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12739
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12740
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12741
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12742
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12743
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12744
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12745
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12746
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12747
 
12748
LTCC='$LTCC'
12749
LTCFLAGS='$LTCFLAGS'
12750
compiler='$compiler_DEFAULT'
12751
 
12752
# Quote evaled strings.
12753
for var in SED \
12754
GREP \
12755
EGREP \
12756
FGREP \
12757
LD \
12758
NM \
12759
LN_S \
12760
lt_SP2NL \
12761
lt_NL2SP \
12762
reload_flag \
12763
OBJDUMP \
12764
deplibs_check_method \
12765
file_magic_cmd \
12766
AR \
12767
AR_FLAGS \
12768
STRIP \
12769
RANLIB \
12770
CC \
12771
CFLAGS \
12772
compiler \
12773
lt_cv_sys_global_symbol_pipe \
12774
lt_cv_sys_global_symbol_to_cdecl \
12775
lt_cv_sys_global_symbol_to_c_name_address \
12776
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12777
SHELL \
12778
ECHO \
12779
lt_prog_compiler_no_builtin_flag \
12780
lt_prog_compiler_wl \
12781
lt_prog_compiler_pic \
12782
lt_prog_compiler_static \
12783
lt_cv_prog_compiler_c_o \
12784
need_locks \
12785
DSYMUTIL \
12786
NMEDIT \
12787
LIPO \
12788
OTOOL \
12789
OTOOL64 \
12790
shrext_cmds \
12791
export_dynamic_flag_spec \
12792
whole_archive_flag_spec \
12793
compiler_needs_object \
12794
with_gnu_ld \
12795
allow_undefined_flag \
12796
no_undefined_flag \
12797
hardcode_libdir_flag_spec \
12798
hardcode_libdir_flag_spec_ld \
12799
hardcode_libdir_separator \
12800
fix_srcfile_path \
12801
exclude_expsyms \
12802
include_expsyms \
12803
file_list_spec \
12804
variables_saved_for_relink \
12805
libname_spec \
12806
library_names_spec \
12807
soname_spec \
12808
finish_eval \
12809
old_striplib \
12810
striplib; do
12811
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12812
    *[\\\\\\\`\\"\\\$]*)
12813
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12814
      ;;
12815
    *)
12816
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12817
      ;;
12818
    esac
12819
done
12820
 
12821
# Double-quote double-evaled strings.
12822
for var in reload_cmds \
12823
old_postinstall_cmds \
12824
old_postuninstall_cmds \
12825
old_archive_cmds \
12826
extract_expsyms_cmds \
12827
old_archive_from_new_cmds \
12828
old_archive_from_expsyms_cmds \
12829
archive_cmds \
12830
archive_expsym_cmds \
12831
module_cmds \
12832
module_expsym_cmds \
12833
export_symbols_cmds \
12834
prelink_cmds \
12835
postinstall_cmds \
12836
postuninstall_cmds \
12837
finish_cmds \
12838
sys_lib_search_path_spec \
12839
sys_lib_dlsearch_path_spec; do
12840
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12841
    *[\\\\\\\`\\"\\\$]*)
12842
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12843
      ;;
12844
    *)
12845
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12846
      ;;
12847
    esac
12848
done
12849
 
12850
# Fix-up fallback echo if it was mangled by the above quoting rules.
12851
case \$lt_ECHO in
12852
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12853
  ;;
12854
esac
12855
 
12856
ac_aux_dir='$ac_aux_dir'
12857
xsi_shell='$xsi_shell'
12858
lt_shell_append='$lt_shell_append'
12859
 
12860
# See if we are running on zsh, and set the options which allow our
12861
# commands through without removal of \ escapes INIT.
12862
if test -n "\${ZSH_VERSION+set}" ; then
12863
   setopt NO_GLOB_SUBST
12864
fi
12865
 
12866
 
12867
    PACKAGE='$PACKAGE'
12868
    VERSION='$VERSION'
12869
    TIMESTAMP='$TIMESTAMP'
12870
    RM='$RM'
12871
    ofile='$ofile'
12872
 
12873
 
12874
 
12875
# Capture the value of obsolete ALL_LINGUAS because we need it to compute
12876
    # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
12877
    # from automake.
12878
    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12879
    # Capture the value of LINGUAS because we need it to compute CATALOGS.
12880
    LINGUAS="${LINGUAS-%UNSET%}"
12881
 
12882
 
12883
_ACEOF
12884
 
12885
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12886
 
12887
# Handling of arguments.
12888
for ac_config_target in $ac_config_targets
12889
do
12890
  case $ac_config_target in
12891
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12892
    "gconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS gconfig.h:gconfig.in" ;;
12893
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12894
    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12895
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12896
    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
12897
 
12898
  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12899
  esac
12900
done
12901
 
12902
 
12903
# If the user did not use the arguments to specify the items to instantiate,
12904
# then the envvar interface is used.  Set only those that are not.
12905
# We use the long form for the default assignment because of an extremely
12906
# bizarre bug on SunOS 4.1.3.
12907
if $ac_need_defaults; then
12908
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12909
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12910
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12911
fi
12912
 
12913
# Have a temporary directory for convenience.  Make it in the build tree
12914
# simply because there is no reason against having it here, and in addition,
12915
# creating and moving files from /tmp can sometimes cause problems.
12916
# Hook for its removal unless debugging.
12917
# Note that there is a small window in which the directory will not be cleaned:
12918
# after its creation but before its name has been assigned to `$tmp'.
12919
$debug ||
12920
{
12921
  tmp=
12922
  trap 'exit_status=$?
12923
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12924
' 0
12925
  trap 'as_fn_exit 1' 1 2 13 15
12926
}
12927
# Create a (secure) tmp directory for tmp files.
12928
 
12929
{
12930
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12931
  test -n "$tmp" && test -d "$tmp"
12932
}  ||
12933
{
12934
  tmp=./conf$$-$RANDOM
12935
  (umask 077 && mkdir "$tmp")
12936
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
12937
 
12938
# Set up the scripts for CONFIG_FILES section.
12939
# No need to generate them if there are no CONFIG_FILES.
12940
# This happens for instance with `./config.status config.h'.
12941
if test -n "$CONFIG_FILES"; then
12942
 
12943
 
12944
ac_cr=`echo X | tr X '\015'`
12945
# On cygwin, bash can eat \r inside `` if the user requested igncr.
12946
# But we know of no other shell where ac_cr would be empty at this
12947
# point, so we can use a bashism as a fallback.
12948
if test "x$ac_cr" = x; then
12949
  eval ac_cr=\$\'\\r\'
12950
fi
12951
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null`
12952
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12953
  ac_cs_awk_cr='\r'
12954
else
12955
  ac_cs_awk_cr=$ac_cr
12956
fi
12957
 
12958
echo 'BEGIN {' >"$tmp/subs1.awk" &&
12959
_ACEOF
12960
 
12961
 
12962
{
12963
  echo "cat >conf$$subs.awk <<_ACEOF" &&
12964
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12965
  echo "_ACEOF"
12966
} >conf$$subs.sh ||
12967
  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12968
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12969
ac_delim='%!_!# '
12970
for ac_last_try in false false false false false :; do
12971
  . ./conf$$subs.sh ||
12972
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12973
 
12974
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12975
  if test $ac_delim_n = $ac_delim_num; then
12976
    break
12977
  elif $ac_last_try; then
12978
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12979
  else
12980
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12981
  fi
12982
done
12983
rm -f conf$$subs.sh
12984
 
12985
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12986
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12987
_ACEOF
12988
sed -n '
12989
h
12990
s/^/S["/; s/!.*/"]=/
12991
p
12992
g
12993
s/^[^!]*!//
12994
:repl
12995
t repl
12996
s/'"$ac_delim"'$//
12997
t delim
12998
:nl
12999
h
13000
s/\(.\{148\}\).*/\1/
13001
t more1
13002
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13003
p
13004
n
13005
b repl
13006
:more1
13007
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13008
p
13009
g
13010
s/.\{148\}//
13011
t nl
13012
:delim
13013
h
13014
s/\(.\{148\}\).*/\1/
13015
t more2
13016
s/["\\]/\\&/g; s/^/"/; s/$/"/
13017
p
13018
b
13019
:more2
13020
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13021
p
13022
g
13023
s/.\{148\}//
13024
t delim
13025
' 
13026
/^[^""]/{
13027
  N
13028
  s/\n//
13029
}
13030
' >>$CONFIG_STATUS || ac_write_fail=1
13031
rm -f conf$$subs.awk
13032
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13033
_ACAWK
13034
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13035
  for (key in S) S_is_set[key] = 1
13036
  FS = ""
13037
 
13038
}
13039
{
13040
  line = $ 0
13041
  nfields = split(line, field, "@")
13042
  substed = 0
13043
  len = length(field[1])
13044
  for (i = 2; i < nfields; i++) {
13045
    key = field[i]
13046
    keylen = length(key)
13047
    if (S_is_set[key]) {
13048
      value = S[key]
13049
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13050
      len += length(value) + length(field[++i])
13051
      substed = 1
13052
    } else
13053
      len += 1 + keylen
13054
  }
13055
 
13056
  print line
13057
}
13058
 
13059
_ACAWK
13060
_ACEOF
13061
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13062
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13063
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13064
else
13065
  cat
13066
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13067
  || as_fn_error "could not setup config files machinery" "$LINENO" 5
13068
_ACEOF
13069
 
13070
# VPATH may cause trouble with some makes, so we remove $(srcdir),
13071
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13072
# trailing colons and then remove the whole line if VPATH becomes empty
13073
# (actually we leave an empty line to preserve line numbers).
13074
if test "x$srcdir" = x.; then
13075
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
13076
s/:*\$(srcdir):*/:/
13077
s/:*\${srcdir}:*/:/
13078
s/:*@srcdir@:*/:/
13079
s/^\([^=]*=[     ]*\):*/\1/
13080
s/:*$//
13081
s/^[^=]*=[       ]*$//
13082
}'
13083
fi
13084
 
13085
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13086
fi # test -n "$CONFIG_FILES"
13087
 
13088
# Set up the scripts for CONFIG_HEADERS section.
13089
# No need to generate them if there are no CONFIG_HEADERS.
13090
# This happens for instance with `./config.status Makefile'.
13091
if test -n "$CONFIG_HEADERS"; then
13092
cat >"$tmp/defines.awk" <<\_ACAWK ||
13093
BEGIN {
13094
_ACEOF
13095
 
13096
# Transform confdefs.h into an awk script `defines.awk', embedded as
13097
# here-document in config.status, that substitutes the proper values into
13098
# config.h.in to produce config.h.
13099
 
13100
# Create a delimiter string that does not exist in confdefs.h, to ease
13101
# handling of long lines.
13102
ac_delim='%!_!# '
13103
for ac_last_try in false false :; do
13104
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13105
  if test -z "$ac_t"; then
13106
    break
13107
  elif $ac_last_try; then
13108
    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
13109
  else
13110
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13111
  fi
13112
done
13113
 
13114
# For the awk script, D is an array of macro values keyed by name,
13115
# likewise P contains macro parameters if any.  Preserve backslash
13116
# newline sequences.
13117
 
13118
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13119
sed -n '
13120
s/.\{148\}/&'"$ac_delim"'/g
13121
t rset
13122
:rset
13123
s/^[     ]*#[    ]*define[       ][      ]*/ /
13124
t def
13125
d
13126
:def
13127
s/\\$//
13128
t bsnl
13129
s/["\\]/\\&/g
13130
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13131
D["\1"]=" \3"/p
13132
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
13133
d
13134
:bsnl
13135
s/["\\]/\\&/g
13136
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13137
D["\1"]=" \3\\\\\\n"\\/p
13138
t cont
13139
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13140
t cont
13141
d
13142
:cont
13143
n
13144
s/.\{148\}/&'"$ac_delim"'/g
13145
t clear
13146
:clear
13147
s/\\$//
13148
t bsnlc
13149
s/["\\]/\\&/g; s/^/"/; s/$/"/p
13150
d
13151
:bsnlc
13152
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13153
b cont
13154
' 
13155
s/'"$ac_delim"'/"\\\
13156
"/g' >>$CONFIG_STATUS || ac_write_fail=1
13157
 
13158
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13159
  for (key in D) D_is_set[key] = 1
13160
  FS = ""
13161
}
13162
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13163
  line = \$ 0
13164
  split(line, arg, " ")
13165
  if (arg[1] == "#") {
13166
    defundef = arg[2]
13167
    mac1 = arg[3]
13168
  } else {
13169
    defundef = substr(arg[1], 2)
13170
    mac1 = arg[2]
13171
  }
13172
  split(mac1, mac2, "(") #)
13173
  macro = mac2[1]
13174
  prefix = substr(line, 1, index(line, defundef) - 1)
13175
  if (D_is_set[macro]) {
13176
    # Preserve the white space surrounding the "#".
13177
    print prefix "define", macro P[macro] D[macro]
13178
    next
13179
  } else {
13180
    # Replace #undef with comments.  This is necessary, for example,
13181
    # in the case of _POSIX_SOURCE, which is predefined and required
13182
    # on some systems where configure will not decide to define it.
13183
    if (defundef == "undef") {
13184
      print "/*", prefix defundef, macro, "*/"
13185
      next
13186
    }
13187
  }
13188
}
13189
{ print }
13190
_ACAWK
13191
_ACEOF
13192
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13193
  as_fn_error "could not setup config headers machinery" "$LINENO" 5
13194
fi # test -n "$CONFIG_HEADERS"
13195
 
13196
 
13197
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13198
shift
13199
for ac_tag
13200
do
13201
  case $ac_tag in
13202
  :[FHLC]) ac_mode=$ac_tag; continue;;
13203
  esac
13204
  case $ac_mode$ac_tag in
13205
  :[FHL]*:*);;
13206
  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
13207
  :[FH]-) ac_tag=-:-;;
13208
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13209
  esac
13210
  ac_save_IFS=$IFS
13211
  IFS=:
13212
  set x $ac_tag
13213
  IFS=$ac_save_IFS
13214
  shift
13215
  ac_file=$1
13216
  shift
13217
 
13218
  case $ac_mode in
13219
  :L) ac_source=$1;;
13220
  :[FH])
13221
    ac_file_inputs=
13222
    for ac_f
13223
    do
13224
      case $ac_f in
13225
      -) ac_f="$tmp/stdin";;
13226
      *) # Look for the file first in the build tree, then in the source tree
13227
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
13228
         # because $ac_f cannot contain `:'.
13229
         test -f "$ac_f" ||
13230
           case $ac_f in
13231
           [\\/$]*) false;;
13232
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13233
           esac ||
13234
           as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13235
      esac
13236
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13237
      as_fn_append ac_file_inputs " '$ac_f'"
13238
    done
13239
 
13240
    # Let's still pretend it is `configure' which instantiates (i.e., don't
13241
    # use $as_me), people would be surprised to read:
13242
    #    /* config.h.  Generated by config.status.  */
13243
    configure_input='Generated from '`
13244
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13245
        `' by configure.'
13246
    if test x"$ac_file" != x-; then
13247
      configure_input="$ac_file.  $configure_input"
13248
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13249
$as_echo "$as_me: creating $ac_file" >&6;}
13250
    fi
13251
    # Neutralize special characters interpreted by sed in replacement strings.
13252
    case $configure_input in #(
13253
    *\&* | *\|* | *\\* )
13254
       ac_sed_conf_input=`$as_echo "$configure_input" |
13255
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
13256
    *) ac_sed_conf_input=$configure_input;;
13257
    esac
13258
 
13259
    case $ac_tag in
13260
    *:-:* | *:-) cat >"$tmp/stdin" \
13261
      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
13262
    esac
13263
    ;;
13264
  esac
13265
 
13266
  ac_dir=`$as_dirname -- "$ac_file" ||
13267
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13268
         X"$ac_file" : 'X\(//\)[^/]' \| \
13269
         X"$ac_file" : 'X\(//\)$' \| \
13270
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13271
$as_echo X"$ac_file" |
13272
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13273
            s//\1/
13274
            q
13275
          }
13276
          /^X\(\/\/\)[^/].*/{
13277
            s//\1/
13278
            q
13279
          }
13280
          /^X\(\/\/\)$/{
13281
            s//\1/
13282
            q
13283
          }
13284
          /^X\(\/\).*/{
13285
            s//\1/
13286
            q
13287
          }
13288
          s/.*/./; q'`
13289
  as_dir="$ac_dir"; as_fn_mkdir_p
13290
  ac_builddir=.
13291
 
13292
case "$ac_dir" in
13293
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13294
*)
13295
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13296
  # A ".." for each directory in $ac_dir_suffix.
13297
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13298
  case $ac_top_builddir_sub in
13299
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13300
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13301
  esac ;;
13302
esac
13303
ac_abs_top_builddir=$ac_pwd
13304
ac_abs_builddir=$ac_pwd$ac_dir_suffix
13305
# for backward compatibility:
13306
ac_top_builddir=$ac_top_build_prefix
13307
 
13308
case $srcdir in
13309
  .)  # We are building in place.
13310
    ac_srcdir=.
13311
    ac_top_srcdir=$ac_top_builddir_sub
13312
    ac_abs_top_srcdir=$ac_pwd ;;
13313
  [\\/]* | ?:[\\/]* )  # Absolute name.
13314
    ac_srcdir=$srcdir$ac_dir_suffix;
13315
    ac_top_srcdir=$srcdir
13316
    ac_abs_top_srcdir=$srcdir ;;
13317
  *) # Relative name.
13318
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13319
    ac_top_srcdir=$ac_top_build_prefix$srcdir
13320
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13321
esac
13322
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13323
 
13324
 
13325
  case $ac_mode in
13326
  :F)
13327
  #
13328
  # CONFIG_FILE
13329
  #
13330
 
13331
  case $INSTALL in
13332
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13333
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13334
  esac
13335
  ac_MKDIR_P=$MKDIR_P
13336
  case $MKDIR_P in
13337
  [\\/$]* | ?:[\\/]* ) ;;
13338
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13339
  esac
13340
_ACEOF
13341
 
13342
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13343
# If the template does not know about datarootdir, expand it.
13344
# FIXME: This hack should be removed a few years after 2.60.
13345
ac_datarootdir_hack=; ac_datarootdir_seen=
13346
ac_sed_dataroot='
13347
/datarootdir/ {
13348
  p
13349
  q
13350
}
13351
/@datadir@/p
13352
/@docdir@/p
13353
/@infodir@/p
13354
/@localedir@/p
13355
/@mandir@/p'
13356
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13357
*datarootdir*) ac_datarootdir_seen=yes;;
13358
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13359
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13360
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13361
_ACEOF
13362
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13363
  ac_datarootdir_hack='
13364
  s&@datadir@&$datadir&g
13365
  s&@docdir@&$docdir&g
13366
  s&@infodir@&$infodir&g
13367
  s&@localedir@&$localedir&g
13368
  s&@mandir@&$mandir&g
13369
  s&\\\${datarootdir}&$datarootdir&g' ;;
13370
esac
13371
_ACEOF
13372
 
13373
# Neutralize VPATH when `$srcdir' = `.'.
13374
# Shell code in configure.ac might set extrasub.
13375
# FIXME: do we really want to maintain this feature?
13376
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13377
ac_sed_extra="$ac_vpsub
13378
$extrasub
13379
_ACEOF
13380
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13381
:t
13382
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13383
s|@configure_input@|$ac_sed_conf_input|;t t
13384
s&@top_builddir@&$ac_top_builddir_sub&;t t
13385
s&@top_build_prefix@&$ac_top_build_prefix&;t t
13386
s&@srcdir@&$ac_srcdir&;t t
13387
s&@abs_srcdir@&$ac_abs_srcdir&;t t
13388
s&@top_srcdir@&$ac_top_srcdir&;t t
13389
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13390
s&@builddir@&$ac_builddir&;t t
13391
s&@abs_builddir@&$ac_abs_builddir&;t t
13392
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13393
s&@INSTALL@&$ac_INSTALL&;t t
13394
s&@MKDIR_P@&$ac_MKDIR_P&;t t
13395
$ac_datarootdir_hack
13396
"
13397
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13398
  || as_fn_error "could not create $ac_file" "$LINENO" 5
13399
 
13400
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13401
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13402
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13403
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13404
which seems to be undefined.  Please make sure it is defined." >&5
13405
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13406
which seems to be undefined.  Please make sure it is defined." >&2;}
13407
 
13408
  rm -f "$tmp/stdin"
13409
  case $ac_file in
13410
  -) cat "$tmp/out" && rm -f "$tmp/out";;
13411
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13412
  esac \
13413
  || as_fn_error "could not create $ac_file" "$LINENO" 5
13414
 ;;
13415
  :H)
13416
  #
13417
  # CONFIG_HEADER
13418
  #
13419
  if test x"$ac_file" != x-; then
13420
    {
13421
      $as_echo "/* $configure_input  */" \
13422
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13423
    } >"$tmp/config.h" \
13424
      || as_fn_error "could not create $ac_file" "$LINENO" 5
13425
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13426
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13427
$as_echo "$as_me: $ac_file is unchanged" >&6;}
13428
    else
13429
      rm -f "$ac_file"
13430
      mv "$tmp/config.h" "$ac_file" \
13431
        || as_fn_error "could not create $ac_file" "$LINENO" 5
13432
    fi
13433
  else
13434
    $as_echo "/* $configure_input  */" \
13435
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13436
      || as_fn_error "could not create -" "$LINENO" 5
13437
  fi
13438
# Compute "$ac_file"'s index in $config_headers.
13439
_am_arg="$ac_file"
13440
_am_stamp_count=1
13441
for _am_header in $config_headers :; do
13442
  case $_am_header in
13443
    $_am_arg | $_am_arg:* )
13444
      break ;;
13445
    * )
13446
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13447
  esac
13448
done
13449
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13450
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13451
         X"$_am_arg" : 'X\(//\)[^/]' \| \
13452
         X"$_am_arg" : 'X\(//\)$' \| \
13453
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13454
$as_echo X"$_am_arg" |
13455
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13456
            s//\1/
13457
            q
13458
          }
13459
          /^X\(\/\/\)[^/].*/{
13460
            s//\1/
13461
            q
13462
          }
13463
          /^X\(\/\/\)$/{
13464
            s//\1/
13465
            q
13466
          }
13467
          /^X\(\/\).*/{
13468
            s//\1/
13469
            q
13470
          }
13471
          s/.*/./; q'`/stamp-h$_am_stamp_count
13472
 ;;
13473
 
13474
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13475
$as_echo "$as_me: executing $ac_file commands" >&6;}
13476
 ;;
13477
  esac
13478
 
13479
 
13480
  case $ac_file$ac_mode in
13481
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13482
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
13483
  # are listed without --file.  Let's play safe and only enable the eval
13484
  # if we detect the quoting.
13485
  case $CONFIG_FILES in
13486
  *\'*) eval set x "$CONFIG_FILES" ;;
13487
  *)   set x $CONFIG_FILES ;;
13488
  esac
13489
  shift
13490
  for mf
13491
  do
13492
    # Strip MF so we end up with the name of the file.
13493
    mf=`echo "$mf" | sed -e 's/:.*$//'`
13494
    # Check whether this is an Automake generated Makefile or not.
13495
    # We used to match only the files named `Makefile.in', but
13496
    # some people rename them; so instead we look at the file content.
13497
    # Grep'ing the first line is not enough: some people post-process
13498
    # each Makefile.in and add a new line on top of each file to say so.
13499
    # Grep'ing the whole file is not good either: AIX grep has a line
13500
    # limit of 2048, but all sed's we know have understand at least 4000.
13501
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13502
      dirpart=`$as_dirname -- "$mf" ||
13503
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13504
         X"$mf" : 'X\(//\)[^/]' \| \
13505
         X"$mf" : 'X\(//\)$' \| \
13506
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13507
$as_echo X"$mf" |
13508
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13509
            s//\1/
13510
            q
13511
          }
13512
          /^X\(\/\/\)[^/].*/{
13513
            s//\1/
13514
            q
13515
          }
13516
          /^X\(\/\/\)$/{
13517
            s//\1/
13518
            q
13519
          }
13520
          /^X\(\/\).*/{
13521
            s//\1/
13522
            q
13523
          }
13524
          s/.*/./; q'`
13525
    else
13526
      continue
13527
    fi
13528
    # Extract the definition of DEPDIR, am__include, and am__quote
13529
    # from the Makefile without running `make'.
13530
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13531
    test -z "$DEPDIR" && continue
13532
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
13533
    test -z "am__include" && continue
13534
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13535
    # When using ansi2knr, U may be empty or an underscore; expand it
13536
    U=`sed -n 's/^U = //p' < "$mf"`
13537
    # Find all dependency output files, they are included files with
13538
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
13539
    # simplest approach to changing $(DEPDIR) to its actual value in the
13540
    # expansion.
13541
    for file in `sed -n "
13542
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13543
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13544
      # Make sure the directory exists.
13545
      test -f "$dirpart/$file" && continue
13546
      fdir=`$as_dirname -- "$file" ||
13547
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13548
         X"$file" : 'X\(//\)[^/]' \| \
13549
         X"$file" : 'X\(//\)$' \| \
13550
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13551
$as_echo X"$file" |
13552
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13553
            s//\1/
13554
            q
13555
          }
13556
          /^X\(\/\/\)[^/].*/{
13557
            s//\1/
13558
            q
13559
          }
13560
          /^X\(\/\/\)$/{
13561
            s//\1/
13562
            q
13563
          }
13564
          /^X\(\/\).*/{
13565
            s//\1/
13566
            q
13567
          }
13568
          s/.*/./; q'`
13569
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
13570
      # echo "creating $dirpart/$file"
13571
      echo '# dummy' > "$dirpart/$file"
13572
    done
13573
  done
13574
}
13575
 ;;
13576
    "libtool":C)
13577
 
13578
    # See if we are running on zsh, and set the options which allow our
13579
    # commands through without removal of \ escapes.
13580
    if test -n "${ZSH_VERSION+set}" ; then
13581
      setopt NO_GLOB_SUBST
13582
    fi
13583
 
13584
    cfgfile="${ofile}T"
13585
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13586
    $RM "$cfgfile"
13587
 
13588
    cat <<_LT_EOF >> "$cfgfile"
13589
#! $SHELL
13590
 
13591
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13592
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13593
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13594
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13595
#
13596
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13597
#                 2006, 2007, 2008 Free Software Foundation, Inc.
13598
#   Written by Gordon Matzigkeit, 1996
13599
#
13600
#   This file is part of GNU Libtool.
13601
#
13602
# GNU Libtool is free software; you can redistribute it and/or
13603
# modify it under the terms of the GNU General Public License as
13604
# published by the Free Software Foundation; either version 2 of
13605
# the License, or (at your option) any later version.
13606
#
13607
# As a special exception to the GNU General Public License,
13608
# if you distribute this file as part of a program or library that
13609
# is built using GNU Libtool, you may include this file under the
13610
# same distribution terms that you use for the rest of that program.
13611
#
13612
# GNU Libtool is distributed in the hope that it will be useful,
13613
# but WITHOUT ANY WARRANTY; without even the implied warranty of
13614
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13615
# GNU General Public License for more details.
13616
#
13617
# You should have received a copy of the GNU General Public License
13618
# along with GNU Libtool; see the file COPYING.  If not, a copy
13619
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13620
# obtained by writing to the Free Software Foundation, Inc.,
13621
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13622
 
13623
 
13624
# The names of the tagged configurations supported by this script.
13625
available_tags=""
13626
 
13627
# ### BEGIN LIBTOOL CONFIG
13628
 
13629
# Which release of libtool.m4 was used?
13630
macro_version=$macro_version
13631
macro_revision=$macro_revision
13632
 
13633
# Whether or not to build shared libraries.
13634
build_libtool_libs=$enable_shared
13635
 
13636
# Whether or not to build static libraries.
13637
build_old_libs=$enable_static
13638
 
13639
# What type of objects to build.
13640
pic_mode=$pic_mode
13641
 
13642
# Whether or not to optimize for fast installation.
13643
fast_install=$enable_fast_install
13644
 
13645
# The host system.
13646
host_alias=$host_alias
13647
host=$host
13648
host_os=$host_os
13649
 
13650
# The build system.
13651
build_alias=$build_alias
13652
build=$build
13653
build_os=$build_os
13654
 
13655
# A sed program that does not truncate output.
13656
SED=$lt_SED
13657
 
13658
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13659
Xsed="\$SED -e 1s/^X//"
13660
 
13661
# A grep program that handles long lines.
13662
GREP=$lt_GREP
13663
 
13664
# An ERE matcher.
13665
EGREP=$lt_EGREP
13666
 
13667
# A literal string matcher.
13668
FGREP=$lt_FGREP
13669
 
13670
# A BSD- or MS-compatible name lister.
13671
NM=$lt_NM
13672
 
13673
# Whether we need soft or hard links.
13674
LN_S=$lt_LN_S
13675
 
13676
# What is the maximum length of a command?
13677
max_cmd_len=$max_cmd_len
13678
 
13679
# Object file suffix (normally "o").
13680
objext=$ac_objext
13681
 
13682
# Executable file suffix (normally "").
13683
exeext=$exeext
13684
 
13685
# whether the shell understands "unset".
13686
lt_unset=$lt_unset
13687
 
13688
# turn spaces into newlines.
13689
SP2NL=$lt_lt_SP2NL
13690
 
13691
# turn newlines into spaces.
13692
NL2SP=$lt_lt_NL2SP
13693
 
13694
# How to create reloadable object files.
13695
reload_flag=$lt_reload_flag
13696
reload_cmds=$lt_reload_cmds
13697
 
13698
# An object symbol dumper.
13699
OBJDUMP=$lt_OBJDUMP
13700
 
13701
# Method to check whether dependent libraries are shared objects.
13702
deplibs_check_method=$lt_deplibs_check_method
13703
 
13704
# Command to use when deplibs_check_method == "file_magic".
13705
file_magic_cmd=$lt_file_magic_cmd
13706
 
13707
# The archiver.
13708
AR=$lt_AR
13709
AR_FLAGS=$lt_AR_FLAGS
13710
 
13711
# A symbol stripping program.
13712
STRIP=$lt_STRIP
13713
 
13714
# Commands used to install an old-style archive.
13715
RANLIB=$lt_RANLIB
13716
old_postinstall_cmds=$lt_old_postinstall_cmds
13717
old_postuninstall_cmds=$lt_old_postuninstall_cmds
13718
 
13719
# A C compiler.
13720
LTCC=$lt_CC
13721
 
13722
# LTCC compiler flags.
13723
LTCFLAGS=$lt_CFLAGS
13724
 
13725
# Take the output of nm and produce a listing of raw symbols and C names.
13726
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13727
 
13728
# Transform the output of nm in a proper C declaration.
13729
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13730
 
13731
# Transform the output of nm in a C name address pair.
13732
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13733
 
13734
# Transform the output of nm in a C name address pair when lib prefix is needed.
13735
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13736
 
13737
# The name of the directory that contains temporary libtool files.
13738
objdir=$objdir
13739
 
13740
# Shell to use when invoking shell scripts.
13741
SHELL=$lt_SHELL
13742
 
13743
# An echo program that does not interpret backslashes.
13744
ECHO=$lt_ECHO
13745
 
13746
# Used to examine libraries when file_magic_cmd begins with "file".
13747
MAGIC_CMD=$MAGIC_CMD
13748
 
13749
# Must we lock files when doing compilation?
13750
need_locks=$lt_need_locks
13751
 
13752
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13753
DSYMUTIL=$lt_DSYMUTIL
13754
 
13755
# Tool to change global to local symbols on Mac OS X.
13756
NMEDIT=$lt_NMEDIT
13757
 
13758
# Tool to manipulate fat objects and archives on Mac OS X.
13759
LIPO=$lt_LIPO
13760
 
13761
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13762
OTOOL=$lt_OTOOL
13763
 
13764
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13765
OTOOL64=$lt_OTOOL64
13766
 
13767
# Old archive suffix (normally "a").
13768
libext=$libext
13769
 
13770
# Shared library suffix (normally ".so").
13771
shrext_cmds=$lt_shrext_cmds
13772
 
13773
# The commands to extract the exported symbol list from a shared archive.
13774
extract_expsyms_cmds=$lt_extract_expsyms_cmds
13775
 
13776
# Variables whose values should be saved in libtool wrapper scripts and
13777
# restored at link time.
13778
variables_saved_for_relink=$lt_variables_saved_for_relink
13779
 
13780
# Do we need the "lib" prefix for modules?
13781
need_lib_prefix=$need_lib_prefix
13782
 
13783
# Do we need a version for libraries?
13784
need_version=$need_version
13785
 
13786
# Library versioning type.
13787
version_type=$version_type
13788
 
13789
# Shared library runtime path variable.
13790
runpath_var=$runpath_var
13791
 
13792
# Shared library path variable.
13793
shlibpath_var=$shlibpath_var
13794
 
13795
# Is shlibpath searched before the hard-coded library search path?
13796
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13797
 
13798
# Format of library name prefix.
13799
libname_spec=$lt_libname_spec
13800
 
13801
# List of archive names.  First name is the real one, the rest are links.
13802
# The last name is the one that the linker finds with -lNAME
13803
library_names_spec=$lt_library_names_spec
13804
 
13805
# The coded name of the library, if different from the real name.
13806
soname_spec=$lt_soname_spec
13807
 
13808
# Command to use after installation of a shared archive.
13809
postinstall_cmds=$lt_postinstall_cmds
13810
 
13811
# Command to use after uninstallation of a shared archive.
13812
postuninstall_cmds=$lt_postuninstall_cmds
13813
 
13814
# Commands used to finish a libtool library installation in a directory.
13815
finish_cmds=$lt_finish_cmds
13816
 
13817
# As "finish_cmds", except a single script fragment to be evaled but
13818
# not shown.
13819
finish_eval=$lt_finish_eval
13820
 
13821
# Whether we should hardcode library paths into libraries.
13822
hardcode_into_libs=$hardcode_into_libs
13823
 
13824
# Compile-time system search path for libraries.
13825
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13826
 
13827
# Run-time system search path for libraries.
13828
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13829
 
13830
# Whether dlopen is supported.
13831
dlopen_support=$enable_dlopen
13832
 
13833
# Whether dlopen of programs is supported.
13834
dlopen_self=$enable_dlopen_self
13835
 
13836
# Whether dlopen of statically linked programs is supported.
13837
dlopen_self_static=$enable_dlopen_self_static
13838
 
13839
# Commands to strip libraries.
13840
old_striplib=$lt_old_striplib
13841
striplib=$lt_striplib
13842
 
13843
 
13844
# The linker used to build libraries.
13845
LD=$lt_LD
13846
 
13847
# Commands used to build an old-style archive.
13848
old_archive_cmds=$lt_old_archive_cmds
13849
 
13850
# A language specific compiler.
13851
CC=$lt_compiler
13852
 
13853
# Is the compiler the GNU compiler?
13854
with_gcc=$GCC
13855
 
13856
# Compiler flag to turn off builtin functions.
13857
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13858
 
13859
# How to pass a linker flag through the compiler.
13860
wl=$lt_lt_prog_compiler_wl
13861
 
13862
# Additional compiler flags for building library objects.
13863
pic_flag=$lt_lt_prog_compiler_pic
13864
 
13865
# Compiler flag to prevent dynamic linking.
13866
link_static_flag=$lt_lt_prog_compiler_static
13867
 
13868
# Does compiler simultaneously support -c and -o options?
13869
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13870
 
13871
# Whether or not to add -lc for building shared libraries.
13872
build_libtool_need_lc=$archive_cmds_need_lc
13873
 
13874
# Whether or not to disallow shared libs when runtime libs are static.
13875
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13876
 
13877
# Compiler flag to allow reflexive dlopens.
13878
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13879
 
13880
# Compiler flag to generate shared objects directly from archives.
13881
whole_archive_flag_spec=$lt_whole_archive_flag_spec
13882
 
13883
# Whether the compiler copes with passing no objects directly.
13884
compiler_needs_object=$lt_compiler_needs_object
13885
 
13886
# Create an old-style archive from a shared archive.
13887
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13888
 
13889
# Create a temporary old-style archive to link instead of a shared archive.
13890
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13891
 
13892
# Commands used to build a shared archive.
13893
archive_cmds=$lt_archive_cmds
13894
archive_expsym_cmds=$lt_archive_expsym_cmds
13895
 
13896
# Commands used to build a loadable module if different from building
13897
# a shared archive.
13898
module_cmds=$lt_module_cmds
13899
module_expsym_cmds=$lt_module_expsym_cmds
13900
 
13901
# Whether we are building with GNU ld or not.
13902
with_gnu_ld=$lt_with_gnu_ld
13903
 
13904
# Flag that allows shared libraries with undefined symbols to be built.
13905
allow_undefined_flag=$lt_allow_undefined_flag
13906
 
13907
# Flag that enforces no undefined symbols.
13908
no_undefined_flag=$lt_no_undefined_flag
13909
 
13910
# Flag to hardcode \$libdir into a binary during linking.
13911
# This must work even if \$libdir does not exist
13912
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13913
 
13914
# If ld is used when linking, flag to hardcode \$libdir into a binary
13915
# during linking.  This must work even if \$libdir does not exist.
13916
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13917
 
13918
# Whether we need a single "-rpath" flag with a separated argument.
13919
hardcode_libdir_separator=$lt_hardcode_libdir_separator
13920
 
13921
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13922
# DIR into the resulting binary.
13923
hardcode_direct=$hardcode_direct
13924
 
13925
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13926
# DIR into the resulting binary and the resulting library dependency is
13927
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13928
# library is relocated.
13929
hardcode_direct_absolute=$hardcode_direct_absolute
13930
 
13931
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13932
# into the resulting binary.
13933
hardcode_minus_L=$hardcode_minus_L
13934
 
13935
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13936
# into the resulting binary.
13937
hardcode_shlibpath_var=$hardcode_shlibpath_var
13938
 
13939
# Set to "yes" if building a shared library automatically hardcodes DIR
13940
# into the library and all subsequent libraries and executables linked
13941
# against it.
13942
hardcode_automatic=$hardcode_automatic
13943
 
13944
# Set to yes if linker adds runtime paths of dependent libraries
13945
# to runtime path list.
13946
inherit_rpath=$inherit_rpath
13947
 
13948
# Whether libtool must link a program against all its dependency libraries.
13949
link_all_deplibs=$link_all_deplibs
13950
 
13951
# Fix the shell variable \$srcfile for the compiler.
13952
fix_srcfile_path=$lt_fix_srcfile_path
13953
 
13954
# Set to "yes" if exported symbols are required.
13955
always_export_symbols=$always_export_symbols
13956
 
13957
# The commands to list exported symbols.
13958
export_symbols_cmds=$lt_export_symbols_cmds
13959
 
13960
# Symbols that should not be listed in the preloaded symbols.
13961
exclude_expsyms=$lt_exclude_expsyms
13962
 
13963
# Symbols that must always be exported.
13964
include_expsyms=$lt_include_expsyms
13965
 
13966
# Commands necessary for linking programs (against libraries) with templates.
13967
prelink_cmds=$lt_prelink_cmds
13968
 
13969
# Specify filename containing input files.
13970
file_list_spec=$lt_file_list_spec
13971
 
13972
# How to hardcode a shared library path into an executable.
13973
hardcode_action=$hardcode_action
13974
 
13975
# ### END LIBTOOL CONFIG
13976
 
13977
_LT_EOF
13978
 
13979
  case $host_os in
13980
  aix3*)
13981
    cat <<\_LT_EOF >> "$cfgfile"
13982
# AIX sometimes has problems with the GCC collect2 program.  For some
13983
# reason, if we set the COLLECT_NAMES environment variable, the problems
13984
# vanish in a puff of smoke.
13985
if test "X${COLLECT_NAMES+set}" != Xset; then
13986
  COLLECT_NAMES=
13987
  export COLLECT_NAMES
13988
fi
13989
_LT_EOF
13990
    ;;
13991
  esac
13992
 
13993
 
13994
ltmain="$ac_aux_dir/ltmain.sh"
13995
 
13996
 
13997
  # We use sed instead of cat because bash on DJGPP gets confused if
13998
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
13999
  # text mode, it properly converts lines to CR/LF.  This bash problem
14000
  # is reportedly fixed, but why not run on old versions too?
14001
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14002
    || (rm -f "$cfgfile"; exit 1)
14003
 
14004
  case $xsi_shell in
14005
  yes)
14006
    cat << \_LT_EOF >> "$cfgfile"
14007
 
14008
# func_dirname file append nondir_replacement
14009
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14010
# otherwise set result to NONDIR_REPLACEMENT.
14011
func_dirname ()
14012
{
14013
  case ${1} in
14014
    */*) func_dirname_result="${1%/*}${2}" ;;
14015
    *  ) func_dirname_result="${3}" ;;
14016
  esac
14017
}
14018
 
14019
# func_basename file
14020
func_basename ()
14021
{
14022
  func_basename_result="${1##*/}"
14023
}
14024
 
14025
# func_dirname_and_basename file append nondir_replacement
14026
# perform func_basename and func_dirname in a single function
14027
# call:
14028
#   dirname:  Compute the dirname of FILE.  If nonempty,
14029
#             add APPEND to the result, otherwise set result
14030
#             to NONDIR_REPLACEMENT.
14031
#             value returned in "$func_dirname_result"
14032
#   basename: Compute filename of FILE.
14033
#             value retuned in "$func_basename_result"
14034
# Implementation must be kept synchronized with func_dirname
14035
# and func_basename. For efficiency, we do not delegate to
14036
# those functions but instead duplicate the functionality here.
14037
func_dirname_and_basename ()
14038
{
14039
  case ${1} in
14040
    */*) func_dirname_result="${1%/*}${2}" ;;
14041
    *  ) func_dirname_result="${3}" ;;
14042
  esac
14043
  func_basename_result="${1##*/}"
14044
}
14045
 
14046
# func_stripname prefix suffix name
14047
# strip PREFIX and SUFFIX off of NAME.
14048
# PREFIX and SUFFIX must not contain globbing or regex special
14049
# characters, hashes, percent signs, but SUFFIX may contain a leading
14050
# dot (in which case that matches only a dot).
14051
func_stripname ()
14052
{
14053
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14054
  # positional parameters, so assign one to ordinary parameter first.
14055
  func_stripname_result=${3}
14056
  func_stripname_result=${func_stripname_result#"${1}"}
14057
  func_stripname_result=${func_stripname_result%"${2}"}
14058
}
14059
 
14060
# func_opt_split
14061
func_opt_split ()
14062
{
14063
  func_opt_split_opt=${1%%=*}
14064
  func_opt_split_arg=${1#*=}
14065
}
14066
 
14067
# func_lo2o object
14068
func_lo2o ()
14069
{
14070
  case ${1} in
14071
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14072
    *)    func_lo2o_result=${1} ;;
14073
  esac
14074
}
14075
 
14076
# func_xform libobj-or-source
14077
func_xform ()
14078
{
14079
  func_xform_result=${1%.*}.lo
14080
}
14081
 
14082
# func_arith arithmetic-term...
14083
func_arith ()
14084
{
14085
  func_arith_result=$(( $* ))
14086
}
14087
 
14088
# func_len string
14089
# STRING may not start with a hyphen.
14090
func_len ()
14091
{
14092
  func_len_result=${#1}
14093
}
14094
 
14095
_LT_EOF
14096
    ;;
14097
  *) # Bourne compatible functions.
14098
    cat << \_LT_EOF >> "$cfgfile"
14099
 
14100
# func_dirname file append nondir_replacement
14101
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14102
# otherwise set result to NONDIR_REPLACEMENT.
14103
func_dirname ()
14104
{
14105
  # Extract subdirectory from the argument.
14106
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14107
  if test "X$func_dirname_result" = "X${1}"; then
14108
    func_dirname_result="${3}"
14109
  else
14110
    func_dirname_result="$func_dirname_result${2}"
14111
  fi
14112
}
14113
 
14114
# func_basename file
14115
func_basename ()
14116
{
14117
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14118
}
14119
 
14120
 
14121
# func_stripname prefix suffix name
14122
# strip PREFIX and SUFFIX off of NAME.
14123
# PREFIX and SUFFIX must not contain globbing or regex special
14124
# characters, hashes, percent signs, but SUFFIX may contain a leading
14125
# dot (in which case that matches only a dot).
14126
# func_strip_suffix prefix name
14127
func_stripname ()
14128
{
14129
  case ${2} in
14130
    .*) func_stripname_result=`$ECHO "X${3}" \
14131
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14132
    *)  func_stripname_result=`$ECHO "X${3}" \
14133
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14134
  esac
14135
}
14136
 
14137
# sed scripts:
14138
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14139
my_sed_long_arg='1s/^-[^=]*=//'
14140
 
14141
# func_opt_split
14142
func_opt_split ()
14143
{
14144
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14145
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14146
}
14147
 
14148
# func_lo2o object
14149
func_lo2o ()
14150
{
14151
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14152
}
14153
 
14154
# func_xform libobj-or-source
14155
func_xform ()
14156
{
14157
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
14158
}
14159
 
14160
# func_arith arithmetic-term...
14161
func_arith ()
14162
{
14163
  func_arith_result=`expr "$@"`
14164
}
14165
 
14166
# func_len string
14167
# STRING may not start with a hyphen.
14168
func_len ()
14169
{
14170
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14171
}
14172
 
14173
_LT_EOF
14174
esac
14175
 
14176
case $lt_shell_append in
14177
  yes)
14178
    cat << \_LT_EOF >> "$cfgfile"
14179
 
14180
# func_append var value
14181
# Append VALUE to the end of shell variable VAR.
14182
func_append ()
14183
{
14184
  eval "$1+=\$2"
14185
}
14186
_LT_EOF
14187
    ;;
14188
  *)
14189
    cat << \_LT_EOF >> "$cfgfile"
14190
 
14191
# func_append var value
14192
# Append VALUE to the end of shell variable VAR.
14193
func_append ()
14194
{
14195
  eval "$1=\$$1\$2"
14196
}
14197
 
14198
_LT_EOF
14199
    ;;
14200
  esac
14201
 
14202
 
14203
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14204
    || (rm -f "$cfgfile"; exit 1)
14205
 
14206
  mv -f "$cfgfile" "$ofile" ||
14207
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14208
  chmod +x "$ofile"
14209
 
14210
 ;;
14211
    "default-1":C)
14212
    for ac_file in $CONFIG_FILES; do
14213
      # Support "outfile[:infile[:infile...]]"
14214
      case "$ac_file" in
14215
        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14216
      esac
14217
      # PO directories have a Makefile.in generated from Makefile.in.in.
14218
      case "$ac_file" in */Makefile.in)
14219
        # Adjust a relative srcdir.
14220
        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
14221
        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
14222
        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
14223
        # In autoconf-2.13 it is called $ac_given_srcdir.
14224
        # In autoconf-2.50 it is called $srcdir.
14225
        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
14226
        case "$ac_given_srcdir" in
14227
          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
14228
          /*) top_srcdir="$ac_given_srcdir" ;;
14229
          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
14230
        esac
14231
        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
14232
          rm -f "$ac_dir/POTFILES"
14233
          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
14234
          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
14235
          POMAKEFILEDEPS="POTFILES.in"
14236
          # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
14237
          # on $ac_dir but don't depend on user-specified configuration
14238
          # parameters.
14239
          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
14240
            # The LINGUAS file contains the set of available languages.
14241
            if test -n "$OBSOLETE_ALL_LINGUAS"; then
14242
              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
14243
            fi
14244
            ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
14245
            # Hide the ALL_LINGUAS assigment from automake.
14246
            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
14247
            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
14248
          else
14249
            # The set of available languages was given in configure.in.
14250
            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
14251
          fi
14252
          case "$ac_given_srcdir" in
14253
            .) srcdirpre= ;;
14254
            *) srcdirpre='$(srcdir)/' ;;
14255
          esac
14256
          POFILES=
14257
          GMOFILES=
14258
          UPDATEPOFILES=
14259
          DUMMYPOFILES=
14260
          for lang in $ALL_LINGUAS; do
14261
            POFILES="$POFILES $srcdirpre$lang.po"
14262
            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
14263
            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
14264
            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
14265
          done
14266
          # CATALOGS depends on both $ac_dir and the user's LINGUAS
14267
          # environment variable.
14268
          INST_LINGUAS=
14269
          if test -n "$ALL_LINGUAS"; then
14270
            for presentlang in $ALL_LINGUAS; do
14271
              useit=no
14272
              if test "%UNSET%" != "$LINGUAS"; then
14273
                desiredlanguages="$LINGUAS"
14274
              else
14275
                desiredlanguages="$ALL_LINGUAS"
14276
              fi
14277
              for desiredlang in $desiredlanguages; do
14278
                # Use the presentlang catalog if desiredlang is
14279
                #   a. equal to presentlang, or
14280
                #   b. a variant of presentlang (because in this case,
14281
                #      presentlang can be used as a fallback for messages
14282
                #      which are not translated in the desiredlang catalog).
14283
                case "$desiredlang" in
14284
                  "$presentlang"*) useit=yes;;
14285
                esac
14286
              done
14287
              if test $useit = yes; then
14288
                INST_LINGUAS="$INST_LINGUAS $presentlang"
14289
              fi
14290
            done
14291
          fi
14292
          CATALOGS=
14293
          if test -n "$INST_LINGUAS"; then
14294
            for lang in $INST_LINGUAS; do
14295
              CATALOGS="$CATALOGS $lang.gmo"
14296
            done
14297
          fi
14298
          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
14299
          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
14300
          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
14301
            if test -f "$f"; then
14302
              case "$f" in
14303
                *.orig | *.bak | *~) ;;
14304
                *) cat "$f" >> "$ac_dir/Makefile" ;;
14305
              esac
14306
            fi
14307
          done
14308
        fi
14309
        ;;
14310
      esac
14311
    done ;;
14312
 
14313
  esac
14314
done # for ac_tag
14315
 
14316
 
14317
as_fn_exit 0
14318
_ACEOF
14319
ac_clean_files=$ac_clean_files_save
14320
 
14321
test $ac_write_fail = 0 ||
14322
  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
14323
 
14324
 
14325
# configure is writing to config.log, and then calls config.status.
14326
# config.status does its own redirection, appending to config.log.
14327
# Unfortunately, on DOS this fails, as config.log is still kept open
14328
# by configure, so config.status won't be able to write to it; its
14329
# output is simply discarded.  So we exec the FD to /dev/null,
14330
# effectively closing config.log, so it can be properly (re)opened and
14331
# appended to by config.status.  When coming back to configure, we
14332
# need to make the FD available again.
14333
if test "$no_create" != yes; then
14334
  ac_cs_success=:
14335
  ac_config_status_args=
14336
  test "$silent" = yes &&
14337
    ac_config_status_args="$ac_config_status_args --quiet"
14338
  exec 5>/dev/null
14339
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14340
  exec 5>>config.log
14341
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14342
  # would make configure fail if this is the last instruction.
14343
  $ac_cs_success || as_fn_exit $?
14344
fi
14345
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14346
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14347
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14348
fi
14349
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.