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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [or1ksim/] [configure] - Blame information for rev 112

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 19 jeremybenn
#! /bin/sh
2 112 jeremybenn
# From configure.ac Id: configure.ac 1030 2010-06-06 17:29:07Z jeremy  using automake version AC_ACVERSION.
3 19 jeremybenn
# Guess values for system-dependent variables and create Makefiles.
4 112 jeremybenn
# Generated by GNU Autoconf 2.63 for or1ksim 2010-06-09.
5 19 jeremybenn
#
6
# Report bugs to .
7
#
8
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 101 jeremybenn
# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
10 19 jeremybenn
# This configure script is free software; the Free Software Foundation
11
# gives unlimited permission to copy, distribute and modify it.
12 82 jeremybenn
#
13
# Copyright (C) 1999-2008 OpenCores
14
# Copyright (C) 2008, 2010 Embecosm Limited
15
#
16
# Contributor Jeremy Bennett 
17
#
18
# This file is part of OpenRISC 1000 Architectural Simulator.
19
#
20
# This program is free software; you can redistribute it and/or modify it
21
# under the terms of the GNU General Public License as published by the Free
22
# Software Foundation; either version 3 of the License, or (at your option)
23
# any later version.
24
#
25
# This program is distributed in the hope that it will be useful, but WITHOUT
26
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
27
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
28
# more details.
29
#
30
# You should have received a copy of the GNU General Public License along
31
# with this program.  If not, see .
32 101 jeremybenn
## --------------------- ##
33
## M4sh Initialization.  ##
34
## --------------------- ##
35 19 jeremybenn
 
36
# Be more Bourne compatible
37
DUALCASE=1; export DUALCASE # for MKS sh
38 101 jeremybenn
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
39 19 jeremybenn
  emulate sh
40
  NULLCMD=:
41 82 jeremybenn
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
42 19 jeremybenn
  # is contrary to our usage.  Disable this feature.
43
  alias -g '${1+"$@"}'='"$@"'
44
  setopt NO_GLOB_SUBST
45
else
46 101 jeremybenn
  case `(set -o) 2>/dev/null` in
47
  *posix*) set -o posix ;;
48 19 jeremybenn
esac
49 101 jeremybenn
 
50 19 jeremybenn
fi
51
 
52
 
53 101 jeremybenn
 
54
 
55
# PATH needs CR
56
# Avoid depending upon Character Ranges.
57
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
58
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
59
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
60
as_cr_digits='0123456789'
61
as_cr_alnum=$as_cr_Letters$as_cr_digits
62
 
63 82 jeremybenn
as_nl='
64
'
65
export as_nl
66
# Printing a long string crashes Solaris 7 /usr/bin/printf.
67
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
68
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
69
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
70 101 jeremybenn
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
71 82 jeremybenn
  as_echo='printf %s\n'
72
  as_echo_n='printf %s'
73
else
74
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
75
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
76
    as_echo_n='/usr/ucb/echo -n'
77 19 jeremybenn
  else
78 82 jeremybenn
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
79
    as_echo_n_body='eval
80
      arg=$1;
81 101 jeremybenn
      case $arg in
82 82 jeremybenn
      *"$as_nl"*)
83
        expr "X$arg" : "X\\(.*\\)$as_nl";
84
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
85
      esac;
86
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
87
    '
88
    export as_echo_n_body
89
    as_echo_n='sh -c $as_echo_n_body as_echo'
90 19 jeremybenn
  fi
91 82 jeremybenn
  export as_echo_body
92
  as_echo='sh -c $as_echo_body as_echo'
93 19 jeremybenn
fi
94
 
95 82 jeremybenn
# The user is always right.
96
if test "${PATH_SEPARATOR+set}" != set; then
97
  PATH_SEPARATOR=:
98
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
99
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
100
      PATH_SEPARATOR=';'
101
  }
102
fi
103
 
104 101 jeremybenn
# Support unset when possible.
105
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
106
  as_unset=unset
107
else
108
  as_unset=false
109
fi
110 19 jeremybenn
 
111 101 jeremybenn
 
112 19 jeremybenn
# IFS
113
# We need space, tab and new line, in precisely that order.  Quoting is
114
# there to prevent editors from complaining about space-tab.
115
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
116
# splitting by setting IFS to empty value.)
117
IFS=" ""        $as_nl"
118
 
119
# Find who we are.  Look in the path if we contain no directory separator.
120 101 jeremybenn
case $0 in
121 19 jeremybenn
  *[\\/]* ) as_myself=$0 ;;
122
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
123
for as_dir in $PATH
124
do
125
  IFS=$as_save_IFS
126
  test -z "$as_dir" && as_dir=.
127 101 jeremybenn
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
128
done
129 19 jeremybenn
IFS=$as_save_IFS
130
 
131
     ;;
132
esac
133
# We did not find ourselves, most probably we were run as `sh COMMAND'
134
# in which case we are not to be found in the path.
135
if test "x$as_myself" = x; then
136
  as_myself=$0
137
fi
138
if test ! -f "$as_myself"; then
139 82 jeremybenn
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
140 101 jeremybenn
  { (exit 1); exit 1; }
141 19 jeremybenn
fi
142
 
143 101 jeremybenn
# Work around bugs in pre-3.0 UWIN ksh.
144
for as_var in ENV MAIL MAILPATH
145
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
146 19 jeremybenn
done
147
PS1='$ '
148
PS2='> '
149
PS4='+ '
150
 
151
# NLS nuisances.
152 82 jeremybenn
LC_ALL=C
153
export LC_ALL
154
LANGUAGE=C
155
export LANGUAGE
156 19 jeremybenn
 
157 101 jeremybenn
# Required to use basename.
158
if expr a : '\(a\)' >/dev/null 2>&1 &&
159
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
160
  as_expr=expr
161
else
162
  as_expr=false
163
fi
164
 
165
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
166
  as_basename=basename
167
else
168
  as_basename=false
169
fi
170
 
171
 
172
# Name of the executable.
173
as_me=`$as_basename -- "$0" ||
174
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
175
         X"$0" : 'X\(//\)$' \| \
176
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
177
$as_echo X/"$0" |
178
    sed '/^.*\/\([^/][^/]*\)\/*$/{
179
            s//\1/
180
            q
181
          }
182
          /^X\/\(\/\/\)$/{
183
            s//\1/
184
            q
185
          }
186
          /^X\/\(\/\).*/{
187
            s//\1/
188
            q
189
          }
190
          s/.*/./; q'`
191
 
192 19 jeremybenn
# CDPATH.
193 101 jeremybenn
$as_unset CDPATH
194 19 jeremybenn
 
195 101 jeremybenn
 
196 19 jeremybenn
if test "x$CONFIG_SHELL" = x; then
197 101 jeremybenn
  if (eval ":") 2>/dev/null; then
198
  as_have_required=yes
199 19 jeremybenn
else
200 101 jeremybenn
  as_have_required=no
201 19 jeremybenn
fi
202
 
203 101 jeremybenn
  if test $as_have_required = yes &&     (eval ":
204
(as_func_return () {
205
  (exit \$1)
206
}
207
as_func_success () {
208
  as_func_return 0
209
}
210
as_func_failure () {
211
  as_func_return 1
212
}
213
as_func_ret_success () {
214
  return 0
215
}
216
as_func_ret_failure () {
217
  return 1
218
}
219
 
220 19 jeremybenn
exitcode=0
221 101 jeremybenn
if as_func_success; then
222
  :
223
else
224
  exitcode=1
225
  echo as_func_success failed.
226
fi
227 19 jeremybenn
 
228 101 jeremybenn
if as_func_failure; then
229
  exitcode=1
230
  echo as_func_failure succeeded.
231
fi
232
 
233
if as_func_ret_success; then
234
  :
235 19 jeremybenn
else
236 101 jeremybenn
  exitcode=1
237
  echo as_func_ret_success failed.
238 19 jeremybenn
fi
239 101 jeremybenn
 
240
if as_func_ret_failure; then
241
  exitcode=1
242
  echo as_func_ret_failure succeeded.
243
fi
244
 
245
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
246
  :
247 19 jeremybenn
else
248 101 jeremybenn
  exitcode=1
249
  echo positional parameters were not saved.
250 19 jeremybenn
fi
251
 
252 101 jeremybenn
test \$exitcode = 0) || { (exit 1); exit 1; }
253
 
254
(
255
  as_lineno_1=\$LINENO
256
  as_lineno_2=\$LINENO
257
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
258
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
259
") 2> /dev/null; then
260
  :
261 19 jeremybenn
else
262 101 jeremybenn
  as_candidate_shells=
263
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
264 19 jeremybenn
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
265
do
266
  IFS=$as_save_IFS
267
  test -z "$as_dir" && as_dir=.
268 101 jeremybenn
  case $as_dir in
269 19 jeremybenn
         /*)
270
           for as_base in sh bash ksh sh5; do
271 101 jeremybenn
             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
272 19 jeremybenn
           done;;
273
       esac
274
done
275
IFS=$as_save_IFS
276
 
277
 
278 101 jeremybenn
      for as_shell in $as_candidate_shells $SHELL; do
279
         # Try only shells that exist, to save several forks.
280
         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
281
                { ("$as_shell") 2> /dev/null <<\_ASEOF
282
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283
  emulate sh
284
  NULLCMD=:
285
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286
  # is contrary to our usage.  Disable this feature.
287
  alias -g '${1+"$@"}'='"$@"'
288
  setopt NO_GLOB_SUBST
289
else
290
  case `(set -o) 2>/dev/null` in
291
  *posix*) set -o posix ;;
292
esac
293
 
294 19 jeremybenn
fi
295
 
296 101 jeremybenn
 
297
:
298
_ASEOF
299
}; then
300
  CONFIG_SHELL=$as_shell
301
               as_have_required=yes
302
               if { "$as_shell" 2> /dev/null <<\_ASEOF
303
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
304
  emulate sh
305
  NULLCMD=:
306
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
307
  # is contrary to our usage.  Disable this feature.
308
  alias -g '${1+"$@"}'='"$@"'
309
  setopt NO_GLOB_SUBST
310
else
311
  case `(set -o) 2>/dev/null` in
312
  *posix*) set -o posix ;;
313
esac
314
 
315 19 jeremybenn
fi
316 101 jeremybenn
 
317
 
318
:
319
(as_func_return () {
320
  (exit $1)
321
}
322
as_func_success () {
323
  as_func_return 0
324
}
325
as_func_failure () {
326
  as_func_return 1
327
}
328
as_func_ret_success () {
329
  return 0
330
}
331
as_func_ret_failure () {
332
  return 1
333
}
334
 
335
exitcode=0
336
if as_func_success; then
337
  :
338
else
339
  exitcode=1
340
  echo as_func_success failed.
341 19 jeremybenn
fi
342 101 jeremybenn
 
343
if as_func_failure; then
344
  exitcode=1
345
  echo as_func_failure succeeded.
346 19 jeremybenn
fi
347
 
348 101 jeremybenn
if as_func_ret_success; then
349
  :
350
else
351
  exitcode=1
352
  echo as_func_ret_success failed.
353
fi
354 19 jeremybenn
 
355 101 jeremybenn
if as_func_ret_failure; then
356
  exitcode=1
357
  echo as_func_ret_failure succeeded.
358
fi
359 19 jeremybenn
 
360 101 jeremybenn
if ( set x; as_func_ret_success y && test x = "$1" ); then
361
  :
362
else
363
  exitcode=1
364
  echo positional parameters were not saved.
365
fi
366 19 jeremybenn
 
367 101 jeremybenn
test $exitcode = 0) || { (exit 1); exit 1; }
368 19 jeremybenn
 
369 101 jeremybenn
(
370
  as_lineno_1=$LINENO
371
  as_lineno_2=$LINENO
372
  test "x$as_lineno_1" != "x$as_lineno_2" &&
373
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
374 19 jeremybenn
 
375 101 jeremybenn
_ASEOF
376
}; then
377
  break
378
fi
379 19 jeremybenn
 
380 101 jeremybenn
fi
381 19 jeremybenn
 
382 101 jeremybenn
      done
383 19 jeremybenn
 
384 101 jeremybenn
      if test "x$CONFIG_SHELL" != x; then
385
  for as_var in BASH_ENV ENV
386
        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
387
        done
388
        export CONFIG_SHELL
389
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
390
fi
391 19 jeremybenn
 
392
 
393 101 jeremybenn
    if test $as_have_required = no; then
394
  echo This script requires a shell more modern than all the
395
      echo shells that I found on your system.  Please install a
396
      echo modern shell, or manually run the script under such a
397
      echo shell if you do have one.
398
      { (exit 1); exit 1; }
399
fi
400
 
401
 
402
fi
403
 
404
fi
405
 
406
 
407
 
408
(eval "as_func_return () {
409
  (exit \$1)
410
}
411
as_func_success () {
412
  as_func_return 0
413
}
414
as_func_failure () {
415
  as_func_return 1
416
}
417
as_func_ret_success () {
418
  return 0
419
}
420
as_func_ret_failure () {
421
  return 1
422
}
423
 
424
exitcode=0
425
if as_func_success; then
426
  :
427 19 jeremybenn
else
428 101 jeremybenn
  exitcode=1
429
  echo as_func_success failed.
430 19 jeremybenn
fi
431
 
432 101 jeremybenn
if as_func_failure; then
433
  exitcode=1
434
  echo as_func_failure succeeded.
435
fi
436
 
437
if as_func_ret_success; then
438
  :
439 19 jeremybenn
else
440 101 jeremybenn
  exitcode=1
441
  echo as_func_ret_success failed.
442 19 jeremybenn
fi
443
 
444 101 jeremybenn
if as_func_ret_failure; then
445
  exitcode=1
446
  echo as_func_ret_failure succeeded.
447
fi
448
 
449
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
450
  :
451 19 jeremybenn
else
452 101 jeremybenn
  exitcode=1
453
  echo positional parameters were not saved.
454 19 jeremybenn
fi
455
 
456 101 jeremybenn
test \$exitcode = 0") || {
457
  echo No shell found that supports shell functions.
458
  echo Please tell bug-autoconf@gnu.org about your system,
459
  echo including any error possibly output before this message.
460
  echo This can help us improve future autoconf versions.
461
  echo Configuration will now proceed without shell functions.
462
}
463 19 jeremybenn
 
464
 
465
 
466 101 jeremybenn
  as_lineno_1=$LINENO
467
  as_lineno_2=$LINENO
468
  test "x$as_lineno_1" != "x$as_lineno_2" &&
469
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
470
 
471
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
472
  # uniformly replaced by the line number.  The first 'sed' inserts a
473
  # line-number line after each line using $LINENO; the second 'sed'
474
  # does the real work.  The second script uses 'N' to pair each
475
  # line-number line with the line containing $LINENO, and appends
476
  # trailing '-' during substitution so that $LINENO is not a special
477
  # case at line end.
478
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
479
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
480
  # E. McMahon (1931-1989) for sed's syntax.  :-)
481 19 jeremybenn
  sed -n '
482
    p
483
    /[$]LINENO/=
484
  ' <$as_myself |
485
    sed '
486
      s/[$]LINENO.*/&-/
487
      t lineno
488
      b
489
      :lineno
490
      N
491
      :loop
492
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493
      t loop
494
      s/-\n.*//
495
    ' >$as_me.lineno &&
496
  chmod +x "$as_me.lineno" ||
497 101 jeremybenn
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
498
   { (exit 1); exit 1; }; }
499 19 jeremybenn
 
500
  # Don't try to exec as it changes $[0], causing all sort of problems
501
  # (the dirname of $[0] is not the place where we might find the
502
  # original and so on.  Autoconf is especially sensitive to this).
503
  . "./$as_me.lineno"
504
  # Exit status is that of the last command.
505
  exit
506
}
507
 
508 101 jeremybenn
 
509
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
510
  as_dirname=dirname
511
else
512
  as_dirname=false
513
fi
514
 
515 19 jeremybenn
ECHO_C= ECHO_N= ECHO_T=
516 101 jeremybenn
case `echo -n x` in
517 19 jeremybenn
-n*)
518 101 jeremybenn
  case `echo 'x\c'` in
519 19 jeremybenn
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
520 101 jeremybenn
  *)   ECHO_C='\c';;
521 19 jeremybenn
  esac;;
522
*)
523
  ECHO_N='-n';;
524
esac
525 101 jeremybenn
if expr a : '\(a\)' >/dev/null 2>&1 &&
526
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
527
  as_expr=expr
528
else
529
  as_expr=false
530
fi
531 19 jeremybenn
 
532
rm -f conf$$ conf$$.exe conf$$.file
533
if test -d conf$$.dir; then
534
  rm -f conf$$.dir/conf$$.file
535
else
536
  rm -f conf$$.dir
537 82 jeremybenn
  mkdir conf$$.dir 2>/dev/null
538 19 jeremybenn
fi
539 82 jeremybenn
if (echo >conf$$.file) 2>/dev/null; then
540
  if ln -s conf$$.file conf$$ 2>/dev/null; then
541
    as_ln_s='ln -s'
542
    # ... but there are two gotchas:
543
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
544
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
545
    # In both cases, we have to default to `cp -p'.
546
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
547
      as_ln_s='cp -p'
548
  elif ln conf$$.file conf$$ 2>/dev/null; then
549
    as_ln_s=ln
550
  else
551 19 jeremybenn
    as_ln_s='cp -p'
552 82 jeremybenn
  fi
553 19 jeremybenn
else
554
  as_ln_s='cp -p'
555
fi
556
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
557
rmdir conf$$.dir 2>/dev/null
558
 
559
if mkdir -p . 2>/dev/null; then
560 101 jeremybenn
  as_mkdir_p=:
561 19 jeremybenn
else
562
  test -d ./-p && rmdir ./-p
563
  as_mkdir_p=false
564
fi
565
 
566
if test -x / >/dev/null 2>&1; then
567
  as_test_x='test -x'
568
else
569
  if ls -dL / >/dev/null 2>&1; then
570
    as_ls_L_option=L
571
  else
572
    as_ls_L_option=
573
  fi
574
  as_test_x='
575
    eval sh -c '\''
576
      if test -d "$1"; then
577 82 jeremybenn
        test -d "$1/.";
578 19 jeremybenn
      else
579 101 jeremybenn
        case $1 in
580 82 jeremybenn
        -*)set "./$1";;
581 19 jeremybenn
        esac;
582 101 jeremybenn
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
583 19 jeremybenn
        ???[sx]*):;;*)false;;esac;fi
584
    '\'' sh
585
  '
586
fi
587
as_executable_p=$as_test_x
588
 
589
# Sed expression to map a string onto a valid CPP name.
590
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
591
 
592
# Sed expression to map a string onto a valid variable name.
593
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
594
 
595
 
596
 
597 101 jeremybenn
 
598 19 jeremybenn
# Check that we are running under the correct shell.
599
SHELL=${CONFIG_SHELL-/bin/sh}
600
 
601 82 jeremybenn
case X$lt_ECHO in
602 19 jeremybenn
X*--fallback-echo)
603
  # Remove one level of quotation (which was required for Make).
604 82 jeremybenn
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
605 19 jeremybenn
  ;;
606
esac
607
 
608 82 jeremybenn
ECHO=${lt_ECHO-echo}
609 19 jeremybenn
if test "X$1" = X--no-reexec; then
610
  # Discard the --no-reexec flag, and continue.
611
  shift
612
elif test "X$1" = X--fallback-echo; then
613
  # Avoid inline document here, it may be left over
614
  :
615 82 jeremybenn
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
616
  # Yippee, $ECHO works!
617 19 jeremybenn
  :
618
else
619
  # Restart under the correct shell.
620
  exec $SHELL "$0" --no-reexec ${1+"$@"}
621
fi
622
 
623
if test "X$1" = X--fallback-echo; then
624
  # used as fallback echo
625
  shift
626 82 jeremybenn
  cat <<_LT_EOF
627 19 jeremybenn
$*
628 82 jeremybenn
_LT_EOF
629 19 jeremybenn
  exit 0
630
fi
631
 
632
# The HP-UX ksh and POSIX shell print the target directory to stdout
633
# if CDPATH is set.
634
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
635
 
636 82 jeremybenn
if test -z "$lt_ECHO"; then
637
  if test "X${echo_test_string+set}" != Xset; then
638
    # find a string as large as possible, as long as the shell can cope with it
639
    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
640
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
641
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
642
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
643
      then
644
        break
645
      fi
646
    done
647
  fi
648 19 jeremybenn
 
649 82 jeremybenn
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
650
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
651
     test "X$echo_testing_string" = "X$echo_test_string"; then
652
    :
653
  else
654
    # The Solaris, AIX, and Digital Unix default echo programs unquote
655
    # backslashes.  This makes it impossible to quote backslashes using
656
    #   echo "$something" | sed 's/\\/\\\\/g'
657
    #
658
    # So, first we look for a working echo in the user's PATH.
659 19 jeremybenn
 
660 82 jeremybenn
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
661
    for dir in $PATH /usr/ucb; do
662
      IFS="$lt_save_ifs"
663
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
664
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
665
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
666
         test "X$echo_testing_string" = "X$echo_test_string"; then
667
        ECHO="$dir/echo"
668
        break
669
      fi
670
    done
671 19 jeremybenn
    IFS="$lt_save_ifs"
672
 
673 82 jeremybenn
    if test "X$ECHO" = Xecho; then
674
      # We didn't find a better echo, so look for alternatives.
675
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
676
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
677
         test "X$echo_testing_string" = "X$echo_test_string"; then
678
        # This shell has a builtin print -r that does the trick.
679
        ECHO='print -r'
680
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
681
           test "X$CONFIG_SHELL" != X/bin/ksh; then
682
        # If we have ksh, try running configure again with it.
683
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
684
        export ORIGINAL_CONFIG_SHELL
685
        CONFIG_SHELL=/bin/ksh
686
        export CONFIG_SHELL
687
        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
688
      else
689
        # Try using printf.
690
        ECHO='printf %s\n'
691
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
692
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
693 19 jeremybenn
           test "X$echo_testing_string" = "X$echo_test_string"; then
694 82 jeremybenn
          # Cool, printf works
695
          :
696
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
697
             test "X$echo_testing_string" = 'X\t' &&
698
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
699
             test "X$echo_testing_string" = "X$echo_test_string"; then
700
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
701
          export CONFIG_SHELL
702
          SHELL="$CONFIG_SHELL"
703
          export SHELL
704
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
705
        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
706
             test "X$echo_testing_string" = 'X\t' &&
707
             echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
708
             test "X$echo_testing_string" = "X$echo_test_string"; then
709
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
710
        else
711
          # maybe with a smaller string...
712
          prev=:
713 19 jeremybenn
 
714 82 jeremybenn
          for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
715
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
716
            then
717
              break
718
            fi
719
            prev="$cmd"
720
          done
721
 
722
          if test "$prev" != 'sed 50q "$0"'; then
723
            echo_test_string=`eval $prev`
724
            export echo_test_string
725
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
726
          else
727
            # Oops.  We lost completely, so just stick with echo.
728
            ECHO=echo
729 19 jeremybenn
          fi
730 82 jeremybenn
        fi
731 19 jeremybenn
      fi
732
    fi
733
  fi
734
fi
735
 
736
# Copy echo and quote the copy suitably for passing to libtool from
737
# the Makefile, instead of quoting the original, which is used later.
738 82 jeremybenn
lt_ECHO=$ECHO
739
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
740
   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
741 19 jeremybenn
fi
742
 
743
 
744
 
745
 
746 101 jeremybenn
exec 7<&0 &1
747 19 jeremybenn
 
748
# Name of the host.
749
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
750
# so uname gets run too.
751
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
752
 
753
#
754
# Initializations.
755
#
756
ac_default_prefix=/usr/local
757
ac_clean_files=
758
ac_config_libobj_dir=.
759
LIBOBJS=
760
cross_compiling=no
761
subdirs=
762
MFLAGS=
763
MAKEFLAGS=
764 101 jeremybenn
SHELL=${CONFIG_SHELL-/bin/sh}
765 19 jeremybenn
 
766
# Identity of this package.
767
PACKAGE_NAME='or1ksim'
768
PACKAGE_TARNAME='or1ksim'
769 112 jeremybenn
PACKAGE_VERSION='2010-06-09'
770
PACKAGE_STRING='or1ksim 2010-06-09'
771 19 jeremybenn
PACKAGE_BUGREPORT='openrisc@opencores.org'
772
 
773
# Factoring default headers for most tests.
774
ac_includes_default="\
775
#include 
776
#ifdef HAVE_SYS_TYPES_H
777
# include 
778
#endif
779
#ifdef HAVE_SYS_STAT_H
780
# include 
781
#endif
782
#ifdef STDC_HEADERS
783
# include 
784
# include 
785
#else
786
# ifdef HAVE_STDLIB_H
787
#  include 
788
# endif
789
#endif
790
#ifdef HAVE_STRING_H
791
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
792
#  include 
793
# endif
794
# include 
795
#endif
796
#ifdef HAVE_STRINGS_H
797
# include 
798
#endif
799
#ifdef HAVE_INTTYPES_H
800
# include 
801
#endif
802
#ifdef HAVE_STDINT_H
803
# include 
804
#endif
805
#ifdef HAVE_UNISTD_H
806
# include 
807
#endif"
808
 
809 91 jeremybenn
ac_unique_file="cpu/or32/execute.c"
810
enable_option_checking=no
811 82 jeremybenn
ac_subst_vars='am__EXEEXT_FALSE
812
am__EXEEXT_TRUE
813
LTLIBOBJS
814
INCLUDES
815
TERMCAP_LIB
816
SUMVERSION
817
ARFLAGS
818
LOCAL_DEFS
819
LOCAL_LDFLAGS
820
LOCAL_CFLAGS
821
BUILD_DIR
822 96 jeremybenn
RUNTESTDEFAULTFLAGS
823 90 jeremybenn
DEJAGNU
824 82 jeremybenn
DYNAMIC_EXECUTION_FALSE
825
DYNAMIC_EXECUTION_TRUE
826
GENERATE_NEEDED_FALSE
827
GENERATE_NEEDED_TRUE
828
DEBUGFLAGS
829
USE_ARGDATE_FALSE
830
USE_ARGDATE_TRUE
831
USE_ARGREX_FALSE
832
USE_ARGREX_TRUE
833
USE_SYS_GETOPTLONG_FALSE
834
USE_SYS_GETOPTLONG_TRUE
835
POW_LIB
836
LIBOBJS
837
am__fastdepCCAS_FALSE
838
am__fastdepCCAS_TRUE
839
CCASDEPMODE
840
CCASFLAGS
841
CCAS
842
CPU_ARCH
843
am__fastdepCC_FALSE
844
am__fastdepCC_TRUE
845
CCDEPMODE
846
AMDEPBACKSLASH
847
AMDEP_FALSE
848
AMDEP_TRUE
849
am__quote
850
am__include
851
DEPDIR
852
am__untar
853
am__tar
854
AMTAR
855
am__leading_dot
856
SET_MAKE
857
AWK
858
mkdir_p
859
MKDIR_P
860
INSTALL_STRIP_PROGRAM
861
install_sh
862
MAKEINFO
863
AUTOHEADER
864
AUTOMAKE
865
AUTOCONF
866
ACLOCAL
867
VERSION
868
PACKAGE
869
CYGPATH_W
870
am__isrc
871
INSTALL_DATA
872
INSTALL_SCRIPT
873
INSTALL_PROGRAM
874
OTOOL64
875
OTOOL
876
LIPO
877
NMEDIT
878
DSYMUTIL
879
lt_ECHO
880 19 jeremybenn
RANLIB
881
STRIP
882 82 jeremybenn
AR
883
OBJDUMP
884
LN_S
885
NM
886
ac_ct_DUMPBIN
887
DUMPBIN
888
LD
889
FGREP
890
SED
891 19 jeremybenn
LIBTOOL
892 82 jeremybenn
target_os
893
target_vendor
894
target_cpu
895
target
896
host_os
897
host_vendor
898
host_cpu
899
host
900
build_os
901
build_vendor
902
build_cpu
903
build
904
subdirs
905 91 jeremybenn
EGREP
906
GREP
907
CPP
908
OBJEXT
909
EXEEXT
910
ac_ct_CC
911
CPPFLAGS
912
LDFLAGS
913
CFLAGS
914
CC
915 82 jeremybenn
target_alias
916
host_alias
917
build_alias
918
LIBS
919
ECHO_T
920
ECHO_N
921
ECHO_C
922
DEFS
923
mandir
924
localedir
925
libdir
926
psdir
927
pdfdir
928
dvidir
929
htmldir
930
infodir
931
docdir
932
oldincludedir
933
includedir
934
localstatedir
935
sharedstatedir
936
sysconfdir
937
datadir
938
datarootdir
939
libexecdir
940
sbindir
941
bindir
942
program_transform_name
943
prefix
944
exec_prefix
945
PACKAGE_BUGREPORT
946
PACKAGE_STRING
947
PACKAGE_VERSION
948
PACKAGE_TARNAME
949
PACKAGE_NAME
950
PATH_SEPARATOR
951
SHELL'
952 19 jeremybenn
ac_subst_files=''
953 82 jeremybenn
ac_user_opts='
954
enable_option_checking
955
enable_shared
956
enable_static
957
with_pic
958
enable_fast_install
959
with_gnu_ld
960
enable_libtool_lock
961
enable_dependency_tracking
962
enable_profiling
963
enable_execution
964
enable_ethphy
965
enable_range_stats
966
enable_arith_flag
967
enable_debug
968
'
969 19 jeremybenn
      ac_precious_vars='build_alias
970
host_alias
971
target_alias
972
CC
973
CFLAGS
974
LDFLAGS
975
LIBS
976
CPPFLAGS
977
CPP
978 82 jeremybenn
CCAS
979
CCASFLAGS'
980 90 jeremybenn
ac_subdirs_all='testsuite/test-code-or1k'
981 19 jeremybenn
 
982
# Initialize some variables set by options.
983
ac_init_help=
984
ac_init_version=false
985 82 jeremybenn
ac_unrecognized_opts=
986
ac_unrecognized_sep=
987 19 jeremybenn
# The variables have the same names as the options, with
988
# dashes changed to underlines.
989
cache_file=/dev/null
990
exec_prefix=NONE
991
no_create=
992
no_recursion=
993
prefix=NONE
994
program_prefix=NONE
995
program_suffix=NONE
996
program_transform_name=s,x,x,
997
silent=
998
site=
999
srcdir=
1000
verbose=
1001
x_includes=NONE
1002
x_libraries=NONE
1003
 
1004
# Installation directory options.
1005
# These are left unexpanded so users can "make install exec_prefix=/foo"
1006
# and all the variables that are supposed to be based on exec_prefix
1007
# by default will actually change.
1008
# Use braces instead of parens because sh, perl, etc. also accept them.
1009
# (The list follows the same order as the GNU Coding Standards.)
1010
bindir='${exec_prefix}/bin'
1011
sbindir='${exec_prefix}/sbin'
1012
libexecdir='${exec_prefix}/libexec'
1013
datarootdir='${prefix}/share'
1014
datadir='${datarootdir}'
1015
sysconfdir='${prefix}/etc'
1016
sharedstatedir='${prefix}/com'
1017
localstatedir='${prefix}/var'
1018
includedir='${prefix}/include'
1019
oldincludedir='/usr/include'
1020
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1021
infodir='${datarootdir}/info'
1022
htmldir='${docdir}'
1023
dvidir='${docdir}'
1024
pdfdir='${docdir}'
1025
psdir='${docdir}'
1026
libdir='${exec_prefix}/lib'
1027
localedir='${datarootdir}/locale'
1028
mandir='${datarootdir}/man'
1029
 
1030
ac_prev=
1031
ac_dashdash=
1032
for ac_option
1033
do
1034
  # If the previous option needs an argument, assign it.
1035
  if test -n "$ac_prev"; then
1036
    eval $ac_prev=\$ac_option
1037
    ac_prev=
1038
    continue
1039
  fi
1040
 
1041
  case $ac_option in
1042
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1043
  *)    ac_optarg=yes ;;
1044
  esac
1045
 
1046
  # Accept the important Cygnus configure options, so we can diagnose typos.
1047
 
1048
  case $ac_dashdash$ac_option in
1049
  --)
1050
    ac_dashdash=yes ;;
1051
 
1052
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1053
    ac_prev=bindir ;;
1054
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1055
    bindir=$ac_optarg ;;
1056
 
1057
  -build | --build | --buil | --bui | --bu)
1058
    ac_prev=build_alias ;;
1059
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1060
    build_alias=$ac_optarg ;;
1061
 
1062
  -cache-file | --cache-file | --cache-fil | --cache-fi \
1063
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1064
    ac_prev=cache_file ;;
1065
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1066
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1067
    cache_file=$ac_optarg ;;
1068
 
1069
  --config-cache | -C)
1070
    cache_file=config.cache ;;
1071
 
1072
  -datadir | --datadir | --datadi | --datad)
1073
    ac_prev=datadir ;;
1074
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1075
    datadir=$ac_optarg ;;
1076
 
1077
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1078
  | --dataroo | --dataro | --datar)
1079
    ac_prev=datarootdir ;;
1080
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1081
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1082
    datarootdir=$ac_optarg ;;
1083
 
1084
  -disable-* | --disable-*)
1085 82 jeremybenn
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1086 19 jeremybenn
    # Reject names that are not valid shell variable names.
1087 82 jeremybenn
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1088 101 jeremybenn
      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1089
   { (exit 1); exit 1; }; }
1090 82 jeremybenn
    ac_useropt_orig=$ac_useropt
1091
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1092
    case $ac_user_opts in
1093
      *"
1094
"enable_$ac_useropt"
1095
"*) ;;
1096
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1097
         ac_unrecognized_sep=', ';;
1098
    esac
1099
    eval enable_$ac_useropt=no ;;
1100 19 jeremybenn
 
1101
  -docdir | --docdir | --docdi | --doc | --do)
1102
    ac_prev=docdir ;;
1103
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1104
    docdir=$ac_optarg ;;
1105
 
1106
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1107
    ac_prev=dvidir ;;
1108
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1109
    dvidir=$ac_optarg ;;
1110
 
1111
  -enable-* | --enable-*)
1112 82 jeremybenn
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1113 19 jeremybenn
    # Reject names that are not valid shell variable names.
1114 82 jeremybenn
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1115 101 jeremybenn
      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1116
   { (exit 1); exit 1; }; }
1117 82 jeremybenn
    ac_useropt_orig=$ac_useropt
1118
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1119
    case $ac_user_opts in
1120
      *"
1121
"enable_$ac_useropt"
1122
"*) ;;
1123
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1124
         ac_unrecognized_sep=', ';;
1125
    esac
1126
    eval enable_$ac_useropt=\$ac_optarg ;;
1127 19 jeremybenn
 
1128
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1129
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1130
  | --exec | --exe | --ex)
1131
    ac_prev=exec_prefix ;;
1132
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1133
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1134
  | --exec=* | --exe=* | --ex=*)
1135
    exec_prefix=$ac_optarg ;;
1136
 
1137
  -gas | --gas | --ga | --g)
1138
    # Obsolete; use --with-gas.
1139
    with_gas=yes ;;
1140
 
1141
  -help | --help | --hel | --he | -h)
1142
    ac_init_help=long ;;
1143
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1144
    ac_init_help=recursive ;;
1145
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1146
    ac_init_help=short ;;
1147
 
1148
  -host | --host | --hos | --ho)
1149
    ac_prev=host_alias ;;
1150
  -host=* | --host=* | --hos=* | --ho=*)
1151
    host_alias=$ac_optarg ;;
1152
 
1153
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1154
    ac_prev=htmldir ;;
1155
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1156
  | --ht=*)
1157
    htmldir=$ac_optarg ;;
1158
 
1159
  -includedir | --includedir | --includedi | --included | --include \
1160
  | --includ | --inclu | --incl | --inc)
1161
    ac_prev=includedir ;;
1162
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1163
  | --includ=* | --inclu=* | --incl=* | --inc=*)
1164
    includedir=$ac_optarg ;;
1165
 
1166
  -infodir | --infodir | --infodi | --infod | --info | --inf)
1167
    ac_prev=infodir ;;
1168
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1169
    infodir=$ac_optarg ;;
1170
 
1171
  -libdir | --libdir | --libdi | --libd)
1172
    ac_prev=libdir ;;
1173
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1174
    libdir=$ac_optarg ;;
1175
 
1176
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1177
  | --libexe | --libex | --libe)
1178
    ac_prev=libexecdir ;;
1179
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1180
  | --libexe=* | --libex=* | --libe=*)
1181
    libexecdir=$ac_optarg ;;
1182
 
1183
  -localedir | --localedir | --localedi | --localed | --locale)
1184
    ac_prev=localedir ;;
1185
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1186
    localedir=$ac_optarg ;;
1187
 
1188
  -localstatedir | --localstatedir | --localstatedi | --localstated \
1189
  | --localstate | --localstat | --localsta | --localst | --locals)
1190
    ac_prev=localstatedir ;;
1191
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1192
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1193
    localstatedir=$ac_optarg ;;
1194
 
1195
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1196
    ac_prev=mandir ;;
1197
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1198
    mandir=$ac_optarg ;;
1199
 
1200
  -nfp | --nfp | --nf)
1201
    # Obsolete; use --without-fp.
1202
    with_fp=no ;;
1203
 
1204
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1205
  | --no-cr | --no-c | -n)
1206
    no_create=yes ;;
1207
 
1208
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1209
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1210
    no_recursion=yes ;;
1211
 
1212
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1213
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1214
  | --oldin | --oldi | --old | --ol | --o)
1215
    ac_prev=oldincludedir ;;
1216
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1217
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1218
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1219
    oldincludedir=$ac_optarg ;;
1220
 
1221
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1222
    ac_prev=prefix ;;
1223
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1224
    prefix=$ac_optarg ;;
1225
 
1226
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1227
  | --program-pre | --program-pr | --program-p)
1228
    ac_prev=program_prefix ;;
1229
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1230
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1231
    program_prefix=$ac_optarg ;;
1232
 
1233
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1234
  | --program-suf | --program-su | --program-s)
1235
    ac_prev=program_suffix ;;
1236
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1237
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1238
    program_suffix=$ac_optarg ;;
1239
 
1240
  -program-transform-name | --program-transform-name \
1241
  | --program-transform-nam | --program-transform-na \
1242
  | --program-transform-n | --program-transform- \
1243
  | --program-transform | --program-transfor \
1244
  | --program-transfo | --program-transf \
1245
  | --program-trans | --program-tran \
1246
  | --progr-tra | --program-tr | --program-t)
1247
    ac_prev=program_transform_name ;;
1248
  -program-transform-name=* | --program-transform-name=* \
1249
  | --program-transform-nam=* | --program-transform-na=* \
1250
  | --program-transform-n=* | --program-transform-=* \
1251
  | --program-transform=* | --program-transfor=* \
1252
  | --program-transfo=* | --program-transf=* \
1253
  | --program-trans=* | --program-tran=* \
1254
  | --progr-tra=* | --program-tr=* | --program-t=*)
1255
    program_transform_name=$ac_optarg ;;
1256
 
1257
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1258
    ac_prev=pdfdir ;;
1259
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1260
    pdfdir=$ac_optarg ;;
1261
 
1262
  -psdir | --psdir | --psdi | --psd | --ps)
1263
    ac_prev=psdir ;;
1264
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1265
    psdir=$ac_optarg ;;
1266
 
1267
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1268
  | -silent | --silent | --silen | --sile | --sil)
1269
    silent=yes ;;
1270
 
1271
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1272
    ac_prev=sbindir ;;
1273
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1274
  | --sbi=* | --sb=*)
1275
    sbindir=$ac_optarg ;;
1276
 
1277
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1278
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1279
  | --sharedst | --shareds | --shared | --share | --shar \
1280
  | --sha | --sh)
1281
    ac_prev=sharedstatedir ;;
1282
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1283
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1284
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1285
  | --sha=* | --sh=*)
1286
    sharedstatedir=$ac_optarg ;;
1287
 
1288
  -site | --site | --sit)
1289
    ac_prev=site ;;
1290
  -site=* | --site=* | --sit=*)
1291
    site=$ac_optarg ;;
1292
 
1293
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1294
    ac_prev=srcdir ;;
1295
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1296
    srcdir=$ac_optarg ;;
1297
 
1298
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1299
  | --syscon | --sysco | --sysc | --sys | --sy)
1300
    ac_prev=sysconfdir ;;
1301
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1302
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1303
    sysconfdir=$ac_optarg ;;
1304
 
1305
  -target | --target | --targe | --targ | --tar | --ta | --t)
1306
    ac_prev=target_alias ;;
1307
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1308
    target_alias=$ac_optarg ;;
1309
 
1310
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1311
    verbose=yes ;;
1312
 
1313
  -version | --version | --versio | --versi | --vers | -V)
1314
    ac_init_version=: ;;
1315
 
1316
  -with-* | --with-*)
1317 82 jeremybenn
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1318 19 jeremybenn
    # Reject names that are not valid shell variable names.
1319 82 jeremybenn
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1320 101 jeremybenn
      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1321
   { (exit 1); exit 1; }; }
1322 82 jeremybenn
    ac_useropt_orig=$ac_useropt
1323
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1324
    case $ac_user_opts in
1325
      *"
1326
"with_$ac_useropt"
1327
"*) ;;
1328
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1329
         ac_unrecognized_sep=', ';;
1330
    esac
1331
    eval with_$ac_useropt=\$ac_optarg ;;
1332 19 jeremybenn
 
1333
  -without-* | --without-*)
1334 82 jeremybenn
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1335 19 jeremybenn
    # Reject names that are not valid shell variable names.
1336 82 jeremybenn
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1337 101 jeremybenn
      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1338
   { (exit 1); exit 1; }; }
1339 82 jeremybenn
    ac_useropt_orig=$ac_useropt
1340
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1341
    case $ac_user_opts in
1342
      *"
1343
"with_$ac_useropt"
1344
"*) ;;
1345
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1346
         ac_unrecognized_sep=', ';;
1347
    esac
1348
    eval with_$ac_useropt=no ;;
1349 19 jeremybenn
 
1350
  --x)
1351
    # Obsolete; use --with-x.
1352
    with_x=yes ;;
1353
 
1354
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1355
  | --x-incl | --x-inc | --x-in | --x-i)
1356
    ac_prev=x_includes ;;
1357
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1358
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1359
    x_includes=$ac_optarg ;;
1360
 
1361
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1362
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1363
    ac_prev=x_libraries ;;
1364
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1365
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1366
    x_libraries=$ac_optarg ;;
1367
 
1368 101 jeremybenn
  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1369
Try \`$0 --help' for more information." >&2
1370
   { (exit 1); exit 1; }; }
1371 19 jeremybenn
    ;;
1372
 
1373
  *=*)
1374
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1375
    # Reject names that are not valid shell variable names.
1376 101 jeremybenn
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1377
      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1378
   { (exit 1); exit 1; }; }
1379 19 jeremybenn
    eval $ac_envvar=\$ac_optarg
1380
    export $ac_envvar ;;
1381
 
1382
  *)
1383
    # FIXME: should be removed in autoconf 3.0.
1384 82 jeremybenn
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1385 19 jeremybenn
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1386 82 jeremybenn
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1387 19 jeremybenn
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1388
    ;;
1389
 
1390
  esac
1391
done
1392
 
1393
if test -n "$ac_prev"; then
1394
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1395 101 jeremybenn
  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1396
   { (exit 1); exit 1; }; }
1397 19 jeremybenn
fi
1398
 
1399 82 jeremybenn
if test -n "$ac_unrecognized_opts"; then
1400
  case $enable_option_checking in
1401
    no) ;;
1402 101 jeremybenn
    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1403
   { (exit 1); exit 1; }; } ;;
1404 82 jeremybenn
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1405
  esac
1406
fi
1407
 
1408
# Check all directory arguments for consistency.
1409 19 jeremybenn
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1410
                datadir sysconfdir sharedstatedir localstatedir includedir \
1411
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1412
                libdir localedir mandir
1413
do
1414
  eval ac_val=\$$ac_var
1415 82 jeremybenn
  # Remove trailing slashes.
1416 19 jeremybenn
  case $ac_val in
1417 82 jeremybenn
    */ )
1418
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1419
      eval $ac_var=\$ac_val;;
1420
  esac
1421
  # Be sure to have absolute directory names.
1422
  case $ac_val in
1423 19 jeremybenn
    [\\/$]* | ?:[\\/]* )  continue;;
1424
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1425
  esac
1426 101 jeremybenn
  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1427
   { (exit 1); exit 1; }; }
1428 19 jeremybenn
done
1429
 
1430
# There might be people who depend on the old broken behavior: `$host'
1431
# used to hold the argument of --host etc.
1432
# FIXME: To remove some day.
1433
build=$build_alias
1434
host=$host_alias
1435
target=$target_alias
1436
 
1437
# FIXME: To remove some day.
1438
if test "x$host_alias" != x; then
1439
  if test "x$build_alias" = x; then
1440
    cross_compiling=maybe
1441 82 jeremybenn
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1442 19 jeremybenn
    If a cross compiler is detected then cross compile mode will be used." >&2
1443
  elif test "x$build_alias" != "x$host_alias"; then
1444
    cross_compiling=yes
1445
  fi
1446
fi
1447
 
1448
ac_tool_prefix=
1449
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1450
 
1451
test "$silent" = yes && exec 6>/dev/null
1452
 
1453
 
1454
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1455
ac_ls_di=`ls -di .` &&
1456
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1457 101 jeremybenn
  { $as_echo "$as_me: error: working directory cannot be determined" >&2
1458
   { (exit 1); exit 1; }; }
1459 19 jeremybenn
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1460 101 jeremybenn
  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1461
   { (exit 1); exit 1; }; }
1462 19 jeremybenn
 
1463
 
1464
# Find the source files, if location was not specified.
1465
if test -z "$srcdir"; then
1466
  ac_srcdir_defaulted=yes
1467
  # Try the directory containing this script, then the parent directory.
1468 82 jeremybenn
  ac_confdir=`$as_dirname -- "$as_myself" ||
1469
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1470
         X"$as_myself" : 'X\(//\)[^/]' \| \
1471
         X"$as_myself" : 'X\(//\)$' \| \
1472
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1473
$as_echo X"$as_myself" |
1474 19 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1475
            s//\1/
1476
            q
1477
          }
1478
          /^X\(\/\/\)[^/].*/{
1479
            s//\1/
1480
            q
1481
          }
1482
          /^X\(\/\/\)$/{
1483
            s//\1/
1484
            q
1485
          }
1486
          /^X\(\/\).*/{
1487
            s//\1/
1488
            q
1489
          }
1490
          s/.*/./; q'`
1491
  srcdir=$ac_confdir
1492
  if test ! -r "$srcdir/$ac_unique_file"; then
1493
    srcdir=..
1494
  fi
1495
else
1496
  ac_srcdir_defaulted=no
1497
fi
1498
if test ! -r "$srcdir/$ac_unique_file"; then
1499
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1500 101 jeremybenn
  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1501
   { (exit 1); exit 1; }; }
1502 19 jeremybenn
fi
1503
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1504
ac_abs_confdir=`(
1505 101 jeremybenn
        cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1506
   { (exit 1); exit 1; }; }
1507 19 jeremybenn
        pwd)`
1508
# When building in place, set srcdir=.
1509
if test "$ac_abs_confdir" = "$ac_pwd"; then
1510
  srcdir=.
1511
fi
1512
# Remove unnecessary trailing slashes from srcdir.
1513
# Double slashes in file names in object file debugging info
1514
# mess up M-x gdb in Emacs.
1515
case $srcdir in
1516
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1517
esac
1518
for ac_var in $ac_precious_vars; do
1519
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1520
  eval ac_env_${ac_var}_value=\$${ac_var}
1521
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1522
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1523
done
1524
 
1525
#
1526
# Report the --help message.
1527
#
1528
if test "$ac_init_help" = "long"; then
1529
  # Omit some internal or obsolete options to make the list less imposing.
1530
  # This message is too long to be a string in the A/UX 3.1 sh.
1531
  cat <<_ACEOF
1532 112 jeremybenn
\`configure' configures or1ksim 2010-06-09 to adapt to many kinds of systems.
1533 19 jeremybenn
 
1534
Usage: $0 [OPTION]... [VAR=VALUE]...
1535
 
1536
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1537
VAR=VALUE.  See below for descriptions of some of the useful variables.
1538
 
1539
Defaults for the options are specified in brackets.
1540
 
1541
Configuration:
1542
  -h, --help              display this help and exit
1543
      --help=short        display options specific to this package
1544
      --help=recursive    display the short help of all the included packages
1545
  -V, --version           display version information and exit
1546
  -q, --quiet, --silent   do not print \`checking...' messages
1547
      --cache-file=FILE   cache test results in FILE [disabled]
1548
  -C, --config-cache      alias for \`--cache-file=config.cache'
1549
  -n, --no-create         do not create output files
1550
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1551
 
1552
Installation directories:
1553
  --prefix=PREFIX         install architecture-independent files in PREFIX
1554 82 jeremybenn
                          [$ac_default_prefix]
1555 19 jeremybenn
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1556 82 jeremybenn
                          [PREFIX]
1557 19 jeremybenn
 
1558
By default, \`make install' will install all the files in
1559
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1560
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1561
for instance \`--prefix=\$HOME'.
1562
 
1563
For better control, use the options below.
1564
 
1565
Fine tuning of the installation directories:
1566 82 jeremybenn
  --bindir=DIR            user executables [EPREFIX/bin]
1567
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1568
  --libexecdir=DIR        program executables [EPREFIX/libexec]
1569
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1570
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1571
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1572
  --libdir=DIR            object code libraries [EPREFIX/lib]
1573
  --includedir=DIR        C header files [PREFIX/include]
1574
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1575
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1576
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1577
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1578
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1579
  --mandir=DIR            man documentation [DATAROOTDIR/man]
1580
  --docdir=DIR            documentation root [DATAROOTDIR/doc/or1ksim]
1581
  --htmldir=DIR           html documentation [DOCDIR]
1582
  --dvidir=DIR            dvi documentation [DOCDIR]
1583
  --pdfdir=DIR            pdf documentation [DOCDIR]
1584
  --psdir=DIR             ps documentation [DOCDIR]
1585 19 jeremybenn
_ACEOF
1586
 
1587
  cat <<\_ACEOF
1588
 
1589
Program names:
1590
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1591
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1592
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1593
 
1594
System types:
1595
  --build=BUILD     configure for building on BUILD [guessed]
1596
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1597
  --target=TARGET   configure for building compilers for TARGET [HOST]
1598
_ACEOF
1599
fi
1600
 
1601
if test -n "$ac_init_help"; then
1602
  case $ac_init_help in
1603 112 jeremybenn
     short | recursive ) echo "Configuration of or1ksim 2010-06-09:";;
1604 19 jeremybenn
   esac
1605
  cat <<\_ACEOF
1606
 
1607
Optional Features:
1608 82 jeremybenn
  --disable-option-checking  ignore unrecognized --enable/--with options
1609 19 jeremybenn
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1610
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1611
  --enable-shared[=PKGS]  build shared libraries [default=yes]
1612
  --enable-static[=PKGS]  build static libraries [default=yes]
1613
  --enable-fast-install[=PKGS]
1614
                          optimize for fast installation [default=yes]
1615
  --disable-libtool-lock  avoid locking (might break parallel builds)
1616
  --disable-dependency-tracking  speeds up one-time build
1617
  --enable-dependency-tracking   do not reject slow dependency extractors
1618
  --enable-profiling      generate profiling code
1619
  --enable-execution Execution style to use (simple/complex/dynamic)
1620
  --enable-ethphy    compiles sim with ethernet phy support
1621
  --enable-range-stats      Specifies, whether we should do register accesses over time analysis.
1622
  --enable-arith-flag      Whether arithmethic instructions setflag.
1623
  --enable-debug          enable library debugging symbols
1624
 
1625
Optional Packages:
1626
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1627
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1628
  --with-pic              try to use only PIC/non-PIC objects [default=use
1629
                          both]
1630 82 jeremybenn
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1631 19 jeremybenn
 
1632
Some influential environment variables:
1633
  CC          C compiler command
1634
  CFLAGS      C compiler flags
1635
  LDFLAGS     linker flags, e.g. -L if you have libraries in a
1636
              nonstandard directory 
1637
  LIBS        libraries to pass to the linker, e.g. -l
1638 101 jeremybenn
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I if
1639 19 jeremybenn
              you have headers in a nonstandard directory 
1640
  CPP         C preprocessor
1641 82 jeremybenn
  CCAS        assembler compiler command (defaults to CC)
1642
  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1643 19 jeremybenn
 
1644
Use these variables to override the choices made by `configure' or to help
1645
it to find libraries and programs with nonstandard names/locations.
1646
 
1647
Report bugs to .
1648
_ACEOF
1649
ac_status=$?
1650
fi
1651
 
1652
if test "$ac_init_help" = "recursive"; then
1653
  # If there are subdirs, report their specific --help.
1654
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1655 82 jeremybenn
    test -d "$ac_dir" ||
1656
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1657
      continue
1658 19 jeremybenn
    ac_builddir=.
1659
 
1660
case "$ac_dir" in
1661
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1662
*)
1663 82 jeremybenn
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1664 19 jeremybenn
  # A ".." for each directory in $ac_dir_suffix.
1665 82 jeremybenn
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1666 19 jeremybenn
  case $ac_top_builddir_sub in
1667
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1668
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1669
  esac ;;
1670
esac
1671
ac_abs_top_builddir=$ac_pwd
1672
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1673
# for backward compatibility:
1674
ac_top_builddir=$ac_top_build_prefix
1675
 
1676
case $srcdir in
1677
  .)  # We are building in place.
1678
    ac_srcdir=.
1679
    ac_top_srcdir=$ac_top_builddir_sub
1680
    ac_abs_top_srcdir=$ac_pwd ;;
1681
  [\\/]* | ?:[\\/]* )  # Absolute name.
1682
    ac_srcdir=$srcdir$ac_dir_suffix;
1683
    ac_top_srcdir=$srcdir
1684
    ac_abs_top_srcdir=$srcdir ;;
1685
  *) # Relative name.
1686
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1687
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1688
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1689
esac
1690
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1691
 
1692
    cd "$ac_dir" || { ac_status=$?; continue; }
1693
    # Check for guested configure.
1694
    if test -f "$ac_srcdir/configure.gnu"; then
1695
      echo &&
1696
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1697
    elif test -f "$ac_srcdir/configure"; then
1698
      echo &&
1699
      $SHELL "$ac_srcdir/configure" --help=recursive
1700
    else
1701 82 jeremybenn
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1702 19 jeremybenn
    fi || ac_status=$?
1703
    cd "$ac_pwd" || { ac_status=$?; break; }
1704
  done
1705
fi
1706
 
1707
test -n "$ac_init_help" && exit $ac_status
1708
if $ac_init_version; then
1709
  cat <<\_ACEOF
1710 112 jeremybenn
or1ksim configure 2010-06-09
1711 101 jeremybenn
generated by GNU Autoconf 2.63
1712 19 jeremybenn
 
1713 101 jeremybenn
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1714
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1715 19 jeremybenn
This configure script is free software; the Free Software Foundation
1716
gives unlimited permission to copy, distribute and modify it.
1717 82 jeremybenn
 
1718
Copyright (C) 1999-2008 OpenCores
1719
Copyright (C) 2008, 2010 Embecosm Limited
1720
 
1721
Contributor Jeremy Bennett 
1722
 
1723
This file is part of OpenRISC 1000 Architectural Simulator.
1724
 
1725
This program is free software; you can redistribute it and/or modify it
1726
under the terms of the GNU General Public License as published by the Free
1727
Software Foundation; either version 3 of the License, or (at your option)
1728
any later version.
1729
 
1730
This program is distributed in the hope that it will be useful, but WITHOUT
1731
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1732
FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
1733
more details.
1734
 
1735
You should have received a copy of the GNU General Public License along
1736
with this program.  If not, see .
1737 19 jeremybenn
_ACEOF
1738
  exit
1739
fi
1740
cat >config.log <<_ACEOF
1741
This file contains any messages produced by compilers while
1742
running configure, to aid debugging if configure makes a mistake.
1743
 
1744 112 jeremybenn
It was created by or1ksim $as_me 2010-06-09, which was
1745 101 jeremybenn
generated by GNU Autoconf 2.63.  Invocation command line was
1746 19 jeremybenn
 
1747
  $ $0 $@
1748
 
1749
_ACEOF
1750
exec 5>>config.log
1751
{
1752
cat <<_ASUNAME
1753
## --------- ##
1754
## Platform. ##
1755
## --------- ##
1756
 
1757
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1758
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1759
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1760
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1761
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1762
 
1763
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1764
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1765
 
1766
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1767
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1768
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1769
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1770
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1771
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1772
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1773
 
1774
_ASUNAME
1775
 
1776
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1777
for as_dir in $PATH
1778
do
1779
  IFS=$as_save_IFS
1780
  test -z "$as_dir" && as_dir=.
1781 101 jeremybenn
  $as_echo "PATH: $as_dir"
1782
done
1783 19 jeremybenn
IFS=$as_save_IFS
1784
 
1785
} >&5
1786
 
1787
cat >&5 <<_ACEOF
1788
 
1789
 
1790
## ----------- ##
1791
## Core tests. ##
1792
## ----------- ##
1793
 
1794
_ACEOF
1795
 
1796
 
1797
# Keep a trace of the command line.
1798
# Strip out --no-create and --no-recursion so they do not pile up.
1799
# Strip out --silent because we don't want to record it for future runs.
1800
# Also quote any args containing shell meta-characters.
1801
# Make two passes to allow for proper duplicate-argument suppression.
1802
ac_configure_args=
1803
ac_configure_args0=
1804
ac_configure_args1=
1805
ac_must_keep_next=false
1806
for ac_pass in 1 2
1807
do
1808
  for ac_arg
1809
  do
1810
    case $ac_arg in
1811
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1812
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1813
    | -silent | --silent | --silen | --sile | --sil)
1814
      continue ;;
1815
    *\'*)
1816 82 jeremybenn
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1817 19 jeremybenn
    esac
1818
    case $ac_pass in
1819 101 jeremybenn
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1820 19 jeremybenn
    2)
1821 101 jeremybenn
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1822 19 jeremybenn
      if test $ac_must_keep_next = true; then
1823
        ac_must_keep_next=false # Got value, back to normal.
1824
      else
1825
        case $ac_arg in
1826
          *=* | --config-cache | -C | -disable-* | --disable-* \
1827
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1828
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1829
          | -with-* | --with-* | -without-* | --without-* | --x)
1830
            case "$ac_configure_args0 " in
1831
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1832
            esac
1833
            ;;
1834
          -* ) ac_must_keep_next=true ;;
1835
        esac
1836
      fi
1837 101 jeremybenn
      ac_configure_args="$ac_configure_args '$ac_arg'"
1838 19 jeremybenn
      ;;
1839
    esac
1840
  done
1841
done
1842 101 jeremybenn
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1843
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1844 19 jeremybenn
 
1845
# When interrupted or exit'd, cleanup temporary files, and complete
1846
# config.log.  We remove comments because anyway the quotes in there
1847
# would cause problems or look ugly.
1848
# WARNING: Use '\'' to represent an apostrophe within the trap.
1849
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1850
trap 'exit_status=$?
1851
  # Save into config.log some information that might help in debugging.
1852
  {
1853
    echo
1854
 
1855
    cat <<\_ASBOX
1856
## ---------------- ##
1857
## Cache variables. ##
1858
## ---------------- ##
1859
_ASBOX
1860
    echo
1861
    # The following way of writing the cache mishandles newlines in values,
1862
(
1863
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1864
    eval ac_val=\$$ac_var
1865
    case $ac_val in #(
1866
    *${as_nl}*)
1867
      case $ac_var in #(
1868 101 jeremybenn
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1869 82 jeremybenn
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1870 19 jeremybenn
      esac
1871
      case $ac_var in #(
1872
      _ | IFS | as_nl) ;; #(
1873 82 jeremybenn
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1874 101 jeremybenn
      *) $as_unset $ac_var ;;
1875 19 jeremybenn
      esac ;;
1876
    esac
1877
  done
1878
  (set) 2>&1 |
1879
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1880
    *${as_nl}ac_space=\ *)
1881
      sed -n \
1882
        "s/'\''/'\''\\\\'\'''\''/g;
1883
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1884
      ;; #(
1885
    *)
1886
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1887
      ;;
1888
    esac |
1889
    sort
1890
)
1891
    echo
1892
 
1893
    cat <<\_ASBOX
1894
## ----------------- ##
1895
## Output variables. ##
1896
## ----------------- ##
1897
_ASBOX
1898
    echo
1899
    for ac_var in $ac_subst_vars
1900
    do
1901
      eval ac_val=\$$ac_var
1902
      case $ac_val in
1903 82 jeremybenn
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1904 19 jeremybenn
      esac
1905 82 jeremybenn
      $as_echo "$ac_var='\''$ac_val'\''"
1906 19 jeremybenn
    done | sort
1907
    echo
1908
 
1909
    if test -n "$ac_subst_files"; then
1910
      cat <<\_ASBOX
1911
## ------------------- ##
1912
## File substitutions. ##
1913
## ------------------- ##
1914
_ASBOX
1915
      echo
1916
      for ac_var in $ac_subst_files
1917
      do
1918
        eval ac_val=\$$ac_var
1919
        case $ac_val in
1920 82 jeremybenn
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1921 19 jeremybenn
        esac
1922 82 jeremybenn
        $as_echo "$ac_var='\''$ac_val'\''"
1923 19 jeremybenn
      done | sort
1924
      echo
1925
    fi
1926
 
1927
    if test -s confdefs.h; then
1928
      cat <<\_ASBOX
1929
## ----------- ##
1930
## confdefs.h. ##
1931
## ----------- ##
1932
_ASBOX
1933
      echo
1934
      cat confdefs.h
1935
      echo
1936
    fi
1937
    test "$ac_signal" != 0 &&
1938 82 jeremybenn
      $as_echo "$as_me: caught signal $ac_signal"
1939
    $as_echo "$as_me: exit $exit_status"
1940 19 jeremybenn
  } >&5
1941
  rm -f core *.core core.conftest.* &&
1942
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1943
    exit $exit_status
1944
' 0
1945
for ac_signal in 1 2 13 15; do
1946 101 jeremybenn
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1947 19 jeremybenn
done
1948
ac_signal=0
1949
 
1950
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1951
rm -f -r conftest* confdefs.h
1952
 
1953
# Predefined preprocessor variables.
1954
 
1955
cat >>confdefs.h <<_ACEOF
1956
#define PACKAGE_NAME "$PACKAGE_NAME"
1957
_ACEOF
1958
 
1959 101 jeremybenn
 
1960 19 jeremybenn
cat >>confdefs.h <<_ACEOF
1961
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1962
_ACEOF
1963
 
1964 101 jeremybenn
 
1965 19 jeremybenn
cat >>confdefs.h <<_ACEOF
1966
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1967
_ACEOF
1968
 
1969 101 jeremybenn
 
1970 19 jeremybenn
cat >>confdefs.h <<_ACEOF
1971
#define PACKAGE_STRING "$PACKAGE_STRING"
1972
_ACEOF
1973
 
1974 101 jeremybenn
 
1975 19 jeremybenn
cat >>confdefs.h <<_ACEOF
1976
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1977
_ACEOF
1978
 
1979
 
1980
# Let the site file select an alternate cache file if it wants to.
1981 82 jeremybenn
# Prefer an explicitly selected file to automatically selected ones.
1982
ac_site_file1=NONE
1983
ac_site_file2=NONE
1984 19 jeremybenn
if test -n "$CONFIG_SITE"; then
1985 82 jeremybenn
  ac_site_file1=$CONFIG_SITE
1986 19 jeremybenn
elif test "x$prefix" != xNONE; then
1987 82 jeremybenn
  ac_site_file1=$prefix/share/config.site
1988
  ac_site_file2=$prefix/etc/config.site
1989 19 jeremybenn
else
1990 82 jeremybenn
  ac_site_file1=$ac_default_prefix/share/config.site
1991
  ac_site_file2=$ac_default_prefix/etc/config.site
1992 19 jeremybenn
fi
1993 82 jeremybenn
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1994 19 jeremybenn
do
1995 82 jeremybenn
  test "x$ac_site_file" = xNONE && continue
1996 101 jeremybenn
  if test -r "$ac_site_file"; then
1997
    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1998 82 jeremybenn
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1999 19 jeremybenn
    sed 's/^/| /' "$ac_site_file" >&5
2000
    . "$ac_site_file"
2001
  fi
2002
done
2003
 
2004
if test -r "$cache_file"; then
2005 101 jeremybenn
  # Some versions of bash will fail to source /dev/null (special
2006
  # files actually), so we avoid doing that.
2007
  if test -f "$cache_file"; then
2008
    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2009 82 jeremybenn
$as_echo "$as_me: loading cache $cache_file" >&6;}
2010 19 jeremybenn
    case $cache_file in
2011
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2012
      *)                      . "./$cache_file";;
2013
    esac
2014
  fi
2015
else
2016 101 jeremybenn
  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2017 82 jeremybenn
$as_echo "$as_me: creating cache $cache_file" >&6;}
2018 19 jeremybenn
  >$cache_file
2019
fi
2020
 
2021
# Check that the precious variables saved in the cache have kept the same
2022
# value.
2023
ac_cache_corrupted=false
2024
for ac_var in $ac_precious_vars; do
2025
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2026
  eval ac_new_set=\$ac_env_${ac_var}_set
2027
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2028
  eval ac_new_val=\$ac_env_${ac_var}_value
2029
  case $ac_old_set,$ac_new_set in
2030
    set,)
2031 101 jeremybenn
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2032 82 jeremybenn
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2033 19 jeremybenn
      ac_cache_corrupted=: ;;
2034
    ,set)
2035 101 jeremybenn
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2036 82 jeremybenn
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2037 19 jeremybenn
      ac_cache_corrupted=: ;;
2038
    ,);;
2039
    *)
2040
      if test "x$ac_old_val" != "x$ac_new_val"; then
2041 82 jeremybenn
        # differences in whitespace do not lead to failure.
2042
        ac_old_val_w=`echo x $ac_old_val`
2043
        ac_new_val_w=`echo x $ac_new_val`
2044
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
2045 101 jeremybenn
          { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2046 82 jeremybenn
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2047
          ac_cache_corrupted=:
2048
        else
2049 101 jeremybenn
          { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2050 82 jeremybenn
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2051
          eval $ac_var=\$ac_old_val
2052
        fi
2053 101 jeremybenn
        { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2054 82 jeremybenn
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2055 101 jeremybenn
        { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2056 82 jeremybenn
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2057 19 jeremybenn
      fi;;
2058
  esac
2059
  # Pass precious variables to config.status.
2060
  if test "$ac_new_set" = set; then
2061
    case $ac_new_val in
2062 82 jeremybenn
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2063 19 jeremybenn
    *) ac_arg=$ac_var=$ac_new_val ;;
2064
    esac
2065
    case " $ac_configure_args " in
2066
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2067 101 jeremybenn
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2068 19 jeremybenn
    esac
2069
  fi
2070
done
2071
if $ac_cache_corrupted; then
2072 101 jeremybenn
  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2073 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2074 101 jeremybenn
  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2075 82 jeremybenn
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2076 101 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2077
$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2078
   { (exit 1); exit 1; }; }
2079 19 jeremybenn
fi
2080
 
2081 101 jeremybenn
 
2082
 
2083
 
2084
 
2085
 
2086
 
2087
 
2088
 
2089
 
2090
 
2091
 
2092
 
2093
 
2094
 
2095
 
2096
 
2097
 
2098
 
2099
 
2100
 
2101
 
2102
 
2103
 
2104
 
2105 19 jeremybenn
ac_ext=c
2106
ac_cpp='$CPP $CPPFLAGS'
2107
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2108
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2109
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2110
 
2111
 
2112
 
2113 82 jeremybenn
 
2114 91 jeremybenn
# Generically use extensions such as _GNU_SOURCE if available.
2115 19 jeremybenn
ac_ext=c
2116
ac_cpp='$CPP $CPPFLAGS'
2117
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2118
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2119
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2120
if test -n "$ac_tool_prefix"; then
2121
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2122
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2123 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2124 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2125 101 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then
2126 82 jeremybenn
  $as_echo_n "(cached) " >&6
2127 19 jeremybenn
else
2128
  if test -n "$CC"; then
2129
  ac_cv_prog_CC="$CC" # Let the user override the test.
2130
else
2131
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2132
for as_dir in $PATH
2133
do
2134
  IFS=$as_save_IFS
2135
  test -z "$as_dir" && as_dir=.
2136 101 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
2137 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2138
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2139 101 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2140 19 jeremybenn
    break 2
2141
  fi
2142
done
2143 101 jeremybenn
done
2144 19 jeremybenn
IFS=$as_save_IFS
2145
 
2146
fi
2147
fi
2148
CC=$ac_cv_prog_CC
2149
if test -n "$CC"; then
2150 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2151 82 jeremybenn
$as_echo "$CC" >&6; }
2152 19 jeremybenn
else
2153 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
2154 82 jeremybenn
$as_echo "no" >&6; }
2155 19 jeremybenn
fi
2156
 
2157
 
2158
fi
2159
if test -z "$ac_cv_prog_CC"; then
2160
  ac_ct_CC=$CC
2161
  # Extract the first word of "gcc", so it can be a program name with args.
2162
set dummy gcc; ac_word=$2
2163 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2164 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2165 101 jeremybenn
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2166 82 jeremybenn
  $as_echo_n "(cached) " >&6
2167 19 jeremybenn
else
2168
  if test -n "$ac_ct_CC"; then
2169
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2170
else
2171
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2172
for as_dir in $PATH
2173
do
2174
  IFS=$as_save_IFS
2175
  test -z "$as_dir" && as_dir=.
2176 101 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
2177 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2178
    ac_cv_prog_ac_ct_CC="gcc"
2179 101 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2180 19 jeremybenn
    break 2
2181
  fi
2182
done
2183 101 jeremybenn
done
2184 19 jeremybenn
IFS=$as_save_IFS
2185
 
2186
fi
2187
fi
2188
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2189
if test -n "$ac_ct_CC"; then
2190 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2191 82 jeremybenn
$as_echo "$ac_ct_CC" >&6; }
2192 19 jeremybenn
else
2193 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
2194 82 jeremybenn
$as_echo "no" >&6; }
2195 19 jeremybenn
fi
2196
 
2197
  if test "x$ac_ct_CC" = x; then
2198
    CC=""
2199
  else
2200
    case $cross_compiling:$ac_tool_warned in
2201
yes:)
2202 101 jeremybenn
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2203 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2204 19 jeremybenn
ac_tool_warned=yes ;;
2205
esac
2206
    CC=$ac_ct_CC
2207
  fi
2208
else
2209
  CC="$ac_cv_prog_CC"
2210
fi
2211
 
2212
if test -z "$CC"; then
2213
          if test -n "$ac_tool_prefix"; then
2214
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2215
set dummy ${ac_tool_prefix}cc; ac_word=$2
2216 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2217 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2218 101 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then
2219 82 jeremybenn
  $as_echo_n "(cached) " >&6
2220 19 jeremybenn
else
2221
  if test -n "$CC"; then
2222
  ac_cv_prog_CC="$CC" # Let the user override the test.
2223
else
2224
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2225
for as_dir in $PATH
2226
do
2227
  IFS=$as_save_IFS
2228
  test -z "$as_dir" && as_dir=.
2229 101 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
2230 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2231
    ac_cv_prog_CC="${ac_tool_prefix}cc"
2232 101 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2233 19 jeremybenn
    break 2
2234
  fi
2235
done
2236 101 jeremybenn
done
2237 19 jeremybenn
IFS=$as_save_IFS
2238
 
2239
fi
2240
fi
2241
CC=$ac_cv_prog_CC
2242
if test -n "$CC"; then
2243 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2244 82 jeremybenn
$as_echo "$CC" >&6; }
2245 19 jeremybenn
else
2246 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
2247 82 jeremybenn
$as_echo "no" >&6; }
2248 19 jeremybenn
fi
2249
 
2250
 
2251
  fi
2252
fi
2253
if test -z "$CC"; then
2254
  # Extract the first word of "cc", so it can be a program name with args.
2255
set dummy cc; ac_word=$2
2256 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2257 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2258 101 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then
2259 82 jeremybenn
  $as_echo_n "(cached) " >&6
2260 19 jeremybenn
else
2261
  if test -n "$CC"; then
2262
  ac_cv_prog_CC="$CC" # Let the user override the test.
2263
else
2264
  ac_prog_rejected=no
2265
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2266
for as_dir in $PATH
2267
do
2268
  IFS=$as_save_IFS
2269
  test -z "$as_dir" && as_dir=.
2270 101 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
2271 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2272
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2273
       ac_prog_rejected=yes
2274
       continue
2275
     fi
2276
    ac_cv_prog_CC="cc"
2277 101 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2278 19 jeremybenn
    break 2
2279
  fi
2280
done
2281 101 jeremybenn
done
2282 19 jeremybenn
IFS=$as_save_IFS
2283
 
2284
if test $ac_prog_rejected = yes; then
2285
  # We found a bogon in the path, so make sure we never use it.
2286
  set dummy $ac_cv_prog_CC
2287
  shift
2288
  if test $# != 0; then
2289
    # We chose a different compiler from the bogus one.
2290
    # However, it has the same basename, so the bogon will be chosen
2291
    # first if we set CC to just the basename; use the full file name.
2292
    shift
2293
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2294
  fi
2295
fi
2296
fi
2297
fi
2298
CC=$ac_cv_prog_CC
2299
if test -n "$CC"; then
2300 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2301 82 jeremybenn
$as_echo "$CC" >&6; }
2302 19 jeremybenn
else
2303 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
2304 82 jeremybenn
$as_echo "no" >&6; }
2305 19 jeremybenn
fi
2306
 
2307
 
2308
fi
2309
if test -z "$CC"; then
2310
  if test -n "$ac_tool_prefix"; then
2311
  for ac_prog in cl.exe
2312
  do
2313
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2314
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2315 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2316 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2317 101 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then
2318 82 jeremybenn
  $as_echo_n "(cached) " >&6
2319 19 jeremybenn
else
2320
  if test -n "$CC"; then
2321
  ac_cv_prog_CC="$CC" # Let the user override the test.
2322
else
2323
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2324
for as_dir in $PATH
2325
do
2326
  IFS=$as_save_IFS
2327
  test -z "$as_dir" && as_dir=.
2328 101 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
2329 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2330
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2331 101 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2332 19 jeremybenn
    break 2
2333
  fi
2334
done
2335 101 jeremybenn
done
2336 19 jeremybenn
IFS=$as_save_IFS
2337
 
2338
fi
2339
fi
2340
CC=$ac_cv_prog_CC
2341
if test -n "$CC"; then
2342 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2343 82 jeremybenn
$as_echo "$CC" >&6; }
2344 19 jeremybenn
else
2345 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
2346 82 jeremybenn
$as_echo "no" >&6; }
2347 19 jeremybenn
fi
2348
 
2349
 
2350
    test -n "$CC" && break
2351
  done
2352
fi
2353
if test -z "$CC"; then
2354
  ac_ct_CC=$CC
2355
  for ac_prog in cl.exe
2356
do
2357
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2358
set dummy $ac_prog; ac_word=$2
2359 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2360 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2361 101 jeremybenn
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2362 82 jeremybenn
  $as_echo_n "(cached) " >&6
2363 19 jeremybenn
else
2364
  if test -n "$ac_ct_CC"; then
2365
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2366
else
2367
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2368
for as_dir in $PATH
2369
do
2370
  IFS=$as_save_IFS
2371
  test -z "$as_dir" && as_dir=.
2372 101 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
2373 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2374
    ac_cv_prog_ac_ct_CC="$ac_prog"
2375 101 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2376 19 jeremybenn
    break 2
2377
  fi
2378
done
2379 101 jeremybenn
done
2380 19 jeremybenn
IFS=$as_save_IFS
2381
 
2382
fi
2383
fi
2384
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2385
if test -n "$ac_ct_CC"; then
2386 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2387 82 jeremybenn
$as_echo "$ac_ct_CC" >&6; }
2388 19 jeremybenn
else
2389 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
2390 82 jeremybenn
$as_echo "no" >&6; }
2391 19 jeremybenn
fi
2392
 
2393
 
2394
  test -n "$ac_ct_CC" && break
2395
done
2396
 
2397
  if test "x$ac_ct_CC" = x; then
2398
    CC=""
2399
  else
2400
    case $cross_compiling:$ac_tool_warned in
2401
yes:)
2402 101 jeremybenn
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2403 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2404 19 jeremybenn
ac_tool_warned=yes ;;
2405
esac
2406
    CC=$ac_ct_CC
2407
  fi
2408
fi
2409
 
2410
fi
2411
 
2412
 
2413 101 jeremybenn
test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2414 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2415 101 jeremybenn
{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2416
See \`config.log' for more details." >&5
2417
$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2418
See \`config.log' for more details." >&2;}
2419
   { (exit 1); exit 1; }; }; }
2420 19 jeremybenn
 
2421
# Provide some information about the compiler.
2422 101 jeremybenn
$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2423 82 jeremybenn
set X $ac_compile
2424
ac_compiler=$2
2425 101 jeremybenn
{ (ac_try="$ac_compiler --version >&5"
2426 19 jeremybenn
case "(($ac_try" in
2427
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2428
  *) ac_try_echo=$ac_try;;
2429
esac
2430 101 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2431
$as_echo "$ac_try_echo") >&5
2432
  (eval "$ac_compiler --version >&5") 2>&5
2433 19 jeremybenn
  ac_status=$?
2434 101 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435
  (exit $ac_status); }
2436
{ (ac_try="$ac_compiler -v >&5"
2437
case "(($ac_try" in
2438
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2439
  *) ac_try_echo=$ac_try;;
2440
esac
2441
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2442
$as_echo "$ac_try_echo") >&5
2443
  (eval "$ac_compiler -v >&5") 2>&5
2444
  ac_status=$?
2445
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446
  (exit $ac_status); }
2447
{ (ac_try="$ac_compiler -V >&5"
2448
case "(($ac_try" in
2449
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2450
  *) ac_try_echo=$ac_try;;
2451
esac
2452
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2453
$as_echo "$ac_try_echo") >&5
2454
  (eval "$ac_compiler -V >&5") 2>&5
2455
  ac_status=$?
2456
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457
  (exit $ac_status); }
2458 19 jeremybenn
 
2459 101 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
2460
/* confdefs.h.  */
2461
_ACEOF
2462
cat confdefs.h >>conftest.$ac_ext
2463
cat >>conftest.$ac_ext <<_ACEOF
2464 19 jeremybenn
/* end confdefs.h.  */
2465
 
2466
int
2467
main ()
2468
{
2469
 
2470
  ;
2471
  return 0;
2472
}
2473
_ACEOF
2474
ac_clean_files_save=$ac_clean_files
2475 82 jeremybenn
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2476 19 jeremybenn
# Try to create an executable without -o first, disregard a.out.
2477
# It will help us diagnose broken compilers, and finding out an intuition
2478
# of exeext.
2479 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2480
$as_echo_n "checking for C compiler default output file name... " >&6; }
2481 82 jeremybenn
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2482
 
2483
# The possible output files:
2484
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2485
 
2486 19 jeremybenn
ac_rmfiles=
2487
for ac_file in $ac_files
2488
do
2489
  case $ac_file in
2490 82 jeremybenn
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2491 19 jeremybenn
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2492
  esac
2493
done
2494
rm -f $ac_rmfiles
2495
 
2496 101 jeremybenn
if { (ac_try="$ac_link_default"
2497 19 jeremybenn
case "(($ac_try" in
2498
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2499
  *) ac_try_echo=$ac_try;;
2500
esac
2501 101 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2502
$as_echo "$ac_try_echo") >&5
2503 19 jeremybenn
  (eval "$ac_link_default") 2>&5
2504
  ac_status=$?
2505 101 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506
  (exit $ac_status); }; then
2507 19 jeremybenn
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2508
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2509
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2510
# so that the user can short-circuit this test for compilers unknown to
2511
# Autoconf.
2512
for ac_file in $ac_files ''
2513
do
2514
  test -f "$ac_file" || continue
2515
  case $ac_file in
2516 82 jeremybenn
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2517 19 jeremybenn
        ;;
2518
    [ab].out )
2519
        # We found the default executable, but exeext='' is most
2520
        # certainly right.
2521
        break;;
2522
    *.* )
2523 101 jeremybenn
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2524 19 jeremybenn
        then :; else
2525
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2526
        fi
2527
        # We set ac_cv_exeext here because the later test for it is not
2528
        # safe: cross compilers may not add the suffix if given an `-o'
2529
        # argument, so we may need to know it at that point already.
2530
        # Even if this section looks crufty: it has the advantage of
2531
        # actually working.
2532
        break;;
2533
    * )
2534
        break;;
2535
  esac
2536
done
2537
test "$ac_cv_exeext" = no && ac_cv_exeext=
2538
 
2539
else
2540
  ac_file=''
2541
fi
2542 101 jeremybenn
 
2543
{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2544
$as_echo "$ac_file" >&6; }
2545
if test -z "$ac_file"; then
2546
  $as_echo "$as_me: failed program was:" >&5
2547 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
2548
 
2549 101 jeremybenn
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2550 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2551 101 jeremybenn
{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2552
See \`config.log' for more details." >&5
2553
$as_echo "$as_me: error: C compiler cannot create executables
2554
See \`config.log' for more details." >&2;}
2555
   { (exit 77); exit 77; }; }; }
2556 19 jeremybenn
fi
2557 101 jeremybenn
 
2558 19 jeremybenn
ac_exeext=$ac_cv_exeext
2559
 
2560 101 jeremybenn
# Check that the compiler produces executables we can run.  If not, either
2561
# the compiler is broken, or we cross compile.
2562
{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2563
$as_echo_n "checking whether the C compiler works... " >&6; }
2564
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2565
# If not cross compiling, check that we can run a simple program.
2566
if test "$cross_compiling" != yes; then
2567
  if { ac_try='./$ac_file'
2568
  { (case "(($ac_try" in
2569
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2570
  *) ac_try_echo=$ac_try;;
2571
esac
2572
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2573
$as_echo "$ac_try_echo") >&5
2574
  (eval "$ac_try") 2>&5
2575
  ac_status=$?
2576
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577
  (exit $ac_status); }; }; then
2578
    cross_compiling=no
2579
  else
2580
    if test "$cross_compiling" = maybe; then
2581
        cross_compiling=yes
2582
    else
2583
        { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2584
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2585
{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2586
If you meant to cross compile, use \`--host'.
2587
See \`config.log' for more details." >&5
2588
$as_echo "$as_me: error: cannot run C compiled programs.
2589
If you meant to cross compile, use \`--host'.
2590
See \`config.log' for more details." >&2;}
2591
   { (exit 1); exit 1; }; }; }
2592
    fi
2593
  fi
2594
fi
2595
{ $as_echo "$as_me:$LINENO: result: yes" >&5
2596
$as_echo "yes" >&6; }
2597
 
2598 82 jeremybenn
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2599 19 jeremybenn
ac_clean_files=$ac_clean_files_save
2600 101 jeremybenn
# Check that the compiler produces executables we can run.  If not, either
2601
# the compiler is broken, or we cross compile.
2602
{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2603
$as_echo_n "checking whether we are cross compiling... " >&6; }
2604
{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2605
$as_echo "$cross_compiling" >&6; }
2606
 
2607
{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2608 82 jeremybenn
$as_echo_n "checking for suffix of executables... " >&6; }
2609 101 jeremybenn
if { (ac_try="$ac_link"
2610 19 jeremybenn
case "(($ac_try" in
2611
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2612
  *) ac_try_echo=$ac_try;;
2613
esac
2614 101 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2615
$as_echo "$ac_try_echo") >&5
2616 19 jeremybenn
  (eval "$ac_link") 2>&5
2617
  ac_status=$?
2618 101 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619
  (exit $ac_status); }; then
2620 19 jeremybenn
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2621
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2622
# work properly (i.e., refer to `conftest.exe'), while it won't with
2623
# `rm'.
2624
for ac_file in conftest.exe conftest conftest.*; do
2625
  test -f "$ac_file" || continue
2626
  case $ac_file in
2627 82 jeremybenn
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2628 19 jeremybenn
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2629
          break;;
2630
    * ) break;;
2631
  esac
2632
done
2633
else
2634 101 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2635 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2636 101 jeremybenn
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2637
See \`config.log' for more details." >&5
2638
$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2639
See \`config.log' for more details." >&2;}
2640
   { (exit 1); exit 1; }; }; }
2641 19 jeremybenn
fi
2642 101 jeremybenn
 
2643
rm -f conftest$ac_cv_exeext
2644
{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2645 82 jeremybenn
$as_echo "$ac_cv_exeext" >&6; }
2646 19 jeremybenn
 
2647
rm -f conftest.$ac_ext
2648
EXEEXT=$ac_cv_exeext
2649
ac_exeext=$EXEEXT
2650 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2651 82 jeremybenn
$as_echo_n "checking for suffix of object files... " >&6; }
2652 101 jeremybenn
if test "${ac_cv_objext+set}" = set; then
2653 82 jeremybenn
  $as_echo_n "(cached) " >&6
2654 19 jeremybenn
else
2655 101 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
2656
/* confdefs.h.  */
2657
_ACEOF
2658
cat confdefs.h >>conftest.$ac_ext
2659
cat >>conftest.$ac_ext <<_ACEOF
2660 19 jeremybenn
/* end confdefs.h.  */
2661
 
2662
int
2663
main ()
2664
{
2665
 
2666
  ;
2667
  return 0;
2668
}
2669
_ACEOF
2670
rm -f conftest.o conftest.obj
2671 101 jeremybenn
if { (ac_try="$ac_compile"
2672 19 jeremybenn
case "(($ac_try" in
2673
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2674
  *) ac_try_echo=$ac_try;;
2675
esac
2676 101 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2677
$as_echo "$ac_try_echo") >&5
2678 19 jeremybenn
  (eval "$ac_compile") 2>&5
2679
  ac_status=$?
2680 101 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681
  (exit $ac_status); }; then
2682 19 jeremybenn
  for ac_file in conftest.o conftest.obj conftest.*; do
2683
  test -f "$ac_file" || continue;
2684
  case $ac_file in
2685 82 jeremybenn
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2686 19 jeremybenn
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2687
       break;;
2688
  esac
2689
done
2690
else
2691 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
2692 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
2693
 
2694 101 jeremybenn
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2695 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2696 101 jeremybenn
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2697
See \`config.log' for more details." >&5
2698
$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2699
See \`config.log' for more details." >&2;}
2700
   { (exit 1); exit 1; }; }; }
2701 19 jeremybenn
fi
2702 101 jeremybenn
 
2703 19 jeremybenn
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2704
fi
2705 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2706 82 jeremybenn
$as_echo "$ac_cv_objext" >&6; }
2707 19 jeremybenn
OBJEXT=$ac_cv_objext
2708
ac_objext=$OBJEXT
2709 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2710 82 jeremybenn
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2711 101 jeremybenn
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2712 82 jeremybenn
  $as_echo_n "(cached) " >&6
2713 19 jeremybenn
else
2714 101 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
2715
/* confdefs.h.  */
2716
_ACEOF
2717
cat confdefs.h >>conftest.$ac_ext
2718
cat >>conftest.$ac_ext <<_ACEOF
2719 19 jeremybenn
/* end confdefs.h.  */
2720
 
2721
int
2722
main ()
2723
{
2724
#ifndef __GNUC__
2725
       choke me
2726
#endif
2727
 
2728
  ;
2729
  return 0;
2730
}
2731
_ACEOF
2732 101 jeremybenn
rm -f conftest.$ac_objext
2733
if { (ac_try="$ac_compile"
2734
case "(($ac_try" in
2735
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2736
  *) ac_try_echo=$ac_try;;
2737
esac
2738
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2739
$as_echo "$ac_try_echo") >&5
2740
  (eval "$ac_compile") 2>conftest.er1
2741
  ac_status=$?
2742
  grep -v '^ *+' conftest.er1 >conftest.err
2743
  rm -f conftest.er1
2744
  cat conftest.err >&5
2745
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746
  (exit $ac_status); } && {
2747
         test -z "$ac_c_werror_flag" ||
2748
         test ! -s conftest.err
2749
       } && test -s conftest.$ac_objext; then
2750 19 jeremybenn
  ac_compiler_gnu=yes
2751
else
2752 101 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
2753
sed 's/^/| /' conftest.$ac_ext >&5
2754
 
2755
        ac_compiler_gnu=no
2756 19 jeremybenn
fi
2757 101 jeremybenn
 
2758 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2759
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2760
 
2761
fi
2762 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2763 82 jeremybenn
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2764
if test $ac_compiler_gnu = yes; then
2765
  GCC=yes
2766
else
2767
  GCC=
2768
fi
2769 19 jeremybenn
ac_test_CFLAGS=${CFLAGS+set}
2770
ac_save_CFLAGS=$CFLAGS
2771 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2772 82 jeremybenn
$as_echo_n "checking whether $CC accepts -g... " >&6; }
2773 101 jeremybenn
if test "${ac_cv_prog_cc_g+set}" = set; then
2774 82 jeremybenn
  $as_echo_n "(cached) " >&6
2775 19 jeremybenn
else
2776
  ac_save_c_werror_flag=$ac_c_werror_flag
2777
   ac_c_werror_flag=yes
2778
   ac_cv_prog_cc_g=no
2779
   CFLAGS="-g"
2780 101 jeremybenn
   cat >conftest.$ac_ext <<_ACEOF
2781
/* confdefs.h.  */
2782
_ACEOF
2783
cat confdefs.h >>conftest.$ac_ext
2784
cat >>conftest.$ac_ext <<_ACEOF
2785 19 jeremybenn
/* end confdefs.h.  */
2786
 
2787
int
2788
main ()
2789
{
2790
 
2791
  ;
2792
  return 0;
2793
}
2794
_ACEOF
2795 101 jeremybenn
rm -f conftest.$ac_objext
2796
if { (ac_try="$ac_compile"
2797
case "(($ac_try" in
2798
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2799
  *) ac_try_echo=$ac_try;;
2800
esac
2801
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2802
$as_echo "$ac_try_echo") >&5
2803
  (eval "$ac_compile") 2>conftest.er1
2804
  ac_status=$?
2805
  grep -v '^ *+' conftest.er1 >conftest.err
2806
  rm -f conftest.er1
2807
  cat conftest.err >&5
2808
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809
  (exit $ac_status); } && {
2810
         test -z "$ac_c_werror_flag" ||
2811
         test ! -s conftest.err
2812
       } && test -s conftest.$ac_objext; then
2813 19 jeremybenn
  ac_cv_prog_cc_g=yes
2814
else
2815 101 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
2816
sed 's/^/| /' conftest.$ac_ext >&5
2817
 
2818
        CFLAGS=""
2819
      cat >conftest.$ac_ext <<_ACEOF
2820
/* confdefs.h.  */
2821
_ACEOF
2822
cat confdefs.h >>conftest.$ac_ext
2823
cat >>conftest.$ac_ext <<_ACEOF
2824 19 jeremybenn
/* end confdefs.h.  */
2825
 
2826
int
2827
main ()
2828
{
2829
 
2830
  ;
2831
  return 0;
2832
}
2833
_ACEOF
2834 101 jeremybenn
rm -f conftest.$ac_objext
2835
if { (ac_try="$ac_compile"
2836
case "(($ac_try" in
2837
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2838
  *) ac_try_echo=$ac_try;;
2839
esac
2840
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2841
$as_echo "$ac_try_echo") >&5
2842
  (eval "$ac_compile") 2>conftest.er1
2843
  ac_status=$?
2844
  grep -v '^ *+' conftest.er1 >conftest.err
2845
  rm -f conftest.er1
2846
  cat conftest.err >&5
2847
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848
  (exit $ac_status); } && {
2849
         test -z "$ac_c_werror_flag" ||
2850
         test ! -s conftest.err
2851
       } && test -s conftest.$ac_objext; then
2852
  :
2853
else
2854
  $as_echo "$as_me: failed program was:" >&5
2855
sed 's/^/| /' conftest.$ac_ext >&5
2856 98 jeremybenn
 
2857 101 jeremybenn
        ac_c_werror_flag=$ac_save_c_werror_flag
2858 19 jeremybenn
         CFLAGS="-g"
2859 101 jeremybenn
         cat >conftest.$ac_ext <<_ACEOF
2860
/* confdefs.h.  */
2861
_ACEOF
2862
cat confdefs.h >>conftest.$ac_ext
2863
cat >>conftest.$ac_ext <<_ACEOF
2864 19 jeremybenn
/* end confdefs.h.  */
2865
 
2866
int
2867
main ()
2868
{
2869
 
2870
  ;
2871
  return 0;
2872
}
2873
_ACEOF
2874 101 jeremybenn
rm -f conftest.$ac_objext
2875
if { (ac_try="$ac_compile"
2876
case "(($ac_try" in
2877
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2878
  *) ac_try_echo=$ac_try;;
2879
esac
2880
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2881
$as_echo "$ac_try_echo") >&5
2882
  (eval "$ac_compile") 2>conftest.er1
2883
  ac_status=$?
2884
  grep -v '^ *+' conftest.er1 >conftest.err
2885
  rm -f conftest.er1
2886
  cat conftest.err >&5
2887
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888
  (exit $ac_status); } && {
2889
         test -z "$ac_c_werror_flag" ||
2890
         test ! -s conftest.err
2891
       } && test -s conftest.$ac_objext; then
2892 19 jeremybenn
  ac_cv_prog_cc_g=yes
2893 101 jeremybenn
else
2894
  $as_echo "$as_me: failed program was:" >&5
2895
sed 's/^/| /' conftest.$ac_ext >&5
2896
 
2897
 
2898 19 jeremybenn
fi
2899 101 jeremybenn
 
2900 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2901
fi
2902 101 jeremybenn
 
2903 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2904
fi
2905 101 jeremybenn
 
2906 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2907
   ac_c_werror_flag=$ac_save_c_werror_flag
2908
fi
2909 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2910 82 jeremybenn
$as_echo "$ac_cv_prog_cc_g" >&6; }
2911 19 jeremybenn
if test "$ac_test_CFLAGS" = set; then
2912
  CFLAGS=$ac_save_CFLAGS
2913
elif test $ac_cv_prog_cc_g = yes; then
2914
  if test "$GCC" = yes; then
2915
    CFLAGS="-g -O2"
2916
  else
2917
    CFLAGS="-g"
2918
  fi
2919
else
2920
  if test "$GCC" = yes; then
2921
    CFLAGS="-O2"
2922
  else
2923
    CFLAGS=
2924
  fi
2925
fi
2926 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2927 82 jeremybenn
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2928 101 jeremybenn
if test "${ac_cv_prog_cc_c89+set}" = set; then
2929 82 jeremybenn
  $as_echo_n "(cached) " >&6
2930 19 jeremybenn
else
2931
  ac_cv_prog_cc_c89=no
2932
ac_save_CC=$CC
2933 101 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
2934
/* confdefs.h.  */
2935
_ACEOF
2936
cat confdefs.h >>conftest.$ac_ext
2937
cat >>conftest.$ac_ext <<_ACEOF
2938 19 jeremybenn
/* end confdefs.h.  */
2939
#include 
2940
#include 
2941
#include 
2942
#include 
2943
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2944
struct buf { int x; };
2945
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2946
static char *e (p, i)
2947
     char **p;
2948
     int i;
2949
{
2950
  return p[i];
2951
}
2952
static char *f (char * (*g) (char **, int), char **p, ...)
2953
{
2954
  char *s;
2955
  va_list v;
2956
  va_start (v,p);
2957
  s = g (p, va_arg (v,int));
2958
  va_end (v);
2959
  return s;
2960
}
2961
 
2962
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2963
   function prototypes and stuff, but not '\xHH' hex character constants.
2964
   These don't provoke an error unfortunately, instead are silently treated
2965
   as 'x'.  The following induces an error, until -std is added to get
2966
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2967
   array size at least.  It's necessary to write '\x00'==0 to get something
2968
   that's true only with -std.  */
2969
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2970
 
2971
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2972
   inside strings and character constants.  */
2973
#define FOO(x) 'x'
2974
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2975
 
2976
int test (int i, double x);
2977
struct s1 {int (*f) (int a);};
2978
struct s2 {int (*f) (double a);};
2979
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2980
int argc;
2981
char **argv;
2982
int
2983
main ()
2984
{
2985
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2986
  ;
2987
  return 0;
2988
}
2989
_ACEOF
2990
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2991
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2992
do
2993
  CC="$ac_save_CC $ac_arg"
2994 101 jeremybenn
  rm -f conftest.$ac_objext
2995
if { (ac_try="$ac_compile"
2996
case "(($ac_try" in
2997
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2998
  *) ac_try_echo=$ac_try;;
2999
esac
3000
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3001
$as_echo "$ac_try_echo") >&5
3002
  (eval "$ac_compile") 2>conftest.er1
3003
  ac_status=$?
3004
  grep -v '^ *+' conftest.er1 >conftest.err
3005
  rm -f conftest.er1
3006
  cat conftest.err >&5
3007
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008
  (exit $ac_status); } && {
3009
         test -z "$ac_c_werror_flag" ||
3010
         test ! -s conftest.err
3011
       } && test -s conftest.$ac_objext; then
3012 19 jeremybenn
  ac_cv_prog_cc_c89=$ac_arg
3013 101 jeremybenn
else
3014
  $as_echo "$as_me: failed program was:" >&5
3015
sed 's/^/| /' conftest.$ac_ext >&5
3016
 
3017
 
3018 19 jeremybenn
fi
3019 101 jeremybenn
 
3020 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext
3021
  test "x$ac_cv_prog_cc_c89" != "xno" && break
3022
done
3023
rm -f conftest.$ac_ext
3024
CC=$ac_save_CC
3025
 
3026
fi
3027
# AC_CACHE_VAL
3028
case "x$ac_cv_prog_cc_c89" in
3029
  x)
3030 101 jeremybenn
    { $as_echo "$as_me:$LINENO: result: none needed" >&5
3031 82 jeremybenn
$as_echo "none needed" >&6; } ;;
3032 19 jeremybenn
  xno)
3033 101 jeremybenn
    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3034 82 jeremybenn
$as_echo "unsupported" >&6; } ;;
3035 19 jeremybenn
  *)
3036
    CC="$CC $ac_cv_prog_cc_c89"
3037 101 jeremybenn
    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3038 82 jeremybenn
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3039 19 jeremybenn
esac
3040
 
3041
 
3042
ac_ext=c
3043
ac_cpp='$CPP $CPPFLAGS'
3044
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3045
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3046
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3047
 
3048 91 jeremybenn
 
3049
ac_ext=c
3050
ac_cpp='$CPP $CPPFLAGS'
3051
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3052
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3053
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3054 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3055 91 jeremybenn
$as_echo_n "checking how to run the C preprocessor... " >&6; }
3056
# On Suns, sometimes $CPP names a directory.
3057
if test -n "$CPP" && test -d "$CPP"; then
3058
  CPP=
3059
fi
3060
if test -z "$CPP"; then
3061 101 jeremybenn
  if test "${ac_cv_prog_CPP+set}" = set; then
3062 82 jeremybenn
  $as_echo_n "(cached) " >&6
3063 19 jeremybenn
else
3064 91 jeremybenn
      # Double quotes because CPP needs to be expanded
3065
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3066
    do
3067
      ac_preproc_ok=false
3068
for ac_c_preproc_warn_flag in '' yes
3069 19 jeremybenn
do
3070 91 jeremybenn
  # Use a header file that comes with gcc, so configuring glibc
3071
  # with a fresh cross-compiler works.
3072
  # Prefer  to  if __STDC__ is defined, since
3073
  #  exists even on freestanding compilers.
3074
  # On the NeXT, cc -E runs the code through the compiler's parser,
3075
  # not just through cpp. "Syntax error" is here to catch this case.
3076 101 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
3077
/* confdefs.h.  */
3078
_ACEOF
3079
cat confdefs.h >>conftest.$ac_ext
3080
cat >>conftest.$ac_ext <<_ACEOF
3081 91 jeremybenn
/* end confdefs.h.  */
3082
#ifdef __STDC__
3083
# include 
3084
#else
3085
# include 
3086
#endif
3087
                     Syntax error
3088
_ACEOF
3089 101 jeremybenn
if { (ac_try="$ac_cpp conftest.$ac_ext"
3090
case "(($ac_try" in
3091
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3092
  *) ac_try_echo=$ac_try;;
3093
esac
3094
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3095
$as_echo "$ac_try_echo") >&5
3096
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3097
  ac_status=$?
3098
  grep -v '^ *+' conftest.er1 >conftest.err
3099
  rm -f conftest.er1
3100
  cat conftest.err >&5
3101
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102
  (exit $ac_status); } >/dev/null && {
3103
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3104
         test ! -s conftest.err
3105
       }; then
3106
  :
3107
else
3108
  $as_echo "$as_me: failed program was:" >&5
3109
sed 's/^/| /' conftest.$ac_ext >&5
3110 98 jeremybenn
 
3111 91 jeremybenn
  # Broken: fails on valid input.
3112
continue
3113
fi
3114 101 jeremybenn
 
3115 91 jeremybenn
rm -f conftest.err conftest.$ac_ext
3116
 
3117
  # OK, works on sane cases.  Now check whether nonexistent headers
3118
  # can be detected and how.
3119 101 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
3120
/* confdefs.h.  */
3121
_ACEOF
3122
cat confdefs.h >>conftest.$ac_ext
3123
cat >>conftest.$ac_ext <<_ACEOF
3124 91 jeremybenn
/* end confdefs.h.  */
3125
#include 
3126
_ACEOF
3127 101 jeremybenn
if { (ac_try="$ac_cpp conftest.$ac_ext"
3128
case "(($ac_try" in
3129
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3130
  *) ac_try_echo=$ac_try;;
3131
esac
3132
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3133
$as_echo "$ac_try_echo") >&5
3134
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3135
  ac_status=$?
3136
  grep -v '^ *+' conftest.er1 >conftest.err
3137
  rm -f conftest.er1
3138
  cat conftest.err >&5
3139
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140
  (exit $ac_status); } >/dev/null && {
3141
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3142
         test ! -s conftest.err
3143
       }; then
3144 91 jeremybenn
  # Broken: success on invalid input.
3145
continue
3146 82 jeremybenn
else
3147 101 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
3148
sed 's/^/| /' conftest.$ac_ext >&5
3149
 
3150 91 jeremybenn
  # Passes both tests.
3151
ac_preproc_ok=:
3152
break
3153 82 jeremybenn
fi
3154 101 jeremybenn
 
3155 91 jeremybenn
rm -f conftest.err conftest.$ac_ext
3156
 
3157
done
3158
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3159
rm -f conftest.err conftest.$ac_ext
3160 101 jeremybenn
if $ac_preproc_ok; then
3161 91 jeremybenn
  break
3162 19 jeremybenn
fi
3163
 
3164 91 jeremybenn
    done
3165
    ac_cv_prog_CPP=$CPP
3166 19 jeremybenn
 
3167 91 jeremybenn
fi
3168
  CPP=$ac_cv_prog_CPP
3169
else
3170
  ac_cv_prog_CPP=$CPP
3171
fi
3172 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3173 91 jeremybenn
$as_echo "$CPP" >&6; }
3174
ac_preproc_ok=false
3175
for ac_c_preproc_warn_flag in '' yes
3176
do
3177
  # Use a header file that comes with gcc, so configuring glibc
3178
  # with a fresh cross-compiler works.
3179
  # Prefer  to  if __STDC__ is defined, since
3180
  #  exists even on freestanding compilers.
3181
  # On the NeXT, cc -E runs the code through the compiler's parser,
3182
  # not just through cpp. "Syntax error" is here to catch this case.
3183 101 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
3184
/* confdefs.h.  */
3185
_ACEOF
3186
cat confdefs.h >>conftest.$ac_ext
3187
cat >>conftest.$ac_ext <<_ACEOF
3188 91 jeremybenn
/* end confdefs.h.  */
3189
#ifdef __STDC__
3190
# include 
3191
#else
3192
# include 
3193
#endif
3194
                     Syntax error
3195
_ACEOF
3196 101 jeremybenn
if { (ac_try="$ac_cpp conftest.$ac_ext"
3197
case "(($ac_try" in
3198
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199
  *) ac_try_echo=$ac_try;;
3200
esac
3201
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3202
$as_echo "$ac_try_echo") >&5
3203
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3204
  ac_status=$?
3205
  grep -v '^ *+' conftest.er1 >conftest.err
3206
  rm -f conftest.er1
3207
  cat conftest.err >&5
3208
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209
  (exit $ac_status); } >/dev/null && {
3210
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3211
         test ! -s conftest.err
3212
       }; then
3213
  :
3214
else
3215
  $as_echo "$as_me: failed program was:" >&5
3216
sed 's/^/| /' conftest.$ac_ext >&5
3217 98 jeremybenn
 
3218 91 jeremybenn
  # Broken: fails on valid input.
3219
continue
3220
fi
3221 101 jeremybenn
 
3222 91 jeremybenn
rm -f conftest.err conftest.$ac_ext
3223 82 jeremybenn
 
3224 91 jeremybenn
  # OK, works on sane cases.  Now check whether nonexistent headers
3225
  # can be detected and how.
3226 101 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
3227
/* confdefs.h.  */
3228
_ACEOF
3229
cat confdefs.h >>conftest.$ac_ext
3230
cat >>conftest.$ac_ext <<_ACEOF
3231 91 jeremybenn
/* end confdefs.h.  */
3232
#include 
3233
_ACEOF
3234 101 jeremybenn
if { (ac_try="$ac_cpp conftest.$ac_ext"
3235
case "(($ac_try" in
3236
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3237
  *) ac_try_echo=$ac_try;;
3238
esac
3239
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3240
$as_echo "$ac_try_echo") >&5
3241
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3242
  ac_status=$?
3243
  grep -v '^ *+' conftest.er1 >conftest.err
3244
  rm -f conftest.er1
3245
  cat conftest.err >&5
3246
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247
  (exit $ac_status); } >/dev/null && {
3248
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3249
         test ! -s conftest.err
3250
       }; then
3251 91 jeremybenn
  # Broken: success on invalid input.
3252
continue
3253
else
3254 101 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
3255
sed 's/^/| /' conftest.$ac_ext >&5
3256
 
3257 91 jeremybenn
  # Passes both tests.
3258
ac_preproc_ok=:
3259
break
3260
fi
3261 101 jeremybenn
 
3262 91 jeremybenn
rm -f conftest.err conftest.$ac_ext
3263 82 jeremybenn
 
3264 91 jeremybenn
done
3265
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3266
rm -f conftest.err conftest.$ac_ext
3267 101 jeremybenn
if $ac_preproc_ok; then
3268
  :
3269 91 jeremybenn
else
3270 101 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3271 91 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3272 101 jeremybenn
{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3273
See \`config.log' for more details." >&5
3274
$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3275
See \`config.log' for more details." >&2;}
3276
   { (exit 1); exit 1; }; }; }
3277 91 jeremybenn
fi
3278 82 jeremybenn
 
3279 91 jeremybenn
ac_ext=c
3280
ac_cpp='$CPP $CPPFLAGS'
3281
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3282
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3283
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3284 82 jeremybenn
 
3285
 
3286 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3287 82 jeremybenn
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3288 101 jeremybenn
if test "${ac_cv_path_GREP+set}" = set; then
3289 82 jeremybenn
  $as_echo_n "(cached) " >&6
3290 19 jeremybenn
else
3291 82 jeremybenn
  if test -z "$GREP"; then
3292 19 jeremybenn
  ac_path_GREP_found=false
3293 82 jeremybenn
  # Loop through the user's path and test for each of PROGNAME-LIST
3294
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3295 19 jeremybenn
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3296
do
3297
  IFS=$as_save_IFS
3298
  test -z "$as_dir" && as_dir=.
3299 101 jeremybenn
  for ac_prog in grep ggrep; do
3300 82 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
3301
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3302
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3303
# Check for GNU ac_path_GREP and select it if it is found.
3304 19 jeremybenn
  # Check for GNU $ac_path_GREP
3305
case `"$ac_path_GREP" --version 2>&1` in
3306
*GNU*)
3307
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3308
*)
3309
  ac_count=0
3310 82 jeremybenn
  $as_echo_n 0123456789 >"conftest.in"
3311 19 jeremybenn
  while :
3312
  do
3313
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3314
    mv "conftest.tmp" "conftest.in"
3315
    cp "conftest.in" "conftest.nl"
3316 82 jeremybenn
    $as_echo 'GREP' >> "conftest.nl"
3317 19 jeremybenn
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3318
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3319 101 jeremybenn
    ac_count=`expr $ac_count + 1`
3320 19 jeremybenn
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3321
      # Best one so far, save it but keep looking for a better one
3322
      ac_cv_path_GREP="$ac_path_GREP"
3323
      ac_path_GREP_max=$ac_count
3324
    fi
3325
    # 10*(2^10) chars as input seems more than enough
3326
    test $ac_count -gt 10 && break
3327
  done
3328
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3329
esac
3330
 
3331 82 jeremybenn
      $ac_path_GREP_found && break 3
3332
    done
3333 19 jeremybenn
  done
3334 101 jeremybenn
done
3335 19 jeremybenn
IFS=$as_save_IFS
3336 82 jeremybenn
  if test -z "$ac_cv_path_GREP"; then
3337 101 jeremybenn
    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3338
$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3339
   { (exit 1); exit 1; }; }
3340 82 jeremybenn
  fi
3341 19 jeremybenn
else
3342
  ac_cv_path_GREP=$GREP
3343
fi
3344
 
3345
fi
3346 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3347 82 jeremybenn
$as_echo "$ac_cv_path_GREP" >&6; }
3348 19 jeremybenn
 GREP="$ac_cv_path_GREP"
3349
 
3350
 
3351 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3352 82 jeremybenn
$as_echo_n "checking for egrep... " >&6; }
3353 101 jeremybenn
if test "${ac_cv_path_EGREP+set}" = set; then
3354 82 jeremybenn
  $as_echo_n "(cached) " >&6
3355 19 jeremybenn
else
3356
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3357
   then ac_cv_path_EGREP="$GREP -E"
3358
   else
3359 82 jeremybenn
     if test -z "$EGREP"; then
3360 19 jeremybenn
  ac_path_EGREP_found=false
3361 82 jeremybenn
  # Loop through the user's path and test for each of PROGNAME-LIST
3362
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3363 19 jeremybenn
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3364
do
3365
  IFS=$as_save_IFS
3366
  test -z "$as_dir" && as_dir=.
3367 101 jeremybenn
  for ac_prog in egrep; do
3368 82 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
3369
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3370
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3371
# Check for GNU ac_path_EGREP and select it if it is found.
3372 19 jeremybenn
  # Check for GNU $ac_path_EGREP
3373
case `"$ac_path_EGREP" --version 2>&1` in
3374
*GNU*)
3375
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3376
*)
3377
  ac_count=0
3378 82 jeremybenn
  $as_echo_n 0123456789 >"conftest.in"
3379 19 jeremybenn
  while :
3380
  do
3381
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3382
    mv "conftest.tmp" "conftest.in"
3383
    cp "conftest.in" "conftest.nl"
3384 82 jeremybenn
    $as_echo 'EGREP' >> "conftest.nl"
3385 19 jeremybenn
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3386
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3387 101 jeremybenn
    ac_count=`expr $ac_count + 1`
3388 19 jeremybenn
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3389
      # Best one so far, save it but keep looking for a better one
3390
      ac_cv_path_EGREP="$ac_path_EGREP"
3391
      ac_path_EGREP_max=$ac_count
3392
    fi
3393
    # 10*(2^10) chars as input seems more than enough
3394
    test $ac_count -gt 10 && break
3395
  done
3396
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3397
esac
3398
 
3399 82 jeremybenn
      $ac_path_EGREP_found && break 3
3400
    done
3401 19 jeremybenn
  done
3402 101 jeremybenn
done
3403 19 jeremybenn
IFS=$as_save_IFS
3404 82 jeremybenn
  if test -z "$ac_cv_path_EGREP"; then
3405 101 jeremybenn
    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3406
$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3407
   { (exit 1); exit 1; }; }
3408 82 jeremybenn
  fi
3409
else
3410
  ac_cv_path_EGREP=$EGREP
3411 19 jeremybenn
fi
3412
 
3413 82 jeremybenn
   fi
3414 19 jeremybenn
fi
3415 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3416 82 jeremybenn
$as_echo "$ac_cv_path_EGREP" >&6; }
3417
 EGREP="$ac_cv_path_EGREP"
3418 19 jeremybenn
 
3419 82 jeremybenn
 
3420 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3421 91 jeremybenn
$as_echo_n "checking for ANSI C header files... " >&6; }
3422 101 jeremybenn
if test "${ac_cv_header_stdc+set}" = set; then
3423 91 jeremybenn
  $as_echo_n "(cached) " >&6
3424
else
3425 101 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
3426
/* confdefs.h.  */
3427
_ACEOF
3428
cat confdefs.h >>conftest.$ac_ext
3429
cat >>conftest.$ac_ext <<_ACEOF
3430 91 jeremybenn
/* end confdefs.h.  */
3431
#include 
3432
#include 
3433
#include 
3434
#include 
3435
 
3436
int
3437
main ()
3438
{
3439
 
3440
  ;
3441
  return 0;
3442
}
3443
_ACEOF
3444 101 jeremybenn
rm -f conftest.$ac_objext
3445
if { (ac_try="$ac_compile"
3446
case "(($ac_try" in
3447
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3448
  *) ac_try_echo=$ac_try;;
3449
esac
3450
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3451
$as_echo "$ac_try_echo") >&5
3452
  (eval "$ac_compile") 2>conftest.er1
3453
  ac_status=$?
3454
  grep -v '^ *+' conftest.er1 >conftest.err
3455
  rm -f conftest.er1
3456
  cat conftest.err >&5
3457
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458
  (exit $ac_status); } && {
3459
         test -z "$ac_c_werror_flag" ||
3460
         test ! -s conftest.err
3461
       } && test -s conftest.$ac_objext; then
3462 91 jeremybenn
  ac_cv_header_stdc=yes
3463
else
3464 101 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
3465
sed 's/^/| /' conftest.$ac_ext >&5
3466
 
3467
        ac_cv_header_stdc=no
3468 91 jeremybenn
fi
3469 101 jeremybenn
 
3470 91 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3471
 
3472
if test $ac_cv_header_stdc = yes; then
3473
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3474 101 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
3475
/* confdefs.h.  */
3476
_ACEOF
3477
cat confdefs.h >>conftest.$ac_ext
3478
cat >>conftest.$ac_ext <<_ACEOF
3479 91 jeremybenn
/* end confdefs.h.  */
3480
#include 
3481
 
3482
_ACEOF
3483
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3484 101 jeremybenn
  $EGREP "memchr" >/dev/null 2>&1; then
3485
  :
3486 91 jeremybenn
else
3487
  ac_cv_header_stdc=no
3488
fi
3489
rm -f conftest*
3490
 
3491
fi
3492
 
3493
if test $ac_cv_header_stdc = yes; then
3494
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3495 101 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
3496
/* confdefs.h.  */
3497
_ACEOF
3498
cat confdefs.h >>conftest.$ac_ext
3499
cat >>conftest.$ac_ext <<_ACEOF
3500 91 jeremybenn
/* end confdefs.h.  */
3501
#include 
3502
 
3503
_ACEOF
3504
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3505 101 jeremybenn
  $EGREP "free" >/dev/null 2>&1; then
3506
  :
3507 91 jeremybenn
else
3508
  ac_cv_header_stdc=no
3509
fi
3510
rm -f conftest*
3511
 
3512
fi
3513
 
3514
if test $ac_cv_header_stdc = yes; then
3515
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3516 101 jeremybenn
  if test "$cross_compiling" = yes; then
3517 91 jeremybenn
  :
3518
else
3519 101 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
3520
/* confdefs.h.  */
3521
_ACEOF
3522
cat confdefs.h >>conftest.$ac_ext
3523
cat >>conftest.$ac_ext <<_ACEOF
3524 91 jeremybenn
/* end confdefs.h.  */
3525
#include 
3526
#include 
3527
#if ((' ' & 0x0FF) == 0x020)
3528
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3529
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3530
#else
3531
# define ISLOWER(c) \
3532
                   (('a' <= (c) && (c) <= 'i') \
3533
                     || ('j' <= (c) && (c) <= 'r') \
3534
                     || ('s' <= (c) && (c) <= 'z'))
3535
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3536
#endif
3537
 
3538
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3539
int
3540
main ()
3541
{
3542
  int i;
3543
  for (i = 0; i < 256; i++)
3544
    if (XOR (islower (i), ISLOWER (i))
3545
        || toupper (i) != TOUPPER (i))
3546
      return 2;
3547
  return 0;
3548
}
3549
_ACEOF
3550 101 jeremybenn
rm -f conftest$ac_exeext
3551
if { (ac_try="$ac_link"
3552
case "(($ac_try" in
3553
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554
  *) ac_try_echo=$ac_try;;
3555
esac
3556
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3557
$as_echo "$ac_try_echo") >&5
3558
  (eval "$ac_link") 2>&5
3559
  ac_status=$?
3560
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3562
  { (case "(($ac_try" in
3563
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3564
  *) ac_try_echo=$ac_try;;
3565
esac
3566
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3567
$as_echo "$ac_try_echo") >&5
3568
  (eval "$ac_try") 2>&5
3569
  ac_status=$?
3570
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571
  (exit $ac_status); }; }; then
3572
  :
3573
else
3574
  $as_echo "$as_me: program exited with status $ac_status" >&5
3575
$as_echo "$as_me: failed program was:" >&5
3576
sed 's/^/| /' conftest.$ac_ext >&5
3577 98 jeremybenn
 
3578 101 jeremybenn
( exit $ac_status )
3579
ac_cv_header_stdc=no
3580 91 jeremybenn
fi
3581 101 jeremybenn
rm -rf conftest.dSYM
3582
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3583 91 jeremybenn
fi
3584
 
3585 101 jeremybenn
 
3586 91 jeremybenn
fi
3587
fi
3588 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3589 91 jeremybenn
$as_echo "$ac_cv_header_stdc" >&6; }
3590
if test $ac_cv_header_stdc = yes; then
3591
 
3592 101 jeremybenn
cat >>confdefs.h <<\_ACEOF
3593
#define STDC_HEADERS 1
3594
_ACEOF
3595 91 jeremybenn
 
3596
fi
3597
 
3598
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3599 101 jeremybenn
 
3600
 
3601
 
3602
 
3603
 
3604
 
3605
 
3606
 
3607
 
3608 91 jeremybenn
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3609
                  inttypes.h stdint.h unistd.h
3610 101 jeremybenn
do
3611
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3612
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3613
$as_echo_n "checking for $ac_header... " >&6; }
3614
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3615
  $as_echo_n "(cached) " >&6
3616
else
3617
  cat >conftest.$ac_ext <<_ACEOF
3618
/* confdefs.h.  */
3619
_ACEOF
3620
cat confdefs.h >>conftest.$ac_ext
3621
cat >>conftest.$ac_ext <<_ACEOF
3622
/* end confdefs.h.  */
3623
$ac_includes_default
3624
 
3625
#include <$ac_header>
3626
_ACEOF
3627
rm -f conftest.$ac_objext
3628
if { (ac_try="$ac_compile"
3629
case "(($ac_try" in
3630
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3631
  *) ac_try_echo=$ac_try;;
3632
esac
3633
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3634
$as_echo "$ac_try_echo") >&5
3635
  (eval "$ac_compile") 2>conftest.er1
3636
  ac_status=$?
3637
  grep -v '^ *+' conftest.er1 >conftest.err
3638
  rm -f conftest.er1
3639
  cat conftest.err >&5
3640
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641
  (exit $ac_status); } && {
3642
         test -z "$ac_c_werror_flag" ||
3643
         test ! -s conftest.err
3644
       } && test -s conftest.$ac_objext; then
3645
  eval "$as_ac_Header=yes"
3646
else
3647
  $as_echo "$as_me: failed program was:" >&5
3648
sed 's/^/| /' conftest.$ac_ext >&5
3649
 
3650
        eval "$as_ac_Header=no"
3651
fi
3652
 
3653
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3654
fi
3655
ac_res=`eval 'as_val=${'$as_ac_Header'}
3656
                 $as_echo "$as_val"'`
3657
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
3658
$as_echo "$ac_res" >&6; }
3659
as_val=`eval 'as_val=${'$as_ac_Header'}
3660
                 $as_echo "$as_val"'`
3661
   if test "x$as_val" = x""yes; then
3662 91 jeremybenn
  cat >>confdefs.h <<_ACEOF
3663
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3664
_ACEOF
3665
 
3666
fi
3667
 
3668
done
3669
 
3670
 
3671
 
3672 101 jeremybenn
  if test "${ac_cv_header_minix_config_h+set}" = set; then
3673
  { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
3674
$as_echo_n "checking for minix/config.h... " >&6; }
3675
if test "${ac_cv_header_minix_config_h+set}" = set; then
3676
  $as_echo_n "(cached) " >&6
3677
fi
3678
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3679
$as_echo "$ac_cv_header_minix_config_h" >&6; }
3680
else
3681
  # Is the header compilable?
3682
{ $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3683
$as_echo_n "checking minix/config.h usability... " >&6; }
3684
cat >conftest.$ac_ext <<_ACEOF
3685
/* confdefs.h.  */
3686
_ACEOF
3687
cat confdefs.h >>conftest.$ac_ext
3688
cat >>conftest.$ac_ext <<_ACEOF
3689
/* end confdefs.h.  */
3690
$ac_includes_default
3691
#include 
3692
_ACEOF
3693
rm -f conftest.$ac_objext
3694
if { (ac_try="$ac_compile"
3695
case "(($ac_try" in
3696
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3697
  *) ac_try_echo=$ac_try;;
3698
esac
3699
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3700
$as_echo "$ac_try_echo") >&5
3701
  (eval "$ac_compile") 2>conftest.er1
3702
  ac_status=$?
3703
  grep -v '^ *+' conftest.er1 >conftest.err
3704
  rm -f conftest.er1
3705
  cat conftest.err >&5
3706
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707
  (exit $ac_status); } && {
3708
         test -z "$ac_c_werror_flag" ||
3709
         test ! -s conftest.err
3710
       } && test -s conftest.$ac_objext; then
3711
  ac_header_compiler=yes
3712
else
3713
  $as_echo "$as_me: failed program was:" >&5
3714
sed 's/^/| /' conftest.$ac_ext >&5
3715
 
3716
        ac_header_compiler=no
3717
fi
3718
 
3719
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3720
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3721
$as_echo "$ac_header_compiler" >&6; }
3722
 
3723
# Is the header present?
3724
{ $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3725
$as_echo_n "checking minix/config.h presence... " >&6; }
3726
cat >conftest.$ac_ext <<_ACEOF
3727
/* confdefs.h.  */
3728
_ACEOF
3729
cat confdefs.h >>conftest.$ac_ext
3730
cat >>conftest.$ac_ext <<_ACEOF
3731
/* end confdefs.h.  */
3732
#include 
3733
_ACEOF
3734
if { (ac_try="$ac_cpp conftest.$ac_ext"
3735
case "(($ac_try" in
3736
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3737
  *) ac_try_echo=$ac_try;;
3738
esac
3739
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3740
$as_echo "$ac_try_echo") >&5
3741
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3742
  ac_status=$?
3743
  grep -v '^ *+' conftest.er1 >conftest.err
3744
  rm -f conftest.er1
3745
  cat conftest.err >&5
3746
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747
  (exit $ac_status); } >/dev/null && {
3748
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3749
         test ! -s conftest.err
3750
       }; then
3751
  ac_header_preproc=yes
3752
else
3753
  $as_echo "$as_me: failed program was:" >&5
3754
sed 's/^/| /' conftest.$ac_ext >&5
3755
 
3756
  ac_header_preproc=no
3757
fi
3758
 
3759
rm -f conftest.err conftest.$ac_ext
3760
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3761
$as_echo "$ac_header_preproc" >&6; }
3762
 
3763
# So?  What about this header?
3764
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3765
  yes:no: )
3766
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3767
$as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3768
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3769
$as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3770
    ac_header_preproc=yes
3771
    ;;
3772
  no:yes:* )
3773
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3774
$as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3775
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
3776
$as_echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
3777
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3778
$as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3779
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
3780
$as_echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
3781
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3782
$as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3783
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3784
$as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3785
    ( cat <<\_ASBOX
3786
## ------------------------------------- ##
3787
## Report this to openrisc@opencores.org ##
3788
## ------------------------------------- ##
3789
_ASBOX
3790
     ) | sed "s/^/$as_me: WARNING:     /" >&2
3791
    ;;
3792
esac
3793
{ $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
3794
$as_echo_n "checking for minix/config.h... " >&6; }
3795
if test "${ac_cv_header_minix_config_h+set}" = set; then
3796
  $as_echo_n "(cached) " >&6
3797
else
3798
  ac_cv_header_minix_config_h=$ac_header_preproc
3799
fi
3800
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3801
$as_echo "$ac_cv_header_minix_config_h" >&6; }
3802
 
3803
fi
3804
if test "x$ac_cv_header_minix_config_h" = x""yes; then
3805 91 jeremybenn
  MINIX=yes
3806
else
3807
  MINIX=
3808
fi
3809
 
3810
 
3811
  if test "$MINIX" = yes; then
3812
 
3813 101 jeremybenn
cat >>confdefs.h <<\_ACEOF
3814
#define _POSIX_SOURCE 1
3815
_ACEOF
3816 91 jeremybenn
 
3817
 
3818 101 jeremybenn
cat >>confdefs.h <<\_ACEOF
3819
#define _POSIX_1_SOURCE 2
3820
_ACEOF
3821 91 jeremybenn
 
3822
 
3823 101 jeremybenn
cat >>confdefs.h <<\_ACEOF
3824
#define _MINIX 1
3825
_ACEOF
3826 91 jeremybenn
 
3827
  fi
3828
 
3829
 
3830 101 jeremybenn
 
3831
  { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3832 91 jeremybenn
$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3833 101 jeremybenn
if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3834 91 jeremybenn
  $as_echo_n "(cached) " >&6
3835
else
3836 101 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
3837
/* confdefs.h.  */
3838
_ACEOF
3839
cat confdefs.h >>conftest.$ac_ext
3840
cat >>conftest.$ac_ext <<_ACEOF
3841 91 jeremybenn
/* end confdefs.h.  */
3842
 
3843
#         define __EXTENSIONS__ 1
3844
          $ac_includes_default
3845
int
3846
main ()
3847
{
3848
 
3849
  ;
3850
  return 0;
3851
}
3852
_ACEOF
3853 101 jeremybenn
rm -f conftest.$ac_objext
3854
if { (ac_try="$ac_compile"
3855
case "(($ac_try" in
3856
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3857
  *) ac_try_echo=$ac_try;;
3858
esac
3859
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3860
$as_echo "$ac_try_echo") >&5
3861
  (eval "$ac_compile") 2>conftest.er1
3862
  ac_status=$?
3863
  grep -v '^ *+' conftest.er1 >conftest.err
3864
  rm -f conftest.er1
3865
  cat conftest.err >&5
3866
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867
  (exit $ac_status); } && {
3868
         test -z "$ac_c_werror_flag" ||
3869
         test ! -s conftest.err
3870
       } && test -s conftest.$ac_objext; then
3871 91 jeremybenn
  ac_cv_safe_to_define___extensions__=yes
3872
else
3873 101 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
3874
sed 's/^/| /' conftest.$ac_ext >&5
3875
 
3876
        ac_cv_safe_to_define___extensions__=no
3877 91 jeremybenn
fi
3878 101 jeremybenn
 
3879 91 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3880
fi
3881 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3882 91 jeremybenn
$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3883
  test $ac_cv_safe_to_define___extensions__ = yes &&
3884 101 jeremybenn
    cat >>confdefs.h <<\_ACEOF
3885
#define __EXTENSIONS__ 1
3886
_ACEOF
3887 91 jeremybenn
 
3888 101 jeremybenn
  cat >>confdefs.h <<\_ACEOF
3889
#define _ALL_SOURCE 1
3890
_ACEOF
3891 91 jeremybenn
 
3892 101 jeremybenn
  cat >>confdefs.h <<\_ACEOF
3893
#define _GNU_SOURCE 1
3894
_ACEOF
3895 91 jeremybenn
 
3896 101 jeremybenn
  cat >>confdefs.h <<\_ACEOF
3897
#define _POSIX_PTHREAD_SEMANTICS 1
3898
_ACEOF
3899 91 jeremybenn
 
3900 101 jeremybenn
  cat >>confdefs.h <<\_ACEOF
3901
#define _TANDEM_SOURCE 1
3902
_ACEOF
3903 91 jeremybenn
 
3904
 
3905
 
3906
# Check we have the execute source file present for sanity. Specify a separate
3907
# config for the testsuite OR1K specific programs, since we'll need different
3908
# tool chain there (the OpenRISC one, rather than the native one).
3909
 
3910
ac_aux_dir=
3911
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3912 101 jeremybenn
  if test -f "$ac_dir/install-sh"; then
3913
    ac_aux_dir=$ac_dir
3914
    ac_install_sh="$ac_aux_dir/install-sh -c"
3915
    break
3916
  elif test -f "$ac_dir/install.sh"; then
3917
    ac_aux_dir=$ac_dir
3918
    ac_install_sh="$ac_aux_dir/install.sh -c"
3919
    break
3920
  elif test -f "$ac_dir/shtool"; then
3921
    ac_aux_dir=$ac_dir
3922
    ac_install_sh="$ac_aux_dir/shtool install -c"
3923
    break
3924
  fi
3925 91 jeremybenn
done
3926
if test -z "$ac_aux_dir"; then
3927 101 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
3928
$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
3929
   { (exit 1); exit 1; }; }
3930 91 jeremybenn
fi
3931
 
3932
# These three variables are undocumented and unsupported,
3933
# and are intended to be withdrawn in a future Autoconf release.
3934
# They can cause serious problems if a builder's source tree is in a directory
3935
# whose full name contains unusual characters.
3936
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3937
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3938
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3939
 
3940
 
3941
 
3942
 
3943
subdirs="$subdirs testsuite/test-code-or1k"
3944
 
3945
 
3946
# Make sure we can run config.sub.
3947
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3948 101 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3949
$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3950
   { (exit 1); exit 1; }; }
3951 91 jeremybenn
 
3952 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking build system type" >&5
3953 91 jeremybenn
$as_echo_n "checking build system type... " >&6; }
3954 101 jeremybenn
if test "${ac_cv_build+set}" = set; then
3955 91 jeremybenn
  $as_echo_n "(cached) " >&6
3956
else
3957
  ac_build_alias=$build_alias
3958
test "x$ac_build_alias" = x &&
3959
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3960
test "x$ac_build_alias" = x &&
3961 101 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3962
$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3963
   { (exit 1); exit 1; }; }
3964 91 jeremybenn
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3965 101 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3966
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3967
   { (exit 1); exit 1; }; }
3968 91 jeremybenn
 
3969
fi
3970 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3971 91 jeremybenn
$as_echo "$ac_cv_build" >&6; }
3972
case $ac_cv_build in
3973
*-*-*) ;;
3974 101 jeremybenn
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3975
$as_echo "$as_me: error: invalid value of canonical build" >&2;}
3976
   { (exit 1); exit 1; }; };;
3977 91 jeremybenn
esac
3978
build=$ac_cv_build
3979
ac_save_IFS=$IFS; IFS='-'
3980
set x $ac_cv_build
3981
shift
3982
build_cpu=$1
3983
build_vendor=$2
3984
shift; shift
3985
# Remember, the first character of IFS is used to create $*,
3986
# except with old shells:
3987
build_os=$*
3988
IFS=$ac_save_IFS
3989
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3990
 
3991
 
3992 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking host system type" >&5
3993 91 jeremybenn
$as_echo_n "checking host system type... " >&6; }
3994 101 jeremybenn
if test "${ac_cv_host+set}" = set; then
3995 91 jeremybenn
  $as_echo_n "(cached) " >&6
3996
else
3997
  if test "x$host_alias" = x; then
3998
  ac_cv_host=$ac_cv_build
3999
else
4000
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4001 101 jeremybenn
    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4002
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4003
   { (exit 1); exit 1; }; }
4004 91 jeremybenn
fi
4005
 
4006
fi
4007 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4008 91 jeremybenn
$as_echo "$ac_cv_host" >&6; }
4009
case $ac_cv_host in
4010
*-*-*) ;;
4011 101 jeremybenn
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4012
$as_echo "$as_me: error: invalid value of canonical host" >&2;}
4013
   { (exit 1); exit 1; }; };;
4014 91 jeremybenn
esac
4015
host=$ac_cv_host
4016
ac_save_IFS=$IFS; IFS='-'
4017
set x $ac_cv_host
4018
shift
4019
host_cpu=$1
4020
host_vendor=$2
4021
shift; shift
4022
# Remember, the first character of IFS is used to create $*,
4023
# except with old shells:
4024
host_os=$*
4025
IFS=$ac_save_IFS
4026
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4027
 
4028
 
4029 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking target system type" >&5
4030 91 jeremybenn
$as_echo_n "checking target system type... " >&6; }
4031 101 jeremybenn
if test "${ac_cv_target+set}" = set; then
4032 91 jeremybenn
  $as_echo_n "(cached) " >&6
4033
else
4034
  if test "x$target_alias" = x; then
4035
  ac_cv_target=$ac_cv_host
4036
else
4037
  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4038 101 jeremybenn
    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
4039
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
4040
   { (exit 1); exit 1; }; }
4041 91 jeremybenn
fi
4042
 
4043
fi
4044 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
4045 91 jeremybenn
$as_echo "$ac_cv_target" >&6; }
4046
case $ac_cv_target in
4047
*-*-*) ;;
4048 101 jeremybenn
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
4049
$as_echo "$as_me: error: invalid value of canonical target" >&2;}
4050
   { (exit 1); exit 1; }; };;
4051 91 jeremybenn
esac
4052
target=$ac_cv_target
4053
ac_save_IFS=$IFS; IFS='-'
4054
set x $ac_cv_target
4055
shift
4056
target_cpu=$1
4057
target_vendor=$2
4058
shift; shift
4059
# Remember, the first character of IFS is used to create $*,
4060
# except with old shells:
4061
target_os=$*
4062
IFS=$ac_save_IFS
4063
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4064
 
4065
 
4066
# The aliases save the names the user supplied, while $host etc.
4067
# will get canonicalized.
4068
test -n "$target_alias" &&
4069
  test "$program_prefix$program_suffix$program_transform_name" = \
4070
    NONENONEs,x,x, &&
4071
  program_prefix=${target_alias}-
4072
case `pwd` in
4073
  *\ * | *\     *)
4074 101 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4075 91 jeremybenn
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4076
esac
4077
 
4078
 
4079
 
4080 96 jeremybenn
macro_version='2.2.6b'
4081
macro_revision='1.3017'
4082 91 jeremybenn
 
4083
 
4084
 
4085
 
4086
 
4087
 
4088
 
4089
 
4090
 
4091
 
4092
 
4093
 
4094
 
4095
ltmain="$ac_aux_dir/ltmain.sh"
4096
 
4097 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4098 91 jeremybenn
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4099 101 jeremybenn
if test "${ac_cv_path_SED+set}" = set; then
4100 91 jeremybenn
  $as_echo_n "(cached) " >&6
4101
else
4102
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4103
     for ac_i in 1 2 3 4 5 6 7; do
4104
       ac_script="$ac_script$as_nl$ac_script"
4105
     done
4106
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4107 101 jeremybenn
     $as_unset ac_script || ac_script=
4108 91 jeremybenn
     if test -z "$SED"; then
4109
  ac_path_SED_found=false
4110
  # Loop through the user's path and test for each of PROGNAME-LIST
4111
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4112
for as_dir in $PATH
4113
do
4114
  IFS=$as_save_IFS
4115
  test -z "$as_dir" && as_dir=.
4116 101 jeremybenn
  for ac_prog in sed gsed; do
4117 91 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4118
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4119
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4120
# Check for GNU ac_path_SED and select it if it is found.
4121
  # Check for GNU $ac_path_SED
4122
case `"$ac_path_SED" --version 2>&1` in
4123
*GNU*)
4124
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4125
*)
4126
  ac_count=0
4127
  $as_echo_n 0123456789 >"conftest.in"
4128
  while :
4129
  do
4130
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4131
    mv "conftest.tmp" "conftest.in"
4132
    cp "conftest.in" "conftest.nl"
4133
    $as_echo '' >> "conftest.nl"
4134
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4135
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4136 101 jeremybenn
    ac_count=`expr $ac_count + 1`
4137 91 jeremybenn
    if test $ac_count -gt ${ac_path_SED_max-0}; then
4138
      # Best one so far, save it but keep looking for a better one
4139
      ac_cv_path_SED="$ac_path_SED"
4140
      ac_path_SED_max=$ac_count
4141
    fi
4142
    # 10*(2^10) chars as input seems more than enough
4143
    test $ac_count -gt 10 && break
4144
  done
4145
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4146
esac
4147
 
4148
      $ac_path_SED_found && break 3
4149
    done
4150
  done
4151 101 jeremybenn
done
4152 91 jeremybenn
IFS=$as_save_IFS
4153
  if test -z "$ac_cv_path_SED"; then
4154 101 jeremybenn
    { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4155
$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4156
   { (exit 1); exit 1; }; }
4157 91 jeremybenn
  fi
4158
else
4159
  ac_cv_path_SED=$SED
4160
fi
4161
 
4162
fi
4163 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4164 91 jeremybenn
$as_echo "$ac_cv_path_SED" >&6; }
4165
 SED="$ac_cv_path_SED"
4166
  rm -f conftest.sed
4167
 
4168
test -z "$SED" && SED=sed
4169
Xsed="$SED -e 1s/^X//"
4170
 
4171
 
4172
 
4173
 
4174
 
4175
 
4176
 
4177
 
4178
 
4179
 
4180
 
4181 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4182 82 jeremybenn
$as_echo_n "checking for fgrep... " >&6; }
4183 101 jeremybenn
if test "${ac_cv_path_FGREP+set}" = set; then
4184 82 jeremybenn
  $as_echo_n "(cached) " >&6
4185 19 jeremybenn
else
4186 82 jeremybenn
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4187
   then ac_cv_path_FGREP="$GREP -F"
4188
   else
4189
     if test -z "$FGREP"; then
4190
  ac_path_FGREP_found=false
4191
  # Loop through the user's path and test for each of PROGNAME-LIST
4192
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4193
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4194
do
4195
  IFS=$as_save_IFS
4196
  test -z "$as_dir" && as_dir=.
4197 101 jeremybenn
  for ac_prog in fgrep; do
4198 82 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4199
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4200
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4201
# Check for GNU ac_path_FGREP and select it if it is found.
4202
  # Check for GNU $ac_path_FGREP
4203
case `"$ac_path_FGREP" --version 2>&1` in
4204
*GNU*)
4205
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4206
*)
4207
  ac_count=0
4208
  $as_echo_n 0123456789 >"conftest.in"
4209
  while :
4210
  do
4211
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4212
    mv "conftest.tmp" "conftest.in"
4213
    cp "conftest.in" "conftest.nl"
4214
    $as_echo 'FGREP' >> "conftest.nl"
4215
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4216
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4217 101 jeremybenn
    ac_count=`expr $ac_count + 1`
4218 82 jeremybenn
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4219
      # Best one so far, save it but keep looking for a better one
4220
      ac_cv_path_FGREP="$ac_path_FGREP"
4221
      ac_path_FGREP_max=$ac_count
4222
    fi
4223
    # 10*(2^10) chars as input seems more than enough
4224
    test $ac_count -gt 10 && break
4225
  done
4226
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4227
esac
4228
 
4229
      $ac_path_FGREP_found && break 3
4230
    done
4231
  done
4232 101 jeremybenn
done
4233 82 jeremybenn
IFS=$as_save_IFS
4234
  if test -z "$ac_cv_path_FGREP"; then
4235 101 jeremybenn
    { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4236
$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4237
   { (exit 1); exit 1; }; }
4238 82 jeremybenn
  fi
4239
else
4240
  ac_cv_path_FGREP=$FGREP
4241 19 jeremybenn
fi
4242
 
4243
   fi
4244
fi
4245 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4246 82 jeremybenn
$as_echo "$ac_cv_path_FGREP" >&6; }
4247
 FGREP="$ac_cv_path_FGREP"
4248 19 jeremybenn
 
4249
 
4250 82 jeremybenn
test -z "$GREP" && GREP=grep
4251 19 jeremybenn
 
4252 82 jeremybenn
 
4253
 
4254
 
4255
 
4256
 
4257
 
4258
 
4259
 
4260
 
4261
 
4262
 
4263
 
4264
 
4265
 
4266
 
4267
 
4268
 
4269
 
4270 19 jeremybenn
# Check whether --with-gnu-ld was given.
4271 101 jeremybenn
if test "${with_gnu_ld+set}" = set; then
4272 19 jeremybenn
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4273
else
4274
  with_gnu_ld=no
4275
fi
4276
 
4277
ac_prog=ld
4278
if test "$GCC" = yes; then
4279
  # Check if gcc -print-prog-name=ld gives a path.
4280 101 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4281 82 jeremybenn
$as_echo_n "checking for ld used by $CC... " >&6; }
4282 19 jeremybenn
  case $host in
4283
  *-*-mingw*)
4284
    # gcc leaves a trailing carriage return which upsets mingw
4285
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4286
  *)
4287
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4288
  esac
4289
  case $ac_prog in
4290
    # Accept absolute paths.
4291
    [\\/]* | ?:[\\/]*)
4292
      re_direlt='/[^/][^/]*/\.\./'
4293
      # Canonicalize the pathname of ld
4294 82 jeremybenn
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4295
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4296
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4297 19 jeremybenn
      done
4298
      test -z "$LD" && LD="$ac_prog"
4299
      ;;
4300
  "")
4301
    # If it fails, then pretend we aren't using GCC.
4302
    ac_prog=ld
4303
    ;;
4304
  *)
4305
    # If it is relative, then search for the first ld in PATH.
4306
    with_gnu_ld=unknown
4307
    ;;
4308
  esac
4309
elif test "$with_gnu_ld" = yes; then
4310 101 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4311 82 jeremybenn
$as_echo_n "checking for GNU ld... " >&6; }
4312 19 jeremybenn
else
4313 101 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4314 82 jeremybenn
$as_echo_n "checking for non-GNU ld... " >&6; }
4315 19 jeremybenn
fi
4316 101 jeremybenn
if test "${lt_cv_path_LD+set}" = set; then
4317 82 jeremybenn
  $as_echo_n "(cached) " >&6
4318 19 jeremybenn
else
4319
  if test -z "$LD"; then
4320
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4321
  for ac_dir in $PATH; do
4322
    IFS="$lt_save_ifs"
4323
    test -z "$ac_dir" && ac_dir=.
4324
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4325
      lt_cv_path_LD="$ac_dir/$ac_prog"
4326
      # Check to see if the program is GNU ld.  I'd rather use --version,
4327
      # but apparently some variants of GNU ld only accept -v.
4328
      # Break only if it was the GNU/non-GNU ld that we prefer.
4329
      case `"$lt_cv_path_LD" -v 2>&1 
4330
      *GNU* | *'with BFD'*)
4331
        test "$with_gnu_ld" != no && break
4332
        ;;
4333
      *)
4334
        test "$with_gnu_ld" != yes && break
4335
        ;;
4336
      esac
4337
    fi
4338
  done
4339
  IFS="$lt_save_ifs"
4340
else
4341
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4342
fi
4343
fi
4344
 
4345
LD="$lt_cv_path_LD"
4346
if test -n "$LD"; then
4347 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $LD" >&5
4348 82 jeremybenn
$as_echo "$LD" >&6; }
4349 19 jeremybenn
else
4350 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
4351 82 jeremybenn
$as_echo "no" >&6; }
4352 19 jeremybenn
fi
4353 101 jeremybenn
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4354
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4355
   { (exit 1); exit 1; }; }
4356
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4357 82 jeremybenn
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4358 101 jeremybenn
if test "${lt_cv_prog_gnu_ld+set}" = set; then
4359 82 jeremybenn
  $as_echo_n "(cached) " >&6
4360 19 jeremybenn
else
4361
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4362
case `$LD -v 2>&1 
4363
*GNU* | *'with BFD'*)
4364
  lt_cv_prog_gnu_ld=yes
4365
  ;;
4366
*)
4367
  lt_cv_prog_gnu_ld=no
4368
  ;;
4369
esac
4370
fi
4371 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4372 82 jeremybenn
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4373 19 jeremybenn
with_gnu_ld=$lt_cv_prog_gnu_ld
4374
 
4375
 
4376
 
4377 82 jeremybenn
 
4378
 
4379
 
4380
 
4381
 
4382
 
4383 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4384 82 jeremybenn
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4385 101 jeremybenn
if test "${lt_cv_path_NM+set}" = set; then
4386 82 jeremybenn
  $as_echo_n "(cached) " >&6
4387 19 jeremybenn
else
4388
  if test -n "$NM"; then
4389
  # Let the user override the test.
4390
  lt_cv_path_NM="$NM"
4391
else
4392
  lt_nm_to_check="${ac_tool_prefix}nm"
4393
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4394
    lt_nm_to_check="$lt_nm_to_check nm"
4395
  fi
4396
  for lt_tmp_nm in $lt_nm_to_check; do
4397
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4398
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4399
      IFS="$lt_save_ifs"
4400
      test -z "$ac_dir" && ac_dir=.
4401
      tmp_nm="$ac_dir/$lt_tmp_nm"
4402
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4403
        # Check to see if the nm accepts a BSD-compat flag.
4404
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4405
        #   nm: unknown option "B" ignored
4406
        # Tru64's nm complains that /dev/null is an invalid object file
4407
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4408
        */dev/null* | *'Invalid file or object type'*)
4409
          lt_cv_path_NM="$tmp_nm -B"
4410
          break
4411
          ;;
4412
        *)
4413
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4414
          */dev/null*)
4415
            lt_cv_path_NM="$tmp_nm -p"
4416
            break
4417
            ;;
4418
          *)
4419
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4420
            continue # so that we can try to find one that supports BSD flags
4421
            ;;
4422
          esac
4423
          ;;
4424
        esac
4425
      fi
4426
    done
4427
    IFS="$lt_save_ifs"
4428
  done
4429 82 jeremybenn
  : ${lt_cv_path_NM=no}
4430 19 jeremybenn
fi
4431
fi
4432 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4433 82 jeremybenn
$as_echo "$lt_cv_path_NM" >&6; }
4434
if test "$lt_cv_path_NM" != "no"; then
4435
  NM="$lt_cv_path_NM"
4436
else
4437
  # Didn't find any BSD compatible name lister, look for dumpbin.
4438
  if test -n "$ac_tool_prefix"; then
4439
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4440
  do
4441
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4442
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4443 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4444 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4445 101 jeremybenn
if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4446 82 jeremybenn
  $as_echo_n "(cached) " >&6
4447
else
4448
  if test -n "$DUMPBIN"; then
4449
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4450
else
4451
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4452
for as_dir in $PATH
4453
do
4454
  IFS=$as_save_IFS
4455
  test -z "$as_dir" && as_dir=.
4456 101 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
4457 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4458
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4459 101 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4460 82 jeremybenn
    break 2
4461
  fi
4462
done
4463 101 jeremybenn
done
4464 82 jeremybenn
IFS=$as_save_IFS
4465 19 jeremybenn
 
4466 82 jeremybenn
fi
4467
fi
4468
DUMPBIN=$ac_cv_prog_DUMPBIN
4469
if test -n "$DUMPBIN"; then
4470 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4471 82 jeremybenn
$as_echo "$DUMPBIN" >&6; }
4472
else
4473 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
4474 82 jeremybenn
$as_echo "no" >&6; }
4475
fi
4476
 
4477
 
4478
    test -n "$DUMPBIN" && break
4479
  done
4480
fi
4481
if test -z "$DUMPBIN"; then
4482
  ac_ct_DUMPBIN=$DUMPBIN
4483
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4484
do
4485
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4486
set dummy $ac_prog; ac_word=$2
4487 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4488 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4489 101 jeremybenn
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4490 82 jeremybenn
  $as_echo_n "(cached) " >&6
4491
else
4492
  if test -n "$ac_ct_DUMPBIN"; then
4493
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4494
else
4495
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4496
for as_dir in $PATH
4497
do
4498
  IFS=$as_save_IFS
4499
  test -z "$as_dir" && as_dir=.
4500 101 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
4501 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4502
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4503 101 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4504 82 jeremybenn
    break 2
4505
  fi
4506
done
4507 101 jeremybenn
done
4508 82 jeremybenn
IFS=$as_save_IFS
4509
 
4510
fi
4511
fi
4512
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4513
if test -n "$ac_ct_DUMPBIN"; then
4514 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4515 82 jeremybenn
$as_echo "$ac_ct_DUMPBIN" >&6; }
4516
else
4517 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
4518 82 jeremybenn
$as_echo "no" >&6; }
4519
fi
4520
 
4521
 
4522
  test -n "$ac_ct_DUMPBIN" && break
4523
done
4524
 
4525
  if test "x$ac_ct_DUMPBIN" = x; then
4526
    DUMPBIN=":"
4527
  else
4528
    case $cross_compiling:$ac_tool_warned in
4529
yes:)
4530 101 jeremybenn
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4531 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4532
ac_tool_warned=yes ;;
4533
esac
4534
    DUMPBIN=$ac_ct_DUMPBIN
4535
  fi
4536
fi
4537
 
4538
 
4539
  if test "$DUMPBIN" != ":"; then
4540
    NM="$DUMPBIN"
4541
  fi
4542
fi
4543
test -z "$NM" && NM=nm
4544
 
4545
 
4546
 
4547
 
4548
 
4549
 
4550 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4551 82 jeremybenn
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4552 101 jeremybenn
if test "${lt_cv_nm_interface+set}" = set; then
4553 82 jeremybenn
  $as_echo_n "(cached) " >&6
4554
else
4555
  lt_cv_nm_interface="BSD nm"
4556
  echo "int some_variable = 0;" > conftest.$ac_ext
4557 112 jeremybenn
  (eval echo "\"\$as_me:4557: $ac_compile\"" >&5)
4558 82 jeremybenn
  (eval "$ac_compile" 2>conftest.err)
4559
  cat conftest.err >&5
4560 112 jeremybenn
  (eval echo "\"\$as_me:4560: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4561 82 jeremybenn
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4562
  cat conftest.err >&5
4563 112 jeremybenn
  (eval echo "\"\$as_me:4563: output\"" >&5)
4564 82 jeremybenn
  cat conftest.out >&5
4565
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4566
    lt_cv_nm_interface="MS dumpbin"
4567
  fi
4568
  rm -f conftest*
4569
fi
4570 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4571 82 jeremybenn
$as_echo "$lt_cv_nm_interface" >&6; }
4572
 
4573 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4574 82 jeremybenn
$as_echo_n "checking whether ln -s works... " >&6; }
4575 19 jeremybenn
LN_S=$as_ln_s
4576
if test "$LN_S" = "ln -s"; then
4577 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: yes" >&5
4578 82 jeremybenn
$as_echo "yes" >&6; }
4579 19 jeremybenn
else
4580 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4581 82 jeremybenn
$as_echo "no, using $LN_S" >&6; }
4582 19 jeremybenn
fi
4583
 
4584 82 jeremybenn
# find the maximum length of command line arguments
4585 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4586 82 jeremybenn
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4587 101 jeremybenn
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4588 82 jeremybenn
  $as_echo_n "(cached) " >&6
4589
else
4590
    i=0
4591
  teststring="ABCD"
4592
 
4593
  case $build_os in
4594
  msdosdjgpp*)
4595
    # On DJGPP, this test can blow up pretty badly due to problems in libc
4596
    # (any single argument exceeding 2000 bytes causes a buffer overrun
4597
    # during glob expansion).  Even if it were fixed, the result of this
4598
    # check would be larger than it should be.
4599
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4600
    ;;
4601
 
4602
  gnu*)
4603
    # Under GNU Hurd, this test is not required because there is
4604
    # no limit to the length of command line arguments.
4605
    # Libtool will interpret -1 as no limit whatsoever
4606
    lt_cv_sys_max_cmd_len=-1;
4607
    ;;
4608
 
4609
  cygwin* | mingw* | cegcc*)
4610
    # On Win9x/ME, this test blows up -- it succeeds, but takes
4611
    # about 5 minutes as the teststring grows exponentially.
4612
    # Worse, since 9x/ME are not pre-emptively multitasking,
4613
    # you end up with a "frozen" computer, even though with patience
4614
    # the test eventually succeeds (with a max line length of 256k).
4615
    # Instead, let's just punt: use the minimum linelength reported by
4616
    # all of the supported platforms: 8192 (on NT/2K/XP).
4617
    lt_cv_sys_max_cmd_len=8192;
4618
    ;;
4619
 
4620
  amigaos*)
4621
    # On AmigaOS with pdksh, this test takes hours, literally.
4622
    # So we just punt and use a minimum line length of 8192.
4623
    lt_cv_sys_max_cmd_len=8192;
4624
    ;;
4625
 
4626
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4627
    # This has been around since 386BSD, at least.  Likely further.
4628
    if test -x /sbin/sysctl; then
4629
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4630
    elif test -x /usr/sbin/sysctl; then
4631
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4632
    else
4633
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4634
    fi
4635
    # And add a safety zone
4636
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4637
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4638
    ;;
4639
 
4640
  interix*)
4641
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4642
    lt_cv_sys_max_cmd_len=196608
4643
    ;;
4644
 
4645
  osf*)
4646
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4647
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4648
    # nice to cause kernel panics so lets avoid the loop below.
4649
    # First set a reasonable default.
4650
    lt_cv_sys_max_cmd_len=16384
4651
    #
4652
    if test -x /sbin/sysconfig; then
4653
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4654
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4655
      esac
4656
    fi
4657
    ;;
4658
  sco3.2v5*)
4659
    lt_cv_sys_max_cmd_len=102400
4660
    ;;
4661
  sysv5* | sco5v6* | sysv4.2uw2*)
4662
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4663
    if test -n "$kargmax"; then
4664
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4665
    else
4666
      lt_cv_sys_max_cmd_len=32768
4667
    fi
4668
    ;;
4669
  *)
4670
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4671
    if test -n "$lt_cv_sys_max_cmd_len"; then
4672
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4673
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4674
    else
4675
      # Make teststring a little bigger before we do anything with it.
4676
      # a 1K string should be a reasonable start.
4677
      for i in 1 2 3 4 5 6 7 8 ; do
4678
        teststring=$teststring$teststring
4679
      done
4680
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4681
      # If test is not a shell built-in, we'll probably end up computing a
4682
      # maximum length that is only half of the actual maximum length, but
4683
      # we can't tell.
4684
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4685
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4686
              test $i != 17 # 1/2 MB should be enough
4687
      do
4688
        i=`expr $i + 1`
4689
        teststring=$teststring$teststring
4690
      done
4691
      # Only check the string length outside the loop.
4692
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4693
      teststring=
4694
      # Add a significant safety factor because C++ compilers can tack on
4695
      # massive amounts of additional arguments before passing them to the
4696
      # linker.  It appears as though 1/2 is a usable value.
4697
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4698
    fi
4699
    ;;
4700
  esac
4701
 
4702
fi
4703
 
4704
if test -n $lt_cv_sys_max_cmd_len ; then
4705 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4706 82 jeremybenn
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4707
else
4708 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: none" >&5
4709 82 jeremybenn
$as_echo "none" >&6; }
4710
fi
4711
max_cmd_len=$lt_cv_sys_max_cmd_len
4712
 
4713
 
4714
 
4715
 
4716
 
4717
 
4718
: ${CP="cp -f"}
4719
: ${MV="mv -f"}
4720
: ${RM="rm -f"}
4721
 
4722 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4723 82 jeremybenn
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4724
# Try some XSI features
4725
xsi_shell=no
4726
( _lt_dummy="a/b/c"
4727
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4728
      = c,a/b,, \
4729
    && eval 'test $(( 1 + 1 )) -eq 2 \
4730
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4731
  && xsi_shell=yes
4732 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4733 82 jeremybenn
$as_echo "$xsi_shell" >&6; }
4734
 
4735
 
4736 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4737 82 jeremybenn
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4738
lt_shell_append=no
4739
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4740
    >/dev/null 2>&1 \
4741
  && lt_shell_append=yes
4742 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4743 82 jeremybenn
$as_echo "$lt_shell_append" >&6; }
4744
 
4745
 
4746
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4747
  lt_unset=unset
4748
else
4749
  lt_unset=false
4750
fi
4751
 
4752
 
4753
 
4754
 
4755
 
4756
# test EBCDIC or ASCII
4757
case `echo X|tr X '\101'` in
4758
 A) # ASCII based system
4759
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4760
  lt_SP2NL='tr \040 \012'
4761
  lt_NL2SP='tr \015\012 \040\040'
4762
  ;;
4763
 *) # EBCDIC based system
4764
  lt_SP2NL='tr \100 \n'
4765
  lt_NL2SP='tr \r\n \100\100'
4766
  ;;
4767
esac
4768
 
4769
 
4770
 
4771
 
4772
 
4773
 
4774
 
4775
 
4776
 
4777 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4778 82 jeremybenn
$as_echo_n "checking for $LD option to reload object files... " >&6; }
4779 101 jeremybenn
if test "${lt_cv_ld_reload_flag+set}" = set; then
4780 82 jeremybenn
  $as_echo_n "(cached) " >&6
4781
else
4782
  lt_cv_ld_reload_flag='-r'
4783
fi
4784 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4785 82 jeremybenn
$as_echo "$lt_cv_ld_reload_flag" >&6; }
4786
reload_flag=$lt_cv_ld_reload_flag
4787
case $reload_flag in
4788
"" | " "*) ;;
4789
*) reload_flag=" $reload_flag" ;;
4790
esac
4791
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4792
case $host_os in
4793
  darwin*)
4794
    if test "$GCC" = yes; then
4795
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4796
    else
4797
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4798
    fi
4799
    ;;
4800
esac
4801
 
4802
 
4803
 
4804
 
4805
 
4806
 
4807
 
4808
 
4809
 
4810
if test -n "$ac_tool_prefix"; then
4811
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4812
set dummy ${ac_tool_prefix}objdump; ac_word=$2
4813 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4814 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4815 101 jeremybenn
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4816 82 jeremybenn
  $as_echo_n "(cached) " >&6
4817
else
4818
  if test -n "$OBJDUMP"; then
4819
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4820
else
4821
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4822
for as_dir in $PATH
4823
do
4824
  IFS=$as_save_IFS
4825
  test -z "$as_dir" && as_dir=.
4826 101 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
4827 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4828
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4829 101 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4830 82 jeremybenn
    break 2
4831
  fi
4832
done
4833 101 jeremybenn
done
4834 82 jeremybenn
IFS=$as_save_IFS
4835
 
4836
fi
4837
fi
4838
OBJDUMP=$ac_cv_prog_OBJDUMP
4839
if test -n "$OBJDUMP"; then
4840 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4841 82 jeremybenn
$as_echo "$OBJDUMP" >&6; }
4842
else
4843 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
4844 82 jeremybenn
$as_echo "no" >&6; }
4845
fi
4846
 
4847
 
4848
fi
4849
if test -z "$ac_cv_prog_OBJDUMP"; then
4850
  ac_ct_OBJDUMP=$OBJDUMP
4851
  # Extract the first word of "objdump", so it can be a program name with args.
4852
set dummy objdump; ac_word=$2
4853 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4854 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4855 101 jeremybenn
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4856 82 jeremybenn
  $as_echo_n "(cached) " >&6
4857
else
4858
  if test -n "$ac_ct_OBJDUMP"; then
4859
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4860
else
4861
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4862
for as_dir in $PATH
4863
do
4864
  IFS=$as_save_IFS
4865
  test -z "$as_dir" && as_dir=.
4866 101 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
4867 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4868
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4869 101 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4870 82 jeremybenn
    break 2
4871
  fi
4872
done
4873 101 jeremybenn
done
4874 82 jeremybenn
IFS=$as_save_IFS
4875
 
4876
fi
4877
fi
4878
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4879
if test -n "$ac_ct_OBJDUMP"; then
4880 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4881 82 jeremybenn
$as_echo "$ac_ct_OBJDUMP" >&6; }
4882
else
4883 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
4884 82 jeremybenn
$as_echo "no" >&6; }
4885
fi
4886
 
4887
  if test "x$ac_ct_OBJDUMP" = x; then
4888
    OBJDUMP="false"
4889
  else
4890
    case $cross_compiling:$ac_tool_warned in
4891
yes:)
4892 101 jeremybenn
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4893 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4894
ac_tool_warned=yes ;;
4895
esac
4896
    OBJDUMP=$ac_ct_OBJDUMP
4897
  fi
4898
else
4899
  OBJDUMP="$ac_cv_prog_OBJDUMP"
4900
fi
4901
 
4902
test -z "$OBJDUMP" && OBJDUMP=objdump
4903
 
4904
 
4905
 
4906
 
4907
 
4908
 
4909
 
4910
 
4911
 
4912 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4913 82 jeremybenn
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4914 101 jeremybenn
if test "${lt_cv_deplibs_check_method+set}" = set; then
4915 82 jeremybenn
  $as_echo_n "(cached) " >&6
4916 19 jeremybenn
else
4917
  lt_cv_file_magic_cmd='$MAGIC_CMD'
4918
lt_cv_file_magic_test_file=
4919
lt_cv_deplibs_check_method='unknown'
4920
# Need to set the preceding variable on all platforms that support
4921
# interlibrary dependencies.
4922
# 'none' -- dependencies not supported.
4923
# `unknown' -- same as none, but documents that we really don't know.
4924
# 'pass_all' -- all dependencies passed with no checks.
4925
# 'test_compile' -- check by making test program.
4926
# 'file_magic [[regex]]' -- check by looking for files in library path
4927
# which responds to the $file_magic_cmd with a given extended regex.
4928
# If you have `file' or equivalent on your system and you're not sure
4929
# whether `pass_all' will *always* work, you probably want this one.
4930
 
4931
case $host_os in
4932 82 jeremybenn
aix[4-9]*)
4933 19 jeremybenn
  lt_cv_deplibs_check_method=pass_all
4934
  ;;
4935
 
4936
beos*)
4937
  lt_cv_deplibs_check_method=pass_all
4938
  ;;
4939
 
4940
bsdi[45]*)
4941
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4942
  lt_cv_file_magic_cmd='/usr/bin/file -L'
4943
  lt_cv_file_magic_test_file=/shlib/libc.so
4944
  ;;
4945
 
4946
cygwin*)
4947
  # func_win32_libid is a shell function defined in ltmain.sh
4948
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4949
  lt_cv_file_magic_cmd='func_win32_libid'
4950
  ;;
4951
 
4952
mingw* | pw32*)
4953
  # Base MSYS/MinGW do not provide the 'file' command needed by
4954
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4955
  # unless we find 'file', for example because we are cross-compiling.
4956
  if ( file / ) >/dev/null 2>&1; then
4957
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4958
    lt_cv_file_magic_cmd='func_win32_libid'
4959
  else
4960
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4961
    lt_cv_file_magic_cmd='$OBJDUMP -f'
4962
  fi
4963
  ;;
4964
 
4965 82 jeremybenn
cegcc)
4966
  # use the weaker test based on 'objdump'. See mingw*.
4967
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4968
  lt_cv_file_magic_cmd='$OBJDUMP -f'
4969
  ;;
4970
 
4971 19 jeremybenn
darwin* | rhapsody*)
4972
  lt_cv_deplibs_check_method=pass_all
4973
  ;;
4974
 
4975
freebsd* | dragonfly*)
4976 82 jeremybenn
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4977 19 jeremybenn
    case $host_cpu in
4978
    i*86 )
4979
      # Not sure whether the presence of OpenBSD here was a mistake.
4980
      # Let's accept both of them until this is cleared up.
4981
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4982
      lt_cv_file_magic_cmd=/usr/bin/file
4983
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4984
      ;;
4985
    esac
4986
  else
4987
    lt_cv_deplibs_check_method=pass_all
4988
  fi
4989
  ;;
4990
 
4991
gnu*)
4992
  lt_cv_deplibs_check_method=pass_all
4993
  ;;
4994
 
4995
hpux10.20* | hpux11*)
4996
  lt_cv_file_magic_cmd=/usr/bin/file
4997
  case $host_cpu in
4998
  ia64*)
4999
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5000
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5001
    ;;
5002
  hppa*64*)
5003
    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]'
5004
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5005
    ;;
5006
  *)
5007
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5008
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5009
    ;;
5010
  esac
5011
  ;;
5012
 
5013
interix[3-9]*)
5014
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5015
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5016
  ;;
5017
 
5018
irix5* | irix6* | nonstopux*)
5019
  case $LD in
5020
  *-32|*"-32 ") libmagic=32-bit;;
5021
  *-n32|*"-n32 ") libmagic=N32;;
5022
  *-64|*"-64 ") libmagic=64-bit;;
5023
  *) libmagic=never-match;;
5024
  esac
5025
  lt_cv_deplibs_check_method=pass_all
5026
  ;;
5027
 
5028
# This must be Linux ELF.
5029
linux* | k*bsd*-gnu)
5030
  lt_cv_deplibs_check_method=pass_all
5031
  ;;
5032
 
5033 93 jeremybenn
netbsd* | netbsdelf*-gnu)
5034 82 jeremybenn
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5035 19 jeremybenn
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5036
  else
5037
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5038
  fi
5039
  ;;
5040
 
5041
newos6*)
5042
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5043
  lt_cv_file_magic_cmd=/usr/bin/file
5044
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5045
  ;;
5046
 
5047 82 jeremybenn
*nto* | *qnx*)
5048
  lt_cv_deplibs_check_method=pass_all
5049 19 jeremybenn
  ;;
5050
 
5051
openbsd*)
5052 82 jeremybenn
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5053 19 jeremybenn
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5054
  else
5055
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5056
  fi
5057
  ;;
5058
 
5059
osf3* | osf4* | osf5*)
5060
  lt_cv_deplibs_check_method=pass_all
5061
  ;;
5062
 
5063
rdos*)
5064
  lt_cv_deplibs_check_method=pass_all
5065
  ;;
5066
 
5067
solaris*)
5068
  lt_cv_deplibs_check_method=pass_all
5069
  ;;
5070
 
5071 82 jeremybenn
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5072
  lt_cv_deplibs_check_method=pass_all
5073
  ;;
5074
 
5075 19 jeremybenn
sysv4 | sysv4.3*)
5076
  case $host_vendor in
5077
  motorola)
5078
    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]'
5079
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5080
    ;;
5081
  ncr)
5082
    lt_cv_deplibs_check_method=pass_all
5083
    ;;
5084
  sequent)
5085
    lt_cv_file_magic_cmd='/bin/file'
5086
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5087
    ;;
5088
  sni)
5089
    lt_cv_file_magic_cmd='/bin/file'
5090
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5091
    lt_cv_file_magic_test_file=/lib/libc.so
5092
    ;;
5093
  siemens)
5094
    lt_cv_deplibs_check_method=pass_all
5095
    ;;
5096
  pc)
5097
    lt_cv_deplibs_check_method=pass_all
5098
    ;;
5099
  esac
5100
  ;;
5101
 
5102 82 jeremybenn
tpf*)
5103 19 jeremybenn
  lt_cv_deplibs_check_method=pass_all
5104
  ;;
5105
esac
5106
 
5107
fi
5108 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5109 82 jeremybenn
$as_echo "$lt_cv_deplibs_check_method" >&6; }
5110 19 jeremybenn
file_magic_cmd=$lt_cv_file_magic_cmd
5111
deplibs_check_method=$lt_cv_deplibs_check_method
5112
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5113
 
5114
 
5115
 
5116
 
5117 82 jeremybenn
 
5118
 
5119
 
5120
 
5121
 
5122
 
5123
 
5124
 
5125
if test -n "$ac_tool_prefix"; then
5126
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5127
set dummy ${ac_tool_prefix}ar; ac_word=$2
5128 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5129 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5130 101 jeremybenn
if test "${ac_cv_prog_AR+set}" = set; then
5131 82 jeremybenn
  $as_echo_n "(cached) " >&6
5132
else
5133
  if test -n "$AR"; then
5134
  ac_cv_prog_AR="$AR" # Let the user override the test.
5135
else
5136
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5137
for as_dir in $PATH
5138
do
5139
  IFS=$as_save_IFS
5140
  test -z "$as_dir" && as_dir=.
5141 101 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
5142 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5143
    ac_cv_prog_AR="${ac_tool_prefix}ar"
5144 101 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5145 82 jeremybenn
    break 2
5146
  fi
5147
done
5148 101 jeremybenn
done
5149 82 jeremybenn
IFS=$as_save_IFS
5150
 
5151
fi
5152
fi
5153
AR=$ac_cv_prog_AR
5154
if test -n "$AR"; then
5155 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $AR" >&5
5156 82 jeremybenn
$as_echo "$AR" >&6; }
5157
else
5158 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
5159 82 jeremybenn
$as_echo "no" >&6; }
5160
fi
5161
 
5162
 
5163
fi
5164
if test -z "$ac_cv_prog_AR"; then
5165
  ac_ct_AR=$AR
5166
  # Extract the first word of "ar", so it can be a program name with args.
5167
set dummy ar; ac_word=$2
5168 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5169 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5170 101 jeremybenn
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5171 82 jeremybenn
  $as_echo_n "(cached) " >&6
5172
else
5173
  if test -n "$ac_ct_AR"; then
5174
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5175
else
5176
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5177
for as_dir in $PATH
5178
do
5179
  IFS=$as_save_IFS
5180
  test -z "$as_dir" && as_dir=.
5181 101 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
5182 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5183
    ac_cv_prog_ac_ct_AR="ar"
5184 101 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5185 82 jeremybenn
    break 2
5186
  fi
5187
done
5188 101 jeremybenn
done
5189 82 jeremybenn
IFS=$as_save_IFS
5190
 
5191
fi
5192
fi
5193
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5194
if test -n "$ac_ct_AR"; then
5195 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5196 82 jeremybenn
$as_echo "$ac_ct_AR" >&6; }
5197
else
5198 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
5199 82 jeremybenn
$as_echo "no" >&6; }
5200
fi
5201
 
5202
  if test "x$ac_ct_AR" = x; then
5203
    AR="false"
5204
  else
5205
    case $cross_compiling:$ac_tool_warned in
5206
yes:)
5207 101 jeremybenn
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5208 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5209
ac_tool_warned=yes ;;
5210
esac
5211
    AR=$ac_ct_AR
5212
  fi
5213
else
5214
  AR="$ac_cv_prog_AR"
5215
fi
5216
 
5217
test -z "$AR" && AR=ar
5218
test -z "$AR_FLAGS" && AR_FLAGS=cru
5219
 
5220
 
5221
 
5222
 
5223
 
5224
 
5225
 
5226
 
5227
 
5228
 
5229
 
5230
if test -n "$ac_tool_prefix"; then
5231
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5232
set dummy ${ac_tool_prefix}strip; ac_word=$2
5233 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5234 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5235 101 jeremybenn
if test "${ac_cv_prog_STRIP+set}" = set; then
5236 82 jeremybenn
  $as_echo_n "(cached) " >&6
5237
else
5238
  if test -n "$STRIP"; then
5239
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5240
else
5241
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5242
for as_dir in $PATH
5243
do
5244
  IFS=$as_save_IFS
5245
  test -z "$as_dir" && as_dir=.
5246 101 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
5247 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5248
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5249 101 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5250 82 jeremybenn
    break 2
5251
  fi
5252
done
5253 101 jeremybenn
done
5254 82 jeremybenn
IFS=$as_save_IFS
5255
 
5256
fi
5257
fi
5258
STRIP=$ac_cv_prog_STRIP
5259
if test -n "$STRIP"; then
5260 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5261 82 jeremybenn
$as_echo "$STRIP" >&6; }
5262
else
5263 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
5264 82 jeremybenn
$as_echo "no" >&6; }
5265
fi
5266
 
5267
 
5268
fi
5269
if test -z "$ac_cv_prog_STRIP"; then
5270
  ac_ct_STRIP=$STRIP
5271
  # Extract the first word of "strip", so it can be a program name with args.
5272
set dummy strip; ac_word=$2
5273 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5274 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5275 101 jeremybenn
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5276 82 jeremybenn
  $as_echo_n "(cached) " >&6
5277
else
5278
  if test -n "$ac_ct_STRIP"; then
5279
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5280
else
5281
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5282
for as_dir in $PATH
5283
do
5284
  IFS=$as_save_IFS
5285
  test -z "$as_dir" && as_dir=.
5286 101 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
5287 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5288
    ac_cv_prog_ac_ct_STRIP="strip"
5289 101 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5290 82 jeremybenn
    break 2
5291
  fi
5292
done
5293 101 jeremybenn
done
5294 82 jeremybenn
IFS=$as_save_IFS
5295
 
5296
fi
5297
fi
5298
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5299
if test -n "$ac_ct_STRIP"; then
5300 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5301 82 jeremybenn
$as_echo "$ac_ct_STRIP" >&6; }
5302
else
5303 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
5304 82 jeremybenn
$as_echo "no" >&6; }
5305
fi
5306
 
5307
  if test "x$ac_ct_STRIP" = x; then
5308
    STRIP=":"
5309
  else
5310
    case $cross_compiling:$ac_tool_warned in
5311
yes:)
5312 101 jeremybenn
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5313 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5314
ac_tool_warned=yes ;;
5315
esac
5316
    STRIP=$ac_ct_STRIP
5317
  fi
5318
else
5319
  STRIP="$ac_cv_prog_STRIP"
5320
fi
5321
 
5322
test -z "$STRIP" && STRIP=:
5323
 
5324
 
5325
 
5326
 
5327
 
5328
 
5329
if test -n "$ac_tool_prefix"; then
5330
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5331
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5332 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5333 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5334 101 jeremybenn
if test "${ac_cv_prog_RANLIB+set}" = set; then
5335 82 jeremybenn
  $as_echo_n "(cached) " >&6
5336
else
5337
  if test -n "$RANLIB"; then
5338
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5339
else
5340
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5341
for as_dir in $PATH
5342
do
5343
  IFS=$as_save_IFS
5344
  test -z "$as_dir" && as_dir=.
5345 101 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
5346 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5347
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5348 101 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5349 82 jeremybenn
    break 2
5350
  fi
5351
done
5352 101 jeremybenn
done
5353 82 jeremybenn
IFS=$as_save_IFS
5354
 
5355
fi
5356
fi
5357
RANLIB=$ac_cv_prog_RANLIB
5358
if test -n "$RANLIB"; then
5359 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5360 82 jeremybenn
$as_echo "$RANLIB" >&6; }
5361
else
5362 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
5363 82 jeremybenn
$as_echo "no" >&6; }
5364
fi
5365
 
5366
 
5367
fi
5368
if test -z "$ac_cv_prog_RANLIB"; then
5369
  ac_ct_RANLIB=$RANLIB
5370
  # Extract the first word of "ranlib", so it can be a program name with args.
5371
set dummy ranlib; ac_word=$2
5372 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5373 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5374 101 jeremybenn
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5375 82 jeremybenn
  $as_echo_n "(cached) " >&6
5376
else
5377
  if test -n "$ac_ct_RANLIB"; then
5378
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5379
else
5380
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5381
for as_dir in $PATH
5382
do
5383
  IFS=$as_save_IFS
5384
  test -z "$as_dir" && as_dir=.
5385 101 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
5386 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5387
    ac_cv_prog_ac_ct_RANLIB="ranlib"
5388 101 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5389 82 jeremybenn
    break 2
5390
  fi
5391
done
5392 101 jeremybenn
done
5393 82 jeremybenn
IFS=$as_save_IFS
5394
 
5395
fi
5396
fi
5397
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5398
if test -n "$ac_ct_RANLIB"; then
5399 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5400 82 jeremybenn
$as_echo "$ac_ct_RANLIB" >&6; }
5401
else
5402 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
5403 82 jeremybenn
$as_echo "no" >&6; }
5404
fi
5405
 
5406
  if test "x$ac_ct_RANLIB" = x; then
5407
    RANLIB=":"
5408
  else
5409
    case $cross_compiling:$ac_tool_warned in
5410
yes:)
5411 101 jeremybenn
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5412 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5413
ac_tool_warned=yes ;;
5414
esac
5415
    RANLIB=$ac_ct_RANLIB
5416
  fi
5417
else
5418
  RANLIB="$ac_cv_prog_RANLIB"
5419
fi
5420
 
5421
test -z "$RANLIB" && RANLIB=:
5422
 
5423
 
5424
 
5425
 
5426
 
5427
 
5428
# Determine commands to create old-style static archives.
5429
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5430
old_postinstall_cmds='chmod 644 $oldlib'
5431
old_postuninstall_cmds=
5432
 
5433
if test -n "$RANLIB"; then
5434
  case $host_os in
5435
  openbsd*)
5436
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5437
    ;;
5438
  *)
5439
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5440
    ;;
5441
  esac
5442
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5443
fi
5444
 
5445
 
5446
 
5447
 
5448
 
5449
 
5450
 
5451
 
5452
 
5453
 
5454
 
5455
 
5456
 
5457
 
5458
 
5459
 
5460
 
5461
 
5462
 
5463
 
5464
 
5465
 
5466
 
5467
 
5468
 
5469
 
5470
 
5471
 
5472
 
5473
 
5474
 
5475
 
5476
 
5477
 
5478 19 jeremybenn
# If no C compiler was specified, use CC.
5479
LTCC=${LTCC-"$CC"}
5480
 
5481
# If no C compiler flags were specified, use CFLAGS.
5482
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5483
 
5484
# Allow CC to be a program name with arguments.
5485
compiler=$CC
5486
 
5487
 
5488 82 jeremybenn
# Check for command to grab the raw symbol name followed by C symbol from nm.
5489 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5490 82 jeremybenn
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5491 101 jeremybenn
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5492 82 jeremybenn
  $as_echo_n "(cached) " >&6
5493
else
5494
 
5495
# These are sane defaults that work on at least a few old systems.
5496
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5497
 
5498
# Character class describing NM global symbol codes.
5499
symcode='[BCDEGRST]'
5500
 
5501
# Regexp to match symbols that can be accessed directly from C.
5502
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5503
 
5504
# Define system-specific variables.
5505
case $host_os in
5506
aix*)
5507
  symcode='[BCDT]'
5508
  ;;
5509
cygwin* | mingw* | pw32* | cegcc*)
5510
  symcode='[ABCDGISTW]'
5511
  ;;
5512
hpux*)
5513
  if test "$host_cpu" = ia64; then
5514
    symcode='[ABCDEGRST]'
5515
  fi
5516
  ;;
5517
irix* | nonstopux*)
5518
  symcode='[BCDEGRST]'
5519
  ;;
5520
osf*)
5521
  symcode='[BCDEGQRST]'
5522
  ;;
5523
solaris*)
5524
  symcode='[BDRT]'
5525
  ;;
5526
sco3.2v5*)
5527
  symcode='[DT]'
5528
  ;;
5529
sysv4.2uw2*)
5530
  symcode='[DT]'
5531
  ;;
5532
sysv5* | sco5v6* | unixware* | OpenUNIX*)
5533
  symcode='[ABDT]'
5534
  ;;
5535
sysv4)
5536
  symcode='[DFNSTU]'
5537
  ;;
5538
esac
5539
 
5540
# If we're using GNU nm, then use its standard symbol codes.
5541
case `$NM -V 2>&1` in
5542
*GNU* | *'with BFD'*)
5543
  symcode='[ABCDGIRSTW]' ;;
5544
esac
5545
 
5546
# Transform an extracted symbol line into a proper C declaration.
5547
# Some systems (esp. on ia64) link data and code symbols differently,
5548
# so use this general approach.
5549
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5550
 
5551
# Transform an extracted symbol line into symbol name and symbol address
5552
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5553
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'"
5554
 
5555
# Handle CRLF in mingw tool chain
5556
opt_cr=
5557
case $build_os in
5558
mingw*)
5559
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5560
  ;;
5561
esac
5562
 
5563
# Try without a prefix underscore, then with it.
5564
for ac_symprfx in "" "_"; do
5565
 
5566
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5567
  symxfrm="\\1 $ac_symprfx\\2 \\2"
5568
 
5569
  # Write the raw and C identifiers.
5570
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5571
    # Fake it for dumpbin and say T for any non-static function
5572
    # and D for any global variable.
5573
    # Also find C++ and __fastcall symbols from MSVC++,
5574
    # which start with @ or ?.
5575
    lt_cv_sys_global_symbol_pipe="$AWK '"\
5576
"     {last_section=section; section=\$ 3};"\
5577
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5578
"     \$ 0!~/External *\|/{next};"\
5579
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5580
"     {if(hide[section]) next};"\
5581
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5582
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5583
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5584
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5585
"     ' prfx=^$ac_symprfx"
5586
  else
5587
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5588
  fi
5589
 
5590
  # Check to see that the pipe works correctly.
5591
  pipe_works=no
5592
 
5593
  rm -f conftest*
5594
  cat > conftest.$ac_ext <<_LT_EOF
5595
#ifdef __cplusplus
5596
extern "C" {
5597
#endif
5598
char nm_test_var;
5599
void nm_test_func(void);
5600
void nm_test_func(void){}
5601
#ifdef __cplusplus
5602
}
5603
#endif
5604
int main(){nm_test_var='a';nm_test_func();return(0);}
5605
_LT_EOF
5606
 
5607 101 jeremybenn
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5608 82 jeremybenn
  (eval $ac_compile) 2>&5
5609
  ac_status=$?
5610 101 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611
  (exit $ac_status); }; then
5612 82 jeremybenn
    # Now try to grab the symbols.
5613
    nlist=conftest.nm
5614 101 jeremybenn
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5615 82 jeremybenn
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5616
  ac_status=$?
5617 101 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618
  (exit $ac_status); } && test -s "$nlist"; then
5619 82 jeremybenn
      # Try sorting and uniquifying the output.
5620
      if sort "$nlist" | uniq > "$nlist"T; then
5621
        mv -f "$nlist"T "$nlist"
5622
      else
5623
        rm -f "$nlist"T
5624
      fi
5625
 
5626
      # Make sure that we snagged all the symbols we need.
5627
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5628
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5629
          cat <<_LT_EOF > conftest.$ac_ext
5630
#ifdef __cplusplus
5631
extern "C" {
5632
#endif
5633
 
5634
_LT_EOF
5635
          # Now generate the symbol file.
5636
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5637
 
5638
          cat <<_LT_EOF >> conftest.$ac_ext
5639
 
5640
/* The mapping between symbol names and symbols.  */
5641
const struct {
5642
  const char *name;
5643
  void       *address;
5644
}
5645
lt__PROGRAM__LTX_preloaded_symbols[] =
5646
{
5647
  { "@PROGRAM@", (void *) 0 },
5648
_LT_EOF
5649
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5650
          cat <<\_LT_EOF >> conftest.$ac_ext
5651
  {0, (void *) 0}
5652
};
5653
 
5654
/* This works around a problem in FreeBSD linker */
5655
#ifdef FREEBSD_WORKAROUND
5656
static const void *lt_preloaded_setup() {
5657
  return lt__PROGRAM__LTX_preloaded_symbols;
5658
}
5659
#endif
5660
 
5661
#ifdef __cplusplus
5662
}
5663
#endif
5664
_LT_EOF
5665
          # Now try linking the two files.
5666
          mv conftest.$ac_objext conftstm.$ac_objext
5667
          lt_save_LIBS="$LIBS"
5668
          lt_save_CFLAGS="$CFLAGS"
5669
          LIBS="conftstm.$ac_objext"
5670
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5671 101 jeremybenn
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5672 82 jeremybenn
  (eval $ac_link) 2>&5
5673
  ac_status=$?
5674 101 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5676 82 jeremybenn
            pipe_works=yes
5677
          fi
5678
          LIBS="$lt_save_LIBS"
5679
          CFLAGS="$lt_save_CFLAGS"
5680
        else
5681
          echo "cannot find nm_test_func in $nlist" >&5
5682
        fi
5683
      else
5684
        echo "cannot find nm_test_var in $nlist" >&5
5685
      fi
5686
    else
5687
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5688
    fi
5689
  else
5690
    echo "$progname: failed program was:" >&5
5691
    cat conftest.$ac_ext >&5
5692
  fi
5693
  rm -rf conftest* conftst*
5694
 
5695
  # Do not use the global_symbol_pipe unless it works.
5696
  if test "$pipe_works" = yes; then
5697
    break
5698
  else
5699
    lt_cv_sys_global_symbol_pipe=
5700
  fi
5701
done
5702
 
5703
fi
5704
 
5705
if test -z "$lt_cv_sys_global_symbol_pipe"; then
5706
  lt_cv_sys_global_symbol_to_cdecl=
5707
fi
5708
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5709 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: failed" >&5
5710 82 jeremybenn
$as_echo "failed" >&6; }
5711
else
5712 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: ok" >&5
5713 82 jeremybenn
$as_echo "ok" >&6; }
5714
fi
5715
 
5716
 
5717
 
5718
 
5719
 
5720
 
5721
 
5722
 
5723
 
5724
 
5725
 
5726
 
5727
 
5728
 
5729
 
5730
 
5731
 
5732
 
5733
 
5734
 
5735
 
5736
 
5737 19 jeremybenn
# Check whether --enable-libtool-lock was given.
5738 101 jeremybenn
if test "${enable_libtool_lock+set}" = set; then
5739 19 jeremybenn
  enableval=$enable_libtool_lock;
5740
fi
5741
 
5742
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5743
 
5744
# Some flags need to be propagated to the compiler or linker for good
5745
# libtool support.
5746
case $host in
5747
ia64-*-hpux*)
5748
  # Find out which ABI we are using.
5749
  echo 'int i;' > conftest.$ac_ext
5750 101 jeremybenn
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5751 19 jeremybenn
  (eval $ac_compile) 2>&5
5752
  ac_status=$?
5753 101 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754
  (exit $ac_status); }; then
5755 19 jeremybenn
    case `/usr/bin/file conftest.$ac_objext` in
5756 82 jeremybenn
      *ELF-32*)
5757
        HPUX_IA64_MODE="32"
5758
        ;;
5759
      *ELF-64*)
5760
        HPUX_IA64_MODE="64"
5761
        ;;
5762 19 jeremybenn
    esac
5763
  fi
5764
  rm -rf conftest*
5765
  ;;
5766
*-*-irix6*)
5767
  # Find out which ABI we are using.
5768 112 jeremybenn
  echo '#line 5768 "configure"' > conftest.$ac_ext
5769 101 jeremybenn
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5770 19 jeremybenn
  (eval $ac_compile) 2>&5
5771
  ac_status=$?
5772 101 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773
  (exit $ac_status); }; then
5774 82 jeremybenn
    if test "$lt_cv_prog_gnu_ld" = yes; then
5775
      case `/usr/bin/file conftest.$ac_objext` in
5776
        *32-bit*)
5777
          LD="${LD-ld} -melf32bsmip"
5778
          ;;
5779
        *N32*)
5780
          LD="${LD-ld} -melf32bmipn32"
5781
          ;;
5782
        *64-bit*)
5783
          LD="${LD-ld} -melf64bmip"
5784
        ;;
5785
      esac
5786
    else
5787
      case `/usr/bin/file conftest.$ac_objext` in
5788
        *32-bit*)
5789
          LD="${LD-ld} -32"
5790
          ;;
5791
        *N32*)
5792
          LD="${LD-ld} -n32"
5793
          ;;
5794
        *64-bit*)
5795
          LD="${LD-ld} -64"
5796
          ;;
5797
      esac
5798
    fi
5799 19 jeremybenn
  fi
5800
  rm -rf conftest*
5801
  ;;
5802
 
5803
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5804 82 jeremybenn
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5805 19 jeremybenn
  # Find out which ABI we are using.
5806
  echo 'int i;' > conftest.$ac_ext
5807 101 jeremybenn
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5808 19 jeremybenn
  (eval $ac_compile) 2>&5
5809
  ac_status=$?
5810 101 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811
  (exit $ac_status); }; then
5812 19 jeremybenn
    case `/usr/bin/file conftest.o` in
5813 82 jeremybenn
      *32-bit*)
5814
        case $host in
5815
          x86_64-*kfreebsd*-gnu)
5816
            LD="${LD-ld} -m elf_i386_fbsd"
5817
            ;;
5818
          x86_64-*linux*)
5819
            LD="${LD-ld} -m elf_i386"
5820
            ;;
5821
          ppc64-*linux*|powerpc64-*linux*)
5822
            LD="${LD-ld} -m elf32ppclinux"
5823
            ;;
5824
          s390x-*linux*)
5825
            LD="${LD-ld} -m elf_s390"
5826
            ;;
5827
          sparc64-*linux*)
5828
            LD="${LD-ld} -m elf32_sparc"
5829
            ;;
5830
        esac
5831
        ;;
5832
      *64-bit*)
5833
        case $host in
5834
          x86_64-*kfreebsd*-gnu)
5835
            LD="${LD-ld} -m elf_x86_64_fbsd"
5836
            ;;
5837
          x86_64-*linux*)
5838
            LD="${LD-ld} -m elf_x86_64"
5839
            ;;
5840
          ppc*-*linux*|powerpc*-*linux*)
5841
            LD="${LD-ld} -m elf64ppc"
5842
            ;;
5843
          s390*-*linux*|s390*-*tpf*)
5844
            LD="${LD-ld} -m elf64_s390"
5845
            ;;
5846
          sparc*-*linux*)
5847
            LD="${LD-ld} -m elf64_sparc"
5848
            ;;
5849
        esac
5850
        ;;
5851 19 jeremybenn
    esac
5852
  fi
5853
  rm -rf conftest*
5854
  ;;
5855
 
5856
*-*-sco3.2v5*)
5857
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5858
  SAVE_CFLAGS="$CFLAGS"
5859
  CFLAGS="$CFLAGS -belf"
5860 101 jeremybenn
  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5861 82 jeremybenn
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5862 101 jeremybenn
if test "${lt_cv_cc_needs_belf+set}" = set; then
5863 82 jeremybenn
  $as_echo_n "(cached) " >&6
5864 19 jeremybenn
else
5865
  ac_ext=c
5866
ac_cpp='$CPP $CPPFLAGS'
5867
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5868
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5869
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5870
 
5871 101 jeremybenn
     cat >conftest.$ac_ext <<_ACEOF
5872
/* confdefs.h.  */
5873
_ACEOF
5874
cat confdefs.h >>conftest.$ac_ext
5875
cat >>conftest.$ac_ext <<_ACEOF
5876 19 jeremybenn
/* end confdefs.h.  */
5877
 
5878
int
5879
main ()
5880
{
5881
 
5882
  ;
5883
  return 0;
5884
}
5885
_ACEOF
5886 101 jeremybenn
rm -f conftest.$ac_objext conftest$ac_exeext
5887
if { (ac_try="$ac_link"
5888
case "(($ac_try" in
5889
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5890
  *) ac_try_echo=$ac_try;;
5891
esac
5892
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5893
$as_echo "$ac_try_echo") >&5
5894
  (eval "$ac_link") 2>conftest.er1
5895
  ac_status=$?
5896
  grep -v '^ *+' conftest.er1 >conftest.err
5897
  rm -f conftest.er1
5898
  cat conftest.err >&5
5899
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900
  (exit $ac_status); } && {
5901
         test -z "$ac_c_werror_flag" ||
5902
         test ! -s conftest.err
5903
       } && test -s conftest$ac_exeext && {
5904
         test "$cross_compiling" = yes ||
5905
         $as_test_x conftest$ac_exeext
5906
       }; then
5907 19 jeremybenn
  lt_cv_cc_needs_belf=yes
5908
else
5909 101 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
5910
sed 's/^/| /' conftest.$ac_ext >&5
5911
 
5912
        lt_cv_cc_needs_belf=no
5913 19 jeremybenn
fi
5914 101 jeremybenn
 
5915
rm -rf conftest.dSYM
5916
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5917
      conftest$ac_exeext conftest.$ac_ext
5918 19 jeremybenn
     ac_ext=c
5919
ac_cpp='$CPP $CPPFLAGS'
5920
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5921
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5922
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5923
 
5924
fi
5925 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5926 82 jeremybenn
$as_echo "$lt_cv_cc_needs_belf" >&6; }
5927 19 jeremybenn
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5928
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5929
    CFLAGS="$SAVE_CFLAGS"
5930
  fi
5931
  ;;
5932
sparc*-*solaris*)
5933
  # Find out which ABI we are using.
5934
  echo 'int i;' > conftest.$ac_ext
5935 101 jeremybenn
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5936 19 jeremybenn
  (eval $ac_compile) 2>&5
5937
  ac_status=$?
5938 101 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939
  (exit $ac_status); }; then
5940 19 jeremybenn
    case `/usr/bin/file conftest.o` in
5941
    *64-bit*)
5942
      case $lt_cv_prog_gnu_ld in
5943
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5944 82 jeremybenn
      *)
5945
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5946
          LD="${LD-ld} -64"
5947
        fi
5948
        ;;
5949 19 jeremybenn
      esac
5950
      ;;
5951
    esac
5952
  fi
5953
  rm -rf conftest*
5954
  ;;
5955 82 jeremybenn
esac
5956 19 jeremybenn
 
5957 82 jeremybenn
need_locks="$enable_libtool_lock"
5958 19 jeremybenn
 
5959 82 jeremybenn
 
5960
  case $host_os in
5961
    rhapsody* | darwin*)
5962
    if test -n "$ac_tool_prefix"; then
5963
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5964
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5965 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5966 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5967 101 jeremybenn
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5968 82 jeremybenn
  $as_echo_n "(cached) " >&6
5969
else
5970
  if test -n "$DSYMUTIL"; then
5971
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5972
else
5973
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5974
for as_dir in $PATH
5975
do
5976
  IFS=$as_save_IFS
5977
  test -z "$as_dir" && as_dir=.
5978 101 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
5979 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5980
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5981 101 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5982 82 jeremybenn
    break 2
5983
  fi
5984
done
5985 101 jeremybenn
done
5986 82 jeremybenn
IFS=$as_save_IFS
5987
 
5988
fi
5989
fi
5990
DSYMUTIL=$ac_cv_prog_DSYMUTIL
5991
if test -n "$DSYMUTIL"; then
5992 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5993 82 jeremybenn
$as_echo "$DSYMUTIL" >&6; }
5994
else
5995 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
5996 82 jeremybenn
$as_echo "no" >&6; }
5997
fi
5998
 
5999
 
6000
fi
6001
if test -z "$ac_cv_prog_DSYMUTIL"; then
6002
  ac_ct_DSYMUTIL=$DSYMUTIL
6003
  # Extract the first word of "dsymutil", so it can be a program name with args.
6004
set dummy dsymutil; ac_word=$2
6005 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6006 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6007 101 jeremybenn
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6008 82 jeremybenn
  $as_echo_n "(cached) " >&6
6009
else
6010
  if test -n "$ac_ct_DSYMUTIL"; then
6011
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6012
else
6013
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6014
for as_dir in $PATH
6015
do
6016
  IFS=$as_save_IFS
6017
  test -z "$as_dir" && as_dir=.
6018 101 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
6019 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6020
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6021 101 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6022 82 jeremybenn
    break 2
6023
  fi
6024
done
6025 101 jeremybenn
done
6026 82 jeremybenn
IFS=$as_save_IFS
6027
 
6028
fi
6029
fi
6030
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6031
if test -n "$ac_ct_DSYMUTIL"; then
6032 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6033 82 jeremybenn
$as_echo "$ac_ct_DSYMUTIL" >&6; }
6034
else
6035 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
6036 82 jeremybenn
$as_echo "no" >&6; }
6037
fi
6038
 
6039
  if test "x$ac_ct_DSYMUTIL" = x; then
6040
    DSYMUTIL=":"
6041
  else
6042
    case $cross_compiling:$ac_tool_warned in
6043
yes:)
6044 101 jeremybenn
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6045 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6046
ac_tool_warned=yes ;;
6047 19 jeremybenn
esac
6048 82 jeremybenn
    DSYMUTIL=$ac_ct_DSYMUTIL
6049
  fi
6050
else
6051
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6052
fi
6053 19 jeremybenn
 
6054 82 jeremybenn
    if test -n "$ac_tool_prefix"; then
6055
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6056
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6057 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6058 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6059 101 jeremybenn
if test "${ac_cv_prog_NMEDIT+set}" = set; then
6060 82 jeremybenn
  $as_echo_n "(cached) " >&6
6061
else
6062
  if test -n "$NMEDIT"; then
6063
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6064
else
6065
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6066
for as_dir in $PATH
6067
do
6068
  IFS=$as_save_IFS
6069
  test -z "$as_dir" && as_dir=.
6070 101 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
6071 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6072
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6073 101 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6074 82 jeremybenn
    break 2
6075
  fi
6076
done
6077 101 jeremybenn
done
6078 82 jeremybenn
IFS=$as_save_IFS
6079 19 jeremybenn
 
6080 82 jeremybenn
fi
6081
fi
6082
NMEDIT=$ac_cv_prog_NMEDIT
6083
if test -n "$NMEDIT"; then
6084 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6085 82 jeremybenn
$as_echo "$NMEDIT" >&6; }
6086
else
6087 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
6088 82 jeremybenn
$as_echo "no" >&6; }
6089
fi
6090 19 jeremybenn
 
6091 82 jeremybenn
 
6092
fi
6093
if test -z "$ac_cv_prog_NMEDIT"; then
6094
  ac_ct_NMEDIT=$NMEDIT
6095
  # Extract the first word of "nmedit", so it can be a program name with args.
6096
set dummy nmedit; ac_word=$2
6097 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6098 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6099 101 jeremybenn
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6100 82 jeremybenn
  $as_echo_n "(cached) " >&6
6101
else
6102
  if test -n "$ac_ct_NMEDIT"; then
6103
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6104
else
6105
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6106
for as_dir in $PATH
6107
do
6108
  IFS=$as_save_IFS
6109
  test -z "$as_dir" && as_dir=.
6110 101 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
6111 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6112
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6113 101 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6114 82 jeremybenn
    break 2
6115
  fi
6116
done
6117 101 jeremybenn
done
6118 82 jeremybenn
IFS=$as_save_IFS
6119
 
6120
fi
6121
fi
6122
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6123
if test -n "$ac_ct_NMEDIT"; then
6124 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6125 82 jeremybenn
$as_echo "$ac_ct_NMEDIT" >&6; }
6126
else
6127 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
6128 82 jeremybenn
$as_echo "no" >&6; }
6129
fi
6130
 
6131
  if test "x$ac_ct_NMEDIT" = x; then
6132
    NMEDIT=":"
6133
  else
6134
    case $cross_compiling:$ac_tool_warned in
6135
yes:)
6136 101 jeremybenn
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6137 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6138
ac_tool_warned=yes ;;
6139
esac
6140
    NMEDIT=$ac_ct_NMEDIT
6141
  fi
6142
else
6143
  NMEDIT="$ac_cv_prog_NMEDIT"
6144
fi
6145
 
6146
    if test -n "$ac_tool_prefix"; then
6147
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6148
set dummy ${ac_tool_prefix}lipo; ac_word=$2
6149 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6150 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6151 101 jeremybenn
if test "${ac_cv_prog_LIPO+set}" = set; then
6152 82 jeremybenn
  $as_echo_n "(cached) " >&6
6153
else
6154
  if test -n "$LIPO"; then
6155
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6156
else
6157
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6158
for as_dir in $PATH
6159
do
6160
  IFS=$as_save_IFS
6161
  test -z "$as_dir" && as_dir=.
6162 101 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
6163 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6164
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6165 101 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6166 82 jeremybenn
    break 2
6167
  fi
6168
done
6169 101 jeremybenn
done
6170 82 jeremybenn
IFS=$as_save_IFS
6171
 
6172
fi
6173
fi
6174
LIPO=$ac_cv_prog_LIPO
6175
if test -n "$LIPO"; then
6176 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6177 82 jeremybenn
$as_echo "$LIPO" >&6; }
6178
else
6179 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
6180 82 jeremybenn
$as_echo "no" >&6; }
6181
fi
6182
 
6183
 
6184
fi
6185
if test -z "$ac_cv_prog_LIPO"; then
6186
  ac_ct_LIPO=$LIPO
6187
  # Extract the first word of "lipo", so it can be a program name with args.
6188
set dummy lipo; ac_word=$2
6189 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6190 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6191 101 jeremybenn
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6192 82 jeremybenn
  $as_echo_n "(cached) " >&6
6193
else
6194
  if test -n "$ac_ct_LIPO"; then
6195
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6196
else
6197
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6198
for as_dir in $PATH
6199
do
6200
  IFS=$as_save_IFS
6201
  test -z "$as_dir" && as_dir=.
6202 101 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
6203 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6204
    ac_cv_prog_ac_ct_LIPO="lipo"
6205 101 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6206 82 jeremybenn
    break 2
6207
  fi
6208
done
6209 101 jeremybenn
done
6210 82 jeremybenn
IFS=$as_save_IFS
6211
 
6212
fi
6213
fi
6214
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6215
if test -n "$ac_ct_LIPO"; then
6216 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6217 82 jeremybenn
$as_echo "$ac_ct_LIPO" >&6; }
6218
else
6219 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
6220 82 jeremybenn
$as_echo "no" >&6; }
6221
fi
6222
 
6223
  if test "x$ac_ct_LIPO" = x; then
6224
    LIPO=":"
6225
  else
6226
    case $cross_compiling:$ac_tool_warned in
6227
yes:)
6228 101 jeremybenn
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6229 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6230
ac_tool_warned=yes ;;
6231
esac
6232
    LIPO=$ac_ct_LIPO
6233
  fi
6234
else
6235
  LIPO="$ac_cv_prog_LIPO"
6236
fi
6237
 
6238
    if test -n "$ac_tool_prefix"; then
6239
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6240
set dummy ${ac_tool_prefix}otool; ac_word=$2
6241 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6242 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6243 101 jeremybenn
if test "${ac_cv_prog_OTOOL+set}" = set; then
6244 82 jeremybenn
  $as_echo_n "(cached) " >&6
6245
else
6246
  if test -n "$OTOOL"; then
6247
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6248
else
6249
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6250
for as_dir in $PATH
6251
do
6252
  IFS=$as_save_IFS
6253
  test -z "$as_dir" && as_dir=.
6254 101 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
6255 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6256
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6257 101 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6258 82 jeremybenn
    break 2
6259
  fi
6260
done
6261 101 jeremybenn
done
6262 82 jeremybenn
IFS=$as_save_IFS
6263
 
6264
fi
6265
fi
6266
OTOOL=$ac_cv_prog_OTOOL
6267
if test -n "$OTOOL"; then
6268 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6269 82 jeremybenn
$as_echo "$OTOOL" >&6; }
6270
else
6271 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
6272 82 jeremybenn
$as_echo "no" >&6; }
6273
fi
6274
 
6275
 
6276
fi
6277
if test -z "$ac_cv_prog_OTOOL"; then
6278
  ac_ct_OTOOL=$OTOOL
6279
  # Extract the first word of "otool", so it can be a program name with args.
6280
set dummy otool; ac_word=$2
6281 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6282 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6283 101 jeremybenn
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6284 82 jeremybenn
  $as_echo_n "(cached) " >&6
6285
else
6286
  if test -n "$ac_ct_OTOOL"; then
6287
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6288
else
6289
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6290
for as_dir in $PATH
6291
do
6292
  IFS=$as_save_IFS
6293
  test -z "$as_dir" && as_dir=.
6294 101 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
6295 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6296
    ac_cv_prog_ac_ct_OTOOL="otool"
6297 101 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6298 82 jeremybenn
    break 2
6299
  fi
6300
done
6301 101 jeremybenn
done
6302 82 jeremybenn
IFS=$as_save_IFS
6303
 
6304
fi
6305
fi
6306
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6307
if test -n "$ac_ct_OTOOL"; then
6308 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6309 82 jeremybenn
$as_echo "$ac_ct_OTOOL" >&6; }
6310
else
6311 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
6312 82 jeremybenn
$as_echo "no" >&6; }
6313
fi
6314
 
6315
  if test "x$ac_ct_OTOOL" = x; then
6316
    OTOOL=":"
6317
  else
6318
    case $cross_compiling:$ac_tool_warned in
6319
yes:)
6320 101 jeremybenn
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6321 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6322
ac_tool_warned=yes ;;
6323
esac
6324
    OTOOL=$ac_ct_OTOOL
6325
  fi
6326
else
6327
  OTOOL="$ac_cv_prog_OTOOL"
6328
fi
6329
 
6330
    if test -n "$ac_tool_prefix"; then
6331
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6332
set dummy ${ac_tool_prefix}otool64; ac_word=$2
6333 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6334 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6335 101 jeremybenn
if test "${ac_cv_prog_OTOOL64+set}" = set; then
6336 82 jeremybenn
  $as_echo_n "(cached) " >&6
6337
else
6338
  if test -n "$OTOOL64"; then
6339
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6340
else
6341
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6342
for as_dir in $PATH
6343
do
6344
  IFS=$as_save_IFS
6345
  test -z "$as_dir" && as_dir=.
6346 101 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
6347 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6348
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6349 101 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6350 82 jeremybenn
    break 2
6351
  fi
6352
done
6353 101 jeremybenn
done
6354 82 jeremybenn
IFS=$as_save_IFS
6355
 
6356
fi
6357
fi
6358
OTOOL64=$ac_cv_prog_OTOOL64
6359
if test -n "$OTOOL64"; then
6360 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6361 82 jeremybenn
$as_echo "$OTOOL64" >&6; }
6362
else
6363 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
6364 82 jeremybenn
$as_echo "no" >&6; }
6365
fi
6366
 
6367
 
6368
fi
6369
if test -z "$ac_cv_prog_OTOOL64"; then
6370
  ac_ct_OTOOL64=$OTOOL64
6371
  # Extract the first word of "otool64", so it can be a program name with args.
6372
set dummy otool64; ac_word=$2
6373 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6374 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6375 101 jeremybenn
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6376 82 jeremybenn
  $as_echo_n "(cached) " >&6
6377
else
6378
  if test -n "$ac_ct_OTOOL64"; then
6379
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6380
else
6381
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6382
for as_dir in $PATH
6383
do
6384
  IFS=$as_save_IFS
6385
  test -z "$as_dir" && as_dir=.
6386 101 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
6387 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6388
    ac_cv_prog_ac_ct_OTOOL64="otool64"
6389 101 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6390 82 jeremybenn
    break 2
6391
  fi
6392
done
6393 101 jeremybenn
done
6394 82 jeremybenn
IFS=$as_save_IFS
6395
 
6396
fi
6397
fi
6398
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6399
if test -n "$ac_ct_OTOOL64"; then
6400 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6401 82 jeremybenn
$as_echo "$ac_ct_OTOOL64" >&6; }
6402
else
6403 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
6404 82 jeremybenn
$as_echo "no" >&6; }
6405
fi
6406
 
6407
  if test "x$ac_ct_OTOOL64" = x; then
6408
    OTOOL64=":"
6409
  else
6410
    case $cross_compiling:$ac_tool_warned in
6411
yes:)
6412 101 jeremybenn
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6413 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6414
ac_tool_warned=yes ;;
6415
esac
6416
    OTOOL64=$ac_ct_OTOOL64
6417
  fi
6418
else
6419
  OTOOL64="$ac_cv_prog_OTOOL64"
6420
fi
6421
 
6422
 
6423
 
6424
 
6425
 
6426
 
6427
 
6428
 
6429
 
6430
 
6431
 
6432
 
6433
 
6434
 
6435
 
6436
 
6437
 
6438
 
6439
 
6440
 
6441
 
6442
 
6443
 
6444
 
6445
 
6446
 
6447
 
6448 101 jeremybenn
    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6449 82 jeremybenn
$as_echo_n "checking for -single_module linker flag... " >&6; }
6450 101 jeremybenn
if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6451 82 jeremybenn
  $as_echo_n "(cached) " >&6
6452
else
6453
  lt_cv_apple_cc_single_mod=no
6454
      if test -z "${LT_MULTI_MODULE}"; then
6455
        # By default we will add the -single_module flag. You can override
6456
        # by either setting the environment variable LT_MULTI_MODULE
6457
        # non-empty at configure time, or by adding -multi_module to the
6458
        # link flags.
6459
        rm -rf libconftest.dylib*
6460
        echo "int foo(void){return 1;}" > conftest.c
6461
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6462
-dynamiclib -Wl,-single_module conftest.c" >&5
6463
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6464
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6465
        _lt_result=$?
6466
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6467
          lt_cv_apple_cc_single_mod=yes
6468
        else
6469
          cat conftest.err >&5
6470
        fi
6471
        rm -rf libconftest.dylib*
6472
        rm -f conftest.*
6473
      fi
6474
fi
6475 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6476 82 jeremybenn
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6477 101 jeremybenn
    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6478 82 jeremybenn
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6479 101 jeremybenn
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6480 82 jeremybenn
  $as_echo_n "(cached) " >&6
6481
else
6482
  lt_cv_ld_exported_symbols_list=no
6483
      save_LDFLAGS=$LDFLAGS
6484
      echo "_main" > conftest.sym
6485
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6486 101 jeremybenn
      cat >conftest.$ac_ext <<_ACEOF
6487
/* confdefs.h.  */
6488
_ACEOF
6489
cat confdefs.h >>conftest.$ac_ext
6490
cat >>conftest.$ac_ext <<_ACEOF
6491 82 jeremybenn
/* end confdefs.h.  */
6492
 
6493
int
6494
main ()
6495
{
6496
 
6497
  ;
6498
  return 0;
6499
}
6500
_ACEOF
6501 101 jeremybenn
rm -f conftest.$ac_objext conftest$ac_exeext
6502
if { (ac_try="$ac_link"
6503
case "(($ac_try" in
6504
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6505
  *) ac_try_echo=$ac_try;;
6506
esac
6507
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6508
$as_echo "$ac_try_echo") >&5
6509
  (eval "$ac_link") 2>conftest.er1
6510
  ac_status=$?
6511
  grep -v '^ *+' conftest.er1 >conftest.err
6512
  rm -f conftest.er1
6513
  cat conftest.err >&5
6514
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6515
  (exit $ac_status); } && {
6516
         test -z "$ac_c_werror_flag" ||
6517
         test ! -s conftest.err
6518
       } && test -s conftest$ac_exeext && {
6519
         test "$cross_compiling" = yes ||
6520
         $as_test_x conftest$ac_exeext
6521
       }; then
6522 82 jeremybenn
  lt_cv_ld_exported_symbols_list=yes
6523
else
6524 101 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
6525
sed 's/^/| /' conftest.$ac_ext >&5
6526
 
6527
        lt_cv_ld_exported_symbols_list=no
6528 82 jeremybenn
fi
6529 101 jeremybenn
 
6530
rm -rf conftest.dSYM
6531
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6532
      conftest$ac_exeext conftest.$ac_ext
6533 82 jeremybenn
        LDFLAGS="$save_LDFLAGS"
6534
 
6535
fi
6536 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6537 82 jeremybenn
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6538
    case $host_os in
6539
    rhapsody* | darwin1.[012])
6540
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6541
    darwin1.*)
6542
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6543
    darwin*) # darwin 5.x on
6544
      # if running on 10.5 or later, the deployment target defaults
6545
      # to the OS version, if on x86, and 10.4, the deployment
6546
      # target defaults to 10.4. Don't you love it?
6547
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6548
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6549
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6550
        10.[012]*)
6551
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6552
        10.*)
6553
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6554
      esac
6555
    ;;
6556
  esac
6557
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6558
      _lt_dar_single_mod='$single_module'
6559
    fi
6560
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6561
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6562
    else
6563
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6564
    fi
6565
    if test "$DSYMUTIL" != ":"; then
6566
      _lt_dsymutil='~$DSYMUTIL $lib || :'
6567
    else
6568
      _lt_dsymutil=
6569
    fi
6570
    ;;
6571
  esac
6572
 
6573 101 jeremybenn
 
6574 19 jeremybenn
for ac_header in dlfcn.h
6575 101 jeremybenn
do
6576
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6577
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6578
$as_echo_n "checking for $ac_header... " >&6; }
6579
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6580
  $as_echo_n "(cached) " >&6
6581
else
6582
  cat >conftest.$ac_ext <<_ACEOF
6583
/* confdefs.h.  */
6584
_ACEOF
6585
cat confdefs.h >>conftest.$ac_ext
6586
cat >>conftest.$ac_ext <<_ACEOF
6587
/* end confdefs.h.  */
6588
$ac_includes_default
6589
 
6590
#include <$ac_header>
6591
_ACEOF
6592
rm -f conftest.$ac_objext
6593
if { (ac_try="$ac_compile"
6594
case "(($ac_try" in
6595
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6596
  *) ac_try_echo=$ac_try;;
6597
esac
6598
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6599
$as_echo "$ac_try_echo") >&5
6600
  (eval "$ac_compile") 2>conftest.er1
6601
  ac_status=$?
6602
  grep -v '^ *+' conftest.er1 >conftest.err
6603
  rm -f conftest.er1
6604
  cat conftest.err >&5
6605
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606
  (exit $ac_status); } && {
6607
         test -z "$ac_c_werror_flag" ||
6608
         test ! -s conftest.err
6609
       } && test -s conftest.$ac_objext; then
6610
  eval "$as_ac_Header=yes"
6611
else
6612
  $as_echo "$as_me: failed program was:" >&5
6613
sed 's/^/| /' conftest.$ac_ext >&5
6614
 
6615
        eval "$as_ac_Header=no"
6616
fi
6617
 
6618
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6619
fi
6620
ac_res=`eval 'as_val=${'$as_ac_Header'}
6621
                 $as_echo "$as_val"'`
6622
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6623
$as_echo "$ac_res" >&6; }
6624
as_val=`eval 'as_val=${'$as_ac_Header'}
6625
                 $as_echo "$as_val"'`
6626
   if test "x$as_val" = x""yes; then
6627 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
6628 101 jeremybenn
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6629 19 jeremybenn
_ACEOF
6630
 
6631
fi
6632
 
6633
done
6634
 
6635
 
6636
 
6637 82 jeremybenn
# Set options
6638 19 jeremybenn
 
6639
 
6640
 
6641 82 jeremybenn
        enable_dlopen=no
6642 19 jeremybenn
 
6643
 
6644 82 jeremybenn
  enable_win32_dll=no
6645 19 jeremybenn
 
6646
 
6647 82 jeremybenn
            # Check whether --enable-shared was given.
6648 101 jeremybenn
if test "${enable_shared+set}" = set; then
6649 82 jeremybenn
  enableval=$enable_shared; p=${PACKAGE-default}
6650
    case $enableval in
6651
    yes) enable_shared=yes ;;
6652
    no) enable_shared=no ;;
6653
    *)
6654
      enable_shared=no
6655
      # Look at the argument we got.  We use all the common list separators.
6656
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6657
      for pkg in $enableval; do
6658
        IFS="$lt_save_ifs"
6659
        if test "X$pkg" = "X$p"; then
6660
          enable_shared=yes
6661
        fi
6662
      done
6663
      IFS="$lt_save_ifs"
6664
      ;;
6665
    esac
6666 19 jeremybenn
else
6667 82 jeremybenn
  enable_shared=yes
6668 19 jeremybenn
fi
6669
 
6670
 
6671
 
6672
 
6673
 
6674
 
6675
 
6676
 
6677
 
6678 82 jeremybenn
  # Check whether --enable-static was given.
6679 101 jeremybenn
if test "${enable_static+set}" = set; then
6680 82 jeremybenn
  enableval=$enable_static; p=${PACKAGE-default}
6681
    case $enableval in
6682
    yes) enable_static=yes ;;
6683
    no) enable_static=no ;;
6684
    *)
6685
     enable_static=no
6686
      # Look at the argument we got.  We use all the common list separators.
6687
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6688
      for pkg in $enableval; do
6689
        IFS="$lt_save_ifs"
6690
        if test "X$pkg" = "X$p"; then
6691
          enable_static=yes
6692
        fi
6693
      done
6694
      IFS="$lt_save_ifs"
6695
      ;;
6696
    esac
6697 19 jeremybenn
else
6698 82 jeremybenn
  enable_static=yes
6699 19 jeremybenn
fi
6700
 
6701
 
6702
 
6703
 
6704
 
6705
 
6706
 
6707
 
6708
 
6709
 
6710 82 jeremybenn
# Check whether --with-pic was given.
6711 101 jeremybenn
if test "${with_pic+set}" = set; then
6712 82 jeremybenn
  withval=$with_pic; pic_mode="$withval"
6713 19 jeremybenn
else
6714 82 jeremybenn
  pic_mode=default
6715 19 jeremybenn
fi
6716
 
6717
 
6718 82 jeremybenn
test -z "$pic_mode" && pic_mode=default
6719 19 jeremybenn
 
6720
 
6721
 
6722
 
6723
 
6724
 
6725
 
6726 82 jeremybenn
  # Check whether --enable-fast-install was given.
6727 101 jeremybenn
if test "${enable_fast_install+set}" = set; then
6728 82 jeremybenn
  enableval=$enable_fast_install; p=${PACKAGE-default}
6729
    case $enableval in
6730
    yes) enable_fast_install=yes ;;
6731
    no) enable_fast_install=no ;;
6732
    *)
6733
      enable_fast_install=no
6734
      # Look at the argument we got.  We use all the common list separators.
6735
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6736
      for pkg in $enableval; do
6737
        IFS="$lt_save_ifs"
6738
        if test "X$pkg" = "X$p"; then
6739
          enable_fast_install=yes
6740
        fi
6741
      done
6742
      IFS="$lt_save_ifs"
6743
      ;;
6744
    esac
6745 19 jeremybenn
else
6746 82 jeremybenn
  enable_fast_install=yes
6747 19 jeremybenn
fi
6748
 
6749
 
6750
 
6751
 
6752
 
6753
 
6754
 
6755
 
6756
 
6757
 
6758
 
6759 82 jeremybenn
# This can be used to rebuild libtool when needed
6760
LIBTOOL_DEPS="$ltmain"
6761 19 jeremybenn
 
6762 82 jeremybenn
# Always use our own libtool.
6763
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6764 19 jeremybenn
 
6765
 
6766
 
6767
 
6768
 
6769
 
6770
 
6771
 
6772
 
6773
 
6774
 
6775
 
6776
 
6777
 
6778
 
6779
 
6780
 
6781
 
6782
 
6783
 
6784
 
6785
 
6786
 
6787
 
6788
 
6789 82 jeremybenn
test -z "$LN_S" && LN_S="ln -s"
6790 19 jeremybenn
 
6791
 
6792
 
6793
 
6794
 
6795
 
6796
 
6797
 
6798
 
6799
 
6800
 
6801
 
6802
 
6803
 
6804 82 jeremybenn
if test -n "${ZSH_VERSION+set}" ; then
6805
   setopt NO_GLOB_SUBST
6806 19 jeremybenn
fi
6807
 
6808 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
6809 82 jeremybenn
$as_echo_n "checking for objdir... " >&6; }
6810 101 jeremybenn
if test "${lt_cv_objdir+set}" = set; then
6811 82 jeremybenn
  $as_echo_n "(cached) " >&6
6812 19 jeremybenn
else
6813
  rm -f .libs 2>/dev/null
6814
mkdir .libs 2>/dev/null
6815
if test -d .libs; then
6816
  lt_cv_objdir=.libs
6817
else
6818
  # MS-DOS does not allow filenames that begin with a dot.
6819
  lt_cv_objdir=_libs
6820
fi
6821
rmdir .libs 2>/dev/null
6822
fi
6823 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6824 82 jeremybenn
$as_echo "$lt_cv_objdir" >&6; }
6825 19 jeremybenn
objdir=$lt_cv_objdir
6826
 
6827
 
6828
 
6829
 
6830
 
6831 82 jeremybenn
cat >>confdefs.h <<_ACEOF
6832
#define LT_OBJDIR "$lt_cv_objdir/"
6833
_ACEOF
6834
 
6835
 
6836
 
6837
 
6838
 
6839
 
6840
 
6841
 
6842
 
6843
 
6844
 
6845
 
6846
 
6847
 
6848
 
6849
 
6850
 
6851 19 jeremybenn
case $host_os in
6852
aix3*)
6853
  # AIX sometimes has problems with the GCC collect2 program.  For some
6854
  # reason, if we set the COLLECT_NAMES environment variable, the problems
6855
  # vanish in a puff of smoke.
6856
  if test "X${COLLECT_NAMES+set}" != Xset; then
6857
    COLLECT_NAMES=
6858
    export COLLECT_NAMES
6859
  fi
6860
  ;;
6861
esac
6862
 
6863
# Sed substitution that helps us do robust quoting.  It backslashifies
6864
# metacharacters that are still active within double-quoted strings.
6865 82 jeremybenn
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6866 19 jeremybenn
 
6867
# Same as above, but do not quote variable references.
6868 82 jeremybenn
double_quote_subst='s/\(["`\\]\)/\\\1/g'
6869 19 jeremybenn
 
6870
# Sed substitution to delay expansion of an escaped shell variable in a
6871
# double_quote_subst'ed string.
6872
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6873
 
6874 82 jeremybenn
# Sed substitution to delay expansion of an escaped single quote.
6875
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6876
 
6877 19 jeremybenn
# Sed substitution to avoid accidental globbing in evaled expressions
6878
no_glob_subst='s/\*/\\\*/g'
6879
 
6880
# Global variables:
6881 82 jeremybenn
ofile=libtool
6882 19 jeremybenn
can_build_shared=yes
6883
 
6884
# All known linkers require a `.a' archive for static linking (except MSVC,
6885
# which needs '.lib').
6886
libext=a
6887 82 jeremybenn
 
6888 19 jeremybenn
with_gnu_ld="$lt_cv_prog_gnu_ld"
6889
 
6890
old_CC="$CC"
6891
old_CFLAGS="$CFLAGS"
6892
 
6893
# Set sane defaults for various variables
6894
test -z "$CC" && CC=cc
6895
test -z "$LTCC" && LTCC=$CC
6896
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6897
test -z "$LD" && LD=ld
6898
test -z "$ac_objext" && ac_objext=o
6899
 
6900
for cc_temp in $compiler""; do
6901
  case $cc_temp in
6902
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6903
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6904
    \-*) ;;
6905
    *) break;;
6906
  esac
6907
done
6908 82 jeremybenn
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6909 19 jeremybenn
 
6910
 
6911
# Only perform the check for file, if the check method requires it
6912 82 jeremybenn
test -z "$MAGIC_CMD" && MAGIC_CMD=file
6913 19 jeremybenn
case $deplibs_check_method in
6914
file_magic*)
6915
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6916 101 jeremybenn
    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6917 82 jeremybenn
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6918 101 jeremybenn
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6919 82 jeremybenn
  $as_echo_n "(cached) " >&6
6920 19 jeremybenn
else
6921
  case $MAGIC_CMD in
6922
[\\/*] |  ?:[\\/]*)
6923
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6924
  ;;
6925
*)
6926
  lt_save_MAGIC_CMD="$MAGIC_CMD"
6927
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6928
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6929
  for ac_dir in $ac_dummy; do
6930
    IFS="$lt_save_ifs"
6931
    test -z "$ac_dir" && ac_dir=.
6932
    if test -f $ac_dir/${ac_tool_prefix}file; then
6933
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6934
      if test -n "$file_magic_test_file"; then
6935
        case $deplibs_check_method in
6936
        "file_magic "*)
6937
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6938
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6939
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6940
            $EGREP "$file_magic_regex" > /dev/null; then
6941
            :
6942
          else
6943 82 jeremybenn
            cat <<_LT_EOF 1>&2
6944 19 jeremybenn
 
6945
*** Warning: the command libtool uses to detect shared libraries,
6946
*** $file_magic_cmd, produces output that libtool cannot recognize.
6947
*** The result is that libtool may fail to recognize shared libraries
6948
*** as such.  This will affect the creation of libtool libraries that
6949
*** depend on shared libraries, but programs linked with such libtool
6950
*** libraries will work regardless of this problem.  Nevertheless, you
6951
*** may want to report the problem to your system manager and/or to
6952
*** bug-libtool@gnu.org
6953
 
6954 82 jeremybenn
_LT_EOF
6955 19 jeremybenn
          fi ;;
6956
        esac
6957
      fi
6958
      break
6959
    fi
6960
  done
6961
  IFS="$lt_save_ifs"
6962
  MAGIC_CMD="$lt_save_MAGIC_CMD"
6963
  ;;
6964
esac
6965
fi
6966
 
6967
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6968
if test -n "$MAGIC_CMD"; then
6969 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6970 82 jeremybenn
$as_echo "$MAGIC_CMD" >&6; }
6971 19 jeremybenn
else
6972 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
6973 82 jeremybenn
$as_echo "no" >&6; }
6974 19 jeremybenn
fi
6975
 
6976 82 jeremybenn
 
6977
 
6978
 
6979
 
6980 19 jeremybenn
if test -z "$lt_cv_path_MAGIC_CMD"; then
6981
  if test -n "$ac_tool_prefix"; then
6982 101 jeremybenn
    { $as_echo "$as_me:$LINENO: checking for file" >&5
6983 82 jeremybenn
$as_echo_n "checking for file... " >&6; }
6984 101 jeremybenn
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6985 82 jeremybenn
  $as_echo_n "(cached) " >&6
6986 19 jeremybenn
else
6987
  case $MAGIC_CMD in
6988
[\\/*] |  ?:[\\/]*)
6989
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6990
  ;;
6991
*)
6992
  lt_save_MAGIC_CMD="$MAGIC_CMD"
6993
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6994
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6995
  for ac_dir in $ac_dummy; do
6996
    IFS="$lt_save_ifs"
6997
    test -z "$ac_dir" && ac_dir=.
6998
    if test -f $ac_dir/file; then
6999
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7000
      if test -n "$file_magic_test_file"; then
7001
        case $deplibs_check_method in
7002
        "file_magic "*)
7003
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7004
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7005
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7006
            $EGREP "$file_magic_regex" > /dev/null; then
7007
            :
7008
          else
7009 82 jeremybenn
            cat <<_LT_EOF 1>&2
7010 19 jeremybenn
 
7011
*** Warning: the command libtool uses to detect shared libraries,
7012
*** $file_magic_cmd, produces output that libtool cannot recognize.
7013
*** The result is that libtool may fail to recognize shared libraries
7014
*** as such.  This will affect the creation of libtool libraries that
7015
*** depend on shared libraries, but programs linked with such libtool
7016
*** libraries will work regardless of this problem.  Nevertheless, you
7017
*** may want to report the problem to your system manager and/or to
7018
*** bug-libtool@gnu.org
7019
 
7020 82 jeremybenn
_LT_EOF
7021 19 jeremybenn
          fi ;;
7022
        esac
7023
      fi
7024
      break
7025
    fi
7026
  done
7027
  IFS="$lt_save_ifs"
7028
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7029
  ;;
7030
esac
7031
fi
7032
 
7033
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7034
if test -n "$MAGIC_CMD"; then
7035 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7036 82 jeremybenn
$as_echo "$MAGIC_CMD" >&6; }
7037 19 jeremybenn
else
7038 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
7039 82 jeremybenn
$as_echo "no" >&6; }
7040 19 jeremybenn
fi
7041
 
7042 82 jeremybenn
 
7043 19 jeremybenn
  else
7044
    MAGIC_CMD=:
7045
  fi
7046
fi
7047
 
7048
  fi
7049
  ;;
7050
esac
7051
 
7052 82 jeremybenn
# Use C for the default configuration in the libtool script
7053 19 jeremybenn
 
7054
lt_save_CC="$CC"
7055
ac_ext=c
7056
ac_cpp='$CPP $CPPFLAGS'
7057
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7058
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7059
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7060
 
7061
 
7062
# Source file extension for C test sources.
7063
ac_ext=c
7064
 
7065
# Object file extension for compiled C test sources.
7066
objext=o
7067
objext=$objext
7068
 
7069
# Code to be used in simple compile tests
7070
lt_simple_compile_test_code="int some_variable = 0;"
7071
 
7072
# Code to be used in simple link tests
7073
lt_simple_link_test_code='int main(){return(0);}'
7074
 
7075
 
7076 82 jeremybenn
 
7077
 
7078
 
7079
 
7080
 
7081 19 jeremybenn
# If no C compiler was specified, use CC.
7082
LTCC=${LTCC-"$CC"}
7083
 
7084
# If no C compiler flags were specified, use CFLAGS.
7085
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7086
 
7087
# Allow CC to be a program name with arguments.
7088
compiler=$CC
7089
 
7090 82 jeremybenn
# Save the default compiler, since it gets overwritten when the other
7091
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7092
compiler_DEFAULT=$CC
7093 19 jeremybenn
 
7094
# save warnings/boilerplate of simple test code
7095
ac_outfile=conftest.$ac_objext
7096
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7097
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7098
_lt_compiler_boilerplate=`cat conftest.err`
7099 82 jeremybenn
$RM conftest*
7100 19 jeremybenn
 
7101
ac_outfile=conftest.$ac_objext
7102
echo "$lt_simple_link_test_code" >conftest.$ac_ext
7103
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7104
_lt_linker_boilerplate=`cat conftest.err`
7105 82 jeremybenn
$RM -r conftest*
7106 19 jeremybenn
 
7107
 
7108 82 jeremybenn
## CAVEAT EMPTOR:
7109
## There is no encapsulation within the following macros, do not change
7110
## the running order or otherwise move them around unless you know exactly
7111
## what you are doing...
7112
if test -n "$compiler"; then
7113 19 jeremybenn
 
7114
lt_prog_compiler_no_builtin_flag=
7115
 
7116
if test "$GCC" = yes; then
7117
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7118
 
7119 101 jeremybenn
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7120 82 jeremybenn
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7121 101 jeremybenn
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7122 82 jeremybenn
  $as_echo_n "(cached) " >&6
7123 19 jeremybenn
else
7124
  lt_cv_prog_compiler_rtti_exceptions=no
7125 82 jeremybenn
   ac_outfile=conftest.$ac_objext
7126 19 jeremybenn
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7127
   lt_compiler_flag="-fno-rtti -fno-exceptions"
7128
   # Insert the option either (1) after the last *FLAGS variable, or
7129
   # (2) before a word containing "conftest.", or (3) at the end.
7130
   # Note that $ac_compile itself does not contain backslashes and begins
7131
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7132
   # The option is referenced via a variable to avoid confusing sed.
7133
   lt_compile=`echo "$ac_compile" | $SED \
7134
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7135
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7136
   -e 's:$: $lt_compiler_flag:'`
7137 112 jeremybenn
   (eval echo "\"\$as_me:7137: $lt_compile\"" >&5)
7138 19 jeremybenn
   (eval "$lt_compile" 2>conftest.err)
7139
   ac_status=$?
7140
   cat conftest.err >&5
7141 112 jeremybenn
   echo "$as_me:7141: \$? = $ac_status" >&5
7142 19 jeremybenn
   if (exit $ac_status) && test -s "$ac_outfile"; then
7143
     # The compiler can only warn and ignore the option if not recognized
7144
     # So say no if there are warnings other than the usual output.
7145 82 jeremybenn
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7146 19 jeremybenn
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7147
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7148
       lt_cv_prog_compiler_rtti_exceptions=yes
7149
     fi
7150
   fi
7151 82 jeremybenn
   $RM conftest*
7152 19 jeremybenn
 
7153
fi
7154 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7155 82 jeremybenn
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7156 19 jeremybenn
 
7157
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7158
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7159
else
7160
    :
7161
fi
7162
 
7163
fi
7164
 
7165 82 jeremybenn
 
7166
 
7167
 
7168
 
7169
 
7170
  lt_prog_compiler_wl=
7171 19 jeremybenn
lt_prog_compiler_pic=
7172
lt_prog_compiler_static=
7173
 
7174 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7175 82 jeremybenn
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7176 19 jeremybenn
 
7177
  if test "$GCC" = yes; then
7178
    lt_prog_compiler_wl='-Wl,'
7179
    lt_prog_compiler_static='-static'
7180
 
7181
    case $host_os in
7182
      aix*)
7183
      # All AIX code is PIC.
7184
      if test "$host_cpu" = ia64; then
7185
        # AIX 5 now supports IA64 processor
7186
        lt_prog_compiler_static='-Bstatic'
7187
      fi
7188
      ;;
7189
 
7190
    amigaos*)
7191 82 jeremybenn
      case $host_cpu in
7192
      powerpc)
7193
            # see comment about AmigaOS4 .so support
7194
            lt_prog_compiler_pic='-fPIC'
7195
        ;;
7196
      m68k)
7197
            # FIXME: we need at least 68020 code to build shared libraries, but
7198
            # adding the `-m68020' flag to GCC prevents building anything better,
7199
            # like `-m68040'.
7200
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7201
        ;;
7202
      esac
7203 19 jeremybenn
      ;;
7204
 
7205
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7206
      # PIC is the default for these OSes.
7207
      ;;
7208
 
7209 82 jeremybenn
    mingw* | cygwin* | pw32* | os2* | cegcc*)
7210 19 jeremybenn
      # This hack is so that the source file can tell whether it is being
7211
      # built for inclusion in a dll (and should export symbols for example).
7212
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7213
      # (--disable-auto-import) libraries
7214
      lt_prog_compiler_pic='-DDLL_EXPORT'
7215
      ;;
7216
 
7217
    darwin* | rhapsody*)
7218
      # PIC is the default on this platform
7219
      # Common symbols not allowed in MH_DYLIB files
7220
      lt_prog_compiler_pic='-fno-common'
7221
      ;;
7222
 
7223 82 jeremybenn
    hpux*)
7224
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7225
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7226
      # sets the default TLS model and affects inlining.
7227
      case $host_cpu in
7228
      hppa*64*)
7229
        # +Z the default
7230
        ;;
7231
      *)
7232
        lt_prog_compiler_pic='-fPIC'
7233
        ;;
7234
      esac
7235
      ;;
7236
 
7237 19 jeremybenn
    interix[3-9]*)
7238
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7239
      # Instead, we relocate shared libraries at runtime.
7240
      ;;
7241
 
7242
    msdosdjgpp*)
7243
      # Just because we use GCC doesn't mean we suddenly get shared libraries
7244
      # on systems that don't support them.
7245
      lt_prog_compiler_can_build_shared=no
7246
      enable_shared=no
7247
      ;;
7248
 
7249 82 jeremybenn
    *nto* | *qnx*)
7250
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7251
      # it will coredump.
7252
      lt_prog_compiler_pic='-fPIC -shared'
7253
      ;;
7254
 
7255 19 jeremybenn
    sysv4*MP*)
7256
      if test -d /usr/nec; then
7257
        lt_prog_compiler_pic=-Kconform_pic
7258
      fi
7259
      ;;
7260
 
7261
    *)
7262
      lt_prog_compiler_pic='-fPIC'
7263
      ;;
7264
    esac
7265
  else
7266
    # PORTME Check for flag to pass linker flags through the system compiler.
7267
    case $host_os in
7268
    aix*)
7269
      lt_prog_compiler_wl='-Wl,'
7270
      if test "$host_cpu" = ia64; then
7271
        # AIX 5 now supports IA64 processor
7272
        lt_prog_compiler_static='-Bstatic'
7273
      else
7274
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7275
      fi
7276
      ;;
7277
 
7278 82 jeremybenn
    mingw* | cygwin* | pw32* | os2* | cegcc*)
7279 19 jeremybenn
      # This hack is so that the source file can tell whether it is being
7280
      # built for inclusion in a dll (and should export symbols for example).
7281
      lt_prog_compiler_pic='-DDLL_EXPORT'
7282
      ;;
7283
 
7284
    hpux9* | hpux10* | hpux11*)
7285
      lt_prog_compiler_wl='-Wl,'
7286
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7287
      # not for PA HP-UX.
7288
      case $host_cpu in
7289
      hppa*64*|ia64*)
7290
        # +Z the default
7291
        ;;
7292
      *)
7293
        lt_prog_compiler_pic='+Z'
7294
        ;;
7295
      esac
7296
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7297
      lt_prog_compiler_static='${wl}-a ${wl}archive'
7298
      ;;
7299
 
7300
    irix5* | irix6* | nonstopux*)
7301
      lt_prog_compiler_wl='-Wl,'
7302
      # PIC (with -KPIC) is the default.
7303
      lt_prog_compiler_static='-non_shared'
7304
      ;;
7305
 
7306
    linux* | k*bsd*-gnu)
7307
      case $cc_basename in
7308 82 jeremybenn
      # old Intel for x86_64 which still supported -KPIC.
7309
      ecc*)
7310 19 jeremybenn
        lt_prog_compiler_wl='-Wl,'
7311
        lt_prog_compiler_pic='-KPIC'
7312
        lt_prog_compiler_static='-static'
7313
        ;;
7314 82 jeremybenn
      # icc used to be incompatible with GCC.
7315
      # ICC 10 doesn't accept -KPIC any more.
7316
      icc* | ifort*)
7317
        lt_prog_compiler_wl='-Wl,'
7318
        lt_prog_compiler_pic='-fPIC'
7319
        lt_prog_compiler_static='-static'
7320
        ;;
7321
      # Lahey Fortran 8.1.
7322
      lf95*)
7323
        lt_prog_compiler_wl='-Wl,'
7324
        lt_prog_compiler_pic='--shared'
7325
        lt_prog_compiler_static='--static'
7326
        ;;
7327 19 jeremybenn
      pgcc* | pgf77* | pgf90* | pgf95*)
7328
        # Portland Group compilers (*not* the Pentium gcc compiler,
7329
        # which looks to be a dead project)
7330
        lt_prog_compiler_wl='-Wl,'
7331
        lt_prog_compiler_pic='-fpic'
7332
        lt_prog_compiler_static='-Bstatic'
7333
        ;;
7334
      ccc*)
7335
        lt_prog_compiler_wl='-Wl,'
7336
        # All Alpha code is PIC.
7337
        lt_prog_compiler_static='-non_shared'
7338
        ;;
7339 82 jeremybenn
      xl*)
7340
        # IBM XL C 8.0/Fortran 10.1 on PPC
7341
        lt_prog_compiler_wl='-Wl,'
7342
        lt_prog_compiler_pic='-qpic'
7343
        lt_prog_compiler_static='-qstaticlink'
7344
        ;;
7345 19 jeremybenn
      *)
7346 82 jeremybenn
        case `$CC -V 2>&1 | sed 5q` in
7347 19 jeremybenn
        *Sun\ C*)
7348
          # Sun C 5.9
7349
          lt_prog_compiler_pic='-KPIC'
7350
          lt_prog_compiler_static='-Bstatic'
7351
          lt_prog_compiler_wl='-Wl,'
7352
          ;;
7353
        *Sun\ F*)
7354
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
7355
          lt_prog_compiler_pic='-KPIC'
7356
          lt_prog_compiler_static='-Bstatic'
7357
          lt_prog_compiler_wl=''
7358
          ;;
7359
        esac
7360
        ;;
7361
      esac
7362
      ;;
7363
 
7364 82 jeremybenn
    newsos6)
7365
      lt_prog_compiler_pic='-KPIC'
7366
      lt_prog_compiler_static='-Bstatic'
7367
      ;;
7368
 
7369
    *nto* | *qnx*)
7370
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7371
      # it will coredump.
7372
      lt_prog_compiler_pic='-fPIC -shared'
7373
      ;;
7374
 
7375 19 jeremybenn
    osf3* | osf4* | osf5*)
7376
      lt_prog_compiler_wl='-Wl,'
7377
      # All OSF/1 code is PIC.
7378
      lt_prog_compiler_static='-non_shared'
7379
      ;;
7380
 
7381
    rdos*)
7382
      lt_prog_compiler_static='-non_shared'
7383
      ;;
7384
 
7385
    solaris*)
7386
      lt_prog_compiler_pic='-KPIC'
7387
      lt_prog_compiler_static='-Bstatic'
7388
      case $cc_basename in
7389
      f77* | f90* | f95*)
7390
        lt_prog_compiler_wl='-Qoption ld ';;
7391
      *)
7392
        lt_prog_compiler_wl='-Wl,';;
7393
      esac
7394
      ;;
7395
 
7396
    sunos4*)
7397
      lt_prog_compiler_wl='-Qoption ld '
7398
      lt_prog_compiler_pic='-PIC'
7399
      lt_prog_compiler_static='-Bstatic'
7400
      ;;
7401
 
7402
    sysv4 | sysv4.2uw2* | sysv4.3*)
7403
      lt_prog_compiler_wl='-Wl,'
7404
      lt_prog_compiler_pic='-KPIC'
7405
      lt_prog_compiler_static='-Bstatic'
7406
      ;;
7407
 
7408
    sysv4*MP*)
7409
      if test -d /usr/nec ;then
7410
        lt_prog_compiler_pic='-Kconform_pic'
7411
        lt_prog_compiler_static='-Bstatic'
7412
      fi
7413
      ;;
7414
 
7415
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7416
      lt_prog_compiler_wl='-Wl,'
7417
      lt_prog_compiler_pic='-KPIC'
7418
      lt_prog_compiler_static='-Bstatic'
7419
      ;;
7420
 
7421
    unicos*)
7422
      lt_prog_compiler_wl='-Wl,'
7423
      lt_prog_compiler_can_build_shared=no
7424
      ;;
7425
 
7426
    uts4*)
7427
      lt_prog_compiler_pic='-pic'
7428
      lt_prog_compiler_static='-Bstatic'
7429
      ;;
7430
 
7431
    *)
7432
      lt_prog_compiler_can_build_shared=no
7433
      ;;
7434
    esac
7435
  fi
7436
 
7437 82 jeremybenn
case $host_os in
7438
  # For platforms which do not support PIC, -DPIC is meaningless:
7439
  *djgpp*)
7440
    lt_prog_compiler_pic=
7441
    ;;
7442
  *)
7443
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7444
    ;;
7445
esac
7446 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7447 82 jeremybenn
$as_echo "$lt_prog_compiler_pic" >&6; }
7448 19 jeremybenn
 
7449 82 jeremybenn
 
7450
 
7451
 
7452
 
7453
 
7454 19 jeremybenn
#
7455
# Check to make sure the PIC flag actually works.
7456
#
7457
if test -n "$lt_prog_compiler_pic"; then
7458 101 jeremybenn
  { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7459 82 jeremybenn
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7460 101 jeremybenn
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7461 82 jeremybenn
  $as_echo_n "(cached) " >&6
7462 19 jeremybenn
else
7463 82 jeremybenn
  lt_cv_prog_compiler_pic_works=no
7464
   ac_outfile=conftest.$ac_objext
7465 19 jeremybenn
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7466
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7467
   # Insert the option either (1) after the last *FLAGS variable, or
7468
   # (2) before a word containing "conftest.", or (3) at the end.
7469
   # Note that $ac_compile itself does not contain backslashes and begins
7470
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7471
   # The option is referenced via a variable to avoid confusing sed.
7472
   lt_compile=`echo "$ac_compile" | $SED \
7473
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7474
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7475
   -e 's:$: $lt_compiler_flag:'`
7476 112 jeremybenn
   (eval echo "\"\$as_me:7476: $lt_compile\"" >&5)
7477 19 jeremybenn
   (eval "$lt_compile" 2>conftest.err)
7478
   ac_status=$?
7479
   cat conftest.err >&5
7480 112 jeremybenn
   echo "$as_me:7480: \$? = $ac_status" >&5
7481 19 jeremybenn
   if (exit $ac_status) && test -s "$ac_outfile"; then
7482
     # The compiler can only warn and ignore the option if not recognized
7483
     # So say no if there are warnings other than the usual output.
7484 82 jeremybenn
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7485 19 jeremybenn
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7486
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7487 82 jeremybenn
       lt_cv_prog_compiler_pic_works=yes
7488 19 jeremybenn
     fi
7489
   fi
7490 82 jeremybenn
   $RM conftest*
7491 19 jeremybenn
 
7492
fi
7493 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7494 82 jeremybenn
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7495 19 jeremybenn
 
7496 82 jeremybenn
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7497 19 jeremybenn
    case $lt_prog_compiler_pic in
7498
     "" | " "*) ;;
7499
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7500
     esac
7501
else
7502
    lt_prog_compiler_pic=
7503
     lt_prog_compiler_can_build_shared=no
7504
fi
7505
 
7506
fi
7507
 
7508 82 jeremybenn
 
7509
 
7510
 
7511
 
7512
 
7513 19 jeremybenn
#
7514
# Check to make sure the static flag actually works.
7515
#
7516
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7517 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7518 82 jeremybenn
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7519 101 jeremybenn
if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7520 82 jeremybenn
  $as_echo_n "(cached) " >&6
7521 19 jeremybenn
else
7522 82 jeremybenn
  lt_cv_prog_compiler_static_works=no
7523 19 jeremybenn
   save_LDFLAGS="$LDFLAGS"
7524
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7525
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7526
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7527
     # The linker can only warn and ignore the option if not recognized
7528
     # So say no if there are warnings
7529
     if test -s conftest.err; then
7530
       # Append any errors to the config.log.
7531
       cat conftest.err 1>&5
7532 82 jeremybenn
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7533 19 jeremybenn
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7534
       if diff conftest.exp conftest.er2 >/dev/null; then
7535 82 jeremybenn
         lt_cv_prog_compiler_static_works=yes
7536 19 jeremybenn
       fi
7537
     else
7538 82 jeremybenn
       lt_cv_prog_compiler_static_works=yes
7539 19 jeremybenn
     fi
7540
   fi
7541 82 jeremybenn
   $RM -r conftest*
7542 19 jeremybenn
   LDFLAGS="$save_LDFLAGS"
7543
 
7544
fi
7545 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7546 82 jeremybenn
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7547 19 jeremybenn
 
7548 82 jeremybenn
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7549 19 jeremybenn
    :
7550
else
7551
    lt_prog_compiler_static=
7552
fi
7553
 
7554
 
7555 82 jeremybenn
 
7556
 
7557
 
7558
 
7559
 
7560 101 jeremybenn
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7561 82 jeremybenn
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7562 101 jeremybenn
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7563 82 jeremybenn
  $as_echo_n "(cached) " >&6
7564 19 jeremybenn
else
7565
  lt_cv_prog_compiler_c_o=no
7566 82 jeremybenn
   $RM -r conftest 2>/dev/null
7567 19 jeremybenn
   mkdir conftest
7568
   cd conftest
7569
   mkdir out
7570
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7571
 
7572
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7573
   # Insert the option either (1) after the last *FLAGS variable, or
7574
   # (2) before a word containing "conftest.", or (3) at the end.
7575
   # Note that $ac_compile itself does not contain backslashes and begins
7576
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7577
   lt_compile=`echo "$ac_compile" | $SED \
7578
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7579
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7580
   -e 's:$: $lt_compiler_flag:'`
7581 112 jeremybenn
   (eval echo "\"\$as_me:7581: $lt_compile\"" >&5)
7582 19 jeremybenn
   (eval "$lt_compile" 2>out/conftest.err)
7583
   ac_status=$?
7584
   cat out/conftest.err >&5
7585 112 jeremybenn
   echo "$as_me:7585: \$? = $ac_status" >&5
7586 19 jeremybenn
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7587
   then
7588
     # The compiler can only warn and ignore the option if not recognized
7589
     # So say no if there are warnings
7590 82 jeremybenn
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7591 19 jeremybenn
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7592
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7593
       lt_cv_prog_compiler_c_o=yes
7594
     fi
7595
   fi
7596
   chmod u+w . 2>&5
7597 82 jeremybenn
   $RM conftest*
7598 19 jeremybenn
   # SGI C++ compiler will create directory out/ii_files/ for
7599
   # template instantiation
7600 82 jeremybenn
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7601
   $RM out/* && rmdir out
7602 19 jeremybenn
   cd ..
7603 82 jeremybenn
   $RM -r conftest
7604
   $RM conftest*
7605 19 jeremybenn
 
7606
fi
7607 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7608 82 jeremybenn
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7609 19 jeremybenn
 
7610
 
7611 82 jeremybenn
 
7612
 
7613
 
7614
 
7615 101 jeremybenn
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7616 82 jeremybenn
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7617 101 jeremybenn
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7618 82 jeremybenn
  $as_echo_n "(cached) " >&6
7619
else
7620
  lt_cv_prog_compiler_c_o=no
7621
   $RM -r conftest 2>/dev/null
7622
   mkdir conftest
7623
   cd conftest
7624
   mkdir out
7625
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7626
 
7627
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7628
   # Insert the option either (1) after the last *FLAGS variable, or
7629
   # (2) before a word containing "conftest.", or (3) at the end.
7630
   # Note that $ac_compile itself does not contain backslashes and begins
7631
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7632
   lt_compile=`echo "$ac_compile" | $SED \
7633
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7634
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7635
   -e 's:$: $lt_compiler_flag:'`
7636 112 jeremybenn
   (eval echo "\"\$as_me:7636: $lt_compile\"" >&5)
7637 82 jeremybenn
   (eval "$lt_compile" 2>out/conftest.err)
7638
   ac_status=$?
7639
   cat out/conftest.err >&5
7640 112 jeremybenn
   echo "$as_me:7640: \$? = $ac_status" >&5
7641 82 jeremybenn
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7642
   then
7643
     # The compiler can only warn and ignore the option if not recognized
7644
     # So say no if there are warnings
7645
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7646
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7647
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7648
       lt_cv_prog_compiler_c_o=yes
7649
     fi
7650
   fi
7651
   chmod u+w . 2>&5
7652
   $RM conftest*
7653
   # SGI C++ compiler will create directory out/ii_files/ for
7654
   # template instantiation
7655
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7656
   $RM out/* && rmdir out
7657
   cd ..
7658
   $RM -r conftest
7659
   $RM conftest*
7660
 
7661
fi
7662 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7663 82 jeremybenn
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7664
 
7665
 
7666
 
7667
 
7668 19 jeremybenn
hard_links="nottested"
7669
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7670
  # do not overwrite the value of need_locks provided by the user
7671 101 jeremybenn
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7672 82 jeremybenn
$as_echo_n "checking if we can lock with hard links... " >&6; }
7673 19 jeremybenn
  hard_links=yes
7674 82 jeremybenn
  $RM conftest*
7675 19 jeremybenn
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7676
  touch conftest.a
7677
  ln conftest.a conftest.b 2>&5 || hard_links=no
7678
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7679 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
7680 82 jeremybenn
$as_echo "$hard_links" >&6; }
7681 19 jeremybenn
  if test "$hard_links" = no; then
7682 101 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7683 82 jeremybenn
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7684 19 jeremybenn
    need_locks=warn
7685
  fi
7686
else
7687
  need_locks=no
7688
fi
7689
 
7690
 
7691 82 jeremybenn
 
7692
 
7693
 
7694
 
7695 101 jeremybenn
  { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7696 82 jeremybenn
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7697
 
7698 19 jeremybenn
  runpath_var=
7699
  allow_undefined_flag=
7700 82 jeremybenn
  always_export_symbols=no
7701 19 jeremybenn
  archive_cmds=
7702
  archive_expsym_cmds=
7703 82 jeremybenn
  compiler_needs_object=no
7704
  enable_shared_with_static_runtimes=no
7705 19 jeremybenn
  export_dynamic_flag_spec=
7706 82 jeremybenn
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7707
  hardcode_automatic=no
7708
  hardcode_direct=no
7709
  hardcode_direct_absolute=no
7710 19 jeremybenn
  hardcode_libdir_flag_spec=
7711
  hardcode_libdir_flag_spec_ld=
7712
  hardcode_libdir_separator=
7713
  hardcode_minus_L=no
7714
  hardcode_shlibpath_var=unsupported
7715 82 jeremybenn
  inherit_rpath=no
7716 19 jeremybenn
  link_all_deplibs=unknown
7717
  module_cmds=
7718
  module_expsym_cmds=
7719 82 jeremybenn
  old_archive_from_new_cmds=
7720
  old_archive_from_expsyms_cmds=
7721
  thread_safe_flag_spec=
7722
  whole_archive_flag_spec=
7723 19 jeremybenn
  # include_expsyms should be a list of space-separated symbols to be *always*
7724
  # included in the symbol list
7725
  include_expsyms=
7726
  # exclude_expsyms can be an extended regexp of symbols to exclude
7727
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7728
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7729
  # as well as any symbol that contains `d'.
7730 82 jeremybenn
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7731 19 jeremybenn
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7732
  # platforms (ab)use it in PIC code, but their linkers get confused if
7733
  # the symbol is explicitly referenced.  Since portable code cannot
7734
  # rely on this symbol name, it's probably fine to never include it in
7735
  # preloaded symbol tables.
7736 82 jeremybenn
  # Exclude shared library initialization/finalization symbols.
7737 19 jeremybenn
  extract_expsyms_cmds=
7738
 
7739
  case $host_os in
7740 82 jeremybenn
  cygwin* | mingw* | pw32* | cegcc*)
7741 19 jeremybenn
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7742
    # When not using gcc, we currently assume that we are using
7743
    # Microsoft Visual C++.
7744
    if test "$GCC" != yes; then
7745
      with_gnu_ld=no
7746
    fi
7747
    ;;
7748
  interix*)
7749
    # we just hope/assume this is gcc and not c89 (= MSVC++)
7750
    with_gnu_ld=yes
7751
    ;;
7752
  openbsd*)
7753
    with_gnu_ld=no
7754
    ;;
7755 93 jeremybenn
  linux* | k*bsd*-gnu)
7756
    link_all_deplibs=no
7757
    ;;
7758 19 jeremybenn
  esac
7759
 
7760
  ld_shlibs=yes
7761
  if test "$with_gnu_ld" = yes; then
7762
    # If archive_cmds runs LD, not CC, wlarc should be empty
7763
    wlarc='${wl}'
7764
 
7765
    # Set some defaults for GNU ld with shared library support. These
7766
    # are reset later if shared libraries are not supported. Putting them
7767
    # here allows them to be overridden if necessary.
7768
    runpath_var=LD_RUN_PATH
7769 82 jeremybenn
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7770 19 jeremybenn
    export_dynamic_flag_spec='${wl}--export-dynamic'
7771
    # ancient GNU ld didn't support --whole-archive et. al.
7772 82 jeremybenn
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7773
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7774
    else
7775
      whole_archive_flag_spec=
7776 19 jeremybenn
    fi
7777
    supports_anon_versioning=no
7778 82 jeremybenn
    case `$LD -v 2>&1` in
7779 19 jeremybenn
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7780
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7781
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7782
      *\ 2.11.*) ;; # other 2.11 versions
7783
      *) supports_anon_versioning=yes ;;
7784
    esac
7785
 
7786
    # See if GNU ld supports shared libraries.
7787
    case $host_os in
7788 82 jeremybenn
    aix[3-9]*)
7789 19 jeremybenn
      # On AIX/PPC, the GNU linker is very broken
7790
      if test "$host_cpu" != ia64; then
7791
        ld_shlibs=no
7792 82 jeremybenn
        cat <<_LT_EOF 1>&2
7793 19 jeremybenn
 
7794
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7795
*** to be unable to reliably create shared libraries on AIX.
7796
*** Therefore, libtool is disabling shared libraries support.  If you
7797
*** really care for shared libraries, you may want to modify your PATH
7798
*** so that a non-GNU linker is found, and then restart.
7799
 
7800 82 jeremybenn
_LT_EOF
7801 19 jeremybenn
      fi
7802
      ;;
7803
 
7804
    amigaos*)
7805 82 jeremybenn
      case $host_cpu in
7806
      powerpc)
7807
            # see comment about AmigaOS4 .so support
7808
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7809
            archive_expsym_cmds=''
7810
        ;;
7811
      m68k)
7812
            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)'
7813
            hardcode_libdir_flag_spec='-L$libdir'
7814
            hardcode_minus_L=yes
7815
        ;;
7816
      esac
7817 19 jeremybenn
      ;;
7818
 
7819
    beos*)
7820 82 jeremybenn
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7821 19 jeremybenn
        allow_undefined_flag=unsupported
7822
        # Joseph Beckenbach  says some releases of gcc
7823
        # support --undefined.  This deserves some investigation.  FIXME
7824
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7825
      else
7826
        ld_shlibs=no
7827
      fi
7828
      ;;
7829
 
7830 82 jeremybenn
    cygwin* | mingw* | pw32* | cegcc*)
7831
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7832 19 jeremybenn
      # as there is no search path for DLLs.
7833
      hardcode_libdir_flag_spec='-L$libdir'
7834
      allow_undefined_flag=unsupported
7835
      always_export_symbols=no
7836
      enable_shared_with_static_runtimes=yes
7837 82 jeremybenn
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7838 19 jeremybenn
 
7839 82 jeremybenn
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7840 19 jeremybenn
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7841
        # If the export-symbols file already is a .def file (1st line
7842
        # is EXPORTS), use it as is; otherwise, prepend...
7843
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7844
          cp $export_symbols $output_objdir/$soname.def;
7845
        else
7846
          echo EXPORTS > $output_objdir/$soname.def;
7847
          cat $export_symbols >> $output_objdir/$soname.def;
7848
        fi~
7849
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7850
      else
7851
        ld_shlibs=no
7852
      fi
7853
      ;;
7854
 
7855
    interix[3-9]*)
7856
      hardcode_direct=no
7857
      hardcode_shlibpath_var=no
7858
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7859
      export_dynamic_flag_spec='${wl}-E'
7860
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7861
      # Instead, shared libraries are loaded at an image base (0x10000000 by
7862
      # default) and relocated if they conflict, which is a slow very memory
7863
      # consuming and fragmenting process.  To avoid this, we pick a random,
7864
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7865
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7866
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7867
      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'
7868
      ;;
7869
 
7870 82 jeremybenn
    gnu* | linux* | tpf* | k*bsd*-gnu)
7871
      tmp_diet=no
7872
      if test "$host_os" = linux-dietlibc; then
7873
        case $cc_basename in
7874
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
7875
        esac
7876
      fi
7877
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7878
         && test "$tmp_diet" = no
7879
      then
7880 19 jeremybenn
        tmp_addflag=
7881 82 jeremybenn
        tmp_sharedflag='-shared'
7882 19 jeremybenn
        case $cc_basename,$host_cpu in
7883 82 jeremybenn
        pgcc*)                          # Portland Group C compiler
7884
          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'
7885 19 jeremybenn
          tmp_addflag=' $pic_flag'
7886
          ;;
7887
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7888 82 jeremybenn
          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'
7889 19 jeremybenn
          tmp_addflag=' $pic_flag -Mnomain' ;;
7890 82 jeremybenn
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
7891 19 jeremybenn
          tmp_addflag=' -i_dynamic' ;;
7892
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7893
          tmp_addflag=' -i_dynamic -nofor_main' ;;
7894
        ifc* | ifort*)                  # Intel Fortran compiler
7895
          tmp_addflag=' -nofor_main' ;;
7896 82 jeremybenn
        lf95*)                          # Lahey Fortran 8.1
7897
          whole_archive_flag_spec=
7898
          tmp_sharedflag='--shared' ;;
7899
        xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
7900
          tmp_sharedflag='-qmkshrobj'
7901
          tmp_addflag= ;;
7902 19 jeremybenn
        esac
7903
        case `$CC -V 2>&1 | sed 5q` in
7904
        *Sun\ C*)                       # Sun C 5.9
7905 82 jeremybenn
          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'
7906
          compiler_needs_object=yes
7907 19 jeremybenn
          tmp_sharedflag='-G' ;;
7908
        *Sun\ F*)                       # Sun Fortran 8.3
7909
          tmp_sharedflag='-G' ;;
7910
        esac
7911
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7912
 
7913 82 jeremybenn
        if test "x$supports_anon_versioning" = xyes; then
7914
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7915
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7916
            echo "local: *; };" >> $output_objdir/$libname.ver~
7917
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7918
        fi
7919
 
7920
        case $cc_basename in
7921
        xlf*)
7922
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7923
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7924
          hardcode_libdir_flag_spec=
7925
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
7926
          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7927
          if test "x$supports_anon_versioning" = xyes; then
7928
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7929
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7930
              echo "local: *; };" >> $output_objdir/$libname.ver~
7931
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7932
          fi
7933
          ;;
7934
        esac
7935 19 jeremybenn
      else
7936 82 jeremybenn
        ld_shlibs=no
7937 19 jeremybenn
      fi
7938
      ;;
7939
 
7940 93 jeremybenn
    netbsd* | netbsdelf*-gnu)
7941 82 jeremybenn
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7942 19 jeremybenn
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7943
        wlarc=
7944
      else
7945
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7946
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7947
      fi
7948
      ;;
7949
 
7950
    solaris*)
7951 82 jeremybenn
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7952 19 jeremybenn
        ld_shlibs=no
7953 82 jeremybenn
        cat <<_LT_EOF 1>&2
7954 19 jeremybenn
 
7955
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7956
*** create shared libraries on Solaris systems.  Therefore, libtool
7957
*** is disabling shared libraries support.  We urge you to upgrade GNU
7958
*** binutils to release 2.9.1 or newer.  Another option is to modify
7959
*** your PATH or compiler configuration so that the native linker is
7960
*** used, and then restart.
7961
 
7962 82 jeremybenn
_LT_EOF
7963
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7964 19 jeremybenn
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7965
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7966
      else
7967
        ld_shlibs=no
7968
      fi
7969
      ;;
7970
 
7971
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7972
      case `$LD -v 2>&1` in
7973
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7974
        ld_shlibs=no
7975
        cat <<_LT_EOF 1>&2
7976
 
7977
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7978
*** reliably create shared libraries on SCO systems.  Therefore, libtool
7979
*** is disabling shared libraries support.  We urge you to upgrade GNU
7980
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7981
*** your PATH or compiler configuration so that the native linker is
7982
*** used, and then restart.
7983
 
7984
_LT_EOF
7985
        ;;
7986
        *)
7987 82 jeremybenn
          # For security reasons, it is highly recommended that you always
7988
          # use absolute paths for naming shared libraries, and exclude the
7989
          # DT_RUNPATH tag from executables and libraries.  But doing so
7990
          # requires that you compile everything twice, which is a pain.
7991
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7992
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7993
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7994
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7995 19 jeremybenn
          else
7996
            ld_shlibs=no
7997
          fi
7998
        ;;
7999
      esac
8000
      ;;
8001
 
8002
    sunos4*)
8003
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8004
      wlarc=
8005
      hardcode_direct=yes
8006
      hardcode_shlibpath_var=no
8007
      ;;
8008
 
8009
    *)
8010 82 jeremybenn
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8011 19 jeremybenn
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8012
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8013
      else
8014
        ld_shlibs=no
8015
      fi
8016
      ;;
8017
    esac
8018
 
8019
    if test "$ld_shlibs" = no; then
8020
      runpath_var=
8021
      hardcode_libdir_flag_spec=
8022
      export_dynamic_flag_spec=
8023
      whole_archive_flag_spec=
8024
    fi
8025
  else
8026
    # PORTME fill in a description of your system's linker (not GNU ld)
8027
    case $host_os in
8028
    aix3*)
8029
      allow_undefined_flag=unsupported
8030
      always_export_symbols=yes
8031
      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'
8032
      # Note: this linker hardcodes the directories in LIBPATH if there
8033
      # are no directories specified by -L.
8034
      hardcode_minus_L=yes
8035
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8036
        # Neither direct hardcoding nor static linking is supported with a
8037
        # broken collect2.
8038
        hardcode_direct=unsupported
8039
      fi
8040
      ;;
8041
 
8042 82 jeremybenn
    aix[4-9]*)
8043 19 jeremybenn
      if test "$host_cpu" = ia64; then
8044
        # On IA64, the linker does run time linking by default, so we don't
8045
        # have to do anything special.
8046
        aix_use_runtimelinking=no
8047
        exp_sym_flag='-Bexport'
8048
        no_entry_flag=""
8049
      else
8050
        # If we're using GNU nm, then we don't want the "-C" option.
8051
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8052 82 jeremybenn
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8053
          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'
8054 19 jeremybenn
        else
8055 82 jeremybenn
          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'
8056 19 jeremybenn
        fi
8057
        aix_use_runtimelinking=no
8058
 
8059
        # Test if we are trying to use run time linking or normal
8060
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8061
        # need to do runtime linking.
8062 82 jeremybenn
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8063 19 jeremybenn
          for ld_flag in $LDFLAGS; do
8064 82 jeremybenn
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8065
            aix_use_runtimelinking=yes
8066
            break
8067
          fi
8068 19 jeremybenn
          done
8069
          ;;
8070
        esac
8071
 
8072
        exp_sym_flag='-bexport'
8073
        no_entry_flag='-bnoentry'
8074
      fi
8075
 
8076
      # When large executables or shared objects are built, AIX ld can
8077
      # have problems creating the table of contents.  If linking a library
8078
      # or program results in "error TOC overflow" add -mminimal-toc to
8079
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8080
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8081
 
8082
      archive_cmds=''
8083
      hardcode_direct=yes
8084 82 jeremybenn
      hardcode_direct_absolute=yes
8085 19 jeremybenn
      hardcode_libdir_separator=':'
8086
      link_all_deplibs=yes
8087 82 jeremybenn
      file_list_spec='${wl}-f,'
8088 19 jeremybenn
 
8089
      if test "$GCC" = yes; then
8090
        case $host_os in aix4.[012]|aix4.[012].*)
8091
        # We only want to do this on AIX 4.2 and lower, the check
8092
        # below for broken collect2 doesn't work under 4.3+
8093
          collect2name=`${CC} -print-prog-name=collect2`
8094 82 jeremybenn
          if test -f "$collect2name" &&
8095
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8096 19 jeremybenn
          then
8097 82 jeremybenn
          # We have reworked collect2
8098
          :
8099 19 jeremybenn
          else
8100 82 jeremybenn
          # We have old collect2
8101
          hardcode_direct=unsupported
8102
          # It fails to find uninstalled libraries when the uninstalled
8103
          # path is not listed in the libpath.  Setting hardcode_minus_L
8104
          # to unsupported forces relinking
8105
          hardcode_minus_L=yes
8106
          hardcode_libdir_flag_spec='-L$libdir'
8107
          hardcode_libdir_separator=
8108 19 jeremybenn
          fi
8109
          ;;
8110
        esac
8111
        shared_flag='-shared'
8112
        if test "$aix_use_runtimelinking" = yes; then
8113
          shared_flag="$shared_flag "'${wl}-G'
8114
        fi
8115 93 jeremybenn
        link_all_deplibs=no
8116 19 jeremybenn
      else
8117
        # not using gcc
8118
        if test "$host_cpu" = ia64; then
8119 82 jeremybenn
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8120
        # chokes on -Wl,-G. The following line is correct:
8121 19 jeremybenn
          shared_flag='-G'
8122
        else
8123
          if test "$aix_use_runtimelinking" = yes; then
8124
            shared_flag='${wl}-G'
8125
          else
8126
            shared_flag='${wl}-bM:SRE'
8127
          fi
8128
        fi
8129
      fi
8130
 
8131 82 jeremybenn
      export_dynamic_flag_spec='${wl}-bexpall'
8132 19 jeremybenn
      # It seems that -bexpall does not export symbols beginning with
8133
      # underscore (_), so it is better to generate a list of symbols to export.
8134
      always_export_symbols=yes
8135
      if test "$aix_use_runtimelinking" = yes; then
8136
        # Warning - without using the other runtime loading flags (-brtl),
8137
        # -berok will link without error, but may produce a broken library.
8138
        allow_undefined_flag='-berok'
8139 82 jeremybenn
        # Determine the default libpath from the value encoded in an
8140
        # empty executable.
8141 101 jeremybenn
        cat >conftest.$ac_ext <<_ACEOF
8142
/* confdefs.h.  */
8143
_ACEOF
8144
cat confdefs.h >>conftest.$ac_ext
8145
cat >>conftest.$ac_ext <<_ACEOF
8146 19 jeremybenn
/* end confdefs.h.  */
8147
 
8148
int
8149
main ()
8150
{
8151
 
8152
  ;
8153
  return 0;
8154
}
8155
_ACEOF
8156 101 jeremybenn
rm -f conftest.$ac_objext conftest$ac_exeext
8157
if { (ac_try="$ac_link"
8158
case "(($ac_try" in
8159
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8160
  *) ac_try_echo=$ac_try;;
8161
esac
8162
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8163
$as_echo "$ac_try_echo") >&5
8164
  (eval "$ac_link") 2>conftest.er1
8165
  ac_status=$?
8166
  grep -v '^ *+' conftest.er1 >conftest.err
8167
  rm -f conftest.er1
8168
  cat conftest.err >&5
8169
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8170
  (exit $ac_status); } && {
8171
         test -z "$ac_c_werror_flag" ||
8172
         test ! -s conftest.err
8173
       } && test -s conftest$ac_exeext && {
8174
         test "$cross_compiling" = yes ||
8175
         $as_test_x conftest$ac_exeext
8176
       }; then
8177 19 jeremybenn
 
8178
lt_aix_libpath_sed='
8179
    /Import File Strings/,/^$/ {
8180
        /^0/ {
8181
            s/^0  *\(.*\)$/\1/
8182
            p
8183
        }
8184
    }'
8185
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8186
# Check for a 64-bit object if we didn't find anything.
8187
if test -z "$aix_libpath"; then
8188
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8189
fi
8190 101 jeremybenn
else
8191
  $as_echo "$as_me: failed program was:" >&5
8192
sed 's/^/| /' conftest.$ac_ext >&5
8193
 
8194
 
8195 19 jeremybenn
fi
8196 101 jeremybenn
 
8197
rm -rf conftest.dSYM
8198
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8199
      conftest$ac_exeext conftest.$ac_ext
8200 19 jeremybenn
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8201
 
8202 82 jeremybenn
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8203
        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"
8204
      else
8205 19 jeremybenn
        if test "$host_cpu" = ia64; then
8206
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8207
          allow_undefined_flag="-z nodefs"
8208
          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"
8209
        else
8210 82 jeremybenn
         # Determine the default libpath from the value encoded in an
8211
         # empty executable.
8212 101 jeremybenn
         cat >conftest.$ac_ext <<_ACEOF
8213
/* confdefs.h.  */
8214
_ACEOF
8215
cat confdefs.h >>conftest.$ac_ext
8216
cat >>conftest.$ac_ext <<_ACEOF
8217 19 jeremybenn
/* end confdefs.h.  */
8218
 
8219
int
8220
main ()
8221
{
8222
 
8223
  ;
8224
  return 0;
8225
}
8226
_ACEOF
8227 101 jeremybenn
rm -f conftest.$ac_objext conftest$ac_exeext
8228
if { (ac_try="$ac_link"
8229
case "(($ac_try" in
8230
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8231
  *) ac_try_echo=$ac_try;;
8232
esac
8233
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8234
$as_echo "$ac_try_echo") >&5
8235
  (eval "$ac_link") 2>conftest.er1
8236
  ac_status=$?
8237
  grep -v '^ *+' conftest.er1 >conftest.err
8238
  rm -f conftest.er1
8239
  cat conftest.err >&5
8240
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8241
  (exit $ac_status); } && {
8242
         test -z "$ac_c_werror_flag" ||
8243
         test ! -s conftest.err
8244
       } && test -s conftest$ac_exeext && {
8245
         test "$cross_compiling" = yes ||
8246
         $as_test_x conftest$ac_exeext
8247
       }; then
8248 19 jeremybenn
 
8249
lt_aix_libpath_sed='
8250
    /Import File Strings/,/^$/ {
8251
        /^0/ {
8252
            s/^0  *\(.*\)$/\1/
8253
            p
8254
        }
8255
    }'
8256
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8257
# Check for a 64-bit object if we didn't find anything.
8258
if test -z "$aix_libpath"; then
8259
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8260
fi
8261 101 jeremybenn
else
8262
  $as_echo "$as_me: failed program was:" >&5
8263
sed 's/^/| /' conftest.$ac_ext >&5
8264
 
8265
 
8266 19 jeremybenn
fi
8267 101 jeremybenn
 
8268
rm -rf conftest.dSYM
8269
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8270
      conftest$ac_exeext conftest.$ac_ext
8271 19 jeremybenn
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8272
 
8273
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8274
          # Warning - without using the other run time loading flags,
8275
          # -berok will link without error, but may produce a broken library.
8276
          no_undefined_flag=' ${wl}-bernotok'
8277
          allow_undefined_flag=' ${wl}-berok'
8278
          # Exported symbols can be pulled into shared objects from archives
8279
          whole_archive_flag_spec='$convenience'
8280
          archive_cmds_need_lc=yes
8281
          # This is similar to how AIX traditionally builds its shared libraries.
8282
          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'
8283
        fi
8284
      fi
8285
      ;;
8286
 
8287
    amigaos*)
8288 82 jeremybenn
      case $host_cpu in
8289
      powerpc)
8290
            # see comment about AmigaOS4 .so support
8291
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8292
            archive_expsym_cmds=''
8293
        ;;
8294
      m68k)
8295
            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)'
8296
            hardcode_libdir_flag_spec='-L$libdir'
8297
            hardcode_minus_L=yes
8298
        ;;
8299
      esac
8300 19 jeremybenn
      ;;
8301
 
8302
    bsdi[45]*)
8303
      export_dynamic_flag_spec=-rdynamic
8304
      ;;
8305
 
8306 82 jeremybenn
    cygwin* | mingw* | pw32* | cegcc*)
8307 19 jeremybenn
      # When not using gcc, we currently assume that we are using
8308
      # Microsoft Visual C++.
8309
      # hardcode_libdir_flag_spec is actually meaningless, as there is
8310
      # no search path for DLLs.
8311
      hardcode_libdir_flag_spec=' '
8312
      allow_undefined_flag=unsupported
8313
      # Tell ltmain to make .lib files, not .a files.
8314
      libext=lib
8315
      # Tell ltmain to make .dll files, not .so files.
8316
      shrext_cmds=".dll"
8317
      # FIXME: Setting linknames here is a bad hack.
8318 82 jeremybenn
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8319 19 jeremybenn
      # The linker will automatically build a .lib file if we build a DLL.
8320 82 jeremybenn
      old_archive_from_new_cmds='true'
8321 19 jeremybenn
      # FIXME: Should let the user specify the lib program.
8322
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8323
      fix_srcfile_path='`cygpath -w "$srcfile"`'
8324
      enable_shared_with_static_runtimes=yes
8325
      ;;
8326
 
8327
    darwin* | rhapsody*)
8328 82 jeremybenn
 
8329
 
8330
  archive_cmds_need_lc=no
8331
  hardcode_direct=no
8332
  hardcode_automatic=yes
8333
  hardcode_shlibpath_var=unsupported
8334
  whole_archive_flag_spec=''
8335
  link_all_deplibs=yes
8336
  allow_undefined_flag="$_lt_dar_allow_undefined"
8337
  case $cc_basename in
8338
     ifort*) _lt_dar_can_shared=yes ;;
8339
     *) _lt_dar_can_shared=$GCC ;;
8340
  esac
8341
  if test "$_lt_dar_can_shared" = "yes"; then
8342
    output_verbose_link_cmd=echo
8343
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8344
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8345
    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}"
8346
    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}"
8347
 
8348
  else
8349
  ld_shlibs=no
8350
  fi
8351
 
8352 19 jeremybenn
      ;;
8353
 
8354
    dgux*)
8355
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8356
      hardcode_libdir_flag_spec='-L$libdir'
8357
      hardcode_shlibpath_var=no
8358
      ;;
8359
 
8360
    freebsd1*)
8361
      ld_shlibs=no
8362
      ;;
8363
 
8364
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8365
    # support.  Future versions do this automatically, but an explicit c++rt0.o
8366
    # does not break anything, and helps significantly (at the cost of a little
8367
    # extra space).
8368
    freebsd2.2*)
8369
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8370
      hardcode_libdir_flag_spec='-R$libdir'
8371
      hardcode_direct=yes
8372
      hardcode_shlibpath_var=no
8373
      ;;
8374
 
8375
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8376
    freebsd2*)
8377
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8378
      hardcode_direct=yes
8379
      hardcode_minus_L=yes
8380
      hardcode_shlibpath_var=no
8381
      ;;
8382
 
8383
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8384
    freebsd* | dragonfly*)
8385
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8386
      hardcode_libdir_flag_spec='-R$libdir'
8387
      hardcode_direct=yes
8388
      hardcode_shlibpath_var=no
8389
      ;;
8390
 
8391
    hpux9*)
8392
      if test "$GCC" = yes; then
8393 82 jeremybenn
        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'
8394 19 jeremybenn
      else
8395 82 jeremybenn
        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'
8396 19 jeremybenn
      fi
8397
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8398
      hardcode_libdir_separator=:
8399
      hardcode_direct=yes
8400
 
8401
      # hardcode_minus_L: Not really in the search PATH,
8402
      # but as the default location of the library.
8403
      hardcode_minus_L=yes
8404
      export_dynamic_flag_spec='${wl}-E'
8405
      ;;
8406
 
8407
    hpux10*)
8408
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8409
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8410
      else
8411
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8412
      fi
8413
      if test "$with_gnu_ld" = no; then
8414
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8415 82 jeremybenn
        hardcode_libdir_flag_spec_ld='+b $libdir'
8416 19 jeremybenn
        hardcode_libdir_separator=:
8417
        hardcode_direct=yes
8418 82 jeremybenn
        hardcode_direct_absolute=yes
8419 19 jeremybenn
        export_dynamic_flag_spec='${wl}-E'
8420
        # hardcode_minus_L: Not really in the search PATH,
8421
        # but as the default location of the library.
8422
        hardcode_minus_L=yes
8423
      fi
8424
      ;;
8425
 
8426
    hpux11*)
8427
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8428
        case $host_cpu in
8429
        hppa*64*)
8430
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8431
          ;;
8432
        ia64*)
8433 82 jeremybenn
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8434 19 jeremybenn
          ;;
8435
        *)
8436
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8437
          ;;
8438
        esac
8439
      else
8440
        case $host_cpu in
8441
        hppa*64*)
8442
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8443
          ;;
8444
        ia64*)
8445
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8446
          ;;
8447
        *)
8448
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8449
          ;;
8450
        esac
8451
      fi
8452
      if test "$with_gnu_ld" = no; then
8453
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8454
        hardcode_libdir_separator=:
8455
 
8456
        case $host_cpu in
8457
        hppa*64*|ia64*)
8458
          hardcode_direct=no
8459
          hardcode_shlibpath_var=no
8460
          ;;
8461
        *)
8462
          hardcode_direct=yes
8463 82 jeremybenn
          hardcode_direct_absolute=yes
8464 19 jeremybenn
          export_dynamic_flag_spec='${wl}-E'
8465
 
8466
          # hardcode_minus_L: Not really in the search PATH,
8467
          # but as the default location of the library.
8468
          hardcode_minus_L=yes
8469
          ;;
8470
        esac
8471
      fi
8472
      ;;
8473
 
8474
    irix5* | irix6* | nonstopux*)
8475
      if test "$GCC" = yes; then
8476 82 jeremybenn
        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'
8477
        # Try to use the -exported_symbol ld option, if it does not
8478
        # work, assume that -exports_file does not work either and
8479
        # implicitly export all symbols.
8480
        save_LDFLAGS="$LDFLAGS"
8481
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8482 101 jeremybenn
        cat >conftest.$ac_ext <<_ACEOF
8483 82 jeremybenn
int foo(void) {}
8484
_ACEOF
8485 101 jeremybenn
rm -f conftest.$ac_objext conftest$ac_exeext
8486
if { (ac_try="$ac_link"
8487
case "(($ac_try" in
8488
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8489
  *) ac_try_echo=$ac_try;;
8490
esac
8491
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8492
$as_echo "$ac_try_echo") >&5
8493
  (eval "$ac_link") 2>conftest.er1
8494
  ac_status=$?
8495
  grep -v '^ *+' conftest.er1 >conftest.err
8496
  rm -f conftest.er1
8497
  cat conftest.err >&5
8498
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499
  (exit $ac_status); } && {
8500
         test -z "$ac_c_werror_flag" ||
8501
         test ! -s conftest.err
8502
       } && test -s conftest$ac_exeext && {
8503
         test "$cross_compiling" = yes ||
8504
         $as_test_x conftest$ac_exeext
8505
       }; then
8506 82 jeremybenn
  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'
8507
 
8508 101 jeremybenn
else
8509
  $as_echo "$as_me: failed program was:" >&5
8510
sed 's/^/| /' conftest.$ac_ext >&5
8511
 
8512
 
8513 82 jeremybenn
fi
8514 101 jeremybenn
 
8515
rm -rf conftest.dSYM
8516
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8517
      conftest$ac_exeext conftest.$ac_ext
8518 82 jeremybenn
        LDFLAGS="$save_LDFLAGS"
8519 19 jeremybenn
      else
8520 82 jeremybenn
        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'
8521
        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'
8522 19 jeremybenn
      fi
8523 82 jeremybenn
      archive_cmds_need_lc='no'
8524 19 jeremybenn
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8525
      hardcode_libdir_separator=:
8526 82 jeremybenn
      inherit_rpath=yes
8527 19 jeremybenn
      link_all_deplibs=yes
8528
      ;;
8529
 
8530 93 jeremybenn
    netbsd* | netbsdelf*-gnu)
8531 82 jeremybenn
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8532 19 jeremybenn
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8533
      else
8534
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8535
      fi
8536
      hardcode_libdir_flag_spec='-R$libdir'
8537
      hardcode_direct=yes
8538
      hardcode_shlibpath_var=no
8539
      ;;
8540
 
8541
    newsos6)
8542
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8543
      hardcode_direct=yes
8544
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8545
      hardcode_libdir_separator=:
8546
      hardcode_shlibpath_var=no
8547
      ;;
8548
 
8549 82 jeremybenn
    *nto* | *qnx*)
8550
      ;;
8551
 
8552 19 jeremybenn
    openbsd*)
8553
      if test -f /usr/libexec/ld.so; then
8554
        hardcode_direct=yes
8555
        hardcode_shlibpath_var=no
8556 82 jeremybenn
        hardcode_direct_absolute=yes
8557
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8558 19 jeremybenn
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8559
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8560
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8561
          export_dynamic_flag_spec='${wl}-E'
8562
        else
8563
          case $host_os in
8564
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8565
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8566
             hardcode_libdir_flag_spec='-R$libdir'
8567
             ;;
8568
           *)
8569
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8570
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8571
             ;;
8572
          esac
8573 82 jeremybenn
        fi
8574 19 jeremybenn
      else
8575
        ld_shlibs=no
8576
      fi
8577
      ;;
8578
 
8579
    os2*)
8580
      hardcode_libdir_flag_spec='-L$libdir'
8581
      hardcode_minus_L=yes
8582
      allow_undefined_flag=unsupported
8583 82 jeremybenn
      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'
8584
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8585 19 jeremybenn
      ;;
8586
 
8587
    osf3*)
8588
      if test "$GCC" = yes; then
8589
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8590 82 jeremybenn
        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'
8591 19 jeremybenn
      else
8592
        allow_undefined_flag=' -expect_unresolved \*'
8593 82 jeremybenn
        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'
8594 19 jeremybenn
      fi
8595 82 jeremybenn
      archive_cmds_need_lc='no'
8596 19 jeremybenn
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8597
      hardcode_libdir_separator=:
8598
      ;;
8599
 
8600
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
8601
      if test "$GCC" = yes; then
8602
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8603 82 jeremybenn
        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'
8604 19 jeremybenn
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8605
      else
8606
        allow_undefined_flag=' -expect_unresolved \*'
8607 82 jeremybenn
        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'
8608
        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~
8609
        $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'
8610 19 jeremybenn
 
8611
        # Both c and cxx compiler support -rpath directly
8612
        hardcode_libdir_flag_spec='-rpath $libdir'
8613
      fi
8614 82 jeremybenn
      archive_cmds_need_lc='no'
8615 19 jeremybenn
      hardcode_libdir_separator=:
8616
      ;;
8617
 
8618
    solaris*)
8619 82 jeremybenn
      no_undefined_flag=' -z defs'
8620 19 jeremybenn
      if test "$GCC" = yes; then
8621
        wlarc='${wl}'
8622 82 jeremybenn
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8623
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8624
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8625 19 jeremybenn
      else
8626 82 jeremybenn
        case `$CC -V 2>&1` in
8627
        *"Compilers 5.0"*)
8628
          wlarc=''
8629
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8630
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8631
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8632
          ;;
8633
        *)
8634
          wlarc='${wl}'
8635
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8636
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8637
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8638
          ;;
8639
        esac
8640 19 jeremybenn
      fi
8641
      hardcode_libdir_flag_spec='-R$libdir'
8642
      hardcode_shlibpath_var=no
8643
      case $host_os in
8644
      solaris2.[0-5] | solaris2.[0-5].*) ;;
8645
      *)
8646
        # The compiler driver will combine and reorder linker options,
8647
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
8648
        # but is careful enough not to reorder.
8649 82 jeremybenn
        # Supported since Solaris 2.6 (maybe 2.5.1?)
8650 19 jeremybenn
        if test "$GCC" = yes; then
8651
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8652
        else
8653
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8654
        fi
8655
        ;;
8656
      esac
8657
      link_all_deplibs=yes
8658
      ;;
8659
 
8660
    sunos4*)
8661
      if test "x$host_vendor" = xsequent; then
8662
        # Use $CC to link under sequent, because it throws in some extra .o
8663
        # files that make .init and .fini sections work.
8664
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8665
      else
8666
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8667
      fi
8668
      hardcode_libdir_flag_spec='-L$libdir'
8669
      hardcode_direct=yes
8670
      hardcode_minus_L=yes
8671
      hardcode_shlibpath_var=no
8672
      ;;
8673
 
8674
    sysv4)
8675
      case $host_vendor in
8676
        sni)
8677
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8678
          hardcode_direct=yes # is this really true???
8679
        ;;
8680
        siemens)
8681
          ## LD is ld it makes a PLAMLIB
8682
          ## CC just makes a GrossModule.
8683
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8684
          reload_cmds='$CC -r -o $output$reload_objs'
8685
          hardcode_direct=no
8686
        ;;
8687
        motorola)
8688
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8689
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8690
        ;;
8691
      esac
8692
      runpath_var='LD_RUN_PATH'
8693
      hardcode_shlibpath_var=no
8694
      ;;
8695
 
8696
    sysv4.3*)
8697
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8698
      hardcode_shlibpath_var=no
8699
      export_dynamic_flag_spec='-Bexport'
8700
      ;;
8701
 
8702
    sysv4*MP*)
8703
      if test -d /usr/nec; then
8704
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8705
        hardcode_shlibpath_var=no
8706
        runpath_var=LD_RUN_PATH
8707
        hardcode_runpath_var=yes
8708
        ld_shlibs=yes
8709
      fi
8710
      ;;
8711
 
8712
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8713
      no_undefined_flag='${wl}-z,text'
8714
      archive_cmds_need_lc=no
8715
      hardcode_shlibpath_var=no
8716
      runpath_var='LD_RUN_PATH'
8717
 
8718
      if test "$GCC" = yes; then
8719
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8720
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8721
      else
8722
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8723
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8724
      fi
8725
      ;;
8726
 
8727
    sysv5* | sco3.2v5* | sco5v6*)
8728
      # Note: We can NOT use -z defs as we might desire, because we do not
8729
      # link with -lc, and that would cause any symbols used from libc to
8730
      # always be unresolved, which means just about no library would
8731
      # ever link correctly.  If we're not using GNU ld we use -z text
8732
      # though, which does catch some bad symbols but isn't as heavy-handed
8733
      # as -z defs.
8734
      no_undefined_flag='${wl}-z,text'
8735
      allow_undefined_flag='${wl}-z,nodefs'
8736
      archive_cmds_need_lc=no
8737
      hardcode_shlibpath_var=no
8738 82 jeremybenn
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
8739 19 jeremybenn
      hardcode_libdir_separator=':'
8740
      link_all_deplibs=yes
8741
      export_dynamic_flag_spec='${wl}-Bexport'
8742
      runpath_var='LD_RUN_PATH'
8743
 
8744
      if test "$GCC" = yes; then
8745 82 jeremybenn
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8746
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8747 19 jeremybenn
      else
8748 82 jeremybenn
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8749
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8750 19 jeremybenn
      fi
8751
      ;;
8752
 
8753
    uts4*)
8754
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8755
      hardcode_libdir_flag_spec='-L$libdir'
8756
      hardcode_shlibpath_var=no
8757
      ;;
8758
 
8759
    *)
8760
      ld_shlibs=no
8761
      ;;
8762
    esac
8763 82 jeremybenn
 
8764
    if test x$host_vendor = xsni; then
8765
      case $host in
8766
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8767
        export_dynamic_flag_spec='${wl}-Blargedynsym'
8768
        ;;
8769
      esac
8770
    fi
8771 19 jeremybenn
  fi
8772
 
8773 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8774 82 jeremybenn
$as_echo "$ld_shlibs" >&6; }
8775 19 jeremybenn
test "$ld_shlibs" = no && can_build_shared=no
8776
 
8777 82 jeremybenn
with_gnu_ld=$with_gnu_ld
8778
 
8779
 
8780
 
8781
 
8782
 
8783
 
8784
 
8785
 
8786
 
8787
 
8788
 
8789
 
8790
 
8791
 
8792
 
8793 19 jeremybenn
#
8794
# Do we need to explicitly link libc?
8795
#
8796
case "x$archive_cmds_need_lc" in
8797
x|xyes)
8798
  # Assume -lc should be added
8799
  archive_cmds_need_lc=yes
8800
 
8801
  if test "$enable_shared" = yes && test "$GCC" = yes; then
8802
    case $archive_cmds in
8803
    *'~'*)
8804
      # FIXME: we may have to deal with multi-command sequences.
8805
      ;;
8806
    '$CC '*)
8807
      # Test whether the compiler implicitly links with -lc since on some
8808
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8809
      # to ld, don't add -lc before -lgcc.
8810 101 jeremybenn
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8811 82 jeremybenn
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8812
      $RM conftest*
8813 19 jeremybenn
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8814
 
8815 101 jeremybenn
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8816 19 jeremybenn
  (eval $ac_compile) 2>&5
8817
  ac_status=$?
8818 101 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819
  (exit $ac_status); } 2>conftest.err; then
8820 19 jeremybenn
        soname=conftest
8821
        lib=conftest
8822
        libobjs=conftest.$ac_objext
8823
        deplibs=
8824
        wl=$lt_prog_compiler_wl
8825
        pic_flag=$lt_prog_compiler_pic
8826
        compiler_flags=-v
8827
        linker_flags=-v
8828
        verstring=
8829
        output_objdir=.
8830
        libname=conftest
8831
        lt_save_allow_undefined_flag=$allow_undefined_flag
8832
        allow_undefined_flag=
8833 101 jeremybenn
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8834 82 jeremybenn
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8835 19 jeremybenn
  ac_status=$?
8836 101 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837
  (exit $ac_status); }
8838 19 jeremybenn
        then
8839
          archive_cmds_need_lc=no
8840
        else
8841
          archive_cmds_need_lc=yes
8842
        fi
8843
        allow_undefined_flag=$lt_save_allow_undefined_flag
8844
      else
8845
        cat conftest.err 1>&5
8846
      fi
8847 82 jeremybenn
      $RM conftest*
8848 101 jeremybenn
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8849 82 jeremybenn
$as_echo "$archive_cmds_need_lc" >&6; }
8850 19 jeremybenn
      ;;
8851
    esac
8852
  fi
8853
  ;;
8854
esac
8855
 
8856
 
8857 82 jeremybenn
 
8858
 
8859
 
8860
 
8861
 
8862
 
8863
 
8864
 
8865
 
8866
 
8867
 
8868
 
8869
 
8870
 
8871
 
8872
 
8873
 
8874
 
8875
 
8876
 
8877
 
8878
 
8879
 
8880
 
8881
 
8882
 
8883
 
8884
 
8885
 
8886
 
8887
 
8888
 
8889
 
8890
 
8891
 
8892
 
8893
 
8894
 
8895
 
8896
 
8897
 
8898
 
8899
 
8900
 
8901
 
8902
 
8903
 
8904
 
8905
 
8906
 
8907
 
8908
 
8909
 
8910
 
8911
 
8912
 
8913
 
8914
 
8915
 
8916
 
8917
 
8918
 
8919
 
8920
 
8921
 
8922
 
8923
 
8924
 
8925
 
8926
 
8927
 
8928
 
8929
 
8930
 
8931
 
8932
 
8933
 
8934
 
8935
 
8936
 
8937
 
8938
 
8939
 
8940
 
8941
 
8942
 
8943
 
8944
 
8945
 
8946
 
8947
 
8948
 
8949
 
8950
 
8951
 
8952
 
8953
 
8954
 
8955
 
8956
 
8957
 
8958
 
8959
 
8960
 
8961
 
8962
 
8963
 
8964
 
8965
 
8966
 
8967
 
8968
 
8969
 
8970
 
8971
 
8972
 
8973
 
8974
 
8975
 
8976
 
8977
 
8978
 
8979
 
8980
 
8981
 
8982
 
8983
 
8984
 
8985
 
8986
 
8987
 
8988
 
8989
 
8990
 
8991
 
8992
 
8993
 
8994
 
8995
 
8996
 
8997
 
8998
 
8999
 
9000
 
9001
 
9002
 
9003
 
9004
 
9005
 
9006
 
9007
 
9008
 
9009
 
9010
 
9011
 
9012 101 jeremybenn
  { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9013 82 jeremybenn
$as_echo_n "checking dynamic linker characteristics... " >&6; }
9014
 
9015 19 jeremybenn
if test "$GCC" = yes; then
9016
  case $host_os in
9017
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9018
    *) lt_awk_arg="/^libraries:/" ;;
9019
  esac
9020
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9021 82 jeremybenn
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9022 19 jeremybenn
    # if the path contains ";" then we assume it to be the separator
9023
    # otherwise default to the standard path separator (i.e. ":") - it is
9024
    # assumed that no part of a normal pathname contains ";" but that should
9025
    # okay in the real world where ";" in dirpaths is itself problematic.
9026 82 jeremybenn
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9027 19 jeremybenn
  else
9028 82 jeremybenn
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9029 19 jeremybenn
  fi
9030
  # Ok, now we have the path, separated by spaces, we can step through it
9031
  # and add multilib dir if necessary.
9032
  lt_tmp_lt_search_path_spec=
9033
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9034
  for lt_sys_path in $lt_search_path_spec; do
9035
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9036
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9037
    else
9038
      test -d "$lt_sys_path" && \
9039
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9040
    fi
9041
  done
9042 82 jeremybenn
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9043 19 jeremybenn
BEGIN {RS=" "; FS="/|\n";} {
9044
  lt_foo="";
9045
  lt_count=0;
9046
  for (lt_i = NF; lt_i > 0; lt_i--) {
9047
    if ($lt_i != "" && $lt_i != ".") {
9048
      if ($lt_i == "..") {
9049
        lt_count++;
9050
      } else {
9051
        if (lt_count == 0) {
9052
          lt_foo="/" $lt_i lt_foo;
9053
        } else {
9054
          lt_count--;
9055
        }
9056
      }
9057
    }
9058
  }
9059
  if (lt_foo != "") { lt_freq[lt_foo]++; }
9060
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9061
}'`
9062 82 jeremybenn
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9063 19 jeremybenn
else
9064
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9065
fi
9066 82 jeremybenn
library_names_spec=
9067
libname_spec='lib$name'
9068
soname_spec=
9069
shrext_cmds=".so"
9070
postinstall_cmds=
9071
postuninstall_cmds=
9072
finish_cmds=
9073
finish_eval=
9074
shlibpath_var=
9075
shlibpath_overrides_runpath=unknown
9076
version_type=none
9077
dynamic_linker="$host_os ld.so"
9078
sys_lib_dlsearch_path_spec="/lib /usr/lib"
9079 19 jeremybenn
need_lib_prefix=unknown
9080
hardcode_into_libs=no
9081
 
9082
# when you set need_version to no, make sure it does not cause -set_version
9083
# flags to be left without arguments
9084
need_version=unknown
9085
 
9086
case $host_os in
9087
aix3*)
9088
  version_type=linux
9089
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9090
  shlibpath_var=LIBPATH
9091
 
9092
  # AIX 3 has no versioning support, so we append a major version to the name.
9093
  soname_spec='${libname}${release}${shared_ext}$major'
9094
  ;;
9095
 
9096 82 jeremybenn
aix[4-9]*)
9097 19 jeremybenn
  version_type=linux
9098
  need_lib_prefix=no
9099
  need_version=no
9100
  hardcode_into_libs=yes
9101
  if test "$host_cpu" = ia64; then
9102
    # AIX 5 supports IA64
9103
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9104
    shlibpath_var=LD_LIBRARY_PATH
9105
  else
9106
    # With GCC up to 2.95.x, collect2 would create an import file
9107
    # for dependence libraries.  The import file would start with
9108
    # the line `#! .'.  This would cause the generated library to
9109
    # depend on `.', always an invalid library.  This was fixed in
9110
    # development snapshots of GCC prior to 3.0.
9111
    case $host_os in
9112
      aix4 | aix4.[01] | aix4.[01].*)
9113
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9114
           echo ' yes '
9115 82 jeremybenn
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9116 19 jeremybenn
        :
9117
      else
9118
        can_build_shared=no
9119
      fi
9120
      ;;
9121
    esac
9122
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9123
    # soname into executable. Probably we can add versioning support to
9124
    # collect2, so additional links can be useful in future.
9125
    if test "$aix_use_runtimelinking" = yes; then
9126
      # If using run time linking (on AIX 4.2 or later) use lib.so
9127
      # instead of lib.a to let people know that these are not
9128
      # typical AIX shared libraries.
9129
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9130
    else
9131
      # We preserve .a as extension for shared libraries through AIX4.2
9132
      # and later when we are not doing run time linking.
9133
      library_names_spec='${libname}${release}.a $libname.a'
9134
      soname_spec='${libname}${release}${shared_ext}$major'
9135
    fi
9136
    shlibpath_var=LIBPATH
9137
  fi
9138
  ;;
9139
 
9140
amigaos*)
9141 82 jeremybenn
  case $host_cpu in
9142
  powerpc)
9143
    # Since July 2007 AmigaOS4 officially supports .so libraries.
9144
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9145
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9146
    ;;
9147
  m68k)
9148
    library_names_spec='$libname.ixlibrary $libname.a'
9149
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9150
    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'
9151
    ;;
9152
  esac
9153 19 jeremybenn
  ;;
9154
 
9155
beos*)
9156
  library_names_spec='${libname}${shared_ext}'
9157
  dynamic_linker="$host_os ld.so"
9158
  shlibpath_var=LIBRARY_PATH
9159
  ;;
9160
 
9161
bsdi[45]*)
9162
  version_type=linux
9163
  need_version=no
9164
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9165
  soname_spec='${libname}${release}${shared_ext}$major'
9166
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9167
  shlibpath_var=LD_LIBRARY_PATH
9168
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9169
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9170
  # the default ld.so.conf also contains /usr/contrib/lib and
9171
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9172
  # libtool to hard-code these into programs
9173
  ;;
9174
 
9175 82 jeremybenn
cygwin* | mingw* | pw32* | cegcc*)
9176 19 jeremybenn
  version_type=windows
9177
  shrext_cmds=".dll"
9178
  need_version=no
9179
  need_lib_prefix=no
9180
 
9181
  case $GCC,$host_os in
9182 82 jeremybenn
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9183 19 jeremybenn
    library_names_spec='$libname.dll.a'
9184
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9185
    postinstall_cmds='base_file=`basename \${file}`~
9186 82 jeremybenn
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9187 19 jeremybenn
      dldir=$destdir/`dirname \$dlpath`~
9188
      test -d \$dldir || mkdir -p \$dldir~
9189
      $install_prog $dir/$dlname \$dldir/$dlname~
9190 82 jeremybenn
      chmod a+x \$dldir/$dlname~
9191
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9192
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9193
      fi'
9194 19 jeremybenn
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9195
      dlpath=$dir/\$dldll~
9196 82 jeremybenn
       $RM \$dlpath'
9197 19 jeremybenn
    shlibpath_overrides_runpath=yes
9198
 
9199
    case $host_os in
9200
    cygwin*)
9201
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9202
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9203
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9204
      ;;
9205 82 jeremybenn
    mingw* | cegcc*)
9206 19 jeremybenn
      # MinGW DLLs use traditional 'lib' prefix
9207
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9208 82 jeremybenn
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9209
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9210 19 jeremybenn
        # It is most probably a Windows format PATH printed by
9211
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9212
        # path with ; separators, and with drive letters. We can handle the
9213
        # drive letters (cygwin fileutils understands them), so leave them,
9214
        # especially as we might pass files found there to a mingw objdump,
9215
        # which wouldn't understand a cygwinified path. Ahh.
9216 82 jeremybenn
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9217 19 jeremybenn
      else
9218 82 jeremybenn
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9219 19 jeremybenn
      fi
9220
      ;;
9221
    pw32*)
9222
      # pw32 DLLs use 'pw' prefix rather than 'lib'
9223
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9224
      ;;
9225
    esac
9226
    ;;
9227
 
9228
  *)
9229
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9230
    ;;
9231
  esac
9232
  dynamic_linker='Win32 ld.exe'
9233
  # FIXME: first we should search . and the directory the executable is in
9234
  shlibpath_var=PATH
9235
  ;;
9236
 
9237
darwin* | rhapsody*)
9238
  dynamic_linker="$host_os dyld"
9239
  version_type=darwin
9240
  need_lib_prefix=no
9241
  need_version=no
9242 82 jeremybenn
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9243 19 jeremybenn
  soname_spec='${libname}${release}${major}$shared_ext'
9244
  shlibpath_overrides_runpath=yes
9245
  shlibpath_var=DYLD_LIBRARY_PATH
9246
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9247
 
9248
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9249
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9250
  ;;
9251
 
9252
dgux*)
9253
  version_type=linux
9254
  need_lib_prefix=no
9255
  need_version=no
9256
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9257
  soname_spec='${libname}${release}${shared_ext}$major'
9258
  shlibpath_var=LD_LIBRARY_PATH
9259
  ;;
9260
 
9261
freebsd1*)
9262
  dynamic_linker=no
9263
  ;;
9264
 
9265
freebsd* | dragonfly*)
9266
  # DragonFly does not have aout.  When/if they implement a new
9267
  # versioning mechanism, adjust this.
9268
  if test -x /usr/bin/objformat; then
9269
    objformat=`/usr/bin/objformat`
9270
  else
9271
    case $host_os in
9272
    freebsd[123]*) objformat=aout ;;
9273
    *) objformat=elf ;;
9274
    esac
9275
  fi
9276
  version_type=freebsd-$objformat
9277
  case $version_type in
9278
    freebsd-elf*)
9279
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9280
      need_version=no
9281
      need_lib_prefix=no
9282
      ;;
9283
    freebsd-*)
9284
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9285
      need_version=yes
9286
      ;;
9287
  esac
9288
  shlibpath_var=LD_LIBRARY_PATH
9289
  case $host_os in
9290
  freebsd2*)
9291
    shlibpath_overrides_runpath=yes
9292
    ;;
9293
  freebsd3.[01]* | freebsdelf3.[01]*)
9294
    shlibpath_overrides_runpath=yes
9295
    hardcode_into_libs=yes
9296
    ;;
9297
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9298
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9299
    shlibpath_overrides_runpath=no
9300
    hardcode_into_libs=yes
9301
    ;;
9302
  *) # from 4.6 on, and DragonFly
9303
    shlibpath_overrides_runpath=yes
9304
    hardcode_into_libs=yes
9305
    ;;
9306
  esac
9307
  ;;
9308
 
9309
gnu*)
9310
  version_type=linux
9311
  need_lib_prefix=no
9312
  need_version=no
9313
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9314
  soname_spec='${libname}${release}${shared_ext}$major'
9315
  shlibpath_var=LD_LIBRARY_PATH
9316
  hardcode_into_libs=yes
9317
  ;;
9318
 
9319
hpux9* | hpux10* | hpux11*)
9320
  # Give a soname corresponding to the major version so that dld.sl refuses to
9321
  # link against other versions.
9322
  version_type=sunos
9323
  need_lib_prefix=no
9324
  need_version=no
9325
  case $host_cpu in
9326
  ia64*)
9327
    shrext_cmds='.so'
9328
    hardcode_into_libs=yes
9329
    dynamic_linker="$host_os dld.so"
9330
    shlibpath_var=LD_LIBRARY_PATH
9331
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9332
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9333
    soname_spec='${libname}${release}${shared_ext}$major'
9334
    if test "X$HPUX_IA64_MODE" = X32; then
9335
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9336
    else
9337
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9338
    fi
9339
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9340
    ;;
9341 82 jeremybenn
  hppa*64*)
9342 19 jeremybenn
    shrext_cmds='.sl'
9343 82 jeremybenn
    hardcode_into_libs=yes
9344 19 jeremybenn
    dynamic_linker="$host_os dld.sl"
9345 82 jeremybenn
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9346
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9347
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9348
    soname_spec='${libname}${release}${shared_ext}$major'
9349
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9350
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9351
    ;;
9352
  *)
9353
    shrext_cmds='.sl'
9354
    dynamic_linker="$host_os dld.sl"
9355 19 jeremybenn
    shlibpath_var=SHLIB_PATH
9356
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9357
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9358
    soname_spec='${libname}${release}${shared_ext}$major'
9359
    ;;
9360
  esac
9361
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9362
  postinstall_cmds='chmod 555 $lib'
9363
  ;;
9364
 
9365
interix[3-9]*)
9366
  version_type=linux
9367
  need_lib_prefix=no
9368
  need_version=no
9369
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9370
  soname_spec='${libname}${release}${shared_ext}$major'
9371
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9372
  shlibpath_var=LD_LIBRARY_PATH
9373
  shlibpath_overrides_runpath=no
9374
  hardcode_into_libs=yes
9375
  ;;
9376
 
9377
irix5* | irix6* | nonstopux*)
9378
  case $host_os in
9379
    nonstopux*) version_type=nonstopux ;;
9380
    *)
9381
        if test "$lt_cv_prog_gnu_ld" = yes; then
9382
                version_type=linux
9383
        else
9384
                version_type=irix
9385
        fi ;;
9386
  esac
9387
  need_lib_prefix=no
9388
  need_version=no
9389
  soname_spec='${libname}${release}${shared_ext}$major'
9390
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9391
  case $host_os in
9392
  irix5* | nonstopux*)
9393
    libsuff= shlibsuff=
9394
    ;;
9395
  *)
9396
    case $LD in # libtool.m4 will add one of these switches to LD
9397
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9398
      libsuff= shlibsuff= libmagic=32-bit;;
9399
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9400
      libsuff=32 shlibsuff=N32 libmagic=N32;;
9401
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9402
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9403
    *) libsuff= shlibsuff= libmagic=never-match;;
9404
    esac
9405
    ;;
9406
  esac
9407
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9408
  shlibpath_overrides_runpath=no
9409
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9410
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9411
  hardcode_into_libs=yes
9412
  ;;
9413
 
9414
# No shared lib support for Linux oldld, aout, or coff.
9415
linux*oldld* | linux*aout* | linux*coff*)
9416
  dynamic_linker=no
9417
  ;;
9418
 
9419
# This must be Linux ELF.
9420
linux* | k*bsd*-gnu)
9421
  version_type=linux
9422
  need_lib_prefix=no
9423
  need_version=no
9424
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9425
  soname_spec='${libname}${release}${shared_ext}$major'
9426
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9427
  shlibpath_var=LD_LIBRARY_PATH
9428
  shlibpath_overrides_runpath=no
9429 82 jeremybenn
  # Some binutils ld are patched to set DT_RUNPATH
9430
  save_LDFLAGS=$LDFLAGS
9431
  save_libdir=$libdir
9432
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9433
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9434 101 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
9435
/* confdefs.h.  */
9436
_ACEOF
9437
cat confdefs.h >>conftest.$ac_ext
9438
cat >>conftest.$ac_ext <<_ACEOF
9439 82 jeremybenn
/* end confdefs.h.  */
9440
 
9441
int
9442
main ()
9443
{
9444
 
9445
  ;
9446
  return 0;
9447
}
9448
_ACEOF
9449 101 jeremybenn
rm -f conftest.$ac_objext conftest$ac_exeext
9450
if { (ac_try="$ac_link"
9451
case "(($ac_try" in
9452
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9453
  *) ac_try_echo=$ac_try;;
9454
esac
9455
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9456
$as_echo "$ac_try_echo") >&5
9457
  (eval "$ac_link") 2>conftest.er1
9458
  ac_status=$?
9459
  grep -v '^ *+' conftest.er1 >conftest.err
9460
  rm -f conftest.er1
9461
  cat conftest.err >&5
9462
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9463
  (exit $ac_status); } && {
9464
         test -z "$ac_c_werror_flag" ||
9465
         test ! -s conftest.err
9466
       } && test -s conftest$ac_exeext && {
9467
         test "$cross_compiling" = yes ||
9468
         $as_test_x conftest$ac_exeext
9469
       }; then
9470
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9471 82 jeremybenn
  shlibpath_overrides_runpath=yes
9472
fi
9473 101 jeremybenn
 
9474
else
9475
  $as_echo "$as_me: failed program was:" >&5
9476
sed 's/^/| /' conftest.$ac_ext >&5
9477
 
9478
 
9479 82 jeremybenn
fi
9480 101 jeremybenn
 
9481
rm -rf conftest.dSYM
9482
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9483
      conftest$ac_exeext conftest.$ac_ext
9484 82 jeremybenn
  LDFLAGS=$save_LDFLAGS
9485
  libdir=$save_libdir
9486
 
9487 19 jeremybenn
  # This implies no fast_install, which is unacceptable.
9488
  # Some rework will be needed to allow for fast_install
9489
  # before this can be enabled.
9490
  hardcode_into_libs=yes
9491
 
9492
  # Append ld.so.conf contents to the search path
9493
  if test -f /etc/ld.so.conf; then
9494 82 jeremybenn
    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' ' '`
9495 93 jeremybenn
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9496 19 jeremybenn
  fi
9497
 
9498
  # We used to test for /lib/ld.so.1 and disable shared libraries on
9499
  # powerpc, because MkLinux only supported shared libraries with the
9500
  # GNU dynamic linker.  Since this was broken with cross compilers,
9501
  # most powerpc-linux boxes support dynamic linking these days and
9502
  # people can always --disable-shared, the test was removed, and we
9503
  # assume the GNU/Linux dynamic linker is in use.
9504
  dynamic_linker='GNU/Linux ld.so'
9505
  ;;
9506
 
9507 93 jeremybenn
netbsdelf*-gnu)
9508
  version_type=linux
9509
  need_lib_prefix=no
9510
  need_version=no
9511
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9512
  soname_spec='${libname}${release}${shared_ext}$major'
9513
  shlibpath_var=LD_LIBRARY_PATH
9514
  shlibpath_overrides_runpath=no
9515
  hardcode_into_libs=yes
9516
  dynamic_linker='NetBSD ld.elf_so'
9517
  ;;
9518
 
9519 19 jeremybenn
netbsd*)
9520
  version_type=sunos
9521
  need_lib_prefix=no
9522
  need_version=no
9523 82 jeremybenn
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9524 19 jeremybenn
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9525
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9526
    dynamic_linker='NetBSD (a.out) ld.so'
9527
  else
9528
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9529
    soname_spec='${libname}${release}${shared_ext}$major'
9530
    dynamic_linker='NetBSD ld.elf_so'
9531
  fi
9532
  shlibpath_var=LD_LIBRARY_PATH
9533
  shlibpath_overrides_runpath=yes
9534
  hardcode_into_libs=yes
9535
  ;;
9536
 
9537
newsos6)
9538
  version_type=linux
9539
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9540
  shlibpath_var=LD_LIBRARY_PATH
9541
  shlibpath_overrides_runpath=yes
9542
  ;;
9543
 
9544 82 jeremybenn
*nto* | *qnx*)
9545
  version_type=qnx
9546 19 jeremybenn
  need_lib_prefix=no
9547
  need_version=no
9548
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9549
  soname_spec='${libname}${release}${shared_ext}$major'
9550
  shlibpath_var=LD_LIBRARY_PATH
9551 82 jeremybenn
  shlibpath_overrides_runpath=no
9552
  hardcode_into_libs=yes
9553
  dynamic_linker='ldqnx.so'
9554 19 jeremybenn
  ;;
9555
 
9556
openbsd*)
9557
  version_type=sunos
9558
  sys_lib_dlsearch_path_spec="/usr/lib"
9559
  need_lib_prefix=no
9560
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9561
  case $host_os in
9562 82 jeremybenn
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
9563
    *)                          need_version=no  ;;
9564 19 jeremybenn
  esac
9565
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9566
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9567
  shlibpath_var=LD_LIBRARY_PATH
9568 82 jeremybenn
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9569 19 jeremybenn
    case $host_os in
9570
      openbsd2.[89] | openbsd2.[89].*)
9571
        shlibpath_overrides_runpath=no
9572
        ;;
9573
      *)
9574
        shlibpath_overrides_runpath=yes
9575
        ;;
9576
      esac
9577
  else
9578
    shlibpath_overrides_runpath=yes
9579
  fi
9580
  ;;
9581
 
9582
os2*)
9583
  libname_spec='$name'
9584
  shrext_cmds=".dll"
9585
  need_lib_prefix=no
9586
  library_names_spec='$libname${shared_ext} $libname.a'
9587
  dynamic_linker='OS/2 ld.exe'
9588
  shlibpath_var=LIBPATH
9589
  ;;
9590
 
9591
osf3* | osf4* | osf5*)
9592
  version_type=osf
9593
  need_lib_prefix=no
9594
  need_version=no
9595
  soname_spec='${libname}${release}${shared_ext}$major'
9596
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9597
  shlibpath_var=LD_LIBRARY_PATH
9598
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9599
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9600
  ;;
9601
 
9602
rdos*)
9603
  dynamic_linker=no
9604
  ;;
9605
 
9606
solaris*)
9607
  version_type=linux
9608
  need_lib_prefix=no
9609
  need_version=no
9610
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9611
  soname_spec='${libname}${release}${shared_ext}$major'
9612
  shlibpath_var=LD_LIBRARY_PATH
9613
  shlibpath_overrides_runpath=yes
9614
  hardcode_into_libs=yes
9615
  # ldd complains unless libraries are executable
9616
  postinstall_cmds='chmod +x $lib'
9617
  ;;
9618
 
9619
sunos4*)
9620
  version_type=sunos
9621
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9622
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9623
  shlibpath_var=LD_LIBRARY_PATH
9624
  shlibpath_overrides_runpath=yes
9625
  if test "$with_gnu_ld" = yes; then
9626
    need_lib_prefix=no
9627
  fi
9628
  need_version=yes
9629
  ;;
9630
 
9631
sysv4 | sysv4.3*)
9632
  version_type=linux
9633
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9634
  soname_spec='${libname}${release}${shared_ext}$major'
9635
  shlibpath_var=LD_LIBRARY_PATH
9636
  case $host_vendor in
9637
    sni)
9638
      shlibpath_overrides_runpath=no
9639
      need_lib_prefix=no
9640
      runpath_var=LD_RUN_PATH
9641
      ;;
9642
    siemens)
9643
      need_lib_prefix=no
9644
      ;;
9645
    motorola)
9646
      need_lib_prefix=no
9647
      need_version=no
9648
      shlibpath_overrides_runpath=no
9649
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9650
      ;;
9651
  esac
9652
  ;;
9653
 
9654
sysv4*MP*)
9655
  if test -d /usr/nec ;then
9656
    version_type=linux
9657
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9658
    soname_spec='$libname${shared_ext}.$major'
9659
    shlibpath_var=LD_LIBRARY_PATH
9660
  fi
9661
  ;;
9662
 
9663
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9664
  version_type=freebsd-elf
9665
  need_lib_prefix=no
9666
  need_version=no
9667
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9668
  soname_spec='${libname}${release}${shared_ext}$major'
9669
  shlibpath_var=LD_LIBRARY_PATH
9670 82 jeremybenn
  shlibpath_overrides_runpath=yes
9671 19 jeremybenn
  hardcode_into_libs=yes
9672
  if test "$with_gnu_ld" = yes; then
9673
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9674
  else
9675
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9676
    case $host_os in
9677
      sco3.2v5*)
9678
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9679
        ;;
9680
    esac
9681
  fi
9682
  sys_lib_dlsearch_path_spec='/usr/lib'
9683
  ;;
9684
 
9685 82 jeremybenn
tpf*)
9686
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9687
  version_type=linux
9688
  need_lib_prefix=no
9689
  need_version=no
9690
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9691
  shlibpath_var=LD_LIBRARY_PATH
9692
  shlibpath_overrides_runpath=no
9693
  hardcode_into_libs=yes
9694
  ;;
9695
 
9696 19 jeremybenn
uts4*)
9697
  version_type=linux
9698
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9699
  soname_spec='${libname}${release}${shared_ext}$major'
9700
  shlibpath_var=LD_LIBRARY_PATH
9701
  ;;
9702
 
9703
*)
9704
  dynamic_linker=no
9705
  ;;
9706
esac
9707 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9708 82 jeremybenn
$as_echo "$dynamic_linker" >&6; }
9709 19 jeremybenn
test "$dynamic_linker" = no && can_build_shared=no
9710
 
9711
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9712
if test "$GCC" = yes; then
9713
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9714
fi
9715
 
9716 82 jeremybenn
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9717
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9718
fi
9719
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9720
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9721
fi
9722
 
9723
 
9724
 
9725
 
9726
 
9727
 
9728
 
9729
 
9730
 
9731
 
9732
 
9733
 
9734
 
9735
 
9736
 
9737
 
9738
 
9739
 
9740
 
9741
 
9742
 
9743
 
9744
 
9745
 
9746
 
9747
 
9748
 
9749
 
9750
 
9751
 
9752
 
9753
 
9754
 
9755
 
9756
 
9757
 
9758
 
9759
 
9760
 
9761
 
9762
 
9763
 
9764
 
9765
 
9766
 
9767
 
9768
 
9769
 
9770
 
9771
 
9772
 
9773
 
9774
 
9775
 
9776
 
9777
 
9778
 
9779
 
9780
 
9781
 
9782
 
9783
 
9784
 
9785
 
9786
 
9787
 
9788
 
9789
 
9790
 
9791
 
9792
 
9793
 
9794
 
9795
 
9796
 
9797
 
9798
 
9799
 
9800
 
9801
 
9802
 
9803
 
9804
 
9805
 
9806
 
9807
 
9808
 
9809 101 jeremybenn
  { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9810 82 jeremybenn
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9811 19 jeremybenn
hardcode_action=
9812 82 jeremybenn
if test -n "$hardcode_libdir_flag_spec" ||
9813
   test -n "$runpath_var" ||
9814 19 jeremybenn
   test "X$hardcode_automatic" = "Xyes" ; then
9815
 
9816 82 jeremybenn
  # We can hardcode non-existent directories.
9817 19 jeremybenn
  if test "$hardcode_direct" != no &&
9818
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9819
     # have to relink, otherwise we might link with an installed library
9820
     # when we should be linking with a yet-to-be-installed one
9821 82 jeremybenn
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9822 19 jeremybenn
     test "$hardcode_minus_L" != no; then
9823
    # Linking always hardcodes the temporary library directory.
9824
    hardcode_action=relink
9825
  else
9826
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9827
    hardcode_action=immediate
9828
  fi
9829
else
9830
  # We cannot hardcode anything, or else we can only hardcode existing
9831
  # directories.
9832
  hardcode_action=unsupported
9833
fi
9834 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9835 82 jeremybenn
$as_echo "$hardcode_action" >&6; }
9836 19 jeremybenn
 
9837 82 jeremybenn
if test "$hardcode_action" = relink ||
9838
   test "$inherit_rpath" = yes; then
9839 19 jeremybenn
  # Fast installation is not supported
9840
  enable_fast_install=no
9841
elif test "$shlibpath_overrides_runpath" = yes ||
9842
     test "$enable_shared" = no; then
9843
  # Fast installation is not necessary
9844
  enable_fast_install=needless
9845
fi
9846
 
9847
 
9848 82 jeremybenn
 
9849
 
9850
 
9851
 
9852
  if test "x$enable_dlopen" != xyes; then
9853 19 jeremybenn
  enable_dlopen=unknown
9854
  enable_dlopen_self=unknown
9855
  enable_dlopen_self_static=unknown
9856
else
9857
  lt_cv_dlopen=no
9858
  lt_cv_dlopen_libs=
9859
 
9860
  case $host_os in
9861
  beos*)
9862
    lt_cv_dlopen="load_add_on"
9863
    lt_cv_dlopen_libs=
9864
    lt_cv_dlopen_self=yes
9865
    ;;
9866
 
9867 82 jeremybenn
  mingw* | pw32* | cegcc*)
9868 19 jeremybenn
    lt_cv_dlopen="LoadLibrary"
9869
    lt_cv_dlopen_libs=
9870 82 jeremybenn
    ;;
9871 19 jeremybenn
 
9872
  cygwin*)
9873
    lt_cv_dlopen="dlopen"
9874
    lt_cv_dlopen_libs=
9875 82 jeremybenn
    ;;
9876 19 jeremybenn
 
9877
  darwin*)
9878
  # if libdl is installed we need to link against it
9879 101 jeremybenn
    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9880 82 jeremybenn
$as_echo_n "checking for dlopen in -ldl... " >&6; }
9881 101 jeremybenn
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9882 82 jeremybenn
  $as_echo_n "(cached) " >&6
9883 19 jeremybenn
else
9884
  ac_check_lib_save_LIBS=$LIBS
9885
LIBS="-ldl  $LIBS"
9886 101 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
9887
/* confdefs.h.  */
9888
_ACEOF
9889
cat confdefs.h >>conftest.$ac_ext
9890
cat >>conftest.$ac_ext <<_ACEOF
9891 19 jeremybenn
/* end confdefs.h.  */
9892
 
9893
/* Override any GCC internal prototype to avoid an error.
9894
   Use char because int might match the return type of a GCC
9895
   builtin and then its argument prototype would still apply.  */
9896
#ifdef __cplusplus
9897
extern "C"
9898
#endif
9899
char dlopen ();
9900
int
9901
main ()
9902
{
9903
return dlopen ();
9904
  ;
9905
  return 0;
9906
}
9907
_ACEOF
9908 101 jeremybenn
rm -f conftest.$ac_objext conftest$ac_exeext
9909
if { (ac_try="$ac_link"
9910
case "(($ac_try" in
9911
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9912
  *) ac_try_echo=$ac_try;;
9913
esac
9914
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9915
$as_echo "$ac_try_echo") >&5
9916
  (eval "$ac_link") 2>conftest.er1
9917
  ac_status=$?
9918
  grep -v '^ *+' conftest.er1 >conftest.err
9919
  rm -f conftest.er1
9920
  cat conftest.err >&5
9921
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922
  (exit $ac_status); } && {
9923
         test -z "$ac_c_werror_flag" ||
9924
         test ! -s conftest.err
9925
       } && test -s conftest$ac_exeext && {
9926
         test "$cross_compiling" = yes ||
9927
         $as_test_x conftest$ac_exeext
9928
       }; then
9929 19 jeremybenn
  ac_cv_lib_dl_dlopen=yes
9930
else
9931 101 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
9932
sed 's/^/| /' conftest.$ac_ext >&5
9933
 
9934
        ac_cv_lib_dl_dlopen=no
9935 19 jeremybenn
fi
9936 101 jeremybenn
 
9937
rm -rf conftest.dSYM
9938
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9939
      conftest$ac_exeext conftest.$ac_ext
9940 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
9941
fi
9942 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9943 82 jeremybenn
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9944 101 jeremybenn
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
9945 19 jeremybenn
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9946
else
9947
 
9948
    lt_cv_dlopen="dyld"
9949
    lt_cv_dlopen_libs=
9950
    lt_cv_dlopen_self=yes
9951
 
9952
fi
9953
 
9954 82 jeremybenn
    ;;
9955 19 jeremybenn
 
9956
  *)
9957 101 jeremybenn
    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
9958
$as_echo_n "checking for shl_load... " >&6; }
9959
if test "${ac_cv_func_shl_load+set}" = set; then
9960
  $as_echo_n "(cached) " >&6
9961
else
9962
  cat >conftest.$ac_ext <<_ACEOF
9963
/* confdefs.h.  */
9964
_ACEOF
9965
cat confdefs.h >>conftest.$ac_ext
9966
cat >>conftest.$ac_ext <<_ACEOF
9967
/* end confdefs.h.  */
9968
/* Define shl_load to an innocuous variant, in case  declares shl_load.
9969
   For example, HP-UX 11i  declares gettimeofday.  */
9970
#define shl_load innocuous_shl_load
9971
 
9972
/* System header to define __stub macros and hopefully few prototypes,
9973
    which can conflict with char shl_load (); below.
9974
    Prefer  to  if __STDC__ is defined, since
9975
     exists even on freestanding compilers.  */
9976
 
9977
#ifdef __STDC__
9978
# include 
9979
#else
9980
# include 
9981
#endif
9982
 
9983
#undef shl_load
9984
 
9985
/* Override any GCC internal prototype to avoid an error.
9986
   Use char because int might match the return type of a GCC
9987
   builtin and then its argument prototype would still apply.  */
9988
#ifdef __cplusplus
9989
extern "C"
9990
#endif
9991
char shl_load ();
9992
/* The GNU C library defines this for functions which it implements
9993
    to always fail with ENOSYS.  Some functions are actually named
9994
    something starting with __ and the normal name is an alias.  */
9995
#if defined __stub_shl_load || defined __stub___shl_load
9996
choke me
9997
#endif
9998
 
9999
int
10000
main ()
10001
{
10002
return shl_load ();
10003
  ;
10004
  return 0;
10005
}
10006
_ACEOF
10007
rm -f conftest.$ac_objext conftest$ac_exeext
10008
if { (ac_try="$ac_link"
10009
case "(($ac_try" in
10010
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10011
  *) ac_try_echo=$ac_try;;
10012
esac
10013
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10014
$as_echo "$ac_try_echo") >&5
10015
  (eval "$ac_link") 2>conftest.er1
10016
  ac_status=$?
10017
  grep -v '^ *+' conftest.er1 >conftest.err
10018
  rm -f conftest.er1
10019
  cat conftest.err >&5
10020
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021
  (exit $ac_status); } && {
10022
         test -z "$ac_c_werror_flag" ||
10023
         test ! -s conftest.err
10024
       } && test -s conftest$ac_exeext && {
10025
         test "$cross_compiling" = yes ||
10026
         $as_test_x conftest$ac_exeext
10027
       }; then
10028
  ac_cv_func_shl_load=yes
10029
else
10030
  $as_echo "$as_me: failed program was:" >&5
10031
sed 's/^/| /' conftest.$ac_ext >&5
10032
 
10033
        ac_cv_func_shl_load=no
10034
fi
10035
 
10036
rm -rf conftest.dSYM
10037
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10038
      conftest$ac_exeext conftest.$ac_ext
10039
fi
10040
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10041
$as_echo "$ac_cv_func_shl_load" >&6; }
10042
if test "x$ac_cv_func_shl_load" = x""yes; then
10043 19 jeremybenn
  lt_cv_dlopen="shl_load"
10044
else
10045 101 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10046 82 jeremybenn
$as_echo_n "checking for shl_load in -ldld... " >&6; }
10047 101 jeremybenn
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10048 82 jeremybenn
  $as_echo_n "(cached) " >&6
10049 19 jeremybenn
else
10050
  ac_check_lib_save_LIBS=$LIBS
10051
LIBS="-ldld  $LIBS"
10052 101 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
10053
/* confdefs.h.  */
10054
_ACEOF
10055
cat confdefs.h >>conftest.$ac_ext
10056
cat >>conftest.$ac_ext <<_ACEOF
10057 19 jeremybenn
/* end confdefs.h.  */
10058
 
10059
/* Override any GCC internal prototype to avoid an error.
10060
   Use char because int might match the return type of a GCC
10061
   builtin and then its argument prototype would still apply.  */
10062
#ifdef __cplusplus
10063
extern "C"
10064
#endif
10065
char shl_load ();
10066
int
10067
main ()
10068
{
10069
return shl_load ();
10070
  ;
10071
  return 0;
10072
}
10073
_ACEOF
10074 101 jeremybenn
rm -f conftest.$ac_objext conftest$ac_exeext
10075
if { (ac_try="$ac_link"
10076
case "(($ac_try" in
10077
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10078
  *) ac_try_echo=$ac_try;;
10079
esac
10080
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10081
$as_echo "$ac_try_echo") >&5
10082
  (eval "$ac_link") 2>conftest.er1
10083
  ac_status=$?
10084
  grep -v '^ *+' conftest.er1 >conftest.err
10085
  rm -f conftest.er1
10086
  cat conftest.err >&5
10087
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088
  (exit $ac_status); } && {
10089
         test -z "$ac_c_werror_flag" ||
10090
         test ! -s conftest.err
10091
       } && test -s conftest$ac_exeext && {
10092
         test "$cross_compiling" = yes ||
10093
         $as_test_x conftest$ac_exeext
10094
       }; then
10095 19 jeremybenn
  ac_cv_lib_dld_shl_load=yes
10096
else
10097 101 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
10098
sed 's/^/| /' conftest.$ac_ext >&5
10099
 
10100
        ac_cv_lib_dld_shl_load=no
10101 19 jeremybenn
fi
10102 101 jeremybenn
 
10103
rm -rf conftest.dSYM
10104
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10105
      conftest$ac_exeext conftest.$ac_ext
10106 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
10107
fi
10108 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10109 82 jeremybenn
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10110 101 jeremybenn
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10111 82 jeremybenn
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10112 19 jeremybenn
else
10113 101 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10114
$as_echo_n "checking for dlopen... " >&6; }
10115
if test "${ac_cv_func_dlopen+set}" = set; then
10116
  $as_echo_n "(cached) " >&6
10117
else
10118
  cat >conftest.$ac_ext <<_ACEOF
10119
/* confdefs.h.  */
10120
_ACEOF
10121
cat confdefs.h >>conftest.$ac_ext
10122
cat >>conftest.$ac_ext <<_ACEOF
10123
/* end confdefs.h.  */
10124
/* Define dlopen to an innocuous variant, in case  declares dlopen.
10125
   For example, HP-UX 11i  declares gettimeofday.  */
10126
#define dlopen innocuous_dlopen
10127
 
10128
/* System header to define __stub macros and hopefully few prototypes,
10129
    which can conflict with char dlopen (); below.
10130
    Prefer  to  if __STDC__ is defined, since
10131
     exists even on freestanding compilers.  */
10132
 
10133
#ifdef __STDC__
10134
# include 
10135
#else
10136
# include 
10137
#endif
10138
 
10139
#undef dlopen
10140
 
10141
/* Override any GCC internal prototype to avoid an error.
10142
   Use char because int might match the return type of a GCC
10143
   builtin and then its argument prototype would still apply.  */
10144
#ifdef __cplusplus
10145
extern "C"
10146
#endif
10147
char dlopen ();
10148
/* The GNU C library defines this for functions which it implements
10149
    to always fail with ENOSYS.  Some functions are actually named
10150
    something starting with __ and the normal name is an alias.  */
10151
#if defined __stub_dlopen || defined __stub___dlopen
10152
choke me
10153
#endif
10154
 
10155
int
10156
main ()
10157
{
10158
return dlopen ();
10159
  ;
10160
  return 0;
10161
}
10162
_ACEOF
10163
rm -f conftest.$ac_objext conftest$ac_exeext
10164
if { (ac_try="$ac_link"
10165
case "(($ac_try" in
10166
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10167
  *) ac_try_echo=$ac_try;;
10168
esac
10169
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10170
$as_echo "$ac_try_echo") >&5
10171
  (eval "$ac_link") 2>conftest.er1
10172
  ac_status=$?
10173
  grep -v '^ *+' conftest.er1 >conftest.err
10174
  rm -f conftest.er1
10175
  cat conftest.err >&5
10176
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177
  (exit $ac_status); } && {
10178
         test -z "$ac_c_werror_flag" ||
10179
         test ! -s conftest.err
10180
       } && test -s conftest$ac_exeext && {
10181
         test "$cross_compiling" = yes ||
10182
         $as_test_x conftest$ac_exeext
10183
       }; then
10184
  ac_cv_func_dlopen=yes
10185
else
10186
  $as_echo "$as_me: failed program was:" >&5
10187
sed 's/^/| /' conftest.$ac_ext >&5
10188
 
10189
        ac_cv_func_dlopen=no
10190
fi
10191
 
10192
rm -rf conftest.dSYM
10193
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10194
      conftest$ac_exeext conftest.$ac_ext
10195
fi
10196
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10197
$as_echo "$ac_cv_func_dlopen" >&6; }
10198
if test "x$ac_cv_func_dlopen" = x""yes; then
10199 19 jeremybenn
  lt_cv_dlopen="dlopen"
10200
else
10201 101 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10202 82 jeremybenn
$as_echo_n "checking for dlopen in -ldl... " >&6; }
10203 101 jeremybenn
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10204 82 jeremybenn
  $as_echo_n "(cached) " >&6
10205 19 jeremybenn
else
10206
  ac_check_lib_save_LIBS=$LIBS
10207
LIBS="-ldl  $LIBS"
10208 101 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
10209
/* confdefs.h.  */
10210
_ACEOF
10211
cat confdefs.h >>conftest.$ac_ext
10212
cat >>conftest.$ac_ext <<_ACEOF
10213 19 jeremybenn
/* end confdefs.h.  */
10214
 
10215
/* Override any GCC internal prototype to avoid an error.
10216
   Use char because int might match the return type of a GCC
10217
   builtin and then its argument prototype would still apply.  */
10218
#ifdef __cplusplus
10219
extern "C"
10220
#endif
10221
char dlopen ();
10222
int
10223
main ()
10224
{
10225
return dlopen ();
10226
  ;
10227
  return 0;
10228
}
10229
_ACEOF
10230 101 jeremybenn
rm -f conftest.$ac_objext conftest$ac_exeext
10231
if { (ac_try="$ac_link"
10232
case "(($ac_try" in
10233
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10234
  *) ac_try_echo=$ac_try;;
10235
esac
10236
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10237
$as_echo "$ac_try_echo") >&5
10238
  (eval "$ac_link") 2>conftest.er1
10239
  ac_status=$?
10240
  grep -v '^ *+' conftest.er1 >conftest.err
10241
  rm -f conftest.er1
10242
  cat conftest.err >&5
10243
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10244
  (exit $ac_status); } && {
10245
         test -z "$ac_c_werror_flag" ||
10246
         test ! -s conftest.err
10247
       } && test -s conftest$ac_exeext && {
10248
         test "$cross_compiling" = yes ||
10249
         $as_test_x conftest$ac_exeext
10250
       }; then
10251 19 jeremybenn
  ac_cv_lib_dl_dlopen=yes
10252
else
10253 101 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
10254
sed 's/^/| /' conftest.$ac_ext >&5
10255
 
10256
        ac_cv_lib_dl_dlopen=no
10257 19 jeremybenn
fi
10258 101 jeremybenn
 
10259
rm -rf conftest.dSYM
10260
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10261
      conftest$ac_exeext conftest.$ac_ext
10262 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
10263
fi
10264 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10265 82 jeremybenn
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10266 101 jeremybenn
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10267 19 jeremybenn
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10268
else
10269 101 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10270 82 jeremybenn
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10271 101 jeremybenn
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10272 82 jeremybenn
  $as_echo_n "(cached) " >&6
10273 19 jeremybenn
else
10274
  ac_check_lib_save_LIBS=$LIBS
10275
LIBS="-lsvld  $LIBS"
10276 101 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
10277
/* confdefs.h.  */
10278
_ACEOF
10279
cat confdefs.h >>conftest.$ac_ext
10280
cat >>conftest.$ac_ext <<_ACEOF
10281 19 jeremybenn
/* end confdefs.h.  */
10282
 
10283
/* Override any GCC internal prototype to avoid an error.
10284
   Use char because int might match the return type of a GCC
10285
   builtin and then its argument prototype would still apply.  */
10286
#ifdef __cplusplus
10287
extern "C"
10288
#endif
10289
char dlopen ();
10290
int
10291
main ()
10292
{
10293
return dlopen ();
10294
  ;
10295
  return 0;
10296
}
10297
_ACEOF
10298 101 jeremybenn
rm -f conftest.$ac_objext conftest$ac_exeext
10299
if { (ac_try="$ac_link"
10300
case "(($ac_try" in
10301
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10302
  *) ac_try_echo=$ac_try;;
10303
esac
10304
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10305
$as_echo "$ac_try_echo") >&5
10306
  (eval "$ac_link") 2>conftest.er1
10307
  ac_status=$?
10308
  grep -v '^ *+' conftest.er1 >conftest.err
10309
  rm -f conftest.er1
10310
  cat conftest.err >&5
10311
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312
  (exit $ac_status); } && {
10313
         test -z "$ac_c_werror_flag" ||
10314
         test ! -s conftest.err
10315
       } && test -s conftest$ac_exeext && {
10316
         test "$cross_compiling" = yes ||
10317
         $as_test_x conftest$ac_exeext
10318
       }; then
10319 19 jeremybenn
  ac_cv_lib_svld_dlopen=yes
10320
else
10321 101 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
10322
sed 's/^/| /' conftest.$ac_ext >&5
10323
 
10324
        ac_cv_lib_svld_dlopen=no
10325 19 jeremybenn
fi
10326 101 jeremybenn
 
10327
rm -rf conftest.dSYM
10328
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10329
      conftest$ac_exeext conftest.$ac_ext
10330 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
10331
fi
10332 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10333 82 jeremybenn
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10334 101 jeremybenn
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10335 19 jeremybenn
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10336
else
10337 101 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10338 82 jeremybenn
$as_echo_n "checking for dld_link in -ldld... " >&6; }
10339 101 jeremybenn
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10340 82 jeremybenn
  $as_echo_n "(cached) " >&6
10341 19 jeremybenn
else
10342
  ac_check_lib_save_LIBS=$LIBS
10343
LIBS="-ldld  $LIBS"
10344 101 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
10345
/* confdefs.h.  */
10346
_ACEOF
10347
cat confdefs.h >>conftest.$ac_ext
10348
cat >>conftest.$ac_ext <<_ACEOF
10349 19 jeremybenn
/* end confdefs.h.  */
10350
 
10351
/* Override any GCC internal prototype to avoid an error.
10352
   Use char because int might match the return type of a GCC
10353
   builtin and then its argument prototype would still apply.  */
10354
#ifdef __cplusplus
10355
extern "C"
10356
#endif
10357
char dld_link ();
10358
int
10359
main ()
10360
{
10361
return dld_link ();
10362
  ;
10363
  return 0;
10364
}
10365
_ACEOF
10366 101 jeremybenn
rm -f conftest.$ac_objext conftest$ac_exeext
10367
if { (ac_try="$ac_link"
10368
case "(($ac_try" in
10369
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10370
  *) ac_try_echo=$ac_try;;
10371
esac
10372
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10373
$as_echo "$ac_try_echo") >&5
10374
  (eval "$ac_link") 2>conftest.er1
10375
  ac_status=$?
10376
  grep -v '^ *+' conftest.er1 >conftest.err
10377
  rm -f conftest.er1
10378
  cat conftest.err >&5
10379
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380
  (exit $ac_status); } && {
10381
         test -z "$ac_c_werror_flag" ||
10382
         test ! -s conftest.err
10383
       } && test -s conftest$ac_exeext && {
10384
         test "$cross_compiling" = yes ||
10385
         $as_test_x conftest$ac_exeext
10386
       }; then
10387 19 jeremybenn
  ac_cv_lib_dld_dld_link=yes
10388
else
10389 101 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
10390
sed 's/^/| /' conftest.$ac_ext >&5
10391
 
10392
        ac_cv_lib_dld_dld_link=no
10393 19 jeremybenn
fi
10394 101 jeremybenn
 
10395
rm -rf conftest.dSYM
10396
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10397
      conftest$ac_exeext conftest.$ac_ext
10398 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
10399
fi
10400 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10401 82 jeremybenn
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10402 101 jeremybenn
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10403 82 jeremybenn
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10404 19 jeremybenn
fi
10405
 
10406
 
10407
fi
10408
 
10409
 
10410
fi
10411
 
10412
 
10413
fi
10414
 
10415
 
10416
fi
10417
 
10418
 
10419
fi
10420
 
10421
    ;;
10422
  esac
10423
 
10424
  if test "x$lt_cv_dlopen" != xno; then
10425
    enable_dlopen=yes
10426
  else
10427
    enable_dlopen=no
10428
  fi
10429
 
10430
  case $lt_cv_dlopen in
10431
  dlopen)
10432
    save_CPPFLAGS="$CPPFLAGS"
10433
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10434
 
10435
    save_LDFLAGS="$LDFLAGS"
10436
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10437
 
10438
    save_LIBS="$LIBS"
10439
    LIBS="$lt_cv_dlopen_libs $LIBS"
10440
 
10441 101 jeremybenn
    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10442 82 jeremybenn
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10443 101 jeremybenn
if test "${lt_cv_dlopen_self+set}" = set; then
10444 82 jeremybenn
  $as_echo_n "(cached) " >&6
10445 19 jeremybenn
else
10446
          if test "$cross_compiling" = yes; then :
10447
  lt_cv_dlopen_self=cross
10448
else
10449
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10450
  lt_status=$lt_dlunknown
10451 82 jeremybenn
  cat > conftest.$ac_ext <<_LT_EOF
10452 112 jeremybenn
#line 10452 "configure"
10453 19 jeremybenn
#include "confdefs.h"
10454
 
10455
#if HAVE_DLFCN_H
10456
#include 
10457
#endif
10458
 
10459
#include 
10460
 
10461
#ifdef RTLD_GLOBAL
10462
#  define LT_DLGLOBAL           RTLD_GLOBAL
10463
#else
10464
#  ifdef DL_GLOBAL
10465
#    define LT_DLGLOBAL         DL_GLOBAL
10466
#  else
10467
#    define LT_DLGLOBAL         0
10468
#  endif
10469
#endif
10470
 
10471
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10472
   find out it does not work in some platform. */
10473
#ifndef LT_DLLAZY_OR_NOW
10474
#  ifdef RTLD_LAZY
10475
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10476
#  else
10477
#    ifdef DL_LAZY
10478
#      define LT_DLLAZY_OR_NOW          DL_LAZY
10479
#    else
10480
#      ifdef RTLD_NOW
10481
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10482
#      else
10483
#        ifdef DL_NOW
10484
#          define LT_DLLAZY_OR_NOW      DL_NOW
10485
#        else
10486
#          define LT_DLLAZY_OR_NOW      0
10487
#        endif
10488
#      endif
10489
#    endif
10490
#  endif
10491
#endif
10492
 
10493
void fnord() { int i=42;}
10494
int main ()
10495
{
10496
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10497
  int status = $lt_dlunknown;
10498
 
10499
  if (self)
10500
    {
10501
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10502
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10503
      /* dlclose (self); */
10504
    }
10505
  else
10506
    puts (dlerror ());
10507
 
10508 82 jeremybenn
  return status;
10509 19 jeremybenn
}
10510 82 jeremybenn
_LT_EOF
10511 101 jeremybenn
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10512 19 jeremybenn
  (eval $ac_link) 2>&5
10513
  ac_status=$?
10514 101 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10515
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10516 19 jeremybenn
    (./conftest; exit; ) >&5 2>/dev/null
10517
    lt_status=$?
10518
    case x$lt_status in
10519
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10520
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10521
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10522
    esac
10523
  else :
10524
    # compilation failed
10525
    lt_cv_dlopen_self=no
10526
  fi
10527
fi
10528
rm -fr conftest*
10529
 
10530
 
10531
fi
10532 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10533 82 jeremybenn
$as_echo "$lt_cv_dlopen_self" >&6; }
10534 19 jeremybenn
 
10535
    if test "x$lt_cv_dlopen_self" = xyes; then
10536
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10537 101 jeremybenn
      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10538 82 jeremybenn
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10539 101 jeremybenn
if test "${lt_cv_dlopen_self_static+set}" = set; then
10540 82 jeremybenn
  $as_echo_n "(cached) " >&6
10541 19 jeremybenn
else
10542
          if test "$cross_compiling" = yes; then :
10543
  lt_cv_dlopen_self_static=cross
10544
else
10545
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10546
  lt_status=$lt_dlunknown
10547 82 jeremybenn
  cat > conftest.$ac_ext <<_LT_EOF
10548 112 jeremybenn
#line 10548 "configure"
10549 19 jeremybenn
#include "confdefs.h"
10550
 
10551
#if HAVE_DLFCN_H
10552
#include 
10553
#endif
10554
 
10555
#include 
10556
 
10557
#ifdef RTLD_GLOBAL
10558
#  define LT_DLGLOBAL           RTLD_GLOBAL
10559
#else
10560
#  ifdef DL_GLOBAL
10561
#    define LT_DLGLOBAL         DL_GLOBAL
10562
#  else
10563
#    define LT_DLGLOBAL         0
10564
#  endif
10565
#endif
10566
 
10567
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10568
   find out it does not work in some platform. */
10569
#ifndef LT_DLLAZY_OR_NOW
10570
#  ifdef RTLD_LAZY
10571
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10572
#  else
10573
#    ifdef DL_LAZY
10574
#      define LT_DLLAZY_OR_NOW          DL_LAZY
10575
#    else
10576
#      ifdef RTLD_NOW
10577
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10578
#      else
10579
#        ifdef DL_NOW
10580
#          define LT_DLLAZY_OR_NOW      DL_NOW
10581
#        else
10582
#          define LT_DLLAZY_OR_NOW      0
10583
#        endif
10584
#      endif
10585
#    endif
10586
#  endif
10587
#endif
10588
 
10589
void fnord() { int i=42;}
10590
int main ()
10591
{
10592
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10593
  int status = $lt_dlunknown;
10594
 
10595
  if (self)
10596
    {
10597
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10598
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10599
      /* dlclose (self); */
10600
    }
10601
  else
10602
    puts (dlerror ());
10603
 
10604 82 jeremybenn
  return status;
10605 19 jeremybenn
}
10606 82 jeremybenn
_LT_EOF
10607 101 jeremybenn
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10608 19 jeremybenn
  (eval $ac_link) 2>&5
10609
  ac_status=$?
10610 101 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10612 19 jeremybenn
    (./conftest; exit; ) >&5 2>/dev/null
10613
    lt_status=$?
10614
    case x$lt_status in
10615
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10616
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10617
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10618
    esac
10619
  else :
10620
    # compilation failed
10621
    lt_cv_dlopen_self_static=no
10622
  fi
10623
fi
10624
rm -fr conftest*
10625
 
10626
 
10627
fi
10628 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10629 82 jeremybenn
$as_echo "$lt_cv_dlopen_self_static" >&6; }
10630 19 jeremybenn
    fi
10631
 
10632
    CPPFLAGS="$save_CPPFLAGS"
10633
    LDFLAGS="$save_LDFLAGS"
10634
    LIBS="$save_LIBS"
10635
    ;;
10636
  esac
10637
 
10638
  case $lt_cv_dlopen_self in
10639
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10640
  *) enable_dlopen_self=unknown ;;
10641
  esac
10642
 
10643
  case $lt_cv_dlopen_self_static in
10644
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10645
  *) enable_dlopen_self_static=unknown ;;
10646
  esac
10647
fi
10648
 
10649
 
10650
 
10651
 
10652
 
10653
 
10654
 
10655
 
10656
 
10657
 
10658
 
10659
 
10660
 
10661
 
10662
 
10663
 
10664
 
10665 82 jeremybenn
striplib=
10666
old_striplib=
10667 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10668 82 jeremybenn
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10669
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10670
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10671
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10672 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: yes" >&5
10673 82 jeremybenn
$as_echo "yes" >&6; }
10674
else
10675
# FIXME - insert some real tests, host_os isn't really good enough
10676 19 jeremybenn
  case $host_os in
10677 82 jeremybenn
  darwin*)
10678
    if test -n "$STRIP" ; then
10679
      striplib="$STRIP -x"
10680
      old_striplib="$STRIP -S"
10681 101 jeremybenn
      { $as_echo "$as_me:$LINENO: result: yes" >&5
10682 82 jeremybenn
$as_echo "yes" >&6; }
10683 19 jeremybenn
    else
10684 101 jeremybenn
      { $as_echo "$as_me:$LINENO: result: no" >&5
10685 82 jeremybenn
$as_echo "no" >&6; }
10686 19 jeremybenn
    fi
10687
    ;;
10688
  *)
10689 101 jeremybenn
    { $as_echo "$as_me:$LINENO: result: no" >&5
10690 82 jeremybenn
$as_echo "no" >&6; }
10691 19 jeremybenn
    ;;
10692
  esac
10693
fi
10694
 
10695
 
10696
 
10697
 
10698
 
10699
 
10700
 
10701
 
10702
 
10703
 
10704
 
10705
 
10706 82 jeremybenn
  # Report which library types will actually be built
10707 101 jeremybenn
  { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10708 82 jeremybenn
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10709 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10710 82 jeremybenn
$as_echo "$can_build_shared" >&6; }
10711 19 jeremybenn
 
10712 101 jeremybenn
  { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10713 82 jeremybenn
$as_echo_n "checking whether to build shared libraries... " >&6; }
10714
  test "$can_build_shared" = "no" && enable_shared=no
10715 19 jeremybenn
 
10716 82 jeremybenn
  # On AIX, shared libraries and static libraries use the same namespace, and
10717
  # are all built from PIC.
10718 19 jeremybenn
  case $host_os in
10719 82 jeremybenn
  aix3*)
10720 19 jeremybenn
    test "$enable_shared" = yes && enable_static=no
10721 82 jeremybenn
    if test -n "$RANLIB"; then
10722
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10723
      postinstall_cmds='$RANLIB $lib'
10724 19 jeremybenn
    fi
10725
    ;;
10726
 
10727 82 jeremybenn
  aix[4-9]*)
10728
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10729
      test "$enable_shared" = yes && enable_static=no
10730 19 jeremybenn
    fi
10731
    ;;
10732
  esac
10733 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10734 82 jeremybenn
$as_echo "$enable_shared" >&6; }
10735 19 jeremybenn
 
10736 101 jeremybenn
  { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10737 82 jeremybenn
$as_echo_n "checking whether to build static libraries... " >&6; }
10738
  # Make sure either enable_shared or enable_static is yes.
10739
  test "$enable_shared" = yes || enable_static=yes
10740 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10741 82 jeremybenn
$as_echo "$enable_static" >&6; }
10742 19 jeremybenn
 
10743
 
10744
 
10745
 
10746
fi
10747
ac_ext=c
10748
ac_cpp='$CPP $CPPFLAGS'
10749
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10750
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10751
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10752
 
10753
CC="$lt_save_CC"
10754
 
10755
 
10756
 
10757
 
10758
 
10759
 
10760
 
10761
 
10762
 
10763
 
10764
 
10765
 
10766
 
10767 82 jeremybenn
        ac_config_commands="$ac_config_commands libtool"
10768 19 jeremybenn
 
10769
 
10770
 
10771
 
10772 82 jeremybenn
# Only expand once:
10773 19 jeremybenn
 
10774
 
10775 82 jeremybenn
am__api_version='1.11'
10776 19 jeremybenn
 
10777
# Find a good install program.  We prefer a C program (faster),
10778
# so one script is as good as another.  But avoid the broken or
10779
# incompatible versions:
10780
# SysV /etc/install, /usr/sbin/install
10781
# SunOS /usr/etc/install
10782
# IRIX /sbin/install
10783
# AIX /bin/install
10784
# AmigaOS /C/install, which installs bootblocks on floppy discs
10785
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10786
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
10787
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
10788
# OS/2's system install, which has a completely different semantic
10789
# ./install, which can be erroneously created by make from ./install.sh.
10790 82 jeremybenn
# Reject install programs that cannot install multiple files.
10791 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
10792 82 jeremybenn
$as_echo_n "checking for a BSD-compatible install... " >&6; }
10793 19 jeremybenn
if test -z "$INSTALL"; then
10794 101 jeremybenn
if test "${ac_cv_path_install+set}" = set; then
10795 82 jeremybenn
  $as_echo_n "(cached) " >&6
10796 19 jeremybenn
else
10797
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10798
for as_dir in $PATH
10799
do
10800
  IFS=$as_save_IFS
10801
  test -z "$as_dir" && as_dir=.
10802 101 jeremybenn
  # Account for people who put trailing slashes in PATH elements.
10803
case $as_dir/ in
10804
  ./ | .// | /cC/* | \
10805 19 jeremybenn
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
10806 101 jeremybenn
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
10807 19 jeremybenn
  /usr/ucb/* ) ;;
10808
  *)
10809
    # OSF1 and SCO ODT 3.0 have their own names for install.
10810
    # Don't use installbsd from OSF since it installs stuff as root
10811
    # by default.
10812
    for ac_prog in ginstall scoinst install; do
10813
      for ac_exec_ext in '' $ac_executable_extensions; do
10814
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
10815
          if test $ac_prog = install &&
10816
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10817
            # AIX install.  It has an incompatible calling convention.
10818
            :
10819
          elif test $ac_prog = install &&
10820
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10821
            # program-specific install script used by HP pwplus--don't use.
10822
            :
10823
          else
10824 82 jeremybenn
            rm -rf conftest.one conftest.two conftest.dir
10825
            echo one > conftest.one
10826
            echo two > conftest.two
10827
            mkdir conftest.dir
10828
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
10829
              test -s conftest.one && test -s conftest.two &&
10830
              test -s conftest.dir/conftest.one &&
10831
              test -s conftest.dir/conftest.two
10832
            then
10833
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10834
              break 3
10835
            fi
10836 19 jeremybenn
          fi
10837
        fi
10838
      done
10839
    done
10840
    ;;
10841
esac
10842 82 jeremybenn
 
10843 101 jeremybenn
done
10844 19 jeremybenn
IFS=$as_save_IFS
10845
 
10846 82 jeremybenn
rm -rf conftest.one conftest.two conftest.dir
10847 19 jeremybenn
 
10848
fi
10849
  if test "${ac_cv_path_install+set}" = set; then
10850
    INSTALL=$ac_cv_path_install
10851
  else
10852
    # As a last resort, use the slow shell script.  Don't cache a
10853
    # value for INSTALL within a source directory, because that will
10854
    # break other packages using the cache if that directory is
10855
    # removed, or if the value is a relative name.
10856
    INSTALL=$ac_install_sh
10857
  fi
10858
fi
10859 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
10860 82 jeremybenn
$as_echo "$INSTALL" >&6; }
10861 19 jeremybenn
 
10862
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10863
# It thinks the first close brace ends the variable substitution.
10864
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10865
 
10866
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
10867
 
10868
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10869
 
10870 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
10871 82 jeremybenn
$as_echo_n "checking whether build environment is sane... " >&6; }
10872 19 jeremybenn
# Just in case
10873
sleep 1
10874
echo timestamp > conftest.file
10875 82 jeremybenn
# Reject unsafe characters in $srcdir or the absolute working directory
10876
# name.  Accept space and tab only in the latter.
10877
am_lf='
10878
'
10879
case `pwd` in
10880
  *[\\\"\#\$\&\'\`$am_lf]*)
10881 101 jeremybenn
    { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
10882
$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
10883
   { (exit 1); exit 1; }; };;
10884 82 jeremybenn
esac
10885
case $srcdir in
10886
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
10887 101 jeremybenn
    { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
10888
$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
10889
   { (exit 1); exit 1; }; };;
10890 82 jeremybenn
esac
10891
 
10892 19 jeremybenn
# Do `set' in a subshell so we don't clobber the current shell's
10893
# arguments.  Must try -L first in case configure is actually a
10894
# symlink; some systems play weird games with the mod time of symlinks
10895
# (eg FreeBSD returns the mod time of the symlink's containing
10896
# directory).
10897
if (
10898 82 jeremybenn
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
10899 19 jeremybenn
   if test "$*" = "X"; then
10900
      # -L didn't work.
10901 82 jeremybenn
      set X `ls -t "$srcdir/configure" conftest.file`
10902 19 jeremybenn
   fi
10903
   rm -f conftest.file
10904
   if test "$*" != "X $srcdir/configure conftest.file" \
10905
      && test "$*" != "X conftest.file $srcdir/configure"; then
10906
 
10907
      # If neither matched, then we have a broken ls.  This can happen
10908
      # if, for instance, CONFIG_SHELL is bash and it inherits a
10909
      # broken ls alias from the environment.  This has actually
10910
      # happened.  Such a system could not be considered "sane".
10911 101 jeremybenn
      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
10912
alias in your environment" >&5
10913
$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
10914
alias in your environment" >&2;}
10915
   { (exit 1); exit 1; }; }
10916 19 jeremybenn
   fi
10917
 
10918
   test "$2" = conftest.file
10919
   )
10920
then
10921
   # Ok.
10922
   :
10923
else
10924 101 jeremybenn
   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
10925
Check your system clock" >&5
10926
$as_echo "$as_me: error: newly created file is older than distributed files!
10927
Check your system clock" >&2;}
10928
   { (exit 1); exit 1; }; }
10929 19 jeremybenn
fi
10930 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: yes" >&5
10931 82 jeremybenn
$as_echo "yes" >&6; }
10932 19 jeremybenn
test "$program_prefix" != NONE &&
10933
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
10934
# Use a double $ so make ignores it.
10935
test "$program_suffix" != NONE &&
10936
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
10937 82 jeremybenn
# Double any \ or $.
10938 19 jeremybenn
# By default was `s,x,x', remove it if useless.
10939 82 jeremybenn
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
10940
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
10941 19 jeremybenn
 
10942
# expand $ac_aux_dir to an absolute path
10943
am_aux_dir=`cd $ac_aux_dir && pwd`
10944
 
10945 82 jeremybenn
if test x"${MISSING+set}" != xset; then
10946
  case $am_aux_dir in
10947
  *\ * | *\     *)
10948
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
10949
  *)
10950
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
10951
  esac
10952
fi
10953 19 jeremybenn
# Use eval to expand $SHELL
10954
if eval "$MISSING --run true"; then
10955
  am_missing_run="$MISSING --run "
10956
else
10957
  am_missing_run=
10958 101 jeremybenn
  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
10959 82 jeremybenn
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
10960 19 jeremybenn
fi
10961
 
10962 82 jeremybenn
if test x"${install_sh}" != xset; then
10963
  case $am_aux_dir in
10964
  *\ * | *\     *)
10965
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
10966
  *)
10967
    install_sh="\${SHELL} $am_aux_dir/install-sh"
10968
  esac
10969
fi
10970
 
10971
# Installed binaries are usually stripped using `strip' when the user
10972
# run `make install-strip'.  However `strip' might not be the right
10973
# tool to use in cross-compilation environments, therefore Automake
10974
# will honor the `STRIP' environment variable to overrule this program.
10975
if test "$cross_compiling" != no; then
10976
  if test -n "$ac_tool_prefix"; then
10977
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10978
set dummy ${ac_tool_prefix}strip; ac_word=$2
10979 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10980 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
10981 101 jeremybenn
if test "${ac_cv_prog_STRIP+set}" = set; then
10982 82 jeremybenn
  $as_echo_n "(cached) " >&6
10983
else
10984
  if test -n "$STRIP"; then
10985
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10986
else
10987
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10988
for as_dir in $PATH
10989
do
10990
  IFS=$as_save_IFS
10991
  test -z "$as_dir" && as_dir=.
10992 101 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
10993 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10994
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10995 101 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10996 82 jeremybenn
    break 2
10997
  fi
10998
done
10999 101 jeremybenn
done
11000 82 jeremybenn
IFS=$as_save_IFS
11001
 
11002
fi
11003
fi
11004
STRIP=$ac_cv_prog_STRIP
11005
if test -n "$STRIP"; then
11006 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
11007 82 jeremybenn
$as_echo "$STRIP" >&6; }
11008
else
11009 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
11010 82 jeremybenn
$as_echo "no" >&6; }
11011
fi
11012
 
11013
 
11014
fi
11015
if test -z "$ac_cv_prog_STRIP"; then
11016
  ac_ct_STRIP=$STRIP
11017
  # Extract the first word of "strip", so it can be a program name with args.
11018
set dummy strip; ac_word=$2
11019 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11020 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11021 101 jeremybenn
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11022 82 jeremybenn
  $as_echo_n "(cached) " >&6
11023
else
11024
  if test -n "$ac_ct_STRIP"; then
11025
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11026
else
11027
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11028
for as_dir in $PATH
11029
do
11030
  IFS=$as_save_IFS
11031
  test -z "$as_dir" && as_dir=.
11032 101 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
11033 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11034
    ac_cv_prog_ac_ct_STRIP="strip"
11035 101 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11036 82 jeremybenn
    break 2
11037
  fi
11038
done
11039 101 jeremybenn
done
11040 82 jeremybenn
IFS=$as_save_IFS
11041
 
11042
fi
11043
fi
11044
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11045
if test -n "$ac_ct_STRIP"; then
11046 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11047 82 jeremybenn
$as_echo "$ac_ct_STRIP" >&6; }
11048
else
11049 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
11050 82 jeremybenn
$as_echo "no" >&6; }
11051
fi
11052
 
11053
  if test "x$ac_ct_STRIP" = x; then
11054
    STRIP=":"
11055
  else
11056
    case $cross_compiling:$ac_tool_warned in
11057
yes:)
11058 101 jeremybenn
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11059 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11060
ac_tool_warned=yes ;;
11061
esac
11062
    STRIP=$ac_ct_STRIP
11063
  fi
11064
else
11065
  STRIP="$ac_cv_prog_STRIP"
11066
fi
11067
 
11068
fi
11069
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
11070
 
11071 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
11072 82 jeremybenn
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
11073 19 jeremybenn
if test -z "$MKDIR_P"; then
11074 101 jeremybenn
  if test "${ac_cv_path_mkdir+set}" = set; then
11075 82 jeremybenn
  $as_echo_n "(cached) " >&6
11076 19 jeremybenn
else
11077
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11078
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
11079
do
11080
  IFS=$as_save_IFS
11081
  test -z "$as_dir" && as_dir=.
11082 101 jeremybenn
  for ac_prog in mkdir gmkdir; do
11083 19 jeremybenn
         for ac_exec_ext in '' $ac_executable_extensions; do
11084
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
11085
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
11086
             'mkdir (GNU coreutils) '* | \
11087
             'mkdir (coreutils) '* | \
11088
             'mkdir (fileutils) '4.1*)
11089
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
11090
               break 3;;
11091
           esac
11092
         done
11093
       done
11094 101 jeremybenn
done
11095 19 jeremybenn
IFS=$as_save_IFS
11096
 
11097
fi
11098
 
11099
  if test "${ac_cv_path_mkdir+set}" = set; then
11100
    MKDIR_P="$ac_cv_path_mkdir -p"
11101
  else
11102
    # As a last resort, use the slow shell script.  Don't cache a
11103
    # value for MKDIR_P within a source directory, because that will
11104
    # break other packages using the cache if that directory is
11105
    # removed, or if the value is a relative name.
11106 101 jeremybenn
    test -d ./--version && rmdir ./--version
11107 19 jeremybenn
    MKDIR_P="$ac_install_sh -d"
11108
  fi
11109
fi
11110 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
11111 82 jeremybenn
$as_echo "$MKDIR_P" >&6; }
11112 19 jeremybenn
 
11113
mkdir_p="$MKDIR_P"
11114
case $mkdir_p in
11115
  [\\/$]* | ?:[\\/]*) ;;
11116
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
11117
esac
11118
 
11119
for ac_prog in gawk mawk nawk awk
11120
do
11121
  # Extract the first word of "$ac_prog", so it can be a program name with args.
11122
set dummy $ac_prog; ac_word=$2
11123 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11124 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11125 101 jeremybenn
if test "${ac_cv_prog_AWK+set}" = set; then
11126 82 jeremybenn
  $as_echo_n "(cached) " >&6
11127 19 jeremybenn
else
11128
  if test -n "$AWK"; then
11129
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
11130
else
11131
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11132
for as_dir in $PATH
11133
do
11134
  IFS=$as_save_IFS
11135
  test -z "$as_dir" && as_dir=.
11136 101 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
11137 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11138
    ac_cv_prog_AWK="$ac_prog"
11139 101 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11140 19 jeremybenn
    break 2
11141
  fi
11142
done
11143 101 jeremybenn
done
11144 19 jeremybenn
IFS=$as_save_IFS
11145
 
11146
fi
11147
fi
11148
AWK=$ac_cv_prog_AWK
11149
if test -n "$AWK"; then
11150 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
11151 82 jeremybenn
$as_echo "$AWK" >&6; }
11152 19 jeremybenn
else
11153 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
11154 82 jeremybenn
$as_echo "no" >&6; }
11155 19 jeremybenn
fi
11156
 
11157
 
11158
  test -n "$AWK" && break
11159
done
11160
 
11161 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11162 82 jeremybenn
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11163
set x ${MAKE-make}
11164
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11165 101 jeremybenn
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
11166 82 jeremybenn
  $as_echo_n "(cached) " >&6
11167 19 jeremybenn
else
11168
  cat >conftest.make <<\_ACEOF
11169
SHELL = /bin/sh
11170
all:
11171
        @echo '@@@%%%=$(MAKE)=@@@%%%'
11172
_ACEOF
11173
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11174
case `${MAKE-make} -f conftest.make 2>/dev/null` in
11175
  *@@@%%%=?*=@@@%%%*)
11176
    eval ac_cv_prog_make_${ac_make}_set=yes;;
11177
  *)
11178
    eval ac_cv_prog_make_${ac_make}_set=no;;
11179
esac
11180
rm -f conftest.make
11181
fi
11182
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11183 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: yes" >&5
11184 82 jeremybenn
$as_echo "yes" >&6; }
11185 19 jeremybenn
  SET_MAKE=
11186
else
11187 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
11188 82 jeremybenn
$as_echo "no" >&6; }
11189 19 jeremybenn
  SET_MAKE="MAKE=${MAKE-make}"
11190
fi
11191
 
11192
rm -rf .tst 2>/dev/null
11193
mkdir .tst 2>/dev/null
11194
if test -d .tst; then
11195
  am__leading_dot=.
11196
else
11197
  am__leading_dot=_
11198
fi
11199
rmdir .tst 2>/dev/null
11200
 
11201
DEPDIR="${am__leading_dot}deps"
11202
 
11203
ac_config_commands="$ac_config_commands depfiles"
11204
 
11205
 
11206
am_make=${MAKE-make}
11207
cat > confinc << 'END'
11208
am__doit:
11209 82 jeremybenn
        @echo this is the am__doit target
11210 19 jeremybenn
.PHONY: am__doit
11211
END
11212
# If we don't find an include directive, just comment out the code.
11213 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
11214 82 jeremybenn
$as_echo_n "checking for style of include used by $am_make... " >&6; }
11215 19 jeremybenn
am__include="#"
11216
am__quote=
11217
_am_result=none
11218
# First try GNU make style include.
11219
echo "include confinc" > confmf
11220 82 jeremybenn
# Ignore all kinds of additional output from `make'.
11221
case `$am_make -s -f confmf 2> /dev/null` in #(
11222
*the\ am__doit\ target*)
11223
  am__include=include
11224
  am__quote=
11225
  _am_result=GNU
11226
  ;;
11227
esac
11228 19 jeremybenn
# Now try BSD make style include.
11229
if test "$am__include" = "#"; then
11230
   echo '.include "confinc"' > confmf
11231 82 jeremybenn
   case `$am_make -s -f confmf 2> /dev/null` in #(
11232
   *the\ am__doit\ target*)
11233
     am__include=.include
11234
     am__quote="\""
11235
     _am_result=BSD
11236
     ;;
11237
   esac
11238 19 jeremybenn
fi
11239
 
11240
 
11241 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
11242 82 jeremybenn
$as_echo "$_am_result" >&6; }
11243 19 jeremybenn
rm -f confinc confmf
11244
 
11245
# Check whether --enable-dependency-tracking was given.
11246 101 jeremybenn
if test "${enable_dependency_tracking+set}" = set; then
11247 19 jeremybenn
  enableval=$enable_dependency_tracking;
11248
fi
11249
 
11250
if test "x$enable_dependency_tracking" != xno; then
11251
  am_depcomp="$ac_aux_dir/depcomp"
11252
  AMDEPBACKSLASH='\'
11253
fi
11254
 if test "x$enable_dependency_tracking" != xno; then
11255
  AMDEP_TRUE=
11256
  AMDEP_FALSE='#'
11257
else
11258
  AMDEP_TRUE='#'
11259
  AMDEP_FALSE=
11260
fi
11261
 
11262
 
11263
if test "`cd $srcdir && pwd`" != "`pwd`"; then
11264
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
11265
  # is not polluted with repeated "-I."
11266
  am__isrc=' -I$(srcdir)'
11267
  # test to see if srcdir already configured
11268
  if test -f $srcdir/config.status; then
11269 101 jeremybenn
    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
11270
$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
11271
   { (exit 1); exit 1; }; }
11272 19 jeremybenn
  fi
11273
fi
11274
 
11275
# test whether we have cygpath
11276
if test -z "$CYGPATH_W"; then
11277
  if (cygpath --version) >/dev/null 2>/dev/null; then
11278
    CYGPATH_W='cygpath -w'
11279
  else
11280
    CYGPATH_W=echo
11281
  fi
11282
fi
11283
 
11284
 
11285
# Define the identity of the package.
11286
 PACKAGE='or1ksim'
11287 112 jeremybenn
 VERSION='2010-06-09'
11288 19 jeremybenn
 
11289
 
11290
cat >>confdefs.h <<_ACEOF
11291
#define PACKAGE "$PACKAGE"
11292
_ACEOF
11293
 
11294
 
11295
cat >>confdefs.h <<_ACEOF
11296
#define VERSION "$VERSION"
11297
_ACEOF
11298
 
11299
# Some tools Automake needs.
11300
 
11301
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
11302
 
11303
 
11304
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
11305
 
11306
 
11307
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
11308
 
11309
 
11310
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
11311
 
11312
 
11313
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
11314
 
11315
# We need awk for the "check" target.  The system "awk" is bad on
11316
# some platforms.
11317
# Always define AMTAR for backward compatibility.
11318
 
11319
AMTAR=${AMTAR-"${am_missing_run}tar"}
11320
 
11321
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
11322
 
11323
 
11324
 
11325
 
11326
depcc="$CC"   am_compiler_list=
11327
 
11328 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11329 82 jeremybenn
$as_echo_n "checking dependency style of $depcc... " >&6; }
11330 101 jeremybenn
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
11331 82 jeremybenn
  $as_echo_n "(cached) " >&6
11332 19 jeremybenn
else
11333
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11334
  # We make a subdir and do the tests there.  Otherwise we can end up
11335
  # making bogus files that we don't know about and never remove.  For
11336
  # instance it was reported that on HP-UX the gcc test will end up
11337
  # making a dummy file named `D' -- because `-MD' means `put the output
11338
  # in D'.
11339
  mkdir conftest.dir
11340
  # Copy depcomp to subdir because otherwise we won't find it if we're
11341
  # using a relative directory.
11342
  cp "$am_depcomp" conftest.dir
11343
  cd conftest.dir
11344
  # We will build objects and dependencies in a subdirectory because
11345
  # it helps to detect inapplicable dependency modes.  For instance
11346
  # both Tru64's cc and ICC support -MD to output dependencies as a
11347
  # side effect of compilation, but ICC will put the dependencies in
11348
  # the current directory while Tru64 will put them in the object
11349
  # directory.
11350
  mkdir sub
11351
 
11352
  am_cv_CC_dependencies_compiler_type=none
11353
  if test "$am_compiler_list" = ""; then
11354
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11355
  fi
11356 82 jeremybenn
  am__universal=false
11357
  case " $depcc " in #(
11358
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
11359
     esac
11360
 
11361 19 jeremybenn
  for depmode in $am_compiler_list; do
11362
    # Setup a source with many dependencies, because some compilers
11363
    # like to wrap large dependency lists on column 80 (with \), and
11364
    # we should not choose a depcomp mode which is confused by this.
11365
    #
11366
    # We need to recreate these files for each test, as the compiler may
11367
    # overwrite some of them when testing with obscure command lines.
11368
    # This happens at least with the AIX C compiler.
11369
    : > sub/conftest.c
11370
    for i in 1 2 3 4 5 6; do
11371
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
11372
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11373
      # Solaris 8's {/usr,}/bin/sh.
11374
      touch sub/conftst$i.h
11375
    done
11376
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11377
 
11378 82 jeremybenn
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
11379
    # mode.  It turns out that the SunPro C++ compiler does not properly
11380
    # handle `-M -o', and we need to detect this.  Also, some Intel
11381
    # versions had trouble with output in subdirs
11382
    am__obj=sub/conftest.${OBJEXT-o}
11383
    am__minus_obj="-o $am__obj"
11384 19 jeremybenn
    case $depmode in
11385 82 jeremybenn
    gcc)
11386
      # This depmode causes a compiler race in universal mode.
11387
      test "$am__universal" = false || continue
11388
      ;;
11389 19 jeremybenn
    nosideeffect)
11390
      # after this tag, mechanisms are not by side-effect, so they'll
11391
      # only be used when explicitly requested
11392
      if test "x$enable_dependency_tracking" = xyes; then
11393
        continue
11394
      else
11395
        break
11396
      fi
11397
      ;;
11398 82 jeremybenn
    msvisualcpp | msvcmsys)
11399
      # This compiler won't grok `-c -o', but also, the minuso test has
11400
      # not run yet.  These depmodes are late enough in the game, and
11401
      # so weak that their functioning should not be impacted.
11402
      am__obj=conftest.${OBJEXT-o}
11403
      am__minus_obj=
11404
      ;;
11405 19 jeremybenn
    none) break ;;
11406
    esac
11407
    if depmode=$depmode \
11408 82 jeremybenn
       source=sub/conftest.c object=$am__obj \
11409 19 jeremybenn
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11410 82 jeremybenn
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11411 19 jeremybenn
         >/dev/null 2>conftest.err &&
11412
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11413
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11414 82 jeremybenn
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11415 19 jeremybenn
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11416
      # icc doesn't choke on unknown options, it will just issue warnings
11417
      # or remarks (even with -Werror).  So we grep stderr for any message
11418
      # that says an option was ignored or not supported.
11419
      # When given -MP, icc 7.0 and 7.1 complain thusly:
11420
      #   icc: Command line warning: ignoring option '-M'; no argument required
11421
      # The diagnosis changed in icc 8.0:
11422
      #   icc: Command line remark: option '-MP' not supported
11423
      if (grep 'ignoring option' conftest.err ||
11424
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11425
        am_cv_CC_dependencies_compiler_type=$depmode
11426
        break
11427
      fi
11428
    fi
11429
  done
11430
 
11431
  cd ..
11432
  rm -rf conftest.dir
11433
else
11434
  am_cv_CC_dependencies_compiler_type=none
11435
fi
11436
 
11437
fi
11438 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
11439 82 jeremybenn
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11440 19 jeremybenn
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11441
 
11442
 if
11443
  test "x$enable_dependency_tracking" != xno \
11444
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11445
  am__fastdepCC_TRUE=
11446
  am__fastdepCC_FALSE='#'
11447
else
11448
  am__fastdepCC_TRUE='#'
11449
  am__fastdepCC_FALSE=
11450
fi
11451
 
11452
 
11453
 
11454 91 jeremybenn
 
11455 82 jeremybenn
ac_config_headers="$ac_config_headers config.h"
11456
 
11457
 
11458
 
11459
 
11460
# make sure we are using a recent autoconf version
11461
 
11462
 
11463
# yuck.
11464
case "$target_cpu" in
11465
or32*)  CPU_ARCH=or32;
11466
        ARCH_ISA=OR32;
11467
 
11468 101 jeremybenn
cat >>confdefs.h <<\_ACEOF
11469
#define OR32_TYPES 1
11470
_ACEOF
11471 82 jeremybenn
;;
11472
dlx*)   CPU_ARCH=dlx;
11473
        ARCH_ISA=DLX;;
11474 101 jeremybenn
*)      { $as_echo "$as_me:$LINENO: WARNING: Unknown target architecture $target_cpu: OR32 assumed" >&5
11475 82 jeremybenn
$as_echo "$as_me: WARNING: Unknown target architecture $target_cpu: OR32 assumed" >&2;};
11476
        CPU_ARCH=or32;
11477
        ARCH_ISA=OR32;
11478
 
11479 101 jeremybenn
cat >>confdefs.h <<\_ACEOF
11480
#define OR32_TYPES 1
11481
_ACEOF
11482 82 jeremybenn
;;
11483
esac
11484
 
11485
# determine endianism from target CPU name. If it has "little" in the name,
11486
# then its litte endian, otherwise its big endian (default for OR1K)
11487
case "$target_cpu" in
11488
*little*)
11489 101 jeremybenn
cat >>confdefs.h <<\_ACEOF
11490
#define OR32_LITTLE_ENDIAN 1
11491
_ACEOF
11492 82 jeremybenn
;;
11493
       *)
11494 101 jeremybenn
cat >>confdefs.h <<\_ACEOF
11495
#define OR32_BIG_ENDIAN 1
11496
_ACEOF
11497 82 jeremybenn
;;
11498
esac
11499
 
11500
 
11501
 
11502
# Set the CFLAGS we want
11503
CFLAGS="$CFLAGS -g -Wall -Werror -O2 -D$ARCH_ISA"
11504
 
11505
# By default we simply use the C compiler to build assembly code.
11506
 
11507
test "${CCAS+set}" = set || CCAS=$CC
11508
test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
11509
 
11510
 
11511
 
11512
depcc="$CCAS"   am_compiler_list=
11513
 
11514 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11515 82 jeremybenn
$as_echo_n "checking dependency style of $depcc... " >&6; }
11516 101 jeremybenn
if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
11517 82 jeremybenn
  $as_echo_n "(cached) " >&6
11518 19 jeremybenn
else
11519
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11520
  # We make a subdir and do the tests there.  Otherwise we can end up
11521
  # making bogus files that we don't know about and never remove.  For
11522
  # instance it was reported that on HP-UX the gcc test will end up
11523
  # making a dummy file named `D' -- because `-MD' means `put the output
11524
  # in D'.
11525
  mkdir conftest.dir
11526
  # Copy depcomp to subdir because otherwise we won't find it if we're
11527
  # using a relative directory.
11528
  cp "$am_depcomp" conftest.dir
11529
  cd conftest.dir
11530
  # We will build objects and dependencies in a subdirectory because
11531
  # it helps to detect inapplicable dependency modes.  For instance
11532
  # both Tru64's cc and ICC support -MD to output dependencies as a
11533
  # side effect of compilation, but ICC will put the dependencies in
11534
  # the current directory while Tru64 will put them in the object
11535
  # directory.
11536
  mkdir sub
11537
 
11538 82 jeremybenn
  am_cv_CCAS_dependencies_compiler_type=none
11539 19 jeremybenn
  if test "$am_compiler_list" = ""; then
11540
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11541
  fi
11542 82 jeremybenn
  am__universal=false
11543
 
11544
 
11545 19 jeremybenn
  for depmode in $am_compiler_list; do
11546
    # Setup a source with many dependencies, because some compilers
11547
    # like to wrap large dependency lists on column 80 (with \), and
11548
    # we should not choose a depcomp mode which is confused by this.
11549
    #
11550
    # We need to recreate these files for each test, as the compiler may
11551
    # overwrite some of them when testing with obscure command lines.
11552
    # This happens at least with the AIX C compiler.
11553
    : > sub/conftest.c
11554
    for i in 1 2 3 4 5 6; do
11555
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
11556
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11557
      # Solaris 8's {/usr,}/bin/sh.
11558
      touch sub/conftst$i.h
11559
    done
11560
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11561
 
11562 82 jeremybenn
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
11563
    # mode.  It turns out that the SunPro C++ compiler does not properly
11564
    # handle `-M -o', and we need to detect this.  Also, some Intel
11565
    # versions had trouble with output in subdirs
11566
    am__obj=sub/conftest.${OBJEXT-o}
11567
    am__minus_obj="-o $am__obj"
11568 19 jeremybenn
    case $depmode in
11569 82 jeremybenn
    gcc)
11570
      # This depmode causes a compiler race in universal mode.
11571
      test "$am__universal" = false || continue
11572
      ;;
11573 19 jeremybenn
    nosideeffect)
11574
      # after this tag, mechanisms are not by side-effect, so they'll
11575
      # only be used when explicitly requested
11576
      if test "x$enable_dependency_tracking" = xyes; then
11577
        continue
11578
      else
11579
        break
11580
      fi
11581
      ;;
11582 82 jeremybenn
    msvisualcpp | msvcmsys)
11583
      # This compiler won't grok `-c -o', but also, the minuso test has
11584
      # not run yet.  These depmodes are late enough in the game, and
11585
      # so weak that their functioning should not be impacted.
11586
      am__obj=conftest.${OBJEXT-o}
11587
      am__minus_obj=
11588
      ;;
11589 19 jeremybenn
    none) break ;;
11590
    esac
11591
    if depmode=$depmode \
11592 82 jeremybenn
       source=sub/conftest.c object=$am__obj \
11593 19 jeremybenn
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11594 82 jeremybenn
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11595 19 jeremybenn
         >/dev/null 2>conftest.err &&
11596
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11597
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11598 82 jeremybenn
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11599 19 jeremybenn
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11600
      # icc doesn't choke on unknown options, it will just issue warnings
11601
      # or remarks (even with -Werror).  So we grep stderr for any message
11602
      # that says an option was ignored or not supported.
11603
      # When given -MP, icc 7.0 and 7.1 complain thusly:
11604
      #   icc: Command line warning: ignoring option '-M'; no argument required
11605
      # The diagnosis changed in icc 8.0:
11606
      #   icc: Command line remark: option '-MP' not supported
11607
      if (grep 'ignoring option' conftest.err ||
11608
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11609 82 jeremybenn
        am_cv_CCAS_dependencies_compiler_type=$depmode
11610 19 jeremybenn
        break
11611
      fi
11612
    fi
11613
  done
11614
 
11615
  cd ..
11616
  rm -rf conftest.dir
11617
else
11618 82 jeremybenn
  am_cv_CCAS_dependencies_compiler_type=none
11619 19 jeremybenn
fi
11620
 
11621
fi
11622 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
11623 82 jeremybenn
$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
11624
CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
11625 19 jeremybenn
 
11626
 if
11627
  test "x$enable_dependency_tracking" != xno \
11628 82 jeremybenn
  && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
11629
  am__fastdepCCAS_TRUE=
11630
  am__fastdepCCAS_FALSE='#'
11631 19 jeremybenn
else
11632 82 jeremybenn
  am__fastdepCCAS_TRUE='#'
11633
  am__fastdepCCAS_FALSE=
11634 19 jeremybenn
fi
11635
 
11636
 
11637
 
11638
ac_ext=c
11639
ac_cpp='$CPP $CPPFLAGS'
11640
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11641
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11642
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11643
if test -n "$ac_tool_prefix"; then
11644
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11645
set dummy ${ac_tool_prefix}gcc; ac_word=$2
11646 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11647 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11648 101 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then
11649 82 jeremybenn
  $as_echo_n "(cached) " >&6
11650 19 jeremybenn
else
11651
  if test -n "$CC"; then
11652
  ac_cv_prog_CC="$CC" # Let the user override the test.
11653
else
11654
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11655
for as_dir in $PATH
11656
do
11657
  IFS=$as_save_IFS
11658
  test -z "$as_dir" && as_dir=.
11659 101 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
11660 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11661
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
11662 101 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11663 19 jeremybenn
    break 2
11664
  fi
11665
done
11666 101 jeremybenn
done
11667 19 jeremybenn
IFS=$as_save_IFS
11668
 
11669
fi
11670
fi
11671
CC=$ac_cv_prog_CC
11672
if test -n "$CC"; then
11673 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
11674 82 jeremybenn
$as_echo "$CC" >&6; }
11675 19 jeremybenn
else
11676 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
11677 82 jeremybenn
$as_echo "no" >&6; }
11678 19 jeremybenn
fi
11679
 
11680
 
11681
fi
11682
if test -z "$ac_cv_prog_CC"; then
11683
  ac_ct_CC=$CC
11684
  # Extract the first word of "gcc", so it can be a program name with args.
11685
set dummy gcc; ac_word=$2
11686 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11687 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11688 101 jeremybenn
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11689 82 jeremybenn
  $as_echo_n "(cached) " >&6
11690 19 jeremybenn
else
11691
  if test -n "$ac_ct_CC"; then
11692
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11693
else
11694
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11695
for as_dir in $PATH
11696
do
11697
  IFS=$as_save_IFS
11698
  test -z "$as_dir" && as_dir=.
11699 101 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
11700 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11701
    ac_cv_prog_ac_ct_CC="gcc"
11702 101 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11703 19 jeremybenn
    break 2
11704
  fi
11705
done
11706 101 jeremybenn
done
11707 19 jeremybenn
IFS=$as_save_IFS
11708
 
11709
fi
11710
fi
11711
ac_ct_CC=$ac_cv_prog_ac_ct_CC
11712
if test -n "$ac_ct_CC"; then
11713 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11714 82 jeremybenn
$as_echo "$ac_ct_CC" >&6; }
11715 19 jeremybenn
else
11716 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
11717 82 jeremybenn
$as_echo "no" >&6; }
11718 19 jeremybenn
fi
11719
 
11720
  if test "x$ac_ct_CC" = x; then
11721
    CC=""
11722
  else
11723
    case $cross_compiling:$ac_tool_warned in
11724
yes:)
11725 101 jeremybenn
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11726 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11727 19 jeremybenn
ac_tool_warned=yes ;;
11728
esac
11729
    CC=$ac_ct_CC
11730
  fi
11731
else
11732
  CC="$ac_cv_prog_CC"
11733
fi
11734
 
11735
if test -z "$CC"; then
11736
          if test -n "$ac_tool_prefix"; then
11737
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11738
set dummy ${ac_tool_prefix}cc; ac_word=$2
11739 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11740 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11741 101 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then
11742 82 jeremybenn
  $as_echo_n "(cached) " >&6
11743 19 jeremybenn
else
11744
  if test -n "$CC"; then
11745
  ac_cv_prog_CC="$CC" # Let the user override the test.
11746
else
11747
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11748
for as_dir in $PATH
11749
do
11750
  IFS=$as_save_IFS
11751
  test -z "$as_dir" && as_dir=.
11752 101 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
11753 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11754
    ac_cv_prog_CC="${ac_tool_prefix}cc"
11755 101 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11756 19 jeremybenn
    break 2
11757
  fi
11758
done
11759 101 jeremybenn
done
11760 19 jeremybenn
IFS=$as_save_IFS
11761
 
11762
fi
11763
fi
11764
CC=$ac_cv_prog_CC
11765
if test -n "$CC"; then
11766 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
11767 82 jeremybenn
$as_echo "$CC" >&6; }
11768 19 jeremybenn
else
11769 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
11770 82 jeremybenn
$as_echo "no" >&6; }
11771 19 jeremybenn
fi
11772
 
11773
 
11774
  fi
11775
fi
11776
if test -z "$CC"; then
11777
  # Extract the first word of "cc", so it can be a program name with args.
11778
set dummy cc; ac_word=$2
11779 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11780 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11781 101 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then
11782 82 jeremybenn
  $as_echo_n "(cached) " >&6
11783 19 jeremybenn
else
11784
  if test -n "$CC"; then
11785
  ac_cv_prog_CC="$CC" # Let the user override the test.
11786
else
11787
  ac_prog_rejected=no
11788
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11789
for as_dir in $PATH
11790
do
11791
  IFS=$as_save_IFS
11792
  test -z "$as_dir" && as_dir=.
11793 101 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
11794 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11795
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11796
       ac_prog_rejected=yes
11797
       continue
11798
     fi
11799
    ac_cv_prog_CC="cc"
11800 101 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11801 19 jeremybenn
    break 2
11802
  fi
11803
done
11804 101 jeremybenn
done
11805 19 jeremybenn
IFS=$as_save_IFS
11806
 
11807
if test $ac_prog_rejected = yes; then
11808
  # We found a bogon in the path, so make sure we never use it.
11809
  set dummy $ac_cv_prog_CC
11810
  shift
11811
  if test $# != 0; then
11812
    # We chose a different compiler from the bogus one.
11813
    # However, it has the same basename, so the bogon will be chosen
11814
    # first if we set CC to just the basename; use the full file name.
11815
    shift
11816
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11817
  fi
11818
fi
11819
fi
11820
fi
11821
CC=$ac_cv_prog_CC
11822
if test -n "$CC"; then
11823 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
11824 82 jeremybenn
$as_echo "$CC" >&6; }
11825 19 jeremybenn
else
11826 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
11827 82 jeremybenn
$as_echo "no" >&6; }
11828 19 jeremybenn
fi
11829
 
11830
 
11831
fi
11832
if test -z "$CC"; then
11833
  if test -n "$ac_tool_prefix"; then
11834
  for ac_prog in cl.exe
11835
  do
11836
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11837
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11838 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11839 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11840 101 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then
11841 82 jeremybenn
  $as_echo_n "(cached) " >&6
11842 19 jeremybenn
else
11843
  if test -n "$CC"; then
11844
  ac_cv_prog_CC="$CC" # Let the user override the test.
11845
else
11846
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11847
for as_dir in $PATH
11848
do
11849
  IFS=$as_save_IFS
11850
  test -z "$as_dir" && as_dir=.
11851 101 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
11852 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11853
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11854 101 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11855 19 jeremybenn
    break 2
11856
  fi
11857
done
11858 101 jeremybenn
done
11859 19 jeremybenn
IFS=$as_save_IFS
11860
 
11861
fi
11862
fi
11863
CC=$ac_cv_prog_CC
11864
if test -n "$CC"; then
11865 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
11866 82 jeremybenn
$as_echo "$CC" >&6; }
11867 19 jeremybenn
else
11868 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
11869 82 jeremybenn
$as_echo "no" >&6; }
11870 19 jeremybenn
fi
11871
 
11872
 
11873
    test -n "$CC" && break
11874
  done
11875
fi
11876
if test -z "$CC"; then
11877
  ac_ct_CC=$CC
11878
  for ac_prog in cl.exe
11879
do
11880
  # Extract the first word of "$ac_prog", so it can be a program name with args.
11881
set dummy $ac_prog; ac_word=$2
11882 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11883 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11884 101 jeremybenn
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11885 82 jeremybenn
  $as_echo_n "(cached) " >&6
11886 19 jeremybenn
else
11887
  if test -n "$ac_ct_CC"; then
11888
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11889
else
11890
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11891
for as_dir in $PATH
11892
do
11893
  IFS=$as_save_IFS
11894
  test -z "$as_dir" && as_dir=.
11895 101 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
11896 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11897
    ac_cv_prog_ac_ct_CC="$ac_prog"
11898 101 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11899 19 jeremybenn
    break 2
11900
  fi
11901
done
11902 101 jeremybenn
done
11903 19 jeremybenn
IFS=$as_save_IFS
11904
 
11905
fi
11906
fi
11907
ac_ct_CC=$ac_cv_prog_ac_ct_CC
11908
if test -n "$ac_ct_CC"; then
11909 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11910 82 jeremybenn
$as_echo "$ac_ct_CC" >&6; }
11911 19 jeremybenn
else
11912 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
11913 82 jeremybenn
$as_echo "no" >&6; }
11914 19 jeremybenn
fi
11915
 
11916
 
11917
  test -n "$ac_ct_CC" && break
11918
done
11919
 
11920
  if test "x$ac_ct_CC" = x; then
11921
    CC=""
11922
  else
11923
    case $cross_compiling:$ac_tool_warned in
11924
yes:)
11925 101 jeremybenn
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11926 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11927 19 jeremybenn
ac_tool_warned=yes ;;
11928
esac
11929
    CC=$ac_ct_CC
11930
  fi
11931
fi
11932
 
11933
fi
11934
 
11935
 
11936 101 jeremybenn
test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11937 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11938 101 jeremybenn
{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11939
See \`config.log' for more details." >&5
11940
$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
11941
See \`config.log' for more details." >&2;}
11942
   { (exit 1); exit 1; }; }; }
11943 19 jeremybenn
 
11944
# Provide some information about the compiler.
11945 101 jeremybenn
$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
11946 82 jeremybenn
set X $ac_compile
11947
ac_compiler=$2
11948 101 jeremybenn
{ (ac_try="$ac_compiler --version >&5"
11949 19 jeremybenn
case "(($ac_try" in
11950
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11951
  *) ac_try_echo=$ac_try;;
11952
esac
11953 101 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11954
$as_echo "$ac_try_echo") >&5
11955
  (eval "$ac_compiler --version >&5") 2>&5
11956 19 jeremybenn
  ac_status=$?
11957 101 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958
  (exit $ac_status); }
11959
{ (ac_try="$ac_compiler -v >&5"
11960
case "(($ac_try" in
11961
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11962
  *) ac_try_echo=$ac_try;;
11963
esac
11964
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11965
$as_echo "$ac_try_echo") >&5
11966
  (eval "$ac_compiler -v >&5") 2>&5
11967
  ac_status=$?
11968
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11969
  (exit $ac_status); }
11970
{ (ac_try="$ac_compiler -V >&5"
11971
case "(($ac_try" in
11972
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11973
  *) ac_try_echo=$ac_try;;
11974
esac
11975
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11976
$as_echo "$ac_try_echo") >&5
11977
  (eval "$ac_compiler -V >&5") 2>&5
11978
  ac_status=$?
11979
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980
  (exit $ac_status); }
11981 19 jeremybenn
 
11982 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11983 82 jeremybenn
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11984 101 jeremybenn
if test "${ac_cv_c_compiler_gnu+set}" = set; then
11985 82 jeremybenn
  $as_echo_n "(cached) " >&6
11986 19 jeremybenn
else
11987 101 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
11988
/* confdefs.h.  */
11989
_ACEOF
11990
cat confdefs.h >>conftest.$ac_ext
11991
cat >>conftest.$ac_ext <<_ACEOF
11992 19 jeremybenn
/* end confdefs.h.  */
11993
 
11994
int
11995
main ()
11996
{
11997
#ifndef __GNUC__
11998
       choke me
11999
#endif
12000
 
12001
  ;
12002
  return 0;
12003
}
12004
_ACEOF
12005 101 jeremybenn
rm -f conftest.$ac_objext
12006
if { (ac_try="$ac_compile"
12007
case "(($ac_try" in
12008
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12009
  *) ac_try_echo=$ac_try;;
12010
esac
12011
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12012
$as_echo "$ac_try_echo") >&5
12013
  (eval "$ac_compile") 2>conftest.er1
12014
  ac_status=$?
12015
  grep -v '^ *+' conftest.er1 >conftest.err
12016
  rm -f conftest.er1
12017
  cat conftest.err >&5
12018
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019
  (exit $ac_status); } && {
12020
         test -z "$ac_c_werror_flag" ||
12021
         test ! -s conftest.err
12022
       } && test -s conftest.$ac_objext; then
12023 19 jeremybenn
  ac_compiler_gnu=yes
12024
else
12025 101 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
12026
sed 's/^/| /' conftest.$ac_ext >&5
12027
 
12028
        ac_compiler_gnu=no
12029 19 jeremybenn
fi
12030 101 jeremybenn
 
12031 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12032
ac_cv_c_compiler_gnu=$ac_compiler_gnu
12033
 
12034
fi
12035 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12036 82 jeremybenn
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
12037
if test $ac_compiler_gnu = yes; then
12038
  GCC=yes
12039
else
12040
  GCC=
12041
fi
12042 19 jeremybenn
ac_test_CFLAGS=${CFLAGS+set}
12043
ac_save_CFLAGS=$CFLAGS
12044 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12045 82 jeremybenn
$as_echo_n "checking whether $CC accepts -g... " >&6; }
12046 101 jeremybenn
if test "${ac_cv_prog_cc_g+set}" = set; then
12047 82 jeremybenn
  $as_echo_n "(cached) " >&6
12048 19 jeremybenn
else
12049
  ac_save_c_werror_flag=$ac_c_werror_flag
12050
   ac_c_werror_flag=yes
12051
   ac_cv_prog_cc_g=no
12052
   CFLAGS="-g"
12053 101 jeremybenn
   cat >conftest.$ac_ext <<_ACEOF
12054
/* confdefs.h.  */
12055
_ACEOF
12056
cat confdefs.h >>conftest.$ac_ext
12057
cat >>conftest.$ac_ext <<_ACEOF
12058 19 jeremybenn
/* end confdefs.h.  */
12059
 
12060
int
12061
main ()
12062
{
12063
 
12064
  ;
12065
  return 0;
12066
}
12067
_ACEOF
12068 101 jeremybenn
rm -f conftest.$ac_objext
12069
if { (ac_try="$ac_compile"
12070
case "(($ac_try" in
12071
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12072
  *) ac_try_echo=$ac_try;;
12073
esac
12074
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12075
$as_echo "$ac_try_echo") >&5
12076
  (eval "$ac_compile") 2>conftest.er1
12077
  ac_status=$?
12078
  grep -v '^ *+' conftest.er1 >conftest.err
12079
  rm -f conftest.er1
12080
  cat conftest.err >&5
12081
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082
  (exit $ac_status); } && {
12083
         test -z "$ac_c_werror_flag" ||
12084
         test ! -s conftest.err
12085
       } && test -s conftest.$ac_objext; then
12086 19 jeremybenn
  ac_cv_prog_cc_g=yes
12087
else
12088 101 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
12089
sed 's/^/| /' conftest.$ac_ext >&5
12090
 
12091
        CFLAGS=""
12092
      cat >conftest.$ac_ext <<_ACEOF
12093
/* confdefs.h.  */
12094
_ACEOF
12095
cat confdefs.h >>conftest.$ac_ext
12096
cat >>conftest.$ac_ext <<_ACEOF
12097 19 jeremybenn
/* end confdefs.h.  */
12098
 
12099
int
12100
main ()
12101
{
12102
 
12103
  ;
12104
  return 0;
12105
}
12106
_ACEOF
12107 101 jeremybenn
rm -f conftest.$ac_objext
12108
if { (ac_try="$ac_compile"
12109
case "(($ac_try" in
12110
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12111
  *) ac_try_echo=$ac_try;;
12112
esac
12113
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12114
$as_echo "$ac_try_echo") >&5
12115
  (eval "$ac_compile") 2>conftest.er1
12116
  ac_status=$?
12117
  grep -v '^ *+' conftest.er1 >conftest.err
12118
  rm -f conftest.er1
12119
  cat conftest.err >&5
12120
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121
  (exit $ac_status); } && {
12122
         test -z "$ac_c_werror_flag" ||
12123
         test ! -s conftest.err
12124
       } && test -s conftest.$ac_objext; then
12125
  :
12126
else
12127
  $as_echo "$as_me: failed program was:" >&5
12128
sed 's/^/| /' conftest.$ac_ext >&5
12129 98 jeremybenn
 
12130 101 jeremybenn
        ac_c_werror_flag=$ac_save_c_werror_flag
12131 19 jeremybenn
         CFLAGS="-g"
12132 101 jeremybenn
         cat >conftest.$ac_ext <<_ACEOF
12133
/* confdefs.h.  */
12134
_ACEOF
12135
cat confdefs.h >>conftest.$ac_ext
12136
cat >>conftest.$ac_ext <<_ACEOF
12137 19 jeremybenn
/* end confdefs.h.  */
12138
 
12139
int
12140
main ()
12141
{
12142
 
12143
  ;
12144
  return 0;
12145
}
12146
_ACEOF
12147 101 jeremybenn
rm -f conftest.$ac_objext
12148
if { (ac_try="$ac_compile"
12149
case "(($ac_try" in
12150
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12151
  *) ac_try_echo=$ac_try;;
12152
esac
12153
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12154
$as_echo "$ac_try_echo") >&5
12155
  (eval "$ac_compile") 2>conftest.er1
12156
  ac_status=$?
12157
  grep -v '^ *+' conftest.er1 >conftest.err
12158
  rm -f conftest.er1
12159
  cat conftest.err >&5
12160
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12161
  (exit $ac_status); } && {
12162
         test -z "$ac_c_werror_flag" ||
12163
         test ! -s conftest.err
12164
       } && test -s conftest.$ac_objext; then
12165 19 jeremybenn
  ac_cv_prog_cc_g=yes
12166 101 jeremybenn
else
12167
  $as_echo "$as_me: failed program was:" >&5
12168
sed 's/^/| /' conftest.$ac_ext >&5
12169
 
12170
 
12171 19 jeremybenn
fi
12172 101 jeremybenn
 
12173 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12174
fi
12175 101 jeremybenn
 
12176 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12177
fi
12178 101 jeremybenn
 
12179 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12180
   ac_c_werror_flag=$ac_save_c_werror_flag
12181
fi
12182 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12183 82 jeremybenn
$as_echo "$ac_cv_prog_cc_g" >&6; }
12184 19 jeremybenn
if test "$ac_test_CFLAGS" = set; then
12185
  CFLAGS=$ac_save_CFLAGS
12186
elif test $ac_cv_prog_cc_g = yes; then
12187
  if test "$GCC" = yes; then
12188
    CFLAGS="-g -O2"
12189
  else
12190
    CFLAGS="-g"
12191
  fi
12192
else
12193
  if test "$GCC" = yes; then
12194
    CFLAGS="-O2"
12195
  else
12196
    CFLAGS=
12197
  fi
12198
fi
12199 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
12200 82 jeremybenn
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12201 101 jeremybenn
if test "${ac_cv_prog_cc_c89+set}" = set; then
12202 82 jeremybenn
  $as_echo_n "(cached) " >&6
12203 19 jeremybenn
else
12204
  ac_cv_prog_cc_c89=no
12205
ac_save_CC=$CC
12206 101 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
12207
/* confdefs.h.  */
12208
_ACEOF
12209
cat confdefs.h >>conftest.$ac_ext
12210
cat >>conftest.$ac_ext <<_ACEOF
12211 19 jeremybenn
/* end confdefs.h.  */
12212
#include 
12213
#include 
12214
#include 
12215
#include 
12216
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12217
struct buf { int x; };
12218
FILE * (*rcsopen) (struct buf *, struct stat *, int);
12219
static char *e (p, i)
12220
     char **p;
12221
     int i;
12222
{
12223
  return p[i];
12224
}
12225
static char *f (char * (*g) (char **, int), char **p, ...)
12226
{
12227
  char *s;
12228
  va_list v;
12229
  va_start (v,p);
12230
  s = g (p, va_arg (v,int));
12231
  va_end (v);
12232
  return s;
12233
}
12234
 
12235
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12236
   function prototypes and stuff, but not '\xHH' hex character constants.
12237
   These don't provoke an error unfortunately, instead are silently treated
12238
   as 'x'.  The following induces an error, until -std is added to get
12239
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12240
   array size at least.  It's necessary to write '\x00'==0 to get something
12241
   that's true only with -std.  */
12242
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12243
 
12244
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12245
   inside strings and character constants.  */
12246
#define FOO(x) 'x'
12247
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12248
 
12249
int test (int i, double x);
12250
struct s1 {int (*f) (int a);};
12251
struct s2 {int (*f) (double a);};
12252
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12253
int argc;
12254
char **argv;
12255
int
12256
main ()
12257
{
12258
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12259
  ;
12260
  return 0;
12261
}
12262
_ACEOF
12263
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12264
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12265
do
12266
  CC="$ac_save_CC $ac_arg"
12267 101 jeremybenn
  rm -f conftest.$ac_objext
12268
if { (ac_try="$ac_compile"
12269
case "(($ac_try" in
12270
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12271
  *) ac_try_echo=$ac_try;;
12272
esac
12273
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12274
$as_echo "$ac_try_echo") >&5
12275
  (eval "$ac_compile") 2>conftest.er1
12276
  ac_status=$?
12277
  grep -v '^ *+' conftest.er1 >conftest.err
12278
  rm -f conftest.er1
12279
  cat conftest.err >&5
12280
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12281
  (exit $ac_status); } && {
12282
         test -z "$ac_c_werror_flag" ||
12283
         test ! -s conftest.err
12284
       } && test -s conftest.$ac_objext; then
12285 19 jeremybenn
  ac_cv_prog_cc_c89=$ac_arg
12286 101 jeremybenn
else
12287
  $as_echo "$as_me: failed program was:" >&5
12288
sed 's/^/| /' conftest.$ac_ext >&5
12289
 
12290
 
12291 19 jeremybenn
fi
12292 101 jeremybenn
 
12293 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext
12294
  test "x$ac_cv_prog_cc_c89" != "xno" && break
12295
done
12296
rm -f conftest.$ac_ext
12297
CC=$ac_save_CC
12298
 
12299
fi
12300
# AC_CACHE_VAL
12301
case "x$ac_cv_prog_cc_c89" in
12302
  x)
12303 101 jeremybenn
    { $as_echo "$as_me:$LINENO: result: none needed" >&5
12304 82 jeremybenn
$as_echo "none needed" >&6; } ;;
12305 19 jeremybenn
  xno)
12306 101 jeremybenn
    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
12307 82 jeremybenn
$as_echo "unsupported" >&6; } ;;
12308 19 jeremybenn
  *)
12309
    CC="$CC $ac_cv_prog_cc_c89"
12310 101 jeremybenn
    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
12311 82 jeremybenn
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12312 19 jeremybenn
esac
12313
 
12314
 
12315
ac_ext=c
12316
ac_cpp='$CPP $CPPFLAGS'
12317
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12318
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12319
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12320
 
12321
if test "x$CC" != xcc; then
12322 101 jeremybenn
  { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
12323 82 jeremybenn
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
12324 19 jeremybenn
else
12325 101 jeremybenn
  { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
12326 82 jeremybenn
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
12327 19 jeremybenn
fi
12328 82 jeremybenn
set dummy $CC; ac_cc=`$as_echo "$2" |
12329 19 jeremybenn
                      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12330 101 jeremybenn
if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
12331 82 jeremybenn
  $as_echo_n "(cached) " >&6
12332 19 jeremybenn
else
12333 101 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
12334
/* confdefs.h.  */
12335
_ACEOF
12336
cat confdefs.h >>conftest.$ac_ext
12337
cat >>conftest.$ac_ext <<_ACEOF
12338 19 jeremybenn
/* end confdefs.h.  */
12339
 
12340
int
12341
main ()
12342
{
12343
 
12344
  ;
12345
  return 0;
12346
}
12347
_ACEOF
12348
# Make sure it works both with $CC and with simple cc.
12349
# We do the test twice because some compilers refuse to overwrite an
12350
# existing .o file with -o, though they will create one.
12351
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12352
rm -f conftest2.*
12353 101 jeremybenn
if { (case "(($ac_try" in
12354 19 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12355
  *) ac_try_echo=$ac_try;;
12356
esac
12357 101 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12358
$as_echo "$ac_try_echo") >&5
12359 19 jeremybenn
  (eval "$ac_try") 2>&5
12360
  ac_status=$?
12361 101 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362
  (exit $ac_status); } &&
12363
   test -f conftest2.$ac_objext && { (case "(($ac_try" in
12364 19 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12365
  *) ac_try_echo=$ac_try;;
12366
esac
12367 101 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12368
$as_echo "$ac_try_echo") >&5
12369 19 jeremybenn
  (eval "$ac_try") 2>&5
12370
  ac_status=$?
12371 101 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12372
  (exit $ac_status); };
12373 19 jeremybenn
then
12374
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
12375
  if test "x$CC" != xcc; then
12376
    # Test first that cc exists at all.
12377
    if { ac_try='cc -c conftest.$ac_ext >&5'
12378 101 jeremybenn
  { (case "(($ac_try" in
12379 19 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12380
  *) ac_try_echo=$ac_try;;
12381
esac
12382 101 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12383
$as_echo "$ac_try_echo") >&5
12384 19 jeremybenn
  (eval "$ac_try") 2>&5
12385
  ac_status=$?
12386 101 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387
  (exit $ac_status); }; }; then
12388 19 jeremybenn
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12389
      rm -f conftest2.*
12390 101 jeremybenn
      if { (case "(($ac_try" in
12391 19 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12392
  *) ac_try_echo=$ac_try;;
12393
esac
12394 101 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12395
$as_echo "$ac_try_echo") >&5
12396 19 jeremybenn
  (eval "$ac_try") 2>&5
12397
  ac_status=$?
12398 101 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399
  (exit $ac_status); } &&
12400
         test -f conftest2.$ac_objext && { (case "(($ac_try" in
12401 19 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12402
  *) ac_try_echo=$ac_try;;
12403
esac
12404 101 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12405
$as_echo "$ac_try_echo") >&5
12406 19 jeremybenn
  (eval "$ac_try") 2>&5
12407
  ac_status=$?
12408 101 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12409
  (exit $ac_status); };
12410 19 jeremybenn
      then
12411
        # cc works too.
12412
        :
12413
      else
12414
        # cc exists but doesn't like -o.
12415
        eval ac_cv_prog_cc_${ac_cc}_c_o=no
12416
      fi
12417
    fi
12418
  fi
12419
else
12420
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
12421
fi
12422
rm -f core conftest*
12423
 
12424
fi
12425
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
12426 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: yes" >&5
12427 82 jeremybenn
$as_echo "yes" >&6; }
12428 19 jeremybenn
else
12429 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
12430 82 jeremybenn
$as_echo "no" >&6; }
12431 19 jeremybenn
 
12432 101 jeremybenn
cat >>confdefs.h <<\_ACEOF
12433
#define NO_MINUS_C_MINUS_O 1
12434
_ACEOF
12435 19 jeremybenn
 
12436
fi
12437
 
12438
# FIXME: we rely on the cache variable name because
12439
# there is no other way.
12440
set dummy $CC
12441 82 jeremybenn
am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12442
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
12443
if test "$am_t" != yes; then
12444 19 jeremybenn
   # Losing compiler, so override with the script.
12445
   # FIXME: It is wrong to rewrite CC.
12446
   # But if we don't then we get into trouble of one sort or another.
12447
   # A longer-term fix would be to have automake use am__CC in this case,
12448
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12449
   CC="$am_aux_dir/compile $CC"
12450
fi
12451
 
12452
 
12453
 
12454 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
12455 82 jeremybenn
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
12456
set x ${MAKE-make}
12457
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
12458 101 jeremybenn
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
12459 82 jeremybenn
  $as_echo_n "(cached) " >&6
12460 19 jeremybenn
else
12461
  cat >conftest.make <<\_ACEOF
12462
SHELL = /bin/sh
12463
all:
12464
        @echo '@@@%%%=$(MAKE)=@@@%%%'
12465
_ACEOF
12466
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
12467
case `${MAKE-make} -f conftest.make 2>/dev/null` in
12468
  *@@@%%%=?*=@@@%%%*)
12469
    eval ac_cv_prog_make_${ac_make}_set=yes;;
12470
  *)
12471
    eval ac_cv_prog_make_${ac_make}_set=no;;
12472
esac
12473
rm -f conftest.make
12474
fi
12475
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
12476 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: yes" >&5
12477 82 jeremybenn
$as_echo "yes" >&6; }
12478 19 jeremybenn
  SET_MAKE=
12479
else
12480 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
12481 82 jeremybenn
$as_echo "no" >&6; }
12482 19 jeremybenn
  SET_MAKE="MAKE=${MAKE-make}"
12483
fi
12484
 
12485
 
12486 101 jeremybenn
# Find a good install program.  We prefer a C program (faster),
12487
# so one script is as good as another.  But avoid the broken or
12488
# incompatible versions:
12489
# SysV /etc/install, /usr/sbin/install
12490
# SunOS /usr/etc/install
12491
# IRIX /sbin/install
12492
# AIX /bin/install
12493
# AmigaOS /C/install, which installs bootblocks on floppy discs
12494
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12495
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
12496
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
12497
# OS/2's system install, which has a completely different semantic
12498
# ./install, which can be erroneously created by make from ./install.sh.
12499
# Reject install programs that cannot install multiple files.
12500
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12501
$as_echo_n "checking for a BSD-compatible install... " >&6; }
12502
if test -z "$INSTALL"; then
12503
if test "${ac_cv_path_install+set}" = set; then
12504
  $as_echo_n "(cached) " >&6
12505
else
12506
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12507
for as_dir in $PATH
12508
do
12509
  IFS=$as_save_IFS
12510
  test -z "$as_dir" && as_dir=.
12511
  # Account for people who put trailing slashes in PATH elements.
12512
case $as_dir/ in
12513
  ./ | .// | /cC/* | \
12514
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
12515
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
12516
  /usr/ucb/* ) ;;
12517
  *)
12518
    # OSF1 and SCO ODT 3.0 have their own names for install.
12519
    # Don't use installbsd from OSF since it installs stuff as root
12520
    # by default.
12521
    for ac_prog in ginstall scoinst install; do
12522
      for ac_exec_ext in '' $ac_executable_extensions; do
12523
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
12524
          if test $ac_prog = install &&
12525
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12526
            # AIX install.  It has an incompatible calling convention.
12527
            :
12528
          elif test $ac_prog = install &&
12529
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12530
            # program-specific install script used by HP pwplus--don't use.
12531
            :
12532
          else
12533
            rm -rf conftest.one conftest.two conftest.dir
12534
            echo one > conftest.one
12535
            echo two > conftest.two
12536
            mkdir conftest.dir
12537
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
12538
              test -s conftest.one && test -s conftest.two &&
12539
              test -s conftest.dir/conftest.one &&
12540
              test -s conftest.dir/conftest.two
12541
            then
12542
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12543
              break 3
12544
            fi
12545
          fi
12546
        fi
12547
      done
12548
    done
12549
    ;;
12550
esac
12551 82 jeremybenn
 
12552 101 jeremybenn
done
12553
IFS=$as_save_IFS
12554
 
12555
rm -rf conftest.one conftest.two conftest.dir
12556
 
12557
fi
12558
  if test "${ac_cv_path_install+set}" = set; then
12559
    INSTALL=$ac_cv_path_install
12560
  else
12561
    # As a last resort, use the slow shell script.  Don't cache a
12562
    # value for INSTALL within a source directory, because that will
12563
    # break other packages using the cache if that directory is
12564
    # removed, or if the value is a relative name.
12565
    INSTALL=$ac_install_sh
12566
  fi
12567
fi
12568
{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
12569
$as_echo "$INSTALL" >&6; }
12570
 
12571
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12572
# It thinks the first close brace ends the variable substitution.
12573
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12574
 
12575
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12576
 
12577
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12578
 
12579 19 jeremybenn
# Extract the first word of "ar", so it can be a program name with args.
12580
set dummy ar; ac_word=$2
12581 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12582 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
12583 101 jeremybenn
if test "${ac_cv_prog_AR+set}" = set; then
12584 82 jeremybenn
  $as_echo_n "(cached) " >&6
12585 19 jeremybenn
else
12586
  if test -n "$AR"; then
12587
  ac_cv_prog_AR="$AR" # Let the user override the test.
12588
else
12589
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12590
for as_dir in $PATH
12591
do
12592
  IFS=$as_save_IFS
12593
  test -z "$as_dir" && as_dir=.
12594 101 jeremybenn
  for ac_exec_ext in '' $ac_executable_extensions; do
12595 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12596
    ac_cv_prog_AR="ar"
12597 101 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12598 19 jeremybenn
    break 2
12599
  fi
12600
done
12601 101 jeremybenn
done
12602 19 jeremybenn
IFS=$as_save_IFS
12603
 
12604
fi
12605
fi
12606
AR=$ac_cv_prog_AR
12607
if test -n "$AR"; then
12608 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $AR" >&5
12609 82 jeremybenn
$as_echo "$AR" >&6; }
12610 19 jeremybenn
else
12611 101 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
12612 82 jeremybenn
$as_echo "no" >&6; }
12613 19 jeremybenn
fi
12614
 
12615
 
12616
 
12617
# Set default for ARFLAGS, since autoconf does not have a macro for it.
12618
# This allows people to set it when running configure or make
12619
test -n "$ARFLAGS" || ARFLAGS="cr"
12620
 
12621 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12622 82 jeremybenn
$as_echo_n "checking return type of signal handlers... " >&6; }
12623 101 jeremybenn
if test "${ac_cv_type_signal+set}" = set; then
12624 82 jeremybenn
  $as_echo_n "(cached) " >&6
12625 19 jeremybenn
else
12626 101 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
12627
/* confdefs.h.  */
12628
_ACEOF
12629
cat confdefs.h >>conftest.$ac_ext
12630
cat >>conftest.$ac_ext <<_ACEOF
12631 19 jeremybenn
/* end confdefs.h.  */
12632
#include 
12633
#include 
12634
 
12635
int
12636
main ()
12637
{
12638
return *(signal (0, 0)) (0) == 1;
12639
  ;
12640
  return 0;
12641
}
12642
_ACEOF
12643 101 jeremybenn
rm -f conftest.$ac_objext
12644
if { (ac_try="$ac_compile"
12645
case "(($ac_try" in
12646
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12647
  *) ac_try_echo=$ac_try;;
12648
esac
12649
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12650
$as_echo "$ac_try_echo") >&5
12651
  (eval "$ac_compile") 2>conftest.er1
12652
  ac_status=$?
12653
  grep -v '^ *+' conftest.er1 >conftest.err
12654
  rm -f conftest.er1
12655
  cat conftest.err >&5
12656
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657
  (exit $ac_status); } && {
12658
         test -z "$ac_c_werror_flag" ||
12659
         test ! -s conftest.err
12660
       } && test -s conftest.$ac_objext; then
12661 19 jeremybenn
  ac_cv_type_signal=int
12662
else
12663 101 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
12664
sed 's/^/| /' conftest.$ac_ext >&5
12665
 
12666
        ac_cv_type_signal=void
12667 19 jeremybenn
fi
12668 101 jeremybenn
 
12669 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12670
fi
12671 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12672 82 jeremybenn
$as_echo "$ac_cv_type_signal" >&6; }
12673 19 jeremybenn
 
12674
cat >>confdefs.h <<_ACEOF
12675
#define RETSIGTYPE $ac_cv_type_signal
12676
_ACEOF
12677
 
12678
 
12679 101 jeremybenn
 
12680
 
12681
 
12682
 
12683
 
12684
 
12685
 
12686
 
12687
 
12688
 
12689
 
12690
 
12691
 
12692
 
12693
 
12694
 
12695
 
12696
 
12697
 
12698
 
12699
 
12700
 
12701 82 jeremybenn
for ac_header in unistd.h stdlib.h varargs.h stdarg.h string.h strings.h      \
12702
                 sys/ptem.h sys/pte.h sys/stream.h sys/stropts.h sys/select.h \
12703
                 termcap.h termios.h termio.h sys/file.h locale.h getopt.h    \
12704
                 net/ethernet.h sys/ethernet.h malloc.h inttypes.h libintl.h
12705 101 jeremybenn
do
12706
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12707
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12708
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12709
$as_echo_n "checking for $ac_header... " >&6; }
12710
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12711
  $as_echo_n "(cached) " >&6
12712
fi
12713
ac_res=`eval 'as_val=${'$as_ac_Header'}
12714
                 $as_echo "$as_val"'`
12715
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12716
$as_echo "$ac_res" >&6; }
12717
else
12718
  # Is the header compilable?
12719
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12720
$as_echo_n "checking $ac_header usability... " >&6; }
12721
cat >conftest.$ac_ext <<_ACEOF
12722
/* confdefs.h.  */
12723
_ACEOF
12724
cat confdefs.h >>conftest.$ac_ext
12725
cat >>conftest.$ac_ext <<_ACEOF
12726
/* end confdefs.h.  */
12727
$ac_includes_default
12728
#include <$ac_header>
12729
_ACEOF
12730
rm -f conftest.$ac_objext
12731
if { (ac_try="$ac_compile"
12732
case "(($ac_try" in
12733
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12734
  *) ac_try_echo=$ac_try;;
12735
esac
12736
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12737
$as_echo "$ac_try_echo") >&5
12738
  (eval "$ac_compile") 2>conftest.er1
12739
  ac_status=$?
12740
  grep -v '^ *+' conftest.er1 >conftest.err
12741
  rm -f conftest.er1
12742
  cat conftest.err >&5
12743
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744
  (exit $ac_status); } && {
12745
         test -z "$ac_c_werror_flag" ||
12746
         test ! -s conftest.err
12747
       } && test -s conftest.$ac_objext; then
12748
  ac_header_compiler=yes
12749
else
12750
  $as_echo "$as_me: failed program was:" >&5
12751
sed 's/^/| /' conftest.$ac_ext >&5
12752
 
12753
        ac_header_compiler=no
12754
fi
12755
 
12756
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12757
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12758
$as_echo "$ac_header_compiler" >&6; }
12759
 
12760
# Is the header present?
12761
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12762
$as_echo_n "checking $ac_header presence... " >&6; }
12763
cat >conftest.$ac_ext <<_ACEOF
12764
/* confdefs.h.  */
12765
_ACEOF
12766
cat confdefs.h >>conftest.$ac_ext
12767
cat >>conftest.$ac_ext <<_ACEOF
12768
/* end confdefs.h.  */
12769
#include <$ac_header>
12770
_ACEOF
12771
if { (ac_try="$ac_cpp conftest.$ac_ext"
12772
case "(($ac_try" in
12773
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12774
  *) ac_try_echo=$ac_try;;
12775
esac
12776
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12777
$as_echo "$ac_try_echo") >&5
12778
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12779
  ac_status=$?
12780
  grep -v '^ *+' conftest.er1 >conftest.err
12781
  rm -f conftest.er1
12782
  cat conftest.err >&5
12783
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12784
  (exit $ac_status); } >/dev/null && {
12785
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12786
         test ! -s conftest.err
12787
       }; then
12788
  ac_header_preproc=yes
12789
else
12790
  $as_echo "$as_me: failed program was:" >&5
12791
sed 's/^/| /' conftest.$ac_ext >&5
12792
 
12793
  ac_header_preproc=no
12794
fi
12795
 
12796
rm -f conftest.err conftest.$ac_ext
12797
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12798
$as_echo "$ac_header_preproc" >&6; }
12799
 
12800
# So?  What about this header?
12801
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12802
  yes:no: )
12803
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12804
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12805
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12806
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12807
    ac_header_preproc=yes
12808
    ;;
12809
  no:yes:* )
12810
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12811
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12812
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12813
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12814
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12815
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12816
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12817
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12818
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12819
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12820
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12821
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12822
    ( cat <<\_ASBOX
12823
## ------------------------------------- ##
12824
## Report this to openrisc@opencores.org ##
12825
## ------------------------------------- ##
12826
_ASBOX
12827
     ) | sed "s/^/$as_me: WARNING:     /" >&2
12828
    ;;
12829
esac
12830
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12831
$as_echo_n "checking for $ac_header... " >&6; }
12832
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12833
  $as_echo_n "(cached) " >&6
12834
else
12835
  eval "$as_ac_Header=\$ac_header_preproc"
12836
fi
12837
ac_res=`eval 'as_val=${'$as_ac_Header'}
12838
                 $as_echo "$as_val"'`
12839
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12840
$as_echo "$ac_res" >&6; }
12841
 
12842
fi
12843
as_val=`eval 'as_val=${'$as_ac_Header'}
12844
                 $as_echo "$as_val"'`
12845
   if test "x$as_val" = x""yes; then
12846 82 jeremybenn
  cat >>confdefs.h <<_ACEOF
12847
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12848 19 jeremybenn
_ACEOF
12849
 
12850
fi
12851
 
12852
done
12853
 
12854 101 jeremybenn
 
12855
 
12856
 
12857
 
12858
 
12859
 
12860
 
12861 19 jeremybenn
for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat
12862 101 jeremybenn
do
12863
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12864
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12865
$as_echo_n "checking for $ac_func... " >&6; }
12866
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12867
  $as_echo_n "(cached) " >&6
12868
else
12869
  cat >conftest.$ac_ext <<_ACEOF
12870
/* confdefs.h.  */
12871
_ACEOF
12872
cat confdefs.h >>conftest.$ac_ext
12873
cat >>conftest.$ac_ext <<_ACEOF
12874
/* end confdefs.h.  */
12875
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
12876
   For example, HP-UX 11i  declares gettimeofday.  */
12877
#define $ac_func innocuous_$ac_func
12878
 
12879
/* System header to define __stub macros and hopefully few prototypes,
12880
    which can conflict with char $ac_func (); below.
12881
    Prefer  to  if __STDC__ is defined, since
12882
     exists even on freestanding compilers.  */
12883
 
12884
#ifdef __STDC__
12885
# include 
12886
#else
12887
# include 
12888
#endif
12889
 
12890
#undef $ac_func
12891
 
12892
/* Override any GCC internal prototype to avoid an error.
12893
   Use char because int might match the return type of a GCC
12894
   builtin and then its argument prototype would still apply.  */
12895
#ifdef __cplusplus
12896
extern "C"
12897
#endif
12898
char $ac_func ();
12899
/* The GNU C library defines this for functions which it implements
12900
    to always fail with ENOSYS.  Some functions are actually named
12901
    something starting with __ and the normal name is an alias.  */
12902
#if defined __stub_$ac_func || defined __stub___$ac_func
12903
choke me
12904
#endif
12905
 
12906
int
12907
main ()
12908
{
12909
return $ac_func ();
12910
  ;
12911
  return 0;
12912
}
12913
_ACEOF
12914
rm -f conftest.$ac_objext conftest$ac_exeext
12915
if { (ac_try="$ac_link"
12916
case "(($ac_try" in
12917
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12918
  *) ac_try_echo=$ac_try;;
12919
esac
12920
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12921
$as_echo "$ac_try_echo") >&5
12922
  (eval "$ac_link") 2>conftest.er1
12923
  ac_status=$?
12924
  grep -v '^ *+' conftest.er1 >conftest.err
12925
  rm -f conftest.er1
12926
  cat conftest.err >&5
12927
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12928
  (exit $ac_status); } && {
12929
         test -z "$ac_c_werror_flag" ||
12930
         test ! -s conftest.err
12931
       } && test -s conftest$ac_exeext && {
12932
         test "$cross_compiling" = yes ||
12933
         $as_test_x conftest$ac_exeext
12934
       }; then
12935
  eval "$as_ac_var=yes"
12936
else
12937
  $as_echo "$as_me: failed program was:" >&5
12938
sed 's/^/| /' conftest.$ac_ext >&5
12939
 
12940
        eval "$as_ac_var=no"
12941
fi
12942
 
12943
rm -rf conftest.dSYM
12944
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12945
      conftest$ac_exeext conftest.$ac_ext
12946
fi
12947
ac_res=`eval 'as_val=${'$as_ac_var'}
12948
                 $as_echo "$as_val"'`
12949
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12950
$as_echo "$ac_res" >&6; }
12951
as_val=`eval 'as_val=${'$as_ac_var'}
12952
                 $as_echo "$as_val"'`
12953
   if test "x$as_val" = x""yes; then
12954 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
12955 82 jeremybenn
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12956 19 jeremybenn
_ACEOF
12957
 
12958
fi
12959
done
12960
 
12961 101 jeremybenn
 
12962
 
12963
 
12964
 
12965 82 jeremybenn
for ac_func in grantpt unlockpt ptsname on_exit
12966 101 jeremybenn
do
12967
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12968
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12969
$as_echo_n "checking for $ac_func... " >&6; }
12970
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12971
  $as_echo_n "(cached) " >&6
12972
else
12973
  cat >conftest.$ac_ext <<_ACEOF
12974
/* confdefs.h.  */
12975
_ACEOF
12976
cat confdefs.h >>conftest.$ac_ext
12977
cat >>conftest.$ac_ext <<_ACEOF
12978
/* end confdefs.h.  */
12979
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
12980
   For example, HP-UX 11i  declares gettimeofday.  */
12981
#define $ac_func innocuous_$ac_func
12982
 
12983
/* System header to define __stub macros and hopefully few prototypes,
12984
    which can conflict with char $ac_func (); below.
12985
    Prefer  to  if __STDC__ is defined, since
12986
     exists even on freestanding compilers.  */
12987
 
12988
#ifdef __STDC__
12989
# include 
12990
#else
12991
# include 
12992
#endif
12993
 
12994
#undef $ac_func
12995
 
12996
/* Override any GCC internal prototype to avoid an error.
12997
   Use char because int might match the return type of a GCC
12998
   builtin and then its argument prototype would still apply.  */
12999
#ifdef __cplusplus
13000
extern "C"
13001
#endif
13002
char $ac_func ();
13003
/* The GNU C library defines this for functions which it implements
13004
    to always fail with ENOSYS.  Some functions are actually named
13005
    something starting with __ and the normal name is an alias.  */
13006
#if defined __stub_$ac_func || defined __stub___$ac_func
13007
choke me
13008
#endif
13009
 
13010
int
13011
main ()
13012
{
13013
return $ac_func ();
13014
  ;
13015
  return 0;
13016
}
13017
_ACEOF
13018
rm -f conftest.$ac_objext conftest$ac_exeext
13019
if { (ac_try="$ac_link"
13020
case "(($ac_try" in
13021
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13022
  *) ac_try_echo=$ac_try;;
13023
esac
13024
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13025
$as_echo "$ac_try_echo") >&5
13026
  (eval "$ac_link") 2>conftest.er1
13027
  ac_status=$?
13028
  grep -v '^ *+' conftest.er1 >conftest.err
13029
  rm -f conftest.er1
13030
  cat conftest.err >&5
13031
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13032
  (exit $ac_status); } && {
13033
         test -z "$ac_c_werror_flag" ||
13034
         test ! -s conftest.err
13035
       } && test -s conftest$ac_exeext && {
13036
         test "$cross_compiling" = yes ||
13037
         $as_test_x conftest$ac_exeext
13038
       }; then
13039
  eval "$as_ac_var=yes"
13040
else
13041
  $as_echo "$as_me: failed program was:" >&5
13042
sed 's/^/| /' conftest.$ac_ext >&5
13043
 
13044
        eval "$as_ac_var=no"
13045
fi
13046
 
13047
rm -rf conftest.dSYM
13048
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13049
      conftest$ac_exeext conftest.$ac_ext
13050
fi
13051
ac_res=`eval 'as_val=${'$as_ac_var'}
13052
                 $as_echo "$as_val"'`
13053
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13054
$as_echo "$ac_res" >&6; }
13055
as_val=`eval 'as_val=${'$as_ac_var'}
13056
                 $as_echo "$as_val"'`
13057
   if test "x$as_val" = x""yes; then
13058 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
13059 82 jeremybenn
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13060 19 jeremybenn
_ACEOF
13061
 
13062
fi
13063
done
13064
 
13065 101 jeremybenn
 
13066 19 jeremybenn
for ac_func in basename
13067 101 jeremybenn
do
13068
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13069
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13070
$as_echo_n "checking for $ac_func... " >&6; }
13071
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13072
  $as_echo_n "(cached) " >&6
13073
else
13074
  cat >conftest.$ac_ext <<_ACEOF
13075
/* confdefs.h.  */
13076
_ACEOF
13077
cat confdefs.h >>conftest.$ac_ext
13078
cat >>conftest.$ac_ext <<_ACEOF
13079
/* end confdefs.h.  */
13080
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
13081
   For example, HP-UX 11i  declares gettimeofday.  */
13082
#define $ac_func innocuous_$ac_func
13083
 
13084
/* System header to define __stub macros and hopefully few prototypes,
13085
    which can conflict with char $ac_func (); below.
13086
    Prefer  to  if __STDC__ is defined, since
13087
     exists even on freestanding compilers.  */
13088
 
13089
#ifdef __STDC__
13090
# include 
13091
#else
13092
# include 
13093
#endif
13094
 
13095
#undef $ac_func
13096
 
13097
/* Override any GCC internal prototype to avoid an error.
13098
   Use char because int might match the return type of a GCC
13099
   builtin and then its argument prototype would still apply.  */
13100
#ifdef __cplusplus
13101
extern "C"
13102
#endif
13103
char $ac_func ();
13104
/* The GNU C library defines this for functions which it implements
13105
    to always fail with ENOSYS.  Some functions are actually named
13106
    something starting with __ and the normal name is an alias.  */
13107
#if defined __stub_$ac_func || defined __stub___$ac_func
13108
choke me
13109
#endif
13110
 
13111
int
13112
main ()
13113
{
13114
return $ac_func ();
13115
  ;
13116
  return 0;
13117
}
13118
_ACEOF
13119
rm -f conftest.$ac_objext conftest$ac_exeext
13120
if { (ac_try="$ac_link"
13121
case "(($ac_try" in
13122
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13123
  *) ac_try_echo=$ac_try;;
13124
esac
13125
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13126
$as_echo "$ac_try_echo") >&5
13127
  (eval "$ac_link") 2>conftest.er1
13128
  ac_status=$?
13129
  grep -v '^ *+' conftest.er1 >conftest.err
13130
  rm -f conftest.er1
13131
  cat conftest.err >&5
13132
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13133
  (exit $ac_status); } && {
13134
         test -z "$ac_c_werror_flag" ||
13135
         test ! -s conftest.err
13136
       } && test -s conftest$ac_exeext && {
13137
         test "$cross_compiling" = yes ||
13138
         $as_test_x conftest$ac_exeext
13139
       }; then
13140
  eval "$as_ac_var=yes"
13141
else
13142
  $as_echo "$as_me: failed program was:" >&5
13143
sed 's/^/| /' conftest.$ac_ext >&5
13144
 
13145
        eval "$as_ac_var=no"
13146
fi
13147
 
13148
rm -rf conftest.dSYM
13149
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13150
      conftest$ac_exeext conftest.$ac_ext
13151
fi
13152
ac_res=`eval 'as_val=${'$as_ac_var'}
13153
                 $as_echo "$as_val"'`
13154
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13155
$as_echo "$ac_res" >&6; }
13156
as_val=`eval 'as_val=${'$as_ac_var'}
13157
                 $as_echo "$as_val"'`
13158
   if test "x$as_val" = x""yes; then
13159 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
13160 101 jeremybenn
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13161 19 jeremybenn
_ACEOF
13162
 
13163
fi
13164
done
13165
 
13166 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for working strcoll" >&5
13167 82 jeremybenn
$as_echo_n "checking for working strcoll... " >&6; }
13168 101 jeremybenn
if test "${ac_cv_func_strcoll_works+set}" = set; then
13169 82 jeremybenn
  $as_echo_n "(cached) " >&6
13170 19 jeremybenn
else
13171 101 jeremybenn
  if test "$cross_compiling" = yes; then
13172 19 jeremybenn
  ac_cv_func_strcoll_works=no
13173
else
13174 101 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
13175
/* confdefs.h.  */
13176
_ACEOF
13177
cat confdefs.h >>conftest.$ac_ext
13178
cat >>conftest.$ac_ext <<_ACEOF
13179 19 jeremybenn
/* end confdefs.h.  */
13180
$ac_includes_default
13181
int
13182
main ()
13183
{
13184
return (strcoll ("abc", "def") >= 0 ||
13185
         strcoll ("ABC", "DEF") >= 0 ||
13186
         strcoll ("123", "456") >= 0)
13187
  ;
13188
  return 0;
13189
}
13190
_ACEOF
13191 101 jeremybenn
rm -f conftest$ac_exeext
13192
if { (ac_try="$ac_link"
13193
case "(($ac_try" in
13194
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13195
  *) ac_try_echo=$ac_try;;
13196
esac
13197
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13198
$as_echo "$ac_try_echo") >&5
13199
  (eval "$ac_link") 2>&5
13200
  ac_status=$?
13201
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13202
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13203
  { (case "(($ac_try" in
13204
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13205
  *) ac_try_echo=$ac_try;;
13206
esac
13207
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13208
$as_echo "$ac_try_echo") >&5
13209
  (eval "$ac_try") 2>&5
13210
  ac_status=$?
13211
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13212
  (exit $ac_status); }; }; then
13213 19 jeremybenn
  ac_cv_func_strcoll_works=yes
13214
else
13215 101 jeremybenn
  $as_echo "$as_me: program exited with status $ac_status" >&5
13216
$as_echo "$as_me: failed program was:" >&5
13217
sed 's/^/| /' conftest.$ac_ext >&5
13218
 
13219
( exit $ac_status )
13220
ac_cv_func_strcoll_works=no
13221 19 jeremybenn
fi
13222 101 jeremybenn
rm -rf conftest.dSYM
13223
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13224 19 jeremybenn
fi
13225
 
13226 101 jeremybenn
 
13227 19 jeremybenn
fi
13228 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
13229 82 jeremybenn
$as_echo "$ac_cv_func_strcoll_works" >&6; }
13230 19 jeremybenn
if test $ac_cv_func_strcoll_works = yes; then
13231
 
13232 101 jeremybenn
cat >>confdefs.h <<\_ACEOF
13233
#define HAVE_STRCOLL 1
13234
_ACEOF
13235 19 jeremybenn
 
13236
fi
13237
 
13238 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether I_PUSH is declared" >&5
13239
$as_echo_n "checking whether I_PUSH is declared... " >&6; }
13240
if test "${ac_cv_have_decl_I_PUSH+set}" = set; then
13241
  $as_echo_n "(cached) " >&6
13242
else
13243
  cat >conftest.$ac_ext <<_ACEOF
13244
/* confdefs.h.  */
13245
_ACEOF
13246
cat confdefs.h >>conftest.$ac_ext
13247
cat >>conftest.$ac_ext <<_ACEOF
13248
/* end confdefs.h.  */
13249
\
13250 82 jeremybenn
               #include 
13251 101 jeremybenn
 
13252
int
13253
main ()
13254
{
13255
#ifndef I_PUSH
13256
  (void) I_PUSH;
13257
#endif
13258
 
13259
  ;
13260
  return 0;
13261
}
13262
_ACEOF
13263
rm -f conftest.$ac_objext
13264
if { (ac_try="$ac_compile"
13265
case "(($ac_try" in
13266
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13267
  *) ac_try_echo=$ac_try;;
13268
esac
13269
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13270
$as_echo "$ac_try_echo") >&5
13271
  (eval "$ac_compile") 2>conftest.er1
13272
  ac_status=$?
13273
  grep -v '^ *+' conftest.er1 >conftest.err
13274
  rm -f conftest.er1
13275
  cat conftest.err >&5
13276
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13277
  (exit $ac_status); } && {
13278
         test -z "$ac_c_werror_flag" ||
13279
         test ! -s conftest.err
13280
       } && test -s conftest.$ac_objext; then
13281
  ac_cv_have_decl_I_PUSH=yes
13282 19 jeremybenn
else
13283 101 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
13284
sed 's/^/| /' conftest.$ac_ext >&5
13285
 
13286
        ac_cv_have_decl_I_PUSH=no
13287 19 jeremybenn
fi
13288
 
13289 101 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13290
fi
13291
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_I_PUSH" >&5
13292
$as_echo "$ac_cv_have_decl_I_PUSH" >&6; }
13293
if test "x$ac_cv_have_decl_I_PUSH" = x""yes; then
13294
 
13295 82 jeremybenn
cat >>confdefs.h <<_ACEOF
13296 101 jeremybenn
#define HAVE_DECL_I_PUSH 1
13297 19 jeremybenn
_ACEOF
13298 101 jeremybenn
 
13299
 
13300
else
13301
  cat >>confdefs.h <<_ACEOF
13302
#define HAVE_DECL_I_PUSH 0
13303
_ACEOF
13304
 
13305
 
13306
fi
13307
{ $as_echo "$as_me:$LINENO: checking whether rl_event_hook is declared" >&5
13308
$as_echo_n "checking whether rl_event_hook is declared... " >&6; }
13309
if test "${ac_cv_have_decl_rl_event_hook+set}" = set; then
13310
  $as_echo_n "(cached) " >&6
13311
else
13312
  cat >conftest.$ac_ext <<_ACEOF
13313
/* confdefs.h.  */
13314
_ACEOF
13315
cat confdefs.h >>conftest.$ac_ext
13316
cat >>conftest.$ac_ext <<_ACEOF
13317
/* end confdefs.h.  */
13318
\
13319 82 jeremybenn
               #include 
13320 101 jeremybenn
 
13321
int
13322
main ()
13323
{
13324
#ifndef rl_event_hook
13325
  (void) rl_event_hook;
13326
#endif
13327
 
13328
  ;
13329
  return 0;
13330
}
13331
_ACEOF
13332
rm -f conftest.$ac_objext
13333
if { (ac_try="$ac_compile"
13334
case "(($ac_try" in
13335
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13336
  *) ac_try_echo=$ac_try;;
13337
esac
13338
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13339
$as_echo "$ac_try_echo") >&5
13340
  (eval "$ac_compile") 2>conftest.er1
13341
  ac_status=$?
13342
  grep -v '^ *+' conftest.er1 >conftest.err
13343
  rm -f conftest.er1
13344
  cat conftest.err >&5
13345
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13346
  (exit $ac_status); } && {
13347
         test -z "$ac_c_werror_flag" ||
13348
         test ! -s conftest.err
13349
       } && test -s conftest.$ac_objext; then
13350
  ac_cv_have_decl_rl_event_hook=yes
13351 19 jeremybenn
else
13352 101 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
13353
sed 's/^/| /' conftest.$ac_ext >&5
13354
 
13355
        ac_cv_have_decl_rl_event_hook=no
13356 19 jeremybenn
fi
13357
 
13358 101 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13359
fi
13360
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_rl_event_hook" >&5
13361
$as_echo "$ac_cv_have_decl_rl_event_hook" >&6; }
13362
if test "x$ac_cv_have_decl_rl_event_hook" = x""yes; then
13363
 
13364 82 jeremybenn
cat >>confdefs.h <<_ACEOF
13365 101 jeremybenn
#define HAVE_DECL_RL_EVENT_HOOK 1
13366 19 jeremybenn
_ACEOF
13367
 
13368 101 jeremybenn
 
13369
else
13370
  cat >>confdefs.h <<_ACEOF
13371
#define HAVE_DECL_RL_EVENT_HOOK 0
13372
_ACEOF
13373
 
13374
 
13375
fi
13376
 
13377
 
13378
 
13379
 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13380 82 jeremybenn
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13381 101 jeremybenn
if test "${ac_cv_c_bigendian+set}" = set; then
13382 82 jeremybenn
  $as_echo_n "(cached) " >&6
13383 19 jeremybenn
else
13384 82 jeremybenn
  ac_cv_c_bigendian=unknown
13385
    # See if we're dealing with a universal compiler.
13386 101 jeremybenn
    cat >conftest.$ac_ext <<_ACEOF
13387
/* confdefs.h.  */
13388
_ACEOF
13389
cat confdefs.h >>conftest.$ac_ext
13390
cat >>conftest.$ac_ext <<_ACEOF
13391 19 jeremybenn
/* end confdefs.h.  */
13392 82 jeremybenn
#ifndef __APPLE_CC__
13393
               not a universal capable compiler
13394
             #endif
13395
             typedef int dummy;
13396
 
13397 19 jeremybenn
_ACEOF
13398 101 jeremybenn
rm -f conftest.$ac_objext
13399
if { (ac_try="$ac_compile"
13400
case "(($ac_try" in
13401
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13402
  *) ac_try_echo=$ac_try;;
13403
esac
13404
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13405
$as_echo "$ac_try_echo") >&5
13406
  (eval "$ac_compile") 2>conftest.er1
13407
  ac_status=$?
13408
  grep -v '^ *+' conftest.er1 >conftest.err
13409
  rm -f conftest.er1
13410
  cat conftest.err >&5
13411
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13412
  (exit $ac_status); } && {
13413
         test -z "$ac_c_werror_flag" ||
13414
         test ! -s conftest.err
13415
       } && test -s conftest.$ac_objext; then
13416 82 jeremybenn
 
13417
        # Check for potential -arch flags.  It is not universal unless
13418 101 jeremybenn
        # there are some -arch flags.  Note that *ppc* also matches
13419
        # ppc64.  This check is also rather less than ideal.
13420
        case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in  #(
13421
          *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
13422
        esac
13423
else
13424
  $as_echo "$as_me: failed program was:" >&5
13425
sed 's/^/| /' conftest.$ac_ext >&5
13426
 
13427
 
13428 19 jeremybenn
fi
13429 101 jeremybenn
 
13430 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13431 82 jeremybenn
    if test $ac_cv_c_bigendian = unknown; then
13432
      # See if sys/param.h defines the BYTE_ORDER macro.
13433 101 jeremybenn
      cat >conftest.$ac_ext <<_ACEOF
13434
/* confdefs.h.  */
13435
_ACEOF
13436
cat confdefs.h >>conftest.$ac_ext
13437
cat >>conftest.$ac_ext <<_ACEOF
13438 19 jeremybenn
/* end confdefs.h.  */
13439 82 jeremybenn
#include 
13440
             #include 
13441
 
13442
int
13443
main ()
13444
{
13445
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13446
                     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13447
                     && LITTLE_ENDIAN)
13448
              bogus endian macros
13449
             #endif
13450
 
13451
  ;
13452
  return 0;
13453
}
13454 19 jeremybenn
_ACEOF
13455 101 jeremybenn
rm -f conftest.$ac_objext
13456
if { (ac_try="$ac_compile"
13457
case "(($ac_try" in
13458
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13459
  *) ac_try_echo=$ac_try;;
13460
esac
13461
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13462
$as_echo "$ac_try_echo") >&5
13463
  (eval "$ac_compile") 2>conftest.er1
13464
  ac_status=$?
13465
  grep -v '^ *+' conftest.er1 >conftest.err
13466
  rm -f conftest.er1
13467
  cat conftest.err >&5
13468
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13469
  (exit $ac_status); } && {
13470
         test -z "$ac_c_werror_flag" ||
13471
         test ! -s conftest.err
13472
       } && test -s conftest.$ac_objext; then
13473 82 jeremybenn
  # It does; now see whether it defined to BIG_ENDIAN or not.
13474 101 jeremybenn
         cat >conftest.$ac_ext <<_ACEOF
13475
/* confdefs.h.  */
13476
_ACEOF
13477
cat confdefs.h >>conftest.$ac_ext
13478
cat >>conftest.$ac_ext <<_ACEOF
13479 19 jeremybenn
/* end confdefs.h.  */
13480 82 jeremybenn
#include 
13481
                #include 
13482
 
13483 19 jeremybenn
int
13484
main ()
13485
{
13486 82 jeremybenn
#if BYTE_ORDER != BIG_ENDIAN
13487
                 not big endian
13488
                #endif
13489 19 jeremybenn
 
13490
  ;
13491
  return 0;
13492
}
13493
_ACEOF
13494 101 jeremybenn
rm -f conftest.$ac_objext
13495
if { (ac_try="$ac_compile"
13496
case "(($ac_try" in
13497
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13498
  *) ac_try_echo=$ac_try;;
13499
esac
13500
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13501
$as_echo "$ac_try_echo") >&5
13502
  (eval "$ac_compile") 2>conftest.er1
13503
  ac_status=$?
13504
  grep -v '^ *+' conftest.er1 >conftest.err
13505
  rm -f conftest.er1
13506
  cat conftest.err >&5
13507
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13508
  (exit $ac_status); } && {
13509
         test -z "$ac_c_werror_flag" ||
13510
         test ! -s conftest.err
13511
       } && test -s conftest.$ac_objext; then
13512 82 jeremybenn
  ac_cv_c_bigendian=yes
13513 19 jeremybenn
else
13514 101 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
13515
sed 's/^/| /' conftest.$ac_ext >&5
13516
 
13517
        ac_cv_c_bigendian=no
13518 19 jeremybenn
fi
13519 101 jeremybenn
 
13520 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13521 101 jeremybenn
else
13522
  $as_echo "$as_me: failed program was:" >&5
13523
sed 's/^/| /' conftest.$ac_ext >&5
13524
 
13525
 
13526 19 jeremybenn
fi
13527 101 jeremybenn
 
13528 82 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13529
    fi
13530
    if test $ac_cv_c_bigendian = unknown; then
13531
      # See if  defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13532 101 jeremybenn
      cat >conftest.$ac_ext <<_ACEOF
13533
/* confdefs.h.  */
13534
_ACEOF
13535
cat confdefs.h >>conftest.$ac_ext
13536
cat >>conftest.$ac_ext <<_ACEOF
13537 19 jeremybenn
/* end confdefs.h.  */
13538 82 jeremybenn
#include 
13539 19 jeremybenn
 
13540
int
13541
main ()
13542
{
13543 82 jeremybenn
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13544
              bogus endian macros
13545
             #endif
13546 19 jeremybenn
 
13547
  ;
13548
  return 0;
13549
}
13550
_ACEOF
13551 101 jeremybenn
rm -f conftest.$ac_objext
13552
if { (ac_try="$ac_compile"
13553
case "(($ac_try" in
13554
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13555
  *) ac_try_echo=$ac_try;;
13556
esac
13557
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13558
$as_echo "$ac_try_echo") >&5
13559
  (eval "$ac_compile") 2>conftest.er1
13560
  ac_status=$?
13561
  grep -v '^ *+' conftest.er1 >conftest.err
13562
  rm -f conftest.er1
13563
  cat conftest.err >&5
13564
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13565
  (exit $ac_status); } && {
13566
         test -z "$ac_c_werror_flag" ||
13567
         test ! -s conftest.err
13568
       } && test -s conftest.$ac_objext; then
13569 82 jeremybenn
  # It does; now see whether it defined to _BIG_ENDIAN or not.
13570 101 jeremybenn
         cat >conftest.$ac_ext <<_ACEOF
13571
/* confdefs.h.  */
13572
_ACEOF
13573
cat confdefs.h >>conftest.$ac_ext
13574
cat >>conftest.$ac_ext <<_ACEOF
13575 19 jeremybenn
/* end confdefs.h.  */
13576 82 jeremybenn
#include 
13577 19 jeremybenn
 
13578
int
13579
main ()
13580
{
13581 82 jeremybenn
#ifndef _BIG_ENDIAN
13582
                 not big endian
13583
                #endif
13584 19 jeremybenn
 
13585
  ;
13586
  return 0;
13587
}
13588
_ACEOF
13589 101 jeremybenn
rm -f conftest.$ac_objext
13590
if { (ac_try="$ac_compile"
13591
case "(($ac_try" in
13592
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13593
  *) ac_try_echo=$ac_try;;
13594
esac
13595
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13596
$as_echo "$ac_try_echo") >&5
13597
  (eval "$ac_compile") 2>conftest.er1
13598
  ac_status=$?
13599
  grep -v '^ *+' conftest.er1 >conftest.err
13600
  rm -f conftest.er1
13601
  cat conftest.err >&5
13602
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13603
  (exit $ac_status); } && {
13604
         test -z "$ac_c_werror_flag" ||
13605
         test ! -s conftest.err
13606
       } && test -s conftest.$ac_objext; then
13607 19 jeremybenn
  ac_cv_c_bigendian=yes
13608
else
13609 101 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
13610
sed 's/^/| /' conftest.$ac_ext >&5
13611
 
13612
        ac_cv_c_bigendian=no
13613 19 jeremybenn
fi
13614 101 jeremybenn
 
13615 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13616 101 jeremybenn
else
13617
  $as_echo "$as_me: failed program was:" >&5
13618
sed 's/^/| /' conftest.$ac_ext >&5
13619
 
13620
 
13621 82 jeremybenn
fi
13622 101 jeremybenn
 
13623 82 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13624
    fi
13625
    if test $ac_cv_c_bigendian = unknown; then
13626
      # Compile a test program.
13627 101 jeremybenn
      if test "$cross_compiling" = yes; then
13628 82 jeremybenn
  # Try to guess by grepping values from an object file.
13629 101 jeremybenn
         cat >conftest.$ac_ext <<_ACEOF
13630
/* confdefs.h.  */
13631
_ACEOF
13632
cat confdefs.h >>conftest.$ac_ext
13633
cat >>conftest.$ac_ext <<_ACEOF
13634 19 jeremybenn
/* end confdefs.h.  */
13635 82 jeremybenn
short int ascii_mm[] =
13636
                  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13637
                short int ascii_ii[] =
13638
                  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13639
                int use_ascii (int i) {
13640
                  return ascii_mm[i] + ascii_ii[i];
13641
                }
13642
                short int ebcdic_ii[] =
13643
                  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13644
                short int ebcdic_mm[] =
13645
                  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13646
                int use_ebcdic (int i) {
13647
                  return ebcdic_mm[i] + ebcdic_ii[i];
13648
                }
13649
                extern int foo;
13650
 
13651 19 jeremybenn
int
13652
main ()
13653
{
13654 82 jeremybenn
return use_ascii (foo) == use_ebcdic (foo);
13655 19 jeremybenn
  ;
13656
  return 0;
13657
}
13658
_ACEOF
13659 101 jeremybenn
rm -f conftest.$ac_objext
13660
if { (ac_try="$ac_compile"
13661
case "(($ac_try" in
13662
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13663
  *) ac_try_echo=$ac_try;;
13664
esac
13665
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13666
$as_echo "$ac_try_echo") >&5
13667
  (eval "$ac_compile") 2>conftest.er1
13668
  ac_status=$?
13669
  grep -v '^ *+' conftest.er1 >conftest.err
13670
  rm -f conftest.er1
13671
  cat conftest.err >&5
13672
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13673
  (exit $ac_status); } && {
13674
         test -z "$ac_c_werror_flag" ||
13675
         test ! -s conftest.err
13676
       } && test -s conftest.$ac_objext; then
13677 82 jeremybenn
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13678
              ac_cv_c_bigendian=yes
13679
            fi
13680
            if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13681
              if test "$ac_cv_c_bigendian" = unknown; then
13682
                ac_cv_c_bigendian=no
13683
              else
13684
                # finding both strings is unlikely to happen, but who knows?
13685
                ac_cv_c_bigendian=unknown
13686
              fi
13687
            fi
13688 101 jeremybenn
else
13689
  $as_echo "$as_me: failed program was:" >&5
13690
sed 's/^/| /' conftest.$ac_ext >&5
13691
 
13692
 
13693 19 jeremybenn
fi
13694 101 jeremybenn
 
13695 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13696
else
13697 101 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
13698
/* confdefs.h.  */
13699
_ACEOF
13700
cat confdefs.h >>conftest.$ac_ext
13701
cat >>conftest.$ac_ext <<_ACEOF
13702 19 jeremybenn
/* end confdefs.h.  */
13703
$ac_includes_default
13704
int
13705
main ()
13706
{
13707
 
13708 82 jeremybenn
             /* Are we little or big endian?  From Harbison&Steele.  */
13709
             union
13710
             {
13711
               long int l;
13712
               char c[sizeof (long int)];
13713
             } u;
13714
             u.l = 1;
13715
             return u.c[sizeof (long int) - 1] == 1;
13716 19 jeremybenn
 
13717
  ;
13718
  return 0;
13719
}
13720
_ACEOF
13721 101 jeremybenn
rm -f conftest$ac_exeext
13722
if { (ac_try="$ac_link"
13723
case "(($ac_try" in
13724
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13725
  *) ac_try_echo=$ac_try;;
13726
esac
13727
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13728
$as_echo "$ac_try_echo") >&5
13729
  (eval "$ac_link") 2>&5
13730
  ac_status=$?
13731
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13732
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13733
  { (case "(($ac_try" in
13734
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13735
  *) ac_try_echo=$ac_try;;
13736
esac
13737
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13738
$as_echo "$ac_try_echo") >&5
13739
  (eval "$ac_try") 2>&5
13740
  ac_status=$?
13741
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742
  (exit $ac_status); }; }; then
13743 19 jeremybenn
  ac_cv_c_bigendian=no
13744
else
13745 101 jeremybenn
  $as_echo "$as_me: program exited with status $ac_status" >&5
13746
$as_echo "$as_me: failed program was:" >&5
13747
sed 's/^/| /' conftest.$ac_ext >&5
13748
 
13749
( exit $ac_status )
13750
ac_cv_c_bigendian=yes
13751 19 jeremybenn
fi
13752 101 jeremybenn
rm -rf conftest.dSYM
13753
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13754 19 jeremybenn
fi
13755
 
13756 101 jeremybenn
 
13757 82 jeremybenn
    fi
13758 19 jeremybenn
fi
13759 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
13760 82 jeremybenn
$as_echo "$ac_cv_c_bigendian" >&6; }
13761
 case $ac_cv_c_bigendian in #(
13762
   yes)
13763 101 jeremybenn
     cat >>confdefs.h <<\_ACEOF
13764
#define WORDS_BIGENDIAN 1
13765
_ACEOF
13766 82 jeremybenn
;; #(
13767
   no)
13768
      ;; #(
13769
   universal)
13770 19 jeremybenn
 
13771 101 jeremybenn
cat >>confdefs.h <<\_ACEOF
13772
#define AC_APPLE_UNIVERSAL_BUILD 1
13773
_ACEOF
13774 82 jeremybenn
 
13775
     ;; #(
13776
   *)
13777 101 jeremybenn
     { { $as_echo "$as_me:$LINENO: error: unknown endianness
13778
 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
13779
$as_echo "$as_me: error: unknown endianness
13780
 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
13781
   { (exit 1); exit 1; }; } ;;
13782 82 jeremybenn
 esac
13783
 
13784
 
13785
# The test for strndup, strcasecmp and isblank fails on modern machines. I
13786
# think it's because GCC 4 does not like the way autoconf overrides the built
13787
# in type declaration. So we must check for them by steam.
13788 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for strndup" >&5
13789 82 jeremybenn
$as_echo_n "checking for strndup... " >&6; }
13790 101 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
13791
/* confdefs.h.  */
13792
_ACEOF
13793
cat confdefs.h >>conftest.$ac_ext
13794
cat >>conftest.$ac_ext <<_ACEOF
13795 82 jeremybenn
/* end confdefs.h.  */
13796
#ifdef HAVE_STRING_H
13797
                                  #include 
13798
                                  #else
13799
                                  char *strndup (const char *s,
13800
                                                 size_t      n);
13801
                                  #endif
13802
int
13803
main ()
13804
{
13805
\
13806
                                const char *s = "test";
13807
                                  char       *t;
13808
                                  t = strndup (s, 3);
13809
  ;
13810
  return 0;
13811
}
13812
_ACEOF
13813 101 jeremybenn
rm -f conftest.$ac_objext conftest$ac_exeext
13814
if { (ac_try="$ac_link"
13815
case "(($ac_try" in
13816
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13817
  *) ac_try_echo=$ac_try;;
13818
esac
13819
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13820
$as_echo "$ac_try_echo") >&5
13821
  (eval "$ac_link") 2>conftest.er1
13822
  ac_status=$?
13823
  grep -v '^ *+' conftest.er1 >conftest.err
13824
  rm -f conftest.er1
13825
  cat conftest.err >&5
13826
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13827
  (exit $ac_status); } && {
13828
         test -z "$ac_c_werror_flag" ||
13829
         test ! -s conftest.err
13830
       } && test -s conftest$ac_exeext && {
13831
         test "$cross_compiling" = yes ||
13832
         $as_test_x conftest$ac_exeext
13833
       }; then
13834 82 jeremybenn
  \
13835
 
13836 101 jeremybenn
cat >>confdefs.h <<\_ACEOF
13837
#define HAVE_STRNDUP 1
13838
_ACEOF
13839 82 jeremybenn
 \
13840 101 jeremybenn
                { $as_echo "$as_me:$LINENO: result: yes" >&5
13841 82 jeremybenn
$as_echo "yes" >&6; }
13842
else
13843 101 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
13844
sed 's/^/| /' conftest.$ac_ext >&5
13845
 
13846
        { $as_echo "$as_me:$LINENO: result: no" >&5
13847 82 jeremybenn
$as_echo "no" >&6; }
13848 19 jeremybenn
fi
13849
 
13850 101 jeremybenn
rm -rf conftest.dSYM
13851
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13852
      conftest$ac_exeext conftest.$ac_ext
13853
 
13854
{ $as_echo "$as_me:$LINENO: checking for strcasecmp" >&5
13855 82 jeremybenn
$as_echo_n "checking for strcasecmp... " >&6; }
13856 101 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
13857
/* confdefs.h.  */
13858
_ACEOF
13859
cat confdefs.h >>conftest.$ac_ext
13860
cat >>conftest.$ac_ext <<_ACEOF
13861 82 jeremybenn
/* end confdefs.h.  */
13862
#ifdef HAVE_STRINGS_H
13863
                                  #include 
13864
                                  #else
13865
                                  int strcasecmp (const char *s1,
13866
                                                  const char *s2);
13867
                                  #endif
13868
int
13869
main ()
13870
{
13871
\
13872
                                const char *s = "test";
13873
                                  const char *t = "TEST";
13874
                                  int         res;
13875
                                  res = strcasecmp (s, t);
13876
  ;
13877
  return 0;
13878
}
13879
_ACEOF
13880 101 jeremybenn
rm -f conftest.$ac_objext conftest$ac_exeext
13881
if { (ac_try="$ac_link"
13882
case "(($ac_try" in
13883
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13884
  *) ac_try_echo=$ac_try;;
13885
esac
13886
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13887
$as_echo "$ac_try_echo") >&5
13888
  (eval "$ac_link") 2>conftest.er1
13889
  ac_status=$?
13890
  grep -v '^ *+' conftest.er1 >conftest.err
13891
  rm -f conftest.er1
13892
  cat conftest.err >&5
13893
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894
  (exit $ac_status); } && {
13895
         test -z "$ac_c_werror_flag" ||
13896
         test ! -s conftest.err
13897
       } && test -s conftest$ac_exeext && {
13898
         test "$cross_compiling" = yes ||
13899
         $as_test_x conftest$ac_exeext
13900
       }; then
13901 82 jeremybenn
  \
13902
 
13903 101 jeremybenn
cat >>confdefs.h <<\_ACEOF
13904
#define HAVE_STRCASECMP 1
13905
_ACEOF
13906 82 jeremybenn
 \
13907 101 jeremybenn
                { $as_echo "$as_me:$LINENO: result: yes" >&5
13908 82 jeremybenn
$as_echo "yes" >&6; }
13909
else
13910 101 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
13911
sed 's/^/| /' conftest.$ac_ext >&5
13912
 
13913
        { $as_echo "$as_me:$LINENO: result: no" >&5
13914 82 jeremybenn
$as_echo "no" >&6; }
13915
fi
13916
 
13917 101 jeremybenn
rm -rf conftest.dSYM
13918
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13919
      conftest$ac_exeext conftest.$ac_ext
13920
 
13921
{ $as_echo "$as_me:$LINENO: checking for isblank" >&5
13922 82 jeremybenn
$as_echo_n "checking for isblank... " >&6; }
13923 101 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
13924
/* confdefs.h.  */
13925
_ACEOF
13926
cat confdefs.h >>conftest.$ac_ext
13927
cat >>conftest.$ac_ext <<_ACEOF
13928 82 jeremybenn
/* end confdefs.h.  */
13929
#ifdef HAVE_CTYPE_H
13930
                                  #include 
13931
                                  #else
13932
                                  int isblank (int  c);
13933
                                  #endif
13934
int
13935
main ()
13936
{
13937
\
13938
                                return isblank ('x');
13939
  ;
13940
  return 0;
13941
}
13942
_ACEOF
13943 101 jeremybenn
rm -f conftest.$ac_objext conftest$ac_exeext
13944
if { (ac_try="$ac_link"
13945
case "(($ac_try" in
13946
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13947
  *) ac_try_echo=$ac_try;;
13948
esac
13949
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13950
$as_echo "$ac_try_echo") >&5
13951
  (eval "$ac_link") 2>conftest.er1
13952
  ac_status=$?
13953
  grep -v '^ *+' conftest.er1 >conftest.err
13954
  rm -f conftest.er1
13955
  cat conftest.err >&5
13956
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957
  (exit $ac_status); } && {
13958
         test -z "$ac_c_werror_flag" ||
13959
         test ! -s conftest.err
13960
       } && test -s conftest$ac_exeext && {
13961
         test "$cross_compiling" = yes ||
13962
         $as_test_x conftest$ac_exeext
13963
       }; then
13964 82 jeremybenn
  \
13965 19 jeremybenn
 
13966 101 jeremybenn
cat >>confdefs.h <<\_ACEOF
13967
#define HAVE_ISBLANK 1
13968
_ACEOF
13969 82 jeremybenn
 \
13970 101 jeremybenn
                { $as_echo "$as_me:$LINENO: result: yes" >&5
13971 82 jeremybenn
$as_echo "yes" >&6; }
13972
else
13973 101 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
13974
sed 's/^/| /' conftest.$ac_ext >&5
13975
 
13976
        { $as_echo "$as_me:$LINENO: result: no" >&5
13977 82 jeremybenn
$as_echo "no" >&6; }
13978
fi
13979
 
13980 101 jeremybenn
rm -rf conftest.dSYM
13981
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13982
      conftest$ac_exeext conftest.$ac_ext
13983
 
13984 19 jeremybenn
# Checks for typedefs, structures, and compiler characteristics (for argtable2)
13985 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
13986
$as_echo_n "checking for size_t... " >&6; }
13987
if test "${ac_cv_type_size_t+set}" = set; then
13988
  $as_echo_n "(cached) " >&6
13989
else
13990
  ac_cv_type_size_t=no
13991
cat >conftest.$ac_ext <<_ACEOF
13992
/* confdefs.h.  */
13993
_ACEOF
13994
cat confdefs.h >>conftest.$ac_ext
13995
cat >>conftest.$ac_ext <<_ACEOF
13996
/* end confdefs.h.  */
13997
$ac_includes_default
13998
int
13999
main ()
14000
{
14001
if (sizeof (size_t))
14002
       return 0;
14003
  ;
14004
  return 0;
14005
}
14006
_ACEOF
14007
rm -f conftest.$ac_objext
14008
if { (ac_try="$ac_compile"
14009
case "(($ac_try" in
14010
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14011
  *) ac_try_echo=$ac_try;;
14012
esac
14013
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14014
$as_echo "$ac_try_echo") >&5
14015
  (eval "$ac_compile") 2>conftest.er1
14016
  ac_status=$?
14017
  grep -v '^ *+' conftest.er1 >conftest.err
14018
  rm -f conftest.er1
14019
  cat conftest.err >&5
14020
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14021
  (exit $ac_status); } && {
14022
         test -z "$ac_c_werror_flag" ||
14023
         test ! -s conftest.err
14024
       } && test -s conftest.$ac_objext; then
14025
  cat >conftest.$ac_ext <<_ACEOF
14026
/* confdefs.h.  */
14027
_ACEOF
14028
cat confdefs.h >>conftest.$ac_ext
14029
cat >>conftest.$ac_ext <<_ACEOF
14030
/* end confdefs.h.  */
14031
$ac_includes_default
14032
int
14033
main ()
14034
{
14035
if (sizeof ((size_t)))
14036
          return 0;
14037
  ;
14038
  return 0;
14039
}
14040
_ACEOF
14041
rm -f conftest.$ac_objext
14042
if { (ac_try="$ac_compile"
14043
case "(($ac_try" in
14044
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14045
  *) ac_try_echo=$ac_try;;
14046
esac
14047
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14048
$as_echo "$ac_try_echo") >&5
14049
  (eval "$ac_compile") 2>conftest.er1
14050
  ac_status=$?
14051
  grep -v '^ *+' conftest.er1 >conftest.err
14052
  rm -f conftest.er1
14053
  cat conftest.err >&5
14054
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055
  (exit $ac_status); } && {
14056
         test -z "$ac_c_werror_flag" ||
14057
         test ! -s conftest.err
14058
       } && test -s conftest.$ac_objext; then
14059
  :
14060
else
14061
  $as_echo "$as_me: failed program was:" >&5
14062
sed 's/^/| /' conftest.$ac_ext >&5
14063 19 jeremybenn
 
14064 101 jeremybenn
        ac_cv_type_size_t=yes
14065
fi
14066
 
14067
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14068 19 jeremybenn
else
14069 101 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
14070
sed 's/^/| /' conftest.$ac_ext >&5
14071 19 jeremybenn
 
14072 101 jeremybenn
 
14073
fi
14074
 
14075
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14076
fi
14077
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
14078
$as_echo "$ac_cv_type_size_t" >&6; }
14079
if test "x$ac_cv_type_size_t" = x""yes; then
14080
  :
14081
else
14082
 
14083 19 jeremybenn
cat >>confdefs.h <<_ACEOF
14084
#define size_t unsigned int
14085
_ACEOF
14086
 
14087
fi
14088
 
14089 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14090 82 jeremybenn
$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
14091 101 jeremybenn
if test "${ac_cv_struct_tm+set}" = set; then
14092 82 jeremybenn
  $as_echo_n "(cached) " >&6
14093 19 jeremybenn
else
14094 101 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
14095
/* confdefs.h.  */
14096
_ACEOF
14097
cat confdefs.h >>conftest.$ac_ext
14098
cat >>conftest.$ac_ext <<_ACEOF
14099 19 jeremybenn
/* end confdefs.h.  */
14100
#include 
14101
#include 
14102
 
14103
int
14104
main ()
14105
{
14106
struct tm tm;
14107
                                     int *p = &tm.tm_sec;
14108 82 jeremybenn
                                     return !p;
14109 19 jeremybenn
  ;
14110
  return 0;
14111
}
14112
_ACEOF
14113 101 jeremybenn
rm -f conftest.$ac_objext
14114
if { (ac_try="$ac_compile"
14115
case "(($ac_try" in
14116
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14117
  *) ac_try_echo=$ac_try;;
14118
esac
14119
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14120
$as_echo "$ac_try_echo") >&5
14121
  (eval "$ac_compile") 2>conftest.er1
14122
  ac_status=$?
14123
  grep -v '^ *+' conftest.er1 >conftest.err
14124
  rm -f conftest.er1
14125
  cat conftest.err >&5
14126
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14127
  (exit $ac_status); } && {
14128
         test -z "$ac_c_werror_flag" ||
14129
         test ! -s conftest.err
14130
       } && test -s conftest.$ac_objext; then
14131 19 jeremybenn
  ac_cv_struct_tm=time.h
14132
else
14133 101 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
14134
sed 's/^/| /' conftest.$ac_ext >&5
14135
 
14136
        ac_cv_struct_tm=sys/time.h
14137 19 jeremybenn
fi
14138 101 jeremybenn
 
14139 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14140
fi
14141 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14142 82 jeremybenn
$as_echo "$ac_cv_struct_tm" >&6; }
14143 19 jeremybenn
if test $ac_cv_struct_tm = sys/time.h; then
14144
 
14145 101 jeremybenn
cat >>confdefs.h <<\_ACEOF
14146
#define TM_IN_SYS_TIME 1
14147
_ACEOF
14148 19 jeremybenn
 
14149
fi
14150
 
14151
 
14152
# Checks for library functions (for argtable2).
14153 101 jeremybenn
 
14154 19 jeremybenn
for ac_header in stdlib.h
14155 101 jeremybenn
do
14156
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14157
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14158
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14159
$as_echo_n "checking for $ac_header... " >&6; }
14160
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14161
  $as_echo_n "(cached) " >&6
14162
fi
14163
ac_res=`eval 'as_val=${'$as_ac_Header'}
14164
                 $as_echo "$as_val"'`
14165
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14166
$as_echo "$ac_res" >&6; }
14167
else
14168
  # Is the header compilable?
14169
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14170
$as_echo_n "checking $ac_header usability... " >&6; }
14171
cat >conftest.$ac_ext <<_ACEOF
14172
/* confdefs.h.  */
14173
_ACEOF
14174
cat confdefs.h >>conftest.$ac_ext
14175
cat >>conftest.$ac_ext <<_ACEOF
14176
/* end confdefs.h.  */
14177
$ac_includes_default
14178
#include <$ac_header>
14179
_ACEOF
14180
rm -f conftest.$ac_objext
14181
if { (ac_try="$ac_compile"
14182
case "(($ac_try" in
14183
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14184
  *) ac_try_echo=$ac_try;;
14185
esac
14186
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14187
$as_echo "$ac_try_echo") >&5
14188
  (eval "$ac_compile") 2>conftest.er1
14189
  ac_status=$?
14190
  grep -v '^ *+' conftest.er1 >conftest.err
14191
  rm -f conftest.er1
14192
  cat conftest.err >&5
14193
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14194
  (exit $ac_status); } && {
14195
         test -z "$ac_c_werror_flag" ||
14196
         test ! -s conftest.err
14197
       } && test -s conftest.$ac_objext; then
14198
  ac_header_compiler=yes
14199
else
14200
  $as_echo "$as_me: failed program was:" >&5
14201
sed 's/^/| /' conftest.$ac_ext >&5
14202
 
14203
        ac_header_compiler=no
14204
fi
14205
 
14206
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14207
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14208
$as_echo "$ac_header_compiler" >&6; }
14209
 
14210
# Is the header present?
14211
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14212
$as_echo_n "checking $ac_header presence... " >&6; }
14213
cat >conftest.$ac_ext <<_ACEOF
14214
/* confdefs.h.  */
14215
_ACEOF
14216
cat confdefs.h >>conftest.$ac_ext
14217
cat >>conftest.$ac_ext <<_ACEOF
14218
/* end confdefs.h.  */
14219
#include <$ac_header>
14220
_ACEOF
14221
if { (ac_try="$ac_cpp conftest.$ac_ext"
14222
case "(($ac_try" in
14223
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14224
  *) ac_try_echo=$ac_try;;
14225
esac
14226
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14227
$as_echo "$ac_try_echo") >&5
14228
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14229
  ac_status=$?
14230
  grep -v '^ *+' conftest.er1 >conftest.err
14231
  rm -f conftest.er1
14232
  cat conftest.err >&5
14233
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234
  (exit $ac_status); } >/dev/null && {
14235
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14236
         test ! -s conftest.err
14237
       }; then
14238
  ac_header_preproc=yes
14239
else
14240
  $as_echo "$as_me: failed program was:" >&5
14241
sed 's/^/| /' conftest.$ac_ext >&5
14242
 
14243
  ac_header_preproc=no
14244
fi
14245
 
14246
rm -f conftest.err conftest.$ac_ext
14247
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14248
$as_echo "$ac_header_preproc" >&6; }
14249
 
14250
# So?  What about this header?
14251
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14252
  yes:no: )
14253
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14254
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14255
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14256
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14257
    ac_header_preproc=yes
14258
    ;;
14259
  no:yes:* )
14260
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14261
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14262
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14263
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14264
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14265
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14266
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14267
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14268
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14269
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14270
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14271
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14272
    ( cat <<\_ASBOX
14273
## ------------------------------------- ##
14274
## Report this to openrisc@opencores.org ##
14275
## ------------------------------------- ##
14276
_ASBOX
14277
     ) | sed "s/^/$as_me: WARNING:     /" >&2
14278
    ;;
14279
esac
14280
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14281
$as_echo_n "checking for $ac_header... " >&6; }
14282
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14283
  $as_echo_n "(cached) " >&6
14284
else
14285
  eval "$as_ac_Header=\$ac_header_preproc"
14286
fi
14287
ac_res=`eval 'as_val=${'$as_ac_Header'}
14288
                 $as_echo "$as_val"'`
14289
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14290
$as_echo "$ac_res" >&6; }
14291
 
14292
fi
14293
as_val=`eval 'as_val=${'$as_ac_Header'}
14294
                 $as_echo "$as_val"'`
14295
   if test "x$as_val" = x""yes; then
14296 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
14297 101 jeremybenn
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14298 19 jeremybenn
_ACEOF
14299
 
14300
fi
14301
 
14302
done
14303
 
14304 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
14305 82 jeremybenn
$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
14306 101 jeremybenn
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
14307 82 jeremybenn
  $as_echo_n "(cached) " >&6
14308 19 jeremybenn
else
14309 101 jeremybenn
  if test "$cross_compiling" = yes; then
14310 19 jeremybenn
  ac_cv_func_malloc_0_nonnull=no
14311
else
14312 101 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
14313
/* confdefs.h.  */
14314
_ACEOF
14315
cat confdefs.h >>conftest.$ac_ext
14316
cat >>conftest.$ac_ext <<_ACEOF
14317 19 jeremybenn
/* end confdefs.h.  */
14318
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
14319
# include 
14320
#else
14321
char *malloc ();
14322
#endif
14323
 
14324
int
14325
main ()
14326
{
14327
return ! malloc (0);
14328
  ;
14329
  return 0;
14330
}
14331
_ACEOF
14332 101 jeremybenn
rm -f conftest$ac_exeext
14333
if { (ac_try="$ac_link"
14334
case "(($ac_try" in
14335
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14336
  *) ac_try_echo=$ac_try;;
14337
esac
14338
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14339
$as_echo "$ac_try_echo") >&5
14340
  (eval "$ac_link") 2>&5
14341
  ac_status=$?
14342
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14343
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14344
  { (case "(($ac_try" in
14345
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14346
  *) ac_try_echo=$ac_try;;
14347
esac
14348
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14349
$as_echo "$ac_try_echo") >&5
14350
  (eval "$ac_try") 2>&5
14351
  ac_status=$?
14352
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353
  (exit $ac_status); }; }; then
14354 19 jeremybenn
  ac_cv_func_malloc_0_nonnull=yes
14355
else
14356 101 jeremybenn
  $as_echo "$as_me: program exited with status $ac_status" >&5
14357
$as_echo "$as_me: failed program was:" >&5
14358
sed 's/^/| /' conftest.$ac_ext >&5
14359
 
14360
( exit $ac_status )
14361
ac_cv_func_malloc_0_nonnull=no
14362 19 jeremybenn
fi
14363 101 jeremybenn
rm -rf conftest.dSYM
14364
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14365 19 jeremybenn
fi
14366
 
14367 101 jeremybenn
 
14368 19 jeremybenn
fi
14369 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
14370 82 jeremybenn
$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
14371 101 jeremybenn
if test $ac_cv_func_malloc_0_nonnull = yes; then
14372 19 jeremybenn
 
14373 101 jeremybenn
cat >>confdefs.h <<\_ACEOF
14374
#define HAVE_MALLOC 1
14375
_ACEOF
14376 19 jeremybenn
 
14377
else
14378 101 jeremybenn
  cat >>confdefs.h <<\_ACEOF
14379
#define HAVE_MALLOC 0
14380
_ACEOF
14381 19 jeremybenn
 
14382
   case " $LIBOBJS " in
14383
  *" malloc.$ac_objext "* ) ;;
14384
  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
14385
 ;;
14386
esac
14387
 
14388
 
14389 101 jeremybenn
cat >>confdefs.h <<\_ACEOF
14390
#define malloc rpl_malloc
14391
_ACEOF
14392 19 jeremybenn
 
14393
fi
14394
 
14395
 
14396 101 jeremybenn
 
14397
 
14398 19 jeremybenn
for ac_func in strftime
14399 101 jeremybenn
do
14400
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14401
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14402
$as_echo_n "checking for $ac_func... " >&6; }
14403
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14404
  $as_echo_n "(cached) " >&6
14405
else
14406
  cat >conftest.$ac_ext <<_ACEOF
14407
/* confdefs.h.  */
14408
_ACEOF
14409
cat confdefs.h >>conftest.$ac_ext
14410
cat >>conftest.$ac_ext <<_ACEOF
14411
/* end confdefs.h.  */
14412
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
14413
   For example, HP-UX 11i  declares gettimeofday.  */
14414
#define $ac_func innocuous_$ac_func
14415
 
14416
/* System header to define __stub macros and hopefully few prototypes,
14417
    which can conflict with char $ac_func (); below.
14418
    Prefer  to  if __STDC__ is defined, since
14419
     exists even on freestanding compilers.  */
14420
 
14421
#ifdef __STDC__
14422
# include 
14423
#else
14424
# include 
14425
#endif
14426
 
14427
#undef $ac_func
14428
 
14429
/* Override any GCC internal prototype to avoid an error.
14430
   Use char because int might match the return type of a GCC
14431
   builtin and then its argument prototype would still apply.  */
14432
#ifdef __cplusplus
14433
extern "C"
14434
#endif
14435
char $ac_func ();
14436
/* The GNU C library defines this for functions which it implements
14437
    to always fail with ENOSYS.  Some functions are actually named
14438
    something starting with __ and the normal name is an alias.  */
14439
#if defined __stub_$ac_func || defined __stub___$ac_func
14440
choke me
14441
#endif
14442
 
14443
int
14444
main ()
14445
{
14446
return $ac_func ();
14447
  ;
14448
  return 0;
14449
}
14450
_ACEOF
14451
rm -f conftest.$ac_objext conftest$ac_exeext
14452
if { (ac_try="$ac_link"
14453
case "(($ac_try" in
14454
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14455
  *) ac_try_echo=$ac_try;;
14456
esac
14457
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14458
$as_echo "$ac_try_echo") >&5
14459
  (eval "$ac_link") 2>conftest.er1
14460
  ac_status=$?
14461
  grep -v '^ *+' conftest.er1 >conftest.err
14462
  rm -f conftest.er1
14463
  cat conftest.err >&5
14464
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465
  (exit $ac_status); } && {
14466
         test -z "$ac_c_werror_flag" ||
14467
         test ! -s conftest.err
14468
       } && test -s conftest$ac_exeext && {
14469
         test "$cross_compiling" = yes ||
14470
         $as_test_x conftest$ac_exeext
14471
       }; then
14472
  eval "$as_ac_var=yes"
14473
else
14474
  $as_echo "$as_me: failed program was:" >&5
14475
sed 's/^/| /' conftest.$ac_ext >&5
14476
 
14477
        eval "$as_ac_var=no"
14478
fi
14479
 
14480
rm -rf conftest.dSYM
14481
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14482
      conftest$ac_exeext conftest.$ac_ext
14483
fi
14484
ac_res=`eval 'as_val=${'$as_ac_var'}
14485
                 $as_echo "$as_val"'`
14486
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14487
$as_echo "$ac_res" >&6; }
14488
as_val=`eval 'as_val=${'$as_ac_var'}
14489
                 $as_echo "$as_val"'`
14490
   if test "x$as_val" = x""yes; then
14491 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
14492 101 jeremybenn
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14493 19 jeremybenn
_ACEOF
14494
 
14495
else
14496
  # strftime is in -lintl on SCO UNIX.
14497 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
14498 82 jeremybenn
$as_echo_n "checking for strftime in -lintl... " >&6; }
14499 101 jeremybenn
if test "${ac_cv_lib_intl_strftime+set}" = set; then
14500 82 jeremybenn
  $as_echo_n "(cached) " >&6
14501 19 jeremybenn
else
14502
  ac_check_lib_save_LIBS=$LIBS
14503
LIBS="-lintl  $LIBS"
14504 101 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
14505
/* confdefs.h.  */
14506
_ACEOF
14507
cat confdefs.h >>conftest.$ac_ext
14508
cat >>conftest.$ac_ext <<_ACEOF
14509 19 jeremybenn
/* end confdefs.h.  */
14510
 
14511
/* Override any GCC internal prototype to avoid an error.
14512
   Use char because int might match the return type of a GCC
14513
   builtin and then its argument prototype would still apply.  */
14514
#ifdef __cplusplus
14515
extern "C"
14516
#endif
14517
char strftime ();
14518
int
14519
main ()
14520
{
14521
return strftime ();
14522
  ;
14523
  return 0;
14524
}
14525
_ACEOF
14526 101 jeremybenn
rm -f conftest.$ac_objext conftest$ac_exeext
14527
if { (ac_try="$ac_link"
14528
case "(($ac_try" in
14529
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14530
  *) ac_try_echo=$ac_try;;
14531
esac
14532
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14533
$as_echo "$ac_try_echo") >&5
14534
  (eval "$ac_link") 2>conftest.er1
14535
  ac_status=$?
14536
  grep -v '^ *+' conftest.er1 >conftest.err
14537
  rm -f conftest.er1
14538
  cat conftest.err >&5
14539
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14540
  (exit $ac_status); } && {
14541
         test -z "$ac_c_werror_flag" ||
14542
         test ! -s conftest.err
14543
       } && test -s conftest$ac_exeext && {
14544
         test "$cross_compiling" = yes ||
14545
         $as_test_x conftest$ac_exeext
14546
       }; then
14547 19 jeremybenn
  ac_cv_lib_intl_strftime=yes
14548
else
14549 101 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
14550
sed 's/^/| /' conftest.$ac_ext >&5
14551
 
14552
        ac_cv_lib_intl_strftime=no
14553 19 jeremybenn
fi
14554 101 jeremybenn
 
14555
rm -rf conftest.dSYM
14556
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14557
      conftest$ac_exeext conftest.$ac_ext
14558 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
14559
fi
14560 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
14561 82 jeremybenn
$as_echo "$ac_cv_lib_intl_strftime" >&6; }
14562 101 jeremybenn
if test "x$ac_cv_lib_intl_strftime" = x""yes; then
14563
  cat >>confdefs.h <<\_ACEOF
14564
#define HAVE_STRFTIME 1
14565
_ACEOF
14566 19 jeremybenn
 
14567
LIBS="-lintl $LIBS"
14568
fi
14569
 
14570
fi
14571
done
14572
 
14573 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for working strtod" >&5
14574 82 jeremybenn
$as_echo_n "checking for working strtod... " >&6; }
14575 101 jeremybenn
if test "${ac_cv_func_strtod+set}" = set; then
14576 82 jeremybenn
  $as_echo_n "(cached) " >&6
14577 19 jeremybenn
else
14578 101 jeremybenn
  if test "$cross_compiling" = yes; then
14579 19 jeremybenn
  ac_cv_func_strtod=no
14580
else
14581 101 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
14582
/* confdefs.h.  */
14583
_ACEOF
14584
cat confdefs.h >>conftest.$ac_ext
14585
cat >>conftest.$ac_ext <<_ACEOF
14586 19 jeremybenn
/* end confdefs.h.  */
14587
 
14588
$ac_includes_default
14589
#ifndef strtod
14590
double strtod ();
14591
#endif
14592
int
14593
main()
14594
{
14595
  {
14596
    /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
14597
    char *string = " +69";
14598
    char *term;
14599
    double value;
14600
    value = strtod (string, &term);
14601
    if (value != 69 || term != (string + 4))
14602
      return 1;
14603
  }
14604
 
14605
  {
14606
    /* Under Solaris 2.4, strtod returns the wrong value for the
14607
       terminating character under some conditions.  */
14608
    char *string = "NaN";
14609
    char *term;
14610
    strtod (string, &term);
14611
    if (term != string && *(term - 1) == 0)
14612
      return 1;
14613
  }
14614
  return 0;
14615
}
14616
 
14617
_ACEOF
14618 101 jeremybenn
rm -f conftest$ac_exeext
14619
if { (ac_try="$ac_link"
14620
case "(($ac_try" in
14621
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14622
  *) ac_try_echo=$ac_try;;
14623
esac
14624
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14625
$as_echo "$ac_try_echo") >&5
14626
  (eval "$ac_link") 2>&5
14627
  ac_status=$?
14628
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14629
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14630
  { (case "(($ac_try" in
14631
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14632
  *) ac_try_echo=$ac_try;;
14633
esac
14634
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14635
$as_echo "$ac_try_echo") >&5
14636
  (eval "$ac_try") 2>&5
14637
  ac_status=$?
14638
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14639
  (exit $ac_status); }; }; then
14640 19 jeremybenn
  ac_cv_func_strtod=yes
14641
else
14642 101 jeremybenn
  $as_echo "$as_me: program exited with status $ac_status" >&5
14643
$as_echo "$as_me: failed program was:" >&5
14644
sed 's/^/| /' conftest.$ac_ext >&5
14645
 
14646
( exit $ac_status )
14647
ac_cv_func_strtod=no
14648 19 jeremybenn
fi
14649 101 jeremybenn
rm -rf conftest.dSYM
14650
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14651 19 jeremybenn
fi
14652
 
14653 101 jeremybenn
 
14654 19 jeremybenn
fi
14655 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
14656 82 jeremybenn
$as_echo "$ac_cv_func_strtod" >&6; }
14657 19 jeremybenn
if test $ac_cv_func_strtod = no; then
14658
  case " $LIBOBJS " in
14659
  *" strtod.$ac_objext "* ) ;;
14660
  *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
14661
 ;;
14662
esac
14663
 
14664 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for pow" >&5
14665
$as_echo_n "checking for pow... " >&6; }
14666
if test "${ac_cv_func_pow+set}" = set; then
14667
  $as_echo_n "(cached) " >&6
14668
else
14669
  cat >conftest.$ac_ext <<_ACEOF
14670
/* confdefs.h.  */
14671
_ACEOF
14672
cat confdefs.h >>conftest.$ac_ext
14673
cat >>conftest.$ac_ext <<_ACEOF
14674
/* end confdefs.h.  */
14675
/* Define pow to an innocuous variant, in case  declares pow.
14676
   For example, HP-UX 11i  declares gettimeofday.  */
14677
#define pow innocuous_pow
14678 19 jeremybenn
 
14679 101 jeremybenn
/* System header to define __stub macros and hopefully few prototypes,
14680
    which can conflict with char pow (); below.
14681
    Prefer  to  if __STDC__ is defined, since
14682
     exists even on freestanding compilers.  */
14683
 
14684
#ifdef __STDC__
14685
# include 
14686
#else
14687
# include 
14688
#endif
14689
 
14690
#undef pow
14691
 
14692
/* Override any GCC internal prototype to avoid an error.
14693
   Use char because int might match the return type of a GCC
14694
   builtin and then its argument prototype would still apply.  */
14695
#ifdef __cplusplus
14696
extern "C"
14697
#endif
14698
char pow ();
14699
/* The GNU C library defines this for functions which it implements
14700
    to always fail with ENOSYS.  Some functions are actually named
14701
    something starting with __ and the normal name is an alias.  */
14702
#if defined __stub_pow || defined __stub___pow
14703
choke me
14704
#endif
14705
 
14706
int
14707
main ()
14708
{
14709
return pow ();
14710
  ;
14711
  return 0;
14712
}
14713
_ACEOF
14714
rm -f conftest.$ac_objext conftest$ac_exeext
14715
if { (ac_try="$ac_link"
14716
case "(($ac_try" in
14717
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14718
  *) ac_try_echo=$ac_try;;
14719
esac
14720
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14721
$as_echo "$ac_try_echo") >&5
14722
  (eval "$ac_link") 2>conftest.er1
14723
  ac_status=$?
14724
  grep -v '^ *+' conftest.er1 >conftest.err
14725
  rm -f conftest.er1
14726
  cat conftest.err >&5
14727
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14728
  (exit $ac_status); } && {
14729
         test -z "$ac_c_werror_flag" ||
14730
         test ! -s conftest.err
14731
       } && test -s conftest$ac_exeext && {
14732
         test "$cross_compiling" = yes ||
14733
         $as_test_x conftest$ac_exeext
14734
       }; then
14735
  ac_cv_func_pow=yes
14736
else
14737
  $as_echo "$as_me: failed program was:" >&5
14738
sed 's/^/| /' conftest.$ac_ext >&5
14739
 
14740
        ac_cv_func_pow=no
14741 19 jeremybenn
fi
14742
 
14743 101 jeremybenn
rm -rf conftest.dSYM
14744
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14745
      conftest$ac_exeext conftest.$ac_ext
14746
fi
14747
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
14748
$as_echo "$ac_cv_func_pow" >&6; }
14749
 
14750 19 jeremybenn
if test $ac_cv_func_pow = no; then
14751 101 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
14752 82 jeremybenn
$as_echo_n "checking for pow in -lm... " >&6; }
14753 101 jeremybenn
if test "${ac_cv_lib_m_pow+set}" = set; then
14754 82 jeremybenn
  $as_echo_n "(cached) " >&6
14755 19 jeremybenn
else
14756
  ac_check_lib_save_LIBS=$LIBS
14757
LIBS="-lm  $LIBS"
14758 101 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
14759
/* confdefs.h.  */
14760
_ACEOF
14761
cat confdefs.h >>conftest.$ac_ext
14762
cat >>conftest.$ac_ext <<_ACEOF
14763 19 jeremybenn
/* end confdefs.h.  */
14764
 
14765
/* Override any GCC internal prototype to avoid an error.
14766
   Use char because int might match the return type of a GCC
14767
   builtin and then its argument prototype would still apply.  */
14768
#ifdef __cplusplus
14769
extern "C"
14770
#endif
14771
char pow ();
14772
int
14773
main ()
14774
{
14775
return pow ();
14776
  ;
14777
  return 0;
14778
}
14779
_ACEOF
14780 101 jeremybenn
rm -f conftest.$ac_objext conftest$ac_exeext
14781
if { (ac_try="$ac_link"
14782
case "(($ac_try" in
14783
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14784
  *) ac_try_echo=$ac_try;;
14785
esac
14786
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14787
$as_echo "$ac_try_echo") >&5
14788
  (eval "$ac_link") 2>conftest.er1
14789
  ac_status=$?
14790
  grep -v '^ *+' conftest.er1 >conftest.err
14791
  rm -f conftest.er1
14792
  cat conftest.err >&5
14793
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14794
  (exit $ac_status); } && {
14795
         test -z "$ac_c_werror_flag" ||
14796
         test ! -s conftest.err
14797
       } && test -s conftest$ac_exeext && {
14798
         test "$cross_compiling" = yes ||
14799
         $as_test_x conftest$ac_exeext
14800
       }; then
14801 19 jeremybenn
  ac_cv_lib_m_pow=yes
14802
else
14803 101 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
14804
sed 's/^/| /' conftest.$ac_ext >&5
14805
 
14806
        ac_cv_lib_m_pow=no
14807 19 jeremybenn
fi
14808 101 jeremybenn
 
14809
rm -rf conftest.dSYM
14810
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14811
      conftest$ac_exeext conftest.$ac_ext
14812 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
14813
fi
14814 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
14815 82 jeremybenn
$as_echo "$ac_cv_lib_m_pow" >&6; }
14816 101 jeremybenn
if test "x$ac_cv_lib_m_pow" = x""yes; then
14817 19 jeremybenn
  POW_LIB=-lm
14818
else
14819 101 jeremybenn
  { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
14820 82 jeremybenn
$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
14821 19 jeremybenn
fi
14822
 
14823
fi
14824
 
14825
fi
14826
 
14827 101 jeremybenn
 
14828
 
14829
 
14830
 
14831
 
14832 19 jeremybenn
for ac_func in bzero strchr strcspn strrchr strtol
14833 101 jeremybenn
do
14834
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14835
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14836
$as_echo_n "checking for $ac_func... " >&6; }
14837
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14838
  $as_echo_n "(cached) " >&6
14839
else
14840
  cat >conftest.$ac_ext <<_ACEOF
14841
/* confdefs.h.  */
14842
_ACEOF
14843
cat confdefs.h >>conftest.$ac_ext
14844
cat >>conftest.$ac_ext <<_ACEOF
14845
/* end confdefs.h.  */
14846
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
14847
   For example, HP-UX 11i  declares gettimeofday.  */
14848
#define $ac_func innocuous_$ac_func
14849
 
14850
/* System header to define __stub macros and hopefully few prototypes,
14851
    which can conflict with char $ac_func (); below.
14852
    Prefer  to  if __STDC__ is defined, since
14853
     exists even on freestanding compilers.  */
14854
 
14855
#ifdef __STDC__
14856
# include 
14857
#else
14858
# include 
14859
#endif
14860
 
14861
#undef $ac_func
14862
 
14863
/* Override any GCC internal prototype to avoid an error.
14864
   Use char because int might match the return type of a GCC
14865
   builtin and then its argument prototype would still apply.  */
14866
#ifdef __cplusplus
14867
extern "C"
14868
#endif
14869
char $ac_func ();
14870
/* The GNU C library defines this for functions which it implements
14871
    to always fail with ENOSYS.  Some functions are actually named
14872
    something starting with __ and the normal name is an alias.  */
14873
#if defined __stub_$ac_func || defined __stub___$ac_func
14874
choke me
14875
#endif
14876
 
14877
int
14878
main ()
14879
{
14880
return $ac_func ();
14881
  ;
14882
  return 0;
14883
}
14884
_ACEOF
14885
rm -f conftest.$ac_objext conftest$ac_exeext
14886
if { (ac_try="$ac_link"
14887
case "(($ac_try" in
14888
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14889
  *) ac_try_echo=$ac_try;;
14890
esac
14891
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14892
$as_echo "$ac_try_echo") >&5
14893
  (eval "$ac_link") 2>conftest.er1
14894
  ac_status=$?
14895
  grep -v '^ *+' conftest.er1 >conftest.err
14896
  rm -f conftest.er1
14897
  cat conftest.err >&5
14898
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14899
  (exit $ac_status); } && {
14900
         test -z "$ac_c_werror_flag" ||
14901
         test ! -s conftest.err
14902
       } && test -s conftest$ac_exeext && {
14903
         test "$cross_compiling" = yes ||
14904
         $as_test_x conftest$ac_exeext
14905
       }; then
14906
  eval "$as_ac_var=yes"
14907
else
14908
  $as_echo "$as_me: failed program was:" >&5
14909
sed 's/^/| /' conftest.$ac_ext >&5
14910
 
14911
        eval "$as_ac_var=no"
14912
fi
14913
 
14914
rm -rf conftest.dSYM
14915
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14916
      conftest$ac_exeext conftest.$ac_ext
14917
fi
14918
ac_res=`eval 'as_val=${'$as_ac_var'}
14919
                 $as_echo "$as_val"'`
14920
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14921
$as_echo "$ac_res" >&6; }
14922
as_val=`eval 'as_val=${'$as_ac_var'}
14923
                 $as_echo "$as_val"'`
14924
   if test "x$as_val" = x""yes; then
14925 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
14926 82 jeremybenn
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14927 19 jeremybenn
_ACEOF
14928
 
14929
fi
14930
done
14931
 
14932 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for getopt_long" >&5
14933
$as_echo_n "checking for getopt_long... " >&6; }
14934
if test "${ac_cv_func_getopt_long+set}" = set; then
14935
  $as_echo_n "(cached) " >&6
14936
else
14937
  cat >conftest.$ac_ext <<_ACEOF
14938
/* confdefs.h.  */
14939
_ACEOF
14940
cat confdefs.h >>conftest.$ac_ext
14941
cat >>conftest.$ac_ext <<_ACEOF
14942
/* end confdefs.h.  */
14943
/* Define getopt_long to an innocuous variant, in case  declares getopt_long.
14944
   For example, HP-UX 11i  declares gettimeofday.  */
14945
#define getopt_long innocuous_getopt_long
14946
 
14947
/* System header to define __stub macros and hopefully few prototypes,
14948
    which can conflict with char getopt_long (); below.
14949
    Prefer  to  if __STDC__ is defined, since
14950
     exists even on freestanding compilers.  */
14951
 
14952
#ifdef __STDC__
14953
# include 
14954
#else
14955
# include 
14956
#endif
14957
 
14958
#undef getopt_long
14959
 
14960
/* Override any GCC internal prototype to avoid an error.
14961
   Use char because int might match the return type of a GCC
14962
   builtin and then its argument prototype would still apply.  */
14963
#ifdef __cplusplus
14964
extern "C"
14965
#endif
14966
char getopt_long ();
14967
/* The GNU C library defines this for functions which it implements
14968
    to always fail with ENOSYS.  Some functions are actually named
14969
    something starting with __ and the normal name is an alias.  */
14970
#if defined __stub_getopt_long || defined __stub___getopt_long
14971
choke me
14972
#endif
14973
 
14974
int
14975
main ()
14976
{
14977
return getopt_long ();
14978
  ;
14979
  return 0;
14980
}
14981
_ACEOF
14982
rm -f conftest.$ac_objext conftest$ac_exeext
14983
if { (ac_try="$ac_link"
14984
case "(($ac_try" in
14985
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14986
  *) ac_try_echo=$ac_try;;
14987
esac
14988
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14989
$as_echo "$ac_try_echo") >&5
14990
  (eval "$ac_link") 2>conftest.er1
14991
  ac_status=$?
14992
  grep -v '^ *+' conftest.er1 >conftest.err
14993
  rm -f conftest.er1
14994
  cat conftest.err >&5
14995
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996
  (exit $ac_status); } && {
14997
         test -z "$ac_c_werror_flag" ||
14998
         test ! -s conftest.err
14999
       } && test -s conftest$ac_exeext && {
15000
         test "$cross_compiling" = yes ||
15001
         $as_test_x conftest$ac_exeext
15002
       }; then
15003
  ac_cv_func_getopt_long=yes
15004
else
15005
  $as_echo "$as_me: failed program was:" >&5
15006
sed 's/^/| /' conftest.$ac_ext >&5
15007
 
15008
        ac_cv_func_getopt_long=no
15009
fi
15010
 
15011
rm -rf conftest.dSYM
15012
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15013
      conftest$ac_exeext conftest.$ac_ext
15014
fi
15015
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
15016
$as_echo "$ac_cv_func_getopt_long" >&6; }
15017
if test "x$ac_cv_func_getopt_long" = x""yes; then
15018 19 jeremybenn
  SYS_GETOPTLONG=1
15019
else
15020
  SYS_GETOPTLONG=0
15021
fi
15022
 
15023 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for regcomp" >&5
15024
$as_echo_n "checking for regcomp... " >&6; }
15025
if test "${ac_cv_func_regcomp+set}" = set; then
15026
  $as_echo_n "(cached) " >&6
15027
else
15028
  cat >conftest.$ac_ext <<_ACEOF
15029
/* confdefs.h.  */
15030
_ACEOF
15031
cat confdefs.h >>conftest.$ac_ext
15032
cat >>conftest.$ac_ext <<_ACEOF
15033
/* end confdefs.h.  */
15034
/* Define regcomp to an innocuous variant, in case  declares regcomp.
15035
   For example, HP-UX 11i  declares gettimeofday.  */
15036
#define regcomp innocuous_regcomp
15037
 
15038
/* System header to define __stub macros and hopefully few prototypes,
15039
    which can conflict with char regcomp (); below.
15040
    Prefer  to  if __STDC__ is defined, since
15041
     exists even on freestanding compilers.  */
15042
 
15043
#ifdef __STDC__
15044
# include 
15045
#else
15046
# include 
15047
#endif
15048
 
15049
#undef regcomp
15050
 
15051
/* Override any GCC internal prototype to avoid an error.
15052
   Use char because int might match the return type of a GCC
15053
   builtin and then its argument prototype would still apply.  */
15054
#ifdef __cplusplus
15055
extern "C"
15056
#endif
15057
char regcomp ();
15058
/* The GNU C library defines this for functions which it implements
15059
    to always fail with ENOSYS.  Some functions are actually named
15060
    something starting with __ and the normal name is an alias.  */
15061
#if defined __stub_regcomp || defined __stub___regcomp
15062
choke me
15063
#endif
15064
 
15065
int
15066
main ()
15067
{
15068
return regcomp ();
15069
  ;
15070
  return 0;
15071
}
15072
_ACEOF
15073
rm -f conftest.$ac_objext conftest$ac_exeext
15074
if { (ac_try="$ac_link"
15075
case "(($ac_try" in
15076
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15077
  *) ac_try_echo=$ac_try;;
15078
esac
15079
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15080
$as_echo "$ac_try_echo") >&5
15081
  (eval "$ac_link") 2>conftest.er1
15082
  ac_status=$?
15083
  grep -v '^ *+' conftest.er1 >conftest.err
15084
  rm -f conftest.er1
15085
  cat conftest.err >&5
15086
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15087
  (exit $ac_status); } && {
15088
         test -z "$ac_c_werror_flag" ||
15089
         test ! -s conftest.err
15090
       } && test -s conftest$ac_exeext && {
15091
         test "$cross_compiling" = yes ||
15092
         $as_test_x conftest$ac_exeext
15093
       }; then
15094
  ac_cv_func_regcomp=yes
15095
else
15096
  $as_echo "$as_me: failed program was:" >&5
15097
sed 's/^/| /' conftest.$ac_ext >&5
15098
 
15099
        ac_cv_func_regcomp=no
15100
fi
15101
 
15102
rm -rf conftest.dSYM
15103
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15104
      conftest$ac_exeext conftest.$ac_ext
15105
fi
15106
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_regcomp" >&5
15107
$as_echo "$ac_cv_func_regcomp" >&6; }
15108
if test "x$ac_cv_func_regcomp" = x""yes; then
15109 19 jeremybenn
  SYS_REGEX=1
15110
else
15111
  SYS_REGEX=0
15112
fi
15113
 
15114 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for strptime" >&5
15115
$as_echo_n "checking for strptime... " >&6; }
15116
if test "${ac_cv_func_strptime+set}" = set; then
15117
  $as_echo_n "(cached) " >&6
15118
else
15119
  cat >conftest.$ac_ext <<_ACEOF
15120
/* confdefs.h.  */
15121
_ACEOF
15122
cat confdefs.h >>conftest.$ac_ext
15123
cat >>conftest.$ac_ext <<_ACEOF
15124
/* end confdefs.h.  */
15125
/* Define strptime to an innocuous variant, in case  declares strptime.
15126
   For example, HP-UX 11i  declares gettimeofday.  */
15127
#define strptime innocuous_strptime
15128
 
15129
/* System header to define __stub macros and hopefully few prototypes,
15130
    which can conflict with char strptime (); below.
15131
    Prefer  to  if __STDC__ is defined, since
15132
     exists even on freestanding compilers.  */
15133
 
15134
#ifdef __STDC__
15135
# include 
15136
#else
15137
# include 
15138
#endif
15139
 
15140
#undef strptime
15141
 
15142
/* Override any GCC internal prototype to avoid an error.
15143
   Use char because int might match the return type of a GCC
15144
   builtin and then its argument prototype would still apply.  */
15145
#ifdef __cplusplus
15146
extern "C"
15147
#endif
15148
char strptime ();
15149
/* The GNU C library defines this for functions which it implements
15150
    to always fail with ENOSYS.  Some functions are actually named
15151
    something starting with __ and the normal name is an alias.  */
15152
#if defined __stub_strptime || defined __stub___strptime
15153
choke me
15154
#endif
15155
 
15156
int
15157
main ()
15158
{
15159
return strptime ();
15160
  ;
15161
  return 0;
15162
}
15163
_ACEOF
15164
rm -f conftest.$ac_objext conftest$ac_exeext
15165
if { (ac_try="$ac_link"
15166
case "(($ac_try" in
15167
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15168
  *) ac_try_echo=$ac_try;;
15169
esac
15170
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15171
$as_echo "$ac_try_echo") >&5
15172
  (eval "$ac_link") 2>conftest.er1
15173
  ac_status=$?
15174
  grep -v '^ *+' conftest.er1 >conftest.err
15175
  rm -f conftest.er1
15176
  cat conftest.err >&5
15177
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15178
  (exit $ac_status); } && {
15179
         test -z "$ac_c_werror_flag" ||
15180
         test ! -s conftest.err
15181
       } && test -s conftest$ac_exeext && {
15182
         test "$cross_compiling" = yes ||
15183
         $as_test_x conftest$ac_exeext
15184
       }; then
15185
  ac_cv_func_strptime=yes
15186
else
15187
  $as_echo "$as_me: failed program was:" >&5
15188
sed 's/^/| /' conftest.$ac_ext >&5
15189
 
15190
        ac_cv_func_strptime=no
15191
fi
15192
 
15193
rm -rf conftest.dSYM
15194
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15195
      conftest$ac_exeext conftest.$ac_ext
15196
fi
15197
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strptime" >&5
15198
$as_echo "$ac_cv_func_strptime" >&6; }
15199
if test "x$ac_cv_func_strptime" = x""yes; then
15200 19 jeremybenn
  SYS_STRPTIME=1
15201
else
15202
  SYS_STRPTIME=0
15203
fi
15204
 
15205
 
15206
# Define automake conditionals (for argtable2)
15207
 if test "$SYS_GETOPTLONG" = "1"; then
15208
  USE_SYS_GETOPTLONG_TRUE=
15209
  USE_SYS_GETOPTLONG_FALSE='#'
15210
else
15211
  USE_SYS_GETOPTLONG_TRUE='#'
15212
  USE_SYS_GETOPTLONG_FALSE=
15213
fi
15214
 
15215
 if test "$SYS_REGEX" = "1"; then
15216
  USE_ARGREX_TRUE=
15217
  USE_ARGREX_FALSE='#'
15218
else
15219
  USE_ARGREX_TRUE='#'
15220
  USE_ARGREX_FALSE=
15221
fi
15222
 
15223
 if test "$SYS_STRPTIME" = "1"; then
15224
  USE_ARGDATE_TRUE=
15225
  USE_ARGDATE_FALSE='#'
15226
else
15227
  USE_ARGDATE_TRUE='#'
15228
  USE_ARGDATE_FALSE=
15229
fi
15230
 
15231
 
15232
# check for "long long" (added by Erez)
15233 101 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
15234
/* confdefs.h.  */
15235
_ACEOF
15236
cat confdefs.h >>conftest.$ac_ext
15237
cat >>conftest.$ac_ext <<_ACEOF
15238 19 jeremybenn
/* end confdefs.h.  */
15239
 
15240
int
15241
main ()
15242
{
15243
long long ll; unsigned long long ull;
15244
  ;
15245
  return 0;
15246
}
15247
_ACEOF
15248 101 jeremybenn
rm -f conftest.$ac_objext
15249
if { (ac_try="$ac_compile"
15250
case "(($ac_try" in
15251
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15252
  *) ac_try_echo=$ac_try;;
15253
esac
15254
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15255
$as_echo "$ac_try_echo") >&5
15256
  (eval "$ac_compile") 2>conftest.er1
15257
  ac_status=$?
15258
  grep -v '^ *+' conftest.er1 >conftest.err
15259
  rm -f conftest.er1
15260
  cat conftest.err >&5
15261
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262
  (exit $ac_status); } && {
15263
         test -z "$ac_c_werror_flag" ||
15264
         test ! -s conftest.err
15265
       } && test -s conftest.$ac_objext; then
15266 19 jeremybenn
 
15267 101 jeremybenn
cat >>confdefs.h <<\_ACEOF
15268
#define CC_HAS_LONG_LONG 1
15269
_ACEOF
15270 19 jeremybenn
 
15271 101 jeremybenn
else
15272
  $as_echo "$as_me: failed program was:" >&5
15273
sed 's/^/| /' conftest.$ac_ext >&5
15274
 
15275
 
15276 19 jeremybenn
fi
15277 101 jeremybenn
 
15278 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15279
 
15280
# check for {u,}int{8,16,32}_t in inttypes.h.
15281 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for uint8_t" >&5
15282
$as_echo_n "checking for uint8_t... " >&6; }
15283
if test "${ac_cv_type_uint8_t+set}" = set; then
15284
  $as_echo_n "(cached) " >&6
15285
else
15286
  ac_cv_type_uint8_t=no
15287
cat >conftest.$ac_ext <<_ACEOF
15288
/* confdefs.h.  */
15289
_ACEOF
15290
cat confdefs.h >>conftest.$ac_ext
15291
cat >>conftest.$ac_ext <<_ACEOF
15292
/* end confdefs.h.  */
15293
#include 
15294 82 jeremybenn
 
15295 101 jeremybenn
int
15296
main ()
15297
{
15298
if (sizeof (uint8_t))
15299
       return 0;
15300
  ;
15301
  return 0;
15302
}
15303
_ACEOF
15304
rm -f conftest.$ac_objext
15305
if { (ac_try="$ac_compile"
15306
case "(($ac_try" in
15307
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15308
  *) ac_try_echo=$ac_try;;
15309
esac
15310
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15311
$as_echo "$ac_try_echo") >&5
15312
  (eval "$ac_compile") 2>conftest.er1
15313
  ac_status=$?
15314
  grep -v '^ *+' conftest.er1 >conftest.err
15315
  rm -f conftest.er1
15316
  cat conftest.err >&5
15317
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15318
  (exit $ac_status); } && {
15319
         test -z "$ac_c_werror_flag" ||
15320
         test ! -s conftest.err
15321
       } && test -s conftest.$ac_objext; then
15322
  cat >conftest.$ac_ext <<_ACEOF
15323
/* confdefs.h.  */
15324
_ACEOF
15325
cat confdefs.h >>conftest.$ac_ext
15326
cat >>conftest.$ac_ext <<_ACEOF
15327
/* end confdefs.h.  */
15328
#include 
15329
 
15330
int
15331
main ()
15332
{
15333
if (sizeof ((uint8_t)))
15334
          return 0;
15335
  ;
15336
  return 0;
15337
}
15338
_ACEOF
15339
rm -f conftest.$ac_objext
15340
if { (ac_try="$ac_compile"
15341
case "(($ac_try" in
15342
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15343
  *) ac_try_echo=$ac_try;;
15344
esac
15345
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15346
$as_echo "$ac_try_echo") >&5
15347
  (eval "$ac_compile") 2>conftest.er1
15348
  ac_status=$?
15349
  grep -v '^ *+' conftest.er1 >conftest.err
15350
  rm -f conftest.er1
15351
  cat conftest.err >&5
15352
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15353
  (exit $ac_status); } && {
15354
         test -z "$ac_c_werror_flag" ||
15355
         test ! -s conftest.err
15356
       } && test -s conftest.$ac_objext; then
15357
  :
15358
else
15359
  $as_echo "$as_me: failed program was:" >&5
15360
sed 's/^/| /' conftest.$ac_ext >&5
15361
 
15362
        ac_cv_type_uint8_t=yes
15363
fi
15364
 
15365
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15366
else
15367
  $as_echo "$as_me: failed program was:" >&5
15368
sed 's/^/| /' conftest.$ac_ext >&5
15369
 
15370
 
15371
fi
15372
 
15373
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15374
fi
15375
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
15376
$as_echo "$ac_cv_type_uint8_t" >&6; }
15377
if test "x$ac_cv_type_uint8_t" = x""yes; then
15378
 
15379 19 jeremybenn
cat >>confdefs.h <<_ACEOF
15380
#define HAVE_UINT8_T 1
15381
_ACEOF
15382
 
15383
 
15384
fi
15385 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for uint16_t" >&5
15386
$as_echo_n "checking for uint16_t... " >&6; }
15387
if test "${ac_cv_type_uint16_t+set}" = set; then
15388
  $as_echo_n "(cached) " >&6
15389
else
15390
  ac_cv_type_uint16_t=no
15391
cat >conftest.$ac_ext <<_ACEOF
15392
/* confdefs.h.  */
15393
_ACEOF
15394
cat confdefs.h >>conftest.$ac_ext
15395
cat >>conftest.$ac_ext <<_ACEOF
15396
/* end confdefs.h.  */
15397
#include 
15398 82 jeremybenn
 
15399 101 jeremybenn
int
15400
main ()
15401
{
15402
if (sizeof (uint16_t))
15403
       return 0;
15404
  ;
15405
  return 0;
15406
}
15407
_ACEOF
15408
rm -f conftest.$ac_objext
15409
if { (ac_try="$ac_compile"
15410
case "(($ac_try" in
15411
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15412
  *) ac_try_echo=$ac_try;;
15413
esac
15414
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15415
$as_echo "$ac_try_echo") >&5
15416
  (eval "$ac_compile") 2>conftest.er1
15417
  ac_status=$?
15418
  grep -v '^ *+' conftest.er1 >conftest.err
15419
  rm -f conftest.er1
15420
  cat conftest.err >&5
15421
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15422
  (exit $ac_status); } && {
15423
         test -z "$ac_c_werror_flag" ||
15424
         test ! -s conftest.err
15425
       } && test -s conftest.$ac_objext; then
15426
  cat >conftest.$ac_ext <<_ACEOF
15427
/* confdefs.h.  */
15428
_ACEOF
15429
cat confdefs.h >>conftest.$ac_ext
15430
cat >>conftest.$ac_ext <<_ACEOF
15431
/* end confdefs.h.  */
15432
#include 
15433
 
15434
int
15435
main ()
15436
{
15437
if (sizeof ((uint16_t)))
15438
          return 0;
15439
  ;
15440
  return 0;
15441
}
15442
_ACEOF
15443
rm -f conftest.$ac_objext
15444
if { (ac_try="$ac_compile"
15445
case "(($ac_try" in
15446
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15447
  *) ac_try_echo=$ac_try;;
15448
esac
15449
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15450
$as_echo "$ac_try_echo") >&5
15451
  (eval "$ac_compile") 2>conftest.er1
15452
  ac_status=$?
15453
  grep -v '^ *+' conftest.er1 >conftest.err
15454
  rm -f conftest.er1
15455
  cat conftest.err >&5
15456
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15457
  (exit $ac_status); } && {
15458
         test -z "$ac_c_werror_flag" ||
15459
         test ! -s conftest.err
15460
       } && test -s conftest.$ac_objext; then
15461
  :
15462
else
15463
  $as_echo "$as_me: failed program was:" >&5
15464
sed 's/^/| /' conftest.$ac_ext >&5
15465
 
15466
        ac_cv_type_uint16_t=yes
15467
fi
15468
 
15469
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15470
else
15471
  $as_echo "$as_me: failed program was:" >&5
15472
sed 's/^/| /' conftest.$ac_ext >&5
15473
 
15474
 
15475
fi
15476
 
15477
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15478
fi
15479
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
15480
$as_echo "$ac_cv_type_uint16_t" >&6; }
15481
if test "x$ac_cv_type_uint16_t" = x""yes; then
15482
 
15483 19 jeremybenn
cat >>confdefs.h <<_ACEOF
15484
#define HAVE_UINT16_T 1
15485
_ACEOF
15486
 
15487
 
15488
fi
15489 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
15490
$as_echo_n "checking for uint32_t... " >&6; }
15491
if test "${ac_cv_type_uint32_t+set}" = set; then
15492
  $as_echo_n "(cached) " >&6
15493
else
15494
  ac_cv_type_uint32_t=no
15495
cat >conftest.$ac_ext <<_ACEOF
15496
/* confdefs.h.  */
15497
_ACEOF
15498
cat confdefs.h >>conftest.$ac_ext
15499
cat >>conftest.$ac_ext <<_ACEOF
15500
/* end confdefs.h.  */
15501
#include 
15502 82 jeremybenn
 
15503 101 jeremybenn
int
15504
main ()
15505
{
15506
if (sizeof (uint32_t))
15507
       return 0;
15508
  ;
15509
  return 0;
15510
}
15511
_ACEOF
15512
rm -f conftest.$ac_objext
15513
if { (ac_try="$ac_compile"
15514
case "(($ac_try" in
15515
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15516
  *) ac_try_echo=$ac_try;;
15517
esac
15518
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15519
$as_echo "$ac_try_echo") >&5
15520
  (eval "$ac_compile") 2>conftest.er1
15521
  ac_status=$?
15522
  grep -v '^ *+' conftest.er1 >conftest.err
15523
  rm -f conftest.er1
15524
  cat conftest.err >&5
15525
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15526
  (exit $ac_status); } && {
15527
         test -z "$ac_c_werror_flag" ||
15528
         test ! -s conftest.err
15529
       } && test -s conftest.$ac_objext; then
15530
  cat >conftest.$ac_ext <<_ACEOF
15531
/* confdefs.h.  */
15532
_ACEOF
15533
cat confdefs.h >>conftest.$ac_ext
15534
cat >>conftest.$ac_ext <<_ACEOF
15535
/* end confdefs.h.  */
15536
#include 
15537
 
15538
int
15539
main ()
15540
{
15541
if (sizeof ((uint32_t)))
15542
          return 0;
15543
  ;
15544
  return 0;
15545
}
15546
_ACEOF
15547
rm -f conftest.$ac_objext
15548
if { (ac_try="$ac_compile"
15549
case "(($ac_try" in
15550
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15551
  *) ac_try_echo=$ac_try;;
15552
esac
15553
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15554
$as_echo "$ac_try_echo") >&5
15555
  (eval "$ac_compile") 2>conftest.er1
15556
  ac_status=$?
15557
  grep -v '^ *+' conftest.er1 >conftest.err
15558
  rm -f conftest.er1
15559
  cat conftest.err >&5
15560
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15561
  (exit $ac_status); } && {
15562
         test -z "$ac_c_werror_flag" ||
15563
         test ! -s conftest.err
15564
       } && test -s conftest.$ac_objext; then
15565
  :
15566
else
15567
  $as_echo "$as_me: failed program was:" >&5
15568
sed 's/^/| /' conftest.$ac_ext >&5
15569
 
15570
        ac_cv_type_uint32_t=yes
15571
fi
15572
 
15573
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15574
else
15575
  $as_echo "$as_me: failed program was:" >&5
15576
sed 's/^/| /' conftest.$ac_ext >&5
15577
 
15578
 
15579
fi
15580
 
15581
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15582
fi
15583
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
15584
$as_echo "$ac_cv_type_uint32_t" >&6; }
15585
if test "x$ac_cv_type_uint32_t" = x""yes; then
15586
 
15587 19 jeremybenn
cat >>confdefs.h <<_ACEOF
15588
#define HAVE_UINT32_T 1
15589
_ACEOF
15590
 
15591
 
15592
fi
15593
 
15594 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for int8_t" >&5
15595
$as_echo_n "checking for int8_t... " >&6; }
15596
if test "${ac_cv_type_int8_t+set}" = set; then
15597
  $as_echo_n "(cached) " >&6
15598
else
15599
  ac_cv_type_int8_t=no
15600
cat >conftest.$ac_ext <<_ACEOF
15601
/* confdefs.h.  */
15602
_ACEOF
15603
cat confdefs.h >>conftest.$ac_ext
15604
cat >>conftest.$ac_ext <<_ACEOF
15605
/* end confdefs.h.  */
15606
#include 
15607 82 jeremybenn
 
15608 101 jeremybenn
int
15609
main ()
15610
{
15611
if (sizeof (int8_t))
15612
       return 0;
15613
  ;
15614
  return 0;
15615
}
15616
_ACEOF
15617
rm -f conftest.$ac_objext
15618
if { (ac_try="$ac_compile"
15619
case "(($ac_try" in
15620
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15621
  *) ac_try_echo=$ac_try;;
15622
esac
15623
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15624
$as_echo "$ac_try_echo") >&5
15625
  (eval "$ac_compile") 2>conftest.er1
15626
  ac_status=$?
15627
  grep -v '^ *+' conftest.er1 >conftest.err
15628
  rm -f conftest.er1
15629
  cat conftest.err >&5
15630
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15631
  (exit $ac_status); } && {
15632
         test -z "$ac_c_werror_flag" ||
15633
         test ! -s conftest.err
15634
       } && test -s conftest.$ac_objext; then
15635
  cat >conftest.$ac_ext <<_ACEOF
15636
/* confdefs.h.  */
15637
_ACEOF
15638
cat confdefs.h >>conftest.$ac_ext
15639
cat >>conftest.$ac_ext <<_ACEOF
15640
/* end confdefs.h.  */
15641
#include 
15642
 
15643
int
15644
main ()
15645
{
15646
if (sizeof ((int8_t)))
15647
          return 0;
15648
  ;
15649
  return 0;
15650
}
15651
_ACEOF
15652
rm -f conftest.$ac_objext
15653
if { (ac_try="$ac_compile"
15654
case "(($ac_try" in
15655
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15656
  *) ac_try_echo=$ac_try;;
15657
esac
15658
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15659
$as_echo "$ac_try_echo") >&5
15660
  (eval "$ac_compile") 2>conftest.er1
15661
  ac_status=$?
15662
  grep -v '^ *+' conftest.er1 >conftest.err
15663
  rm -f conftest.er1
15664
  cat conftest.err >&5
15665
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15666
  (exit $ac_status); } && {
15667
         test -z "$ac_c_werror_flag" ||
15668
         test ! -s conftest.err
15669
       } && test -s conftest.$ac_objext; then
15670
  :
15671
else
15672
  $as_echo "$as_me: failed program was:" >&5
15673
sed 's/^/| /' conftest.$ac_ext >&5
15674
 
15675
        ac_cv_type_int8_t=yes
15676
fi
15677
 
15678
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15679
else
15680
  $as_echo "$as_me: failed program was:" >&5
15681
sed 's/^/| /' conftest.$ac_ext >&5
15682
 
15683
 
15684
fi
15685
 
15686
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15687
fi
15688
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
15689
$as_echo "$ac_cv_type_int8_t" >&6; }
15690
if test "x$ac_cv_type_int8_t" = x""yes; then
15691
 
15692 19 jeremybenn
cat >>confdefs.h <<_ACEOF
15693
#define HAVE_INT8_T 1
15694
_ACEOF
15695
 
15696
 
15697
fi
15698 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for int16_t" >&5
15699
$as_echo_n "checking for int16_t... " >&6; }
15700
if test "${ac_cv_type_int16_t+set}" = set; then
15701
  $as_echo_n "(cached) " >&6
15702
else
15703
  ac_cv_type_int16_t=no
15704
cat >conftest.$ac_ext <<_ACEOF
15705
/* confdefs.h.  */
15706
_ACEOF
15707
cat confdefs.h >>conftest.$ac_ext
15708
cat >>conftest.$ac_ext <<_ACEOF
15709
/* end confdefs.h.  */
15710
#include 
15711 82 jeremybenn
 
15712 101 jeremybenn
int
15713
main ()
15714
{
15715
if (sizeof (int16_t))
15716
       return 0;
15717
  ;
15718
  return 0;
15719
}
15720
_ACEOF
15721
rm -f conftest.$ac_objext
15722
if { (ac_try="$ac_compile"
15723
case "(($ac_try" in
15724
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15725
  *) ac_try_echo=$ac_try;;
15726
esac
15727
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15728
$as_echo "$ac_try_echo") >&5
15729
  (eval "$ac_compile") 2>conftest.er1
15730
  ac_status=$?
15731
  grep -v '^ *+' conftest.er1 >conftest.err
15732
  rm -f conftest.er1
15733
  cat conftest.err >&5
15734
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15735
  (exit $ac_status); } && {
15736
         test -z "$ac_c_werror_flag" ||
15737
         test ! -s conftest.err
15738
       } && test -s conftest.$ac_objext; then
15739
  cat >conftest.$ac_ext <<_ACEOF
15740
/* confdefs.h.  */
15741
_ACEOF
15742
cat confdefs.h >>conftest.$ac_ext
15743
cat >>conftest.$ac_ext <<_ACEOF
15744
/* end confdefs.h.  */
15745
#include 
15746
 
15747
int
15748
main ()
15749
{
15750
if (sizeof ((int16_t)))
15751
          return 0;
15752
  ;
15753
  return 0;
15754
}
15755
_ACEOF
15756
rm -f conftest.$ac_objext
15757
if { (ac_try="$ac_compile"
15758
case "(($ac_try" in
15759
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15760
  *) ac_try_echo=$ac_try;;
15761
esac
15762
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15763
$as_echo "$ac_try_echo") >&5
15764
  (eval "$ac_compile") 2>conftest.er1
15765
  ac_status=$?
15766
  grep -v '^ *+' conftest.er1 >conftest.err
15767
  rm -f conftest.er1
15768
  cat conftest.err >&5
15769
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15770
  (exit $ac_status); } && {
15771
         test -z "$ac_c_werror_flag" ||
15772
         test ! -s conftest.err
15773
       } && test -s conftest.$ac_objext; then
15774
  :
15775
else
15776
  $as_echo "$as_me: failed program was:" >&5
15777
sed 's/^/| /' conftest.$ac_ext >&5
15778
 
15779
        ac_cv_type_int16_t=yes
15780
fi
15781
 
15782
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15783
else
15784
  $as_echo "$as_me: failed program was:" >&5
15785
sed 's/^/| /' conftest.$ac_ext >&5
15786
 
15787
 
15788
fi
15789
 
15790
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15791
fi
15792
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
15793
$as_echo "$ac_cv_type_int16_t" >&6; }
15794
if test "x$ac_cv_type_int16_t" = x""yes; then
15795
 
15796 19 jeremybenn
cat >>confdefs.h <<_ACEOF
15797
#define HAVE_INT16_T 1
15798
_ACEOF
15799
 
15800
 
15801
fi
15802 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for int32_t" >&5
15803
$as_echo_n "checking for int32_t... " >&6; }
15804
if test "${ac_cv_type_int32_t+set}" = set; then
15805
  $as_echo_n "(cached) " >&6
15806
else
15807
  ac_cv_type_int32_t=no
15808
cat >conftest.$ac_ext <<_ACEOF
15809
/* confdefs.h.  */
15810
_ACEOF
15811
cat confdefs.h >>conftest.$ac_ext
15812
cat >>conftest.$ac_ext <<_ACEOF
15813
/* end confdefs.h.  */
15814
#include 
15815 19 jeremybenn
 
15816 101 jeremybenn
int
15817
main ()
15818
{
15819
if (sizeof (int32_t))
15820
       return 0;
15821
  ;
15822
  return 0;
15823
}
15824
_ACEOF
15825
rm -f conftest.$ac_objext
15826
if { (ac_try="$ac_compile"
15827
case "(($ac_try" in
15828
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15829
  *) ac_try_echo=$ac_try;;
15830
esac
15831
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15832
$as_echo "$ac_try_echo") >&5
15833
  (eval "$ac_compile") 2>conftest.er1
15834
  ac_status=$?
15835
  grep -v '^ *+' conftest.er1 >conftest.err
15836
  rm -f conftest.er1
15837
  cat conftest.err >&5
15838
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15839
  (exit $ac_status); } && {
15840
         test -z "$ac_c_werror_flag" ||
15841
         test ! -s conftest.err
15842
       } && test -s conftest.$ac_objext; then
15843
  cat >conftest.$ac_ext <<_ACEOF
15844
/* confdefs.h.  */
15845
_ACEOF
15846
cat confdefs.h >>conftest.$ac_ext
15847
cat >>conftest.$ac_ext <<_ACEOF
15848
/* end confdefs.h.  */
15849
#include 
15850
 
15851
int
15852
main ()
15853
{
15854
if (sizeof ((int32_t)))
15855
          return 0;
15856
  ;
15857
  return 0;
15858
}
15859
_ACEOF
15860
rm -f conftest.$ac_objext
15861
if { (ac_try="$ac_compile"
15862
case "(($ac_try" in
15863
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15864
  *) ac_try_echo=$ac_try;;
15865
esac
15866
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15867
$as_echo "$ac_try_echo") >&5
15868
  (eval "$ac_compile") 2>conftest.er1
15869
  ac_status=$?
15870
  grep -v '^ *+' conftest.er1 >conftest.err
15871
  rm -f conftest.er1
15872
  cat conftest.err >&5
15873
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15874
  (exit $ac_status); } && {
15875
         test -z "$ac_c_werror_flag" ||
15876
         test ! -s conftest.err
15877
       } && test -s conftest.$ac_objext; then
15878
  :
15879
else
15880
  $as_echo "$as_me: failed program was:" >&5
15881
sed 's/^/| /' conftest.$ac_ext >&5
15882
 
15883
        ac_cv_type_int32_t=yes
15884
fi
15885
 
15886
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15887
else
15888
  $as_echo "$as_me: failed program was:" >&5
15889
sed 's/^/| /' conftest.$ac_ext >&5
15890
 
15891
 
15892
fi
15893
 
15894
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15895
fi
15896
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
15897
$as_echo "$ac_cv_type_int32_t" >&6; }
15898
if test "x$ac_cv_type_int32_t" = x""yes; then
15899
 
15900 82 jeremybenn
cat >>confdefs.h <<_ACEOF
15901
#define HAVE_INT32_T 1
15902
_ACEOF
15903
 
15904
 
15905
fi
15906
 
15907
 
15908 19 jeremybenn
# The cast to long int works around a bug in the HP C Compiler
15909
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15910
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15911
# This bug is HP SR number 8606223364.
15912 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking size of char" >&5
15913 82 jeremybenn
$as_echo_n "checking size of char... " >&6; }
15914 101 jeremybenn
if test "${ac_cv_sizeof_char+set}" = set; then
15915 82 jeremybenn
  $as_echo_n "(cached) " >&6
15916 19 jeremybenn
else
15917 101 jeremybenn
  if test "$cross_compiling" = yes; then
15918
  # Depending upon the size, compute the lo and hi bounds.
15919
cat >conftest.$ac_ext <<_ACEOF
15920
/* confdefs.h.  */
15921
_ACEOF
15922
cat confdefs.h >>conftest.$ac_ext
15923
cat >>conftest.$ac_ext <<_ACEOF
15924
/* end confdefs.h.  */
15925
$ac_includes_default
15926
int
15927
main ()
15928
{
15929
static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= 0)];
15930
test_array [0] = 0
15931 19 jeremybenn
 
15932 101 jeremybenn
  ;
15933
  return 0;
15934
}
15935
_ACEOF
15936
rm -f conftest.$ac_objext
15937
if { (ac_try="$ac_compile"
15938
case "(($ac_try" in
15939
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15940
  *) ac_try_echo=$ac_try;;
15941
esac
15942
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15943
$as_echo "$ac_try_echo") >&5
15944
  (eval "$ac_compile") 2>conftest.er1
15945
  ac_status=$?
15946
  grep -v '^ *+' conftest.er1 >conftest.err
15947
  rm -f conftest.er1
15948
  cat conftest.err >&5
15949
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15950
  (exit $ac_status); } && {
15951
         test -z "$ac_c_werror_flag" ||
15952
         test ! -s conftest.err
15953
       } && test -s conftest.$ac_objext; then
15954
  ac_lo=0 ac_mid=0
15955
  while :; do
15956
    cat >conftest.$ac_ext <<_ACEOF
15957
/* confdefs.h.  */
15958
_ACEOF
15959
cat confdefs.h >>conftest.$ac_ext
15960
cat >>conftest.$ac_ext <<_ACEOF
15961
/* end confdefs.h.  */
15962
$ac_includes_default
15963
int
15964
main ()
15965
{
15966
static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)];
15967
test_array [0] = 0
15968
 
15969
  ;
15970
  return 0;
15971
}
15972
_ACEOF
15973
rm -f conftest.$ac_objext
15974
if { (ac_try="$ac_compile"
15975
case "(($ac_try" in
15976
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15977
  *) ac_try_echo=$ac_try;;
15978
esac
15979
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15980
$as_echo "$ac_try_echo") >&5
15981
  (eval "$ac_compile") 2>conftest.er1
15982
  ac_status=$?
15983
  grep -v '^ *+' conftest.er1 >conftest.err
15984
  rm -f conftest.er1
15985
  cat conftest.err >&5
15986
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15987
  (exit $ac_status); } && {
15988
         test -z "$ac_c_werror_flag" ||
15989
         test ! -s conftest.err
15990
       } && test -s conftest.$ac_objext; then
15991
  ac_hi=$ac_mid; break
15992 19 jeremybenn
else
15993 101 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
15994
sed 's/^/| /' conftest.$ac_ext >&5
15995
 
15996
        ac_lo=`expr $ac_mid + 1`
15997
                        if test $ac_lo -le $ac_mid; then
15998
                          ac_lo= ac_hi=
15999
                          break
16000
                        fi
16001
                        ac_mid=`expr 2 '*' $ac_mid + 1`
16002
fi
16003
 
16004
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16005
  done
16006
else
16007
  $as_echo "$as_me: failed program was:" >&5
16008
sed 's/^/| /' conftest.$ac_ext >&5
16009
 
16010
        cat >conftest.$ac_ext <<_ACEOF
16011
/* confdefs.h.  */
16012
_ACEOF
16013
cat confdefs.h >>conftest.$ac_ext
16014
cat >>conftest.$ac_ext <<_ACEOF
16015
/* end confdefs.h.  */
16016
$ac_includes_default
16017
int
16018
main ()
16019
{
16020
static int test_array [1 - 2 * !(((long int) (sizeof (char))) < 0)];
16021
test_array [0] = 0
16022
 
16023
  ;
16024
  return 0;
16025
}
16026
_ACEOF
16027
rm -f conftest.$ac_objext
16028
if { (ac_try="$ac_compile"
16029
case "(($ac_try" in
16030
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16031
  *) ac_try_echo=$ac_try;;
16032
esac
16033
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16034
$as_echo "$ac_try_echo") >&5
16035
  (eval "$ac_compile") 2>conftest.er1
16036
  ac_status=$?
16037
  grep -v '^ *+' conftest.er1 >conftest.err
16038
  rm -f conftest.er1
16039
  cat conftest.err >&5
16040
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16041
  (exit $ac_status); } && {
16042
         test -z "$ac_c_werror_flag" ||
16043
         test ! -s conftest.err
16044
       } && test -s conftest.$ac_objext; then
16045
  ac_hi=-1 ac_mid=-1
16046
  while :; do
16047
    cat >conftest.$ac_ext <<_ACEOF
16048
/* confdefs.h.  */
16049
_ACEOF
16050
cat confdefs.h >>conftest.$ac_ext
16051
cat >>conftest.$ac_ext <<_ACEOF
16052
/* end confdefs.h.  */
16053
$ac_includes_default
16054
int
16055
main ()
16056
{
16057
static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= $ac_mid)];
16058
test_array [0] = 0
16059
 
16060
  ;
16061
  return 0;
16062
}
16063
_ACEOF
16064
rm -f conftest.$ac_objext
16065
if { (ac_try="$ac_compile"
16066
case "(($ac_try" in
16067
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16068
  *) ac_try_echo=$ac_try;;
16069
esac
16070
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16071
$as_echo "$ac_try_echo") >&5
16072
  (eval "$ac_compile") 2>conftest.er1
16073
  ac_status=$?
16074
  grep -v '^ *+' conftest.er1 >conftest.err
16075
  rm -f conftest.er1
16076
  cat conftest.err >&5
16077
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16078
  (exit $ac_status); } && {
16079
         test -z "$ac_c_werror_flag" ||
16080
         test ! -s conftest.err
16081
       } && test -s conftest.$ac_objext; then
16082
  ac_lo=$ac_mid; break
16083
else
16084
  $as_echo "$as_me: failed program was:" >&5
16085
sed 's/^/| /' conftest.$ac_ext >&5
16086
 
16087
        ac_hi=`expr '(' $ac_mid ')' - 1`
16088
                        if test $ac_mid -le $ac_hi; then
16089
                          ac_lo= ac_hi=
16090
                          break
16091
                        fi
16092
                        ac_mid=`expr 2 '*' $ac_mid`
16093
fi
16094
 
16095
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16096
  done
16097
else
16098
  $as_echo "$as_me: failed program was:" >&5
16099
sed 's/^/| /' conftest.$ac_ext >&5
16100
 
16101
        ac_lo= ac_hi=
16102
fi
16103
 
16104
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16105
fi
16106
 
16107
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16108
# Binary search between lo and hi bounds.
16109
while test "x$ac_lo" != "x$ac_hi"; do
16110
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16111
  cat >conftest.$ac_ext <<_ACEOF
16112
/* confdefs.h.  */
16113
_ACEOF
16114
cat confdefs.h >>conftest.$ac_ext
16115
cat >>conftest.$ac_ext <<_ACEOF
16116
/* end confdefs.h.  */
16117
$ac_includes_default
16118
int
16119
main ()
16120
{
16121
static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)];
16122
test_array [0] = 0
16123
 
16124
  ;
16125
  return 0;
16126
}
16127
_ACEOF
16128
rm -f conftest.$ac_objext
16129
if { (ac_try="$ac_compile"
16130
case "(($ac_try" in
16131
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16132
  *) ac_try_echo=$ac_try;;
16133
esac
16134
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16135
$as_echo "$ac_try_echo") >&5
16136
  (eval "$ac_compile") 2>conftest.er1
16137
  ac_status=$?
16138
  grep -v '^ *+' conftest.er1 >conftest.err
16139
  rm -f conftest.er1
16140
  cat conftest.err >&5
16141
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16142
  (exit $ac_status); } && {
16143
         test -z "$ac_c_werror_flag" ||
16144
         test ! -s conftest.err
16145
       } && test -s conftest.$ac_objext; then
16146
  ac_hi=$ac_mid
16147
else
16148
  $as_echo "$as_me: failed program was:" >&5
16149
sed 's/^/| /' conftest.$ac_ext >&5
16150
 
16151
        ac_lo=`expr '(' $ac_mid ')' + 1`
16152
fi
16153
 
16154
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16155
done
16156
case $ac_lo in
16157
?*) ac_cv_sizeof_char=$ac_lo;;
16158
'') if test "$ac_cv_type_char" = yes; then
16159
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16160 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16161 101 jeremybenn
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
16162
See \`config.log' for more details." >&5
16163
$as_echo "$as_me: error: cannot compute sizeof (char)
16164
See \`config.log' for more details." >&2;}
16165
   { (exit 77); exit 77; }; }; }
16166 19 jeremybenn
   else
16167
     ac_cv_sizeof_char=0
16168 101 jeremybenn
   fi ;;
16169
esac
16170
else
16171
  cat >conftest.$ac_ext <<_ACEOF
16172
/* confdefs.h.  */
16173
_ACEOF
16174
cat confdefs.h >>conftest.$ac_ext
16175
cat >>conftest.$ac_ext <<_ACEOF
16176
/* end confdefs.h.  */
16177
$ac_includes_default
16178
static long int longval () { return (long int) (sizeof (char)); }
16179
static unsigned long int ulongval () { return (long int) (sizeof (char)); }
16180
#include 
16181
#include 
16182
int
16183
main ()
16184
{
16185
 
16186
  FILE *f = fopen ("conftest.val", "w");
16187
  if (! f)
16188
    return 1;
16189
  if (((long int) (sizeof (char))) < 0)
16190
    {
16191
      long int i = longval ();
16192
      if (i != ((long int) (sizeof (char))))
16193
        return 1;
16194
      fprintf (f, "%ld", i);
16195
    }
16196
  else
16197
    {
16198
      unsigned long int i = ulongval ();
16199
      if (i != ((long int) (sizeof (char))))
16200
        return 1;
16201
      fprintf (f, "%lu", i);
16202
    }
16203
  /* Do not output a trailing newline, as this causes \r\n confusion
16204
     on some platforms.  */
16205
  return ferror (f) || fclose (f) != 0;
16206
 
16207
  ;
16208
  return 0;
16209
}
16210
_ACEOF
16211
rm -f conftest$ac_exeext
16212
if { (ac_try="$ac_link"
16213
case "(($ac_try" in
16214
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16215
  *) ac_try_echo=$ac_try;;
16216
esac
16217
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16218
$as_echo "$ac_try_echo") >&5
16219
  (eval "$ac_link") 2>&5
16220
  ac_status=$?
16221
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16222
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16223
  { (case "(($ac_try" in
16224
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16225
  *) ac_try_echo=$ac_try;;
16226
esac
16227
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16228
$as_echo "$ac_try_echo") >&5
16229
  (eval "$ac_try") 2>&5
16230
  ac_status=$?
16231
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16232
  (exit $ac_status); }; }; then
16233
  ac_cv_sizeof_char=`cat conftest.val`
16234
else
16235
  $as_echo "$as_me: program exited with status $ac_status" >&5
16236
$as_echo "$as_me: failed program was:" >&5
16237
sed 's/^/| /' conftest.$ac_ext >&5
16238
 
16239
( exit $ac_status )
16240
if test "$ac_cv_type_char" = yes; then
16241
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16242
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16243
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
16244
See \`config.log' for more details." >&5
16245
$as_echo "$as_me: error: cannot compute sizeof (char)
16246
See \`config.log' for more details." >&2;}
16247
   { (exit 77); exit 77; }; }; }
16248
   else
16249
     ac_cv_sizeof_char=0
16250 19 jeremybenn
   fi
16251
fi
16252 101 jeremybenn
rm -rf conftest.dSYM
16253
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16254 19 jeremybenn
fi
16255 101 jeremybenn
rm -f conftest.val
16256
fi
16257
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
16258 82 jeremybenn
$as_echo "$ac_cv_sizeof_char" >&6; }
16259 19 jeremybenn
 
16260
 
16261
 
16262
cat >>confdefs.h <<_ACEOF
16263
#define SIZEOF_CHAR $ac_cv_sizeof_char
16264
_ACEOF
16265
 
16266
 
16267
# The cast to long int works around a bug in the HP C Compiler
16268
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16269
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16270
# This bug is HP SR number 8606223364.
16271 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking size of short" >&5
16272 82 jeremybenn
$as_echo_n "checking size of short... " >&6; }
16273 101 jeremybenn
if test "${ac_cv_sizeof_short+set}" = set; then
16274 82 jeremybenn
  $as_echo_n "(cached) " >&6
16275 19 jeremybenn
else
16276 101 jeremybenn
  if test "$cross_compiling" = yes; then
16277
  # Depending upon the size, compute the lo and hi bounds.
16278
cat >conftest.$ac_ext <<_ACEOF
16279
/* confdefs.h.  */
16280
_ACEOF
16281
cat confdefs.h >>conftest.$ac_ext
16282
cat >>conftest.$ac_ext <<_ACEOF
16283
/* end confdefs.h.  */
16284
$ac_includes_default
16285
int
16286
main ()
16287
{
16288
static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
16289
test_array [0] = 0
16290 19 jeremybenn
 
16291 101 jeremybenn
  ;
16292
  return 0;
16293
}
16294
_ACEOF
16295
rm -f conftest.$ac_objext
16296
if { (ac_try="$ac_compile"
16297
case "(($ac_try" in
16298
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16299
  *) ac_try_echo=$ac_try;;
16300
esac
16301
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16302
$as_echo "$ac_try_echo") >&5
16303
  (eval "$ac_compile") 2>conftest.er1
16304
  ac_status=$?
16305
  grep -v '^ *+' conftest.er1 >conftest.err
16306
  rm -f conftest.er1
16307
  cat conftest.err >&5
16308
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16309
  (exit $ac_status); } && {
16310
         test -z "$ac_c_werror_flag" ||
16311
         test ! -s conftest.err
16312
       } && test -s conftest.$ac_objext; then
16313
  ac_lo=0 ac_mid=0
16314
  while :; do
16315
    cat >conftest.$ac_ext <<_ACEOF
16316
/* confdefs.h.  */
16317
_ACEOF
16318
cat confdefs.h >>conftest.$ac_ext
16319
cat >>conftest.$ac_ext <<_ACEOF
16320
/* end confdefs.h.  */
16321
$ac_includes_default
16322
int
16323
main ()
16324
{
16325
static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
16326
test_array [0] = 0
16327
 
16328
  ;
16329
  return 0;
16330
}
16331
_ACEOF
16332
rm -f conftest.$ac_objext
16333
if { (ac_try="$ac_compile"
16334
case "(($ac_try" in
16335
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16336
  *) ac_try_echo=$ac_try;;
16337
esac
16338
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16339
$as_echo "$ac_try_echo") >&5
16340
  (eval "$ac_compile") 2>conftest.er1
16341
  ac_status=$?
16342
  grep -v '^ *+' conftest.er1 >conftest.err
16343
  rm -f conftest.er1
16344
  cat conftest.err >&5
16345
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16346
  (exit $ac_status); } && {
16347
         test -z "$ac_c_werror_flag" ||
16348
         test ! -s conftest.err
16349
       } && test -s conftest.$ac_objext; then
16350
  ac_hi=$ac_mid; break
16351 19 jeremybenn
else
16352 101 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
16353
sed 's/^/| /' conftest.$ac_ext >&5
16354
 
16355
        ac_lo=`expr $ac_mid + 1`
16356
                        if test $ac_lo -le $ac_mid; then
16357
                          ac_lo= ac_hi=
16358
                          break
16359
                        fi
16360
                        ac_mid=`expr 2 '*' $ac_mid + 1`
16361
fi
16362
 
16363
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16364
  done
16365
else
16366
  $as_echo "$as_me: failed program was:" >&5
16367
sed 's/^/| /' conftest.$ac_ext >&5
16368
 
16369
        cat >conftest.$ac_ext <<_ACEOF
16370
/* confdefs.h.  */
16371
_ACEOF
16372
cat confdefs.h >>conftest.$ac_ext
16373
cat >>conftest.$ac_ext <<_ACEOF
16374
/* end confdefs.h.  */
16375
$ac_includes_default
16376
int
16377
main ()
16378
{
16379
static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
16380
test_array [0] = 0
16381
 
16382
  ;
16383
  return 0;
16384
}
16385
_ACEOF
16386
rm -f conftest.$ac_objext
16387
if { (ac_try="$ac_compile"
16388
case "(($ac_try" in
16389
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16390
  *) ac_try_echo=$ac_try;;
16391
esac
16392
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16393
$as_echo "$ac_try_echo") >&5
16394
  (eval "$ac_compile") 2>conftest.er1
16395
  ac_status=$?
16396
  grep -v '^ *+' conftest.er1 >conftest.err
16397
  rm -f conftest.er1
16398
  cat conftest.err >&5
16399
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16400
  (exit $ac_status); } && {
16401
         test -z "$ac_c_werror_flag" ||
16402
         test ! -s conftest.err
16403
       } && test -s conftest.$ac_objext; then
16404
  ac_hi=-1 ac_mid=-1
16405
  while :; do
16406
    cat >conftest.$ac_ext <<_ACEOF
16407
/* confdefs.h.  */
16408
_ACEOF
16409
cat confdefs.h >>conftest.$ac_ext
16410
cat >>conftest.$ac_ext <<_ACEOF
16411
/* end confdefs.h.  */
16412
$ac_includes_default
16413
int
16414
main ()
16415
{
16416
static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
16417
test_array [0] = 0
16418
 
16419
  ;
16420
  return 0;
16421
}
16422
_ACEOF
16423
rm -f conftest.$ac_objext
16424
if { (ac_try="$ac_compile"
16425
case "(($ac_try" in
16426
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16427
  *) ac_try_echo=$ac_try;;
16428
esac
16429
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16430
$as_echo "$ac_try_echo") >&5
16431
  (eval "$ac_compile") 2>conftest.er1
16432
  ac_status=$?
16433
  grep -v '^ *+' conftest.er1 >conftest.err
16434
  rm -f conftest.er1
16435
  cat conftest.err >&5
16436
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16437
  (exit $ac_status); } && {
16438
         test -z "$ac_c_werror_flag" ||
16439
         test ! -s conftest.err
16440
       } && test -s conftest.$ac_objext; then
16441
  ac_lo=$ac_mid; break
16442
else
16443
  $as_echo "$as_me: failed program was:" >&5
16444
sed 's/^/| /' conftest.$ac_ext >&5
16445
 
16446
        ac_hi=`expr '(' $ac_mid ')' - 1`
16447
                        if test $ac_mid -le $ac_hi; then
16448
                          ac_lo= ac_hi=
16449
                          break
16450
                        fi
16451
                        ac_mid=`expr 2 '*' $ac_mid`
16452
fi
16453
 
16454
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16455
  done
16456
else
16457
  $as_echo "$as_me: failed program was:" >&5
16458
sed 's/^/| /' conftest.$ac_ext >&5
16459
 
16460
        ac_lo= ac_hi=
16461
fi
16462
 
16463
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16464
fi
16465
 
16466
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16467
# Binary search between lo and hi bounds.
16468
while test "x$ac_lo" != "x$ac_hi"; do
16469
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16470
  cat >conftest.$ac_ext <<_ACEOF
16471
/* confdefs.h.  */
16472
_ACEOF
16473
cat confdefs.h >>conftest.$ac_ext
16474
cat >>conftest.$ac_ext <<_ACEOF
16475
/* end confdefs.h.  */
16476
$ac_includes_default
16477
int
16478
main ()
16479
{
16480
static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
16481
test_array [0] = 0
16482
 
16483
  ;
16484
  return 0;
16485
}
16486
_ACEOF
16487
rm -f conftest.$ac_objext
16488
if { (ac_try="$ac_compile"
16489
case "(($ac_try" in
16490
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16491
  *) ac_try_echo=$ac_try;;
16492
esac
16493
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16494
$as_echo "$ac_try_echo") >&5
16495
  (eval "$ac_compile") 2>conftest.er1
16496
  ac_status=$?
16497
  grep -v '^ *+' conftest.er1 >conftest.err
16498
  rm -f conftest.er1
16499
  cat conftest.err >&5
16500
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16501
  (exit $ac_status); } && {
16502
         test -z "$ac_c_werror_flag" ||
16503
         test ! -s conftest.err
16504
       } && test -s conftest.$ac_objext; then
16505
  ac_hi=$ac_mid
16506
else
16507
  $as_echo "$as_me: failed program was:" >&5
16508
sed 's/^/| /' conftest.$ac_ext >&5
16509
 
16510
        ac_lo=`expr '(' $ac_mid ')' + 1`
16511
fi
16512
 
16513
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16514
done
16515
case $ac_lo in
16516
?*) ac_cv_sizeof_short=$ac_lo;;
16517
'') if test "$ac_cv_type_short" = yes; then
16518
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16519 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16520 101 jeremybenn
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
16521
See \`config.log' for more details." >&5
16522
$as_echo "$as_me: error: cannot compute sizeof (short)
16523
See \`config.log' for more details." >&2;}
16524
   { (exit 77); exit 77; }; }; }
16525 19 jeremybenn
   else
16526
     ac_cv_sizeof_short=0
16527 101 jeremybenn
   fi ;;
16528
esac
16529
else
16530
  cat >conftest.$ac_ext <<_ACEOF
16531
/* confdefs.h.  */
16532
_ACEOF
16533
cat confdefs.h >>conftest.$ac_ext
16534
cat >>conftest.$ac_ext <<_ACEOF
16535
/* end confdefs.h.  */
16536
$ac_includes_default
16537
static long int longval () { return (long int) (sizeof (short)); }
16538
static unsigned long int ulongval () { return (long int) (sizeof (short)); }
16539
#include 
16540
#include 
16541
int
16542
main ()
16543
{
16544
 
16545
  FILE *f = fopen ("conftest.val", "w");
16546
  if (! f)
16547
    return 1;
16548
  if (((long int) (sizeof (short))) < 0)
16549
    {
16550
      long int i = longval ();
16551
      if (i != ((long int) (sizeof (short))))
16552
        return 1;
16553
      fprintf (f, "%ld", i);
16554
    }
16555
  else
16556
    {
16557
      unsigned long int i = ulongval ();
16558
      if (i != ((long int) (sizeof (short))))
16559
        return 1;
16560
      fprintf (f, "%lu", i);
16561
    }
16562
  /* Do not output a trailing newline, as this causes \r\n confusion
16563
     on some platforms.  */
16564
  return ferror (f) || fclose (f) != 0;
16565
 
16566
  ;
16567
  return 0;
16568
}
16569
_ACEOF
16570
rm -f conftest$ac_exeext
16571
if { (ac_try="$ac_link"
16572
case "(($ac_try" in
16573
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16574
  *) ac_try_echo=$ac_try;;
16575
esac
16576
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16577
$as_echo "$ac_try_echo") >&5
16578
  (eval "$ac_link") 2>&5
16579
  ac_status=$?
16580
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16581
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16582
  { (case "(($ac_try" in
16583
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16584
  *) ac_try_echo=$ac_try;;
16585
esac
16586
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16587
$as_echo "$ac_try_echo") >&5
16588
  (eval "$ac_try") 2>&5
16589
  ac_status=$?
16590
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16591
  (exit $ac_status); }; }; then
16592
  ac_cv_sizeof_short=`cat conftest.val`
16593
else
16594
  $as_echo "$as_me: program exited with status $ac_status" >&5
16595
$as_echo "$as_me: failed program was:" >&5
16596
sed 's/^/| /' conftest.$ac_ext >&5
16597
 
16598
( exit $ac_status )
16599
if test "$ac_cv_type_short" = yes; then
16600
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16601
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16602
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
16603
See \`config.log' for more details." >&5
16604
$as_echo "$as_me: error: cannot compute sizeof (short)
16605
See \`config.log' for more details." >&2;}
16606
   { (exit 77); exit 77; }; }; }
16607
   else
16608
     ac_cv_sizeof_short=0
16609 19 jeremybenn
   fi
16610
fi
16611 101 jeremybenn
rm -rf conftest.dSYM
16612
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16613 19 jeremybenn
fi
16614 101 jeremybenn
rm -f conftest.val
16615
fi
16616
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
16617 82 jeremybenn
$as_echo "$ac_cv_sizeof_short" >&6; }
16618 19 jeremybenn
 
16619
 
16620
 
16621
cat >>confdefs.h <<_ACEOF
16622
#define SIZEOF_SHORT $ac_cv_sizeof_short
16623
_ACEOF
16624
 
16625
 
16626
# The cast to long int works around a bug in the HP C Compiler
16627
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16628
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16629
# This bug is HP SR number 8606223364.
16630 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking size of int" >&5
16631 82 jeremybenn
$as_echo_n "checking size of int... " >&6; }
16632 101 jeremybenn
if test "${ac_cv_sizeof_int+set}" = set; then
16633 82 jeremybenn
  $as_echo_n "(cached) " >&6
16634 19 jeremybenn
else
16635 101 jeremybenn
  if test "$cross_compiling" = yes; then
16636
  # Depending upon the size, compute the lo and hi bounds.
16637
cat >conftest.$ac_ext <<_ACEOF
16638
/* confdefs.h.  */
16639
_ACEOF
16640
cat confdefs.h >>conftest.$ac_ext
16641
cat >>conftest.$ac_ext <<_ACEOF
16642
/* end confdefs.h.  */
16643
$ac_includes_default
16644
int
16645
main ()
16646
{
16647
static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
16648
test_array [0] = 0
16649 19 jeremybenn
 
16650 101 jeremybenn
  ;
16651
  return 0;
16652
}
16653
_ACEOF
16654
rm -f conftest.$ac_objext
16655
if { (ac_try="$ac_compile"
16656
case "(($ac_try" in
16657
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16658
  *) ac_try_echo=$ac_try;;
16659
esac
16660
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16661
$as_echo "$ac_try_echo") >&5
16662
  (eval "$ac_compile") 2>conftest.er1
16663
  ac_status=$?
16664
  grep -v '^ *+' conftest.er1 >conftest.err
16665
  rm -f conftest.er1
16666
  cat conftest.err >&5
16667
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16668
  (exit $ac_status); } && {
16669
         test -z "$ac_c_werror_flag" ||
16670
         test ! -s conftest.err
16671
       } && test -s conftest.$ac_objext; then
16672
  ac_lo=0 ac_mid=0
16673
  while :; do
16674
    cat >conftest.$ac_ext <<_ACEOF
16675
/* confdefs.h.  */
16676
_ACEOF
16677
cat confdefs.h >>conftest.$ac_ext
16678
cat >>conftest.$ac_ext <<_ACEOF
16679
/* end confdefs.h.  */
16680
$ac_includes_default
16681
int
16682
main ()
16683
{
16684
static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
16685
test_array [0] = 0
16686
 
16687
  ;
16688
  return 0;
16689
}
16690
_ACEOF
16691
rm -f conftest.$ac_objext
16692
if { (ac_try="$ac_compile"
16693
case "(($ac_try" in
16694
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16695
  *) ac_try_echo=$ac_try;;
16696
esac
16697
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16698
$as_echo "$ac_try_echo") >&5
16699
  (eval "$ac_compile") 2>conftest.er1
16700
  ac_status=$?
16701
  grep -v '^ *+' conftest.er1 >conftest.err
16702
  rm -f conftest.er1
16703
  cat conftest.err >&5
16704
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16705
  (exit $ac_status); } && {
16706
         test -z "$ac_c_werror_flag" ||
16707
         test ! -s conftest.err
16708
       } && test -s conftest.$ac_objext; then
16709
  ac_hi=$ac_mid; break
16710 19 jeremybenn
else
16711 101 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
16712
sed 's/^/| /' conftest.$ac_ext >&5
16713
 
16714
        ac_lo=`expr $ac_mid + 1`
16715
                        if test $ac_lo -le $ac_mid; then
16716
                          ac_lo= ac_hi=
16717
                          break
16718
                        fi
16719
                        ac_mid=`expr 2 '*' $ac_mid + 1`
16720
fi
16721
 
16722
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16723
  done
16724
else
16725
  $as_echo "$as_me: failed program was:" >&5
16726
sed 's/^/| /' conftest.$ac_ext >&5
16727
 
16728
        cat >conftest.$ac_ext <<_ACEOF
16729
/* confdefs.h.  */
16730
_ACEOF
16731
cat confdefs.h >>conftest.$ac_ext
16732
cat >>conftest.$ac_ext <<_ACEOF
16733
/* end confdefs.h.  */
16734
$ac_includes_default
16735
int
16736
main ()
16737
{
16738
static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
16739
test_array [0] = 0
16740
 
16741
  ;
16742
  return 0;
16743
}
16744
_ACEOF
16745
rm -f conftest.$ac_objext
16746
if { (ac_try="$ac_compile"
16747
case "(($ac_try" in
16748
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16749
  *) ac_try_echo=$ac_try;;
16750
esac
16751
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16752
$as_echo "$ac_try_echo") >&5
16753
  (eval "$ac_compile") 2>conftest.er1
16754
  ac_status=$?
16755
  grep -v '^ *+' conftest.er1 >conftest.err
16756
  rm -f conftest.er1
16757
  cat conftest.err >&5
16758
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16759
  (exit $ac_status); } && {
16760
         test -z "$ac_c_werror_flag" ||
16761
         test ! -s conftest.err
16762
       } && test -s conftest.$ac_objext; then
16763
  ac_hi=-1 ac_mid=-1
16764
  while :; do
16765
    cat >conftest.$ac_ext <<_ACEOF
16766
/* confdefs.h.  */
16767
_ACEOF
16768
cat confdefs.h >>conftest.$ac_ext
16769
cat >>conftest.$ac_ext <<_ACEOF
16770
/* end confdefs.h.  */
16771
$ac_includes_default
16772
int
16773
main ()
16774
{
16775
static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
16776
test_array [0] = 0
16777
 
16778
  ;
16779
  return 0;
16780
}
16781
_ACEOF
16782
rm -f conftest.$ac_objext
16783
if { (ac_try="$ac_compile"
16784
case "(($ac_try" in
16785
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16786
  *) ac_try_echo=$ac_try;;
16787
esac
16788
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16789
$as_echo "$ac_try_echo") >&5
16790
  (eval "$ac_compile") 2>conftest.er1
16791
  ac_status=$?
16792
  grep -v '^ *+' conftest.er1 >conftest.err
16793
  rm -f conftest.er1
16794
  cat conftest.err >&5
16795
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16796
  (exit $ac_status); } && {
16797
         test -z "$ac_c_werror_flag" ||
16798
         test ! -s conftest.err
16799
       } && test -s conftest.$ac_objext; then
16800
  ac_lo=$ac_mid; break
16801
else
16802
  $as_echo "$as_me: failed program was:" >&5
16803
sed 's/^/| /' conftest.$ac_ext >&5
16804
 
16805
        ac_hi=`expr '(' $ac_mid ')' - 1`
16806
                        if test $ac_mid -le $ac_hi; then
16807
                          ac_lo= ac_hi=
16808
                          break
16809
                        fi
16810
                        ac_mid=`expr 2 '*' $ac_mid`
16811
fi
16812
 
16813
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16814
  done
16815
else
16816
  $as_echo "$as_me: failed program was:" >&5
16817
sed 's/^/| /' conftest.$ac_ext >&5
16818
 
16819
        ac_lo= ac_hi=
16820
fi
16821
 
16822
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16823
fi
16824
 
16825
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16826
# Binary search between lo and hi bounds.
16827
while test "x$ac_lo" != "x$ac_hi"; do
16828
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16829
  cat >conftest.$ac_ext <<_ACEOF
16830
/* confdefs.h.  */
16831
_ACEOF
16832
cat confdefs.h >>conftest.$ac_ext
16833
cat >>conftest.$ac_ext <<_ACEOF
16834
/* end confdefs.h.  */
16835
$ac_includes_default
16836
int
16837
main ()
16838
{
16839
static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
16840
test_array [0] = 0
16841
 
16842
  ;
16843
  return 0;
16844
}
16845
_ACEOF
16846
rm -f conftest.$ac_objext
16847
if { (ac_try="$ac_compile"
16848
case "(($ac_try" in
16849
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16850
  *) ac_try_echo=$ac_try;;
16851
esac
16852
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16853
$as_echo "$ac_try_echo") >&5
16854
  (eval "$ac_compile") 2>conftest.er1
16855
  ac_status=$?
16856
  grep -v '^ *+' conftest.er1 >conftest.err
16857
  rm -f conftest.er1
16858
  cat conftest.err >&5
16859
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16860
  (exit $ac_status); } && {
16861
         test -z "$ac_c_werror_flag" ||
16862
         test ! -s conftest.err
16863
       } && test -s conftest.$ac_objext; then
16864
  ac_hi=$ac_mid
16865
else
16866
  $as_echo "$as_me: failed program was:" >&5
16867
sed 's/^/| /' conftest.$ac_ext >&5
16868
 
16869
        ac_lo=`expr '(' $ac_mid ')' + 1`
16870
fi
16871
 
16872
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16873
done
16874
case $ac_lo in
16875
?*) ac_cv_sizeof_int=$ac_lo;;
16876
'') if test "$ac_cv_type_int" = yes; then
16877
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16878 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16879 101 jeremybenn
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
16880
See \`config.log' for more details." >&5
16881
$as_echo "$as_me: error: cannot compute sizeof (int)
16882
See \`config.log' for more details." >&2;}
16883
   { (exit 77); exit 77; }; }; }
16884 19 jeremybenn
   else
16885
     ac_cv_sizeof_int=0
16886 101 jeremybenn
   fi ;;
16887
esac
16888
else
16889
  cat >conftest.$ac_ext <<_ACEOF
16890
/* confdefs.h.  */
16891
_ACEOF
16892
cat confdefs.h >>conftest.$ac_ext
16893
cat >>conftest.$ac_ext <<_ACEOF
16894
/* end confdefs.h.  */
16895
$ac_includes_default
16896
static long int longval () { return (long int) (sizeof (int)); }
16897
static unsigned long int ulongval () { return (long int) (sizeof (int)); }
16898
#include 
16899
#include 
16900
int
16901
main ()
16902
{
16903
 
16904
  FILE *f = fopen ("conftest.val", "w");
16905
  if (! f)
16906
    return 1;
16907
  if (((long int) (sizeof (int))) < 0)
16908
    {
16909
      long int i = longval ();
16910
      if (i != ((long int) (sizeof (int))))
16911
        return 1;
16912
      fprintf (f, "%ld", i);
16913
    }
16914
  else
16915
    {
16916
      unsigned long int i = ulongval ();
16917
      if (i != ((long int) (sizeof (int))))
16918
        return 1;
16919
      fprintf (f, "%lu", i);
16920
    }
16921
  /* Do not output a trailing newline, as this causes \r\n confusion
16922
     on some platforms.  */
16923
  return ferror (f) || fclose (f) != 0;
16924
 
16925
  ;
16926
  return 0;
16927
}
16928
_ACEOF
16929
rm -f conftest$ac_exeext
16930
if { (ac_try="$ac_link"
16931
case "(($ac_try" in
16932
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16933
  *) ac_try_echo=$ac_try;;
16934
esac
16935
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16936
$as_echo "$ac_try_echo") >&5
16937
  (eval "$ac_link") 2>&5
16938
  ac_status=$?
16939
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16940
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16941
  { (case "(($ac_try" in
16942
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16943
  *) ac_try_echo=$ac_try;;
16944
esac
16945
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16946
$as_echo "$ac_try_echo") >&5
16947
  (eval "$ac_try") 2>&5
16948
  ac_status=$?
16949
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16950
  (exit $ac_status); }; }; then
16951
  ac_cv_sizeof_int=`cat conftest.val`
16952
else
16953
  $as_echo "$as_me: program exited with status $ac_status" >&5
16954
$as_echo "$as_me: failed program was:" >&5
16955
sed 's/^/| /' conftest.$ac_ext >&5
16956
 
16957
( exit $ac_status )
16958
if test "$ac_cv_type_int" = yes; then
16959
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16960
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16961
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
16962
See \`config.log' for more details." >&5
16963
$as_echo "$as_me: error: cannot compute sizeof (int)
16964
See \`config.log' for more details." >&2;}
16965
   { (exit 77); exit 77; }; }; }
16966
   else
16967
     ac_cv_sizeof_int=0
16968 19 jeremybenn
   fi
16969
fi
16970 101 jeremybenn
rm -rf conftest.dSYM
16971
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16972 19 jeremybenn
fi
16973 101 jeremybenn
rm -f conftest.val
16974
fi
16975
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
16976 82 jeremybenn
$as_echo "$ac_cv_sizeof_int" >&6; }
16977 19 jeremybenn
 
16978
 
16979
 
16980
cat >>confdefs.h <<_ACEOF
16981
#define SIZEOF_INT $ac_cv_sizeof_int
16982
_ACEOF
16983
 
16984
 
16985
# The cast to long int works around a bug in the HP C Compiler
16986
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16987
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16988
# This bug is HP SR number 8606223364.
16989 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking size of long" >&5
16990 82 jeremybenn
$as_echo_n "checking size of long... " >&6; }
16991 101 jeremybenn
if test "${ac_cv_sizeof_long+set}" = set; then
16992 82 jeremybenn
  $as_echo_n "(cached) " >&6
16993 19 jeremybenn
else
16994 101 jeremybenn
  if test "$cross_compiling" = yes; then
16995
  # Depending upon the size, compute the lo and hi bounds.
16996
cat >conftest.$ac_ext <<_ACEOF
16997
/* confdefs.h.  */
16998
_ACEOF
16999
cat confdefs.h >>conftest.$ac_ext
17000
cat >>conftest.$ac_ext <<_ACEOF
17001
/* end confdefs.h.  */
17002
$ac_includes_default
17003
int
17004
main ()
17005
{
17006
static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
17007
test_array [0] = 0
17008 19 jeremybenn
 
17009 101 jeremybenn
  ;
17010
  return 0;
17011
}
17012
_ACEOF
17013
rm -f conftest.$ac_objext
17014
if { (ac_try="$ac_compile"
17015
case "(($ac_try" in
17016
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17017
  *) ac_try_echo=$ac_try;;
17018
esac
17019
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17020
$as_echo "$ac_try_echo") >&5
17021
  (eval "$ac_compile") 2>conftest.er1
17022
  ac_status=$?
17023
  grep -v '^ *+' conftest.er1 >conftest.err
17024
  rm -f conftest.er1
17025
  cat conftest.err >&5
17026
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17027
  (exit $ac_status); } && {
17028
         test -z "$ac_c_werror_flag" ||
17029
         test ! -s conftest.err
17030
       } && test -s conftest.$ac_objext; then
17031
  ac_lo=0 ac_mid=0
17032
  while :; do
17033
    cat >conftest.$ac_ext <<_ACEOF
17034
/* confdefs.h.  */
17035
_ACEOF
17036
cat confdefs.h >>conftest.$ac_ext
17037
cat >>conftest.$ac_ext <<_ACEOF
17038
/* end confdefs.h.  */
17039
$ac_includes_default
17040
int
17041
main ()
17042
{
17043
static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
17044
test_array [0] = 0
17045
 
17046
  ;
17047
  return 0;
17048
}
17049
_ACEOF
17050
rm -f conftest.$ac_objext
17051
if { (ac_try="$ac_compile"
17052
case "(($ac_try" in
17053
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17054
  *) ac_try_echo=$ac_try;;
17055
esac
17056
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17057
$as_echo "$ac_try_echo") >&5
17058
  (eval "$ac_compile") 2>conftest.er1
17059
  ac_status=$?
17060
  grep -v '^ *+' conftest.er1 >conftest.err
17061
  rm -f conftest.er1
17062
  cat conftest.err >&5
17063
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17064
  (exit $ac_status); } && {
17065
         test -z "$ac_c_werror_flag" ||
17066
         test ! -s conftest.err
17067
       } && test -s conftest.$ac_objext; then
17068
  ac_hi=$ac_mid; break
17069 19 jeremybenn
else
17070 101 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
17071
sed 's/^/| /' conftest.$ac_ext >&5
17072
 
17073
        ac_lo=`expr $ac_mid + 1`
17074
                        if test $ac_lo -le $ac_mid; then
17075
                          ac_lo= ac_hi=
17076
                          break
17077
                        fi
17078
                        ac_mid=`expr 2 '*' $ac_mid + 1`
17079
fi
17080
 
17081
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17082
  done
17083
else
17084
  $as_echo "$as_me: failed program was:" >&5
17085
sed 's/^/| /' conftest.$ac_ext >&5
17086
 
17087
        cat >conftest.$ac_ext <<_ACEOF
17088
/* confdefs.h.  */
17089
_ACEOF
17090
cat confdefs.h >>conftest.$ac_ext
17091
cat >>conftest.$ac_ext <<_ACEOF
17092
/* end confdefs.h.  */
17093
$ac_includes_default
17094
int
17095
main ()
17096
{
17097
static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
17098
test_array [0] = 0
17099
 
17100
  ;
17101
  return 0;
17102
}
17103
_ACEOF
17104
rm -f conftest.$ac_objext
17105
if { (ac_try="$ac_compile"
17106
case "(($ac_try" in
17107
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17108
  *) ac_try_echo=$ac_try;;
17109
esac
17110
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17111
$as_echo "$ac_try_echo") >&5
17112
  (eval "$ac_compile") 2>conftest.er1
17113
  ac_status=$?
17114
  grep -v '^ *+' conftest.er1 >conftest.err
17115
  rm -f conftest.er1
17116
  cat conftest.err >&5
17117
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17118
  (exit $ac_status); } && {
17119
         test -z "$ac_c_werror_flag" ||
17120
         test ! -s conftest.err
17121
       } && test -s conftest.$ac_objext; then
17122
  ac_hi=-1 ac_mid=-1
17123
  while :; do
17124
    cat >conftest.$ac_ext <<_ACEOF
17125
/* confdefs.h.  */
17126
_ACEOF
17127
cat confdefs.h >>conftest.$ac_ext
17128
cat >>conftest.$ac_ext <<_ACEOF
17129
/* end confdefs.h.  */
17130
$ac_includes_default
17131
int
17132
main ()
17133
{
17134
static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
17135
test_array [0] = 0
17136
 
17137
  ;
17138
  return 0;
17139
}
17140
_ACEOF
17141
rm -f conftest.$ac_objext
17142
if { (ac_try="$ac_compile"
17143
case "(($ac_try" in
17144
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17145
  *) ac_try_echo=$ac_try;;
17146
esac
17147
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17148
$as_echo "$ac_try_echo") >&5
17149
  (eval "$ac_compile") 2>conftest.er1
17150
  ac_status=$?
17151
  grep -v '^ *+' conftest.er1 >conftest.err
17152
  rm -f conftest.er1
17153
  cat conftest.err >&5
17154
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17155
  (exit $ac_status); } && {
17156
         test -z "$ac_c_werror_flag" ||
17157
         test ! -s conftest.err
17158
       } && test -s conftest.$ac_objext; then
17159
  ac_lo=$ac_mid; break
17160
else
17161
  $as_echo "$as_me: failed program was:" >&5
17162
sed 's/^/| /' conftest.$ac_ext >&5
17163
 
17164
        ac_hi=`expr '(' $ac_mid ')' - 1`
17165
                        if test $ac_mid -le $ac_hi; then
17166
                          ac_lo= ac_hi=
17167
                          break
17168
                        fi
17169
                        ac_mid=`expr 2 '*' $ac_mid`
17170
fi
17171
 
17172
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17173
  done
17174
else
17175
  $as_echo "$as_me: failed program was:" >&5
17176
sed 's/^/| /' conftest.$ac_ext >&5
17177
 
17178
        ac_lo= ac_hi=
17179
fi
17180
 
17181
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17182
fi
17183
 
17184
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17185
# Binary search between lo and hi bounds.
17186
while test "x$ac_lo" != "x$ac_hi"; do
17187
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17188
  cat >conftest.$ac_ext <<_ACEOF
17189
/* confdefs.h.  */
17190
_ACEOF
17191
cat confdefs.h >>conftest.$ac_ext
17192
cat >>conftest.$ac_ext <<_ACEOF
17193
/* end confdefs.h.  */
17194
$ac_includes_default
17195
int
17196
main ()
17197
{
17198
static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
17199
test_array [0] = 0
17200
 
17201
  ;
17202
  return 0;
17203
}
17204
_ACEOF
17205
rm -f conftest.$ac_objext
17206
if { (ac_try="$ac_compile"
17207
case "(($ac_try" in
17208
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17209
  *) ac_try_echo=$ac_try;;
17210
esac
17211
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17212
$as_echo "$ac_try_echo") >&5
17213
  (eval "$ac_compile") 2>conftest.er1
17214
  ac_status=$?
17215
  grep -v '^ *+' conftest.er1 >conftest.err
17216
  rm -f conftest.er1
17217
  cat conftest.err >&5
17218
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17219
  (exit $ac_status); } && {
17220
         test -z "$ac_c_werror_flag" ||
17221
         test ! -s conftest.err
17222
       } && test -s conftest.$ac_objext; then
17223
  ac_hi=$ac_mid
17224
else
17225
  $as_echo "$as_me: failed program was:" >&5
17226
sed 's/^/| /' conftest.$ac_ext >&5
17227
 
17228
        ac_lo=`expr '(' $ac_mid ')' + 1`
17229
fi
17230
 
17231
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17232
done
17233
case $ac_lo in
17234
?*) ac_cv_sizeof_long=$ac_lo;;
17235
'') if test "$ac_cv_type_long" = yes; then
17236
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17237 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17238 101 jeremybenn
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
17239
See \`config.log' for more details." >&5
17240
$as_echo "$as_me: error: cannot compute sizeof (long)
17241
See \`config.log' for more details." >&2;}
17242
   { (exit 77); exit 77; }; }; }
17243 19 jeremybenn
   else
17244
     ac_cv_sizeof_long=0
17245 101 jeremybenn
   fi ;;
17246
esac
17247
else
17248
  cat >conftest.$ac_ext <<_ACEOF
17249
/* confdefs.h.  */
17250
_ACEOF
17251
cat confdefs.h >>conftest.$ac_ext
17252
cat >>conftest.$ac_ext <<_ACEOF
17253
/* end confdefs.h.  */
17254
$ac_includes_default
17255
static long int longval () { return (long int) (sizeof (long)); }
17256
static unsigned long int ulongval () { return (long int) (sizeof (long)); }
17257
#include 
17258
#include 
17259
int
17260
main ()
17261
{
17262
 
17263
  FILE *f = fopen ("conftest.val", "w");
17264
  if (! f)
17265
    return 1;
17266
  if (((long int) (sizeof (long))) < 0)
17267
    {
17268
      long int i = longval ();
17269
      if (i != ((long int) (sizeof (long))))
17270
        return 1;
17271
      fprintf (f, "%ld", i);
17272
    }
17273
  else
17274
    {
17275
      unsigned long int i = ulongval ();
17276
      if (i != ((long int) (sizeof (long))))
17277
        return 1;
17278
      fprintf (f, "%lu", i);
17279
    }
17280
  /* Do not output a trailing newline, as this causes \r\n confusion
17281
     on some platforms.  */
17282
  return ferror (f) || fclose (f) != 0;
17283
 
17284
  ;
17285
  return 0;
17286
}
17287
_ACEOF
17288
rm -f conftest$ac_exeext
17289
if { (ac_try="$ac_link"
17290
case "(($ac_try" in
17291
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17292
  *) ac_try_echo=$ac_try;;
17293
esac
17294
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17295
$as_echo "$ac_try_echo") >&5
17296
  (eval "$ac_link") 2>&5
17297
  ac_status=$?
17298
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17299
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17300
  { (case "(($ac_try" in
17301
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17302
  *) ac_try_echo=$ac_try;;
17303
esac
17304
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17305
$as_echo "$ac_try_echo") >&5
17306
  (eval "$ac_try") 2>&5
17307
  ac_status=$?
17308
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17309
  (exit $ac_status); }; }; then
17310
  ac_cv_sizeof_long=`cat conftest.val`
17311
else
17312
  $as_echo "$as_me: program exited with status $ac_status" >&5
17313
$as_echo "$as_me: failed program was:" >&5
17314
sed 's/^/| /' conftest.$ac_ext >&5
17315
 
17316
( exit $ac_status )
17317
if test "$ac_cv_type_long" = yes; then
17318
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17319
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17320
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
17321
See \`config.log' for more details." >&5
17322
$as_echo "$as_me: error: cannot compute sizeof (long)
17323
See \`config.log' for more details." >&2;}
17324
   { (exit 77); exit 77; }; }; }
17325
   else
17326
     ac_cv_sizeof_long=0
17327 19 jeremybenn
   fi
17328
fi
17329 101 jeremybenn
rm -rf conftest.dSYM
17330
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17331 19 jeremybenn
fi
17332 101 jeremybenn
rm -f conftest.val
17333
fi
17334
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
17335 82 jeremybenn
$as_echo "$ac_cv_sizeof_long" >&6; }
17336 19 jeremybenn
 
17337
 
17338
 
17339
cat >>confdefs.h <<_ACEOF
17340
#define SIZEOF_LONG $ac_cv_sizeof_long
17341
_ACEOF
17342
 
17343
 
17344
 
17345
#Check for compare function type for qsort (needed by some Linuxes)
17346 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for __compar_fn_t" >&5
17347
$as_echo_n "checking for __compar_fn_t... " >&6; }
17348
if test "${ac_cv_type___compar_fn_t+set}" = set; then
17349
  $as_echo_n "(cached) " >&6
17350
else
17351
  ac_cv_type___compar_fn_t=no
17352
cat >conftest.$ac_ext <<_ACEOF
17353
/* confdefs.h.  */
17354
_ACEOF
17355
cat confdefs.h >>conftest.$ac_ext
17356
cat >>conftest.$ac_ext <<_ACEOF
17357
/* end confdefs.h.  */
17358
$ac_includes_default
17359
int
17360
main ()
17361
{
17362
if (sizeof (__compar_fn_t))
17363
       return 0;
17364
  ;
17365
  return 0;
17366
}
17367
_ACEOF
17368
rm -f conftest.$ac_objext
17369
if { (ac_try="$ac_compile"
17370
case "(($ac_try" in
17371
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17372
  *) ac_try_echo=$ac_try;;
17373
esac
17374
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17375
$as_echo "$ac_try_echo") >&5
17376
  (eval "$ac_compile") 2>conftest.er1
17377
  ac_status=$?
17378
  grep -v '^ *+' conftest.er1 >conftest.err
17379
  rm -f conftest.er1
17380
  cat conftest.err >&5
17381
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17382
  (exit $ac_status); } && {
17383
         test -z "$ac_c_werror_flag" ||
17384
         test ! -s conftest.err
17385
       } && test -s conftest.$ac_objext; then
17386
  cat >conftest.$ac_ext <<_ACEOF
17387
/* confdefs.h.  */
17388
_ACEOF
17389
cat confdefs.h >>conftest.$ac_ext
17390
cat >>conftest.$ac_ext <<_ACEOF
17391
/* end confdefs.h.  */
17392
$ac_includes_default
17393
int
17394
main ()
17395
{
17396
if (sizeof ((__compar_fn_t)))
17397
          return 0;
17398
  ;
17399
  return 0;
17400
}
17401
_ACEOF
17402
rm -f conftest.$ac_objext
17403
if { (ac_try="$ac_compile"
17404
case "(($ac_try" in
17405
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17406
  *) ac_try_echo=$ac_try;;
17407
esac
17408
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17409
$as_echo "$ac_try_echo") >&5
17410
  (eval "$ac_compile") 2>conftest.er1
17411
  ac_status=$?
17412
  grep -v '^ *+' conftest.er1 >conftest.err
17413
  rm -f conftest.er1
17414
  cat conftest.err >&5
17415
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17416
  (exit $ac_status); } && {
17417
         test -z "$ac_c_werror_flag" ||
17418
         test ! -s conftest.err
17419
       } && test -s conftest.$ac_objext; then
17420
  :
17421
else
17422
  $as_echo "$as_me: failed program was:" >&5
17423
sed 's/^/| /' conftest.$ac_ext >&5
17424 19 jeremybenn
 
17425 101 jeremybenn
        ac_cv_type___compar_fn_t=yes
17426
fi
17427
 
17428
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17429
else
17430
  $as_echo "$as_me: failed program was:" >&5
17431
sed 's/^/| /' conftest.$ac_ext >&5
17432
 
17433
 
17434
fi
17435
 
17436
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17437
fi
17438
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type___compar_fn_t" >&5
17439
$as_echo "$ac_cv_type___compar_fn_t" >&6; }
17440
if test "x$ac_cv_type___compar_fn_t" = x""yes; then
17441
 
17442 19 jeremybenn
cat >>confdefs.h <<_ACEOF
17443
#define HAVE___COMPAR_FN_T 1
17444
_ACEOF
17445
 
17446
 
17447
fi
17448
 
17449
 
17450
# check for GNU readline
17451 101 jeremybenn
 
17452
{ $as_echo "$as_me:$LINENO: checking for add_history in -lreadline" >&5
17453 82 jeremybenn
$as_echo_n "checking for add_history in -lreadline... " >&6; }
17454 101 jeremybenn
if test "${ac_cv_lib_readline_add_history+set}" = set; then
17455 82 jeremybenn
  $as_echo_n "(cached) " >&6
17456 19 jeremybenn
else
17457
  ac_check_lib_save_LIBS=$LIBS
17458
LIBS="-lreadline  $LIBS"
17459 101 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
17460
/* confdefs.h.  */
17461
_ACEOF
17462
cat confdefs.h >>conftest.$ac_ext
17463
cat >>conftest.$ac_ext <<_ACEOF
17464 19 jeremybenn
/* end confdefs.h.  */
17465
 
17466
/* Override any GCC internal prototype to avoid an error.
17467
   Use char because int might match the return type of a GCC
17468
   builtin and then its argument prototype would still apply.  */
17469
#ifdef __cplusplus
17470
extern "C"
17471
#endif
17472
char add_history ();
17473
int
17474
main ()
17475
{
17476
return add_history ();
17477
  ;
17478
  return 0;
17479
}
17480
_ACEOF
17481 101 jeremybenn
rm -f conftest.$ac_objext conftest$ac_exeext
17482
if { (ac_try="$ac_link"
17483
case "(($ac_try" in
17484
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17485
  *) ac_try_echo=$ac_try;;
17486
esac
17487
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17488
$as_echo "$ac_try_echo") >&5
17489
  (eval "$ac_link") 2>conftest.er1
17490
  ac_status=$?
17491
  grep -v '^ *+' conftest.er1 >conftest.err
17492
  rm -f conftest.er1
17493
  cat conftest.err >&5
17494
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17495
  (exit $ac_status); } && {
17496
         test -z "$ac_c_werror_flag" ||
17497
         test ! -s conftest.err
17498
       } && test -s conftest$ac_exeext && {
17499
         test "$cross_compiling" = yes ||
17500
         $as_test_x conftest$ac_exeext
17501
       }; then
17502 19 jeremybenn
  ac_cv_lib_readline_add_history=yes
17503
else
17504 101 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
17505
sed 's/^/| /' conftest.$ac_ext >&5
17506
 
17507
        ac_cv_lib_readline_add_history=no
17508 19 jeremybenn
fi
17509 101 jeremybenn
 
17510
rm -rf conftest.dSYM
17511
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17512
      conftest$ac_exeext conftest.$ac_ext
17513 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
17514
fi
17515 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_add_history" >&5
17516 82 jeremybenn
$as_echo "$ac_cv_lib_readline_add_history" >&6; }
17517 101 jeremybenn
if test "x$ac_cv_lib_readline_add_history" = x""yes; then
17518 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
17519
#define HAVE_LIBREADLINE 1
17520
_ACEOF
17521
 
17522
  LIBS="-lreadline $LIBS"
17523
 
17524
fi
17525
 
17526
 
17527
# yuck
17528
case "$host_os" in
17529
aix*)   prefer_curses=yes ;;
17530
esac
17531
 
17532
case "$host_cpu" in
17533
*cray*) LOCAL_CFLAGS=-DCRAY ;;
17534
esac
17535
 
17536
case "$host_os" in
17537
isc*)   LOCAL_CFLAGS=-Disc386 ;;
17538
esac
17539
 
17540
case "$host_os" in
17541
solaris*) LIBS="-lsocket -lnsl" ;;
17542
esac
17543
 
17544
# define options
17545 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether to enable profiling" >&5
17546 82 jeremybenn
$as_echo_n "checking whether to enable profiling... " >&6; }
17547 19 jeremybenn
# Check whether --enable-profiling was given.
17548 101 jeremybenn
if test "${enable_profiling+set}" = set; then
17549 19 jeremybenn
  enableval=$enable_profiling;
17550
    case "$enableval" in
17551
        yes) profile="-pg" ;;
17552
    esac
17553
 
17554
fi
17555
 
17556 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: ${enable_profiling-no}" >&5
17557 82 jeremybenn
$as_echo "${enable_profiling-no}" >&6; }
17558 19 jeremybenn
 
17559
execution="1"
17560
 
17561
INCLUDES="-I\${top_builddir}/cpu/$CPU_ARCH"
17562 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking which execution style to use" >&5
17563 82 jeremybenn
$as_echo_n "checking which execution style to use... " >&6; }
17564 19 jeremybenn
# Check whether --enable-execution was given.
17565 101 jeremybenn
if test "${enable_execution+set}" = set; then
17566 19 jeremybenn
  enableval=$enable_execution;
17567
    case "$enableval" in
17568
    simple)
17569
      INCLUDES="-I\${top_srcdir}/cpu/$CPU_ARCH"
17570
      execution="0"
17571 101 jeremybenn
      { $as_echo "$as_me:$LINENO: result: simple" >&5
17572 82 jeremybenn
$as_echo "simple" >&6; }
17573 19 jeremybenn
      ;;
17574
    complex)
17575
      INCLUDES="-I\${top_builddir}/cpu/$CPU_ARCH"
17576
      execution="1"
17577 101 jeremybenn
      { $as_echo "$as_me:$LINENO: result: complex" >&5
17578 82 jeremybenn
$as_echo "complex" >&6; }
17579 19 jeremybenn
      ;;
17580
    dynamic)
17581
      INCLUDES="-I\${top_srcdir}/cpu/$CPU_ARCH"
17582
      execution="2"
17583 101 jeremybenn
      { $as_echo "$as_me:$LINENO: result: dynamic" >&5
17584 82 jeremybenn
$as_echo "dynamic" >&6; }
17585 19 jeremybenn
      ;;
17586
    *)
17587 101 jeremybenn
      { { $as_echo "$as_me:$LINENO: error: \"excecution must one of simple/complex/dynamic\"" >&5
17588
$as_echo "$as_me: error: \"excecution must one of simple/complex/dynamic\"" >&2;}
17589
   { (exit 1); exit 1; }; }
17590 19 jeremybenn
      ;;
17591
    esac
17592
 
17593
else
17594
 
17595 101 jeremybenn
      { $as_echo "$as_me:$LINENO: result: complex" >&5
17596 82 jeremybenn
$as_echo "complex" >&6; }
17597 19 jeremybenn
 
17598
fi
17599
 
17600
 
17601
eth_phy="0"
17602 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether to enable ethernet phy emulation" >&5
17603 82 jeremybenn
$as_echo_n "checking whether to enable ethernet phy emulation... " >&6; }
17604 19 jeremybenn
# Check whether --enable-ethphy was given.
17605 101 jeremybenn
if test "${enable_ethphy+set}" = set; then
17606 19 jeremybenn
  enableval=$enable_ethphy;
17607
    case "$enableval" in
17608
  no)  eth_phy="0" ;;
17609
        yes) eth_phy="1" ;;
17610
    esac
17611
 
17612
fi
17613
 
17614 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: ${enable_eth_phy-no}" >&5
17615 82 jeremybenn
$as_echo "${enable_eth_phy-no}" >&6; }
17616 19 jeremybenn
 
17617
 
17618
raw_range_stats="0"
17619 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether to use raw range stats" >&5
17620 82 jeremybenn
$as_echo_n "checking whether to use raw range stats... " >&6; }
17621 19 jeremybenn
# Check whether --enable-range_stats was given.
17622 101 jeremybenn
if test "${enable_range_stats+set}" = set; then
17623 19 jeremybenn
  enableval=$enable_range_stats;
17624
    case "$enableval" in
17625
  no)  raw_range_stats="0" ;;
17626
        yes) raw_range_stats="1" simple_execution="1" ;;
17627
    esac
17628
 
17629
fi
17630
 
17631 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: ${enable_range_stats-no}" >&5
17632 82 jeremybenn
$as_echo "${enable_range_stats-no}" >&6; }
17633 19 jeremybenn
 
17634
set_arith_flag="0"
17635 101 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether arithmethic instructions set flag" >&5
17636 82 jeremybenn
$as_echo_n "checking whether arithmethic instructions set flag... " >&6; }
17637 19 jeremybenn
# Check whether --enable-arith_flag was given.
17638 101 jeremybenn
if test "${enable_arith_flag+set}" = set; then
17639 19 jeremybenn
  enableval=$enable_arith_flag;
17640
    case "$enableval" in
17641
  no)  set_arith_flag="0" ;;
17642
        yes) set_arith_flag="1" ;;
17643
    esac
17644
 
17645
fi
17646
 
17647 101 jeremybenn
{ $as_echo "$as_me:$LINENO: result: ${enable_arith_flag-no}" >&5
17648 82 jeremybenn
$as_echo "${enable_arith_flag-no}" >&6; }
17649 19 jeremybenn
 
17650
# check for --enable-debug argument (for argtable2)
17651
# Check whether --enable-debug was given.
17652 101 jeremybenn
if test "${enable_debug+set}" = set; then
17653 19 jeremybenn
  enableval=$enable_debug;
17654
       case $enableval in
17655
          yes) echo "enabling argtable2 debugging symbols" & DEBUGFLAGS="-g -UNDEBUG";;
17656
          no)  echo "disabling argtable2 debugging symbols" & DEBUGFLAGS="-DNDEBUG";;
17657
          *)   echo "illegal argument to --enable-debug" & exit 1;;
17658
       esac
17659
 
17660
else
17661
  DEBUGFLAGS="-DNDEBUG"
17662
 
17663
fi
17664
 
17665
 
17666
 
17667
 
17668
cat >>confdefs.h <<_ACEOF
17669
#define RAW_RANGE_STATS $raw_range_stats
17670
_ACEOF
17671
 
17672
 
17673
cat >>confdefs.h <<_ACEOF
17674
#define ARITH_SET_FLAG $set_arith_flag
17675
_ACEOF
17676
 
17677
 
17678
cat >>confdefs.h <<_ACEOF
17679
#define HAVE_ETH_PHY $eth_phy
17680
_ACEOF
17681
 
17682
 
17683
cat >>confdefs.h <<_ACEOF
17684
#define SIMPLE_EXECUTION $execution == 0
17685
_ACEOF
17686
 
17687
 
17688
cat >>confdefs.h <<_ACEOF
17689
#define COMPLEX_EXECUTION $execution == 1
17690
_ACEOF
17691
 
17692
 
17693
cat >>confdefs.h <<_ACEOF
17694
#define DYNAMIC_EXECUTION $execution == 2
17695
_ACEOF
17696
 
17697
 if test x$execution = x1; then
17698
  GENERATE_NEEDED_TRUE=
17699
  GENERATE_NEEDED_FALSE='#'
17700
else
17701
  GENERATE_NEEDED_TRUE='#'
17702
  GENERATE_NEEDED_FALSE=
17703
fi
17704
 
17705
 if test x$execution = x2; then
17706
  DYNAMIC_EXECUTION_TRUE=
17707
  DYNAMIC_EXECUTION_FALSE='#'
17708
else
17709
  DYNAMIC_EXECUTION_TRUE='#'
17710
  DYNAMIC_EXECUTION_FALSE=
17711
fi
17712
 
17713
 
17714
 
17715
test -n "$profile"  && CFLAGS="$CFLAGS $profile" LDFLAGS="$LDFLAGS $profile"
17716
 
17717 90 jeremybenn
# Check for a DejaGNU global config file. If not set, then set it
17718
# ourselves. This stops runtest complaining
17719
if test x"$DEJAGNU" = x
17720
then
17721 96 jeremybenn
  DEJAGNU="\$(top_srcdir)/testsuite/global-conf.exp"
17722 90 jeremybenn
fi
17723
 
17724 96 jeremybenn
 
17725
 
17726
# The following line will override the default definition of the srcdir, and
17727
# ensure that short names are used for the test names.
17728
RUNTESTDEFAULTFLAGS="--tool \$\$tool"
17729
 
17730
 
17731 19 jeremybenn
BUILD_DIR=`pwd`
17732
 
17733
 
17734
 
17735
 
17736
 
17737
 
17738
 
17739
 
17740
 
17741
 
17742
 
17743
 
17744
 
17745
 
17746
 
17747
 
17748
 
17749
 
17750 101 jeremybenn
cat >>confdefs.h <<\_ACEOF
17751
#define HAVE_EXECUTION 1
17752
_ACEOF
17753 19 jeremybenn
 
17754
 
17755
# yuck
17756
INCLUDES="$INCLUDES -I\${top_srcdir} -I\${top_srcdir}/cpu/common \
17757
-I\${top_srcdir}/cpu/or1k -I\${top_srcdir}/cache -I\${top_srcdir}/mmu \
17758
-I\${top_srcdir}/bpb -I\${top_srcdir}/peripheral -I\${top_srcdir}/tick \
17759
-I\${top_srcdir}/peripheral/channels -I\${top_srcdir}/pm -I\${top_srcdir}/pic \
17760
-I\${top_srcdir}/debug -I\${top_srcdir}/vapi -I\${top_srcdir}/support \
17761
-I\${top_srcdir}/cuc -I\${top_srcdir}/port -I\${top_srcdir}/argtable2"
17762
 
17763
 
17764 97 jeremybenn
ac_config_files="$ac_config_files Makefile argtable2/Makefile bpb/Makefile cache/Makefile cpu/Makefile cpu/common/Makefile cpu/or1k/Makefile cuc/Makefile debug/Makefile doc/Makefile mmu/Makefile peripheral/Makefile peripheral/channels/Makefile pm/Makefile pic/Makefile port/Makefile support/Makefile testsuite/Makefile testsuite/config/Makefile testsuite/lib/Makefile testsuite/libsim.tests/Makefile testsuite/or1ksim.tests/Makefile testsuite/test-code/Makefile testsuite/test-code/lib-iftest/Makefile testsuite/test-code/lib-inttest/Makefile testsuite/test-code/lib-jtag/Makefile testsuite/test-code/lib-upcalls/Makefile tick/Makefile vapi/Makefile"
17765 19 jeremybenn
 
17766
 
17767
# yuck. I don't know why I cannot just substitute $CPU_ARCH in the above
17768
case "$CPU_ARCH" in
17769
dlx)    ac_config_files="$ac_config_files cpu/dlx/Makefile"
17770
;;
17771
*)      ac_config_files="$ac_config_files cpu/or32/Makefile"
17772
;;
17773
esac
17774
 
17775 82 jeremybenn
# Generate the output
17776
 
17777
 
17778 19 jeremybenn
cat >confcache <<\_ACEOF
17779
# This file is a shell script that caches the results of configure
17780
# tests run on this system so they can be shared between configure
17781
# scripts and configure runs, see configure's option --config-cache.
17782
# It is not useful on other systems.  If it contains results you don't
17783
# want to keep, you may remove or edit it.
17784
#
17785
# config.status only pays attention to the cache file if you give it
17786
# the --recheck option to rerun configure.
17787
#
17788
# `ac_cv_env_foo' variables (set or unset) will be overridden when
17789
# loading this file, other *unset* `ac_cv_foo' will be assigned the
17790
# following values.
17791
 
17792
_ACEOF
17793
 
17794
# The following way of writing the cache mishandles newlines in values,
17795
# but we know of no workaround that is simple, portable, and efficient.
17796
# So, we kill variables containing newlines.
17797
# Ultrix sh set writes to stderr and can't be redirected directly,
17798
# and sets the high bit in the cache file unless we assign to the vars.
17799
(
17800
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17801
    eval ac_val=\$$ac_var
17802
    case $ac_val in #(
17803
    *${as_nl}*)
17804
      case $ac_var in #(
17805 101 jeremybenn
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
17806 82 jeremybenn
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17807 19 jeremybenn
      esac
17808
      case $ac_var in #(
17809
      _ | IFS | as_nl) ;; #(
17810 82 jeremybenn
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17811 101 jeremybenn
      *) $as_unset $ac_var ;;
17812 19 jeremybenn
      esac ;;
17813
    esac
17814
  done
17815
 
17816
  (set) 2>&1 |
17817
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
17818
    *${as_nl}ac_space=\ *)
17819 101 jeremybenn
      # `set' does not quote correctly, so add quotes (double-quote
17820
      # substitution turns \\\\ into \\, and sed turns \\ into \).
17821 19 jeremybenn
      sed -n \
17822
        "s/'/'\\\\''/g;
17823
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17824
      ;; #(
17825
    *)
17826
      # `set' quotes correctly as required by POSIX, so do not add quotes.
17827
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17828
      ;;
17829
    esac |
17830
    sort
17831
) |
17832
  sed '
17833
     /^ac_cv_env_/b end
17834
     t clear
17835
     :clear
17836
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17837
     t end
17838
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17839
     :end' >>confcache
17840
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17841
  if test -w "$cache_file"; then
17842
    test "x$cache_file" != "x/dev/null" &&
17843 101 jeremybenn
      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
17844 82 jeremybenn
$as_echo "$as_me: updating cache $cache_file" >&6;}
17845 19 jeremybenn
    cat confcache >$cache_file
17846
  else
17847 101 jeremybenn
    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
17848 82 jeremybenn
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17849 19 jeremybenn
  fi
17850
fi
17851
rm -f confcache
17852
 
17853
test "x$prefix" = xNONE && prefix=$ac_default_prefix
17854
# Let make expand exec_prefix.
17855
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17856
 
17857
DEFS=-DHAVE_CONFIG_H
17858
 
17859
ac_libobjs=
17860
ac_ltlibobjs=
17861
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17862
  # 1. Remove the extension, and $U if already installed.
17863
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17864 82 jeremybenn
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17865 19 jeremybenn
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17866
  #    will be set to the directory where LIBOBJS objects are built.
17867 101 jeremybenn
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17868
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
17869 19 jeremybenn
done
17870
LIBOBJS=$ac_libobjs
17871
 
17872
LTLIBOBJS=$ac_ltlibobjs
17873
 
17874
 
17875
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17876 101 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
17877
Usually this means the macro was only invoked conditionally." >&5
17878
$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
17879
Usually this means the macro was only invoked conditionally." >&2;}
17880
   { (exit 1); exit 1; }; }
17881 19 jeremybenn
fi
17882
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17883 101 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
17884
Usually this means the macro was only invoked conditionally." >&5
17885
$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
17886
Usually this means the macro was only invoked conditionally." >&2;}
17887
   { (exit 1); exit 1; }; }
17888 19 jeremybenn
fi
17889 82 jeremybenn
 if test -n "$EXEEXT"; then
17890
  am__EXEEXT_TRUE=
17891
  am__EXEEXT_FALSE='#'
17892
else
17893
  am__EXEEXT_TRUE='#'
17894
  am__EXEEXT_FALSE=
17895
fi
17896
 
17897
if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
17898 101 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
17899
Usually this means the macro was only invoked conditionally." >&5
17900
$as_echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined.
17901
Usually this means the macro was only invoked conditionally." >&2;}
17902
   { (exit 1); exit 1; }; }
17903 19 jeremybenn
fi
17904 82 jeremybenn
 
17905 19 jeremybenn
if test -z "${USE_SYS_GETOPTLONG_TRUE}" && test -z "${USE_SYS_GETOPTLONG_FALSE}"; then
17906 101 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: conditional \"USE_SYS_GETOPTLONG\" was never defined.
17907
Usually this means the macro was only invoked conditionally." >&5
17908
$as_echo "$as_me: error: conditional \"USE_SYS_GETOPTLONG\" was never defined.
17909
Usually this means the macro was only invoked conditionally." >&2;}
17910
   { (exit 1); exit 1; }; }
17911 19 jeremybenn
fi
17912
if test -z "${USE_ARGREX_TRUE}" && test -z "${USE_ARGREX_FALSE}"; then
17913 101 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: conditional \"USE_ARGREX\" was never defined.
17914
Usually this means the macro was only invoked conditionally." >&5
17915
$as_echo "$as_me: error: conditional \"USE_ARGREX\" was never defined.
17916
Usually this means the macro was only invoked conditionally." >&2;}
17917
   { (exit 1); exit 1; }; }
17918 19 jeremybenn
fi
17919
if test -z "${USE_ARGDATE_TRUE}" && test -z "${USE_ARGDATE_FALSE}"; then
17920 101 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: conditional \"USE_ARGDATE\" was never defined.
17921
Usually this means the macro was only invoked conditionally." >&5
17922
$as_echo "$as_me: error: conditional \"USE_ARGDATE\" was never defined.
17923
Usually this means the macro was only invoked conditionally." >&2;}
17924
   { (exit 1); exit 1; }; }
17925 19 jeremybenn
fi
17926
if test -z "${GENERATE_NEEDED_TRUE}" && test -z "${GENERATE_NEEDED_FALSE}"; then
17927 101 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: conditional \"GENERATE_NEEDED\" was never defined.
17928
Usually this means the macro was only invoked conditionally." >&5
17929
$as_echo "$as_me: error: conditional \"GENERATE_NEEDED\" was never defined.
17930
Usually this means the macro was only invoked conditionally." >&2;}
17931
   { (exit 1); exit 1; }; }
17932 19 jeremybenn
fi
17933
if test -z "${DYNAMIC_EXECUTION_TRUE}" && test -z "${DYNAMIC_EXECUTION_FALSE}"; then
17934 101 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: conditional \"DYNAMIC_EXECUTION\" was never defined.
17935
Usually this means the macro was only invoked conditionally." >&5
17936
$as_echo "$as_me: error: conditional \"DYNAMIC_EXECUTION\" was never defined.
17937
Usually this means the macro was only invoked conditionally." >&2;}
17938
   { (exit 1); exit 1; }; }
17939 19 jeremybenn
fi
17940
 
17941
: ${CONFIG_STATUS=./config.status}
17942 82 jeremybenn
ac_write_fail=0
17943 19 jeremybenn
ac_clean_files_save=$ac_clean_files
17944
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17945 101 jeremybenn
{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17946 82 jeremybenn
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17947 101 jeremybenn
cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17948 19 jeremybenn
#! $SHELL
17949
# Generated by $as_me.
17950
# Run this file to recreate the current configuration.
17951
# Compiler output produced by configure, useful for debugging
17952
# configure, is in config.log if it exists.
17953
 
17954
debug=false
17955
ac_cs_recheck=false
17956
ac_cs_silent=false
17957
SHELL=\${CONFIG_SHELL-$SHELL}
17958 101 jeremybenn
_ACEOF
17959 19 jeremybenn
 
17960 101 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17961
## --------------------- ##
17962
## M4sh Initialization.  ##
17963
## --------------------- ##
17964
 
17965 19 jeremybenn
# Be more Bourne compatible
17966
DUALCASE=1; export DUALCASE # for MKS sh
17967 101 jeremybenn
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17968 19 jeremybenn
  emulate sh
17969
  NULLCMD=:
17970 82 jeremybenn
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17971 19 jeremybenn
  # is contrary to our usage.  Disable this feature.
17972
  alias -g '${1+"$@"}'='"$@"'
17973
  setopt NO_GLOB_SUBST
17974
else
17975 101 jeremybenn
  case `(set -o) 2>/dev/null` in
17976
  *posix*) set -o posix ;;
17977 19 jeremybenn
esac
17978 101 jeremybenn
 
17979 19 jeremybenn
fi
17980
 
17981
 
17982 101 jeremybenn
 
17983
 
17984
# PATH needs CR
17985
# Avoid depending upon Character Ranges.
17986
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17987
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17988
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17989
as_cr_digits='0123456789'
17990
as_cr_alnum=$as_cr_Letters$as_cr_digits
17991
 
17992 82 jeremybenn
as_nl='
17993
'
17994
export as_nl
17995
# Printing a long string crashes Solaris 7 /usr/bin/printf.
17996
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17997
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17998
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17999 101 jeremybenn
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18000 82 jeremybenn
  as_echo='printf %s\n'
18001
  as_echo_n='printf %s'
18002
else
18003
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18004
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18005
    as_echo_n='/usr/ucb/echo -n'
18006 19 jeremybenn
  else
18007 82 jeremybenn
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18008
    as_echo_n_body='eval
18009
      arg=$1;
18010 101 jeremybenn
      case $arg in
18011 82 jeremybenn
      *"$as_nl"*)
18012
        expr "X$arg" : "X\\(.*\\)$as_nl";
18013
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18014
      esac;
18015
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18016
    '
18017
    export as_echo_n_body
18018
    as_echo_n='sh -c $as_echo_n_body as_echo'
18019 19 jeremybenn
  fi
18020 82 jeremybenn
  export as_echo_body
18021
  as_echo='sh -c $as_echo_body as_echo'
18022 19 jeremybenn
fi
18023
 
18024 82 jeremybenn
# The user is always right.
18025
if test "${PATH_SEPARATOR+set}" != set; then
18026
  PATH_SEPARATOR=:
18027
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18028
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18029
      PATH_SEPARATOR=';'
18030
  }
18031
fi
18032
 
18033 101 jeremybenn
# Support unset when possible.
18034
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18035
  as_unset=unset
18036
else
18037
  as_unset=false
18038
fi
18039 19 jeremybenn
 
18040 101 jeremybenn
 
18041 19 jeremybenn
# IFS
18042
# We need space, tab and new line, in precisely that order.  Quoting is
18043
# there to prevent editors from complaining about space-tab.
18044
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18045
# splitting by setting IFS to empty value.)
18046
IFS=" ""        $as_nl"
18047
 
18048
# Find who we are.  Look in the path if we contain no directory separator.
18049 101 jeremybenn
case $0 in
18050 19 jeremybenn
  *[\\/]* ) as_myself=$0 ;;
18051
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18052
for as_dir in $PATH
18053
do
18054
  IFS=$as_save_IFS
18055
  test -z "$as_dir" && as_dir=.
18056 101 jeremybenn
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18057
done
18058 19 jeremybenn
IFS=$as_save_IFS
18059
 
18060
     ;;
18061
esac
18062
# We did not find ourselves, most probably we were run as `sh COMMAND'
18063
# in which case we are not to be found in the path.
18064
if test "x$as_myself" = x; then
18065
  as_myself=$0
18066
fi
18067
if test ! -f "$as_myself"; then
18068 82 jeremybenn
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18069 101 jeremybenn
  { (exit 1); exit 1; }
18070 19 jeremybenn
fi
18071
 
18072 101 jeremybenn
# Work around bugs in pre-3.0 UWIN ksh.
18073
for as_var in ENV MAIL MAILPATH
18074
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18075 19 jeremybenn
done
18076
PS1='$ '
18077
PS2='> '
18078
PS4='+ '
18079
 
18080
# NLS nuisances.
18081 82 jeremybenn
LC_ALL=C
18082
export LC_ALL
18083
LANGUAGE=C
18084
export LANGUAGE
18085 19 jeremybenn
 
18086 101 jeremybenn
# Required to use basename.
18087 19 jeremybenn
if expr a : '\(a\)' >/dev/null 2>&1 &&
18088
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
18089
  as_expr=expr
18090
else
18091
  as_expr=false
18092
fi
18093
 
18094
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18095
  as_basename=basename
18096
else
18097
  as_basename=false
18098
fi
18099
 
18100
 
18101 101 jeremybenn
# Name of the executable.
18102 19 jeremybenn
as_me=`$as_basename -- "$0" ||
18103
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18104
         X"$0" : 'X\(//\)$' \| \
18105
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18106 82 jeremybenn
$as_echo X/"$0" |
18107 19 jeremybenn
    sed '/^.*\/\([^/][^/]*\)\/*$/{
18108
            s//\1/
18109
            q
18110
          }
18111
          /^X\/\(\/\/\)$/{
18112
            s//\1/
18113
            q
18114
          }
18115
          /^X\/\(\/\).*/{
18116
            s//\1/
18117
            q
18118
          }
18119
          s/.*/./; q'`
18120
 
18121 101 jeremybenn
# CDPATH.
18122
$as_unset CDPATH
18123 19 jeremybenn
 
18124 101 jeremybenn
 
18125
 
18126
  as_lineno_1=$LINENO
18127
  as_lineno_2=$LINENO
18128
  test "x$as_lineno_1" != "x$as_lineno_2" &&
18129
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
18130
 
18131
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18132
  # uniformly replaced by the line number.  The first 'sed' inserts a
18133
  # line-number line after each line using $LINENO; the second 'sed'
18134
  # does the real work.  The second script uses 'N' to pair each
18135
  # line-number line with the line containing $LINENO, and appends
18136
  # trailing '-' during substitution so that $LINENO is not a special
18137
  # case at line end.
18138
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18139
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
18140
  # E. McMahon (1931-1989) for sed's syntax.  :-)
18141
  sed -n '
18142
    p
18143
    /[$]LINENO/=
18144
  ' <$as_myself |
18145
    sed '
18146
      s/[$]LINENO.*/&-/
18147
      t lineno
18148
      b
18149
      :lineno
18150
      N
18151
      :loop
18152
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
18153
      t loop
18154
      s/-\n.*//
18155
    ' >$as_me.lineno &&
18156
  chmod +x "$as_me.lineno" ||
18157
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
18158
   { (exit 1); exit 1; }; }
18159
 
18160
  # Don't try to exec as it changes $[0], causing all sort of problems
18161
  # (the dirname of $[0] is not the place where we might find the
18162
  # original and so on.  Autoconf is especially sensitive to this).
18163
  . "./$as_me.lineno"
18164
  # Exit status is that of the last command.
18165
  exit
18166
}
18167
 
18168
 
18169
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18170
  as_dirname=dirname
18171
else
18172
  as_dirname=false
18173
fi
18174
 
18175 19 jeremybenn
ECHO_C= ECHO_N= ECHO_T=
18176 101 jeremybenn
case `echo -n x` in
18177 19 jeremybenn
-n*)
18178 101 jeremybenn
  case `echo 'x\c'` in
18179 19 jeremybenn
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
18180 101 jeremybenn
  *)   ECHO_C='\c';;
18181 19 jeremybenn
  esac;;
18182
*)
18183
  ECHO_N='-n';;
18184
esac
18185 101 jeremybenn
if expr a : '\(a\)' >/dev/null 2>&1 &&
18186
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
18187
  as_expr=expr
18188
else
18189
  as_expr=false
18190
fi
18191 19 jeremybenn
 
18192
rm -f conf$$ conf$$.exe conf$$.file
18193
if test -d conf$$.dir; then
18194
  rm -f conf$$.dir/conf$$.file
18195
else
18196
  rm -f conf$$.dir
18197 82 jeremybenn
  mkdir conf$$.dir 2>/dev/null
18198 19 jeremybenn
fi
18199 82 jeremybenn
if (echo >conf$$.file) 2>/dev/null; then
18200
  if ln -s conf$$.file conf$$ 2>/dev/null; then
18201
    as_ln_s='ln -s'
18202
    # ... but there are two gotchas:
18203
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18204
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18205
    # In both cases, we have to default to `cp -p'.
18206
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18207
      as_ln_s='cp -p'
18208
  elif ln conf$$.file conf$$ 2>/dev/null; then
18209
    as_ln_s=ln
18210
  else
18211 19 jeremybenn
    as_ln_s='cp -p'
18212 82 jeremybenn
  fi
18213 19 jeremybenn
else
18214
  as_ln_s='cp -p'
18215
fi
18216
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18217
rmdir conf$$.dir 2>/dev/null
18218
 
18219
if mkdir -p . 2>/dev/null; then
18220 101 jeremybenn
  as_mkdir_p=:
18221 19 jeremybenn
else
18222
  test -d ./-p && rmdir ./-p
18223
  as_mkdir_p=false
18224
fi
18225
 
18226
if test -x / >/dev/null 2>&1; then
18227
  as_test_x='test -x'
18228
else
18229
  if ls -dL / >/dev/null 2>&1; then
18230
    as_ls_L_option=L
18231
  else
18232
    as_ls_L_option=
18233
  fi
18234
  as_test_x='
18235
    eval sh -c '\''
18236
      if test -d "$1"; then
18237 82 jeremybenn
        test -d "$1/.";
18238 19 jeremybenn
      else
18239 101 jeremybenn
        case $1 in
18240 82 jeremybenn
        -*)set "./$1";;
18241 19 jeremybenn
        esac;
18242 101 jeremybenn
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
18243 19 jeremybenn
        ???[sx]*):;;*)false;;esac;fi
18244
    '\'' sh
18245
  '
18246
fi
18247
as_executable_p=$as_test_x
18248
 
18249
# Sed expression to map a string onto a valid CPP name.
18250
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18251
 
18252
# Sed expression to map a string onto a valid variable name.
18253
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18254
 
18255
 
18256
exec 6>&1
18257
 
18258 101 jeremybenn
# Save the log message, to keep $[0] and so on meaningful, and to
18259 19 jeremybenn
# report actual input values of CONFIG_FILES etc. instead of their
18260
# values after options handling.
18261
ac_log="
18262 112 jeremybenn
This file was extended by or1ksim $as_me 2010-06-09, which was
18263 101 jeremybenn
generated by GNU Autoconf 2.63.  Invocation command line was
18264 19 jeremybenn
 
18265
  CONFIG_FILES    = $CONFIG_FILES
18266
  CONFIG_HEADERS  = $CONFIG_HEADERS
18267
  CONFIG_LINKS    = $CONFIG_LINKS
18268
  CONFIG_COMMANDS = $CONFIG_COMMANDS
18269
  $ $0 $@
18270
 
18271
on `(hostname || uname -n) 2>/dev/null | sed 1q`
18272
"
18273
 
18274
_ACEOF
18275
 
18276 82 jeremybenn
case $ac_config_files in *"
18277
"*) set x $ac_config_files; shift; ac_config_files=$*;;
18278
esac
18279
 
18280
case $ac_config_headers in *"
18281
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18282
esac
18283
 
18284
 
18285
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18286 19 jeremybenn
# Files that config.status was made for.
18287
config_files="$ac_config_files"
18288
config_headers="$ac_config_headers"
18289
config_commands="$ac_config_commands"
18290
 
18291
_ACEOF
18292
 
18293 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18294 19 jeremybenn
ac_cs_usage="\
18295 101 jeremybenn
\`$as_me' instantiates files from templates according to the
18296
current configuration.
18297 19 jeremybenn
 
18298 101 jeremybenn
Usage: $0 [OPTION]... [FILE]...
18299 19 jeremybenn
 
18300
  -h, --help       print this help, then exit
18301
  -V, --version    print version number and configuration settings, then exit
18302 82 jeremybenn
  -q, --quiet, --silent
18303
                   do not print progress messages
18304 19 jeremybenn
  -d, --debug      don't remove temporary files
18305
      --recheck    update $as_me by reconfiguring in the same conditions
18306 82 jeremybenn
      --file=FILE[:TEMPLATE]
18307
                   instantiate the configuration file FILE
18308
      --header=FILE[:TEMPLATE]
18309
                   instantiate the configuration header FILE
18310 19 jeremybenn
 
18311
Configuration files:
18312
$config_files
18313
 
18314
Configuration headers:
18315
$config_headers
18316
 
18317
Configuration commands:
18318
$config_commands
18319
 
18320 101 jeremybenn
Report bugs to ."
18321 19 jeremybenn
 
18322
_ACEOF
18323 82 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18324 19 jeremybenn
ac_cs_version="\\
18325 112 jeremybenn
or1ksim config.status 2010-06-09
18326 101 jeremybenn
configured by $0, generated by GNU Autoconf 2.63,
18327
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18328 19 jeremybenn
 
18329 101 jeremybenn
Copyright (C) 2008 Free Software Foundation, Inc.
18330 19 jeremybenn
This config.status script is free software; the Free Software Foundation
18331
gives unlimited permission to copy, distribute and modify it."
18332
 
18333
ac_pwd='$ac_pwd'
18334
srcdir='$srcdir'
18335
INSTALL='$INSTALL'
18336
MKDIR_P='$MKDIR_P'
18337 82 jeremybenn
AWK='$AWK'
18338
test -n "\$AWK" || AWK=awk
18339 19 jeremybenn
_ACEOF
18340
 
18341 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18342
# The default lists apply if the user does not specify any file.
18343 19 jeremybenn
ac_need_defaults=:
18344
while test $# != 0
18345
do
18346
  case $1 in
18347
  --*=*)
18348
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18349
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18350
    ac_shift=:
18351
    ;;
18352
  *)
18353
    ac_option=$1
18354
    ac_optarg=$2
18355
    ac_shift=shift
18356
    ;;
18357
  esac
18358
 
18359
  case $ac_option in
18360
  # Handling of the options.
18361
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18362
    ac_cs_recheck=: ;;
18363
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18364 82 jeremybenn
    $as_echo "$ac_cs_version"; exit ;;
18365 19 jeremybenn
  --debug | --debu | --deb | --de | --d | -d )
18366
    debug=: ;;
18367
  --file | --fil | --fi | --f )
18368
    $ac_shift
18369 82 jeremybenn
    case $ac_optarg in
18370
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18371
    esac
18372 101 jeremybenn
    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
18373 19 jeremybenn
    ac_need_defaults=false;;
18374
  --header | --heade | --head | --hea )
18375
    $ac_shift
18376 82 jeremybenn
    case $ac_optarg in
18377
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18378
    esac
18379 101 jeremybenn
    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
18380 19 jeremybenn
    ac_need_defaults=false;;
18381
  --he | --h)
18382
    # Conflict between --help and --header
18383 101 jeremybenn
    { $as_echo "$as_me: error: ambiguous option: $1
18384
Try \`$0 --help' for more information." >&2
18385
   { (exit 1); exit 1; }; };;
18386 19 jeremybenn
  --help | --hel | -h )
18387 82 jeremybenn
    $as_echo "$ac_cs_usage"; exit ;;
18388 19 jeremybenn
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18389
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
18390
    ac_cs_silent=: ;;
18391
 
18392
  # This is an error.
18393 101 jeremybenn
  -*) { $as_echo "$as_me: error: unrecognized option: $1
18394
Try \`$0 --help' for more information." >&2
18395
   { (exit 1); exit 1; }; } ;;
18396 19 jeremybenn
 
18397 101 jeremybenn
  *) ac_config_targets="$ac_config_targets $1"
18398 19 jeremybenn
     ac_need_defaults=false ;;
18399
 
18400
  esac
18401
  shift
18402
done
18403
 
18404
ac_configure_extra_args=
18405
 
18406
if $ac_cs_silent; then
18407
  exec 6>/dev/null
18408
  ac_configure_extra_args="$ac_configure_extra_args --silent"
18409
fi
18410
 
18411
_ACEOF
18412 82 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18413 19 jeremybenn
if \$ac_cs_recheck; then
18414 82 jeremybenn
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18415
  shift
18416
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18417
  CONFIG_SHELL='$SHELL'
18418 19 jeremybenn
  export CONFIG_SHELL
18419 82 jeremybenn
  exec "\$@"
18420 19 jeremybenn
fi
18421
 
18422
_ACEOF
18423 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18424 19 jeremybenn
exec 5>>config.log
18425
{
18426
  echo
18427
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18428
## Running $as_me. ##
18429
_ASBOX
18430 82 jeremybenn
  $as_echo "$ac_log"
18431 19 jeremybenn
} >&5
18432
 
18433
_ACEOF
18434 82 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18435 19 jeremybenn
#
18436
# INIT-COMMANDS
18437
#
18438 82 jeremybenn
 
18439
 
18440
# The HP-UX ksh and POSIX shell print the target directory to stdout
18441
# if CDPATH is set.
18442
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18443
 
18444
sed_quote_subst='$sed_quote_subst'
18445
double_quote_subst='$double_quote_subst'
18446
delay_variable_subst='$delay_variable_subst'
18447
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
18448
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
18449
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
18450
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
18451
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
18452
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
18453
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
18454
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
18455
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
18456
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
18457
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
18458
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
18459
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
18460
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
18461
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
18462
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
18463
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
18464
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
18465
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
18466
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
18467
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
18468
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
18469
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
18470
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
18471
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
18472
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
18473
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
18474
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18475
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
18476
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
18477
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
18478
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
18479
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
18480
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
18481
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
18482
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18483
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18484
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18485
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
18486
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
18487
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
18488
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
18489
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
18490
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
18491
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"`'
18492
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"`'
18493
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
18494
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
18495
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
18496
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
18497
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
18498
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
18499
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
18500
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
18501
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
18502
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
18503
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
18504
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
18505
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
18506
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
18507
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
18508
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
18509
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18510
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18511
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
18512
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
18513
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18514
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18515
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
18516
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18517
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18518
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18519
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18520
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18521
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18522
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
18523
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
18524
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
18525
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18526
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
18527
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
18528
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
18529
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
18530
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
18531
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18532
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
18533
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
18534
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
18535
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
18536
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
18537
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18538
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
18539
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
18540
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18541
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
18542
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
18543
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
18544
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
18545
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
18546
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18547
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18548
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
18549
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
18550
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
18551
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
18552
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18553
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18554
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18555
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
18556
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
18557
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
18558
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
18559
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
18560
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
18561
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
18562
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
18563
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
18564
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
18565
 
18566
LTCC='$LTCC'
18567
LTCFLAGS='$LTCFLAGS'
18568
compiler='$compiler_DEFAULT'
18569
 
18570
# Quote evaled strings.
18571
for var in SED \
18572
GREP \
18573
EGREP \
18574
FGREP \
18575
LD \
18576
NM \
18577
LN_S \
18578
lt_SP2NL \
18579
lt_NL2SP \
18580
reload_flag \
18581
OBJDUMP \
18582
deplibs_check_method \
18583
file_magic_cmd \
18584
AR \
18585
AR_FLAGS \
18586
STRIP \
18587
RANLIB \
18588
CC \
18589
CFLAGS \
18590
compiler \
18591
lt_cv_sys_global_symbol_pipe \
18592
lt_cv_sys_global_symbol_to_cdecl \
18593
lt_cv_sys_global_symbol_to_c_name_address \
18594
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18595
SHELL \
18596
ECHO \
18597
lt_prog_compiler_no_builtin_flag \
18598
lt_prog_compiler_wl \
18599
lt_prog_compiler_pic \
18600
lt_prog_compiler_static \
18601
lt_cv_prog_compiler_c_o \
18602
need_locks \
18603
DSYMUTIL \
18604
NMEDIT \
18605
LIPO \
18606
OTOOL \
18607
OTOOL64 \
18608
shrext_cmds \
18609
export_dynamic_flag_spec \
18610
whole_archive_flag_spec \
18611
compiler_needs_object \
18612
with_gnu_ld \
18613
allow_undefined_flag \
18614
no_undefined_flag \
18615
hardcode_libdir_flag_spec \
18616
hardcode_libdir_flag_spec_ld \
18617
hardcode_libdir_separator \
18618
fix_srcfile_path \
18619
exclude_expsyms \
18620
include_expsyms \
18621
file_list_spec \
18622
variables_saved_for_relink \
18623
libname_spec \
18624
library_names_spec \
18625
soname_spec \
18626
finish_eval \
18627
old_striplib \
18628
striplib; do
18629
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
18630
    *[\\\\\\\`\\"\\\$]*)
18631
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18632
      ;;
18633
    *)
18634
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18635
      ;;
18636
    esac
18637
done
18638
 
18639
# Double-quote double-evaled strings.
18640
for var in reload_cmds \
18641
old_postinstall_cmds \
18642
old_postuninstall_cmds \
18643
old_archive_cmds \
18644
extract_expsyms_cmds \
18645
old_archive_from_new_cmds \
18646
old_archive_from_expsyms_cmds \
18647
archive_cmds \
18648
archive_expsym_cmds \
18649
module_cmds \
18650
module_expsym_cmds \
18651
export_symbols_cmds \
18652
prelink_cmds \
18653
postinstall_cmds \
18654
postuninstall_cmds \
18655
finish_cmds \
18656
sys_lib_search_path_spec \
18657
sys_lib_dlsearch_path_spec; do
18658
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
18659
    *[\\\\\\\`\\"\\\$]*)
18660
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18661
      ;;
18662
    *)
18663
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18664
      ;;
18665
    esac
18666
done
18667
 
18668
# Fix-up fallback echo if it was mangled by the above quoting rules.
18669
case \$lt_ECHO in
18670
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
18671
  ;;
18672
esac
18673
 
18674
ac_aux_dir='$ac_aux_dir'
18675
xsi_shell='$xsi_shell'
18676
lt_shell_append='$lt_shell_append'
18677
 
18678
# See if we are running on zsh, and set the options which allow our
18679
# commands through without removal of \ escapes INIT.
18680
if test -n "\${ZSH_VERSION+set}" ; then
18681
   setopt NO_GLOB_SUBST
18682
fi
18683
 
18684
 
18685
    PACKAGE='$PACKAGE'
18686
    VERSION='$VERSION'
18687
    TIMESTAMP='$TIMESTAMP'
18688
    RM='$RM'
18689
    ofile='$ofile'
18690
 
18691
 
18692
 
18693 19 jeremybenn
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18694
 
18695
_ACEOF
18696
 
18697 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18698 19 jeremybenn
 
18699
# Handling of arguments.
18700
for ac_config_target in $ac_config_targets
18701
do
18702
  case $ac_config_target in
18703 82 jeremybenn
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18704 19 jeremybenn
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18705
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18706
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18707
    "argtable2/Makefile") CONFIG_FILES="$CONFIG_FILES argtable2/Makefile" ;;
18708
    "bpb/Makefile") CONFIG_FILES="$CONFIG_FILES bpb/Makefile" ;;
18709
    "cache/Makefile") CONFIG_FILES="$CONFIG_FILES cache/Makefile" ;;
18710
    "cpu/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/Makefile" ;;
18711
    "cpu/common/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/common/Makefile" ;;
18712
    "cpu/or1k/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/or1k/Makefile" ;;
18713
    "cuc/Makefile") CONFIG_FILES="$CONFIG_FILES cuc/Makefile" ;;
18714
    "debug/Makefile") CONFIG_FILES="$CONFIG_FILES debug/Makefile" ;;
18715
    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18716
    "mmu/Makefile") CONFIG_FILES="$CONFIG_FILES mmu/Makefile" ;;
18717
    "peripheral/Makefile") CONFIG_FILES="$CONFIG_FILES peripheral/Makefile" ;;
18718
    "peripheral/channels/Makefile") CONFIG_FILES="$CONFIG_FILES peripheral/channels/Makefile" ;;
18719
    "pm/Makefile") CONFIG_FILES="$CONFIG_FILES pm/Makefile" ;;
18720
    "pic/Makefile") CONFIG_FILES="$CONFIG_FILES pic/Makefile" ;;
18721 90 jeremybenn
    "port/Makefile") CONFIG_FILES="$CONFIG_FILES port/Makefile" ;;
18722
    "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
18723
    "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
18724
    "testsuite/config/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/config/Makefile" ;;
18725
    "testsuite/lib/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/lib/Makefile" ;;
18726
    "testsuite/libsim.tests/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/libsim.tests/Makefile" ;;
18727
    "testsuite/or1ksim.tests/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/or1ksim.tests/Makefile" ;;
18728
    "testsuite/test-code/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/test-code/Makefile" ;;
18729
    "testsuite/test-code/lib-iftest/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/test-code/lib-iftest/Makefile" ;;
18730 93 jeremybenn
    "testsuite/test-code/lib-inttest/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/test-code/lib-inttest/Makefile" ;;
18731 97 jeremybenn
    "testsuite/test-code/lib-jtag/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/test-code/lib-jtag/Makefile" ;;
18732 93 jeremybenn
    "testsuite/test-code/lib-upcalls/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/test-code/lib-upcalls/Makefile" ;;
18733 90 jeremybenn
    "tick/Makefile") CONFIG_FILES="$CONFIG_FILES tick/Makefile" ;;
18734 19 jeremybenn
    "vapi/Makefile") CONFIG_FILES="$CONFIG_FILES vapi/Makefile" ;;
18735
    "cpu/dlx/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/dlx/Makefile" ;;
18736
    "cpu/or32/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/or32/Makefile" ;;
18737
 
18738 101 jeremybenn
  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18739
$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18740
   { (exit 1); exit 1; }; };;
18741 19 jeremybenn
  esac
18742
done
18743
 
18744
 
18745
# If the user did not use the arguments to specify the items to instantiate,
18746
# then the envvar interface is used.  Set only those that are not.
18747
# We use the long form for the default assignment because of an extremely
18748
# bizarre bug on SunOS 4.1.3.
18749
if $ac_need_defaults; then
18750
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18751
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18752
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18753
fi
18754
 
18755
# Have a temporary directory for convenience.  Make it in the build tree
18756
# simply because there is no reason against having it here, and in addition,
18757
# creating and moving files from /tmp can sometimes cause problems.
18758
# Hook for its removal unless debugging.
18759
# Note that there is a small window in which the directory will not be cleaned:
18760
# after its creation but before its name has been assigned to `$tmp'.
18761
$debug ||
18762
{
18763
  tmp=
18764
  trap 'exit_status=$?
18765
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18766
' 0
18767 101 jeremybenn
  trap '{ (exit 1); exit 1; }' 1 2 13 15
18768 19 jeremybenn
}
18769
# Create a (secure) tmp directory for tmp files.
18770
 
18771
{
18772
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18773
  test -n "$tmp" && test -d "$tmp"
18774
}  ||
18775
{
18776
  tmp=./conf$$-$RANDOM
18777
  (umask 077 && mkdir "$tmp")
18778 101 jeremybenn
} ||
18779
{
18780
   $as_echo "$as_me: cannot create a temporary directory in ." >&2
18781
   { (exit 1); exit 1; }
18782
}
18783 19 jeremybenn
 
18784 82 jeremybenn
# Set up the scripts for CONFIG_FILES section.
18785
# No need to generate them if there are no CONFIG_FILES.
18786
# This happens for instance with `./config.status config.h'.
18787 19 jeremybenn
if test -n "$CONFIG_FILES"; then
18788
 
18789 82 jeremybenn
 
18790 101 jeremybenn
ac_cr='
'
18791
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null`
18792 82 jeremybenn
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18793
  ac_cs_awk_cr='\\r'
18794 101 jeremybenn
else
18795 82 jeremybenn
  ac_cs_awk_cr=$ac_cr
18796
fi
18797
18798
 
18799
_ACEOF
18800 19 jeremybenn
18801
 
18802
 
18803 82 jeremybenn
  echo "cat >conf$$subs.awk <<_ACEOF" &&
18804
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18805
  echo "_ACEOF"
18806
} >conf$$subs.sh ||
18807
  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18808 101 jeremybenn
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18809
   { (exit 1); exit 1; }; }
18810
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18811 82 jeremybenn
ac_delim='%!_!# '
18812 19 jeremybenn
for ac_last_try in false false false false false :; do
18813
  . ./conf$$subs.sh ||
18814 82 jeremybenn
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18815 101 jeremybenn
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18816
   { (exit 1); exit 1; }; }
18817
18818 19 jeremybenn
 
18819 82 jeremybenn
  if test $ac_delim_n = $ac_delim_num; then
18820
    break
18821 19 jeremybenn
  elif $ac_last_try; then
18822
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18823 101 jeremybenn
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18824
   { (exit 1); exit 1; }; }
18825
  else
18826 19 jeremybenn
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18827
  fi
18828
done
18829
rm -f conf$$subs.sh
18830 82 jeremybenn
18831 19 jeremybenn
 
18832 82 jeremybenn
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18833
_ACEOF
18834 19 jeremybenn
sed -n '
18835 82 jeremybenn
h
18836
s/^/S["/; s/!.*/"]=/
18837
p
18838
g
18839
s/^[^!]*!//
18840
:repl
18841
t repl
18842
s/'"$ac_delim"'$//
18843
t delim
18844
:nl
18845
h
18846
s/\(.\{148\}\).*/\1/
18847 101 jeremybenn
t more1
18848 82 jeremybenn
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18849
p
18850
n
18851
b repl
18852
:more1
18853
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18854
p
18855
g
18856
s/.\{148\}//
18857
t nl
18858
:delim
18859
h
18860
s/\(.\{148\}\).*/\1/
18861 101 jeremybenn
t more2
18862 82 jeremybenn
s/["\\]/\\&/g; s/^/"/; s/$/"/
18863
p
18864
b
18865
:more2
18866
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18867
p
18868
g
18869
s/.\{148\}//
18870
t delim
18871
' 
18872
/^[^""]/{
18873
  N
18874
  s/\n//
18875
}
18876
' >>$CONFIG_STATUS || ac_write_fail=1
18877
rm -f conf$$subs.awk
18878
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18879
_ACAWK
18880
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18881
  for (key in S) S_is_set[key] = 1
18882
  FS = ""
18883
18884 19 jeremybenn
 
18885 82 jeremybenn
{
18886
  line = $ 0
18887
  nfields = split(line, field, "@")
18888
  substed = 0
18889
  len = length(field[1])
18890
  for (i = 2; i < nfields; i++) {
18891
    key = field[i]
18892
    keylen = length(key)
18893
    if (S_is_set[key]) {
18894
      value = S[key]
18895
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18896
      len += length(value) + length(field[++i])
18897
      substed = 1
18898
    } else
18899
      len += 1 + keylen
18900
  }
18901
18902 19 jeremybenn
 
18903 82 jeremybenn
}
18904
18905
 
18906
_ACEOF
18907 19 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18908 82 jeremybenn
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18909
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18910
else
18911
  cat
18912
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18913
  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
18914 101 jeremybenn
$as_echo "$as_me: error: could not setup config files machinery" >&2;}
18915
   { (exit 1); exit 1; }; }
18916
_ACEOF
18917 19 jeremybenn
18918
 
18919
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18920
# trailing colons and then remove the whole line if VPATH becomes empty
18921
# (actually we leave an empty line to preserve line numbers).
18922
if test "x$srcdir" = x.; then
18923
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
18924
s/:*\$(srcdir):*/:/
18925
s/:*\${srcdir}:*/:/
18926
s/:*@srcdir@:*/:/
18927
s/^\([^=]*=[     ]*\):*/\1/
18928
s/:*$//
18929
s/^[^=]*=[       ]*$//
18930
}'
18931
fi
18932
18933
 
18934 82 jeremybenn
fi # test -n "$CONFIG_FILES"
18935 19 jeremybenn
18936
 
18937 82 jeremybenn
# No need to generate them if there are no CONFIG_HEADERS.
18938
# This happens for instance with `./config.status Makefile'.
18939
if test -n "$CONFIG_HEADERS"; then
18940
cat >"$tmp/defines.awk" <<\_ACAWK ||
18941
BEGIN {
18942
_ACEOF
18943
18944 19 jeremybenn
 
18945 82 jeremybenn
# here-document in config.status, that substitutes the proper values into
18946
# config.h.in to produce config.h.
18947
18948
 
18949
# handling of long lines.
18950
ac_delim='%!_!# '
18951
for ac_last_try in false false :; do
18952
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18953
  if test -z "$ac_t"; then
18954
    break
18955
  elif $ac_last_try; then
18956
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
18957 101 jeremybenn
$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
18958
   { (exit 1); exit 1; }; }
18959
  else
18960 82 jeremybenn
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18961
  fi
18962
done
18963
18964
 
18965
# likewise P contains macro parameters if any.  Preserve backslash
18966
# newline sequences.
18967
18968
 
18969
sed -n '
18970
s/.\{148\}/&'"$ac_delim"'/g
18971
t rset
18972
:rset
18973
s/^[     ]*#[    ]*define[       ][      ]*/ /
18974
t def
18975
d
18976
:def
18977
s/\\$//
18978
t bsnl
18979
s/["\\]/\\&/g
18980
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18981
D["\1"]=" \3"/p
18982
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
18983
d
18984
:bsnl
18985
s/["\\]/\\&/g
18986
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18987
D["\1"]=" \3\\\\\\n"\\/p
18988
t cont
18989
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18990
t cont
18991
d
18992
:cont
18993
n
18994
s/.\{148\}/&'"$ac_delim"'/g
18995
t clear
18996
:clear
18997
s/\\$//
18998
t bsnlc
18999
s/["\\]/\\&/g; s/^/"/; s/$/"/p
19000
d
19001
:bsnlc
19002
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19003
b cont
19004
' 
19005
s/'"$ac_delim"'/"\\\
19006
"/g' >>$CONFIG_STATUS || ac_write_fail=1
19007
19008
 
19009
  for (key in D) D_is_set[key] = 1
19010
  FS = ""
19011
}
19012
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19013
  line = \$ 0
19014
  split(line, arg, " ")
19015
  if (arg[1] == "#") {
19016
    defundef = arg[2]
19017
    mac1 = arg[3]
19018
  } else {
19019
    defundef = substr(arg[1], 2)
19020
    mac1 = arg[2]
19021
  }
19022
  split(mac1, mac2, "(") #)
19023
  macro = mac2[1]
19024
  prefix = substr(line, 1, index(line, defundef) - 1)
19025
  if (D_is_set[macro]) {
19026
    # Preserve the white space surrounding the "#".
19027
    print prefix "define", macro P[macro] D[macro]
19028
    next
19029
  } else {
19030
    # Replace #undef with comments.  This is necessary, for example,
19031
    # in the case of _POSIX_SOURCE, which is predefined and required
19032
    # on some systems where configure will not decide to define it.
19033
    if (defundef == "undef") {
19034
      print "/*", prefix defundef, macro, "*/"
19035
      next
19036
    }
19037
  }
19038
}
19039
{ print }
19040
_ACAWK
19041
_ACEOF
19042
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19043
  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
19044 101 jeremybenn
$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
19045
   { (exit 1); exit 1; }; }
19046
fi # test -n "$CONFIG_HEADERS"
19047 82 jeremybenn
19048
 
19049
 
19050
shift
19051
for ac_tag
19052
do
19053 19 jeremybenn
  case $ac_tag in
19054
  :[FHLC]) ac_mode=$ac_tag; continue;;
19055
  esac
19056
  case $ac_mode$ac_tag in
19057
  :[FHL]*:*);;
19058
  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
19059 101 jeremybenn
$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
19060
   { (exit 1); exit 1; }; };;
19061
  :[FH]-) ac_tag=-:-;;
19062 19 jeremybenn
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19063
  esac
19064
  ac_save_IFS=$IFS
19065
  IFS=:
19066
  set x $ac_tag
19067
  IFS=$ac_save_IFS
19068
  shift
19069
  ac_file=$1
19070
  shift
19071
19072
 
19073
  :L) ac_source=$1;;
19074
  :[FH])
19075
    ac_file_inputs=
19076
    for ac_f
19077
    do
19078
      case $ac_f in
19079
      -) ac_f="$tmp/stdin";;
19080
      *) # Look for the file first in the build tree, then in the source tree
19081
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
19082
         # because $ac_f cannot contain `:'.
19083
         test -f "$ac_f" ||
19084
           case $ac_f in
19085
           [\\/$]*) false;;
19086
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19087
           esac ||
19088
           { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19089 101 jeremybenn
$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
19090
   { (exit 1); exit 1; }; };;
19091
      esac
19092 19 jeremybenn
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19093 82 jeremybenn
      ac_file_inputs="$ac_file_inputs '$ac_f'"
19094 101 jeremybenn
    done
19095 19 jeremybenn
19096
 
19097
    # use $as_me), people would be surprised to read:
19098
    #    /* config.h.  Generated by config.status.  */
19099
    configure_input='Generated from '`
19100 82 jeremybenn
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19101
        `' by configure.'
19102
    if test x"$ac_file" != x-; then
19103 19 jeremybenn
      configure_input="$ac_file.  $configure_input"
19104
      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
19105 101 jeremybenn
$as_echo "$as_me: creating $ac_file" >&6;}
19106 82 jeremybenn
    fi
19107 19 jeremybenn
    # Neutralize special characters interpreted by sed in replacement strings.
19108 82 jeremybenn
    case $configure_input in #(
19109
    *\&* | *\|* | *\\* )
19110
       ac_sed_conf_input=`$as_echo "$configure_input" |
19111
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
19112
    *) ac_sed_conf_input=$configure_input;;
19113
    esac
19114
19115 19 jeremybenn
 
19116
    *:-:* | *:-) cat >"$tmp/stdin" \
19117 82 jeremybenn
      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19118 101 jeremybenn
$as_echo "$as_me: error: could not create $ac_file" >&2;}
19119
   { (exit 1); exit 1; }; } ;;
19120
    esac
19121 19 jeremybenn
    ;;
19122
  esac
19123
19124
 
19125
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19126
         X"$ac_file" : 'X\(//\)[^/]' \| \
19127
         X"$ac_file" : 'X\(//\)$' \| \
19128
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19129
$as_echo X"$ac_file" |
19130 82 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19131 19 jeremybenn
            s//\1/
19132
            q
19133
          }
19134
          /^X\(\/\/\)[^/].*/{
19135
            s//\1/
19136
            q
19137
          }
19138
          /^X\(\/\/\)$/{
19139
            s//\1/
19140
            q
19141
          }
19142
          /^X\(\/\).*/{
19143
            s//\1/
19144
            q
19145
          }
19146
          s/.*/./; q'`
19147
  { as_dir="$ac_dir"
19148 101 jeremybenn
  case $as_dir in #(
19149
  -*) as_dir=./$as_dir;;
19150
  esac
19151
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19152
    as_dirs=
19153
    while :; do
19154
      case $as_dir in #(
19155
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19156
      *) as_qdir=$as_dir;;
19157
      esac
19158
      as_dirs="'$as_qdir' $as_dirs"
19159
      as_dir=`$as_dirname -- "$as_dir" ||
19160
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19161
         X"$as_dir" : 'X\(//\)[^/]' \| \
19162
         X"$as_dir" : 'X\(//\)$' \| \
19163
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19164
$as_echo X"$as_dir" |
19165
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19166
            s//\1/
19167
            q
19168
          }
19169
          /^X\(\/\/\)[^/].*/{
19170
            s//\1/
19171
            q
19172
          }
19173
          /^X\(\/\/\)$/{
19174
            s//\1/
19175
            q
19176
          }
19177
          /^X\(\/\).*/{
19178
            s//\1/
19179
            q
19180
          }
19181
          s/.*/./; q'`
19182
      test -d "$as_dir" && break
19183
    done
19184
    test -z "$as_dirs" || eval "mkdir $as_dirs"
19185
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19186
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
19187
   { (exit 1); exit 1; }; }; }
19188
  ac_builddir=.
19189 19 jeremybenn
19190
 
19191
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19192
*)
19193
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19194 82 jeremybenn
  # A ".." for each directory in $ac_dir_suffix.
19195 19 jeremybenn
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19196 82 jeremybenn
  case $ac_top_builddir_sub in
19197 19 jeremybenn
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19198
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19199
  esac ;;
19200
esac
19201
ac_abs_top_builddir=$ac_pwd
19202
ac_abs_builddir=$ac_pwd$ac_dir_suffix
19203
# for backward compatibility:
19204
ac_top_builddir=$ac_top_build_prefix
19205
19206
 
19207
  .)  # We are building in place.
19208
    ac_srcdir=.
19209
    ac_top_srcdir=$ac_top_builddir_sub
19210
    ac_abs_top_srcdir=$ac_pwd ;;
19211
  [\\/]* | ?:[\\/]* )  # Absolute name.
19212
    ac_srcdir=$srcdir$ac_dir_suffix;
19213
    ac_top_srcdir=$srcdir
19214
    ac_abs_top_srcdir=$srcdir ;;
19215
  *) # Relative name.
19216
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19217
    ac_top_srcdir=$ac_top_build_prefix$srcdir
19218
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19219
esac
19220
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19221
19222
 
19223
 
19224
  :F)
19225
  #
19226
  # CONFIG_FILE
19227
  #
19228
19229
 
19230
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19231
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19232
  esac
19233
  ac_MKDIR_P=$MKDIR_P
19234
  case $MKDIR_P in
19235
  [\\/$]* | ?:[\\/]* ) ;;
19236
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19237
  esac
19238
_ACEOF
19239
19240
 
19241 82 jeremybenn
# If the template does not know about datarootdir, expand it.
19242 19 jeremybenn
# FIXME: This hack should be removed a few years after 2.60.
19243
ac_datarootdir_hack=; ac_datarootdir_seen=
19244
19245 101 jeremybenn
 
19246 82 jeremybenn
/datarootdir/ {
19247
  p
19248 19 jeremybenn
  q
19249
}
19250
/@datadir@/p
19251
/@docdir@/p
19252
/@infodir@/p
19253
/@localedir@/p
19254
/@mandir@/p
19255 101 jeremybenn
'
19256
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19257 82 jeremybenn
*datarootdir*) ac_datarootdir_seen=yes;;
19258 19 jeremybenn
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19259
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19260 101 jeremybenn
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19261 82 jeremybenn
_ACEOF
19262 19 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19263 82 jeremybenn
  ac_datarootdir_hack='
19264 19 jeremybenn
  s&@datadir@&$datadir&g
19265
  s&@docdir@&$docdir&g
19266
  s&@infodir@&$infodir&g
19267
  s&@localedir@&$localedir&g
19268
  s&@mandir@&$mandir&g
19269
    s&\\\${datarootdir}&$datarootdir&g' ;;
19270 101 jeremybenn
esac
19271 19 jeremybenn
_ACEOF
19272
19273
 
19274
# Shell code in configure.ac might set extrasub.
19275
# FIXME: do we really want to maintain this feature?
19276
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19277 82 jeremybenn
ac_sed_extra="$ac_vpsub
19278
$extrasub
19279 19 jeremybenn
_ACEOF
19280
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19281 82 jeremybenn
:t
19282 19 jeremybenn
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19283
s|@configure_input@|$ac_sed_conf_input|;t t
19284 82 jeremybenn
s&@top_builddir@&$ac_top_builddir_sub&;t t
19285 19 jeremybenn
s&@top_build_prefix@&$ac_top_build_prefix&;t t
19286 82 jeremybenn
s&@srcdir@&$ac_srcdir&;t t
19287 19 jeremybenn
s&@abs_srcdir@&$ac_abs_srcdir&;t t
19288
s&@top_srcdir@&$ac_top_srcdir&;t t
19289
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19290
s&@builddir@&$ac_builddir&;t t
19291
s&@abs_builddir@&$ac_abs_builddir&;t t
19292
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19293
s&@INSTALL@&$ac_INSTALL&;t t
19294
s&@MKDIR_P@&$ac_MKDIR_P&;t t
19295
$ac_datarootdir_hack
19296
"
19297 82 jeremybenn
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
19298
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19299 101 jeremybenn
$as_echo "$as_me: error: could not create $ac_file" >&2;}
19300
   { (exit 1); exit 1; }; }
19301
19302 19 jeremybenn
 
19303
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19304
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19305
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19306 101 jeremybenn
which seems to be undefined.  Please make sure it is defined." >&5
19307 19 jeremybenn
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19308 82 jeremybenn
which seems to be undefined.  Please make sure it is defined." >&2;}
19309 19 jeremybenn
19310
 
19311
  case $ac_file in
19312
  -) cat "$tmp/out" && rm -f "$tmp/out";;
19313 82 jeremybenn
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
19314
  esac \
19315
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19316 101 jeremybenn
$as_echo "$as_me: error: could not create $ac_file" >&2;}
19317
   { (exit 1); exit 1; }; }
19318
 ;;
19319 19 jeremybenn
  :H)
19320
  #
19321
  # CONFIG_HEADER
19322
  #
19323
  if test x"$ac_file" != x-; then
19324
    {
19325 82 jeremybenn
      $as_echo "/* $configure_input  */" \
19326
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
19327
    } >"$tmp/config.h" \
19328
      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19329 101 jeremybenn
$as_echo "$as_me: error: could not create $ac_file" >&2;}
19330
   { (exit 1); exit 1; }; }
19331
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
19332 82 jeremybenn
      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19333 101 jeremybenn
$as_echo "$as_me: $ac_file is unchanged" >&6;}
19334 82 jeremybenn
    else
19335 19 jeremybenn
      rm -f "$ac_file"
19336 82 jeremybenn
      mv "$tmp/config.h" "$ac_file" \
19337
        || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19338 101 jeremybenn
$as_echo "$as_me: error: could not create $ac_file" >&2;}
19339
   { (exit 1); exit 1; }; }
19340
    fi
19341 19 jeremybenn
  else
19342
    $as_echo "/* $configure_input  */" \
19343 82 jeremybenn
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
19344
      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
19345 101 jeremybenn
$as_echo "$as_me: error: could not create -" >&2;}
19346
   { (exit 1); exit 1; }; }
19347
  fi
19348 19 jeremybenn
# Compute "$ac_file"'s index in $config_headers.
19349 82 jeremybenn
_am_arg="$ac_file"
19350
_am_stamp_count=1
19351 19 jeremybenn
for _am_header in $config_headers :; do
19352
  case $_am_header in
19353
    $_am_arg | $_am_arg:* )
19354
      break ;;
19355
    * )
19356
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19357
  esac
19358
done
19359
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19360
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19361
         X"$_am_arg" : 'X\(//\)[^/]' \| \
19362
         X"$_am_arg" : 'X\(//\)$' \| \
19363
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19364
$as_echo X"$_am_arg" |
19365 82 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19366 19 jeremybenn
            s//\1/
19367
            q
19368
          }
19369
          /^X\(\/\/\)[^/].*/{
19370
            s//\1/
19371
            q
19372
          }
19373
          /^X\(\/\/\)$/{
19374
            s//\1/
19375
            q
19376
          }
19377
          /^X\(\/\).*/{
19378
            s//\1/
19379
            q
19380
          }
19381
          s/.*/./; q'`/stamp-h$_am_stamp_count
19382
 ;;
19383
19384
 
19385 101 jeremybenn
$as_echo "$as_me: executing $ac_file commands" >&6;}
19386 82 jeremybenn
 ;;
19387 19 jeremybenn
  esac
19388
19389
 
19390
 
19391
    "libtool":C)
19392 82 jeremybenn
19393
 
19394
    # commands through without removal of \ escapes.
19395
    if test -n "${ZSH_VERSION+set}" ; then
19396
      setopt NO_GLOB_SUBST
19397
    fi
19398
19399
 
19400
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19401
    $RM "$cfgfile"
19402
19403
 
19404
#! $SHELL
19405
19406
 
19407
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19408
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19409
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19410
#
19411
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19412
#                 2006, 2007, 2008 Free Software Foundation, Inc.
19413
#   Written by Gordon Matzigkeit, 1996
19414
#
19415
#   This file is part of GNU Libtool.
19416
#
19417
# GNU Libtool is free software; you can redistribute it and/or
19418
# modify it under the terms of the GNU General Public License as
19419
# published by the Free Software Foundation; either version 2 of
19420
# the License, or (at your option) any later version.
19421
#
19422
# As a special exception to the GNU General Public License,
19423
# if you distribute this file as part of a program or library that
19424
# is built using GNU Libtool, you may include this file under the
19425
# same distribution terms that you use for the rest of that program.
19426
#
19427
# GNU Libtool is distributed in the hope that it will be useful,
19428
# but WITHOUT ANY WARRANTY; without even the implied warranty of
19429
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19430
# GNU General Public License for more details.
19431
#
19432
# You should have received a copy of the GNU General Public License
19433
# along with GNU Libtool; see the file COPYING.  If not, a copy
19434
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19435
# obtained by writing to the Free Software Foundation, Inc.,
19436
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19437
19438
 
19439
 
19440
available_tags=""
19441
19442
 
19443
19444
 
19445
macro_version=$macro_version
19446
macro_revision=$macro_revision
19447
19448
 
19449
build_libtool_libs=$enable_shared
19450
19451
 
19452
build_old_libs=$enable_static
19453
19454
 
19455
pic_mode=$pic_mode
19456
19457
 
19458
fast_install=$enable_fast_install
19459
19460
 
19461
host_alias=$host_alias
19462
host=$host
19463
host_os=$host_os
19464
19465
 
19466
build_alias=$build_alias
19467
build=$build
19468
build_os=$build_os
19469
19470
 
19471
SED=$lt_SED
19472
19473
 
19474
Xsed="\$SED -e 1s/^X//"
19475
19476
 
19477
GREP=$lt_GREP
19478
19479
 
19480
EGREP=$lt_EGREP
19481
19482
 
19483
FGREP=$lt_FGREP
19484
19485
 
19486
NM=$lt_NM
19487
19488
 
19489
LN_S=$lt_LN_S
19490
19491
 
19492
max_cmd_len=$max_cmd_len
19493
19494
 
19495
objext=$ac_objext
19496
19497
 
19498
exeext=$exeext
19499
19500
 
19501
lt_unset=$lt_unset
19502
19503
 
19504
SP2NL=$lt_lt_SP2NL
19505
19506
 
19507
NL2SP=$lt_lt_NL2SP
19508
19509
 
19510
reload_flag=$lt_reload_flag
19511
reload_cmds=$lt_reload_cmds
19512
19513
 
19514
OBJDUMP=$lt_OBJDUMP
19515
19516
 
19517
deplibs_check_method=$lt_deplibs_check_method
19518
19519
 
19520
file_magic_cmd=$lt_file_magic_cmd
19521
19522
 
19523
AR=$lt_AR
19524
AR_FLAGS=$lt_AR_FLAGS
19525
19526
 
19527
STRIP=$lt_STRIP
19528
19529
 
19530
RANLIB=$lt_RANLIB
19531
old_postinstall_cmds=$lt_old_postinstall_cmds
19532
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19533
19534
 
19535
LTCC=$lt_CC
19536
19537
 
19538
LTCFLAGS=$lt_CFLAGS
19539
19540
 
19541
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19542
19543
 
19544
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19545
19546
 
19547
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19548
19549
 
19550
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19551
19552
 
19553
objdir=$objdir
19554
19555
 
19556
SHELL=$lt_SHELL
19557
19558
 
19559
ECHO=$lt_ECHO
19560
19561
 
19562
MAGIC_CMD=$MAGIC_CMD
19563
19564
 
19565
need_locks=$lt_need_locks
19566
19567
 
19568
DSYMUTIL=$lt_DSYMUTIL
19569
19570
 
19571
NMEDIT=$lt_NMEDIT
19572
19573
 
19574
LIPO=$lt_LIPO
19575
19576
 
19577
OTOOL=$lt_OTOOL
19578
19579
 
19580
OTOOL64=$lt_OTOOL64
19581
19582
 
19583
libext=$libext
19584
19585
 
19586
shrext_cmds=$lt_shrext_cmds
19587
19588
 
19589
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19590
19591
 
19592
# restored at link time.
19593
variables_saved_for_relink=$lt_variables_saved_for_relink
19594
19595
 
19596
need_lib_prefix=$need_lib_prefix
19597
19598
 
19599
need_version=$need_version
19600
19601
 
19602
version_type=$version_type
19603
19604
 
19605
runpath_var=$runpath_var
19606
19607
 
19608
shlibpath_var=$shlibpath_var
19609
19610
 
19611
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19612
19613
 
19614
libname_spec=$lt_libname_spec
19615
19616
 
19617
# The last name is the one that the linker finds with -lNAME
19618
library_names_spec=$lt_library_names_spec
19619
19620
 
19621
soname_spec=$lt_soname_spec
19622
19623
 
19624
postinstall_cmds=$lt_postinstall_cmds
19625
19626
 
19627
postuninstall_cmds=$lt_postuninstall_cmds
19628
19629
 
19630
finish_cmds=$lt_finish_cmds
19631
19632
 
19633
# not shown.
19634
finish_eval=$lt_finish_eval
19635
19636
 
19637
hardcode_into_libs=$hardcode_into_libs
19638
19639
 
19640
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19641
19642
 
19643
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19644
19645
 
19646
dlopen_support=$enable_dlopen
19647
19648
 
19649
dlopen_self=$enable_dlopen_self
19650
19651
 
19652
dlopen_self_static=$enable_dlopen_self_static
19653
19654
 
19655
old_striplib=$lt_old_striplib
19656
striplib=$lt_striplib
19657
19658
 
19659
 
19660
LD=$lt_LD
19661
19662
 
19663
old_archive_cmds=$lt_old_archive_cmds
19664
19665
 
19666
CC=$lt_compiler
19667
19668
 
19669
with_gcc=$GCC
19670
19671
 
19672
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19673
19674
 
19675
wl=$lt_lt_prog_compiler_wl
19676
19677
 
19678
pic_flag=$lt_lt_prog_compiler_pic
19679
19680
 
19681
link_static_flag=$lt_lt_prog_compiler_static
19682
19683
 
19684
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19685
19686
 
19687
build_libtool_need_lc=$archive_cmds_need_lc
19688
19689
 
19690
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19691
19692
 
19693
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19694
19695
 
19696
whole_archive_flag_spec=$lt_whole_archive_flag_spec
19697
19698
 
19699
compiler_needs_object=$lt_compiler_needs_object
19700
19701
 
19702
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19703
19704
 
19705
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19706
19707
 
19708
archive_cmds=$lt_archive_cmds
19709
archive_expsym_cmds=$lt_archive_expsym_cmds
19710
19711
 
19712
# a shared archive.
19713
module_cmds=$lt_module_cmds
19714
module_expsym_cmds=$lt_module_expsym_cmds
19715
19716
 
19717
with_gnu_ld=$lt_with_gnu_ld
19718
19719
 
19720
allow_undefined_flag=$lt_allow_undefined_flag
19721
19722
 
19723
no_undefined_flag=$lt_no_undefined_flag
19724
19725
 
19726
# This must work even if \$libdir does not exist
19727
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19728
19729
 
19730
# during linking.  This must work even if \$libdir does not exist.
19731
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19732
19733
 
19734
hardcode_libdir_separator=$lt_hardcode_libdir_separator
19735
19736
 
19737
# DIR into the resulting binary.
19738
hardcode_direct=$hardcode_direct
19739
19740
 
19741
# DIR into the resulting binary and the resulting library dependency is
19742
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19743
# library is relocated.
19744
hardcode_direct_absolute=$hardcode_direct_absolute
19745
19746
 
19747
# into the resulting binary.
19748
hardcode_minus_L=$hardcode_minus_L
19749
19750
 
19751
# into the resulting binary.
19752
hardcode_shlibpath_var=$hardcode_shlibpath_var
19753
19754
 
19755
# into the library and all subsequent libraries and executables linked
19756
# against it.
19757
hardcode_automatic=$hardcode_automatic
19758
19759
 
19760
# to runtime path list.
19761
inherit_rpath=$inherit_rpath
19762
19763
 
19764
link_all_deplibs=$link_all_deplibs
19765
19766
 
19767
fix_srcfile_path=$lt_fix_srcfile_path
19768
19769
 
19770
always_export_symbols=$always_export_symbols
19771
19772
 
19773
export_symbols_cmds=$lt_export_symbols_cmds
19774
19775
 
19776
exclude_expsyms=$lt_exclude_expsyms
19777
19778
 
19779
include_expsyms=$lt_include_expsyms
19780
19781
 
19782
prelink_cmds=$lt_prelink_cmds
19783
19784
 
19785
file_list_spec=$lt_file_list_spec
19786
19787
 
19788
hardcode_action=$hardcode_action
19789
19790
 
19791
19792
 
19793
19794
 
19795
  aix3*)
19796
    cat <<\_LT_EOF >> "$cfgfile"
19797
# AIX sometimes has problems with the GCC collect2 program.  For some
19798
# reason, if we set the COLLECT_NAMES environment variable, the problems
19799
# vanish in a puff of smoke.
19800
if test "X${COLLECT_NAMES+set}" != Xset; then
19801
  COLLECT_NAMES=
19802
  export COLLECT_NAMES
19803
fi
19804
_LT_EOF
19805
    ;;
19806
  esac
19807
19808
 
19809
 
19810
19811
 
19812
 
19813
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19814
  # text mode, it properly converts lines to CR/LF.  This bash problem
19815
  # is reportedly fixed, but why not run on old versions too?
19816
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19817
    || (rm -f "$cfgfile"; exit 1)
19818
19819
 
19820
  yes)
19821
    cat << \_LT_EOF >> "$cfgfile"
19822
19823
 
19824
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
19825
# otherwise set result to NONDIR_REPLACEMENT.
19826
func_dirname ()
19827
{
19828
  case ${1} in
19829
    */*) func_dirname_result="${1%/*}${2}" ;;
19830
    *  ) func_dirname_result="${3}" ;;
19831
  esac
19832
}
19833
19834
 
19835
func_basename ()
19836
{
19837
  func_basename_result="${1##*/}"
19838
}
19839
19840
 
19841
# perform func_basename and func_dirname in a single function
19842
# call:
19843
#   dirname:  Compute the dirname of FILE.  If nonempty,
19844
#             add APPEND to the result, otherwise set result
19845
#             to NONDIR_REPLACEMENT.
19846
#             value returned in "$func_dirname_result"
19847
#   basename: Compute filename of FILE.
19848
#             value retuned in "$func_basename_result"
19849
# Implementation must be kept synchronized with func_dirname
19850
# and func_basename. For efficiency, we do not delegate to
19851
# those functions but instead duplicate the functionality here.
19852
func_dirname_and_basename ()
19853
{
19854
  case ${1} in
19855
    */*) func_dirname_result="${1%/*}${2}" ;;
19856
    *  ) func_dirname_result="${3}" ;;
19857
  esac
19858
  func_basename_result="${1##*/}"
19859
}
19860
19861
 
19862
# strip PREFIX and SUFFIX off of NAME.
19863
# PREFIX and SUFFIX must not contain globbing or regex special
19864
# characters, hashes, percent signs, but SUFFIX may contain a leading
19865
# dot (in which case that matches only a dot).
19866
func_stripname ()
19867
{
19868
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19869
  # positional parameters, so assign one to ordinary parameter first.
19870
  func_stripname_result=${3}
19871
  func_stripname_result=${func_stripname_result#"${1}"}
19872
  func_stripname_result=${func_stripname_result%"${2}"}
19873
}
19874
19875
 
19876
func_opt_split ()
19877
{
19878
  func_opt_split_opt=${1%%=*}
19879
  func_opt_split_arg=${1#*=}
19880
}
19881
19882
 
19883
func_lo2o ()
19884
{
19885
  case ${1} in
19886
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19887
    *)    func_lo2o_result=${1} ;;
19888
  esac
19889
}
19890
19891
 
19892
func_xform ()
19893
{
19894
  func_xform_result=${1%.*}.lo
19895
}
19896
19897
 
19898
func_arith ()
19899
{
19900
  func_arith_result=$(( $* ))
19901
}
19902
19903
 
19904
# STRING may not start with a hyphen.
19905
func_len ()
19906
{
19907
  func_len_result=${#1}
19908
}
19909
19910
 
19911
    ;;
19912
  *) # Bourne compatible functions.
19913
    cat << \_LT_EOF >> "$cfgfile"
19914
19915
 
19916
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
19917
# otherwise set result to NONDIR_REPLACEMENT.
19918
func_dirname ()
19919
{
19920
  # Extract subdirectory from the argument.
19921
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
19922
  if test "X$func_dirname_result" = "X${1}"; then
19923
    func_dirname_result="${3}"
19924
  else
19925
    func_dirname_result="$func_dirname_result${2}"
19926
  fi
19927
}
19928
19929
 
19930
func_basename ()
19931
{
19932
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
19933
}
19934
19935
 
19936
 
19937
# strip PREFIX and SUFFIX off of NAME.
19938
# PREFIX and SUFFIX must not contain globbing or regex special
19939
# characters, hashes, percent signs, but SUFFIX may contain a leading
19940
# dot (in which case that matches only a dot).
19941
# func_strip_suffix prefix name
19942
func_stripname ()
19943
{
19944
  case ${2} in
19945
    .*) func_stripname_result=`$ECHO "X${3}" \
19946
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
19947
    *)  func_stripname_result=`$ECHO "X${3}" \
19948
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
19949
  esac
19950
}
19951
19952
 
19953
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19954
my_sed_long_arg='1s/^-[^=]*=//'
19955
19956
 
19957
func_opt_split ()
19958
{
19959
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
19960
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
19961
}
19962
19963
 
19964
func_lo2o ()
19965
{
19966
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
19967
}
19968
19969
 
19970
func_xform ()
19971
{
19972
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
19973
}
19974
19975
 
19976
func_arith ()
19977
{
19978
  func_arith_result=`expr "$@"`
19979
}
19980
19981
 
19982
# STRING may not start with a hyphen.
19983
func_len ()
19984
{
19985
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19986
}
19987
19988
 
19989
esac
19990
19991
 
19992
  yes)
19993
    cat << \_LT_EOF >> "$cfgfile"
19994
19995
 
19996
# Append VALUE to the end of shell variable VAR.
19997
func_append ()
19998
{
19999
  eval "$1+=\$2"
20000
}
20001
_LT_EOF
20002
    ;;
20003
  *)
20004
    cat << \_LT_EOF >> "$cfgfile"
20005
20006
 
20007
# Append VALUE to the end of shell variable VAR.
20008
func_append ()
20009
{
20010
  eval "$1=\$$1\$2"
20011
}
20012
20013
 
20014
    ;;
20015
  esac
20016
20017
 
20018
 
20019
    || (rm -f "$cfgfile"; exit 1)
20020
20021
 
20022
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20023
  chmod +x "$ofile"
20024
20025
 
20026
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20027
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
20028
  # are listed without --file.  Let's play safe and only enable the eval
20029
  # if we detect the quoting.
20030
  case $CONFIG_FILES in
20031
  *\'*) eval set x "$CONFIG_FILES" ;;
20032
  *)   set x $CONFIG_FILES ;;
20033
  esac
20034
  shift
20035
  for mf
20036
  do
20037
    # Strip MF so we end up with the name of the file.
20038
    mf=`echo "$mf" | sed -e 's/:.*$//'`
20039
    # Check whether this is an Automake generated Makefile or not.
20040
    # We used to match only the files named `Makefile.in', but
20041
    # some people rename them; so instead we look at the file content.
20042
    # Grep'ing the first line is not enough: some people post-process
20043
    # each Makefile.in and add a new line on top of each file to say so.
20044
    # Grep'ing the whole file is not good either: AIX grep has a line
20045
    # limit of 2048, but all sed's we know have understand at least 4000.
20046
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20047
      dirpart=`$as_dirname -- "$mf" ||
20048
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20049 19 jeremybenn
         X"$mf" : 'X\(//\)[^/]' \| \
20050
         X"$mf" : 'X\(//\)$' \| \
20051
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20052
$as_echo X"$mf" |
20053 82 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20054 19 jeremybenn
            s//\1/
20055
            q
20056
          }
20057
          /^X\(\/\/\)[^/].*/{
20058
            s//\1/
20059
            q
20060
          }
20061
          /^X\(\/\/\)$/{
20062
            s//\1/
20063
            q
20064
          }
20065
          /^X\(\/\).*/{
20066
            s//\1/
20067
            q
20068
          }
20069
          s/.*/./; q'`
20070
    else
20071 82 jeremybenn
      continue
20072
    fi
20073
    # Extract the definition of DEPDIR, am__include, and am__quote
20074
    # from the Makefile without running `make'.
20075
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20076
    test -z "$DEPDIR" && continue
20077
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
20078
    test -z "am__include" && continue
20079
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20080
    # When using ansi2knr, U may be empty or an underscore; expand it
20081
    U=`sed -n 's/^U = //p' < "$mf"`
20082
    # Find all dependency output files, they are included files with
20083
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
20084
    # simplest approach to changing $(DEPDIR) to its actual value in the
20085
    # expansion.
20086
    for file in `sed -n "
20087
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20088
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20089
      # Make sure the directory exists.
20090
      test -f "$dirpart/$file" && continue
20091
      fdir=`$as_dirname -- "$file" ||
20092
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20093 19 jeremybenn
         X"$file" : 'X\(//\)[^/]' \| \
20094
         X"$file" : 'X\(//\)$' \| \
20095
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20096
$as_echo X"$file" |
20097 82 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20098 19 jeremybenn
            s//\1/
20099
            q
20100
          }
20101
          /^X\(\/\/\)[^/].*/{
20102
            s//\1/
20103
            q
20104
          }
20105
          /^X\(\/\/\)$/{
20106
            s//\1/
20107
            q
20108
          }
20109
          /^X\(\/\).*/{
20110
            s//\1/
20111
            q
20112
          }
20113
          s/.*/./; q'`
20114
      { as_dir=$dirpart/$fdir
20115 101 jeremybenn
  case $as_dir in #(
20116
  -*) as_dir=./$as_dir;;
20117
  esac
20118
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20119
    as_dirs=
20120
    while :; do
20121
      case $as_dir in #(
20122
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20123
      *) as_qdir=$as_dir;;
20124
      esac
20125
      as_dirs="'$as_qdir' $as_dirs"
20126
      as_dir=`$as_dirname -- "$as_dir" ||
20127
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20128
         X"$as_dir" : 'X\(//\)[^/]' \| \
20129
         X"$as_dir" : 'X\(//\)$' \| \
20130
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20131
$as_echo X"$as_dir" |
20132
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20133
            s//\1/
20134
            q
20135
          }
20136
          /^X\(\/\/\)[^/].*/{
20137
            s//\1/
20138
            q
20139
          }
20140
          /^X\(\/\/\)$/{
20141
            s//\1/
20142
            q
20143
          }
20144
          /^X\(\/\).*/{
20145
            s//\1/
20146
            q
20147
          }
20148
          s/.*/./; q'`
20149
      test -d "$as_dir" && break
20150
    done
20151
    test -z "$as_dirs" || eval "mkdir $as_dirs"
20152
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20153
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
20154
   { (exit 1); exit 1; }; }; }
20155
      # echo "creating $dirpart/$file"
20156 82 jeremybenn
      echo '# dummy' > "$dirpart/$file"
20157
    done
20158
  done
20159 19 jeremybenn
}
20160 82 jeremybenn
 ;;
20161 19 jeremybenn
20162
 
20163
done # for ac_tag
20164
20165
 
20166
 
20167 101 jeremybenn
_ACEOF
20168 19 jeremybenn
chmod +x $CONFIG_STATUS
20169 101 jeremybenn
ac_clean_files=$ac_clean_files_save
20170 19 jeremybenn
20171
 
20172 82 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
20173 101 jeremybenn
$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
20174
   { (exit 1); exit 1; }; }
20175
20176 19 jeremybenn
 
20177 82 jeremybenn
 
20178 19 jeremybenn
# config.status does its own redirection, appending to config.log.
20179
# Unfortunately, on DOS this fails, as config.log is still kept open
20180
# by configure, so config.status won't be able to write to it; its
20181
# output is simply discarded.  So we exec the FD to /dev/null,
20182
# effectively closing config.log, so it can be properly (re)opened and
20183
# appended to by config.status.  When coming back to configure, we
20184
# need to make the FD available again.
20185
if test "$no_create" != yes; then
20186
  ac_cs_success=:
20187
  ac_config_status_args=
20188
  test "$silent" = yes &&
20189
    ac_config_status_args="$ac_config_status_args --quiet"
20190
  exec 5>/dev/null
20191
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20192
  exec 5>>config.log
20193
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20194
  # would make configure fail if this is the last instruction.
20195
  $ac_cs_success || { (exit 1); exit 1; }
20196 101 jeremybenn
fi
20197 19 jeremybenn
20198
 
20199 82 jeremybenn
# CONFIG_SUBDIRS section.
20200
#
20201
if test "$no_recursion" != yes; then
20202
20203
 
20204
  # so they do not pile up.
20205
  ac_sub_configure_args=
20206
  ac_prev=
20207
  eval "set x $ac_configure_args"
20208
  shift
20209
  for ac_arg
20210
  do
20211
    if test -n "$ac_prev"; then
20212
      ac_prev=
20213
      continue
20214
    fi
20215
    case $ac_arg in
20216
    -cache-file | --cache-file | --cache-fil | --cache-fi \
20217
    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
20218
      ac_prev=cache_file ;;
20219
    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
20220
    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
20221
    | --c=*)
20222
      ;;
20223
    --config-cache | -C)
20224
      ;;
20225
    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
20226
      ac_prev=srcdir ;;
20227
    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
20228
      ;;
20229
    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
20230
      ac_prev=prefix ;;
20231
    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
20232
      ;;
20233
    --disable-option-checking)
20234
      ;;
20235
    *)
20236
      case $ac_arg in
20237
      *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20238
      esac
20239
      ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
20240 101 jeremybenn
    esac
20241 82 jeremybenn
  done
20242
20243
 
20244
  # in subdir configurations.
20245
  ac_arg="--prefix=$prefix"
20246
  case $ac_arg in
20247
  *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20248
  esac
20249
  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
20250
20251
 
20252
  if test "$silent" = yes; then
20253
    ac_sub_configure_args="--silent $ac_sub_configure_args"
20254
  fi
20255
20256
 
20257
  # different subdirs can have different --enable and --with options.
20258
  ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
20259
20260
 
20261
  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
20262
20263
 
20264
    # parts of a large source tree are present.
20265
    test -d "$srcdir/$ac_dir" || continue
20266
20267
 
20268
    $as_echo "$as_me:$LINENO: $ac_msg" >&5
20269 101 jeremybenn
    $as_echo "$ac_msg" >&6
20270 82 jeremybenn
    { as_dir="$ac_dir"
20271 101 jeremybenn
  case $as_dir in #(
20272
  -*) as_dir=./$as_dir;;
20273
  esac
20274
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20275
    as_dirs=
20276
    while :; do
20277
      case $as_dir in #(
20278
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20279
      *) as_qdir=$as_dir;;
20280
      esac
20281
      as_dirs="'$as_qdir' $as_dirs"
20282
      as_dir=`$as_dirname -- "$as_dir" ||
20283
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20284
         X"$as_dir" : 'X\(//\)[^/]' \| \
20285
         X"$as_dir" : 'X\(//\)$' \| \
20286
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20287
$as_echo X"$as_dir" |
20288
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20289
            s//\1/
20290
            q
20291
          }
20292
          /^X\(\/\/\)[^/].*/{
20293
            s//\1/
20294
            q
20295
          }
20296
          /^X\(\/\/\)$/{
20297
            s//\1/
20298
            q
20299
          }
20300
          /^X\(\/\).*/{
20301
            s//\1/
20302
            q
20303
          }
20304
          s/.*/./; q'`
20305
      test -d "$as_dir" && break
20306
    done
20307
    test -z "$as_dirs" || eval "mkdir $as_dirs"
20308
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20309
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
20310
   { (exit 1); exit 1; }; }; }
20311
    ac_builddir=.
20312 82 jeremybenn
20313
 
20314
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20315
*)
20316
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20317
  # A ".." for each directory in $ac_dir_suffix.
20318
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20319
  case $ac_top_builddir_sub in
20320
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20321
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20322
  esac ;;
20323
esac
20324
ac_abs_top_builddir=$ac_pwd
20325
ac_abs_builddir=$ac_pwd$ac_dir_suffix
20326
# for backward compatibility:
20327
ac_top_builddir=$ac_top_build_prefix
20328
20329
 
20330
  .)  # We are building in place.
20331
    ac_srcdir=.
20332
    ac_top_srcdir=$ac_top_builddir_sub
20333
    ac_abs_top_srcdir=$ac_pwd ;;
20334
  [\\/]* | ?:[\\/]* )  # Absolute name.
20335
    ac_srcdir=$srcdir$ac_dir_suffix;
20336
    ac_top_srcdir=$srcdir
20337
    ac_abs_top_srcdir=$srcdir ;;
20338
  *) # Relative name.
20339
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20340
    ac_top_srcdir=$ac_top_build_prefix$srcdir
20341
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20342
esac
20343
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20344
20345
 
20346
 
20347
20348
 
20349
    if test -f "$ac_srcdir/configure.gnu"; then
20350
      ac_sub_configure=$ac_srcdir/configure.gnu
20351
    elif test -f "$ac_srcdir/configure"; then
20352
      ac_sub_configure=$ac_srcdir/configure
20353
    elif test -f "$ac_srcdir/configure.in"; then
20354
      # This should be Cygnus configure.
20355
      ac_sub_configure=$ac_aux_dir/configure
20356
    else
20357
      { $as_echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
20358 101 jeremybenn
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
20359 82 jeremybenn
      ac_sub_configure=
20360
    fi
20361
20362
 
20363
    if test -n "$ac_sub_configure"; then
20364
      # Make the cache file name correct relative to the subdirectory.
20365
      case $cache_file in
20366
      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
20367
      *) # Relative name.
20368
        ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
20369
      esac
20370
20371
 
20372 101 jeremybenn
$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
20373 82 jeremybenn
      # The eval makes quoting arguments work.
20374
      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
20375
           --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
20376
        { { $as_echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
20377 101 jeremybenn
$as_echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
20378
   { (exit 1); exit 1; }; }
20379
    fi
20380 82 jeremybenn
20381
 
20382
  done
20383
fi
20384
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20385
  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20386 101 jeremybenn
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20387 82 jeremybenn
fi
20388
20389
 

powered by: WebSVN 2.1.0

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